721d69ec21ff156beb3f5f08f19621fe8ea35663
[gnulib.git] / ChangeLog
1 2008-10-15  Simon Josefsson  <simon@josefsson.org>
2
3         * modules/netdb, modules/netdb-tests: New file.
4         * m4/netdb_h.m4: New file.
5         * lib/netdb.in.h: Add, currently just an empty file pending
6         definitions.
7         * tests/test-netdb.c: New file.
8         * doc/posix-headers/netdb.texi: Mention that we replace it if
9         needed.
10         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
11         netdb.
12
13 2008-10-15  Simon Josefsson  <simon@josefsson.org>
14
15         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
16         with code.
17
18 2008-10-13  Bruno Haible  <bruno@clisp.org>
19
20         * lib/glthread/cond.c (glthread_cond_wait_func,
21         glthread_cond_timedwait_func): Add a comment.
22
23 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
24
25         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
26         * tests/test-select.c: Likewise,
27
28 2008-10-13  Bruno Haible  <bruno@clisp.org>
29
30         * lib/glthread/cond.c (glthread_cond_wait_func,
31         glthread_cond_timedwait_func): Fix variable name.
32         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
33
34 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
35
36         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
37         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
38         struct sockaddr.sa_len.
39         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
40
41 2008-10-13  Simon Josefsson  <simon@josefsson.org>
42
43         * build-aux/pmccabe2html: Add css and css_url parameters.
44
45 2008-10-12  Bruno Haible  <bruno@clisp.org>
46
47         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
48         calling aclx_get.
49         Reported by Rainer Tammer <tammer@tammer.net>.
50
51 2008-10-12  Bruno Haible  <bruno@clisp.org>
52
53         Use msvcrt aware primitives for creation/termination of Win32 threads.
54         * lib/glthread/thread.c: Include <process.h>.
55         (glthread_create_func): Use _beginthreadex instead of CreateThread.
56         (wrapper_func): Update signature.
57         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
58
59 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
60             Bruno Haible  <bruno@clisp.org>
61
62         Provide a Win32 implementation of the 'cond' module.
63         * lib/glthread/cond.h [USE_WIN32]: New implementation.
64         * lib/glthread/cond.c (glthread_cond_init_func,
65         glthread_cond_wait_func, glthread_cond_timedwait_func,
66         glthread_cond_signal_func, glthread_cond_broadcast_func,
67         glthread_cond_destroy_func) [USE_WIN32]: New functions.
68         * modules/cond (Dependencies): Add gettimeofday.
69
70 2008-10-11  Bruno Haible  <bruno@clisp.org>
71
72         Make sleep work on older versions of mingw.
73         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
74         only whether it exists.
75         * doc/posix-functions/sleep.texi: Mention the problem with older
76         versions of mingw.
77
78 2008-10-11  Bruno Haible  <bruno@clisp.org>
79
80         New module 'shutdown'.
81         * modules/shutdown: New file.
82         * lib/sys_socket.in.h (shutdown): New declaration.
83         * lib/winsock.c (shutdown): New function.
84         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
85         GNULIB_SHUTDOWN.
86         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
87         * doc/posix-functions/shutdown.texi: Document the new module.
88
89 2008-10-11  Jim Meyering  <meyering@redhat.com>
90
91         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
92
93 2008-10-11  Bruno Haible  <bruno@clisp.org>
94
95         New module 'fclose'.
96         * modules/fclose: New file.
97         * lib/stdio.in.h (fclose): New declaration.
98         * lib/fclose.c: New file.
99         * m4/fclose.m4: New file.
100         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
101         REPLACE_FCLOSE.
102         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
103         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
104         REPLACE_FCLOSE.
105         * modules/close (Depends-on): fclose.
106         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
107
108 2008-10-11  Bruno Haible  <bruno@clisp.org>
109
110         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
111         set errno and don't call _close.
112
113 2008-10-10  Bruno Haible  <bruno@clisp.org>
114
115         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
116         ACL, not afterwards. Fixes test failure on Cygwin.
117
118 2008-10-09  Ben Pfaff  <blp@gnu.org>
119
120         * build-aux/announce-gen: Fix gnulib version related part of usage
121         message.  Die with a useful error message if no tarballs are
122         found.
123
124 2008-10-10  Jim Meyering  <meyering@redhat.com>
125
126         bootstrap: use git's --depth=N option only if it's supported
127         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
128         recognize the --depth option.  Reported by Pádraig Brady.
129
130 2008-10-09  Bruno Haible  <bruno@clisp.org>
131
132         New module 'ioctl'.
133         * modules/ioctl: New file.
134         * lib/sys_socket.in.h (ioctl): Remove declaration.
135         * lib/winsock.c: Include <sys/ioctl.h>.
136         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
137         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
138         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
139         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
140         * doc/posix-functions/ioctl.texi: Mention the new module.
141
142 2008-10-09  Bruno Haible  <bruno@clisp.org>
143
144         New module 'sys_ioctl'.
145         * lib/sys_ioctl.in.h: New file.
146         * m4/sys_ioctl_h.m4: New file.
147         * modules/sys_ioctl: New file.
148         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
149
150 2008-10-09  Bruno Haible  <bruno@clisp.org>
151
152         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
153         * lib/winsock.c: Include <stdarg.h>.
154         (rpl_ioctl): Change to second argument 'int' and then varargs.
155
156 2008-10-09  Bruno Haible  <bruno@clisp.org>
157
158         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
159         when the sys_socket module is present and the system has <winsock2.h>.
160
161 2008-10-09  Bruno Haible  <bruno@clisp.org>
162
163         * doc/posix-functions/close.texi: Mention module 'close' instead of
164         module 'sys_socket'.
165
166 2008-10-09  Bruno Haible  <bruno@clisp.org>
167
168         * doc/glibc-headers/sys_ioctl.texi: New file.
169         * doc/gnulib.texi: Include it.
170
171 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
172             Bruno Haible  <bruno@clisp.org>
173
174         Combine the two replacements of 'close'.
175         * lib/sys_socket.in.h (close): Define to a reminder to include
176         <unistd.h>.
177         (_gl_close_fd_maybe_socket): New declaration.
178         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
179         * lib/winsock.c (close): Remove undefinition.
180         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
181         needed for the gnulib module 'close'.
182         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
183         define to an error symbol or to a warning, if suitable.
184         * lib/close.c: Include <sys/socket.h>.
185         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
186         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
187         UNISTD_H_HAVE_WINSOCK2_H.
188         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
189         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
190         UNISTD_H_HAVE_WINSOCK2_H.
191         * modules/sys_socket (Files): Add m4/unistd_h.m4.
192         (configure.ac): Set a module indicator.
193         (Makefile.am): Substitute GNULIB_CLOSE.
194         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
195         * modules/poll-tests (Depends-on): Add close.
196         * modules/select-tests (Depends-on): Likewise.
197
198 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
199             Bruno Haible  <bruno@clisp.org>
200
201         New module 'close'.
202         * modules/close: New file.
203         * lib/unistd.in.h (close): Move declaration out of the
204         FCHDIR_REPLACEMENT scope.
205         (_gl_unregister_fd): New declaration.
206         * lib/close.c: New file.
207         * lib/fchdir.c (rpl_close): Remove function.
208         * m4/close.m4: New file.
209         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
210         close.
211         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
212         REPLACE_CLOSE.
213         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
214         REPLACE_CLOSE.
215         * modules/fchdir (Depends-on): Add close.
216
217 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
218             Bruno Haible  <bruno@clisp.org>
219
220         * lib/fcntl.in.h (open): Simplify conditionals.
221         (_gl_register_fd): New declaration.
222         * lib/fchdir.c (rpl_open): Remove function.
223         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
224         also.
225         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
226         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
227         open.
228
229 2008-10-09  Jim Meyering  <meyering@redhat.com>
230
231         GNUmakefile: use the more name-space-friendly "_version"
232         * top/GNUmakefile (_dummy): Update.
233         (_version): Rename from "version".
234
235 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
236             Bruno Haible  <bruno@clisp.org>
237
238         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
239         rpl_close.
240         (_gl_register_fd): New function, extracted from rpl_open.
241         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
242         (rpl_open, rpl_opendir): Use _gl_register_fd.
243
244 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
245
246         Fix organization of 'open' replacement.
247         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
248         (gl_FUNC_OPEN): Use it.
249         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
250
251 2008-10-08  Bruno Haible  <bruno@clisp.org>
252
253         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
254
255 2008-10-08  Simon Josefsson  <simon@josefsson.org>
256
257         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
258         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
259         listen).
260
261 2008-10-08  Eric Blake  <ebb9@byu.net>
262
263         GNUmakefile: add 'make version' target
264         * top/GNUmakefile (_curr-ver): Split version update rules...
265         (version): ...into a target.
266
267 2008-10-07  Bruno Haible  <bruno@clisp.org>
268
269         Use a more portable replacement expression for -0.0L.
270         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
271         instead of -0.0L. Fix m4 quotation.
272
273         * tests/test-signbit.c: Include <float.h>.
274         (minus_zero): New variable.
275         (test_signbitl): Use minus_zero instead of -zero.
276         * modules/signbit-tests (Depends-on): Add float.
277
278         * tests/test-ceill.c: Include <float.h>.
279         (zero): Remove variable.
280         (minus_zero): New variable.
281         (main): Use minus_zero instead of -zero.
282         * modules/ceill-tests (Depends-on): Add float.
283
284         * tests/test-floorl.c: Include <float.h>.
285         (zero): Remove variable.
286         (minus_zero): New variable.
287         (main): Use minus_zero instead of -zero.
288         * modules/floorl-tests (Depends-on): Add float.
289
290         * tests/test-roundl.c: Include <float.h>.
291         (zero): Remove variable.
292         (minus_zero): New variable.
293         (main): Use minus_zero instead of -zero.
294         * modules/roundl-tests (Depends-on): Add float.
295
296         * tests/test-truncl.c: Include <float.h>.
297         (zero): Remove variable.
298         (minus_zero): New variable.
299         (main): Use minus_zero instead of -zero.
300         * modules/truncl-tests (Depends-on): Add float.
301
302         * tests/test-frexpl.c (zero): Remove variable.
303         (minus_zero): New variable.
304         (main): Use minus_zero instead of -zero.
305         * modules/frexpl-tests (Depends-on): Add float.
306
307         * tests/test-isnan.c (zerol): Remove variable.
308         (minus_zerol): New variable.
309         (test_long_double): Use minus_zerol instead of -zerol.
310         * modules/isnan-tests (Depends-on): Add float.
311
312         * tests/test-isnanl.h (zero): Remove variable.
313         (minus_zero): New variable.
314         (main): Use minus_zero instead of -zero.
315         * modules/isnanl-nolibm-tests (Depends-on): Add float.
316         * modules/isnanl-tests (Depends-on): Add float.
317
318         * tests/test-ldexpl.c (zero): Remove variable.
319         (minus_zero): New variable.
320         (main): Use minus_zero instead of -zero.
321         * modules/ldexpl-tests (Depends-on): Add float.
322
323         * tests/test-snprintf-posix.h (zerol): Remove variable.
324         (minus_zerol): New variable.
325         (test_function): Use minus_zerol instead of -zerol.
326         * modules/snprintf-posix-tests (Depends-on): Add float.
327         * modules/vsnprintf-posix-tests (Depends-on): Add float.
328
329         * tests/test-sprintf-posix.h (zerol): Remove variable.
330         (minus_zerol): New variable.
331         (test_function): Use minus_zerol instead of -zerol.
332         * modules/sprintf-posix-tests (Depends-on): Add float.
333         * modules/vsprintf-posix-tests (Depends-on): Add float.
334
335         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
336         (minus_zerol): New variable.
337         (test_function): Use minus_zerol instead of -zerol.
338         * modules/vasnprintf-posix-tests (Depends-on): Add float.
339
340         * tests/test-vasprintf-posix.c (zerol): Remove variable.
341         (minus_zerol): New variable.
342         (test_function): Use minus_zerol instead of -zerol.
343         * modules/vasprintf-posix-tests (Depends-on): Add float.
344
345 2008-10-07  Simon Josefsson  <simon@josefsson.org>
346
347         * MODULES.html.sh (Support for building documentation): Mention
348         pmccabe2html.  Sort entries.
349
350         Add pmccabe2html module, from gnupdf.
351         * build-aux/pmccabe.css: New file.
352         * build-aux/pmccabe2html: New file.
353         * m4/pmccabe2html.m4: New file.
354         * modules/pmccabe2html: New file.
355
356 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
357
358         flock: new module
359         * MODULES.html.sh: Add to list of modules.
360         * lib/flock.c: flock implementation for Windows and Unix systems
361         which have fcntl.
362         * doc/glibc-functions/flock.texi: Update documentation.
363         * lib/sys_file.in.h: <sys/file.h> header file.
364         * m4/flock.m4: M4 macros.
365         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
366         * modules/flock: flock module.
367         * modules/flock-tests: flock tests module.
368         * modules/sys_file: sys/file.h module.
369         * tests/test-flock.c: test suite for flock.
370
371 2008-10-06  Jim Meyering  <meyering@redhat.com>
372
373         bootstrap: check for LT_INIT more portably still ;-)
374         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
375         Spotted by Bruno Haible.
376
377 2008-10-06  Eric Blake  <ebb9@byu.net>
378
379         test-signbit: avoid tripping Irix cc bug on -0.0L
380         * tests/test-signbit.c (minus_zerol): Delete, and replace with
381         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
382         entire testsuite consistent and avoids an Irix 6.2 bug.
383
384 2008-10-05  Bruno Haible  <bruno@clisp.org>
385             Jim Meyering  <jim@meyering.net>
386
387         Add an option for ignoring EPIPE during close_stdout.
388         * lib/closeout.h: Include <stdbool.h>.
389         (close_stdout_set_ignore_EPIPE): New declaration.
390         * lib/closeout.c: Include <stdbool.h>.
391         (ignore_EPIPE): New variable.
392         (close_stdout_set_ignore_EPIPE): New function.
393         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
394         * lib/close-stream.c (close_stream): Mention the possible EPIPE
395         failure.
396         * modules/closeout (Depends-on): Add stdbool.
397
398 2008-10-05  Bruno Haible  <bruno@clisp.org>
399
400         * modules/accept: New file.
401         * modules/bind: New file.
402         * modules/connect: New file.
403         * modules/getpeername: New file.
404         * modules/getsockname: New file.
405         * modules/getsockopt: New file.
406         * modules/listen: New file.
407         * modules/recv: New file.
408         * modules/recvfrom: New file.
409         * modules/send: New file.
410         * modules/sendto: New file.
411         * modules/setsockopt: New file.
412         * modules/socket: New file.
413         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
414         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
415         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
416         the particular module is requested. Add a link warning when the
417         particular module is not requested.
418         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
419         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
420         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
421         the particular module is requested.
422         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
423         gl_SYS_SOCKET_H_DEFAULTS): New macros.
424         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
425         * modules/sys_socket (Depends-on): Add link-warning.
426         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
427         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
428         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
429         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
430         GL_LINK_WARNING.
431         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
432         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
433         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
434         * doc/posix-functions/getpeername.texi: Mention the new module
435         'getpeername'.
436         * doc/posix-functions/getsockname.texi: Mention the new module
437         'getsockname'.
438         * doc/posix-functions/getsockopt.texi: Mention the new module
439         'getsockopt'.
440         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
441         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
442         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
443         * doc/posix-functions/send.texi: Mention the new module 'send'.
444         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
445         * doc/posix-functions/setsockopt.texi: Mention the new module
446         'setsockopt'.
447         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
448         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
449         listen, connect, accept.
450         * modules/select-tests (Depends-on): Likewise.
451
452 2008-10-05  Bruno Haible  <bruno@clisp.org>
453
454         * lib/winsock.c (strerror): Remove unused #undef.
455         (rpl_close): Remove unused local variable.
456
457         * modules/sys_socket (Depends-on); Add errno.
458
459 2008-10-05  Bruno Haible  <bruno@clisp.org>
460
461         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
462         (select): Add a link warning when the 'select' module is not used.
463         * modules/sys_select (Depends-on): Add link-warning.
464         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
465         Suggested by Paolo Bonzini.
466
467 2008-10-05  Jim Meyering  <meyering@redhat.com>
468
469         bootstrap: check for LT_INIT more portably
470         * build-aux/bootstrap: Avoid using grep -E, since it's not
471         portable enough.  Suggestion from Bruno Haible.
472
473 2008-10-05  Bruno Haible  <bruno@clisp.org>
474
475         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
476         as being fixed by gnulib.
477
478 2008-10-05  Bruno Haible  <bruno@clisp.org>
479
480         * modules/select-tests: New file, mostly copied from
481         modules/sys_select-tests.
482         * tests/test-select.c: New file, mostly copied from
483         tests/test-sys_select.c.
484         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
485         * modules/sys_select-tests (Depends-on): Remove all dependencies.
486         (Makefile.am): Remove test_sys_select_LDADD.
487
488         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
489         to an undefined symbol, for an error message.
490         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
491         (gl_SYS_SELECT_H_DEFAULTS): New macro.
492         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
493         winsock-select.c here.
494         * modules/sys_select (Files): Remove lib/winsock-select.c.
495         (Depends-on): Remove alloca.
496         (Makefile.am): Substitute GNULIB_SELECT.
497         * modules/select: New file.
498         * doc/posix-functions/select.texi: Update.
499
500 2008-10-05  Bruno Haible  <bruno@clisp.org>
501
502         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
503         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
504         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
505         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
506         getdtablesize.
507         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
508         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
509
510 2008-10-05  Bruno Haible  <bruno@clisp.org>
511
512         * modules/getdtablesize-tests: New file.
513         * tests/test-getdtablesize.c: New file.
514
515         New module 'getdtablesize'.
516         * lib/unistd.in.h (getdtablesize): New declaration.
517         * lib/getdtablesize.c: New file.
518         * m4/getdtablesize.m4: New file.
519         * modules/getdtablesize: New file.
520         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
521         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
522         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
523         HAVE_GETDTABLESIZE.
524         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
525
526 2008-10-05  Bruno Haible  <bruno@clisp.org>
527
528         * modules/sched (Makefile.am): Fix typo.
529         Reported by Simon Josefsson.
530
531 2008-10-05  Jim Meyering  <meyering@redhat.com>
532
533         bootstrap: check for LT_INIT, too
534         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
535         are deprecated.  Suggestion from Ralf Wildenhues.
536
537 2008-10-05  Bruno Haible  <bruno@clisp.org>
538
539         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
540         overriding them by ours.
541         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
542
543 2008-10-05  Jim Meyering  <meyering@redhat.com>
544
545         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
546         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
547         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
548
549 2008-10-04  Bruno Haible  <bruno@clisp.org>
550
551         * modules/dup2 (License): Change to LGPLv2+.
552         * modules/sleep (License): Likewise.
553         * modules/perror (License): Likewise.
554         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
555         Blake.
556         * modules/signal (License): Likewise.
557         * modules/sigprocmask (License): Likewise.
558         * modules/raise (License): Change to LGPLv2+, with approval by Jim
559         Meyering.
560
561 2008-10-04  Bruno Haible  <bruno@clisp.org>
562
563         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
564         Reported by Rainer Tammer <tammer@tammer.net>.
565
566 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
567             Bruno Haible  <bruno@clisp.org>
568
569         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
570         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
571         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
572
573 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
574
575         filevercmp: new module
576         * lib/filevercmp.h: New function filevercmp comparing version strings.
577         * lib/filevercmp.c: Implementation of filevercmp function.
578         * modules/filevercmp: Module metadata.
579         * tests/test-filevercmp.c: Unit test for new module.
580         * modules/filevercmp-tests: Unit test metadata.
581         * MODULES.html.sh: Add filevercmp module.
582
583 2008-10-03  Bruno Haible  <bruno@clisp.org>
584
585         * lib/c-ctype.h: Add comment.
586         Reported by Jim Meyering.
587
588 2008-10-02  Bruno Haible  <bruno@clisp.org>
589
590         * modules/posix_spawn-internal (Depends-on): Add 'open'.
591
592 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
593
594         * build-aux/bootstrap: Allow renaming bootstrap, and change the
595         name of bootstrap.conf accordingly.
596
597 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
598
599         * build-aux/bootstrap: Install git-merge-changelog configuration
600         items into .gitconfig if needed.
601
602 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
603
604         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
605         git repository, and initialize/update it accordingly.
606
607 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
608
609         * modules/fsync-tests: New file.
610         * tests/test-fsync.c: New file.
611
612         New module 'fsync'.
613         * lib/fsync.c: New file.
614         * m4/fsync.m4: New file.
615         * modules/fsync: New file.
616         * lib/unistd.in.h (fsync): New declaration.
617         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
618         GNULIB_FSYNC and HAVE_FSYNC.
619         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
620         * MODULES.html.sh (posix_functions): Add fsync.
621         * doc/posix-functions/fsync.texi: Mention the new module.
622
623 2008-10-02  Jim Meyering  <meyering@redhat.com>
624
625         fts.c: sync with similar code from coreutils' remove.c
626         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
627         Guard also with "#if defined __linux__", since for now at least,
628         this code is Linux-kernel-specific.
629
630 2008-10-02  Jim Meyering  <meyering@redhat.com>
631
632         fts: bug fixes
633         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
634         Include <sys/vfs.h>, not <sys/statfs.h>.
635
636         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
637         Include <sys/vfs.h>, not <sys/statfs.h>.
638
639 2008-10-01  Bruno Haible  <bruno@clisp.org>
640
641         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
642         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
643         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
644         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
645         * doc/posix-functions/posix_spawnp.texi: Likewise.
646         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
647         whether posix_spawn actually works.
648         * m4/pipe.m4 (gl_PIPE): Likewise.
649         * modules/execute (Files): Add m4/posix_spawn.m4.
650         * modules/pipe (Files): Add m4/posix_spawn.m4.
651         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
652
653 2008-10-01  Jim Meyering  <meyering@redhat.com>
654
655         remove trailing spaces
656         * NEWS: Likewise.
657         * lib/poll.c (poll): Likewise.
658         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
659         * lib/winsock.c (rpl_close): Likewise.
660         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
661         * modules/yield: Likewise.
662         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
663         * tests/test-sys_select.c (connect_to_socket): Likewise.
664
665         fts.c: adjust a new interface to be more generally useful
666         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
667         (fts_build): Adjust caller.
668
669 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
670
671         * modules/cond-tests: New file.
672         * tests/test-cond.c: New file.
673
674 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
675             Bruno Haible  <bruno@clisp.org>
676
677         * modules/cond (Dependencies): Add errno, time.
678         * lib/glthread/cond.h: Include <time.h>.
679         (gl_cond_define, gl_cond_define_initialized): Use the same definition
680         across platforms.
681
682 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
683             Bruno Haible  <bruno@clisp.org>
684
685         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
686
687 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
688             Bruno Haible  <bruno@clisp.org>
689
690         * modules/tls-tests (Depends-on): Add thread, yield.
691         (configure.ac): Remove all checks.
692         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
693         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
694         gl_thread_self): Remove definitions. Include glthread/thread.h and
695         glthread/yield.h instead.
696         (test_tls): Pass an additional NULL argument to gl_thread_join.
697
698 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
699             Bruno Haible  <bruno@clisp.org>
700
701         * modules/lock-tests (Depends-on): Add thread, yield.
702         (configure.ac): Remove all checks.
703         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
704         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
705         gl_thread_self): Remove definitions. Include glthread/thread.h and
706         glthread/yield.h instead.
707         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
708         additional NULL argument to gl_thread_join.
709
710 2008-09-30  Bruno Haible  <bruno@clisp.org>
711
712         Fix the Win32 implementation of the 'thread' module.
713         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
714         pointer type.
715         (gl_thread_self): Invoke gl_thread_self_func.
716         (gl_thread_self_func): New declaration.
717         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
718         (do_init_self_key, init_self_key): New functions.
719         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
720         Remove some fields.
721         (running_threads, running_lock): Remove variables.
722         (get_current_thread_handle): New function.
723         (gl_thread_self_func, wrapper_func, glthread_create_func,
724         glthread_join_func, gl_thread_exit_func): Largely rewritten and
725         simplified.
726
727 2008-09-30  Bruno Haible  <bruno@clisp.org>
728
729         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
730         files.
731
732 2008-09-30  Jim Meyering  <meyering@redhat.com>
733
734         fts.m4: correct the test for statfs.f_type
735         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
736         when checking for statfs.f_type.
737
738 2008-09-15  Simon Josefsson  <simon@josefsson.org>
739
740         tests: avoid some compiler warnings
741         * tests/test-memchr.c (main): Pass NULL indirectly.
742         * tests/test-getdate.c (main): Remove unused variable 'ret'.
743
744 2008-09-29  Ondřej Vašík  <ovasik@redhat.com>
745
746         getdate.y: disallow countable dayshifts like "4 yesterday ago"
747         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
748         exactly specified dayshifts.
749         (dayshift): New rule.
750         (rel): Add dayshift.
751         (relative_time_table) [tomorrow, yesterday, today, now]:
752         Use tDAY_SHIFT in place of tDAY_UNIT.
753         * tests/test-getdate.c: Add tests for now-disallowed countable
754         dayshifts, e.g., "4 yesterday ago".
755
756 2008-09-29  Bruno Haible  <bruno@clisp.org>
757
758         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
759         * tests/test-posix_spawn1.in.sh: Renamed from
760         tests/test-posix_spawn.in.sh.
761         * tests/test-posix_spawn2.c: New file.
762         * tests/test-posix_spawn2.in.sh: New file.
763         * modules/posix_spawnp-tests (Files): Update.
764         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
765
766 2008-09-29  Bruno Haible  <bruno@clisp.org>
767
768         Propagate effects of putenv/setenv/unsetenv to child processes.
769         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
770         * lib/pipe.c (create_pipe): Likewise.
771
772 2008-09-29  Bruno Haible  <bruno@clisp.org>
773
774         Enable use of shell scripts as executables in mingw.
775         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
776         run the program as a shell script.
777         * lib/pipe.c (create_pipe): Likewise.
778         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
779         resulting array.
780
781 2008-09-29  Eric Blake  <ebb9@byu.net>
782
783         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
784
785 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
786
787         * doc/posix-functions/accept.texi: Update mingw problems.
788         * doc/posix-functions/bind.texi: Update mingw problems.
789         * doc/posix-functions/close.texi: Update mingw problems.
790         * doc/posix-functions/connect.texi: Update mingw problems.
791         * doc/posix-functions/getpeername.texi: Update mingw problems.
792         * doc/posix-functions/getsockname.texi: Update mingw problems.
793         * doc/posix-functions/getsockopt.texi: Update mingw problems.
794         * doc/posix-functions/ioctl.texi: Update mingw problems.
795         * doc/posix-functions/listen.texi: Update mingw problems.
796         * doc/posix-functions/recv.texi: Update mingw problems.
797         * doc/posix-functions/recvfrom.texi: Update mingw problems.
798         * doc/posix-functions/select.texi: Update mingw problems.
799         * doc/posix-functions/send.texi: Update mingw problems.
800         * doc/posix-functions/sendto.texi: Update mingw problems.
801         * doc/posix-functions/setsockopt.texi: Update mingw problems.
802         * doc/posix-functions/socket.texi: Update mingw problems.
803
804 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
805             Bruno Haible  <bruno@clisp.org>
806
807         * lib/sys_select.in.h: Include sys/time.h.
808         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
809         * modules/sys_select: Depend on sys_time.
810         * tests/test-sys_select.c: Test that sys/select.h defines struct
811         timeval fully.
812
813 2008-09-29  Bruno Haible  <bruno@clisp.org>
814
815         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
816         * lib/sys_select.in.h: Likewise.
817
818 2008-09-29  Bruno Haible  <bruno@clisp.org>
819
820         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
821
822 2008-09-29  Bruno Haible  <bruno@clisp.org>
823
824         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
825         Set LIBSOCKET instead of augmenting LIBS.
826         * modules/sockets (Link): New section.
827         * modules/sockets-tests (test_sockets_LDADD): New variable.
828         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
829         * modules/poll-tests (test_poll_LDADD): New variable.
830         * NEWS: Document the change.
831
832 2008-09-29  Bruno Haible  <bruno@clisp.org>
833
834         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
835         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
836         ARPA_INET_H directly.
837         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
838
839 2008-09-28  Bruno Haible  <bruno@clisp.org>
840
841         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
842         from gl_HEADER_SYS_SOCKET.
843         (gl_HEADER_SYS_SOCKET): Invoke it.
844         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
845
846 2008-09-28  Bruno Haible  <bruno@clisp.org>
847
848         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
849         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
850         Needed on OSF/1 4.0.
851
852 2008-09-28  Bruno Haible  <bruno@clisp.org>
853
854         Override open more carefully.
855         * lib/open.c (orig_open): New function.
856         (rpl_open): Use orig_open instead of open.
857         * lib/fcntl.in.h: Add special invocation convention.
858         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
859         (gl_FUNC_OPEN): Invoke it.
860
861         Override freopen more carefully.
862         * lib/freopen.c (orig_freopen): New function.
863         (rpl_freopen): Use orig_freopen instead of freopen.
864         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
865         (gl_FUNC_FREOPEN): Invoke it.
866
867         Override fopen more carefully.
868         * lib/fopen.c (orig_fopen): New function.
869         (rpl_fopen): Use orig_fopen instead of fopen.
870         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
871         (gl_FUNC_FOPEN): Invoke it.
872         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
873
874 2008-09-28  Bruno Haible  <bruno@clisp.org>
875
876         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
877         SIGPIPE.
878
879 2008-09-28  Bruno Haible  <bruno@clisp.org>
880
881         * tests/test-sigaction.c (handler, main): Disable the check whether
882         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
883         glibc systems with LinuxThreads.
884
885 2008-09-28  Bruno Haible  <bruno@clisp.org>
886
887         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
888
889         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
890         with AIX xlc.
891         * lib/fcntl.in.h (open): Likewise.
892         Reported by Rainer Tammer <tammer@tammer.net>.
893
894 2008-09-28  Bruno Haible  <bruno@clisp.org>
895
896         * modules/posix_spawnp-tests: New file.
897         * tests/test-posix_spawn.c: New file.
898         * tests/test-posix_spawn.in.sh: New file.
899
900         New module 'posix_spawnp'.
901         * modules/posix_spawnp: New file.
902         * lib/spawnp.c: New file, from GNU libc with modifications.
903         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
904
905         New module 'posix_spawn'.
906         * modules/posix_spawn: New file.
907         * lib/spawn.c: New file, from GNU libc with modifications.
908         * doc/posix-functions/posix_spawn.texi: Mention the new module.
909
910         New module 'posix_spawnattr_destroy'.
911         * modules/posix_spawnattr_destroy: New file.
912         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
913         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
914         module.
915
916         New module 'posix_spawnattr_setsigmask'.
917         * modules/posix_spawnattr_setsigmask: New file.
918         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
919         modifications.
920         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
921         new module.
922
923         New module 'posix_spawnattr_getsigmask'.
924         * modules/posix_spawnattr_getsigmask: New file.
925         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
926         modifications.
927         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
928         new module.
929
930         New module 'posix_spawnattr_setsigdefault'.
931         * modules/posix_spawnattr_setsigdefault: New file.
932         * lib/spawnattr_setdefault.c: New file, from GNU libc with
933         modifications.
934         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
935         new module.
936
937         New module 'posix_spawnattr_getsigdefault'.
938         * modules/posix_spawnattr_getsigdefault: New file.
939         * lib/spawnattr_getdefault.c: New file, from GNU libc with
940         modifications.
941         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
942         new module.
943
944         New module 'posix_spawnattr_setschedpolicy'.
945         * modules/posix_spawnattr_setschedpolicy: New file.
946         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
947         modifications.
948         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
949         new module.
950
951         New module 'posix_spawnattr_getschedpolicy'.
952         * modules/posix_spawnattr_getschedpolicy: New file.
953         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
954         modifications.
955         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
956         new module.
957
958         New module 'posix_spawnattr_setschedparam'.
959         * modules/posix_spawnattr_setschedparam: New file.
960         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
961         modifications.
962         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
963         new module.
964
965         New module 'posix_spawnattr_getschedparam'.
966         * modules/posix_spawnattr_getschedparam: New file.
967         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
968         modifications.
969         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
970         new module.
971
972         New module 'posix_spawnattr_setpgroup'.
973         * modules/posix_spawnattr_setpgroup: New file.
974         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
975         modifications.
976         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
977         module.
978
979         New module 'posix_spawnattr_getpgroup'.
980         * modules/posix_spawnattr_getpgroup: New file.
981         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
982         modifications.
983         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
984         module.
985
986         New module 'posix_spawnattr_setflags'.
987         * modules/posix_spawnattr_setflags: New file.
988         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
989         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
990         module.
991
992         New module 'posix_spawnattr_getflags'.
993         * modules/posix_spawnattr_getflags: New file.
994         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
995         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
996         module.
997
998         New module 'posix_spawnattr_init'.
999         * modules/posix_spawnattr_init: New file.
1000         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
1001         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
1002         module.
1003
1004         New module 'posix_spawn_file_actions_destroy'.
1005         * modules/posix_spawn_file_actions_destroy: New file.
1006         * lib/spawn_faction_destroy.c: New file, from GNU libc with
1007         modifications.
1008         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
1009         the new module.
1010
1011         New module 'posix_spawn_file_actions_addopen'.
1012         * modules/posix_spawn_file_actions_addopen: New file.
1013         * lib/spawn_faction_addopen.c: New file, from GNU libc with
1014         modifications.
1015         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
1016         the new module.
1017
1018         New module 'posix_spawn_file_actions_adddup2'.
1019         * modules/posix_spawn_file_actions_adddup2: New file.
1020         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
1021         modifications.
1022         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
1023         the new module.
1024
1025         New module 'posix_spawn_file_actions_addclose'.
1026         * modules/posix_spawn_file_actions_addclose: New file.
1027         * lib/spawn_faction_addclose.c: New file, from GNU libc with
1028         modifications.
1029         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
1030         the new module.
1031
1032         New module 'posix_spawn_file_actions_init'.
1033         * modules/posix_spawn_file_actions_init: New file.
1034         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
1035         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
1036         new module.
1037
1038         New module 'posix_spawn-internal'.
1039         * modules/posix_spawn-internal: New file.
1040         * lib/spawn_int.h: New file, from GNU libc with modifications.
1041         * lib/spawni.c: New file, from GNU libc with modifications.
1042         * m4/posix_spawn.m4: New file.
1043
1044         New module 'spawn'.
1045         * modules/spawn: New file.
1046         * lib/spawn.in.h: New file, from GNU libc with modifications.
1047         * m4/spawn_h.m4: New file.
1048         * doc/posix-headers/spawn.texi: Mention the new module.
1049
1050 2008-09-28  Bruno Haible  <bruno@clisp.org>
1051
1052         * modules/sched-tests: New file.
1053         * tests/test-sched.c: New file.
1054
1055         New module 'sched'.
1056         * modules/sched: New file.
1057         * lib/sched.in.h: New file.
1058         * m4/sched_h.m4: New file.
1059         * doc/posix-headers/sched.texi: Mention the new module.
1060
1061 2008-09-27  Eric Blake  <ebb9@byu.net>
1062
1063         Fix previous patch, and tweak references to $0.
1064         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
1065         (func_version, func_gnulib_dir): Don't call this program
1066         gnulib-tool.
1067         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
1068         with using $0 in function.
1069         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
1070         (func_fatal_error): Reuse the name the user invoked us with.
1071
1072 2008-09-27  Bruno Haible  <bruno@clisp.org>
1073
1074         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
1075         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
1076         (gl_ICONV_H): Not here.
1077         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
1078         instead of assigning ICONV_H directly.
1079
1080         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
1081         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
1082         WCHAR_H directly.
1083
1084 2008-09-27  Bruno Haible  <bruno@clisp.org>
1085
1086         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
1087         * modules/arpa_inet (Depends-on): Add link-warning.
1088         (Makefile.am): Insert the definition of GL_LINK-WARNING.
1089         * modules/unistd (Makefile.am): Likewise.
1090
1091 2008-09-26  Bruno Haible  <bruno@clisp.org>
1092
1093         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
1094         variables.
1095         (func_version): Essentially copied from gnulib-tool.
1096         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
1097         func_readlink): Copied from gnulib-tool.
1098
1099 2008-09-26  Bruno Haible  <bruno@clisp.org>
1100
1101         * gnulib-tool (func_version): Change directory to $gnulib_dir before
1102         invoking git-version-gen.
1103
1104 2008-09-26  Bruno Haible  <bruno@clisp.org>
1105
1106         * posix-modules: Update to directory names changed on 2008-01-19.
1107         Remove commas in output before splitting into words. No more need to
1108         avoid 'ftruncate' since 2007-02-19.
1109
1110 2008-09-26  Bruno Haible  <bruno@clisp.org>
1111
1112         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
1113
1114 2008-09-26  Bruno Haible  <bruno@clisp.org>
1115
1116         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
1117         * modules/fwriteerror (Depends-on): Add errno.
1118
1119 2008-09-26  Bruno Haible  <bruno@clisp.org>
1120
1121         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
1122         * tests/test-vc-list-files-cvs.sh: Likewise.
1123
1124 2008-09-26  Bruno Haible  <bruno@clisp.org>
1125
1126         * doc/posix-headers/sys_resource.texi: Reorder items.
1127
1128 2008-09-26  Jim Meyering  <meyering@redhat.com>
1129
1130         fts: tweak inode comparison function
1131         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
1132         inode numbers, as documented.
1133
1134         fts: sort dirent entries on inode number before traversing
1135         This avoids a quadratic, seek-related performance penalty when
1136         operating on a directory containing many entries (measurable at 10k;
1137         3.5 hours at 2 million entries with a cold cache) on certain types
1138         of file systems, including ext3 and ext4, but not tmpfs.
1139         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
1140         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
1141         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
1142         (fs_handles_readdir_ordered_dirents_efficiently): New function.
1143         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
1144         (fts_build): Set the stat.st_ino member from D_INO.
1145         If it is likely to be useful, sort dirent entries on inode number.
1146
1147         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
1148         and the struct statfs.f_type member.
1149         * modules/fts (Depends-on): Add d-ino.
1150
1151 2008-09-26  Bruno Haible  <bruno@clisp.org>
1152
1153         * modules/sigpipe-die (Depends-on): Add sigpipe.
1154
1155         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
1156         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
1157         and GNULIB_STDIO_H_SIGPIPE are set.
1158         * lib/stdio-write.c: New file.
1159         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
1160         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
1161         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
1162         REPLACE_STDIO_WRITE_FUNCS.
1163         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
1164         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
1165         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
1166         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
1167         * modules/stdio (Files): Add lib/stdio-write.c.
1168         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
1169         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
1170         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
1171         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
1172         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
1173         REPLACE_FPRINTF_POSIX.
1174         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
1175         REPLACE_PRINTF_POSIX.
1176         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
1177         REPLACE_VFPRINTF_POSIX.
1178         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
1179         REPLACE_VPRINTF_POSIX.
1180         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
1181         SIGPIPE issue.
1182         * doc/posix-functions/fputc.texi: Likewise.
1183         * doc/posix-functions/fputs.texi: Likewise.
1184         * doc/posix-functions/fwrite.texi: Likewise.
1185         * doc/posix-functions/printf.texi: Likewise.
1186         * doc/posix-functions/putc.texi: Likewise.
1187         * doc/posix-functions/putchar.texi: Likewise.
1188         * doc/posix-functions/puts.texi: Likewise.
1189         * doc/posix-functions/vfprintf.texi: Likewise.
1190         * doc/posix-functions/vprintf.texi: Likewise.
1191
1192         * modules/safe-write (Depends-on): Add write.
1193
1194         * modules/sigpipe-tests: New file.
1195         * tests/test-sigpipe.c: New file.
1196         * tests/test-sigpipe.sh: New file.
1197
1198         * modules/write: New file.
1199         * lib/unistd.in.h: Include <sys/types.h>.
1200         (write): New declaration.
1201         * lib/write.c: New file.
1202         * m4/write.m4: New file.
1203         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
1204         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
1205         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
1206         GNULIB_WRITE, REPLACE_WRITE.
1207         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
1208         and the SIGPIPE issue.
1209
1210         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
1211         (raise): New declaration.
1212         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
1213         (ext_signal): New function.
1214         (rpl_raise): New function.
1215         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
1216         GNULIB_SIGNAL_H_SIGPIPE.
1217         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
1218         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
1219
1220         * modules/sigpipe: New file.
1221         * m4/sigpipe.m4: New file.
1222
1223 2008-09-25  Derek Price  <derek@ximbiot.com>
1224             Bruno Haible  <bruno@clisp.org>
1225
1226         * gnulib-tool (func_import): Report all license incompatibilities, not
1227         just the first one.
1228
1229 2008-09-25  Bruno Haible  <bruno@clisp.org>
1230
1231         * gnulib-tool (func_import): When computing the edits, consider not
1232         only the Makefile.ams that exist but also those that will be generated.
1233
1234 2008-09-25  Simon Josefsson  <simon@josefsson.org>
1235
1236         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
1237         fixes gnulib-tool --test warning about duplicate dependency.
1238
1239 2008-09-25  Bruno Haible  <bruno@clisp.org>
1240
1241         * gnulib-tool: Don't ask the user to perform edits in the generated
1242         Makefile.ams.
1243         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
1244         apply to the Makefile.am being generated.
1245         (func_emit_tests_Makefile_am): Execute edits that apply to the
1246         Makefile.am being generated.
1247         (func_import): Setup list of Makefile.am edits before emitting the
1248         Makefile.ams, not at the end.
1249         (func_create_testdir): Update.
1250         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
1251
1252 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
1253
1254         * gnulib-tool (func_import): Store the --tests-base option in the
1255         comment in gnulib-cache.m4.
1256
1257 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
1258
1259         * NEWS: Document increased portability that sys_select now provides.
1260
1261         * lib/sys_select.in.h: Install select wrapper.
1262         * lib/sys_socket.in.h: Use more descriptive name when there is no
1263         select wrapper.
1264         * lib/winsock-select.c: New.
1265         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
1266         Require gl_HEADER_SYS_SOCKET.
1267         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
1268         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
1269         * tests/test-sys_select.c: Add functional tests.
1270
1271 2008-09-24  Eric Blake  <ebb9@byu.net>
1272
1273         open, fopen: close fd leak in last patch
1274         * lib/open.c (rpl_open): Close fd before returning error.
1275         * lib/fopen.c (rpl_fopen): Close fd before returning error.
1276         * doc/posix-functions/open.texi (open): Document that Irix also
1277         has the bug.
1278         * doc/posix-functions/fopen.texi (fopen): Likewise.
1279         Reported by Paolo Bonzini.
1280
1281 2008-09-24  Bruno Haible  <bruno@clisp.org>
1282
1283         Ensure that a filename ending in a slash cannot be used to access a
1284         non-directory.
1285         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
1286         to check whether it's really a directory.
1287         * lib/fopen.c: Include fcntl.h, unistd.h.
1288         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
1289         and fdopen().
1290         * modules/fopen (Depends-on): Add unistd.
1291         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
1292         * tests/test-fopen.c (main): Likewise.
1293         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
1294         * doc/posix-functions/fopen.texi: Likewise.
1295         Reported by Eric Blake.
1296
1297 2008-09-23  Eric Blake  <ebb9@byu.net>
1298
1299         c-stack: avoid compiler optimizations when provoking overflow
1300         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
1301         recursion harder to optimize, to ensure a stack overflow occurs.
1302         * tests/test-c-stack.c (recurse): Likewise.
1303         Borrowed from libsigsegv.
1304
1305         c-stack: work around Irix sigaltstack bug
1306         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
1307         whether sigaltstack uses wrong end of stack_t (copied in part from
1308         libsigsegv).
1309         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
1310         Irix bug, without requiring an over-allocation.
1311         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
1312         bug.
1313
1314         fopen: document mingw bug on directories
1315         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
1316         not allowing a stream visiting a directory, even though reading
1317         from such a stream is not portable.
1318
1319 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
1320
1321         * lib/poll.c: Rewrite.
1322         * modules/poll: Depend on alloca.
1323
1324 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
1325
1326         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
1327         instead define prototypes for a full set of wrappers.  Ensure
1328         that Cygwin does not use the compatibility code, which is only
1329         for MinGW.
1330         * lib/winsock.c: New.
1331         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
1332         * modules/sys_socket: Add lib/winsock.c.
1333
1334         * modules/poll-tests: Add errno and perror.
1335         * tests/test-poll.c: Use ioctl, not ioctlsocket.
1336
1337 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
1338
1339         * tests/test-poll.c: Downgrade minimum needed Winsock version.
1340
1341 2008-09-23  Bruno Haible  <bruno@clisp.org>
1342
1343         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
1344         * doc/glibc-functions/*: Likewise.
1345
1346 2008-09-23  Simon Josefsson  <simon@josefsson.org>
1347
1348         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
1349         success.
1350
1351 2008-09-22  Eric Blake  <ebb9@byu.net>
1352             Bruno Haible  <bruno@clisp.org>
1353
1354         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
1355         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
1356         supply %A but mishandle pseudo-NaN.
1357         Reported by Simon Josefsson.
1358
1359 2008-09-21  Bruno Haible  <bruno@clisp.org>
1360
1361         * tests/test-lock.c (main): Tweak skip message.
1362         * tests/test-tls.c (main): Likewise.
1363
1364 2008-09-21  Bruno Haible  <bruno@clisp.org>
1365
1366         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
1367         whether 'struct sigaction' has sa_sigaction here...
1368         (gl_PREREQ_SIG_HANDLER_H): ... not here.
1369         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
1370
1371 2008-09-21  Bruno Haible  <bruno@clisp.org>
1372
1373         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
1374         section.
1375         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
1376         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
1377         the new section.
1378         (Support for obsolete systems lacking POSIX:2001): New section.
1379         (String handling <string.h>): Move strdup to the new section.
1380         Suggested by Simon Josefsson and Paolo Bonzini.
1381
1382 2008-09-21  Bruno Haible  <bruno@clisp.org>
1383
1384         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
1385         exponents in %e and %g results on 'long double'. Needed for mingw's
1386         improved *printf functions.
1387         * tests/test-vasprintf-posix.c (test_function): Likewise.
1388         * tests/test-snprintf-posix.h (test_function): Likewise.
1389         * tests/test-sprintf-posix.h (test_function): Likewise.
1390         Reported by Eric Blake.
1391
1392 2008-09-21  Bruno Haible  <bruno@clisp.org>
1393
1394         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
1395         * tests/test-sprintf-posix.h (test_function): Likewise.
1396
1397 2008-09-21  Bruno Haible  <bruno@clisp.org>
1398
1399         * modules/getpass (Depends-on): Add strdup-posix.
1400
1401         New module 'strdup-posix'.
1402         * modules/strdup-posix: New file.
1403         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
1404         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
1405         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
1406         REPLACE_STRDUP.
1407         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
1408         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
1409         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
1410         strdup-posix.
1411
1412         * modules/strdup (Depends-on): Remove malloc-posix.
1413
1414 2008-09-20  Bruno Haible  <bruno@clisp.org>
1415
1416         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
1417         Wildenhues.
1418
1419 2008-09-20  Bruno Haible  <bruno@clisp.org>
1420
1421         Ensure that wint_t gets defined on IRIX 5.3.
1422         * lib/wchar.in.h (wint_t): Define if not defined by the system.
1423         * lib/wctype.in.h (wint_t): Likewise.
1424         (__wctype_wint_t): Remove type.
1425         (isw*): Use wint_t instead of __wctype_wint_t.
1426         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
1427         * modules/wchar (Files): Add m4/wint_t.m4.
1428         (Makefile.am): Substitute HAVE_WINT_T.
1429         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
1430         * tests/test-wctype.c: Check that wint_t is defined.
1431         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
1432         * doc/posix-headers/wctype.texi: Likewise.
1433         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
1434
1435 2008-09-18  Bruno Haible  <bruno@clisp.org>
1436
1437         * gnulib-tool (func_exit): Update comment.
1438
1439 2008-09-18  Simon Josefsson  <simon@josefsson.org>
1440
1441         * modules/getaddrinfo (Depends-on): Remove strdup, this module
1442         assumes strdup exists and does not depend on strdup to return
1443         ENOMEM on out of memory conditions.
1444
1445 2008-09-18  Bruno Haible  <bruno@clisp.org>
1446
1447         * lib/vasnprintf.c (VASNPRINTF): When printing ±0.0L in
1448         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
1449         digits for the exponent.
1450
1451 2008-09-18  Jim Meyering  <meyering@redhat.com>
1452             Bruno Haible  <bruno@clisp.org>
1453
1454         * lib/vasnprintf.c (decimal_point_char): Define also if
1455         NEED_PRINTF_INFINITE_LONG_DOUBLE.
1456
1457 2008-09-16  Bruno Haible  <bruno@clisp.org>
1458         and Eric Blake  <ebb9@byu.net>
1459
1460         vasnprintf: support Irix 5.3
1461         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
1462         that mishandle long double infinity.
1463         Reported by Tom G. Christensen.
1464
1465 2008-09-16  Bruno Haible  <bruno@clisp.org>
1466
1467         * doc/glibc-functions/scandir.texi: Mention the function is missing on
1468         Solaris 9.
1469         * doc/glibc-functions/alphasort.texi: Likewise.
1470         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
1471
1472 2008-09-16  Jim Meyering  <meyering@redhat.com>
1473
1474         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
1475         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
1476         a umask modification leak out of a subshell.  Otherwise, the
1477         opensolaris /bin/sh would be accepted and thus cause unwarranted
1478         failures in the coreutils test suite.
1479
1480 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
1481
1482         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
1483         to succeed.
1484
1485 2008-09-16  Jim Meyering  <meyering@redhat.com>
1486
1487         avoid spurious test failure when library is built without ACL support
1488         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
1489         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
1490         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
1491         * tests/test-copy-acl.sh: Likewise.
1492
1493 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1494
1495         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
1496         based on character occurrence counts.
1497
1498 2008-09-15  Eric Blake  <ebb9@byu.net>
1499
1500         tests: avoid some compiler warnings
1501         * tests/test-memchr.c (main): Pass NULL indirectly.
1502         * tests/test-closein.c (main): Avoid unused variable.
1503
1504 2008-09-15  Bruno Haible  <bruno@clisp.org>
1505
1506         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
1507         are missing on OpenBSD 4.0 individually.
1508         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
1509
1510 2008-09-15  Bruno Haible  <bruno@clisp.org>
1511
1512         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
1513         * doc/posix-functions/strerror.texi: Mention also Cygwin.
1514         * doc/posix-functions/perror.texi: Likewise.
1515         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
1516         is missing.
1517         Reported by Eric Blake.
1518
1519         * lib/errno.in.h: Use replacement values >= 2000.
1520         Reported by Eric Blake.
1521
1522 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1523
1524         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
1525         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
1526         limit.
1527         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
1528         compareseq was aborted.
1529
1530 2008-09-14  Bruno Haible  <bruno@clisp.org>
1531
1532         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
1533         yvec_edit_count.
1534         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
1535         (fstrcmp_bounded): Simplify result computation accordingly.
1536
1537 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1538
1539         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
1540         (fstrcmp): Define in terms of fstrcmp_bounded.
1541         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
1542         lower_bound argument.
1543         Return quickly if the result is certainly < lower_bound.
1544         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
1545
1546 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1547
1548         * lib/diffseq.h (EARLY_ABORT): New macro.
1549         (compareseq): Change return type to bool. Return true when EARLY_ABORT
1550         evaluates to true.
1551
1552 2008-09-14  Bruno Haible  <bruno@clisp.org>
1553
1554         * modules/perror-tests: New file.
1555         * tests/test-perror.sh: New file.
1556         * tests/test-perror.c: New file.
1557
1558         New module 'perror'.
1559         * lib/stdio.in.h (perror): New declaration.
1560         * lib/perror.c: New file.
1561         * m4/perror.m4: New file.
1562         * modules/perror: New file.
1563         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
1564         * doc/posix-functions/perror.texi: Mention the perror module.
1565         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
1566         REPLACE_PERROR.
1567         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
1568         REPLACE_PERROR.
1569
1570 2008-09-14  Bruno Haible  <bruno@clisp.org>
1571
1572         * modules/stdio (Makefile.am): Reorder to match the order in
1573         lib/stdio.in.h.
1574         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
1575
1576 2008-09-13  Bruno Haible  <bruno@clisp.org>
1577
1578         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
1579
1580 2008-09-13  Bruno Haible  <bruno@clisp.org>
1581
1582         Extend strerror to cover the added errno values.
1583         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
1584         (rpl_strerror): Provide error messages for the added errno values and
1585         for the WSA* values.
1586         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
1587         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
1588         strerror.
1589         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
1590         * modules/strerror (Depends-on): Add errno.
1591         * doc/posix-functions/strerror.texi: Document the change.
1592         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
1593         and EOVERFLOW.
1594
1595 2008-09-13  Bruno Haible  <bruno@clisp.org>
1596
1597         * modules/EOVERFLOW: Remove file.
1598         * m4/eoverflow.m4: Remove file.
1599         * modules/EOVERFLOW-tests: Remove file.
1600         * tests/test-EOVERFLOW.c: Remove file.
1601         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
1602         * modules/ftell (Depends-on): Likewise.
1603         * modules/getdelim (Depends-on): Likewise.
1604         * modules/getugroups (Depends-on): Likewise.
1605         * modules/poll (Depends-on): Likewise.
1606         * modules/snprintf (Depends-on): Likewise.
1607         * modules/sprintf-posix (Depends-on): Likewise.
1608         * modules/vasnprintf (Depends-on): Likewise.
1609         * modules/vasprintf (Depends-on): Likewise.
1610         * modules/vfprintf-posix (Depends-on): Likewise.
1611         * modules/vsnprintf (Depends-on): Likewise.
1612         * modules/vsprintf-posix (Depends-on): Likewise.
1613         * modules/xvasprintf (Depends-on): Likewise.
1614         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
1615         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
1616         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
1617         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
1618         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
1619         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
1620         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
1621         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
1622         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
1623         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
1624         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
1625         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
1626         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
1627         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
1628         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
1629         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
1630         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
1631         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
1632         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
1633         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
1634         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
1635         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
1636         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
1637         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
1638         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
1639         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
1640         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
1641         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
1642         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
1643         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
1644         * MODULES.html.sh: Remove EOVERFLOW.
1645         * NEWS: Mention the change.
1646
1647 2008-09-13  Bruno Haible  <bruno@clisp.org>
1648
1649         * modules/errno-tests: New file.
1650         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
1651
1652         * lib/errno.in.h: New file.
1653         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
1654         * modules/errno: New file.
1655         * doc/posix-headers/errno.texi: Update documentation.
1656         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
1657
1658 2008-09-13  Bruno Haible  <bruno@clisp.org>
1659
1660         * tests/test-poll.c: Use #if for native Windows, rather than testing
1661         __MSVCRT__.
1662
1663 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
1664             Bruno Haible  <bruno@clisp.org>
1665
1666         * lib/glob.c: Don't include <pwd.h> on native Windows.
1667         (WINDOWS32): New macro.
1668         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
1669
1670 2008-09-13  Bruno Haible  <bruno@clisp.org>
1671
1672         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
1673         (ETIMEDOUT): Remove macro.
1674         (glthread_cond_timedwait_multithreaded): New declaration.
1675         (glthread_cond_timedwait): Use it.
1676         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
1677         (glthread_cond_timedwait_multithreaded): New function.
1678
1679 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
1680
1681         * modules/poll-tests: Do not check for io.h.
1682         * tests/test-poll.c: Check for __MSVCRT__ instead.
1683
1684 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
1685
1686         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
1687         * modules/poll-tests: Add inet_pton, stdbool, sockets.
1688         * tests/test-poll.c: Use them.  Use _pipe on Windows.
1689
1690 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
1691
1692         * modules/poll-tests: New.
1693         * tests/test-poll.c: New.
1694
1695 2008-09-12  Eric Blake  <ebb9@byu.net>
1696
1697         frexp: test for NetBSD failure on -0.0
1698         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
1699         not all, bugs from NetBSD 3.0 have been fixed.
1700         * doc/posix-functions/frexp.texi (frexp): Document bug.
1701         Reported by Thomas Klausner.
1702
1703         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
1704         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
1705         literal -0.0.
1706         Reported by Jonathan C. Patschke <jp@centtech.com>.
1707
1708 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
1709
1710         * lib/glthread/cond.h: Use dummy implementation also if
1711         USE_WIN32_THREADS.
1712
1713 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
1714
1715         * modules/fnmatch-posix (License): Change to LGPLv2+.
1716         * modules/fnmatch-gnu (License): Likewise.
1717
1718 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
1719
1720         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
1721
1722 2008-09-11  Jim Meyering  <meyering@redhat.com>
1723
1724         * users.txt: Add gtk-vnc.
1725
1726 2008-09-08  Simon Josefsson  <simon@josefsson.org>
1727
1728         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
1729         rotate amounts.
1730
1731         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
1732         required for 16-bit and 8-bit rotates.
1733         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
1734         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
1735         UINT8_MAX instead of hard-coded constants.
1736         Suggested by Paul Eggert.
1737
1738 2008-09-07  Bruno Haible  <bruno@clisp.org>
1739
1740         * tests/test-striconveh.c (main): Check behaviour when converting from
1741         UTF-7.
1742
1743         Make striconveh work better with stateful encodings.
1744         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
1745         that iconv does not increment the inptr when returning -1/EINVAL.
1746
1747 2008-09-07  Bruno Haible  <bruno@clisp.org>
1748
1749         * build-aux/config.rpath: Update according to libtool-2.2.6.
1750         * build-aux/config.libpath: Likewise.
1751
1752 2008-09-06  Bruno Haible  <bruno@clisp.org>
1753
1754         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
1755         * lib/freadptr.c (freadptr): Likewise.
1756         * lib/freadseek.c (freadptrinc): Likewise.
1757         Reported by Simon Josefsson.
1758
1759 2008-09-06  Bruno Haible  <bruno@clisp.org>
1760
1761         * modules/freadptr (License): Change to LGPLv2+.
1762         * modules/freadseek (License): Likewise.
1763         Suggested by Eric Blake.
1764
1765         * modules/memchr2 (License): Change to LGPLv2+.
1766         Approved by Eric Blake.
1767
1768 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1769             Bruno Haible  <bruno@clisp.org>
1770
1771         Make gnulib-tool work with native 'sed' on AIX.
1772         * gnulib-tool (sed_noop): New variable.
1773         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
1774         func_add_or_update, func_create_testdir): Use it to initialize sed
1775         script variables.
1776         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
1777
1778 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
1779             Bruno Haible  <bruno@clisp.org>
1780
1781         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
1782         also works after #include directives.
1783
1784 2008-09-04  Ondřej Vašík  <ovasik@redhat.com>
1785
1786         getdate.y: reject an out-of-range timezone value
1787         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
1788         the range [-24...+24].  When specified with only one or two digits,
1789         * tests/test-getdate.c: Tests for the fix.
1790         * doc/getdate.texi: Document this change.
1791
1792 2008-09-03  Bruno Haible  <bruno@clisp.org>
1793
1794         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
1795
1796 2008-09-02  Simon Josefsson  <simon@josefsson.org>
1797
1798         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
1799         <bruce.korb@gmail.com> with ideas from Ben Pfaff
1800         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
1801         Blake <ebb9@byu.net>.
1802
1803         * tests/test-bitrotate.c: Add more test vectors.
1804
1805 2008-09-02  Eric Blake  <ebb9@byu.net>
1806
1807         vasnprintf-posix: handle large precision via %.*d
1808         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
1809         when handling it ourselves.
1810         * tests/test-vasnprintf-posix.c (test_function): Add test.
1811         * tests/test-snprintf-posix.h (test_function): Likewise.
1812         * tests/test-sprintf-posix.h (test_function): Likewise.
1813         * tests/test-vasprintf-posix.c (test_function): Likewise.
1814         Reported by Alain Guibert.
1815
1816 2008-09-01  Eric Blake  <ebb9@byu.net>
1817
1818         c-stack: make configure-time check more robust
1819         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
1820         successful sigaction call.
1821         Reported by Tom G. Christensen.
1822
1823 2008-09-01  Bruno Haible  <bruno@clisp.org>
1824
1825         New module 'findprog-lgpl'.
1826         * modules/findprog-lgpl: New file.
1827         * lib/findprog-lgpl.c: New file.
1828         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
1829         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
1830         to decide whether to use strdup or xstrdup, concatenated_filename or
1831         xconcatenated_filename.
1832
1833 2008-09-01  Bruno Haible  <bruno@clisp.org>
1834
1835         Split module 'concat-filename' into 'concat-filename' (LGPL) and
1836         'xconcat-filename' (GPL).
1837         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
1838         (License): Change to LGPLv2+.
1839         * modules/xconcat-filename: New file.
1840         * lib/concat-filename.h (concatenated_filename): Change specification.
1841         (xconcatenated_filename): New declaration.
1842         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
1843         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
1844         memory situations.
1845         * lib/xconcat-filename.c: New file.
1846         * NEWS: Mention the change.
1847         * lib/findprog.c: Include concat-filename.h, not filename.h.
1848         (find_in_path): Use xconcatenated_filename instead of
1849         concatenated_filename.
1850         * lib/javacomp.c: Include concat-filename.h, not filename.h.
1851         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
1852         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
1853         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
1854         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
1855         instead of concatenated_filename.
1856         * lib/javaexec.c: Include concat-filename.h, not filename.h.
1857         (execute_java_class): Use xconcatenated_filename instead of
1858         concatenated_filename.
1859         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
1860         * modules/javacomp (Depends-on): Likewise.
1861         * modules/javaexec (Depends-on): Likewise.
1862
1863 2008-09-01  Bruno Haible  <bruno@clisp.org>
1864
1865         Split module 'filename' into 'filename' and 'concat-filename'.
1866         * modules/filename: Keep only lib/filename.h.
1867         (License): Change to LGPLv2+.
1868         * modules/concat-filename: New file, extracted from modules/filename.
1869         * lib/filename.h (concatenated_filename): Remove declaration.
1870         * lib/concat-filename.h: New file, extracted from lib/filename.h.
1871         * lib/concat-filename.c: Include concat-filename.h.
1872         * NEWS: Mention the change.
1873
1874 2008-09-01  Simon Josefsson  <simon@josefsson.org>
1875
1876         * lib/bitrotate.h (rotl8, rotr8): Add.
1877
1878         * modules/bitrotate (configure.ac): Need
1879         AC_REQUIRE([AC_C_INLINE]).
1880         (Description): Mention stdint.h.  Reported by Bruno Haible
1881         <bruno@clisp.org>.
1882
1883         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
1884         Paolo Bonzini <bonzini@gnu.org>.
1885
1886 2008-08-31  Bruno Haible  <bruno@clisp.org>
1887
1888         Assume Solaris specific bi-arch conventions on Solaris systems.
1889         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
1890         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
1891         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
1892         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
1893         like acl_libdirstem.
1894         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
1895         acl_libdirstem.
1896         * NEWS: Mention the change.
1897         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
1898
1899 2008-08-31  Jim Meyering  <meyering@redhat.com>
1900
1901         * lib/strftime.h: Add comments describing the two added arguments.
1902
1903         remove duplicate #include directives
1904         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
1905         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
1906
1907 2008-08-31  Bruno Haible  <bruno@clisp.org>
1908
1909         New module 'sigpipe-die'.
1910         * modules/sigpipe-die: New file.
1911         * lib/sigpipe-die.h: New file.
1912         * lib/sigpipe-die.c: New file.
1913         * MODULES.html.sh (Signal handling): Add sigpipe-die.
1914
1915 2008-08-31  Bruno Haible  <bruno@clisp.org>
1916
1917         Don't override previously installed signal handlers.
1918         * lib/fatal-signal.c (saved_sigactions): New variable.
1919         (uninstall_handlers): Reset the signal to the saved handler, not
1920         to SIG_DFL (except when ignored).
1921         (install_handlers): Save the previous handlers.
1922
1923 2008-08-30  Bruno Haible  <bruno@clisp.org>
1924
1925         * gnulib-tool (func_reset_sigpipe): New function.
1926         (func_get_automake_snippet, func_modules_transitive_closure,
1927         func_import): Invoke it before a join command that reads from stdin,
1928         to avoid "echo: write error: Broken pipe" error messages on stderr.
1929         Reported by Sam Steingold <sds@gnu.org>.
1930
1931 2008-08-30  Bruno Haible  <bruno@clisp.org>
1932
1933         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
1934         Code copied from m4/open.m4.
1935         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
1936         access and the filename ends in a slash. Code copied from lib/open.c.
1937         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
1938         * tests/test-fopen.c (main): Check against bug with trailing slash.
1939
1940 2008-08-29  Bruno Haible  <bruno@clisp.org>
1941
1942         Avoid some "gcc -pedantic" warnings.
1943         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
1944         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
1945         * lib/dirent.in.h: Likewise.
1946         * lib/fcntl.in.h: Likewise.
1947         * lib/float.in.h: Likewise.
1948         * lib/iconv.in.h: Likewise.
1949         * lib/inttypes.in.h: Likewise.
1950         * lib/locale.in.h: Likewise.
1951         * lib/math.in.h: Likewise.
1952         * lib/netinet_in.in.h: Likewise.
1953         * lib/search.in.h: Likewise.
1954         * lib/signal.in.h: Likewise.
1955         * lib/stdarg.in.h: Likewise.
1956         * lib/stdint.in.h: Likewise.
1957         * lib/stdio.in.h: Likewise.
1958         * lib/stdlib.in.h: Likewise.
1959         * lib/string.in.h: Likewise.
1960         * lib/strings.in.h: Likewise.
1961         * lib/sys_select.in.h: Likewise.
1962         * lib/sys_socket.in.h: Likewise.
1963         * lib/sys_stat.in.h: Likewise.
1964         * lib/sys_time.in.h: Likewise.
1965         * lib/sysexits.in.h: Likewise.
1966         * lib/time.in.h: Likewise.
1967         * lib/unistd.in.h: Likewise.
1968         * lib/wchar.in.h: Likewise.
1969         * lib/wctype.in.h: Likewise.
1970         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
1971         * modules/fchdir (Makefile.am): Likewise.
1972         * modules/fcntl (Makefile.am): Likewise.
1973         * modules/float (Makefile.am): Likewise.
1974         * modules/iconv_open (Makefile.am): Likewise.
1975         * modules/inttypes (Makefile.am): Likewise.
1976         * modules/locale (Makefile.am): Likewise.
1977         * modules/math (Makefile.am): Likewise.
1978         * modules/netinet_in (Makefile.am): Likewise.
1979         * modules/search (Makefile.am): Likewise.
1980         * modules/signal (Makefile.am): Likewise.
1981         * modules/stdarg (Makefile.am): Likewise.
1982         * modules/stdint (Makefile.am): Likewise.
1983         * modules/stdio (Makefile.am): Likewise.
1984         * modules/stdlib (Makefile.am): Likewise.
1985         * modules/string (Makefile.am): Likewise.
1986         * modules/strings (Makefile.am): Likewise.
1987         * modules/sys_select (Makefile.am): Likewise.
1988         * modules/sys_socket (Makefile.am): Likewise.
1989         * modules/sys_stat (Makefile.am): Likewise.
1990         * modules/sys_time (Makefile.am): Likewise.
1991         * modules/sysexits (Makefile.am): Likewise.
1992         * modules/time (Makefile.am): Likewise.
1993         * modules/unistd (Makefile.am): Likewise.
1994         * modules/wchar (Makefile.am): Likewise.
1995         * modules/wctype (Makefile.am): Likewise.
1996         Reported by Reuben Thomas <rrt@sc3d.org>.
1997
1998 2008-08-29  Bruno Haible  <bruno@clisp.org>
1999
2000         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
2001         any more.
2002
2003 2008-08-29  Simon Josefsson  <simon@josefsson.org>
2004
2005         * MODULES.html.sh (Misc): Add bitrotate.
2006
2007         * modules/bitrotate: New file.
2008
2009         * lib/bitrotate.h: New file.
2010
2011         * modules/bitrotate-tests: New file.
2012
2013         * tests/test-bitrotate.c: New file.
2014
2015         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
2016         on the bitrotate module.
2017
2018         * lib/arctwo.c: Use new bitrotate module.
2019
2020 2008-08-29  Jim Meyering  <meyering@redhat.com>
2021
2022         bootstrap: merge changes from coreutils
2023         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
2024         of copied files.  Remove a kludge, now that this is fixed.
2025         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
2026         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
2027         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
2028
2029 2008-08-29  Bruno Haible  <bruno@clisp.org>
2030
2031         * MODULES.html.sh: Remove --cvs-urls option.
2032
2033 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
2034
2035         maint.mk: adjust to file name change
2036         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
2037
2038 2008-08-28  Jim Meyering  <meyering@redhat.com>
2039
2040         * modules/getndelim2 (License): Relicense to LGPLv2+.
2041         Approved by Richard Stallman for the version of 1995, and by
2042         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
2043
2044 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
2045
2046         * lib/getdelim.c (flockfile, funlockfile): Make all of them
2047         dummy if one is not available.  Do not touch them if
2048         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
2049         (getc_maybe_unlocked): New.
2050         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
2051
2052 2008-08-26  Eric Blake  <ebb9@byu.net>
2053
2054         doc/INSTALL: resync from autoconf
2055         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
2056         (INSTALL_PRELUDE): Delete; this is done more efficiently by
2057         moving...
2058         * install.texi [!autoconf]: ...here.  Resync from autoconf.
2059         * INSTALL: Regenerate.
2060         * INSTALL.ISO: New file.
2061         * INSTALL.UTF-8: Likewise.
2062
2063 2008-08-26  Jim Meyering  <meyering@redhat.com>
2064
2065         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
2066         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
2067         these definitions conditional, so that they may be overridden, too.
2068
2069 2008-08-26  Bruno Haible  <bruno@clisp.org>
2070
2071         Generate INSTALL file variants with prettier quotes.
2072         * doc/Makefile (INSTALL_PRELUDE): New macro.
2073         (INSTALL): Use it.
2074         (INSTALL.ISO, INSTALL.UTF-8): New rules.
2075
2076 2008-08-26  Bruno Haible  <bruno@clisp.org>
2077
2078         Run makeinfo in an English locale.
2079         * doc/Makefile (MAKEINFO): New variable.
2080
2081 2008-08-26  Bruno Haible  <bruno@clisp.org>
2082
2083         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
2084         Suggested by Eric Blake.
2085
2086 2008-08-25  Bruno Haible  <bruno@clisp.org>
2087
2088         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
2089
2090 2008-08-25  Eric Blake  <ebb9@byu.net>
2091
2092         c-stack: test that stack overflow can be caught
2093         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
2094         that platform allows handling stack overflow; at least OS/2 EMX
2095         has sigaltstack, but crashes before transferring control to
2096         handler on stack overflow.
2097         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
2098         check for HAVE_STACK_OVERFLOW_HANDLING.
2099         Reported by Elbert Pol.
2100
2101 2008-08-25  Bruno Haible  <bruno@clisp.org>
2102
2103         * doc/posix-functions/strftime.texi: Fix description of strftime
2104         module.
2105
2106 2008-08-24  Bruno Haible  <bruno@clisp.org>
2107
2108         * tests/uniwidth/test-uc_width2.c: New file.
2109         * tests/uniwidth/test-uc_width2.sh: New file.
2110         * modules/uniwidth/width-tests (Files): Add the new files.
2111         (TESTS): Add uniwidth/test-uc_width2.sh.
2112         (TESTS_ENVIRONMENT): New variable.
2113         (check_PROGRAMS): Add test-uc_width2.
2114         (test_uc_width2_SOURCES): New variable.
2115
2116         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
2117         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
2118         not 0x00AB.
2119         Reported by Alexander V. Lukyanov <lav@netis.ru>.
2120
2121 2008-08-22  Eric Blake  <ebb9@byu.net>
2122
2123         test-lock, test-tls: mention why a test is skipped
2124         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
2125         skipped.
2126         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
2127
2128         count-one-bits: relax license
2129         * modules/count-one-bits (License): Relicense to LGPLv2+.
2130         Suggested by Ludovic Courtès, approved by Ben Pfaff.
2131
2132 2008-08-22  Andreas Schwab  <schwab@suse.de>
2133
2134         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
2135         Remove spurious space in assignment.
2136
2137 2008-08-21  Simon Josefsson  <simon@josefsson.org>
2138
2139         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
2140         Paul Eggert <eggert@CS.UCLA.EDU>.
2141
2142 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
2143
2144         * modules/gettext: Add m4/threadlib.m4.
2145
2146 2008-08-19  Eric Blake  <ebb9@byu.net>
2147
2148         test-c-stack: fix compilation failure on FreeBSD 5.0
2149         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
2150         headers before <sys/resource.h>.
2151         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
2152         the bug.
2153         Reported by Nelson H. F. Beebe.
2154
2155         strverscmp: migrate from "strverscmp.h" to <string.h>
2156         * modules/string (Makefile.am): Add new hooks.
2157         * modules/strverscmp (Files): Remove strverscmp.h.
2158         (Depends-on): Add string.
2159         (configure.ac): Add indicator.
2160         (Include): Mention new header.
2161         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
2162         defaults.
2163         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
2164         results.
2165         * lib/strverscmp.h: Delete.
2166         * lib/string.in.h (strverscmp): Provide declaration, when needed.
2167         * tests/test-strverscmp.c (includes): Adjust client.
2168         * lib/check-version.c (includes): Likewise.
2169         * NEWS: Document the change.
2170
2171         strverscmp: add unit test
2172         * modules/strverscmp-tests: New file.
2173         * tests/test-strverscmp.c: Likewise.
2174
2175 2008-08-19  Simon Josefsson  <simon@josefsson.org>
2176
2177         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
2178         regarding Windows crypto stuff, from Mono.
2179
2180 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
2181
2182         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
2183         if present, for intel RND.  Return error on failures.
2184
2185 2008-08-18  Ben Pfaff  <blp@gnu.org>
2186
2187         gitlog-to-changelog: give better diagnostic for failed pipe-open
2188         * build-aux/gitlog-to-changelog: Improve error message: suggest
2189         that the version of Git may be too old.
2190
2191 2008-08-18  Simon Josefsson  <simon@josefsson.org>
2192
2193         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
2194         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
2195
2196 2008-08-18  Bruno Haible  <bruno@clisp.org>
2197
2198         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
2199         pthread_in_use().
2200
2201 2008-08-18  Bruno Haible  <bruno@clisp.org>
2202
2203         * lib/glthread/threadlib.c: Include <pthread.h>.
2204
2205 2008-08-18  Bruno Haible  <bruno@clisp.org>
2206
2207         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
2208         glthread_recursive_lock_* macros.
2209         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
2210         Fix syntax error.
2211
2212 2008-08-18  Bruno Haible  <bruno@clisp.org>
2213
2214         * lib/glthread/thread.c: Avoid forcing a context switch right after
2215         thread creation.
2216
2217 2008-08-17  Bruno Haible  <bruno@clisp.org>
2218
2219         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
2220         * lib/glthread/thread.h: Provide Win32 specific implementation.
2221         * modules/thread (Files): Add lib/glthread/thread.c.
2222         (Depends-on): Add lock.
2223         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
2224
2225 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
2226
2227         New module 'yield'.
2228         * modules/yield: New file.
2229         * lib/glthread/yield.h: New file.
2230         * m4/yield.m4: New file.
2231         * MODULES.html.sh (Multithreading): Add yield.
2232
2233 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
2234
2235         New module 'thread'.
2236         * modules/thread: New file.
2237         * lib/glthread/thread.h: New file.
2238         * m4/thread.m4: New file.
2239         * MODULES.html.sh (Multithreading): Add thread.
2240
2241 2008-08-17  Bruno Haible  <bruno@clisp.org>
2242
2243         * lib/glthread/lock.h: Include <stdlib.h> always.
2244         * lib/glthread/tls.h: Likewise.
2245         * lib/glthread/cond.h: Likewise.
2246
2247 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
2248
2249         New module 'cond'.
2250         * modules/cond: New file.
2251         * lib/glthread/cond.h: New file.
2252         * lib/glthread/cond.c: New file.
2253         * m4/cond.m4: New file.
2254         * MODULES.html.sh (Multithreading): Add cond.
2255
2256 2008-08-16  Eric Blake  <ebb9@byu.net>
2257
2258         c-stack: fix regression on Irix 5.3 from 2008-06-21
2259         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
2260         sa_sigaction...
2261         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
2262         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
2263         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
2264         * modules/signal (Makefile.am): Use the value.
2265         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
2266         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
2267         * doc/posix-headers/signal.texi (signal.h): Document this
2268         portability issue.
2269         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
2270         Reported by Tom G. Christensen.
2271
2272 2008-08-17  Bruno Haible  <bruno@clisp.org>
2273
2274         New module 'threadlib'.
2275         * modules/threadlib: New file.
2276         * lib/glthread/threadlib.c: New file, extracted from
2277         lib/glthread/lock.c.
2278         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
2279         functions.
2280         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
2281         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
2282         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
2283         macros.
2284         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
2285         (gl_DISABLE_THREADS): Remove macro.
2286         * modules/lock (Files): Remove build-aux/config.rpath.
2287         (Depends-on): Remove havelib. Add threadlib.
2288         (configure.ac-early): Remove section.
2289         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
2290         * modules/tls (Depends-on): Remove lock. Add threadlib.
2291         (Link): New section, copied from threadlib.
2292         * MODULES.html.sh (Multithreading): Add threadlib.
2293
2294 2008-08-14  Bruno Haible  <bruno@clisp.org>
2295
2296         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
2297         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
2298         glthread_rwlock_unlock, glthread_rwlock_destroy,
2299         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
2300         glthread_recursive_lock_destroy): Define as macros always.
2301         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
2302         glthread_lock_lock.
2303         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
2304         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
2305         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
2306         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
2307         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
2308         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
2309         (glthread_recursive_lock_lock_func): Renamed from
2310         glthread_recursive_lock_lock.
2311         (glthread_recursive_lock_unlock_func): Renamed from
2312         glthread_recursive_lock_unlock.
2313         (glthread_recursive_lock_destroy_func): Renamed from
2314         glthread_recursive_lock_destroy.
2315
2316 2008-08-14  Bruno Haible  <bruno@clisp.org>
2317
2318         * lib/glthread/lock.h: Renamed from lib/lock.h.
2319         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
2320         * lib/glthread/tls.h: Renamed from lib/tls.h.
2321         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
2322         * lib/fstrcmp.c: Update includes.
2323         * lib/strsignal.c: Update includes.
2324         * modules/lock (Files, Makefile.am): Update.
2325         (Include): Change to "glthread/lock.h".
2326         * modules/tls (Files, Makefile.am): Update.
2327         (Include): Change to "glthread/tls.h".
2328         * tests/test-lock.c: Update includes.
2329         * tests/test-tls.c: Update includes.
2330         * NEWS: Mention the renamed header files.
2331
2332 2008-08-11  Jim Meyering  <meyering@redhat.com>
2333
2334         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
2335
2336 2008-08-11  Eric Blake  <ebb9@byu.net>
2337
2338         test-c-stack: avoid C99-ism
2339         * tests/test-c-stack.c (main): Fix whitespace, move declaration
2340         before statement.
2341         Reported by Alain Guibert.
2342
2343 2008-08-10  Jim Meyering  <meyering@redhat.com>
2344
2345         ensure that return value of uinttostr et al are not ignored
2346         * lib/inttostr.h (__GNUC_PREREQ): Define.
2347         (__attribute_warn_unused_result__): Define.
2348         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
2349
2350 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
2351
2352         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
2353         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
2354
2355 2008-08-07  Jim Meyering  <meyering@redhat.com>
2356
2357         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
2358
2359         * modules/mkstemp (License): Relicense under LGPLv2+.
2360         * modules/tempname (License): Likewise.
2361
2362 2008-08-06  Bruno Haible  <bruno@clisp.org>
2363
2364         * lib/poll.c (poll): Further micro-optimization.
2365
2366 2008-08-06  Jim Meyering  <meyering@redhat.com>
2367
2368         inet_pton.c: use locale-independent tolower
2369         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
2370         (inet_pton6): Use c_tolower rather than tolower.
2371         * modules/inet_pton (Depends-on): Add c-ctype.
2372
2373 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
2374
2375         * lib/poll.c (poll): Avoid division when timeout is 0, cache
2376         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
2377
2378 2008-08-06  Jim Meyering  <meyering@redhat.com>
2379
2380         * modules/inet_pton (License): Relicense under LGPLv2+.
2381
2382 2008-08-03  Bruno Haible  <bruno@clisp.org>
2383
2384         Additional non-aborting API for lock and tls.
2385         * lib/lock.h: Include <errno.h>.
2386         (glthread_lock_init): New macro/function.
2387         (gl_lock_init): Define as wrapper around glthread_lock_init.
2388         (glthread_lock_lock): New macro/function.
2389         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
2390         (glthread_lock_unlock): New macro/function.
2391         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
2392         (glthread_lock_destroy): New macro/function.
2393         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
2394         (glthread_rwlock_init): New macro/function.
2395         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
2396         (glthread_rwlock_rdlock): New macro/function.
2397         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
2398         (glthread_rwlock_wrlock): New macro/function.
2399         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
2400         (glthread_rwlock_unlock): New macro/function.
2401         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
2402         (glthread_rwlock_destroy): New macro/function.
2403         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
2404         (glthread_recursive_lock_init): New macro/function.
2405         (gl_recursive_lock_init): Define as wrapper around
2406         glthread_recursive_lock_init.
2407         (glthread_recursive_lock_lock): New macro/function.
2408         (gl_recursive_lock_lock): Define as wrapper around
2409         glthread_recursive_lock_lock.
2410         (glthread_recursive_lock_unlock): New macro/function.
2411         (gl_recursive_lock_unlock): Define as wrapper around
2412         glthread_recursive_lock_unlock.
2413         (glthread_recursive_lock_destroy): New macro/function.
2414         (gl_recursive_lock_destroy): Define as wrapper around
2415         glthread_recursive_lock_destroy.
2416         (glthread_once): New macro/function.
2417         (gl_once): Define as wrapper around glthread_once.
2418         Update function declarations.
2419         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
2420         glthread_rwlock_init. Return error code.
2421         (glthread_rwlock_rdlock_multithreaded): Renamed from
2422         glthread_rwlock_rdlock. Return error code.
2423         (glthread_rwlock_wrlock_multithreaded): Renamed from
2424         glthread_rwlock_wrlock. Return error code.
2425         (glthread_rwlock_unlock_multithreaded): Renamed from
2426         glthread_rwlock_unlock. Return error code.
2427         (glthread_rwlock_destroy_multithreaded): Renamed from
2428         glthread_rwlock_destroy. Return error code.
2429         (glthread_recursive_lock_init_multithreaded): Renamed from
2430         glthread_recursive_lock_init. Return error code.
2431         (glthread_recursive_lock_lock_multithreaded): Renamed from
2432         glthread_recursive_lock_lock. Return error code.
2433         (glthread_recursive_lock_unlock_multithreaded): Renamed from
2434         glthread_recursive_lock_unlock. Return error code.
2435         (glthread_recursive_lock_destroy_multithreaded): Renamed from
2436         glthread_recursive_lock_destroy. Return error code.
2437         (glthread_once_call): Make static.
2438         (glthread_once_multithreaded): Renamed from glthread_once.
2439         * lib/tls.h: Include <errno.h>.
2440         (glthread_tls_key_init): New macro/function.
2441         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
2442         (glthread_tls_set): New macro/function.
2443         (gl_tls_set): Define as wrapper around glthread_tls_set.
2444         (glthread_tls_key_destroy): New macro/function.
2445         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
2446         Update function declarations.
2447         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
2448         glthread_tls_get.
2449         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
2450
2451 2008-08-04  Eric Blake  <ebb9@byu.net>
2452
2453         gnumakefile: use space, not TAB, outside of targets
2454         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
2455
2456 2008-08-02  Jim Meyering  <meyering@redhat.com>
2457
2458         getdate.y: avoid locale-dependent date parsing failure
2459         In Turkish locales, getdate would fail to recognize keywords
2460         containing a lowercase "i".  The solution is not to rely on
2461         locale-sensitive case-conversion.
2462         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
2463         (lookup_word): Use c_toupper in place of toupper.
2464         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
2465         Reported by Vefa Bicakci <bicave@superonline.com> in
2466         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
2467         * modules/getdate (Depends-on): Add c-ctype.
2468
2469 2008-08-02  Bruno Haible  <bruno@clisp.org>
2470
2471         * gnulib-tool (func_import): When updating or creating a .gitignore
2472         file, prepend each added line with a slash, and ignore leading slashes
2473         from the existing lines.
2474         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
2475
2476 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2477
2478         Portability fix for GNU make 3.79.1.
2479         * top/GNUmakefile: Avoid 'else COND', which older GNU make
2480         versions do not understand.
2481
2482 2008-08-01  Bruno Haible  <bruno@clisp.org>
2483
2484         Work around bug of HP-UX 10.20 cc with -0.0 literal.
2485         * tests/test-isnanf.h (zero): New variable.
2486         (main): Avoid literal -0.0f.
2487         * tests/test-isnand.h (zero): New variable.
2488         (main): Avoid literal -0.0.
2489         * tests/test-isnanl.h (zero): New variable.
2490         (main): Avoid literal -0.0L.
2491         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
2492         (test_float, test_double, test_long_double): Avoid literals -0.0f,
2493         -0.0, -0.0L.
2494         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
2495         (test_signbitd): Avoid literal -0.0.
2496         (test_signbitl): Avoid literal -0.0L.
2497         * tests/test-ceilf1.c (zero): New variable.
2498         (main): Avoid literal -0.0f.
2499         * tests/test-ceill.c (zero): New variable.
2500         (main): Avoid literal -0.0L.
2501         * tests/test-floorf1.c (zero): New variable.
2502         (main): Avoid literal -0.0f.
2503         * tests/test-floorl.c (zero): New variable.
2504         (main): Avoid literal -0.0L.
2505         * tests/test-roundf1.c (zero): New variable.
2506         (main): Avoid literal -0.0f.
2507         * tests/test-round1.c (zero): New variable.
2508         (main): Avoid literal -0.0.
2509         * tests/test-roundl.c (zero): New variable.
2510         (main): Avoid literal -0.0L.
2511         * tests/test-truncf1.c (zero): New variable.
2512         (main): Avoid literal -0.0f.
2513         * tests/test-trunc1.c (zero): New variable.
2514         (main): Avoid literal -0.0.
2515         * tests/test-truncl.c (zero): New variable.
2516         (main): Avoid literal -0.0L.
2517         * tests/test-frexp.c (zero): New variable.
2518         (main): Avoid literal -0.0.
2519         * tests/test-frexpl.c (zero): New variable.
2520         (main): Avoid literal -0.0L.
2521         * tests/test-ldexpl.c (zero): New variable.
2522         (main): Avoid literal -0.0L.
2523         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
2524         (zerod, zerol): New variables.
2525         (test_function): Avoid literals -0.0, -0.0L.
2526         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
2527         (zerod, zerol): New variables.
2528         (test_function): Avoid literals -0.0, -0.0L.
2529         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
2530         (zerod, zerol): New variables.
2531         (test_function): Avoid literals -0.0, -0.0L.
2532         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
2533         (zerod, zerol): New variables.
2534         (test_function): Avoid literals -0.0, -0.0L.
2535         * tests/test-strtod.c (zero): New variable.
2536         (main): Avoid literal -0.0.
2537         Reported by Jonathan C. Patschke <jp@centtech.com>.
2538
2539 2008-07-31  Jim Meyering  <meyering@redhat.com>
2540
2541         sha256.h: correct definition of SHA224_DIGEST_SIZE
2542         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
2543         Reported by Paulie Pena IV <paulie4@gmail.com>.
2544         Define as 224 / 8, rather than as a literal.
2545         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
2546         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
2547         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
2548
2549 2008-07-31  Bruno Haible  <bruno@clisp.org>
2550
2551         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
2552         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
2553         Reported by Jonathan Patschke <jp@centtech.com>.
2554
2555 2008-07-31  Bruno Haible  <bruno@clisp.org>
2556
2557         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
2558         Reported by Paolo Bonzini <bonzini@gnu.org>.
2559
2560 2008-07-30  Eric Blake  <ebb9@byu.net>
2561
2562         test-strtod: allow compilation without -lm
2563         * tests/test-strtod.c (main): Avoid link dependence on fabs.
2564         Reported by Dennis Clarke <blastwave@gmail.com>.
2565
2566 2008-07-28  Jim Meyering  <meyering@redhat.com>
2567
2568         bootstrap: work also when there are no .po files in po/
2569         * build-aux/bootstrap (update_po_files): Complete the change
2570         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
2571
2572 2008-07-27  Jim Meyering  <meyering@redhat.com>
2573
2574         * users.txt: Add zile.
2575
2576 2008-07-26  Ben Pfaff  <blp@gnu.org>
2577
2578         Add missing dependencies on new m4/exponent[fdl].m4 files.
2579         * modules/isnanf-nolibm: Add m4/exponentf.m4.
2580         * modules/isnand-nolibm: Add m4/exponentd.m4.
2581         * modules/isnanl-nolibm: Add m4/exponentl.m4.
2582         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
2583         m4/isnan[fdl].m4, because the macros actually used moved.
2584         Reported by Jim Meyering.
2585
2586 2008-07-14  Ben Pfaff  <blp@gnu.org>
2587
2588         Add isinf module.
2589         * lib/isinf.c: New file.
2590         * lib/math.in.h: Define isinf macro if we have decided to replace
2591         it.
2592         * m4/isinf.m4: New file.
2593         * m4/math_h.m4: Initialize and substitute variables for isinf
2594         module.
2595         * modules/isinf: New file.
2596         * modules/isinf-tests: New file.
2597         * modules/math: Add substitutions for new module.
2598         * tests/test-isinf.c: New file.
2599         * doc/posix-functions/isinf.texi: Mention new module.
2600         * MODULES.html.sh: Mention new module.
2601
2602 2008-07-14  Ben Pfaff  <blp@gnu.org>
2603
2604         Factor out some macros for use by additional modules.
2605         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
2606         exponentf.m4.
2607         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
2608         exponentd.m4.
2609         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
2610         file exponentl.m4.
2611         * m4/exponentf.m4: New file.
2612         * m4/exponentd.m4: New file.
2613         * m4/exponentl.m4: New file.
2614         * modules/isnanf: Use new file m4/exponentf.m4.
2615         * modules/isnand: Use new file m4/exponentd.m4.
2616         * modules/isnanl: Use new file m4/exponentl.m4.
2617
2618 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
2619
2620         mktime.c: normalize tp->tm_isdst value to -1/0/1.
2621         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
2622         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
2623         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
2624
2625         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
2626         readlink on platforms without PATH_MAX.
2627
2628 2008-07-21  Eric Blake  <ebb9@byu.net>
2629
2630         Warn, not fail, on stale version.
2631         * top/GNUmakefile (_curr-ver): Tone down previous patch.
2632
2633         Don't allow installation with stale devel version number.
2634         * top/GNUmakefile (_is-install-target): New macro.
2635         (_curr-ver): Forbid installation with stale version number.
2636
2637 2008-07-20  Bruno Haible  <bruno@clisp.org>
2638
2639         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
2640         TESTS_ENVIRONMENT.
2641         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
2642
2643 2008-07-20  Bruno Haible  <bruno@clisp.org>
2644
2645         * lib/c-stack.h (c_stack_action): Add documentation.
2646         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
2647
2648 2008-07-20  Bruno Haible  <bruno@clisp.org>
2649
2650         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
2651         * modules/readlink (License): Likewise.
2652
2653 2008-07-17  Eric Blake  <ebb9@byu.net>
2654
2655         * modules/c-stack (Link): Fix typo.
2656
2657         Make c-stack use libsigsegv, when available.
2658         * modules/c-stack (Depends-on): Add libsigsegv.
2659         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
2660         needed.
2661         * lib/c-stack.c (SIGSTKSZ): Define fallback.
2662         (segv_handler, overflow_handler, c_stack_action)
2663         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
2664         implementation when libsigsegv is available, but only when using
2665         the library is necessary.
2666         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
2667         comment, explaining why XSI check fails on Linux.
2668         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
2669         * tests/test-c-stack2.sh: Tweak skip message.
2670         * NEWS: Document new link-time requirements.
2671
2672 2008-07-16  Eric Blake  <ebb9@byu.net>
2673
2674         c-stack: Expose false positives when not using libsigsegv.
2675         * modules/c-stack-tests (Files): Expand test.
2676         * tests/test-c-stack.c (main): Add means to conditionally trigger
2677         non-overflow SIGSEGV.
2678         * tests/test-c-stack2.sh: New file.
2679
2680 2008-07-14  Bruno Haible  <bruno@clisp.org>
2681
2682         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
2683         Reported by Eric Blake.
2684
2685 2008-07-14  Sam Steingold  <sds@gnu.org>
2686             Bruno Haible  <bruno@clisp.org>
2687
2688         New module libsigsegv.
2689         * modules/libsigsegv: New file.
2690         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
2691         modifications.
2692         * MODULES.html.sh (Signal handling): New section.
2693
2694 2008-07-14  Bruno Haible  <bruno@clisp.org>
2695
2696         * modules/unictype/ctype-* (Description): Add the word "function".
2697         Improves the resulting doc in MODULES.html.
2698
2699 2008-07-12  Ben Pfaff  <blp@gnu.org>
2700
2701         Add longlong module.
2702         * modules/longlong: New file.
2703
2704 2008-07-12  Bruno Haible  <bruno@clisp.org>
2705
2706         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
2707         to empty.
2708
2709 2008-07-10  Ben Pfaff  <blp@gnu.org>
2710
2711         Add isnan module.
2712         * doc/posix-functions/isnan.texi: Mention new module.
2713         * lib/math.in.h: Define isnan macro if we have decided to replace
2714         it.
2715         * m4/isnan.m4: New file.
2716         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
2717         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
2718         also.
2719         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
2720         redundancy.
2721         * m4/math_h.m4: Initialize and substitute variables for isnan
2722         module.
2723         * modules/isnan: New file.
2724         * modules/isnan-tests: New file.
2725         * modules/math: Add substitutions for new module.
2726         * tests/test-isnan.c: New file.
2727         * MODULES.html.sh: Mention new module.
2728
2729 2008-07-10  Ben Pfaff  <blp@gnu.org>
2730
2731         Add isnanf module.
2732         * lib/isnanf.m4: New file.
2733         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
2734         (gl_HAVE_ISNANF_IN_LIBM): New macro.
2735         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
2736         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
2737         * modules/isnanf: New file.
2738         * modules/isnanf-tests: New file.
2739         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
2740         files.
2741         * tests/test-isnanf-nolibm.c: factored most of its contents into
2742         new file tests/test-isnanf.h.
2743         * tests/test-isnanf.h: New file.
2744         * tests/test-isnanf.c: New file.
2745         * MODULES.html.sh: Mention new module.
2746         * doc/glibc-functions/isnanf.texi: Mention new module.
2747
2748 2008-07-10  Ben Pfaff  <blp@gnu.org>
2749
2750         Add isnand module.
2751         * lib/isnand.h: New file.
2752         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
2753         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
2754         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
2755         functionality also.
2756         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
2757         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
2758         (gl_HAVE_ISNAND_IN_LIBM): New macro.
2759         * modules/isnand: New file.
2760         * modules/isnand-tests: New file.
2761         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
2762         files.
2763         * tests/test-isnand-nolibm.c: factored most of its contents into
2764         new file tests/test-isnand.h.
2765         * tests/test-isnand.h: New file.
2766         * tests/test-isnand.c: New file.
2767         * MODULES.html.sh: Mention new module.
2768
2769 2008-07-10  Ben Pfaff  <blp@gnu.org>
2770
2771         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
2772         * lib/isnand.h: Rename lib/isnand-nolibm.h.
2773         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
2774         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
2775         * modules/isnanf-nolibm: Update references to renamed files.
2776         * modules/isnand-nolibm: Likewise.
2777         * modules/isnanf-nolibm-tests: Likewise.
2778         * modules/isnand-nolibm-tests: Likewise.
2779         * lib/frexp.c: Likewise.
2780         * lib/isfinite.c: Likewise.
2781         * lib/signbitd.c: Likewise.
2782         * lib/signbitf.c: Likewise.
2783         * lib/vasnprintf.c: Likewise.
2784         * tests/test-ceilf1.c: Likewise.
2785         * tests/test-ceilf2.c: Likewise.
2786         * tests/test-floorf1.c: Likewise.
2787         * tests/test-floorf2.c: Likewise.
2788         * tests/test-frexp.c: Likewise.
2789         * tests/test-round1.c: Likewise.
2790         * tests/test-round2.c: Likewise.
2791         * tests/test-roundf1.c: Likewise.
2792         * tests/test-strtod.c: Likewise.
2793         * tests/test-trunc1.c: Likewise.
2794         * tests/test-trunc2.c: Likewise.
2795         * tests/test-truncf1.c: Likewise.
2796         * tests/test-truncf2.c: Likewise.
2797         * NEWS: Mention the renamed header files.
2798
2799 2008-07-11  Jim Meyering  <meyering@redhat.com>
2800
2801         vc-list-files: make the last-resort awk code more portable
2802         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
2803         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
2804         does not support it.
2805
2806 2008-07-10  Eric Blake  <ebb9@byu.net>
2807
2808         Work with tar's bootstrap.
2809         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
2810         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
2811         an m4 comment.
2812
2813 2008-07-09  Jim Meyering  <meyering@redhat.com>
2814
2815         posix-shell.m4: fix typo that made this test malfunction
2816         * m4/posix-shell.m4: Remove capitalization in variable name.
2817
2818 2008-07-08  Bruno Haible  <bruno@clisp.org>
2819
2820         * m4/onceonly.m4: Update comments.
2821         Reported by Ben Pfaff <blp@cs.stanford.edu>.
2822
2823 2008-07-04  Jim Meyering  <meyering@redhat.com>
2824
2825         * users.txt: Add vc-dwim.
2826         (bison, coreutils): Use the gitweb URL.
2827
2828 2008-07-03  Jim Meyering  <meyering@redhat.com>
2829
2830         * users.txt: Add libffcall.  From Sam Steingold.
2831
2832 2008-07-03  Ondřej Vašík  <ovasik@redhat.com>
2833
2834         getdate.y: do not ignore TZ with relative day, month or year offset
2835         * lib/getdate.y (get_date): Move the tz-handling block to follow the
2836         relative-date-handling, since otherwise, the latter would clobber the
2837         sole output (an updated Start value) of the tz-handling block.
2838         * tests/test-getdate.c: Tests for the fix
2839
2840 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2841
2842         Recognize 'foo_LIBRARIES += libgnu.a'.
2843         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
2844         makefile snippet has already specified an installation location,
2845         also using '+='.
2846
2847 2008-07-02  Ondřej Vašík  <ovasik@redhat.com>
2848
2849         getdate.y: factor out common actions
2850         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
2851         Use them in place of open-coded actions.
2852
2853 2008-07-01  Simon Josefsson  <simon@josefsson.org>
2854
2855         Add self-test for getdate module.
2856         * modules/getdate-tests: New file.
2857         * tests/test-getdate.c: New file.
2858
2859 2008-06-29  Bruno Haible  <bruno@clisp.org>
2860
2861         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
2862         .gitignore.
2863         Reported by Sylvain Beucler <beuc@beuc.net>.
2864
2865 2008-06-29  Bruno Haible  <bruno@clisp.org>
2866
2867         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
2868         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
2869
2870 2008-06-29  Bruno Haible  <bruno@clisp.org>
2871
2872         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
2873         EXTRA_DIST.
2874         Reported by Sylvain Beucler <beuc@beuc.net>.
2875
2876 2008-06-26  Jim Meyering  <meyering@redhat.com>
2877
2878         make several modules depend on the "open" module
2879         This provides slightly increased consistency when opening-for-write
2880         the name of a non-directory spelled with a trailing slash.
2881         * modules/chdir-safer: Likewise.
2882         * modules/chown: Likewise.
2883         * modules/clean-temp: Likewise.
2884         * modules/copy-file: Likewise.
2885         * modules/fchdir: Likewise.
2886         * modules/fcntl-safer: Likewise.
2887         * modules/pipe: Likewise.
2888         * modules/utime: Likewise.
2889         Prompted by Eric Blake and Bruno Haible.
2890
2891 2008-06-24  Andreas Schwab  <schwab@suse.de>
2892
2893         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
2894         literals can be used as initializers for global variables.
2895
2896 2008-06-23  Eric Blake  <ebb9@byu.net>
2897
2898         Make gnulib-cache.m4 easier to diff.
2899         * gnulib-tool (func_import): Allow newlines when reading cached
2900         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
2901
2902 2008-06-23  Bruno Haible  <bruno@clisp.org>
2903
2904         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
2905         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
2906         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
2907         m4/signalblocking.m4.
2908         (gl_PREREQ_SIGACTION): Don't invoke it.
2909         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
2910         gl_PREREQ_SIG_HANDLER_H.
2911         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
2912         Don't check for sigaction here.
2913
2914 2008-06-23  Bruno Haible  <bruno@clisp.org>
2915
2916         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
2917         (install_handlers): Don't set the SA_RESETHAND flag.
2918
2919 2008-06-23  Bruno Haible  <bruno@clisp.org>
2920
2921         * m4/sigaction.m4: Comment fixes.
2922         * lib/signal.in.h: Likewise.
2923
2924 2008-06-23  Eric Blake  <ebb9@byu.net>
2925
2926         Fix typo.
2927         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
2928
2929         Avoid SA_ namespace.
2930         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
2931         Reported by Ralf Wildenhues.
2932
2933         Avoid test failure due to SA_RESTORER.
2934         * tests/test-sigaction.c (SA_MASK): New macro.
2935         (main): Avoid failing due to extension flags being set.
2936         Reported by Jim Meyering.
2937
2938         Revert use of sig-handler.h in sigprocmask.c.
2939         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
2940         it requires the existence of struct sigaction.
2941         * lib/sigprocmask.c (handler_t): Restore typedef.
2942         (rpl_signal, old_handlers): Use local type.
2943
2944 2008-06-22  Bruno Haible  <bruno@clisp.org>
2945
2946         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
2947         conditionally.
2948         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
2949
2950 2008-06-22  Bruno Haible  <bruno@clisp.org>
2951
2952         * doc/posix-functions/siginterrupt.texi: Move note.
2953
2954         * lib/signal.in.h (SA_RESTART): New macro.
2955         * lib/sigaction.c: Update comment.
2956
2957         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
2958
2959         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
2960         (gl_PREREQ_SIGPROCMASK): Invoke it.
2961         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
2962
2963         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
2964
2965         * lib/sigprocmask.c: Update a comment.
2966
2967 2008-06-21  Eric Blake  <ebb9@byu.net>
2968
2969         Use sigaction module rather than signal().
2970         * modules/c-stack (Depends-on): Add sigaction.
2971         * modules/fatal-signal (Depends-on): Likewise.
2972         * modules/nanosleep (Depends-on): Likewise.
2973         * modules/sigprocmask (Files): Add sig-handler.h.
2974         * modules/sigaction (Files): Likewise.
2975         * lib/sig-handler.h (get_handler): New file, suggested by Paul
2976         Eggert.
2977         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
2978         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
2979         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
2980         (init_fatal_signals): Likewise.
2981         * lib/nanosleep.c (rpl_nanosleep): Likewise.
2982         (siginterrupt): Delete fallback.
2983         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
2984         instead.
2985         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
2986         siginterrupt.
2987
2988         New module sigaction, for mingw.
2989         * modules/sigaction: New module...
2990         * modules/sigaction-tests: ...and its test.
2991         * m4/sigaction.m4: New file.
2992         * lib/sigaction.c: Likewise.
2993         * tests/test-sigaction.c: Likewise.
2994         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
2995         * modules/signal (Makefile.am): Likewise.
2996         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
2997         needed.
2998         * doc/posix-headers/signal.texi (signal.h): Mention provided
2999         types.
3000         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
3001         that sigaction is preferable.
3002         * doc/posix-functions/sigaction.texi (sigaction): Mention new
3003         module.
3004         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
3005         sigaction.
3006
3007         Improve robustness of sigprocmask by overriding signal.
3008         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
3009         is in use.
3010         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
3011         (SIGKILL, SIGSTOP): Provide fallbacks.
3012         (rpl_signal): Implement.
3013         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
3014         signal can be called inside handlers.
3015
3016         Fix nanosleep module on mingw.
3017         * modules/nanosleep (Depends-on): Add sys_select.
3018         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
3019
3020         Fix licensing of sigprocmask.
3021         * modules/raise (License): Relicense as LGPL.
3022
3023 2008-06-21  Bruno Haible  <bruno@clisp.org>
3024
3025         * lib/propername.c (proper_name_utf8): Don't use the transliterated
3026         result if it contains question marks.
3027         Reported by Michael Geng <linux@michaelgeng.de>.
3028
3029 2008-06-19  Bruno Haible  <bruno@clisp.org>
3030
3031         Fix CVS-ism.
3032         * doc/gnulib.texi: Include updated-stamp.texi.
3033         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
3034         (updated-stamp.texi): New rule.
3035         (gnulib.info): Depend on it.
3036         * doc/.gitignore: Add updated-stamp.texi.
3037         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
3038
3039 2008-06-19  Bruno Haible  <bruno@clisp.org>
3040
3041         * doc/Makefile (gnulib.info): Update and simplify dependencies.
3042         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
3043
3044 2008-06-19  Eric Blake  <ebb9@byu.net>
3045
3046         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
3047         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
3048         Reported by Stepan Kasal.
3049
3050 2008-06-18  Bruno Haible  <bruno@clisp.org>
3051
3052         * lib/fatal-signal.c (init_fatal_signals): Add comment.
3053         Reported by Eric Blake.
3054
3055 2008-06-18  Eric Blake  <ebb9@byu.net>
3056
3057         Work around cygwin 1.5.25 strsignal bug.
3058         * tests/test-strsignal.c: Allow for const char *.
3059         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
3060
3061 2008-06-18  Simon Josefsson  <simon@josefsson.org>
3062
3063         * users.txt: Update URL to article and add author/date
3064         information.
3065
3066 2008-06-17  Bruno Haible  <bruno@clisp.org>
3067
3068         New macro gl_DISABLE_THREADS.
3069         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
3070         if the user did not pass --enable-threads or --disable-threads option.
3071         (gl_DISABLE_THREADS): New macro.
3072         Reported by Eric Blake <ebb9@byu.net>.
3073
3074 2008-06-17  Bruno Haible  <bruno@clisp.org>
3075
3076         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
3077         when the macro ignores it.
3078         Based on a patch by Eric Blake <ebb9@byu.net>.
3079
3080 2008-06-17  Bruno Haible  <bruno@clisp.org>
3081
3082         * modules/tls (License): Change to LGPLv2+.
3083         Reported by Eric Blake.
3084
3085 2008-06-17  Eric Blake  <ebb9@byu.net>
3086
3087         Simplify c-stack prerequisites.
3088         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
3089         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
3090         no longer requires <ucontext.h> to exist.  Optimize setrlimit
3091         check.
3092         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
3093         <sys/resource.h>.
3094
3095         Move c-stack test into testsuite.
3096         * modules/c-stack-tests: New file.
3097         * lib/c-stack.c [DEBUG]: Move test program...
3098         * tests/test-c-stack.c: ...into this new file.  Skip rather than
3099         fail test if sigaltstack is lacking.
3100         * tests/test-c-stack.sh: New driver file.
3101
3102 2008-06-16  Eric Blake  <ebb9@byu.net>
3103
3104         Use raise module consistently.
3105         * modules/fatal-signal (Depends-on): Add raise.
3106         * modules/sigprocmask (Depends-on): Likewise.
3107         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
3108         * lib/sigprocmask.c (sigprocmask): Likewise.
3109         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
3110         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
3111
3112         Fix compliance bug in sigpending.
3113         * lib/sigprocmask.c (sigpending): Return pending array via
3114         parameter, not return value.
3115
3116 2008-06-14  Eric Blake  <ebb9@byu.net>
3117
3118         Improve obstack-printf test code.
3119         * tests/test-obstack-printf.c (test_function): Fix comment, and
3120         simplify usage of obstack_* in macros.  Add a test for coverage.
3121         Reported by Bruno Haible.
3122
3123 2008-06-14  Bruno Haible  <bruno@clisp.org>
3124
3125         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
3126         array size as a constant, not as a const variable.
3127         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
3128         AC_USE_SYSTEM_EXTENSIONS.
3129         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
3130         Test whether the obstack_printf function actually exists.
3131         * modules/obstack-printf (Depends-on): Add extensions.
3132         (Include): Remove obstack.h.
3133         * modules/obstack-printf-posix (Depends-on): Add extensions.
3134         (Include): Remove obstack.h.
3135
3136 2008-06-13  Eric Blake  <ebb9@byu.net>
3137
3138         Add obstack-printf and obstack-printf-posix modules.
3139         * modules/obstack-printf: New file.
3140         * modules/obstack-printf-posix: Likewise.
3141         * MODULES.html.sh (Misc): Mention them.
3142         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
3143         Likewise.
3144         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
3145         Likewise.
3146         * modules/stdio (Makefile.am): Accomodate new modules.
3147         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
3148         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
3149         Declare.
3150         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
3151         functions.
3152         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
3153         (gl_REPLACE_OBSTACK_PRINTF): New macros
3154         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
3155         * tests/test-obstack-printf.c: New file.
3156         * modules/obstack-printf-tests: Likewise.
3157         * modules/obstack-printf-posix-tests: Likewise.
3158
3159 2008-06-11  Bruno Haible  <bruno@clisp.org>
3160
3161         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
3162         * lib/open.c: Include errno.h.
3163         (open): Fail when attempting to write to a file that has a trailing
3164         slash.
3165         * tests/test-open.c (main): Test against trailing slash bug.
3166         * doc/posix-functions/open.texi: Mention the trailing slash bug.
3167
3168 2008-06-10  Bruno Haible  <bruno@clisp.org>
3169
3170         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
3171         for $? to work inside the trap command, with various /bin/sh-s.
3172         * tests/test-vc-list-files-cvs.sh: Likewise.
3173
3174 2008-06-10  Bruno Haible  <bruno@clisp.org>
3175
3176         * lib/acl-internal.h: Don't include gettext.h here.
3177         * lib/set-mode-acl.c: Include gettext.h here.
3178         * lib/copy-acl.c: Likewise.
3179
3180 2008-06-10  Bruno Haible  <bruno@clisp.org>
3181
3182         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
3183         * lib/wait-process.c (wait_subprocess): Likewise.
3184         * lib/execute.h (execute): Add termsigp argument.
3185         * lib/execute.c (execute): Likewise.
3186         * lib/csharpcomp.c (compile_csharp_using_pnet,
3187         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
3188         * lib/csharpexec.c (execute_csharp_using_pnet,
3189         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
3190         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
3191         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
3192         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
3193         is_jikes_present): Update.
3194         * lib/javaexec.c (execute_java_class): Update.
3195         * lib/javaversion.c (execute_and_read_line): Update.
3196         * NEWS: Document the changes.
3197         Reported by Eric Blake.
3198
3199 2008-06-10  Eric Blake  <ebb9@byu.net>
3200
3201         Add missing include.
3202         * tests/test-strstr.c (includes): Add <signal.h>.
3203         * tests/test-strcasestr.c (includes): Likewise.
3204         * tests/test-memmem.c (includes): Likewise.
3205
3206 2008-06-10  Bruno Haible  <bruno@clisp.org>
3207
3208         * lib/wait-process.c (wait_subprocess): Add an assertion.
3209
3210 2008-06-10  Bruno Haible  <bruno@clisp.org>
3211
3212         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
3213
3214 2008-06-10  Bruno Haible  <bruno@clisp.org>
3215
3216         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
3217         using alarm().
3218         * tests/test-strcasestr.c (main): Likewise.
3219         * tests/test-strstr.c (main): Likewise.
3220
3221 2008-06-09  Bruno Haible  <bruno@clisp.org>
3222
3223         Work around the Solaris 10 ACE ACLs ABI change.
3224         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
3225         declare if ACL_NO_TRIVIAL is present.
3226         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
3227         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
3228         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
3229         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
3230         define if ACL_NO_TRIVIAL is present.
3231         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
3232         and use the current ABI.
3233         (file_has_acl): Use same #if condition as elsewhere.
3234         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
3235         in use, and use the current ABI.
3236         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
3237         Reported by Jim Meyering.
3238
3239 2008-06-09  Eric Blake  <ebb9@byu.net>
3240
3241         Work around environments that (stupidly) ignore SIGALRM.
3242         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
3243         before using alarm().
3244         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
3245         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
3246         Reported by Ian Beckwith <ianb@erislabs.net>.
3247
3248         Produce autobuild blurb earlier in log.
3249         * modules/autobuild (configure.ac-early): Move AB_INIT here.
3250
3251 2008-06-09  Jim Meyering  <meyering@redhat.com>
3252         and Ondřej Vašík  <ovasik@redhat.com>
3253
3254         utimens.c: correct kernel bug work-around
3255         Ondřej Vašík found that the invalid return value of 280 indicates
3256         failure, not success, and the kernel bug we're trying to work
3257         around affects not just the utimensat call, but also the fallback
3258         futimens call.
3259         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
3260         not success.
3261         [HAVE_FUTIMENS]: Use the same work-around, here.
3262
3263 2008-06-09  Jim Meyering  <meyering@redhat.com>
3264
3265         add more guards around definition of ACE_-related code
3266         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
3267         ALLOW and ACE_OWNER are also defined.
3268
3269 2008-06-08  Bruno Haible  <bruno@clisp.org>
3270
3271         * lib/acl-internal.h: Add me as co-author.
3272         * lib/file-has-acl.c: Likewise.
3273         * lib/set-mode-acl.c: Likewise.
3274         * lib/copy-acl.c: Likewise.
3275
3276 2008-06-08  Bruno Haible  <bruno@clisp.org>
3277
3278         Add support for AIX ACLs.
3279         * lib/acl-internal.h (acl_nontrivial): New declaration.
3280         * lib/file-has-acl.c (acl_nontrivial): New function.
3281         (file_has_acl): Add implementation using AIX 4 ACL API.
3282         * lib/set-mode-acl.c (qset_acl): Likewise.
3283         * lib/copy-acl.c (qcopy_acl): Likewise.
3284
3285 2008-06-08  Bruno Haible  <bruno@clisp.org>
3286
3287         Add support for HP-UX ACLs.
3288         * lib/acl-internal.h (acl_nontrivial): New declaration.
3289         * lib/file-has-acl.c (acl_nontrivial): New function.
3290         (file_has_acl): Add implementation using HP-UX 11 ACL API.
3291         * lib/set-mode-acl.c (qset_acl): Likewise.
3292         * lib/copy-acl.c (qcopy_acl): Likewise.
3293
3294 2008-06-08  Bruno Haible  <bruno@clisp.org>
3295
3296         Add support for Cygwin ACLs.
3297         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
3298         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
3299         the chmod_or_fchmod call.
3300         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
3301
3302 2008-06-08  Bruno Haible  <bruno@clisp.org>
3303
3304         Fix bug with setuid modes in Solaris 10+ code.
3305         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
3306         succeeded, when the mode contains some special bits.
3307
3308 2008-06-08  Bruno Haible  <bruno@clisp.org>
3309
3310         Add support for Solaris 7..10 ACLs.
3311         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
3312         declarations.
3313         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
3314         functions.
3315         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
3316         * lib/set-mode-acl.c (qset_acl): Likewise.
3317         * lib/copy-acl.c (qcopy_acl): Likewise.
3318
3319 2008-06-08  Bruno Haible  <bruno@clisp.org>
3320
3321         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
3322         declaration.
3323         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
3324         (acl_access_nontrivial): Remove MacOS X case.
3325         (file_has_acl): Use acl_extended_nontrivial.
3326         * lib/copy-acl.c (qcopy_acl): Likewise.
3327
3328 2008-06-08  Bruno Haible  <bruno@clisp.org>
3329
3330         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
3331
3332 2008-06-08  Jim Meyering  <meyering@redhat.com>
3333
3334         * modules/acl (Maintainer): Add Bruno Haible.
3335
3336 2008-06-07  Bruno Haible  <bruno@clisp.org>
3337
3338         Improve support for Tru64 ACLs.
3339         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
3340         ACL on OSF/1.
3341
3342 2008-06-07  Bruno Haible  <bruno@clisp.org>
3343
3344         Add support for MacOS X ACLs.
3345         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
3346         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
3347         * lib/set-mode-acl.c (qset_acl): Likewise.
3348         * lib/copy-acl.c (qcopy_acl): Likewise.
3349
3350 2008-06-07  Bruno Haible  <bruno@clisp.org>
3351
3352         Fix memory leak introduced on 2008-05-22.
3353         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
3354         use.
3355
3356 2008-06-07  Bruno Haible  <bruno@clisp.org>
3357
3358         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
3359         to construct an empty ACL.
3360
3361 2008-06-07  Bruno Haible  <bruno@clisp.org>
3362
3363         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
3364         precisely.
3365         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
3366
3367 2008-06-07  Bruno Haible  <bruno@clisp.org>
3368
3369         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
3370         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
3371
3372 2008-06-07  Bruno Haible  <bruno@clisp.org>
3373
3374         * doc/posix-functions/_setjmp.texi: Explain the use of this function
3375         regardless of POSIX.
3376         * doc/posix-functions/_longjmp.texi: Likewise.
3377         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
3378         SystemV platform in this case.
3379
3380 2008-06-06  Eric Blake  <ebb9@byu.net>
3381
3382         Document abort() bugs.
3383         * doc/posix-functions/abort.texi (abort): Mention anomalies.
3384
3385         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
3386         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
3387         sigsetjmp.
3388         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
3389         siglongjmp, but only as a macro.
3390         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
3391         is obsolete.
3392         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
3393
3394         Tweak documentation to cover cygwin argz bugs.
3395         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
3396         argz bug fix; no code change needed since no cygwin releases
3397         occurred between the last fix and the bug being tested.
3398         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
3399         module and recently fixed cygwin bugs.
3400         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
3401         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
3402         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
3403         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
3404         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
3405         Likewise.
3406         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
3407         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
3408         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
3409         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
3410         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
3411         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
3412         Likewise.
3413
3414         Avoid gcc warning on cygwin.
3415         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
3416         !ACL_NO_TRIVIAL]: Avoid unused variable.
3417
3418 2008-06-05  Eric Blake  <ebb9@byu.net>
3419
3420         Be tolerant of UNKNOWN version in gnulib-tool test dir.
3421         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
3422         git-version-gen fails to come up with a version.
3423         Reported by Simon Josefsson.
3424
3425 2008-06-05  Jim Meyering  <meyering@redhat.com>
3426             Paul Eggert  <eggert@cs.ucla.edu>
3427
3428         utimens.c: work around a probable Linux kernel bug
3429         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
3430         appears to be a kernel bug that causes utimensat to return 280
3431         instead of 0, indicating success.
3432
3433 2008-06-04  Bruno Haible  <bruno@clisp.org>
3434
3435         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
3436         2008-06-01 commit.
3437
3438 2008-06-04  Bruno Haible  <bruno@clisp.org>
3439
3440         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
3441         * lib/file-has-acl.c (acl_access_nontrivial): New function.
3442         (file_has_acl): Use it. Save errno afterwards.
3443         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
3444
3445 2008-06-03  Bruno Haible  <bruno@clisp.org>
3446
3447         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
3448         draft code. Simplify #ifs.
3449         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
3450         Put Solaris code after POSIX-draft code. Fix comments regarding
3451         Solaris 10, HP-UX. Mention Cygwin.
3452         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
3453
3454 2008-06-03  Eric Blake  <ebb9@byu.net>
3455
3456         Provide fallback for older kernels.
3457         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
3458         Provide runtime fallback if kernel lacks support.
3459         Reported by Mike Frysinger.
3460
3461 2008-06-02  Bruno Haible  <bruno@clisp.org>
3462
3463         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
3464         it exists.
3465
3466 2008-06-02  Bruno Haible  <bruno@clisp.org>
3467
3468         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
3469         * lib/copy-acl.c (qcopy_acl): Update comment.
3470
3471 2008-06-02  Bruno Haible  <bruno@clisp.org>
3472
3473         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
3474         like ACL APIs.
3475
3476 2008-06-02  Bruno Haible  <bruno@clisp.org>
3477
3478         * tests/test-file-has-acl.sh: Use different code for Cygwin.
3479         * tests/test-set-mode-acl.sh: Likewise.
3480         * tests/test-copy-acl.sh: Likewise.
3481         * tests/test-copy-file.sh: Likewise.
3482
3483 2008-06-02  Bruno Haible  <bruno@clisp.org>
3484
3485         * tests/test-file-has-acl.sh: Remove unused code.
3486
3487 2008-06-01  Bruno Haible  <bruno@clisp.org>
3488
3489         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
3490         (copy_acl): Just a wrapper around qcopy_acl that emits the error
3491         messages.
3492         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
3493
3494 2008-06-01  Bruno Haible  <bruno@clisp.org>
3495
3496         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
3497         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
3498         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
3499         APIs.
3500         * modules/acl-tests (configure.ac): Remove tests now contained in
3501         m4/acl.m4.
3502
3503 2008-06-02  Jim Meyering  <meyering@redhat.com>
3504
3505         announce-gen: use a better key-server host name
3506         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
3507         it may be more consistently reliable.  Suggested by Werner Koch
3508         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
3509
3510 2008-06-01  Bruno Haible  <bruno@clisp.org>
3511
3512         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
3513         Reported by Voroskoi Andras <voroskoi@gmail.com>.
3514
3515 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
3516
3517         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
3518
3519 2008-06-01  Bruno Haible  <bruno@clisp.org>
3520
3521         New ACL tests.
3522         * tests/test-file-has-acl.sh: New file.
3523         * tests/test-file-has-acl.c: New file.
3524         * tests/test-set-mode-acl.sh: New file.
3525         * tests/test-set-mode-acl.c: New file.
3526         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
3527         * tests/test-copy-acl.c: New file.
3528         * modules/acl-tests: New file, based on modules/copy-file-tests.
3529         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
3530         (Depends-on): Add acl-tests.
3531         (configure.ac): Remove checks.
3532         (Makefile.am): Don't create test-sameacls program here any more.
3533
3534 2008-06-01  Bruno Haible  <bruno@clisp.org>
3535
3536         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
3537         * tests/test-sameacls.c: Include progname.h.
3538         (main): Invoke set_program_name. Portability fixes for MacOS X,
3539         Solaris, HP-UX.
3540
3541 2008-06-01  Bruno Haible  <bruno@clisp.org>
3542
3543         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
3544         function.
3545         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
3546
3547 2008-06-01  Bruno Haible  <bruno@clisp.org>
3548
3549         * modules/rpmatch (Depends-on): Add strdup.
3550
3551 2008-06-01  Bruno Haible  <bruno@clisp.org>
3552
3553         * lib/pipe.c: Include unistd-safer.h.
3554         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
3555         * modules/pipe (Depends-on): Add unistd-safer.
3556
3557 2008-05-30  Simon Josefsson  <simon@josefsson.org>
3558
3559         * modules/autobuild (configure.ac): Call AB_INIT.
3560
3561 2008-05-30  Simon Josefsson  <simon@josefsson.org>
3562
3563         * tests/test-getaddrinfo.c: Don't print debug messages by default.
3564         Suggested by Bruno Haible <bruno@clisp.org>.
3565
3566 2008-05-30  Simon Josefsson  <simon@josefsson.org>
3567
3568         * tests/test-base64.c: Cast size_t to unsigned long when invoking
3569         printf.  Use %lu instead of %d.  Reported by Bruno Haible
3570         <bruno@clisp.org>.
3571
3572 2008-05-29  Eric Blake  <ebb9@byu.net>
3573
3574         Prefer new POSIX 200x interfaces over futimesat.
3575         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
3576         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
3577         when available.
3578         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
3579
3580 2008-05-28  Bruno Haible  <bruno@clisp.org>
3581
3582         * modules/stpcpy (License): Change to LGPLv2+.
3583         Requested by David Lutterkort <dlutter@redhat.com>.
3584
3585 2008-05-27  Bruno Haible  <bruno@clisp.org>
3586
3587         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
3588         current mingw.
3589         Reported by Jose E. Marchesi <jemarch@gnu.org>.
3590
3591 2008-05-27  Bruno Haible  <bruno@clisp.org>
3592
3593         * modules/iconv_open (Link): New section, from module 'iconv'.
3594         * modules/striconv (Link): Likewise.
3595         * modules/striconveh (Link): Likewise.
3596         * modules/xstriconv (Link): Likewise.
3597         * modules/unicodeio (Link): Likewise.
3598         * modules/propername (Link): Likewise.
3599         Reported by Jim Meyering.
3600
3601 2008-05-26  Jim Meyering  <meyering@redhat.com>
3602
3603         sha256: do not artificially restrict buffer length to be < 2^32
3604         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
3605         uint32_t to size_t.
3606         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
3607         to match.
3608
3609         avoid unaligned access errors, e.g., on sparc
3610         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
3611         direct access through a possibly-unaligned uint64* pointer.
3612         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
3613         direct access through a possibly-unaligned uint32* pointer.
3614         Prompted by this patch from Tom "spot" Callaway:
3615         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
3616
3617         sha512.c: fix typo in comment
3618         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
3619
3620 2008-05-25  Bruno Haible  <bruno@clisp.org>
3621
3622         * lib/set-mode-acl.c: Renamed from lib/acl.c.
3623         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
3624         (Makefile.am): Update lib_SOURCES.
3625
3626 2008-05-25  Bruno Haible  <bruno@clisp.org>
3627
3628         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
3629
3630 2008-05-25  Jim Meyering  <meyering@redhat.com>
3631
3632         useless-if-before-free: freed expr may have white-space differences
3633         * build-aux/useless-if-before-free: Recognize cases in which the
3634         freed expression differs from the tested one in embedded white
3635         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
3636         $1 was used, so we can't make any regexp shy.  Improved tests now
3637         detect this.
3638
3639         useless-if-before-free: accept white space in the expression.
3640         * build-aux/useless-if-before-free: For now, any white space
3641         in the expression must be identical in the free argument.
3642
3643         useless-if-before-free: efficiency tweak
3644         * build-aux/useless-if-before-free: Make the expression-matching
3645         regexp "shy".
3646         Make the *outer* regexp shy, not the expr-matching one.
3647
3648         update code-in-comment to accept cast of free arg
3649         * build-aux/useless-if-before-free: Update regexp.
3650
3651 2008-05-25  Bruno Haible  <bruno@clisp.org>
3652
3653         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
3654         * modules/copy-file-tests (Files, Makefile.am): Update.
3655         * tests/test-copy-file.c (func_test_copy): Update.
3656
3657 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
3658
3659         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
3660
3661 2008-05-23  Bruno Haible  <bruno@clisp.org>
3662
3663         Improve support for ACLs on OSF/1.
3664         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
3665         Remove fallback for unknown flavors of ACLs.
3666
3667 2008-05-22  Bruno Haible  <bruno@clisp.org>
3668
3669         Add support for ACLs on OSF/1.
3670         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
3671         replacements.
3672         (acl_free_text): New macro fallback.
3673         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
3674         acl_free.
3675         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
3676         acl_free_text function. Require AC_C_INLINE.
3677
3678 2008-05-22  Bruno Haible  <bruno@clisp.org>
3679
3680         Make copy_acl work on MacOS X 10.5.
3681         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
3682         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
3683         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
3684         If MODE_INSIDE_ACL, don't assume that every system has the same text
3685         representation for ACLs as FreeBSD.
3686         * lib/copy-acl.c (copy_acl): Add support for platforms with
3687         !MODE_INSIDE_ACL.
3688         * lib/file-has-acl.c (file_has_acl): Likewise.
3689         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
3690         FreeBSD, MacOS X, or IRIX, respectively.
3691
3692 2008-05-22  Bruno Haible  <bruno@clisp.org>
3693
3694         * lib/acl.h: Don't include <sys/acl.h>.
3695         (GETACLCNT): Move fallback to lib/acl-internal.h.
3696         * lib/acl-internal.h: Include <sys/acl.h> here.
3697         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
3698
3699 2008-05-22  Bruno Haible  <bruno@clisp.org>
3700
3701         Split off copy_acl function to separate file.
3702         * lib/copy-acl.c: New file, extracted from lib/acl.c.
3703         * lib/acl.c (copy_acl): Moved function to separate file.
3704         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
3705         * modules/acl (Files): Add lib/copy-acl.c.
3706         (Makefiles.am): Augment lib_SOURCES.
3707
3708 2008-05-22  Bruno Haible  <bruno@clisp.org>
3709
3710         * modules/copy-file-tests: New file.
3711         * tests/test-copy-file.sh: New file.
3712         * tests/test-copy-file.c: New file.
3713         * tests/test-copy-file-sameacls.c: New file.
3714
3715 2008-05-22  Eric Blake  <ebb9@byu.net>
3716
3717         Avoid gcc warning.
3718         * tests/test-memcmp.c (main): Pass NULL indirectly.
3719
3720 2008-05-21  Bruno Haible  <bruno@clisp.org>
3721
3722         Add reference doc about ACLs.
3723         * doc/acl-resources.txt: New file.
3724         * doc/acl-cygwin.txt: New file.
3725
3726 2008-05-21  Bruno Haible  <bruno@clisp.org>
3727
3728         Avoid one more warning from gcc.
3729         * lib/vasnprintf.c (IF_LINT): Update comments.
3730         (VASNPRINTF): Use it also for the 'prefix' array initializer.
3731
3732 2008-05-21  Jim Meyering  <meyering@redhat.com>
3733
3734         avoid a warning from gcc
3735         * lib/vasnprintf.c (IF_LINT): Define.
3736         (scale10_round_decimal_long_double):
3737         Use it to avoid a "may be used uninitialized" warning.
3738         (scale10_round_decimal_double): Likewise.
3739
3740 2008-05-21  Simon Josefsson  <simon@josefsson.org>
3741
3742         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
3743         declared.
3744
3745 2008-05-20  Bruno Haible  <bruno@clisp.org>
3746
3747         * tests/test-memcmp.c (main): Test also the sign of the result. Test
3748         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
3749
3750 2008-05-20  Simon Josefsson  <simon@josefsson.org>
3751
3752         * modules/memcmp-tests: New file.
3753         * tests/test-memcmp.c: New file.
3754
3755 2008-05-19  Bruno Haible  <bruno@clisp.org>
3756
3757         * modules/propername (Notice, configure.ac): Put quoted "..." into
3758         --keyword option.
3759         * lib/propername.h: Update comments accordingly.
3760         Reported by Eric Blake.
3761
3762 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
3763
3764         * modules/getpass-gnu (Depends-on): Add fseeko.
3765
3766 2008-05-19  Simon Josefsson  <simon@josefsson.org>
3767
3768         * modules/base64-tests: New file.
3769
3770 2008-05-19  Bo Borgerson <gigabo@gmail.com>
3771
3772         * lib/base64.c (base64_decode_ctx): If a decode context structure
3773         was passed in use it to ignore newlines.  If a context structure
3774         was _not_ passed in, continue to treat newlines as garbage (this
3775         is the historical behavior).  Formerly base64_decode.
3776         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
3777         takes a decode context structure.
3778         * lib/base64.h (base64_decode): Macro for four-argument calls.
3779         (base64_decode_alloc): Likewise.
3780         * lib/base64.c (base64_decode_ctx): If a decode context structure
3781         was passed in use it to ignore newlines.  If a context structure
3782         was _not_ passed in, continue to treat newlines as garbage (this
3783         is the historical behavior).  Formerly base64_decode.
3784         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
3785         takes a decode context structure.
3786         * lib/base64.h (base64_decode): Macro for four-argument calls.
3787         (base64_decode_alloc): Likewise.
3788
3789 2008-05-19  Jim Meyering  <meyering@redhat.com>
3790
3791         avoid a warning from gcc
3792         * lib/trim.c (IF_LINT): Define.
3793         (trim2): Use it to avoid a "may be used uninitialized" warning.
3794
3795         Fix doc typo.
3796         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
3797
3798 2008-05-19  Bruno Haible  <bruno@clisp.org>
3799
3800         * doc/glibc-functions/getpass.texi: Document limits of other
3801         implementations.
3802
3803 2008-05-19  Simon Josefsson  <simon@josefsson.org>
3804             Bruno Haible <bruno@clisp.org>
3805
3806         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
3807
3808 2008-05-18  Bruno Haible  <bruno@clisp.org>
3809
3810         * modules/propername: New file, from GNU gettext.
3811         * lib/propername.h: New file, from GNU gettext.
3812         * lib/propername.c: New file, from GNU gettext.
3813         * MODULES.html.sh (Internationalization functions): Add propername.
3814
3815 2008-05-16  Jim Meyering  <meyering@redhat.com>
3816             Bruno Haible  <bruno@clisp.org>
3817
3818         Avoid some warnings from "gcc -Wshadow".
3819         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
3820
3821 2008-05-15  Eric Blake  <ebb9@byu.net>
3822
3823         Extend previous patch to cygwin 1.7.0.
3824         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
3825         fast implementation in cygwin >= 1.7.0.
3826         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
3827         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
3828
3829 2008-05-15  Bruno Haible  <bruno@clisp.org>
3830
3831         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
3832         implementation in glibc >= 2.9.
3833         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
3834         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
3835
3836 2008-05-15  Bruno Haible  <bruno@clisp.org>
3837
3838         * MODULES.html.sh (Internationalization functions): Remove linebreak.
3839         (Unicode string functions): Add unilbrk/*.
3840         Reported by Karl Berry.
3841
3842 2008-05-15  Eric Blake  <ebb9@byu.net>
3843
3844         Fix violation of <stdbool.h> replacement in regex.
3845         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
3846         * lib/regexec.c (re_search_internal): Likewise.
3847         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
3848
3849 2008-05-15  Jim Meyering  <meyering@redhat.com>
3850
3851         avoid distracting test output when git or cvs is not found
3852         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
3853         * tests/test-vc-list-files-git.sh: Likewise.
3854
3855 2008-05-15  Eric Blake  <ebb9@byu.net>
3856
3857         Glibc finally accepted the memmem speedup code, bugzilla #5514.
3858         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
3859         glibc version.
3860         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
3861         * doc/posix-functions/strstr.texi (strstr): Likewise.
3862         * lib/str-two-way.h (MAX): Sychronize with glibc.
3863
3864 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
3865
3866         * lib/regcomp.c (optimize_utf8): Add a note on why we test
3867         opr.ctx_type.
3868         (calc_first): Initialize constraint field.
3869         (duplicate_node_closure): Use it instead of special casing ANCHORS.
3870         Fix grammar.
3871         (duplicate_node): Merge constraint field for all node types.
3872         (calc_eclosure_iter): Look at constraint field for all node types.
3873         * lib/regex_internal.c (create_cd_newstate): Don't look at
3874         opr.ctx_type.
3875
3876 2008-05-14  Bruno Haible  <bruno@clisp.org>
3877
3878         Help GCC to do better code generation.
3879         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
3880         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
3881         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
3882         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
3883         Declare with attribute 'malloc' if supported.
3884
3885 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
3886
3887         use "echo STR|wc -c" rather than unportable "expr length STR"
3888         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
3889         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
3890
3891 2008-05-14  Jim Meyering  <meyering@redhat.com>
3892
3893         use dd ibs=$n count=1 ... rather than less-portable head -c$n
3894         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
3895         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
3896         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
3897         via Collin Lasse.
3898
3899 2008-05-14  Eric Blake  <ebb9@byu.net>
3900
3901         Avoid quadratic growth in gl_LIBSOURCES.
3902         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
3903         Suggested by Bruno Haible.
3904
3905         Test xmemdup0.
3906         * modules/xmemdup0-tests: New file.
3907         * tests/test-xmemdup0.c: Likewise.
3908
3909 2008-05-13  Eric Blake  <ebb9@byu.net>
3910
3911         Split xmemdup0 into its own module.
3912         * modules/xmemdup0: New file.
3913         * lib/xmemdup0.h: Likewise.
3914         * lib/xmemdup0.c: Likewise.
3915         * MODULES.html.sh (Memory management functions): Add xmemdup0.
3916         * lib/xalloc.h (xmemdup0): Remove.
3917         * lib/xmalloc.c (xmemdup0): Likewise.
3918
3919 2008-05-13  Eric Blake  <ebb9@byu.net>
3920             Bruno Haible  <bruno@clisp.org>
3921
3922         Reduce number of forks required during autoconf.
3923         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
3924         and gl_LIBSOURCES_DIR.
3925         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
3926         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
3927         m4_syscmd per file.
3928         <m4_foreach_w>: Move...
3929         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
3930
3931 2008-05-13  Eric Blake  <ebb9@byu.net>
3932
3933         * gnulib-tool: Fix various comment typos.
3934
3935 2008-05-12  Bruno Haible  <bruno@clisp.org>
3936
3937         Tailor the linebreaking algorithm.
3938         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
3939
3940 2008-05-12  Bruno Haible  <bruno@clisp.org>
3941
3942         Update to Unicode 5.0.0.
3943         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
3944         LBP_JV, LBP_JT. Redistribute values.
3945         (unilbrk_table): Change size.
3946         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
3947         Unicode TR#14 rev. 22.
3948         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
3949         LBP_JV, LBP_JT. Redistribute values.
3950         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
3951         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
3952         Update.
3953         * lib/unilbrk/lbrkprop1.h: Regenerated.
3954         * lib/unilbrk/lbrkprop2.h: Regenerated.
3955         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
3956         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
3957         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
3958         Likewise.
3959         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
3960         Likewise.
3961         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
3962         result.
3963         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
3964         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
3965         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
3966         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
3967         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
3968         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
3969
3970 2008-05-11  Bruno Haible  <bruno@clisp.org>
3971
3972         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
3973
3974 2008-05-11  Bruno Haible  <bruno@clisp.org>
3975
3976         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
3977         * modules/unilbrk/gen-lbrk: New file.
3978
3979 2008-05-11  Bruno Haible  <bruno@clisp.org>
3980
3981         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
3982         * m4/sha512.m4 (gl_SHA512): Likewise.
3983
3984 2008-05-11  Jim Meyering  <meyering@redhat.com>
3985
3986         New modules: crypto/sha256, crypto/sha512 (from coreutils)
3987         * modules/crypto/sha256: New file.
3988         * modules/crypto/sha512: Likewise.
3989         * lib/sha256.c: Likewise.
3990         * lib/sha256.h: Likewise.
3991         * lib/sha512.c: Likewise.
3992         * lib/sha512.h: Likewise.
3993         * lib/u64.h: Likewise.
3994         * m4/sha256.m4: Likewise.
3995         * m4/sha512.m4: Likewise.
3996         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
3997
3998 2008-05-10  Bruno Haible  <bruno@clisp.org>
3999
4000         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
4001         (Input/Output <stdio.h>): Add xprintf.
4002         (Signal handling <signal.h>): Add strsignal.
4003         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
4004         (Core language properties): Add func.
4005         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
4006         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
4007         strings.
4008         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
4009         (Input/output): New section.
4010         (File system functions): Add openat-die, stat-macros.
4011         (Networking functions): Add sockets.
4012         (Unicode string functions): Add unictype/*.
4013         (Support for building libraries and executables): Add gperf.
4014         (Support for building documentation): Add agpl-3.0.
4015         (Misc): Add nocrash.
4016
4017 2008-05-10  Bruno Haible  <bruno@clisp.org>
4018
4019         * modules/unictype/gen-ctype: New file.
4020
4021 2008-05-10  Jim Meyering  <meyering@redhat.com>
4022
4023         Make chdir-safer.c more efficient on a system with no symlinks.
4024         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
4025         also if ELOOP is zero.  Suggested by Bruno Haible.
4026
4027         Make chdir-safer.c slightly safer.
4028         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
4029         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
4030
4031         Avoid compile failure on systems without ELOOP (like mingw).
4032         * lib/chdir-safer.c (ELOOP): Define if not already defined.
4033         Reported by Bruno Haible.
4034
4035 2008-05-10  Bruno Haible  <bruno@clisp.org>
4036
4037         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
4038         (is_utf8_encoding): Use a case-insensitive comparison.
4039         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
4040         streq.
4041
4042 2008-05-10  Bruno Haible  <bruno@clisp.org>
4043
4044         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
4045         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
4046         * lib/unilbrk/ulc-common.h (iconv_string_length,
4047         iconv_string_keeping_offsets): Remove declarations.
4048         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
4049         Don't include <iconv.h>, streq.h, xsize.h.
4050         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
4051         conversion.
4052         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
4053         <iconv.h>, streq.h, xsize.h.
4054         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
4055         conversion.
4056         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
4057         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
4058         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
4059         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
4060
4061 2008-05-10  Bruno Haible  <bruno@clisp.org>
4062
4063         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
4064         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
4065
4066         * modules/unilbrk/u32-width-linebreaks-tests: New file.
4067         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
4068
4069         * modules/unilbrk/u16-width-linebreaks-tests: New file.
4070         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
4071
4072         * modules/unilbrk/u8-width-linebreaks-tests: New file.
4073         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
4074
4075         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
4076         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
4077
4078         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
4079         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
4080
4081         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
4082         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
4083
4084         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
4085         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
4086
4087 2008-05-10  Bruno Haible  <bruno@clisp.org>
4088
4089         Split up 'linebreak' module.
4090         * lib/unilbrk.h: New file, based on lib/linebreak.h.
4091         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
4092         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
4093         modifications.
4094         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
4095         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
4096         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
4097         lib/linebreak.c.
4098         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
4099         lib/linebreak.c.
4100         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
4101         lib/linebreak.c.
4102         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
4103         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
4104         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
4105         lib/linebreak.c.
4106         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
4107         lib/linebreak.c.
4108         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
4109         lib/linebreak.c.
4110         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
4111         lib/linebreak.c.
4112         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
4113         lib/linebreak.c.
4114         * modules/unilbrk/base: New file.
4115         * modules/unilbrk/tables: New file.
4116         * modules/unilbrk/u8-possible-linebreaks: New file.
4117         * modules/unilbrk/u16-possible-linebreaks: New file.
4118         * modules/unilbrk/u32-possible-linebreaks: New file.
4119         * modules/unilbrk/ulc-common: New file.
4120         * modules/unilbrk/ulc-possible-linebreaks: New file.
4121         * modules/unilbrk/u8-width-linebreaks: New file.
4122         * modules/unilbrk/u16-width-linebreaks: New file.
4123         * modules/unilbrk/u32-width-linebreaks: New file.
4124         * modules/unilbrk/ulc-width-linebreaks: New file.
4125         * lib/linebreak.h: Remove file.
4126         * lib/linebreak.c: Remove file.
4127         * m4/linebreak.m4: Remove file.
4128         * modules/linebreak: Remove file.
4129         * NEWS: Mention the changes.
4130
4131 2008-05-09  Eric Blake  <ebb9@byu.net>
4132
4133         Add xmemdup0.
4134         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
4135         implementation.
4136         * lib/xmalloc.c (xmemdup0): New C implementation.
4137
4138 2008-05-08  Bruno Haible  <bruno@clisp.org>
4139
4140         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
4141
4142 2008-05-07  Eric Blake  <ebb9@byu.net>
4143
4144         Support cross-compilation of <wctype.h>.
4145         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
4146         AC_CACHE_CHECK.
4147
4148 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
4149
4150         * build-aux/vc-list-files: Add support for bzr.
4151
4152 2008-05-03  Jim Meyering  <meyering@redhat.com>
4153
4154         avoid failed assertion with tight malloc
4155         * tests/test-getndelim2.c: Correct an off-by-one assertion.
4156
4157 2008-05-03  Simon Josefsson  <simon@josefsson.org>
4158
4159         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
4160         are needed from arpa/inet.h.
4161         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
4162         Reported by Bruno Haible.
4163
4164 2008-05-02  Jim Meyering  <meyering@redhat.com>
4165
4166         avoid compilation error on FreeBSD 6
4167         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
4168
4169 2008-05-01  Jim Meyering  <meyering@redhat.com>
4170
4171         useless-if-before-free: correct --help's exit status description
4172         * build-aux/useless-if-before-free (usage): Like grep, exit 0
4173         for one or more matches, etc.  Reported by Bruno Haible.
4174
4175         vc-list-files: make the stand-alone gnulib test work
4176         * modules/vc-list-files-tests (configure.ac):
4177         Define and AC_SUBST abs_aux_dir.
4178         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
4179         $(abs_top_srcdir) to each script and having each of them
4180         duplicate the work of setting PATH, set PATH here, using
4181         the new variable, abs_aux_dir instead.
4182         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
4183         * tests/test-vc-list-files-git.sh: Likewise.
4184         Reported by Bruno Haible.
4185
4186 2008-05-01  Bruno Haible  <bruno@clisp.org>
4187
4188         * lib/getndelim2.c (getndelim2): Fix newsize computation during
4189         reallocation. Rename 'done' to 'found_delimiter'.
4190
4191 2008-05-01  Jim Meyering  <meyering@redhat.com>
4192
4193         vc-list-files: accommodate /bin/sh like the one from Solaris 10
4194         * build-aux/vc-list-files: Use `...`, not $(...).
4195
4196 2008-04-30  Jim Meyering  <meyering@redhat.com>
4197
4198         add tests for vc-list-files
4199         * modules/vc-list-files-tests: New module.
4200         * tests/test-vc-list-files-cvs.sh: New file.
4201         * tests/test-vc-list-files-git.sh: New file.
4202
4203         avoid a warning from gcc
4204         * lib/getndelim2.c (IF_LINT): Define.
4205         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
4206
4207         vc-list-files: work properly with build-aux/cvsu, too
4208         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
4209         to all cvs-based clauses.
4210
4211         vc-list-files: work properly in the CVS+awk case, too
4212         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
4213
4214         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
4215         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
4216         take more than one file argument, so .  Add quotes, just in case $dir
4217         ever contains a shell meta-character.  Prompted by Soren Hansen in
4218         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
4219
4220 2008-04-29  Eric Blake  <ebb9@byu.net>
4221
4222         Optimize getndelim2 to use block operations when possible.
4223         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
4224         freadseek, and memchr2.
4225         * lib/getndelim2.c (getndelim2): Use them for block reads.
4226
4227 2008-04-29  Bruno Haible  <bruno@clisp.org>
4228
4229         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
4230         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
4231         * modules/inet_ntop (Depends-on): Add extensions.
4232         * modules/inet_pton (Depends-on): Likewise.
4233         Reported by Simon Josefsson.
4234
4235 2008-04-29  Jim Meyering  <meyering@redhat.com>
4236
4237         When the is more than one match in a block, match all of them.
4238         * build-aux/useless-if-before-free: Iterate through each block
4239         until there are no more matches.
4240
4241         Fix broken useless-if-before-free script.
4242         * build-aux/useless-if-before-free: Fix typo: missing "?" after
4243         the expression to match cast of argument to free-like function.
4244
4245 2008-04-29  Eric Blake  <ebb9@byu.net>
4246
4247         Use new header.
4248         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
4249
4250 2008-04-29  Jim Meyering  <meyering@redhat.com>
4251
4252         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
4253         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
4254         by gnulib to exist and to declare e.g., inet_ntop.
4255         Don't include "inet_ntop.h", now removed.
4256
4257         * m4/arpa_inet_h.m4: Remove trailing blanks.
4258
4259 2008-04-29  Eric Blake  <ebb9@byu.net>
4260
4261         Silence valgrind on safe reads beyond potential array bounds.
4262         * lib/rawmemchr.valgrind: New file.
4263         * lib/strchrnul.valgrind: Likewise.
4264         * modules/rawmemchr (Files): Distribute new file.
4265         * modules/strchrnul (Files): Likewise.
4266         Suggested by Bruno Haible.
4267
4268 2008-04-29  Bruno Haible  <bruno@clisp.org>
4269
4270         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
4271         (inet_ntop, inet_pton): Change portability warning's wording.
4272         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
4273         Invoke gl_CHECK_NEXT_HEADERS.
4274         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
4275         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
4276         set ARPA_INET_H.
4277         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
4278         * modules/arpa_inet (Description): No longer only for systems that
4279         lack it.
4280         (Depends-on): Add include_next.
4281         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
4282         HAVE_ARPA_INET_H.
4283
4284 2008-04-29  Jim Meyering  <meyering@redhat.com>
4285
4286         * modules/mkdir (License): Re-license as LGPLv2+.
4287
4288 2008-04-29  Bruno Haible  <bruno@clisp.org>
4289
4290         * modules/rawmemchr (Maintainer): Set to Eric.
4291         * modules/strchrnul (Maintainer): Likewise.
4292
4293 2008-04-29  Simon Josefsson  <simon@josefsson.org>
4294
4295         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
4296         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
4297
4298         * modules/arpa_inet (arpa/inet.h): Use them.
4299
4300 2008-04-28  Eric Blake  <ebb9@byu.net>
4301
4302         Test getndelim2.
4303         * modules/getndelim2-tests: New file.
4304         * tests/test-getndelim2.c: Likewise.
4305         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
4306         stream.
4307         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
4308
4309         * MODULES.html.sh: Document new module.
4310
4311 2008-04-20  Bruno Haible  <bruno@clisp.org>
4312
4313         * lib/c-stack.c (die): Use raise.
4314         * modules/c-stack (Depends-on): Add raise.
4315
4316 2008-04-28  Bruno Haible  <bruno@clisp.org>
4317
4318         Expect rpmatch to be declared.
4319         * lib/yesno.c (rpmatch): Remove declaration.
4320
4321         Declare rpmatch.
4322         * lib/stdlib.in.h (rpmatch): New declaration.
4323         * lib/rpmatch.c: Include <stdlib.h> first.
4324         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
4325         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
4326         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
4327         HAVE_RPMATCH.
4328         * modules/rpmatch (Depends-on): Add stdlib, extensions.
4329         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
4330         (Include): Set to <stdlib.h>.
4331         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
4332         HAVE_RPMATCH.
4333         * NEWS: Document the change.
4334
4335 2008-04-28  Bruno Haible  <bruno@clisp.org>
4336
4337         Change rpmatch to use nl_langinfo when appropriate.
4338         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
4339         (N_): New macro.
4340         (localized_pattern): New function/macro.
4341         (try): Remove match, nomatch arguments. Copy the pattern into safe
4342         memory before caching it.
4343         (rpmatch): Use localized_pattern. Add translator comments.
4344         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
4345         Suggested by Eric Blake.
4346         * modules/rpmatch (Depends-on): Add stdbool.
4347
4348 2008-04-28  Eric Blake  <ebb9@byu.net>
4349
4350         Add rawmemchr module, matching glibc.
4351         * modules/string (Makefile.am): New indicator.
4352         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
4353         * lib/string.in.h (rawmemchr): Declare when appropriate.
4354         * modules/rawmemchr: New file.
4355         * m4/rawmemchr.m4: Likewise.
4356         * lib/rawmemchr.c: Likewise.
4357         * modules/rawmemchr-tests: Likewise.
4358         * tests/test-rawmemchr.c: Likewise.
4359         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
4360         module.
4361         * modules/strchrnul (Depends-on): Add rawmemchr.
4362         * lib/strchrnul.c (strchrnul): Optimize a corner case.
4363
4364         Whitespace cleanup.
4365         * tests/test-strchrnul.c: Reindent.
4366         * lib/strchrnul.c: Likewise.
4367
4368         Optimize and test strchrnul.
4369         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
4370         * modules/strchrnul-tests: New file.
4371         * tests/test-strchrnul.c: Likewise.
4372
4373         Remove intprops dependency.
4374         * modules/memchr (Depends-on): Remove intprops.
4375         * modules/memrchr (Depends-on): Likewise.
4376         * modules/memchr2 (Depends-on): Likewise.
4377         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
4378         * lib/memrchr.c (__memrchr): Likewise.
4379         * lib/memrchr2.c (memchr2): Likewise.
4380         Reported by Simon Josefsson.
4381
4382 2008-04-28  Simon Josefsson  <simon@josefsson.org>
4383
4384         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
4385         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
4386
4387 2008-04-28  Simon Josefsson  <simon@josefsson.org>
4388
4389         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
4390
4391         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
4392
4393         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
4394
4395         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
4396         declarations.
4397         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
4398
4399         * m4/inet_pton.m4: Don't check for header files.
4400
4401         * m4/inet_ntop.m4: Don't check for header files.
4402
4403 2008-04-28  Simon Josefsson  <simon@josefsson.org>
4404
4405         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
4406         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
4407         trigger for cygwin).
4408         Reported by Bruno Haible  <bruno@clisp.org>.
4409
4410 2008-04-28  Bruno Haible  <bruno@clisp.org>
4411
4412         * doc/posix-functions/strdup.texi: Mention mingw problem.
4413
4414 2008-04-27  Bruno Haible  <bruno@clisp.org>
4415
4416         * modules/stat-time-tests (Depends-on): Add sleep.
4417         * tests/test-stat-time.c (force_unlink): New function.
4418         (cleanup): Use it.
4419         (test_mtime): Remove the ctime related tests.
4420         (test_ctime): New function, containing the ctime related tests.
4421         (main): Call test_ctime, except on native Windows platforms.
4422
4423 2008-04-27  Bruno Haible  <bruno@clisp.org>
4424
4425         * lib/rpmatch.c (rpmatch): Add some comments.
4426         Reported by James Youngman <jay@gnu.org>.
4427
4428 2008-04-27  Bruno Haible  <bruno@clisp.org>
4429
4430         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
4431         quiet NaNs.
4432
4433 2008-04-27  Bruno Haible  <bruno@clisp.org>
4434
4435         Make test-yesno.sh work on mingw.
4436         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
4437         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
4438         (main): Set stdin to binary mode.
4439         * modules/yesno-tests (Depends-on): Add binary-io.
4440
4441 2008-04-27  Bruno Haible  <bruno@clisp.org>
4442
4443         Fix 'isfinite' on x86, x86_64, ia64 platforms.
4444         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
4445         argument that lie outside the IEEE 854 domain.
4446         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
4447         (gl_ISFINITE): Use it.
4448         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
4449
4450 2008-04-27  Bruno Haible  <bruno@clisp.org>
4451
4452         Allow local renaming in config.h.
4453         * lib/memrchr.c (memrchr): Don't undefine outside libc.
4454
4455 2008-04-27  Bruno Haible  <bruno@clisp.org>
4456
4457         * lib/memchr.c (__memchr): Change type of 'i'.
4458         * lib/memchr2.c (memchr2): Likewise.
4459
4460 2008-04-26  Eric Blake  <ebb9@byu.net>
4461         and Bruno Haible  <bruno@clisp.org>
4462
4463         Optimize and test memrchr.
4464         * modules/memrchr (Depends-on): Add intprops.
4465         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
4466         * modules/memrchr-tests: New file.
4467         * tests/test-memrchr.c: New file.
4468
4469 2008-04-26  Bruno Haible  <bruno@clisp.org>
4470
4471         Add tentative support for DragonFly BSD.
4472         * lib/stdio-impl.h: Add macros for DragonFly BSD.
4473         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
4474         fp.
4475         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
4476         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
4477         * lib/fpurge.c (fpurge): Likewise.
4478         * lib/freadable.c (freaadable): Likewise.
4479         * lib/freadahead.c (freadahead): Likewise.
4480         * lib/freading.c (freading): Likewise.
4481         * lib/freadptr.c (freadptr): Likewise.
4482         * lib/freadseek.c (freadptrinc): Likewise.
4483         * lib/fseeko.c (fseeko): Likewise.
4484         * lib/fseterr.c (fseterr): Likewise.
4485         * lib/fwritable.c (fwritable): Likewise.
4486         * lib/fwriting.c (fwriting): Likewise.
4487
4488 2008-04-26  Bruno Haible  <bruno@clisp.org>
4489
4490         * lib/stdio-impl.h: New file.
4491         * lib/fbufmode.c: Include stdio-impl.h.
4492         (fbufmode): Use fp_, remove redundant #defines.
4493         * lib/fflush.c: Include stdio-impl.h.
4494         (clear_ungetc_buffer): Remove redundant #defines.
4495         * lib/fpurge.c: Include stdio-impl.h.
4496         (fpurge): Remove redundant #defines.
4497         * lib/freadable.c: Include stdio-impl.h.
4498         (freadable): Remove redundant #defines.
4499         * lib/freadahead.c: Include stdio-impl.h.
4500         (freadahead): Remove redundant #defines.
4501         * lib/freading.c: Include stdio-impl.h.
4502         (freading): Remove redundant #defines.
4503         * lib/freadptr.c: Include stdio-impl.h.
4504         (freadptr): Remove redundant #defines.
4505         * lib/freadseek.c: Include stdio-impl.h.
4506         (freadptrinc): Remove redundant #defines.
4507         * lib/fseeko.c: Include stdio-impl.h.
4508         (rpl_fseeko): Remove redundant #defines.
4509         * lib/fseterr.c: Include stdio-impl.h.
4510         (fseterr): Remove redundant #defines.
4511         * lib/fwritable.c: Include stdio-impl.h.
4512         (fwritable: Remove redundant #defines.
4513         * lib/fwriting.c: Include stdio-impl.h.
4514         (fwriting): Remove redundant #defines.
4515         * modules/fbufmode (Files): Add lib/stdio-impl.h.
4516         * modules/fflush (Files): Likewise.
4517         * modules/fpurge (Files): Likewise.
4518         * modules/freadable (Files): Likewise.
4519         * modules/freadahead (Files): Likewise.
4520         * modules/freading (Files): Likewise.
4521         * modules/freadptr (Files): Likewise.
4522         * modules/freadseek (Files): Likewise.
4523         * modules/fseeko (Files): Likewise.
4524         * modules/fseterr (Files): Likewise.
4525         * modules/fwritable (Files): Likewise.
4526         * modules/fwriting (Files): Likewise.
4527
4528 2008-04-26  Bruno Haible  <bruno@clisp.org>
4529
4530         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
4531         restore_seek_optimization, update_fpos_cache): New functions, extracted
4532         from rpl_fflush.
4533         (rpl_fflush): Use them.
4534         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
4535         (gl_REPLACE_FFLUSH): Use it.
4536
4537 2008-04-26  Bruno Haible  <bruno@clisp.org>
4538
4539         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
4540         on Solaris.
4541         * tests/test-xstrtoimax.sh: Likewise.
4542         * tests/test-xstrtoumax.sh: Likewise.
4543         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
4544
4545 2008-04-26  Bruno Haible  <bruno@clisp.org>
4546
4547         * modules/memchr-tests: New file.
4548         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
4549
4550 2008-04-26  Eric Blake  <ebb9@byu.net>
4551             Bruno Haible  <bruno@clisp.org>
4552
4553         * lib/memchr.c: Include intprops.h.
4554         (__memchr): Optimize parallel detection of matching bytes. Rename local
4555         variables. Add explanatory comments.
4556
4557 2008-04-26  Bruno Haible  <bruno@clisp.org>
4558
4559         Fix module 'memchr', broken since 2000-10-28.
4560         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
4561
4562 2008-04-26  Bruno Haible  <bruno@clisp.org>
4563
4564         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
4565         comments.
4566
4567 2008-04-25  Eric Blake  <ebb9@byu.net>
4568
4569         Use native fstatat on cygwin 1.7.0.
4570         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
4571         first.
4572
4573 2008-04-23  Eric Blake  <ebb9@byu.net>
4574
4575         Improve memchr2 performance.
4576         * lib/memchr2.c (memchr2): Further optimize parallel detection of
4577         NUL bytes.
4578         * modules/memchr2 (Depends-on): Use intprops.h.
4579
4580 2008-04-23  Simon Josefsson  <simon@josefsson.org>
4581
4582         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
4583         an inline function instead of a CPP macro.  Patch by Ben Pfaff
4584         <blp@cs.stanford.edu>.
4585
4586 2008-04-23  Simon Josefsson  <simon@josefsson.org>
4587
4588         * lib/arpa_inet.in.h: New file.
4589
4590         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
4591         (Makefile.am): Sed in substitute header file.
4592
4593         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
4594         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
4595
4596         * modules/inet_ntop (configure.ac): Use
4597         gl_ARPA_INET_MODULE_INDICATOR.
4598
4599         * modules/inet_pton (configure.ac): Use
4600         gl_ARPA_INET_MODULE_INDICATOR.
4601
4602 2008-04-22  Jim Meyering  <meyering@redhat.com>
4603
4604         * modules/verify (License): Re-license as LGPLv2+.
4605
4606 2008-04-22  Simon Josefsson  <simon@josefsson.org>
4607
4608         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
4609         parameter to void* as per POSIX standard (MinGW uses char*).
4610
4611 2008-04-21  Bruno Haible  <bruno@clisp.org>
4612
4613         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
4614         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
4615         Define to replacements if REPLACE_ISWCNTRL is 1.
4616         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
4617         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
4618         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
4619         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
4620         what it fixes.
4621         * doc/posix-functions/iswalpha.texi: Likewise.
4622         * doc/posix-functions/iswblank.texi: Likewise.
4623         * doc/posix-functions/iswcntrl.texi: Likewise.
4624         * doc/posix-functions/iswdigit.texi: Likewise.
4625         * doc/posix-functions/iswgraph.texi: Likewise.
4626         * doc/posix-functions/iswlower.texi: Likewise.
4627         * doc/posix-functions/iswprint.texi: Likewise.
4628         * doc/posix-functions/iswpunct.texi: Likewise.
4629         * doc/posix-functions/iswspace.texi: Likewise.
4630         * doc/posix-functions/iswupper.texi: Likewise.
4631         * doc/posix-functions/iswxdigit.texi: Likewise.
4632         Reported by Alain Guibert.
4633
4634 2008-04-21  Bruno Haible  <bruno@clisp.org>
4635
4636         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
4637         Patch by Alain Guibert.
4638
4639 2008-04-21  Bruno Haible  <bruno@clisp.org>
4640
4641         Fix test failures on mingw.
4642         * tests/test-xstrtol.c (print_no_progname): New function.
4643         (main): Install it in error_print_progname hook.
4644         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
4645         * tests/test-xstrtoimax.sh: Likewise.
4646         * tests/test-xstrtoumax.sh: Likewise.
4647
4648 2008-04-21  Bruno Haible  <bruno@clisp.org>
4649
4650         Fix test failure on mingw.
4651         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
4652
4653 2008-04-21  Bruno Haible  <bruno@clisp.org>
4654
4655         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
4656         Actually assign a value.
4657
4658 2008-04-20  Bruno Haible  <bruno@clisp.org>
4659
4660         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
4661         take 2.
4662         * lib/canonicalize.c (canonicalize_file_name): Elide if the
4663         'canonicalize-lgpl' module is also used.
4664         * lib/canonicalize-lgpl.c: Undo last change.
4665         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
4666
4667 2008-04-20  Bruno Haible  <bruno@clisp.org>
4668
4669         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
4670         config.h. Provide _mkdir based fallback for mingw.
4671         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
4672         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
4673         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
4674         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
4675         rather than defining mkdir in config.h.
4676         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
4677         (gl_SYS_STAT_H_DEFAULTS): New macro.
4678         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
4679         HAVE_IO_H any more.
4680         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
4681         HAVE_DECL_MKDIR and HAVE_IO_H.
4682
4683 2008-04-20  Bruno Haible  <bruno@clisp.org>
4684
4685         * lib/isapipe.c: Port to native Windows platforms.
4686
4687 2008-04-20  Bruno Haible  <bruno@clisp.org>
4688
4689         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
4690
4691 2008-04-21  Eric Blake  <ebb9@byu.net>
4692
4693         Work around preprocessors that don't handle UINTMAX_MAX.
4694         * lib/memchr2.c (memchr2): Avoid embedded #if.
4695         Reported by Alain Guibert, fix suggested by Bruno Haible.
4696
4697 2008-04-21  Simon Josefsson  <simon@josefsson.org>
4698
4699         * doc/posix-functions/strftime.texi (strftime): Explain better
4700         Windows incompatibility.  Suggested by Micah Cowan
4701         <micah@cowan.name>.
4702
4703 2008-04-20  Bruno Haible  <bruno@clisp.org>
4704
4705         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
4706         unistr/u8-mblen.
4707
4708 2008-04-20  Bruno Haible  <bruno@clisp.org>
4709
4710         Fix test failure on platforms with non-GNU iconv.
4711         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
4712         (U_TO_U8): Use it, rather than u16_to_u8.
4713         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
4714         units at the end of the input string.
4715         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
4716
4717 2008-04-20  Bruno Haible  <bruno@clisp.org>
4718
4719         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
4720         when the resulting length is 0.
4721         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
4722
4723 2008-04-20  Bruno Haible  <bruno@clisp.org>
4724
4725         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
4726         works.
4727         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
4728
4729 2008-04-20  Bruno Haible  <bruno@clisp.org>
4730
4731         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
4732         * modules/tsearch-tests (configure.ac): Test for initstate function.
4733
4734 2008-04-20  Bruno Haible  <bruno@clisp.org>
4735
4736         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
4737         for nlink_t if missing.
4738         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
4739
4740 2008-04-19  Bruno Haible  <bruno@clisp.org>
4741
4742         Work around snprintf bug on Linux libc5.
4743         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
4744         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
4745         gl_SNPRINTF_SIZE1.
4746         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
4747         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
4748         that test failed.
4749         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
4750         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
4751         * modules/snprintf (Files): Add m4/printf.m4.
4752         * modules/vsnprintf (Files): Likewise.
4753         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
4754         * doc/posix-functions/vsnprintf.texi: Likewise.
4755
4756 2008-04-19  Bruno Haible  <bruno@clisp.org>
4757
4758         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
4759         from 0.0058 to less than 10^-7.
4760
4761 2008-04-19  Bruno Haible  <bruno@clisp.org>
4762
4763         Fix rounding when a precision is given.
4764         * lib/vasnprintf.c (is_borderline): New function.
4765         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
4766         9...9x.
4767         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
4768         %e, %g.
4769         * tests/test-vasprintf-posix.c (test_function): Likewise.
4770         * tests/test-snprintf-posix.h (test_function): Likewise.
4771         * tests/test-sprintf-posix.h (test_function): Likewise.
4772         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
4773         * tests/test-printf-posix.h (test_function): Likewise.
4774         * tests/test-printf-posix.output: Update.
4775         Reported by John Darrington <john@darrington.wattle.id.au> via
4776         Ben Pfaff <blp@cs.stanford.edu>.
4777
4778 2008-04-18  Simon Josefsson  <simon@josefsson.org>
4779
4780         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
4781         Suggested by Bruno Haible <bruno@clisp.org>.
4782
4783 2008-04-17  Bruno Haible  <bruno@clisp.org>
4784
4785         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
4786         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
4787         implementation.
4788         Patch by Bruce Merry <bmerry@gmail.com>.
4789
4790 2008-04-17  Simon Josefsson  <simon@josefsson.org>
4791
4792         * doc/posix-functions/strftime.texi (strftime): Mention that %e
4793         doesn't work under Windows.
4794
4795 2008-04-16  Bruno Haible  <bruno@clisp.org>
4796
4797         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
4798         New macros.
4799         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
4800         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
4801         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
4802         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
4803         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
4804         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
4805         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
4806         macros.
4807         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
4808         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
4809         Northern Sotho, Uighur.
4810
4811 2008-04-16  Bruno Haible  <bruno@clisp.org>
4812
4813         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
4814         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
4815         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
4816         Reported by Daniel Bergström <daniel@octocode.com>.
4817
4818 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
4819             Bruno Haible  <bruno@clisp.org>
4820
4821         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
4822         function.
4823         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
4824         New functions, mostly extracted from gl_locale_name_default.
4825         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
4826
4827 2008-04-16  Eric Blake  <ebb9@byu.net>
4828
4829         Adjust strtod detection to catch glibc 2.7 bug.
4830         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
4831         Reported by John Gatewood Ham.
4832
4833 2008-04-16  Bruno Haible  <bruno@clisp.org>
4834
4835         Add tentative support for Linux libc5.
4836         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
4837         * lib/fpurge.c (fpurge): Likewise.
4838         * lib/freadable.c (freadable): Likewise.
4839         * lib/freadahead.c (freadahead): Likewise.
4840         * lib/freading.c (freading): Likewise.
4841         * lib/freadptr.c (freadptr): Likewise.
4842         * lib/freadseek.c (freadptrinc): Likewise.
4843         * lib/fseeko.c (rpl_fseeko): Likewise.
4844         * lib/fseterr.c (fseterr): Likewise.
4845         * lib/fwritable.c (fwritable): Likewise.
4846         * lib/fwriting.c (fwriting): Likewise.
4847         Reported by Alain Guibert <alguibert+bts@free.fr>.
4848
4849 2008-04-15  Bruno Haible  <bruno@clisp.org>
4850
4851         * modules/mathl (configure.ac): Define module indicator.
4852
4853 2008-04-15  Bruno Haible  <bruno@clisp.org>
4854
4855         * lib/logl.c (logl): Remove unused variables.
4856
4857 2008-04-15  Bruno Haible  <bruno@clisp.org>
4858
4859         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
4860         fails.
4861
4862 2008-04-15  Bruno Haible  <bruno@clisp.org>
4863
4864         * lib/trim.c (trim2): Fix argument of isspace() macro.
4865
4866 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
4867
4868         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
4869         to 0.
4870         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
4871
4872 2008-04-14  Bruno Haible  <bruno@clisp.org>
4873
4874         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
4875         AC_LANG_PROGRAM argument.
4876         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
4877         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
4878         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
4879         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
4880         * m4/math_h.m4 (gl_MATH_H): Likewise.
4881         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
4882         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
4883         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
4884         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
4885         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
4886         * m4/regex.m4 (gl_REGEX): Likewise.
4887         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
4888         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
4889         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
4890         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
4891         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
4892         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
4893         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
4894         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
4895
4896 2008-04-14  Jim Meyering  <meyering@redhat.com>
4897
4898         test-strtod: fix typos: s/abs/fabs/
4899         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
4900
4901 2008-04-13  Bruno Haible  <bruno@clisp.org>
4902
4903         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
4904         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
4905         module is also used and while not building the reloc-wrapper.
4906
4907 2008-04-13  Bruno Haible  <bruno@clisp.org>
4908
4909         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
4910
4911 2008-04-13  Bruno Haible  <bruno@clisp.org>
4912
4913         Fix AIX compilation failure introduced on 2008-04-02.
4914         * tests/test-frexp.c (exp): Undefine before redefining.
4915         * tests/test-frexpl.c (exp): Likewise.
4916
4917 2008-04-13  Bruno Haible  <bruno@clisp.org>
4918
4919         Work around a HP-UX stdio bug.
4920         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
4921         * tests/test-ftello.c (main): Likewise.
4922         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
4923         * doc/posix-functions/ftello.texi: Likewise.
4924
4925 2008-04-13  Bruno Haible  <bruno@clisp.org>
4926
4927         Make test-signbit pass on HP-UX/hppa.
4928         * tests/test-signbit.c (minus_zerol): New variable.
4929         (test_signbitl): Use it.
4930
4931 2008-04-13  Bruno Haible  <bruno@clisp.org>
4932
4933         Make truncl work on OSF/1 4.0.
4934         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
4935         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
4936         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
4937         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
4938         HAVE_DECL_TRUNCL.
4939         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
4940         HAVE_DECL_TRUNCL.
4941         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
4942
4943 2008-04-13  Bruno Haible  <bruno@clisp.org>
4944
4945         * lib/unictype.h: Remove trailing comma from enumeration definitions.
4946
4947 2008-04-13  Bruno Haible  <bruno@clisp.org>
4948
4949         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
4950         expression, so as to avoid HP-UX 11 cc compiler bug.
4951
4952 2008-04-13  Bruno Haible  <bruno@clisp.org>
4953
4954         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
4955
4956 2008-04-13  Bruno Haible  <bruno@clisp.org>
4957
4958         * lib/git-merge-changelog.c: Remove empty declaration outside of
4959         functions.
4960
4961 2008-04-13  Bruno Haible  <bruno@clisp.org>
4962
4963         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
4964
4965 2008-04-13  Bruno Haible  <bruno@clisp.org>
4966
4967         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
4968         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
4969         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
4970         also if it exists but lacks definitions of the SHUT_* macros.
4971         * modules/sys_socket (Description): Update.
4972         Reported by Elbert Pol <e.pol@chello.nl>.
4973
4974 2008-04-13  Bruno Haible  <bruno@clisp.org>
4975
4976         * lib/localcharset.c (OS2): Don't redefine if already defined.
4977         Reported by Elbert Pol <e.pol@chello.nl>.
4978
4979 2008-04-13  Bruno Haible  <bruno@clisp.org>
4980
4981         * lib/binary-io.h [__EMX__]: Include <io.h>.
4982         Reported by Elbert Pol <e.pol@chello.nl>.
4983
4984 2008-04-12  Bruno Haible  <bruno@clisp.org>
4985
4986         * lib/fpucw.h: Enable the definitions also for x86_64.
4987         Needed for NetBSD/x86_64.
4988         Reported by Thomas Klausner <tk@giga.or.at>.
4989
4990 2008-04-12  Bruno Haible  <bruno@clisp.org>
4991
4992         * tests/test-strtod.c: Include isnand.h.
4993         (main): Use isnand instead of isnan.
4994         Reported by Jim Meyering.
4995
4996 2008-04-12  Bruno Haible  <bruno@clisp.org>
4997
4998         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
4999         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
5000
5001 2008-04-12  Jim Meyering  <meyering@redhat.com>
5002
5003         * m4/math_h.m4 (gl_MATH_H): Fix typos.
5004
5005 2008-04-12  Bruno Haible  <bruno@clisp.org>
5006
5007         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
5008         Reported by Elbert Pol <e.pol@chello.nl>.
5009
5010 2008-04-12  Eric Blake  <ebb9@byu.net>
5011
5012         Work around Solaris 10 math.h bug.
5013         * m4/math_h.m4 (gl_MATH_H): Check for bug.
5014         (gl_MATH_H_DEFAULTS): Set up default.
5015         * modules/math (Makefile.am): Replace new indicators.
5016         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
5017         * tests/test-math.c (main): Test this.
5018         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
5019         * doc/posix-headers/math.texi (math.h): Mention bug.
5020         Reported by Nelson H. F. Beebe and Jim Meyering.
5021
5022 2008-04-11  Bruno Haible  <bruno@clisp.org>
5023
5024         Adapt to future versions of Apple GCC.
5025         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
5026         Reported by Peter O'Gorman <peter@pogma.com>.
5027
5028 2008-04-11  Bruno Haible  <bruno@clisp.org>
5029
5030         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
5031
5032 2008-04-11  Bruno Haible  <bruno@clisp.org>
5033
5034         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
5035
5036         * modules/getaddrinfo-tests (Makefile.am): Define
5037         test_getaddrinfo_LDADD.
5038
5039 2008-04-11  Bruno Haible  <bruno@clisp.org>
5040
5041         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
5042         (init): Fix syntax error.
5043         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
5044         is declared.
5045
5046 2008-04-11  Bruno Haible  <bruno@clisp.org>
5047
5048         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
5049         * modules/glob (Depends-on): Add stdbool.
5050
5051 2008-04-11  Bruno Haible  <bruno@clisp.org>
5052
5053         * lib/trim.c: Include <string.h>.
5054
5055 2008-04-11  Eric Blake  <ebb9@byu.net>
5056
5057         Avoid compile failure on OS/2.
5058         * lib/regex_internal.h (internal_function): Disable optimization
5059         on OS/2 (__EMX__), where it caused compiler error.
5060         Reported by Elbert Pol.
5061
5062 2008-04-11  Bruno Haible  <bruno@clisp.org>
5063
5064         Flush the standard error stream before aborting. Needed on mingw.
5065         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
5066         * tests/test-array_list.c (ASSERT): Likewise.
5067         * tests/test-array_oset.c (ASSERT): Likewise.
5068         * tests/test-avltree_list.c (ASSERT): Likewise.
5069         * tests/test-avltree_oset.c (ASSERT): Likewise.
5070         * tests/test-avltreehash_list.c (ASSERT): Likewise.
5071         * tests/test-binary-io.c (ASSERT): Likewise.
5072         * tests/test-byteswap.c (ASSERT): Likewise.
5073         * tests/test-c-ctype.c (ASSERT): Likewise.
5074         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
5075         * tests/test-c-strcasestr.c (ASSERT): Likewise.
5076         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
5077         * tests/test-c-strstr.c (ASSERT): Likewise.
5078         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
5079         * tests/test-canonicalize.c (ASSERT): Likewise.
5080         * tests/test-carray_list.c (ASSERT): Likewise.
5081         * tests/test-ceilf1.c (ASSERT): Likewise.
5082         * tests/test-ceilf2.c (ASSERT): Likewise.
5083         * tests/test-ceill.c (ASSERT): Likewise.
5084         * tests/test-count-one-bits.c (ASSERT): Likewise.
5085         * tests/test-fbufmode.c (ASSERT): Likewise.
5086         * tests/test-fflush2.c (ASSERT): Likewise.
5087         * tests/test-floorf1.c (ASSERT): Likewise.
5088         * tests/test-floorf2.c (ASSERT): Likewise.
5089         * tests/test-floorl.c (ASSERT): Likewise.
5090         * tests/test-fopen.c (ASSERT): Likewise.
5091         * tests/test-fpending.c (ASSERT): Likewise.
5092         * tests/test-fprintf-posix.c (ASSERT): Likewise.
5093         * tests/test-fpurge.c (ASSERT): Likewise.
5094         * tests/test-freadable.c (ASSERT): Likewise.
5095         * tests/test-freadahead.c (ASSERT): Likewise.
5096         * tests/test-freading.c (ASSERT): Likewise.
5097         * tests/test-freadptr.c (ASSERT): Likewise.
5098         * tests/test-freadptr2.c (ASSERT): Likewise.
5099         * tests/test-freadseek.c (ASSERT): Likewise.
5100         * tests/test-freopen.c (ASSERT): Likewise.
5101         * tests/test-frexp.c (ASSERT): Likewise.
5102         * tests/test-frexpl.c (ASSERT): Likewise.
5103         * tests/test-fseek.c (ASSERT): Likewise.
5104         * tests/test-fseeko.c (ASSERT): Likewise.
5105         * tests/test-fstrcmp.c (ASSERT): Likewise.
5106         * tests/test-ftell.c (ASSERT): Likewise.
5107         * tests/test-ftello.c (ASSERT): Likewise.
5108         * tests/test-func.c (ASSERT): Likewise.
5109         * tests/test-fwritable.c (ASSERT): Likewise.
5110         * tests/test-fwriting.c (ASSERT): Likewise.
5111         * tests/test-getdelim.c (ASSERT): Likewise.
5112         * tests/test-getline.c (ASSERT): Likewise.
5113         * tests/test-i-ring.c (ASSERT): Likewise.
5114         * tests/test-iconv-utf.c (ASSERT): Likewise.
5115         * tests/test-iconv.c (ASSERT): Likewise.
5116         * tests/test-isfinite.c (ASSERT): Likewise.
5117         * tests/test-isnand.c (ASSERT): Likewise.
5118         * tests/test-isnanf.c (ASSERT): Likewise.
5119         * tests/test-isnanl.h (ASSERT): Likewise.
5120         * tests/test-ldexpl.c (ASSERT): Likewise.
5121         * tests/test-linked_list.c (ASSERT): Likewise.
5122         * tests/test-linkedhash_list.c (ASSERT): Likewise.
5123         * tests/test-localename.c (ASSERT): Likewise.
5124         * tests/test-lseek.c (ASSERT): Likewise.
5125         * tests/test-mbscasecmp.c (ASSERT): Likewise.
5126         * tests/test-mbscasestr1.c (ASSERT): Likewise.
5127         * tests/test-mbscasestr2.c (ASSERT): Likewise.
5128         * tests/test-mbscasestr3.c (ASSERT): Likewise.
5129         * tests/test-mbscasestr4.c (ASSERT): Likewise.
5130         * tests/test-mbschr.c (ASSERT): Likewise.
5131         * tests/test-mbscspn.c (ASSERT): Likewise.
5132         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
5133         * tests/test-mbspbrk.c (ASSERT): Likewise.
5134         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
5135         * tests/test-mbsrchr.c (ASSERT): Likewise.
5136         * tests/test-mbsspn.c (ASSERT): Likewise.
5137         * tests/test-mbsstr1.c (ASSERT): Likewise.
5138         * tests/test-mbsstr2.c (ASSERT): Likewise.
5139         * tests/test-mbsstr3.c (ASSERT): Likewise.
5140         * tests/test-memchr2.c (ASSERT): Likewise.
5141         * tests/test-memmem.c (ASSERT): Likewise.
5142         * tests/test-open.c (ASSERT): Likewise.
5143         * tests/test-printf-frexp.c (ASSERT): Likewise.
5144         * tests/test-printf-frexpl.c (ASSERT): Likewise.
5145         * tests/test-printf-posix.c (ASSERT): Likewise.
5146         * tests/test-quotearg.c (ASSERT): Likewise.
5147         * tests/test-rbtree_list.c (ASSERT): Likewise.
5148         * tests/test-rbtree_oset.c (ASSERT): Likewise.
5149         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
5150         * tests/test-round1.c (ASSERT): Likewise.
5151         * tests/test-roundf1.c (ASSERT): Likewise.
5152         * tests/test-roundl.c (ASSERT): Likewise.
5153         * tests/test-signbit.c (ASSERT): Likewise.
5154         * tests/test-sleep.c (ASSERT): Likewise.
5155         * tests/test-snprintf-posix.c (ASSERT): Likewise.
5156         * tests/test-snprintf.c (ASSERT): Likewise.
5157         * tests/test-sprintf-posix.c (ASSERT): Likewise.
5158         * tests/test-stat-time.c (ASSERT): Likewise.
5159         * tests/test-strcasestr.c (ASSERT): Likewise.
5160         * tests/test-strerror.c (ASSERT): Likewise.
5161         * tests/test-striconv.c (ASSERT): Likewise.
5162         * tests/test-striconveh.c (ASSERT): Likewise.
5163         * tests/test-striconveha.c (ASSERT): Likewise.
5164         * tests/test-strsignal.c (ASSERT): Likewise.
5165         * tests/test-strstr.c (ASSERT): Likewise.
5166         * tests/test-strtod.c (ASSERT): Likewise.
5167         * tests/test-trunc1.c (ASSERT): Likewise.
5168         * tests/test-trunc2.c (ASSERT): Likewise.
5169         * tests/test-truncf1.c (ASSERT): Likewise.
5170         * tests/test-truncf2.c (ASSERT): Likewise.
5171         * tests/test-truncl.c (ASSERT): Likewise.
5172         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
5173         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
5174         * tests/test-vasnprintf.c (ASSERT): Likewise.
5175         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
5176         * tests/test-vasprintf.c (ASSERT): Likewise.
5177         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
5178         * tests/test-vprintf-posix.c (ASSERT): Likewise.
5179         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
5180         * tests/test-vsnprintf.c (ASSERT): Likewise.
5181         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
5182         * tests/test-wcwidth.c (ASSERT): Likewise.
5183         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
5184         * tests/test-xprintf-posix.c (ASSERT): Likewise.
5185         * tests/test-xvasprintf.c (ASSERT): Likewise.
5186         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
5187         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
5188         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
5189         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
5190         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
5191         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
5192         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
5193         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
5194         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
5195         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
5196         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
5197         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
5198         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
5199         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
5200         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
5201         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
5202         * tests/unictype/test-block_list.c (ASSERT): Likewise.
5203         * tests/unictype/test-block_of.c (ASSERT): Likewise.
5204         * tests/unictype/test-block_test.c (ASSERT): Likewise.
5205         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
5206         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
5207         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
5208         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
5209         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
5210         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
5211         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
5212         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
5213         * tests/unictype/test-combining.c (ASSERT): Likewise.
5214         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
5215         * tests/unictype/test-digit.c (ASSERT): Likewise.
5216         * tests/unictype/test-mirror.c (ASSERT): Likewise.
5217         * tests/unictype/test-numeric.c (ASSERT): Likewise.
5218         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
5219         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
5220         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
5221         * tests/unictype/test-scripts.c (ASSERT): Likewise.
5222         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
5223         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
5224         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
5225         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
5226         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
5227         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
5228         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
5229         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
5230         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
5231         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
5232         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
5233         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
5234         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
5235         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
5236         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
5237         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
5238         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
5239         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
5240         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
5241         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
5242         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
5243         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
5244         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
5245         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
5246         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
5247         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
5248         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
5249         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
5250         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
5251         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
5252         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
5253         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
5254         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
5255         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
5256         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
5257         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
5258         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
5259         Reported by Eric Blake.
5260
5261 2008-04-11  Bruno Haible  <bruno@clisp.org>
5262
5263         * lib/wchar.in.h: Tweak comment.
5264
5265 2008-04-11  Bruno Haible  <bruno@clisp.org>
5266
5267         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
5268         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
5269         gl_COMMON.
5270         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
5271
5272 2008-04-11  Bruno Haible  <bruno@clisp.org>
5273
5274         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
5275
5276 2008-04-11  Simon Josefsson  <simon@josefsson.org>
5277
5278         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
5279         of attempting to use non-existing /dev/*random.  Based on patch
5280         from Adam Strzelecki <ono@java.pl> in
5281         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
5282
5283 2008-04-08  Bruno Haible  <bruno@clisp.org>
5284
5285         Add tentative support for emx+gcc.
5286         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
5287         * lib/fpurge.c (fpurge): Likewise.
5288         * lib/freadable.c (freadable): Likewise.
5289         * lib/freadahead.c (freadahead): Likewise.
5290         * lib/freading.c (freading): Likewise.
5291         * lib/freadptr.c (freadptr): Likewise.
5292         * lib/freadseek.c (freadptrinc): Likewise.
5293         * lib/fseeko.c (rpl_fseeko): Likewise.
5294         * lib/fseterr.c (fseterr): Likewise.
5295         * lib/fwritable.c (fwritable): Likewise.
5296         * lib/fwriting.c (fwriting): Likewise.
5297         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
5298
5299 2008-04-09  Eric Blake  <ebb9@byu.net>
5300
5301         Avoid some autoconf warnings.
5302         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
5303         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
5304         * m4/afs.m4 (gl_AFS): Likewise.
5305         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
5306         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
5307         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
5308         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
5309         (gl_INTEGER_TYPE_SUFFIX): Likewise.
5310         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
5311         (AC_CHECK_DECLS_ONCE): Likewise.
5312         Rename file...
5313         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
5314         gnulib-tool requires autoconf 2.59 or better.
5315         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
5316
5317 2008-04-08  Eric Blake  <ebb9@byu.net>
5318
5319         Use 'git describe --match' if present (added in git 1.5.5).
5320         * build-aux/git-version-gen: Limit result to tags that match 'v*'
5321         if possible.
5322
5323 2008-04-08  Bruno Haible  <bruno@clisp.org>
5324
5325         Add tentative support for OpenServer.
5326         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
5327         _ptr, _cnt.
5328         * lib/fpurge.c (fpurge): Likewise.
5329         * lib/freadable.c (freadable): Likewise.
5330         * lib/freadahead.c (freadahead): Likewise.
5331         * lib/freading.c (freading): Likewise.
5332         * lib/freadptr.c (freadptr): Likewise.
5333         * lib/freadseek.c (freadptrinc): Likewise.
5334         * lib/fseeko.c (rpl_fseeko): Likewise.
5335         * lib/fseterr.c (fseterr): Likewise.
5336         * lib/fwritable.c (fwritable): Likewise.
5337         * lib/fwriting.c (fwriting): Likewise.
5338         Reported by Roger Cornelius <rac@tenzing.org> and
5339         Brian K. White <brian@aljex.com>.
5340
5341 2008-04-06  Jim Meyering  <meyering@redhat.com>
5342
5343         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
5344
5345 2008-04-06  Bruno Haible  <bruno@clisp.org>
5346
5347         Avoid possible error with non-ASCII bytes in UTF-8 locales.
5348         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
5349         * tests/test-printf-posix.sh: Likewise.
5350         * tests/test-vfprintf-posix.sh: Likewise.
5351         * tests/test-vprintf-posix.sh: Likewise.
5352         * tests/test-xprintf-posix.sh: Likewise.
5353
5354 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5355
5356         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
5357         hide error from 'ls', needed on OS/2.
5358         Report by Elbert Pol <elbert.pol@gmail.com>.
5359
5360 2008-04-04  Eric Blake  <ebb9@byu.net>
5361
5362         Make test-fseeko.c failures meaningful.
5363         * tests/test-fseeko.c: Print line number on failure.
5364         * tests/test-fseek.c: Likewise.
5365         Reported by Nelson H. F. Beebe.
5366
5367         Improve strtod bug detection check.
5368         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
5369         required for Solaris 10.
5370         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
5371
5372 2008-04-04  Bruno Haible  <bruno@clisp.org>
5373
5374         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
5375         by m4/setenv.m4.
5376
5377 2008-04-03  Eric Blake  <ebb9@byu.net>
5378
5379         Ensure sane .version contents.
5380         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
5381         version string.
5382         * build-aux/git-version-gen: Improve documentation.
5383
5384         Make GNU make output nicer.
5385         * top/GNUmakefile [!_have-Makefile]: Add dependency on
5386         MAKECMDGOALS to enforce message for all command line targets.  Set
5387         srcdir for use in maint.mk.
5388
5389         Another maintainer tweak.
5390         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
5391         a target that regenerates version.
5392
5393 2008-04-03  Jim Meyering  <meyering@redhat.com>
5394
5395         vc-list-files: don't cause coreutils "make po-check" failure
5396         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
5397
5398 2008-04-03  Eric Blake  <ebb9@byu.net>
5399
5400         Allow VPATH usage of vc-list-files.
5401         * build-aux/vc-list-files (scriptversion): Add timestamp.
5402         (options): Add --help, --version, -C.
5403         (CVS): Support installed cvsu.
5404
5405 2008-04-02  Bruno Haible  <bruno@clisp.org>
5406
5407         Avoid some "statement with no effect" warnings from gcc.
5408         * tests/test-wctype.c (main): Explicitly ignore unused values.
5409         Reported by Jim Meyering.
5410
5411 2008-04-02  Jim Meyering  <meyering@redhat.com>
5412
5413         Avoid some warnings from "gcc -Wshadow".
5414         * tests/test-frexp.c (exp): Define to a different identifier.
5415         * tests/test-frexpl.c (exp): Likewise.
5416
5417 2008-04-03  Jim Meyering  <meyering@redhat.com>
5418
5419         bootstrap: remove dangling *.[ch] symlinks from lib
5420         * build-aux/bootstrap [dangling symlink removal]: Move find's
5421         -depth option to precede all others, to avoid a warning.
5422         Remove *.[ch] files too, and from "$source_base" (usually lib/).
5423
5424 2008-04-02  Bruno Haible  <bruno@clisp.org>
5425
5426         Avoid some warnings from "gcc -Wshadow".
5427         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
5428         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
5429         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
5430         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
5431         Reported by Jim Meyering.
5432
5433 2008-04-01  Bruno Haible  <bruno@clisp.org>
5434
5435         Fix test to work on IRIX 6.5 with cc.
5436         * tests/test-math.c (numeric_equal): New function.
5437         (main): Use it.
5438
5439 2008-04-01  Bruno Haible  <bruno@clisp.org>
5440
5441         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
5442
5443 2008-04-01  Bruno Haible  <bruno@clisp.org>
5444
5445         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
5446         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
5447         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
5448         (Depends-on): Remove math.
5449
5450         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
5451         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
5452         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
5453         (Depends-on): Remove math.
5454
5455         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
5456         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
5457         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
5458         (Depends-on): Remove math.
5459         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
5460         (Depends-on): Remove math.
5461
5462         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
5463         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
5464         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
5465         (Depends-on): Remove math.
5466         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
5467         (Depends-on): Remove math.
5468
5469         * tests/test-round1.c: Include nan.h.
5470         (main): Use NaNd instead of NAN.
5471         * modules/round-tests (Files): Add tests/nan.h.
5472
5473         * tests/test-trunc1.c: Include nan.h.
5474         (main): Use NaNd instead of NAN.
5475         * modules/trunc-tests (Files): Add tests/nan.h.
5476
5477         * tests/test-roundf1.c: Include nan.h.
5478         (main): Use NaNf instead of NAN.
5479         * modules/roundf-tests (Files): Add tests/nan.h.
5480
5481         * tests/test-truncf1.c: Include nan.h.
5482         (main): Use NaNf instead of NAN.
5483         * modules/truncf-tests (Files): Add tests/nan.h.
5484
5485         * tests/test-ceilf1.c: Include nan.h.
5486         (main): Use NaNf instead of NAN.
5487         * modules/ceilf-tests (Files): Add tests/nan.h.
5488
5489         * tests/test-floorf1.c: Include nan.h.
5490         (main): Use NaNf instead of NAN.
5491         * modules/floorf-tests (Files): Add tests/nan.h.
5492
5493         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
5494         (main): Use NaNf instead of NAN.
5495         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
5496
5497         * tests/test-isnand.c: Include nan.h instead of <math.h>.
5498         (main): Use NaNd instead of NAN.
5499         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
5500
5501         * tests/test-frexp.c: Include nan.h.
5502         (main): Use NaNd instead of NAN.
5503         * modules/frexp-tests (Files): Add tests/nan.h.
5504
5505         * lib/isnan.c: Don't include <math.h>.
5506         (FUNC): Don't use NAN macro.
5507         * modules/isnand-nolibm (Depends-on): Remove math.
5508         * modules/isnanf-nolibm (Depends-on): Remove math.
5509         * modules/isnanl (Depends-on): Remove math.
5510         * modules/isnanl-nolibm (Depends-on): Remove math.
5511
5512         * tests/nan.h: New file.
5513
5514 2008-04-01  Eric Blake  <ebb9@byu.net>
5515
5516         Fix typos.
5517         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
5518         values to be the right type.
5519
5520         For now, cater to gnulib strtod inaccuracies.
5521         * tests/test-strtod.c (main): Allow 1-ulp error on expected
5522         fractional results.  While not as nice from a QoI perspective, it
5523         is a quicker patch than correctly implementing decimal to binary
5524         rounding.
5525
5526 2008-03-31  Eric Blake  <ebb9@byu.net>
5527
5528         Guarantee a definition of NAN.
5529         * lib/math.in.h (NAN): Define if missing.
5530         * tests/test-math.c (main): Test it.
5531         * doc/posix-headers/math.texi (math.h): Document this.
5532         * lib/isnan.c (rpl_isnand): Use it.
5533         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
5534         * tests/test-floorf1.c (NaN): Likewise.
5535         * tests/test-frexp.c (NaN): Likewise.
5536         * tests/test-isnand.c (NaN): Likewise.
5537         * tests/test-isnanf.c (NaN): Likewise.
5538         * tests/test-round1.c (NaN): Likewise.
5539         * tests/test-roundf1.c (NaN): Likewise.
5540         * tests/test-snprintf-posix.h (NaN): Likewise.
5541         * tests/test-sprintf-posix.h (NaN): Likewise.
5542         * tests/test-trunc1.c (NaN): Likewise.
5543         * tests/test-truncf1.c (NaN): Likewise.
5544         * tests/test-vasnprintf-posix.c (NaN): Likewise.
5545         * tests/test-vasprintf-posix.c (NaN): Likewise.
5546         * modules/isnand-nolibm (Depends-on): Add math.
5547         * modules/isnanf-nolibm (Depends-on): Likewise.
5548         * modules/isnanl (Depends-on): Likewise.
5549         * modules/isnanl-nolibm (Depends-on): Likewise.
5550         * modules/snprintf-posix-tests (Depends-on): Likewise.
5551         * modules/sprintf-posix-tests (Depends-on): Likewise.
5552         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
5553         * modules/vsprintf-posix-tests (Depends-on): Likewise.
5554         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
5555         * modules/vasprintf-posix-tests (Depends-on): Likewise.
5556
5557 2008-03-31  Bruno Haible  <bruno@clisp.org>
5558
5559         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
5560         * doc/posix-functions/strtod.texi: Likewise.
5561
5562 2008-03-31  Bruno Haible  <bruno@clisp.org>
5563
5564         * tests/test-strtod.c (main): Don't use C99 syntax.
5565
5566 2008-03-31  Bruno Haible  <bruno@clisp.org>
5567
5568         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
5569         Reported by Eric Blake.
5570
5571 2008-03-31  Jim Meyering  <meyering@redhat.com>
5572
5573         Don't compare actual signbit return values.
5574         * tests/test-strtod.c (main): Rather, compare only their
5575         zero/non-zero nature.
5576
5577 2008-03-31  Eric Blake  <ebb9@byu.net>
5578
5579         More strtod documentation.
5580         * doc/posix-functions/strtod.texi (strtod): Interpret more test
5581         failures as distinct bugs.
5582
5583 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
5584
5585         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
5586         Problem reported by Erik Benada in
5587         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
5588
5589 2008-03-30  Bruno Haible  <bruno@clisp.org>
5590
5591         * tests/test-strtod.c: Add comments about which assertion fails on which
5592         platform.
5593         * doc/posix-functions/strtod.texi: Add info about many more platforms.
5594
5595 2008-03-30  Eric Blake  <ebb9@byu.net>
5596
5597         Test signbit behavior on zeros.
5598         * tests/test-signbit.c (test_signbitf): Add tests for zero.
5599         (test_signbitd, test_signbitl): Likewise.
5600
5601         More strtod touchups.
5602         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
5603         sign of negative underflow, for now.  Use .5, not .1.
5604         * doc/posix-functions/strtod.texi (strtod): Mention these
5605         limitations.
5606         Reported by Jim Meyering.
5607
5608 2008-03-30  Bruno Haible  <bruno@clisp.org>
5609
5610         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
5611         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
5612
5613 2008-03-30  Bruno Haible  <bruno@clisp.org>
5614
5615         Avoid failure when attempting to return empty iconv results on some
5616         platforms.
5617         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
5618         allocation, don't report ENOMEM when the resulting string is empty.
5619
5620 2008-03-30  Bruno Haible  <bruno@clisp.org>
5621
5622         Fix buffer overrun.
5623         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
5624         Don't consider the width for tmp_length. Check count against tmp_length
5625         before doing the padding. Ensure enough allocation during padding.
5626
5627 2008-03-30  Eric Blake  <ebb9@byu.net>
5628
5629         strtod touchups.
5630         * lib/strtod.c (strtod): Avoid compiler warnings.
5631         Reported by Jim Meyering.
5632
5633 2008-03-30  Bruno Haible  <bruno@clisp.org>
5634
5635         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
5636         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
5637         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
5638         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
5639         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
5640         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
5641         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
5642         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
5643
5644         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
5645         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
5646         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
5647         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
5648         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
5649         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
5650         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
5651         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
5652
5653         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
5654         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
5655         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
5656         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
5657         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
5658         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
5659         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
5660         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
5661
5662         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
5663         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
5664
5665         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
5666         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
5667
5668         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
5669         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
5670
5671         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
5672         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
5673         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
5674
5675         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
5676         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
5677         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
5678
5679         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
5680         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
5681         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
5682
5683         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
5684         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
5685         * modules/vasprintf (Depends-on): Add EOVERFLOW.
5686
5687         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
5688         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
5689         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
5690         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
5691         (Depends-on): Add EOVERFLOW.
5692         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
5693         (Depends-on): Add EOVERFLOW.
5694         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
5695         (Depends-on): Add EOVERFLOW.
5696         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
5697         (Depends-on): Add EOVERFLOW.
5698         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
5699         (Depends-on): Add EOVERFLOW.
5700         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
5701         (Depends-on): Add EOVERFLOW.
5702         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
5703         (Depends-on): Add EOVERFLOW.
5704         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
5705         (Depends-on): Add EOVERFLOW.
5706
5707         * lib/sprintf.c (EOVERFLOW): Remove fallback.
5708         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
5709         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
5710
5711         * lib/snprintf.c (EOVERFLOW): Remove fallback.
5712         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
5713         * modules/snprintf (Depends-on): Add EOVERFLOW.
5714
5715         * lib/poll.c (EOVERFLOW): Remove fallback.
5716         * modules/poll (Depends-on): Add EOVERFLOW.
5717
5718         * lib/getugroups.c (EOVERFLOW): Remove fallback.
5719         * modules/getugroups (Depends-on): Add EOVERFLOW.
5720
5721         * lib/getdelim.c (EOVERFLOW): Remove fallback.
5722         * modules/getdelim (Depends-on): Add EOVERFLOW.
5723
5724         * lib/ftell.c (EOVERFLOW): Remove fallback.
5725         * modules/ftell (Depends-on): Add EOVERFLOW.
5726
5727         * lib/fprintf.c (EOVERFLOW): Remove fallback.
5728         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
5729         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
5730
5731         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
5732
5733         * modules/EOVERFLOW-tests: New file.
5734         * tests/test-EOVERFLOW.c: New file.
5735
5736         * modules/EOVERFLOW: New file.
5737         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
5738
5739 2008-03-30  Bruno Haible  <bruno@clisp.org>
5740
5741         Fix bug introduced on 2007-06-10.
5742         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
5743         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
5744
5745 2008-03-30  Bruno Haible  <bruno@clisp.org>
5746
5747         Improve freadseek's efficiency after ungetc.
5748         * lib/freadseek.c: Include freadahead.h.
5749         (freadptrinc): New function, extracted from freadseek.
5750         (freadseek): Use it in a loop. Use freadahead to determine the number
5751         of loop iterations.
5752         * modules/freadseek (Depends-on): Add freadahead.
5753         (configure.ac): Require AC_C_INLINE.
5754
5755 2008-03-30  Bruno Haible  <bruno@clisp.org>
5756
5757         * lib/freadseek.c (freadseek): Don't ignore the return value of
5758         freadptr.
5759
5760 2008-03-29  Eric Blake  <ebb9@byu.net>
5761
5762         Add hex float support.
5763         * modules/strtod (Depends-on): Add c-ctype.
5764         (Link): Mention POW_LIB.
5765         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
5766         whitespace between 'e' and exponent.
5767         * tests/test-strtod.c (main): Enable hex float tests.
5768         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
5769         now provides.
5770
5771         Document various strtod bugs, with some fixes.
5772         * doc/posix-functions/strtod.texi (strtod): Document bugs with
5773         "-0x", "inf", "nan", and hex constants.
5774         * doc/posix-functions/atof.texi (atof): Likewise.
5775         * modules/stdlib (Makefile.am): Support strtod.
5776         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
5777         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
5778         detect additional strtod bugs.
5779         * lib/stdlib.in.h (rpl_strtod): Add declarations.
5780         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
5781         bool where appropriate.  Parse 'inf' and 'nan'.
5782         * tests/test-strtod.c: New file.
5783         * modules/strtod (Depends-on): Add stdbool, stdlib.
5784         (configure.ac): Turn on module indicator.
5785         * modules/strtod-tests: New module.
5786
5787 2008-03-29  Eric Blake  <ebb9@byu.net>
5788
5789         Fix ftell on mingw.
5790         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
5791         * modules/ftell-tests (Depends-on): Add binary-io.
5792         * modules/ftello-tests (Depends-on): Likewise.
5793         * tests/test-ftell.c (main): Enhance test to cover behavior after
5794         ungetc.  Enforce binary mode.
5795         * tests/test-ftello.c (main): Likewise.
5796
5797         Pass test-freadseek on cygwin.
5798         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
5799         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
5800         ungetc buffer.
5801
5802         * tests/test-fflush2.c (main): Fix typo.
5803
5804 2008-03-29  Bruno Haible  <bruno@clisp.org>
5805
5806         * tests/test-fflush2.c (main): Temporarily disable the contents of
5807         this test.
5808         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
5809         Reported by Eric Blake.
5810
5811 2008-03-28  Simon Josefsson  <simon@josefsson.org>
5812
5813         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
5814         (GC_SHA224_DIGEST_SIZE): Add.
5815
5816         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
5817         (gc_hash_digest_length): Likewise.
5818         (gc_hash_buffer): Likewise.
5819
5820 2008-03-25  Bruno Haible  <bruno@clisp.org>
5821
5822         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
5823         detail which gettext release to use.
5824         Reported by Simon Josefsson.
5825
5826 2008-03-26  Jim Meyering  <meyering@redhat.com>
5827
5828         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
5829         * modules/gnumakefile (clean-GNUmakefile): Also, use
5830         test ... && ... || : syntax rather than if-then ... fi.
5831
5832         gnumakefile: Don't double-quote-expand $(VPATH) value.
5833         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
5834
5835 2008-03-24  Eric Blake  <ebb9@byu.net>
5836
5837         Alter GNUmakefile to install into top directory.
5838         * modules/maintainer-makefile: Split, and add dependency...
5839         * modules/gnumakefile: to this new module.
5840         * build-aux/GNUmakefile: Move...
5841         * top/GNUmakefile: ...here.
5842         * build-aux/maint.mk: Move...
5843         * top/maint.mk: ...here.
5844         * MODULES.html.sh (Support for maintaining...): Document new
5845         module.
5846
5847 2008-03-23  Bruno Haible  <bruno@clisp.org>
5848
5849         * gnulib-tool: New options --vc-files, --no-vc-files.
5850         (func_usage): Document them.
5851         (vc_files): New variable.
5852         (func_import): Consider vc_files.
5853         (func_create_testdir): Set vc_files to empty.
5854         Suggested by Jim Meyering and Karl Berry.
5855
5856 2008-03-23  Bruno Haible  <bruno@clisp.org>
5857
5858         Fix regex compilation error on HP-UX 11.
5859         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
5860         * modules/regex (Files): Add m4/mbstate_t.m4.
5861         Reported by Ton Voon <ton.voon@altinity.com>.
5862
5863 2008-03-23  Bruno Haible  <bruno@clisp.org>
5864
5865         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
5866
5867 2008-03-23  Eric Blake  <ebb9@byu.net>
5868             Bruno Haible  <bruno@clisp.org>
5869
5870         Install files from top/ in the destination directory.
5871         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
5872         augmentation also for the files from top/.
5873         (func_import, func_create_testdir): Rewrite file names:
5874         top/filename -> filename.
5875
5876 2008-03-23  Bruno Haible  <bruno@clisp.org>
5877
5878         Tweak "gnulib --version" output.
5879         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
5880
5881 2008-03-23  Bruno Haible  <bruno@clisp.org>
5882
5883         Tweak "gnulib --version" output.
5884         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
5885         rather than contents of ChangeLog, when possible.
5886
5887 2008-03-21  Eric Blake  <ebb9@byu.net>
5888
5889         More --version tweaks.
5890         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
5891         date of last ChangeLog entry.
5892
5893 2008-03-21  Jim Meyering  <meyering@redhat.com>
5894
5895         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
5896
5897 2008-03-20  Eric Blake  <ebb9@byu.net>
5898
5899         VPATH fix.
5900         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
5901
5902 2008-03-20  Simon Josefsson  <simon@josefsson.org>
5903
5904         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
5905         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
5906
5907 2008-03-20  Eric Blake  <ebb9@byu.net>
5908
5909         Sync GNUmakefile with coreutils.
5910         * build-aux/GNUmakefile (have-Makefile): Rename...
5911         (_have-Makefile): ...to this, for namespace consideration.
5912         (GNUmakefile.cfg): Include, if present.
5913         (_autoreconf): Define a default.
5914         (_is-dist-target): New rule for rebuilds to pick up intra-release
5915         version.
5916         (maint-cfg.mk): Rename...
5917         (cfg.mk): ...to this.
5918
5919 2008-03-18  Jim Meyering  <meyering@redhat.com>
5920
5921         New script and module: mktempd
5922         * MODULES.html.sh (maint+release support): Add mktempd.
5923         * build-aux/mktempd: New file.
5924         * modules/mktempd: New file.
5925
5926 2008-03-15  Jim Meyering  <meyering@redhat.com>
5927
5928         Undo last change.
5929         * lib/sha1.c, lib/md5.c: 63 != ~63.
5930         Reported by Andreas Schwab.
5931
5932         sha1.c, md5.c: Hoist a redundant expression.
5933         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
5934         "ctx->buflen" only once, before calling *_process_block.
5935         * lib/md5.c (md5_process_bytes): Likewise.
5936
5937 2008-03-14  Eric Blake  <ebb9@byu.net>
5938
5939         Bump copyright year in files generated by gnulib-tool.
5940         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
5941         gnulib-tool, rather than hard-coding it.
5942
5943         Fix 'gnulib-tool --version' output to work with git.
5944         * gnulib-tool (func_gnulib_dir): New function, extracted from...
5945         (startup): ...here.
5946         (func_version): Use it to invoke git-version-gen, rather than
5947         relying on CVS keyword expansion.  Modernize wording.
5948         (cvsdatestamp, last_checkin_date, version): Kill unused
5949         variables.
5950
5951 2008-03-12  Jim Meyering  <meyering@redhat.com>
5952
5953         Recognize optional cast of the argument to free.
5954         * build-aux/useless-if-before-free: Update regexps.
5955
5956         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
5957
5958 2008-03-11  Bruno Haible  <bruno@clisp.org>
5959
5960         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
5961         by a single package.
5962         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
5963         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
5964         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
5965         Reported by Sam Steingold <sds@gnu.org>.
5966
5967 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
5968
5969         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
5970         repositories.
5971
5972 2008-03-11  Bruno Haible  <bruno@clisp.org>
5973
5974         Avoid conflicts between local macro definitions.
5975         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
5976         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
5977
5978 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
5979             Bruno Haible  <bruno@clisp.org>
5980
5981         Make va_copy work with some version of xlc on AIX 5.1.
5982         * lib/stdarg.in.h: New file.
5983         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
5984         On AIX, use a <stdarg.h> file substitute.
5985         * modules/stdarg (Files): Add lib/stdarg.in.h.
5986         (Depends-on): Add include_next.
5987         (Makefile.am): Build a stdarg.h substitute if requested.
5988         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
5989
5990 2008-03-10  Bruno Haible  <bruno@clisp.org>
5991
5992         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
5993         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
5994         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
5995
5996 2008-03-10  Bruno Haible  <bruno@clisp.org>
5997
5998         * modules/stdlib (Depends-on): Add include_next, remove
5999         absolute-header.
6000
6001 2008-03-09  Bruno Haible  <bruno@clisp.org>
6002
6003         * lib/freadahead.h (freadahead): Document more precisely.
6004         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
6005         the sum of both buffer sizes.
6006         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
6007         * NEWS: Document the change.
6008
6009 2008-03-09  Bruno Haible  <bruno@clisp.org>
6010
6011         Extend freadptr to return also the buffer size.
6012         * lib/freadptr.h (freadptr): Add sizep argument.
6013         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
6014         (freadptr): Add sizep argument. Determine buffer size like freadahead
6015         does.
6016         * tests/test-freadptr.c: Don't include freadahead.h.
6017         (main): Adapt for new calling convention of freadptr.
6018         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
6019         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
6020         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
6021         tests/test-freadptr2.sh.
6022         (Depends): Remove freadahead.
6023         (TESTS): Add test-freadptr2.sh.
6024         (check_PROGRAMS): Add test-freadptr2.
6025
6026 2008-03-09  Bruno Haible  <bruno@clisp.org>
6027
6028         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
6029         Report and solution by Simon Josefsson.
6030
6031 2008-03-06  Bruno Haible  <bruno@clisp.org>
6032
6033         Make fflush after ungetc work on BSD platforms.
6034         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
6035         * tests/test-fflush2.c: New file.
6036         * tests/test-fflush2.sh: New file.
6037         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
6038         tests/test-fflush2.c.
6039         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
6040         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
6041
6042 2008-03-06  Eric Blake  <ebb9@byu.net>
6043
6044         Likewise for ftello.
6045         * modules/ftello (Dependencies): Add extensions.
6046         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
6047
6048 2008-03-06  Bruno Haible  <bruno@clisp.org>
6049
6050         * modules/fseeko (Dependencies): Add extensions.
6051         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
6052         Needed on glibc systems.
6053
6054 2008-03-06  Bruno Haible  <bruno@clisp.org>
6055
6056         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
6057         email address.
6058         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
6059
6060 2008-03-06  Bruno Haible  <bruno@clisp.org>
6061
6062         * users.txt: Add libgnupdf.
6063
6064 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
6065
6066         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
6067         (Header File Substitutes, Function Substitutes,
6068         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
6069         (Build robot for gnulib): Fix typo.
6070
6071 2008-03-06  Bruno Haible  <bruno@clisp.org>
6072
6073         * doc/gnulib-tool.texi (VCS Issues): Small updates.
6074         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
6075
6076 2008-03-06  Bruno Haible  <bruno@clisp.org>
6077
6078         * doc/func.texi: New file, extracted from doc/gnulib.texi.
6079         * doc/gnulib.texi: Include it.
6080
6081 2008-03-06  Simon Josefsson  <simon@josefsson.org>
6082
6083         * modules/func (License): Change license to unlimited; there was
6084         no LGPL parts in the module anyway.
6085
6086 2008-03-06  Simon Josefsson  <simon@josefsson.org>
6087
6088         * modules/__func__: Renamed to modules/func.
6089         * modules/__func__-tests: Renamed to modules/func-tests.
6090         * tests/test-__func__.c: Renamed to tests/test-func.c.
6091         * m4/__func__.m4: Renamed to m4/func.m4.
6092         * doc/gnulib.texi (__func__): Section renamed to func.
6093         Suggested by Eric Blake <ebb9@byu.net>.
6094
6095 2008-03-06  Simon Josefsson  <simon@josefsson.org>
6096
6097         * doc/gnulib.texi (__func__): Use C99 terminology when talking
6098         about __func__.  Make example self-contained.  Suggested by Eric
6099         Blake <ebb9@byu.net>.
6100
6101         * tests/test-__func__.c (main): Avoid extraneous () around __func.
6102         Suggested by Eric Blake <ebb9@byu.net>.
6103
6104 2008-03-06  Simon Josefsson  <simon@josefsson.org>
6105
6106         * modules/__func__: New file.
6107         * modules/__func__-tests: New file.
6108         * tests/test-__func__.c: New file.
6109         * m4/__func__.m4: New file.
6110         * doc/gnulib.texi (__func__): Document __func__ module.
6111
6112 2008-03-05  Simon Josefsson  <simon@josefsson.org>
6113
6114         * modules/byteswap (License): Re-license as LGPLv2+.
6115
6116 2008-03-05  Simon Josefsson  <simon@josefsson.org>
6117
6118         * doc/Makefile: Add pdf target.
6119
6120 2008-03-05  Simon Josefsson  <simon@josefsson.org>
6121
6122         * modules/inline (License): Use 'unlimited', since there are only
6123         *.m4 files in this module.
6124
6125 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
6126             Bruno Haible  <bruno@clisp.org>
6127
6128         Add support for HP C 7.1 on OpenVMS 8.3.
6129         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
6130
6131 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
6132
6133         Update VMS specifics.
6134         * lib/getopt.c [VMS]: Remove include of unixlib.h.
6135
6136 2008-03-02  Jim Meyering  <meyering@redhat.com>
6137
6138         Remove the last dependency on the "free" module.
6139         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
6140         Reported by Bob Proulx.
6141
6142         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
6143
6144         Remove useless "if" tests before free.  Deprecate "free" module.
6145         * doc/posix-functions/free.texi: Mention that this
6146         module is no longer useful.
6147         * modules/free (Notice): Say this module is obsolete.
6148         * modules/readutmp (Depends-on): Remove free.
6149         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
6150         * lib/putenv.c (putenv): Likewise.
6151         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
6152         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
6153         * tests/test-c-strcasestr.c (main): Likewise.
6154         * tests/test-c-strstr.c (main): Likewise.
6155         * tests/test-mbscasestr1.c (main): Likewise.
6156         * tests/test-mbscasestr2.c (main): Likewise.
6157         * tests/test-mbsstr1.c (main): Likewise.
6158         * tests/test-mbsstr2.c (main): Likewise.
6159         * tests/test-memmem.c (main): Likewise.
6160         * tests/test-strcasestr.c (main): Likewise.
6161         * tests/test-striconv.c (main): Likewise.
6162         * tests/test-striconveh.c (main): Likewise.
6163         * tests/test-striconveha.c (main): Likewise.
6164         * tests/test-strstr.c (main): Likewise.
6165
6166         * build-aux/git-version-gen: Adjust a comment and the Usage string.
6167
6168         bootstrap: sync from coreutils again
6169         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
6170
6171 2008-03-01  Jim Meyering  <meyering@redhat.com>
6172
6173         bootstrap: sync from coreutils
6174         * build-aux/bootstrap (update_po_files): Copy a .po file into place
6175         also when the target doesn't exist.
6176
6177 2008-03-01  Eric Blake  <ebb9@byu.net>
6178
6179         Fix bugs in last patch.
6180         * lib/memchr2.c (memchr2): Fix typo.
6181         * tests/test-memchr2.c: Test previous bug, and don't use GNU
6182         extension.
6183         Reported by Bruce Korb.
6184
6185         New module 'memchr2'.
6186         * modules/memchr2: New file.
6187         * modules/memchr2-tests: Likewise.
6188         * lib/memchr2.h: Likewise.
6189         * lib/memchr2.c: Likewise, based on memchr.c.
6190         * tests/test-memchr2.c: New test.
6191         * MODULES.html.sh (String handling): Add memchr2.
6192
6193 2008-02-29  Bruno Haible  <bruno@clisp.org>
6194
6195         * modules/freadseek-tests: New file.
6196         * tests/test-freadseek.sh: New file.
6197         * tests/test-freadseek.c: New file.
6198
6199         New module 'freadseek'.
6200         * modules/freadseek: New file.
6201         * lib/freadseek.h: New file.
6202         * lib/freadseek.c: New file.
6203         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
6204
6205 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
6206
6207         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
6208         wydawca.
6209
6210         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
6211         program_invocation_name and program_invocation_short_name are
6212         present.
6213
6214 2008-02-28  Bruno Haible  <bruno@clisp.org>
6215
6216         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
6217         * tests/test-freadptr.sh: Also test non-seekable stdin.
6218
6219 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
6220
6221         * build-aux/bootstrap (source_base, m4_base)
6222         (doc_base, tests_base): New variables.
6223         (gnulib_tool_options): Do not hardcode base directories, use
6224         the above variables instead.
6225
6226 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
6227
6228         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
6229
6230 2008-02-28  Bruno Haible  <bruno@clisp.org>
6231
6232         * modules/freadptr-tests: New file.
6233         * tests/test-freadptr.sh: New file.
6234         * tests/test-freadptr.c: New file.
6235
6236         New module 'freadptr'.
6237         * modules/freadptr: New file.
6238         * lib/freadptr.h: New file.
6239         * lib/freadptr.c: New file.
6240         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
6241
6242 2008-02-26  Karl Berry  <karl@freefriends.org>
6243
6244         Sync from Libtool:
6245         * libltdl/argz.c (argz_add, argz_count): New functions.
6246         * libltdl/argz.in.h: Declare them.
6247         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
6248
6249 2008-02-22  Bruno Haible  <bruno@clisp.org>
6250
6251         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
6252         is a pointer type.  Needed for HP-UX 10.
6253         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
6254         * doc/posix-functions/gmtime_r.texi: Likewise.
6255         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
6256
6257 2008-02-24  Bruno Haible  <bruno@clisp.org>
6258
6259         * modules/environ-tests: New file.
6260         * tests/test-environ.c: New file.
6261
6262         New module 'environ'.
6263         * modules/environ: New file.
6264         * lib/unistd.in.h (environ): New declaration.
6265         * m4/environ.m4: New file.
6266         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
6267         after use.
6268         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
6269         HAVE_DECL_ENVIRON.
6270         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
6271         HAVE_DECL_ENVIRON.
6272         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
6273         wrong claim that 'environ' is missing on some systems.
6274         * modules/execute (Depends-on): Add environ.
6275         * lib/execute.c (environ): Remove fallback declaration.
6276         * modules/pipe (Depends-on): Add environ.
6277         * lib/pipe.c (environ): Remove fallback declaration.
6278         * modules/setenv (Depends-on): Add environ.
6279         * lib/setenv.c (environ): Remove fallback declaration.
6280         * modules/unsetenv (Depends-on): Add environ.
6281         * lib/unsetenv.c (environ): Remove fallback declaration.
6282         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
6283         m4/environ.m4.
6284         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
6285         (gl_PREREQ_UNSETENV): Likewise.
6286
6287 2008-02-24  Bruno Haible  <bruno@clisp.org>
6288
6289         * doc/posix-functions/environ.texi: Document the MacOS X problem.
6290
6291 2008-02-20  Bob Proulx  <bob@proulx.com>
6292
6293         Enable use of older two part flavor 'git describe'.
6294         * build-aux/git-version-gen: If using the older two part flavor of
6295         git version then recreate the third part now present in the
6296         newer three part flavor of git describe.
6297
6298 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
6299
6300         * lib/fts.c (fts_build): Typo correction to comment.
6301
6302 2008-02-17  Bruno Haible  <bruno@clisp.org>
6303
6304         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
6305         generating no-op conflicts.
6306
6307 2008-02-17  Bruno Haible  <bruno@clisp.org>
6308
6309         Speed up by 10%.
6310         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
6311         result_entries, rather than an index-based loop.
6312
6313 2008-02-17  Bruno Haible  <bruno@clisp.org>
6314
6315         Speed up by 25%.
6316         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
6317         'hashcode_cached'.
6318         (entry_create): New function.
6319         (entry_hashcode): Use the cached hashcode if possible.
6320         (read_changelog_file, try_split_merged_entry): Use entry_create.
6321
6322 2008-02-17  Bruno Haible  <bruno@clisp.org>
6323
6324         Speed up from O(n^2) to O(n) for long ChangeLog files.
6325         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
6326         (read_changelog_file): Change implementation of entries_reversed list
6327         to rbtreehash.
6328         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
6329
6330 2008-02-17  Bruno Haible  <bruno@clisp.org>
6331
6332         New option --split-merged-entry.
6333         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
6334         (find_paragraph_end, try_split_merged_entry): New functions.
6335         (long_options): Add option --split-merged-entry.
6336         (usage): Document option --split-merged-entry.
6337         (main): Implement option --split-merged-entry.
6338         Reported by Eric Blake.
6339
6340 2008-02-17  Bruno Haible  <bruno@clisp.org>
6341
6342         * lib/git-merge-changelog.c: Include c-strstr.h.
6343         (main): Support the "git pull --rebase" situation.
6344         * modules/git-merge-changelog (Depends-on): Add c-strstr.
6345         Reported by Eric Blake.
6346
6347 2008-02-16  Eric Blake  <ebb9@byu.net>
6348
6349         Avoid doubling \ in common case of "c-maybe" quoting style.
6350         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
6351         eliding outer quotes.
6352         * lib/quotearg.h: Document this.
6353         * tests/test-quotearg.c (result_strings, inputs, results_g)
6354         (flag_results, locale_results): Test it by adding a new string to
6355         each test group.
6356         (compare_strings): Test new string.
6357
6358 2008-02-13  Eric Blake  <ebb9@byu.net>
6359
6360         Avoid trigraph quoting in default output.
6361         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
6362         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
6363         unless explicitly requested.
6364         * tests/test-quotearg.c (flag_results, main): Add additional tests.
6365
6366 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
6367
6368         Don't rely on signed integer overflowing to negative value.
6369         * lib/getugroups.c (getugroups): Include <limits.h>.
6370         Instead, compare against INT_MAX, and increment only if the test passes.
6371
6372 2008-02-13  Jim Meyering  <meyering@redhat.com>
6373         and Eric Blake  <ebb9@byu.net>
6374
6375         Avoid shadowing warning and compile errors on Linux.
6376         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
6377         forwarding macros on Linux.
6378         (dcgettext): Define a stub, for Linux.
6379         (results_g, main): Avoid warnings.
6380
6381 2008-02-12  Eric Blake  <ebb9@byu.net>
6382
6383         Silence warning in last patch.
6384         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
6385
6386         Quotearg part 4: add tests, fix c-maybe colon quoting.
6387         * lib/quotearg.h: Improve documentation.
6388         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
6389         escapes when adding outer quotes.  When quoting trigraphs, use
6390         valid C notation.  When quoting NUL, omit extra characters if next
6391         character is not digit.  Alter prototype.
6392         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
6393         callers.
6394         * modules/quotearg-tests: New module.
6395         * tests/test-quotearg.c: New test.
6396
6397 2008-02-07  Eric Blake  <ebb9@byu.net>
6398
6399         Quotearg part 3: add flag to control outer quote elision.
6400         * lib/quotearg.h (c_maybe_quoting_style): New style.
6401         (enum quoting_flags): Better documentation of flags.
6402         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
6403         c-maybe style.
6404         (quotearg_buffer_restyled): Handle new flag to elide outer
6405         quotes.
6406
6407         Quotearg part 2: add flag that can control NUL elision.
6408         * lib/quotearg.h (set_quoting_flags): New prototype.
6409         * lib/quotearg.c (struct quoting_options): Add flag field.
6410         (set_quoting_flags): New function.
6411         (quotearg_buffer_restyled): Add flags parameter.
6412         (quotearg_alloc_mem): Set the flag if length cannot be returned.
6413         (quotearg_n_options): Set the flag, since length cannot be
6414         returned.
6415         (quoting_options_from_style): Default flags correctly.
6416
6417         Quotearg part 1: more wrappers, restore quotearg_char state.
6418         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
6419         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
6420         (quotearg_colon_mem): New wrappers.
6421         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
6422         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
6423         functions.
6424         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
6425         (quotearg_colon_mem): New functions.
6426
6427 2008-02-11  Bruno Haible  <bruno@clisp.org>
6428
6429         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
6430         library in the current directory: it does not work with parallel make.
6431         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
6432
6433 2008-02-11  Bruno Haible  <bruno@clisp.org>
6434
6435         * .gitattributes: New file.
6436
6437 2008-02-11  Jim Meyering  <meyering@redhat.com>
6438
6439         useless-if-before-free: Fix reversed exit values.
6440         * build-aux/useless-if-before-free: Use correct values
6441         for EXIT_MATCH and EXIT_NO_MATCH.
6442
6443         * build-aux/useless-if-before-free: Close stdout carefully.
6444
6445 2008-02-10  Bruno Haible  <bruno@clisp.org>
6446
6447         New module 'git-merge-changelog'.
6448         * modules/git-merge-changelog: New file.
6449         * lib/git-merge-changelog.c: New file.
6450
6451 2008-02-10  Jim Meyering  <meyering@redhat.com>
6452
6453         useless-if-before-free: New option: --list (-l).
6454
6455         useless-if-before-free: Don't exit immediately upon open failure.
6456         * build-aux/useless-if-before-free: Exit 2 for errors.
6457         Upon failure to open a file, don't exit immediately.
6458         Rather, just warn and continue with any remaining files.
6459
6460 2008-02-10  Bruno Haible  <bruno@clisp.org>
6461
6462         New abstract list operation 'node_set_value'.
6463         * lib/gl_list.h (gl_list_node_set_value): New function.
6464         (struct gl_list_implementation): New field node_set_value.
6465         * lib/gl_list.c (gl_list_node_set_value): New function.
6466         * lib/gl_array_list.c (gl_array_node_set_value): New function.
6467         (gl_array_list_implementation): Update.
6468         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
6469         (gl_carray_list_implementation): Update.
6470         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
6471         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
6472         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
6473         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
6474         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
6475         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
6476         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
6477         Update.
6478         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
6479         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
6480         (gl_sublist_list_implementation): Update.
6481
6482 2008-02-10  Bruno Haible  <bruno@clisp.org>
6483
6484         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
6485         Needed when ELEMENT is #defined to 'some_type *'.
6486
6487 2008-02-10  Jim Meyering  <meyering@redhat.com>
6488
6489         New script and module: useless-if-before-free
6490         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
6491         * build-aux/useless-if-before-free: New file.
6492         * modules/useless-if-before-free: New file.
6493
6494         * build-aux/gitlog-to-changelog: Use committer date, not author date.
6495
6496         xstrtol_error: Fix typo.
6497         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
6498         s/exit_failure/exit_status/.
6499
6500 2008-02-09  Jim Meyering  <meyering@redhat.com>
6501
6502         New script and module: gitlog-to-changelog
6503         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
6504         * modules/gitlog-to-changelog: New file.
6505         * build-aux/gitlog-to-changelog: New file.
6506
6507 2008-02-08  Jim Meyering  <meyering@redhat.com>
6508
6509         Avoid two "parameter unused" warnings.
6510         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
6511         Mark "st" as used.
6512
6513         Use "git COMMAND", not "git-COMMAND".
6514         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
6515         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
6516         * build-aux/git-version-gen: Use "git status", not "git-status".
6517
6518 2008-02-07  Bruno Haible  <bruno@clisp.org>
6519
6520         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
6521         Avoids a crash on Windows Vista.
6522         Reported by Adam Strzelecki <ono@java.pl> via
6523         Simon Josefsson <simon@josefsson.org>.
6524
6525 2008-02-06  Bruno Haible  <bruno@clisp.org>
6526
6527         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
6528         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
6529         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
6530         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
6531         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
6532         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
6533         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
6534         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
6535         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
6536         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
6537         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
6538         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
6539         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
6540         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
6541         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
6542         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
6543         left-adjust flag.
6544         * tests/test-snprintf-posix.h (test_function): Likewise.
6545         * tests/test-sprintf-posix.h (test_function): Likewise.
6546         * tests/test-vasprintf-posix.c (test_function): Likewise.
6547         * doc/posix-functions/fprintf.texi: Update.
6548         * doc/posix-functions/printf.texi: Update.
6549         * doc/posix-functions/snprintf.texi: Update.
6550         * doc/posix-functions/sprintf.texi: Update.
6551         * doc/posix-functions/vfprintf.texi: Update.
6552         * doc/posix-functions/vprintf.texi: Update.
6553         * doc/posix-functions/vsnprintf.texi: Update.
6554         * doc/posix-functions/vsprintf.texi: Update.
6555         Reported by Peter Fales <psfales@alcatel-lucent.com>.
6556
6557 2008-02-06  Bruno Haible  <bruno@clisp.org>
6558
6559         Fix bug introduced on 2008-01-26.
6560         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
6561
6562 2008-02-06  Bruno Haible  <bruno@clisp.org>
6563
6564         Fix bug introduced on 2007-06-10.
6565         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
6566         !NEED_PRINTF_FLAG_ZERO.
6567
6568 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
6569
6570         getloadavg: use libperfstat on AIX5
6571         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
6572
6573 2008-02-03  Bruno Haible  <bruno@clisp.org>
6574
6575         * lib/diffseq.h: Add comments about required #includes.
6576         Reported by Michael Biggs <gnulib@doubleplum.net>.
6577
6578 2008-02-01  Bruno Haible  <bruno@clisp.org>
6579
6580         * users.txt: Add gnuit.
6581
6582 2008-01-31  Bruno Haible  <bruno@clisp.org>
6583
6584         * lib/md4.c (set_uint32): Mark as inline.
6585         * lib/md5.c (set_uint32): Likewise.
6586         * lib/sha1.c (set_uint32): Likewise.
6587         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
6588         * m4/md5.m4 (gl_MD5): Likewise.
6589         * m4/sha1.m4 (gl_SHA1): Likewise.
6590
6591 2008-01-31  Jim Meyering  <meyering@redhat.com>
6592
6593         Use "sizeof VAR", rather than a literal "4".
6594         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
6595         * lib/md4.c (md4_read_ctx): Likewise.
6596         * lib/sha1.c (sha1_read_ctx): Likewise.
6597
6598 2008-01-31  Simon Josefsson  <simon@josefsson.org>
6599
6600         * tests/test-sha1.c: New file, based on test-md5.c.
6601
6602         * modules/crypto/sha1-tests: New file.
6603
6604 2008-01-31  Simon Josefsson  <simon@josefsson.org>
6605
6606         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
6607
6608 2008-01-31  Jim Meyering  <meyering@redhat.com>
6609
6610         Prefer "sizeof v" over the equivalent "4".
6611         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
6612         * lib/md5.c (set_uint32): Likewise.
6613         * lib/sha1.c (set_uint32): Likewise.
6614
6615 2008-01-31  Simon Josefsson  <simon@josefsson.org>
6616
6617         * lib/sha1.c (set_uint32): Mark function as static.
6618
6619 2008-01-31  Simon Josefsson  <simon@josefsson.org>
6620
6621         md2: clarify comments to say that alignment is not required.
6622         * lib/md2.h: Remove warning about alignment in comment.
6623         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
6624         never been required.
6625
6626 2008-01-31  Simon Josefsson  <simon@josefsson.org>
6627
6628         md4: adapt alignment constraint fix from sha1.
6629         * lib/md4.c (set_uint32): New function, from sha1.c
6630         (md4_read_ctx): Use it.
6631         (md4_finish_ctx): Doc fix.
6632         * lib/md4.h: Doc fix.
6633
6634 2008-01-31  Simon Josefsson  <simon@josefsson.org>
6635
6636         md5: adapt alignment constraint fix from sha1.
6637         * lib/md5.c (set_uint32): New function, from sha1.c
6638         (md5_read_ctx): Use it.
6639         (md5_finish_ctx): Doc fix.
6640         * lib/md5.h: Doc fix.
6641
6642 2008-01-30  Peter Palfrader  <weasel@debian.org>
6643
6644         sha1: remove the result buffer alignment constraint
6645         * lib/sha1.c (set_uint32): New function.
6646         (sha1_read_ctx): Rewrite to remove the result buffer alignment
6647         constraint.
6648         (sha1_finish_ctx): Remove comment warning about alignment constraint.
6649         * lib/sha1.h: Likewise.
6650
6651 2008-01-30  Andreas Schwab  <schwab@suse.de>
6652             Bruno Haible  <bruno@clisp.org>
6653
6654         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
6655         correct definition of LDBL_MIN_EXP.
6656
6657 2008-01-30  Karl Berry  <karl@gnu.org>
6658
6659         * config/srclist-update: try to preserve x bit on updates.
6660         * config/srclistvars.sh: update for karl.
6661
6662 2008-01-29  Jim Meyering  <meyering@redhat.com>
6663
6664         vasnprintf.c: Avoid warning about unused label
6665         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
6666         "overflow" label definition and associated code with the
6667         same cpp condition that guards the sole use of that label.
6668
6669 2008-01-26  Bruno Haible  <bruno@clisp.org>
6670
6671         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
6672         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
6673         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
6674         * lib/isnanl-nolibm.h (isnanl): Likewise.
6675         Reported by Paul Eggert <eggert@cs.ucla.edu>.
6676
6677 2008-01-26  Bruno Haible  <bruno@clisp.org>
6678
6679         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
6680         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
6681
6682 2008-01-26  Bruno Haible  <bruno@clisp.org>
6683
6684         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
6685         GCC >= 4.0 built-in.
6686         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
6687
6688 2008-01-26  Bruno Haible  <bruno@clisp.org>
6689
6690         Rename isnan, applicable to 'double' only, to isnand.
6691         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
6692         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
6693         (configure.ac): Update.
6694         (Include): Replace "isnan.h" with "isnand.h".
6695         * m4/isnand.m4: Renamed from m4/isnan.m4.
6696         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
6697         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
6698         instead of isnan.c.
6699         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
6700         instead of HAVE_ISNAN_IN_LIBC.
6701         (isnand): Renamed from isnan.
6702         * lib/isnand.c: New file.
6703         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
6704         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
6705         (Makefile.am): Update.
6706         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
6707         Include isnand.h instead of isnan.h.
6708         (main): Test isnand instead of isnan.
6709         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
6710         isnan-nolibm.
6711         * modules/frexp (Depends-on): Likewise.
6712         * modules/frexp-tests (Depends-on): Likewise.
6713         * modules/frexp-nolibm (Depends-on): Likewise.
6714         * modules/frexp-nolibm-tests (Depends-on): Likewise.
6715         * modules/isfinite (Depends-on): Likewise.
6716         * modules/round-tests (Depends-on): Likewise.
6717         * modules/signbit (Depends-on): Likewise.
6718         * modules/signbit-tests (Depends-on): Likewise.
6719         * modules/snprintf-posix (Depends-on): Likewise.
6720         * modules/sprintf-posix (Depends-on): Likewise.
6721         * modules/trunc-tests (Depends-on): Likewise.
6722         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
6723         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
6724         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
6725         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
6726         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
6727         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
6728         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
6729         * modules/vasnprintf-posix (Depends-on): Likewise.
6730         * modules/vasprintf-posix (Depends-on): Likewise.
6731         * modules/vfprintf-posix (Depends-on): Likewise.
6732         * modules/vsnprintf-posix (Depends-on): Likewise.
6733         * modules/vsprintf-posix (Depends-on): Likewise.
6734         * lib/frexp.c: Include isnand.h instead of isnan.h.
6735         (ISNAN): Set to isnand instead of isnan.
6736         * lib/isfinite.c: Include isnand.h instead of isnan.h.
6737         (gl_isfinited): Use isnand instead of isnan.
6738         * lib/signbitd.c: Include isnand.h instead of isnan.h.
6739         (gl_signbitd): Use isnand instead of isnan.
6740         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
6741         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
6742         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
6743         (main): Use isnand instead of isnan.
6744         * tests/test-round1.c: Include isnand.h.
6745         (main): Use isnand instead of isnan.
6746         * tests/test-round2.c: Include isnand.h instead of isnan.h.
6747         (ISNAN): Set to isnand instead of isnan.
6748         * tests/test-trunc1.c: Include isnand.h.
6749         (main): Use isnand instead of isnan.
6750         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
6751         (equal): Use isnand instead of isnan.
6752         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
6753         isnand-nolibm.
6754         * NEWS: Mention the change.
6755
6756 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
6757             Bruno Haible  <bruno@clisp.org>
6758
6759         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
6760         the GCC builtins for signbits are present and set
6761         REPLACE_SIGNBIT_USING_GCC if so.
6762         * lib/math.in.h (signbit): Define using GCC builtins if
6763         REPLACE_SIGNBIT_USING_GCC is set.
6764         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
6765         REPLACE_SIGNBIT_USING_GCC.
6766         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
6767
6768 2008-01-25  Jim Meyering  <meyering@redhat.com>
6769
6770         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
6771         * lib/poll.c: Include <config.h>, not "config.h".
6772         * tests/test-getaddrinfo.c: Likewise.
6773
6774 2008-01-25  Simon Josefsson  <simon@josefsson.org>
6775
6776         * modules/sockets-tests: New file.
6777
6778 2008-01-24  Simon Josefsson  <simon@josefsson.org>
6779
6780         * modules/sockets: New module, can be used to call WSA_Startup and
6781         WSA_Cleanup when needed.
6782
6783         * lib/sockets.h, lib/sockets.c: New files.
6784
6785         * m4/sockets.m4: New file.
6786
6787         * tests/test-sockets.c: New file.
6788
6789 2008-01-19  Bruno Haible  <bruno@clisp.org>
6790
6791         * doc/posix-headers: Renamed from doc/headers.
6792         * doc/posix-functions: Renamed from doc/functions.
6793         * doc/gnulib.texi: Update.
6794
6795 2008-01-19  Bruno Haible  <bruno@clisp.org>
6796
6797         * doc/glibc-functions/strcasestr.texi: Include contents of
6798         doc/functions/strcasestr.texi, fixing the list of platforms.
6799         * doc/functions/strcasestr.texi: Remove file.
6800
6801 2008-01-19  Bruno Haible  <bruno@clisp.org>
6802
6803         * doc/glibc-functions/memmem.texi: Include contents of
6804         doc/functions/memmem.texi.
6805         * doc/functions/memmem.texi: Remove file.
6806
6807 2008-01-18  Bruno Haible  <bruno@clisp.org>
6808
6809         * doc/glibc-functions/*.texi: New files.
6810         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
6811         to use the new files.
6812
6813 2008-01-17  Bruno Haible  <bruno@clisp.org>
6814
6815         * tests/test-gethostname.c (main): Fix printf statement.
6816
6817 2008-01-17  Simon Josefsson  <simon@josefsson.org>
6818
6819         * modules/gethostname-tests: New file.
6820
6821         * tests/test-gethostname.c: New file.
6822
6823 2008-01-17  Simon Josefsson  <simon@josefsson.org>
6824
6825         * lib/gethostname.c: Include string.h unconditionally, strncpy is
6826         used by the UNAME case.  Reported by Bruno Haible
6827         <bruno@clisp.org>.
6828
6829 2008-01-17  Eric Blake  <ebb9@byu.net>
6830
6831         Convert c-strcasestr to be more efficient.
6832         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
6833         (Depends-on): Add c-strcase, remove malloca, strnlen.
6834         * tests/test-c-strcasestr.c (main): Enhance test.
6835         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
6836
6837 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
6838
6839         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
6840         Use it in creating po/Makevars.
6841
6842 2008-01-15  Simon Josefsson  <simon@josefsson.org>
6843
6844         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
6845         Applications that requires it should initialize libgcrypt
6846         manually.
6847
6848 2008-01-16  Simon Josefsson  <simon@josefsson.org>
6849
6850         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
6851
6852 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
6853
6854         Fix problem with getdate on mingw32 reported by Simon Josefsson
6855         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
6856         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
6857         tzname", when deciding whether to declare tzname.
6858         * lib/strftime.c (tzname): Likewise.
6859
6860 2008-01-15  Bruno Haible  <bruno@clisp.org>
6861
6862         Work around a MacOS X 10.5 bug in frexpl().
6863         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
6864         * doc/functions/frexpl.texi: Document the bug.
6865         Reported by Elias Pipping <pipping@gentoo.org>.
6866
6867 2008-01-14  Eric Blake  <ebb9@byu.net>
6868
6869         Touch up previous patch.
6870         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
6871         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
6872
6873         Convert strcasestr module to use Two-Way algorithm.
6874         * modules/strcasestr-simple: New module, based on the old
6875         strcasestr, but with Two-Way rather than KMP.
6876         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
6877         * lib/string.in.h (rpl_strcasestr): Declare.
6878         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
6879         performance.
6880         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
6881         * modules/string (Makefile.am): Support strcasestr.
6882         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
6883         * modules/strcasestr-tests (Depends-on): Check for alarm.
6884         * tests/test-strcasestr.c: Augment test.
6885         * lib/str-two-way.h: Clean up stray macro.
6886         * NEWS: Document new module.
6887         * MODULES.html.sh (string handling): Likewise.
6888         * doc/functions/strcasestr.texi: New file.
6889         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
6890         here, since it is not a POSIX function.
6891
6892 2008-01-14  Colin Watson  <cjwatson@debian.org>
6893             Bruno Haible  <bruno@clisp.org>
6894
6895         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
6896         works fine; if not, set REPLACE_STRSIGNAL.
6897         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
6898         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
6899         REPLACE_STRSIGNAL.
6900         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
6901         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
6902         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
6903
6904 2008-01-14  Bruno Haible  <bruno@clisp.org>
6905
6906         * modules/strsignal (Include): Change to <string.h>.
6907
6908 2008-01-14  Colin Watson  <cjwatson@debian.org>
6909
6910         * modules/argp (Notice): Add a notice recommending to change
6911         XGETTEXT_OPTIONS.
6912         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
6913
6914 2008-01-13  Colin Watson  <cjwatson@debian.org>
6915
6916         * modules/strsignal-tests: New file.
6917         * tests/test-strsignal.c: New file.
6918
6919         * lib/strsignal.c: New file, from glibc with modifications.
6920         * lib/siglist.h: New file, from glibc with modifications.
6921         * lib/string.in.h (strsignal): New declaration.
6922         * m4/strsignal.m4: New file.
6923         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
6924         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
6925         * modules/strsignal: New file.
6926         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
6927         HAVE_DECL_STRSIGNAL.
6928
6929 2008-01-13  Bruno Haible  <bruno@clisp.org>
6930
6931         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
6932         locale encoding is not ASCII. Needed for OpenBSD 4.0.
6933         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
6934         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
6935
6936 2008-01-13  Bruno Haible  <bruno@clisp.org>
6937
6938         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
6939         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
6940         * lib/argp.h (__attribute__): Likewise.
6941         * lib/c-stack.c (__attribute__): Likewise.
6942         * lib/error.h (__attribute__): Likewise.
6943         * lib/fts.c (__attribute__): Likewise.
6944         * lib/openat.h (__attribute__): Likewise.
6945         * lib/stdio.in.h (__attribute__): Likewise.
6946         * lib/string.in.h (__attribute__): Likewise.
6947         * lib/utimens.c (__attribute__): Likewise.
6948         * lib/vasnprintf.h (__attribute__): Likewise.
6949         * lib/xalloc.h (__attribute__): Likewise.
6950         * lib/xprintf.h (__attribute__): Likewise.
6951         * lib/xstrtol.h (__attribute__): Likewise.
6952         * lib/xvasprintf.h (__attribute__): Likewise.
6953
6954 2008-01-12  Bruno Haible  <bruno@clisp.org>
6955
6956         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
6957         * doc/glibc-headers/a.out.texi: New file.
6958         * doc/glibc-headers/aliases.texi: New file.
6959         * doc/glibc-headers/alloca.texi: New file.
6960         * doc/glibc-headers/ar.texi: New file.
6961         * doc/glibc-headers/argp.texi: New file.
6962         * doc/glibc-headers/argz.texi: New file.
6963         * doc/glibc-headers/byteswap.texi: New file.
6964         * doc/glibc-headers/crypt.texi: New file.
6965         * doc/glibc-headers/endian.texi: New file.
6966         * doc/glibc-headers/envz.texi: New file.
6967         * doc/glibc-headers/err.texi: New file.
6968         * doc/glibc-headers/error.texi: New file.
6969         * doc/glibc-headers/execinfo.texi: New file.
6970         * doc/glibc-headers/fpu_control.texi: New file.
6971         * doc/glibc-headers/fstab.texi: New file.
6972         * doc/glibc-headers/fts.texi: New file.
6973         * doc/glibc-headers/getopt.texi: New file.
6974         * doc/glibc-headers/ieee754.texi: New file.
6975         * doc/glibc-headers/ifaddrs.texi: New file.
6976         * doc/glibc-headers/libintl.texi: New file.
6977         * doc/glibc-headers/mcheck.texi: New file.
6978         * doc/glibc-headers/mntent.texi: New file.
6979         * doc/glibc-headers/obstack.texi: New file.
6980         * doc/glibc-headers/paths.texi: New file.
6981         * doc/glibc-headers/printf.texi: New file.
6982         * doc/glibc-headers/pty.texi: New file.
6983         * doc/glibc-headers/resolv.texi: New file.
6984         * doc/glibc-headers/shadow.texi: New file.
6985         * doc/glibc-headers/sysexits.texi: New file.
6986         * doc/glibc-headers/ttyent.texi: New file.
6987
6988 2008-01-12  Jim Meyering  <meyering@redhat.com>
6989
6990         announce-gen: emit Gnulib's git-based version string.
6991         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
6992         New option --gnulib-version=V, where V is expected to be
6993         the output of running git describe in the gnulib directory.
6994         (get_tool_versions): Request feedback on xdelta.  I suspect it's
6995         not useful, and plan to stop publishing an xdelta file with each
6996         coreutils release.
6997
6998         * build-aux/announce-gen: Also check for lzma-compressed files.
6999
7000 2008-01-11  Bruno Haible  <bruno@clisp.org>
7001
7002         * tests/test-memmem.c (main): Increase maximum allowed time.
7003         * tests/test-strstr.c (main): Likewise.
7004
7005 2008-01-11  Bruno Haible  <bruno@clisp.org>
7006
7007         * doc/functions/memmem.texi: Add more precisions about platforms.
7008         * doc/functions/strstr.texi: Likewise.
7009
7010 2008-01-10  Eric Blake  <ebb9@byu.net>
7011
7012         * m4/strstr.m4: Delete cruft from copy-n-paste.
7013         Reported by Bruno Haible.
7014
7015 2008-01-10  Bruno Haible  <bruno@clisp.org>
7016
7017         Make c-strstr rely on strstr.
7018         * lib/c-strstr.c: Don't include str-kmp.h.
7019         (c_strstr): Define in terms of strstr.
7020         * modules/c-strstr (Files): Remove lib/str-kmp.h.
7021         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
7022
7023 2008-01-10  Bruno Haible  <bruno@clisp.org>
7024
7025         * doc/gnulib.texi (String Functions in C Locale): New section.
7026         * doc/c-ctype.texi: New file.
7027         * doc/c-strcase.texi: New file.
7028         * doc/c-strcaseeq.texi: New file.
7029         * doc/c-strcasestr.texi: New file.
7030         * doc/c-strstr.texi: New file.
7031         * doc/c-strtod.texi: New file.
7032         * doc/c-strtold.texi: New file.
7033
7034 2008-01-10  Eric Blake  <ebb9@byu.net>
7035
7036         * lib/relocatable.h: Fix a comment.
7037
7038 2008-01-10  Eric Blake  <ebb9@byu.net>
7039
7040         Share two-way algorithm.
7041         * lib/str-two-way.h: New file, merged from...
7042         * lib/memmem.c: ...here...
7043         * lib/strstr.c: ...and here.
7044         * modules/memmem (Files): Use it.
7045         * modules/strstr (Files): Likewise.
7046
7047         Avoid quadratic strstr implementations.
7048         * lib/strstr.c: New file.
7049         * m4/strstr.m4: Likewise.
7050         * modules/strstr: Likewise.
7051         * modules/strstr-tests: Likewise.
7052         * tests/test-strstr.c: Likewise.
7053         * lib/string.in.h (rpl_strstr): Declare.
7054         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
7055         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
7056         * modules/string (Makefile.am): Likewise.
7057         * MODULES.html.sh (string handling): Mention new module.
7058         * doc/functions/strstr.texi (strstr): Document the bug.
7059
7060 2008-01-10  Bruno Haible  <bruno@clisp.org>
7061
7062         * lib/relocatable.h (relocate): State whether result is freshly
7063         allocated or not.
7064         * lib/relocatable.c (relocate): Return a freshly allocated string
7065         instead of a pointer to a privately held string.
7066         Reported by Sylvain Beucler <beuc@gnu.org>.
7067
7068 2008-01-10  Colin Watson  <cjwatson@debian.org>
7069
7070         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
7071         s/S_ISNLK/S_ISLNK/.
7072
7073 2008-01-09  Bruno Haible  <bruno@clisp.org>
7074
7075         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
7076         and other files.
7077         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
7078         if it's only a guess.
7079         * modules/memmem: Simplify by depending on memmem-simple.
7080
7081 2008-01-09  Bruno Haible  <bruno@clisp.org>
7082
7083         Work around OpenBSD 4.0 tdelete() bug.
7084         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
7085         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
7086         macros and don't redefine the enum values.
7087         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
7088         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
7089         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
7090
7091 2008-01-09  Bruno Haible  <bruno@clisp.org>
7092
7093         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
7094         (main): Don't perform the tests if setlocale did not install a UTF-8
7095         locale. Needed on OpenBSD 4.0.
7096         * modules/wcwidth-tests (Depends-on): Add localcharset.
7097
7098 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
7099
7100         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
7101         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
7102         * NEWS: announce this.
7103         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
7104
7105 2008-01-09  Simon Josefsson  <simon@josefsson.org>
7106         and Eric Blake  <ebb9@byu.net>
7107
7108         Add memmem-simple module.
7109         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
7110         (gl_FUNC_MEMMEM): Separate performance from presence checks.
7111         * modules/memmem-simple: New file.
7112         * modules/memmem (Description): Tweak.
7113         * MODULES.html.sh (string handling): Mention new module.
7114         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
7115         addressed by memmem-simple.
7116         * NEWS: Document the difference.
7117
7118 2008-01-09  Eric Blake  <ebb9@byu.net>
7119
7120         Give gcc some memmem optimization hints.
7121         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
7122         (strcasestr): Declare as pure.
7123         * modules/memmem (Maintainer): Claim my implementation.
7124
7125 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7126
7127         Support AIX 6.1 and higher.
7128         * build-aux/config.libpath: Likewise.
7129         * build-aux/config.rpath: Likewise.
7130
7131 2008-01-08  Jim Meyering  <meyering@redhat.com>
7132             Bruno Haible  <bruno@clisp.org>
7133
7134         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
7135         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
7136         Reported by Peter Fales in
7137         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
7138
7139 2008-01-08  Bruno Haible  <bruno@clisp.org>
7140
7141         * modules/unictype/category-of (Depends-on): Add
7142         unictype/category-none.
7143         * modules/unictype/category-and-tests (Depends-on): Add
7144         unictype/category-{L,N,Lu,Nd}.
7145         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
7146         * modules/unictype/category-or-tests (Depends-on): Add
7147         unictype/category-{L,N}.
7148         * modules/unictype/category-name-tests (Depends-on): Add
7149         unictype/category-{Z,Nl}.
7150         Reported by Simon Josefsson.
7151
7152 2008-01-08  Bruno Haible  <bruno@clisp.org>
7153
7154         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
7155         convention better.
7156         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
7157         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
7158         Reported by Peter Miller <millerp@canb.auug.org.au>.
7159
7160 2008-01-08  Eric Blake  <ebb9@byu.net>
7161
7162         Rewrite memmem to guarantee linear complexity without malloc.
7163         * lib/memmem.c (memmem): Use Two-Way rather than
7164         Knuth-Morris-Pratt, to allow O(1) space usage.
7165         (critical_factorization, two_way_short_needle)
7166         (two_way_long_needle): New functions.
7167         (knuth_morris_pratt): Delete.
7168         * modules/memmem (Depends-on): No longer need malloca or stdbool.
7169         Add stdint.
7170         * tests/test-memmem.c (main): Add tests for periodic needle and
7171         sublinear performance.
7172         * doc/functions/memmem.texi (memmem): Document other deficiencies
7173         in cygwin and older glibc.
7174
7175 2008-01-08  Bruno Haible  <bruno@clisp.org>
7176
7177         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
7178         augmentation.
7179
7180 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
7181
7182         Add a configure time option: --disable-acl.
7183         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
7184         AC_ARG_ENABLE(acl).
7185
7186 2008-01-06  Simon Josefsson  <simon@josefsson.org>
7187
7188         * tests/test-localename.c: Don't include obsolete "setenv.h".
7189
7190         * modules/localename-tests (Depends-on): Need unsetenv.
7191
7192 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7193
7194         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
7195
7196 2008-01-06  Colin Watson  <cjwatson@debian.org>
7197
7198         * users.txt: Add man-db.
7199
7200 2008-01-07  Bruno Haible  <bruno@clisp.org>
7201
7202         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
7203         previous section name.
7204
7205 2008-01-07  Bruno Haible  <bruno@clisp.org>
7206
7207         * lib/progname.c (set_program_name): Don't strip off a leading
7208         "lt-" prefix outside a .libs directory.
7209         Suggested by Paul Eggert.
7210
7211 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
7212             Bruno Haible  <bruno@clisp.org>
7213
7214         Improve memory cleanup in 'relocatable' module.
7215         * lib/relocatable.h (compute_curr_prefix): Change return type to
7216         'char *'.
7217         * lib/relocatable.c (compute_curr_prefix): Change return type to
7218         'char *'. Free curr_installdir after use.
7219         (relocate): Free curr_prefix_better after use.
7220         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
7221
7222 2008-01-01  Bruno Haible  <bruno@clisp.org>
7223
7224         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
7225         failure on older glibc systems.
7226         Reported by Peter Fales <psfales@alcatel-lucent.com>.
7227
7228 2008-01-05  Eric Blake  <ebb9@byu.net>
7229
7230         Avoid quadratic system memmem.
7231         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
7232         Reported by Ralf Wildenhues.
7233
7234         Fix memmem test for mingw.
7235         * modules/memmem-tests (configure.ac): Check for alarm.
7236         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
7237         it.
7238         * doc/functions/memmem.texi: New file.
7239         * doc/gnulib.texi (Function Substitutes): Add memmem.
7240         Reported by Bruno Haible.
7241
7242 2008-01-04  Bruno Haible  <bruno@clisp.org>
7243
7244         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
7245         Require gl_HEADER_STRINGS_H_DEFAULTS, not
7246         gl_HEADER_STRING_H_DEFAULTS.
7247
7248 2008-01-04  Eric Blake  <ebb9@byu.net>
7249
7250         Shorten duration of memmem test.
7251         * tests/test-memmem.c (main): Use alarm to declare failure if test
7252         is taking too long.
7253         Reported by Ralf Wildenhues.
7254
7255 2007-12-21  Simon Josefsson  <simon@josefsson.org>
7256
7257         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
7258         string, needed by strerror.
7259
7260 2008-01-03  Colin Watson  <cjwatson@debian.org>
7261             Bruno Haible  <bruno@clisp.org>
7262
7263         * doc/gnulib-tool.texi (Localization): New section.
7264
7265 2008-01-02  Bruno Haible  <bruno@clisp.org>
7266
7267         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
7268         variables to 'unsigned char *' type.
7269         Reported by Paul Eggert.
7270
7271 2008-01-02  Jim Meyering  <jim@meyering.net>
7272
7273         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
7274
7275 2007-12-31  Jim Meyering  <jim@meyering.net>
7276
7277         Avoid use of private FTS type name.
7278         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
7279
7280 2007-12-30  Karl Berry  <karl@gnu.org>
7281
7282         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
7283         work around defect in Texinfo and/or the standalone Info browser.
7284
7285 2007-12-30  Bruno Haible  <bruno@clisp.org>
7286
7287         Unify 5 copies of the KMP code.
7288         * lib/str-kmp.h: New file.
7289         * lib/c-strcasestr.c: Include str-kmp.h.
7290         (knuth_morris_pratt): Remove function.
7291         (c_strcasestr): Update.
7292         * lib/c-strstr.c: Include str-kmp.h.
7293         (knuth_morris_pratt): Remove function.
7294         (c_strcasestr): Update.
7295         * lib/mbscasestr.c: Include str-kmp.h.
7296         (knuth_morris_pratt_unibyte): Remove function.
7297         * lib/mbsstr.c: Include str-kmp.h.
7298         (knuth_morris_pratt_unibyte): Remove function.
7299         * lib/strcasestr.c: Include str-kmp.h.
7300         (knuth_morris_pratt): Remove function.
7301         (strcasestr): Update.
7302         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
7303         * modules/c-strstr (Files): Likewise.
7304         * modules/mbscasestr (Files): Likewise.
7305         * modules/mbsstr (Files): Likewise.
7306         * modules/strcasestr (Files): Likewise.
7307         Suggested by Paul Eggert.
7308
7309 2007-12-30  Bruno Haible  <bruno@clisp.org>
7310
7311         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
7312         defined.
7313
7314 2007-12-30  Bruno Haible  <bruno@clisp.org>
7315
7316         * lib/xmalloca.h: Include xalloc.h.
7317         (xnmalloca): New macro.
7318
7319 2007-12-30  Bruno Haible  <bruno@clisp.org>
7320
7321         * lib/malloca.h (nmalloca): New macro.
7322         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
7323         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
7324         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
7325         knuth_morris_pratt_multibyte): Likewise.
7326         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
7327         knuth_morris_pratt_multibyte): Likewise.
7328         * lib/memmem.c (knuth_morris_pratt): Likewise.
7329         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
7330
7331 2007-12-25  Bruno Haible  <bruno@clisp.org>
7332
7333         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
7334         * lib/glob.c: Don't include openat.h.
7335         (link_exists2_p): Add back the code that deals with the
7336         !GLOB_ALTDIRFUNC case.
7337         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
7338         let it do the filename concatenation.
7339         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
7340         * modules/glob (Depends-on): Remove openat.
7341
7342 2007-12-31  Bruno Haible  <bruno@clisp.org>
7343
7344         * modules/dirfd (License): Change to LGPLv2+.
7345         Approved by Jim Meyering.
7346
7347 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
7348
7349         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
7350         when multiplying M by sizeof (size_t).
7351
7352 2007-12-10  Martin Lambers  <marlam@marlam.de>
7353
7354         Override getpagesize on mingw.
7355         * lib/getpagesize.c: New file.
7356         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
7357         * modules/getpagesize (Files): Add lib/getpagesize.c.
7358         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
7359         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
7360         REPLACE_GETPAGESIZE.
7361         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
7362
7363 2007-12-25  Bruno Haible  <bruno@clisp.org>
7364
7365         * modules/localcharset (Notice): New field.
7366         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
7367         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
7368
7369 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
7370             Bruno Haible  <bruno@clisp.org>
7371
7372         Avoid using the syntax symbol() in formatted documentation.
7373         * MODULES.html.sh (func_module): When replacing symbol() with a
7374         hyperlink, remove the parentheses. Show an error if some remain.
7375         Recognize and render the '...' syntax.
7376         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
7377         Rework. Add paragraph about GCC's inlining.
7378         * doc/alloca.texi: Likewise.
7379         * doc/error.texi: Remove parentheses from symbol reference.
7380         * doc/gnulib-intro.texi: Likewise.
7381         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
7382         * modules/fnmatch (Description): Reword to say "the ... function".
7383         * modules/full-read (Description): Likewise.
7384         * modules/full-write (Description): Likewise.
7385         * modules/safe-read (Description): Likewise.
7386         * modules/safe-write (Description): Likewise.
7387         * modules/strchrnul (Description): Likewise.
7388         * modules/trim (Description): Likewise.
7389         * modules/error (Description): Remove parentheses from symbol
7390         references.
7391         * modules/verror (Description): Likewise.
7392         Reported by Karl Berry.
7393
7394 2007-12-25  Bruno Haible  <bruno@clisp.org>
7395
7396         Fixup after 2007-10-16 commit.
7397         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
7398
7399 2007-12-24  Bruno Haible  <bruno@clisp.org>
7400
7401         Make --enable-relocatable work with DESTDIR.
7402         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
7403         to compute installdir from destprog.
7404         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
7405         also set the RELOC_DESTDIR variable.
7406         Reported by Левашев Иван <octagram@bluebottle.com>.
7407
7408 2007-12-24  Bruno Haible  <bruno@clisp.org>
7409
7410         Fix link error due to xalloc_die().
7411         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
7412         of xreadlink.
7413         * lib/relocwrapper.c: Update comments.
7414         * build-aux/install-reloc: Remove xreadlink.c from file list.
7415         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
7416         xreadlink.c.
7417         Reported by Левашев Иван <octagram@bluebottle.com>.
7418
7419 2007-12-24  Bruno Haible  <bruno@clisp.org>
7420
7421         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
7422         * lib/setenv.h: Remove file.
7423         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
7424         lib/setenv.h.
7425         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
7426         (Depends-on): Add stdlib.
7427         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
7428         gl_FUNC_UNSETENV.
7429         (Include): Replace setenv.h with <stdlib.h>.
7430         * modules/unsetenv: New file.
7431         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
7432         * lib/unsetenv.c: Include <stdlib.h> first.
7433         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
7434         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
7435         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
7436         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
7437         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
7438         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
7439         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
7440         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
7441         * doc/functions/unsetenv.texi: Update.
7442         * modules/xsetenv (Depends-on): Add unsetenv.
7443         * modules/getdate (Depends-on): Likewise.
7444         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
7445         * lib/xsetenv.c: Don't include setenv.h.
7446         * lib/getdate.y: Likewise.
7447         * lib/relocwrapper.c: Likewise.
7448         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
7449         (Depends-on): Add stdlib.
7450         * NEWS: Mention the changes.
7451         Reported by Левашев Иван <octagram@bluebottle.com>.
7452
7453 2007-12-23  Bruno Haible  <bruno@clisp.org>
7454
7455         * lib/memmem.c (memmem): Use lowercase variable names. Tab
7456         indentation.
7457
7458 2007-12-23  Bruno Haible  <bruno@clisp.org>
7459
7460         * lib/c-strcasestr.c: Add more comments.
7461         * lib/c-strstr.c: Likewise.
7462         * lib/mbscasestr.c: Likewise.
7463         * lib/mbsstr.c: Likewise.
7464         * lib/strcasestr.c: Likewise.
7465         * lib/memmem.c: Likewise.
7466
7467 2007-12-23  Bruno Haible  <bruno@clisp.org>
7468
7469         * tests/test-memmem.c: Include <string.h> first.
7470
7471 2007-12-22  Bruno Haible  <bruno@clisp.org>
7472
7473         * gnulib-tool (func_create_testdir): Change $auxdir while generating
7474         the contents of $testsbase.
7475         Reported by Ralf Wildenhues.
7476
7477 2007-12-22  Bruno Haible  <bruno@clisp.org>
7478
7479         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
7480         two variables local_ldadd_before, local_ldadd_last.
7481
7482 2007-12-20  Eric Blake  <ebb9@byu.net>
7483
7484         Work around circular library issue when cross-compiling.
7485         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
7486         that progname.o does not need to pull in rpl_memcmp.
7487
7488 2007-12-19  Eric Blake  <ebb9@byu.net>
7489
7490         Fix memmem to avoid O(n^2) worst-case complexity.
7491         * lib/memmem.c (knuth_morris_pratt): New function.
7492         (memmem): Use it if first few naive iterations fail.
7493         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
7494         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
7495         * modules/memchr (License): Likewise.
7496         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
7497         malloca.
7498         * tests/test-memmem.c: Rewrite, borrowing ideas from
7499         test-mbsstr1.c; the old version wouldn't even compile!
7500         * modules/memmem-tests: New file.
7501         * lib/string.in.h (rpl_memmem): Add declaration.
7502         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
7503         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
7504         REPLACE_MEMMEM.
7505
7506 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
7507
7508         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
7509         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
7510         before any system include files, and undef after them all.  This
7511         should fix a problem on VMS reported by John E. Malmberg in
7512         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
7513
7514 2007-12-17  Eric Blake  <ebb9@byu.net>
7515
7516         Revert addition of verify, for BSD/OS.
7517         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
7518         can't handle large files, for the sake of obsolete platforms.
7519         * modules/fseeko (Depends-on): Remove verify.
7520         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
7521         * doc/functions/ftello.texi (ftello): Likewise.
7522         * doc/functions/fgetpos.texi (fgetpos): Likewise.
7523         Reported by Larry Jones.
7524
7525 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
7526
7527         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
7528         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
7529
7530 2007-12-17  Jim Meyering  <meyering@redhat.com>
7531
7532         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
7533         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
7534         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
7535         * modules/getcwd (Depends-on): Add openat.
7536         Reported by Petr Salinger.
7537
7538 2007-12-17  Bruno Haible  <bruno@clisp.org>
7539
7540         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
7541         avoid a segmentation fault of the configure test on x86_64 systems.
7542
7543 2007-12-15  Jim Meyering  <meyering@redhat.com>
7544
7545         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
7546
7547 2007-12-13  Eric Blake  <ebb9@byu.net>
7548
7549         Another fseek test.
7550         * tests/test-fseek.c (main): Also test ungetc handling.
7551         * tests/test-fseeko.c (main): Likewise.
7552         * modules/fseeko (Depends-on): Add verify.
7553         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
7554         large.
7555         Reported by Larry Jones.
7556
7557         Fix fseeko on mingw.
7558         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
7559         seek.
7560
7561         Beef up fseek tests.
7562         * tests/test-fseek.c (main): Also test eof handling.
7563         * tests/test-fseeko.c (main): Likewise.
7564         Reported by Larry Jones.
7565
7566 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
7567
7568         Fix fseeko on BSD-based platforms.
7569         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
7570         successful seek.
7571
7572 2007-12-12  Eric Blake  <ebb9@byu.net>
7573
7574         Allow circular dependency of separate libtests.a
7575         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
7576         when use_libtests.
7577
7578 2007-12-11  Eric Blake  <ebb9@byu.net>
7579
7580         Fix bug with -0.0L in previous patch.
7581         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
7582         * tests/test-isnan.c (main): Also test on zeroes.
7583         * tests/test-isnanf.c (main): Likewise.
7584         * tests/test-isnanl.h (main): Likewise.
7585
7586         Detect pseudo-denormals on x86 even when cross-compiling.
7587         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
7588         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
7589         invalid bit patterns that happen to satisfy ==.
7590
7591         Avoid link failures with separate libtests.a.
7592         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
7593         last, to satisfy circular dependencies.
7594
7595 2007-12-11  Eric Blake  <ebb9@byu.net>
7596         and Bruno Haible  <bruno@clisp.org>
7597
7598         Fix OpenBSD 4.0 <float.h> handling of long double.
7599         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
7600         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
7601         * doc/headers/float.texi (float.h): Document OpenBSD bug.
7602
7603 2007-12-11  Jim Meyering  <meyering@redhat.com>
7604
7605         * users.txt: Add libvirt.
7606
7607         Support versions of autoconf prior to 2.59c.
7608         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
7609         if it is not already defined.
7610
7611 2007-12-09  Bruno Haible  <bruno@clisp.org>
7612
7613         Let 'gnulib-tool --import' collect sources needed for the tests in
7614         tests/ rather than in lib/.
7615         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
7616         argument. If true, add rules to generate libtests.a, and put libtests.a
7617         into $(LDADD). Consider source files in subdirectories and set
7618         uses_subdirs.
7619         (func_emit_initmacro_start, func_emit_initmacro_end,
7620         func_emit_initmacro_done): Pass all arguments explicitly.
7621         (func_import): Determine two module lists main_modules,
7622         testsrelated_modules. Determine use_libtests. Determine two variables
7623         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
7624         instead of just sed_transform_lib_file. Determine two variables
7625         main_files and testsrelated_files. Compute 'files' as the union of
7626         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
7627         func_add_or_update. In the generated gnulib-comp.m4, collect the
7628         object files for tests/ in different variables than those for lib/.
7629         Substitute LIBTESTS_LIBDEPS.
7630         (func_create_testdir): Combine the uses_subdirs results from
7631         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
7632
7633 2007-12-09  Bruno Haible  <bruno@clisp.org>
7634
7635         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
7636         the build-aux directory.
7637
7638 2007-12-09  Bruno Haible  <bruno@clisp.org>
7639
7640         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
7641         introduced on 2006-09-09.
7642
7643 2007-12-07  Jim Meyering  <meyering@redhat.com>
7644
7645         Let these macros work also with autoconf-2.59.
7646         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
7647         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
7648         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
7649
7650 2007-12-06  Jim Meyering  <meyering@redhat.com>
7651
7652         Avoid a configure-time syntax error in gl_FUNC_ACL.
7653         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
7654         function in each branch, before testing the cache variable.
7655
7656 2007-12-04  Eric Blake  <ebb9@byu.net>
7657
7658         Make scripts executable.
7659         * build-aux/config.guess: Add execute permissions.
7660         * build-aux/config.sub: Likewise.
7661         * build-aux/gendocs.sh: Likewise.
7662
7663         Fix frexp on mingw.
7664         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
7665         cross-compiling.
7666         * doc/functions/frexp.texi (frexp): Document the bug.
7667
7668         Make cygwin fseeko check more reliable.
7669         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
7670         version numbers, rather than unrelated feature check.
7671         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
7672         * doc/functions/ftello.texi (ftello): Likewise.
7673         Reported by Bruno Haible.
7674
7675         * m4/strerror.m4: Bump version number.
7676
7677 2007-12-03  Bruno Haible  <bruno@clisp.org>
7678
7679         * doc/functions/mprotect.texi: Mention the mingw problem.
7680
7681 2007-12-03  Eric Blake  <ebb9@byu.net>
7682
7683         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
7684         REPLACE_STRERROR is initialized before this macro.
7685
7686 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
7687
7688         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
7689         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
7690         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
7691         put -lsec in even for programs other than 'ls'.  This fixes a problem
7692         for gettext reported by Bruno Haible in
7693         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
7694         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
7695         Add support for Solaris 10.  This isn't efficient, but should get the
7696         job done for now.
7697
7698 2007-12-03  James Youngman  <jay@gnu.org>
7699
7700         * doc/regexprops-generic.texi: change "an close-group" to "a
7701         close-group" and "illegal" to "not allowed".
7702
7703 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7704
7705         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
7706         pr_byname.h. Needed for the rare case when the maintainer has done
7707         "make maintainer-clean" in the source directory and then attempts a
7708         build outside the source directory.
7709         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
7710         scripts_byname.h.
7711
7712 2007-12-02  Martin Lambers <marlam@marlam.de>
7713             Bruno Haible  <bruno@clisp.org>
7714
7715         * lib/getpagesize.h: Remove file.
7716         * lib/unistd.in.h: Include declaration of getpagesize here.
7717         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
7718         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
7719         HAVE_SYS_PARAM_H.
7720         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
7721         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
7722         * modules/getpagesize (Files): Remove lib/getpagesize.h.
7723         (Depends-on): Add unistd.
7724         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
7725         (Include): Use <unistd.h> instead of getpagesize.h.
7726         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
7727         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
7728         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
7729         gl_GETPAGESIZE invocation, already handled by module dependency.
7730         * lib/pagealign_alloc.c: Don't include getpagesize.h.
7731
7732 2007-12-02  Bruno Haible  <bruno@clisp.org>
7733
7734         * modules/strings-tests: New file.
7735         * tests/test-strings.c: New file.
7736
7737         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
7738         * lib/strings.in.h: New file.
7739         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
7740         * m4/strings_h.m4: New file.
7741         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
7742         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
7743         * modules/strings: New file.
7744         * modules/string (Makefile.am): Update.
7745         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
7746         Reported by Karl Berry.
7747
7748 2007-12-01  Eric Blake  <ebb9@byu.net>
7749
7750         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
7751         accomodate fix in cygwin 1.5.25.
7752
7753 2007-12-01  Jim Meyering  <meyering@redhat.com>
7754
7755         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
7756         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
7757         that would inhibit utf8-optimization of a regexp containing line-
7758         or buffer-anchors, e.g., `^', `$'.
7759
7760 2007-11-30  Bruno Haible  <bruno@clisp.org>
7761
7762         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
7763         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
7764         glthread_recursive_lock_init.
7765         * lib/lock.c (glthread_recursive_lock_init)
7766         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
7767         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
7768
7769 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
7770
7771         New function qset_acl, like set_acl but with syscall semantics.
7772         * lib/acl.h (qset_acl): New decl.
7773         * lib/acl.c (qset_acl): New function.
7774         (set_acl): Use new function.  Use more-consistent diagnostics.
7775
7776 2007-11-28  Jim Meyering  <meyering@redhat.com>
7777
7778         * modules/physmem (License): Change from GPL to LGPLv2+.
7779
7780 2007-11-26  Bruno Haible  <bruno@clisp.org>
7781
7782         * lib/vasnprintf.c (decode_long_double): Don't abort if the
7783         'long double' type has excess precision.
7784         Reported by Jim Meyering in
7785         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
7786
7787 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7788
7789         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
7790         Sync from <http://gnu.org/licenses>.
7791         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
7792         with license text from same location.
7793         * doc/maintain.texi, doc/standards.texi:  Sync from
7794         <http://savannah.gnu.org/projects/gnustandards>.
7795
7796 2007-11-22  Ondřej Vašík  <ovasik@redhat.com>
7797         and Jim Meyering  <meyering@redhat.com>
7798
7799         Adjust getdate' grammar to accept a slightly more regular language.
7800         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
7801         Before, the former was rejected.
7802         * lib/getdate.y (digits_to_date_time): New function, factored
7803         out of ...
7804         (number): ...here.  Just call digits_to_date_time.
7805         (hybrid): New non-terminal to handle an <unsigned number,
7806         signed relative offset> sequence consistently.
7807
7808 2007-11-18  Jim Meyering  <meyering@redhat.com>
7809
7810         Pull my changes from coreutils:
7811         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
7812         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
7813         use of $gnulib_tool_option_extras, so that it's separated from the
7814         preceding argument.
7815
7816         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
7817         * build-aux/bootstrap (cp_mark_as_generated): Create any required
7818         parent destination directories before copying a file into place.
7819
7820 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
7821
7822         bootstrap: work also with 4-argument variant of AC_INIT
7823         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
7824
7825 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
7826
7827         Port test-getaddrinfo to Solaris.
7828         Problem reported by Bruno Haible in
7829         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
7830         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
7831         explanation of setting 'hints'.
7832         Don't reject an implementation merely because it returns EAI_SERVICE.
7833         (EAI_SERVICE): Define to 0 if not defined.
7834
7835 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
7836
7837         The license of gnu-make and posix-shell is now "GPLed build tool".
7838         * modules/gnu-make (License): Likewise.
7839         * modules/posix-shell (License): Likewise.
7840
7841         New module posix-shell, for determining a POSIX shell
7842         or perhaps something that is close enough to a POSIX shell.
7843         * m4/posix-shell.m4: New file.
7844         * modules/posix-shell: New file.
7845
7846         * MODULES.html.sh: Mention new module.
7847
7848         New module gnu-make, for determining whether we're using GNU Make.
7849         * m4/gnu-make.m4: New file.
7850         * modules/gnu-make: New file.
7851         * MODULES.html.sh: Mention new module.
7852
7853 2007-11-14  Jim Meyering  <meyering@redhat.com>
7854
7855         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
7856         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
7857         use this macro to create a function _definition_.
7858         Remove useless "#undef ARGMATCH_DIE".
7859
7860 2007-11-14  Bruno Haible  <bruno@clisp.org>
7861
7862         * lib/config.charset: Update for OpenBSD 4.1.
7863         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
7864
7865 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
7866
7867         Document 64-bit #if problems in stdint.texi.
7868         * doc/headers/stdint.texi (stdint.h): Mention problems with
7869         64-bit-#if, and how to work around them.
7870
7871         Don't insist on 'long long int' support in the preprocessor.  It
7872         breaks too many things.  For example, PRIdMAX still uses a 'long
7873         long int' format with the latest Sun compiler, even though
7874         HAVE_LONG_LONG_INT isn't defined due to that compiler's
7875         preprocessor problem.  This causes the latest coreutils to dump
7876         core on Solaris 10 sparc with the Sun C compiler.
7877         Instead, fix the 2007-10-16 problem in a different way, by evaluating
7878         the troublesome expressions at configure-time, not at #if-time.
7879         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
7880         preprocessor.
7881         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
7882         compile-time C checks, done at 'configure'-time.
7883         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
7884         * modules/inttypes (Makefile): Substitute the new symbols that
7885         gl_INTTYPES_H now generates.
7886         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
7887
7888 2007-11-12  Bruno Haible  <bruno@clisp.org>
7889
7890         Tests for Unicode character classification functions.
7891
7892         * modules/unictype/bidicategory-byname-tests: New file.
7893         * modules/unictype/bidicategory-name-tests: New file.
7894         * modules/unictype/bidicategory-of-tests: New file.
7895         * modules/unictype/bidicategory-test-tests: New file.
7896         * modules/unictype/block-list-tests: New file.
7897         * modules/unictype/block-of-tests: New file.
7898         * modules/unictype/block-test-tests: New file.
7899         * modules/unictype/category-C-tests: New file.
7900         * modules/unictype/category-Cc-tests: New file.
7901         * modules/unictype/category-Cf-tests: New file.
7902         * modules/unictype/category-Cn-tests: New file.
7903         * modules/unictype/category-Co-tests: New file.
7904         * modules/unictype/category-Cs-tests: New file.
7905         * modules/unictype/category-L-tests: New file.
7906         * modules/unictype/category-Ll-tests: New file.
7907         * modules/unictype/category-Lm-tests: New file.
7908         * modules/unictype/category-Lo-tests: New file.
7909         * modules/unictype/category-Lt-tests: New file.
7910         * modules/unictype/category-Lu-tests: New file.
7911         * modules/unictype/category-M-tests: New file.
7912         * modules/unictype/category-Mc-tests: New file.
7913         * modules/unictype/category-Me-tests: New file.
7914         * modules/unictype/category-Mn-tests: New file.
7915         * modules/unictype/category-N-tests: New file.
7916         * modules/unictype/category-Nd-tests: New file.
7917         * modules/unictype/category-Nl-tests: New file.
7918         * modules/unictype/category-No-tests: New file.
7919         * modules/unictype/category-P-tests: New file.
7920         * modules/unictype/category-Pc-tests: New file.
7921         * modules/unictype/category-Pd-tests: New file.
7922         * modules/unictype/category-Pe-tests: New file.
7923         * modules/unictype/category-Pf-tests: New file.
7924         * modules/unictype/category-Pi-tests: New file.
7925         * modules/unictype/category-Po-tests: New file.
7926         * modules/unictype/category-Ps-tests: New file.
7927         * modules/unictype/category-S-tests: New file.
7928         * modules/unictype/category-Sc-tests: New file.
7929         * modules/unictype/category-Sk-tests: New file.
7930         * modules/unictype/category-Sm-tests: New file.
7931         * modules/unictype/category-So-tests: New file.
7932         * modules/unictype/category-Z-tests: New file.
7933         * modules/unictype/category-Zl-tests: New file.
7934         * modules/unictype/category-Zp-tests: New file.
7935         * modules/unictype/category-Zs-tests: New file.
7936         * modules/unictype/category-and-not-tests: New file.
7937         * modules/unictype/category-and-tests: New file.
7938         * modules/unictype/category-byname-tests: New file.
7939         * modules/unictype/category-name-tests: New file.
7940         * modules/unictype/category-none-tests: New file.
7941         * modules/unictype/category-of-tests: New file.
7942         * modules/unictype/category-or-tests: New file.
7943         * modules/unictype/category-test-withtable-tests: New file.
7944         * modules/unictype/combining-class-tests: New file.
7945         * modules/unictype/ctype-alnum-tests: New file.
7946         * modules/unictype/ctype-alpha-tests: New file.
7947         * modules/unictype/ctype-blank-tests: New file.
7948         * modules/unictype/ctype-cntrl-tests: New file.
7949         * modules/unictype/ctype-digit-tests: New file.
7950         * modules/unictype/ctype-graph-tests: New file.
7951         * modules/unictype/ctype-lower-tests: New file.
7952         * modules/unictype/ctype-print-tests: New file.
7953         * modules/unictype/ctype-punct-tests: New file.
7954         * modules/unictype/ctype-space-tests: New file.
7955         * modules/unictype/ctype-upper-tests: New file.
7956         * modules/unictype/ctype-xdigit-tests: New file.
7957         * modules/unictype/decimal-digit-tests: New file.
7958         * modules/unictype/digit-tests: New file.
7959         * modules/unictype/mirror-tests: New file.
7960         * modules/unictype/numeric-tests: New file.
7961         * modules/unictype/property-alphabetic-tests: New file.
7962         * modules/unictype/property-ascii-hex-digit-tests: New file.
7963         * modules/unictype/property-bidi-arabic-digit-tests: New file.
7964         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
7965         * modules/unictype/property-bidi-block-separator-tests: New file.
7966         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
7967         * modules/unictype/property-bidi-common-separator-tests: New file.
7968         * modules/unictype/property-bidi-control-tests: New file.
7969         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
7970         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
7971         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
7972         * modules/unictype/property-bidi-european-digit-tests: New file.
7973         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
7974         * modules/unictype/property-bidi-left-to-right-tests: New file.
7975         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
7976         * modules/unictype/property-bidi-other-neutral-tests: New file.
7977         * modules/unictype/property-bidi-pdf-tests: New file.
7978         * modules/unictype/property-bidi-segment-separator-tests: New file.
7979         * modules/unictype/property-bidi-whitespace-tests: New file.
7980         * modules/unictype/property-byname-tests: New file.
7981         * modules/unictype/property-combining-tests: New file.
7982         * modules/unictype/property-composite-tests: New file.
7983         * modules/unictype/property-currency-symbol-tests: New file.
7984         * modules/unictype/property-dash-tests: New file.
7985         * modules/unictype/property-decimal-digit-tests: New file.
7986         * modules/unictype/property-default-ignorable-code-point-tests: New file.
7987         * modules/unictype/property-deprecated-tests: New file.
7988         * modules/unictype/property-diacritic-tests: New file.
7989         * modules/unictype/property-extender-tests: New file.
7990         * modules/unictype/property-format-control-tests: New file.
7991         * modules/unictype/property-grapheme-base-tests: New file.
7992         * modules/unictype/property-grapheme-extend-tests: New file.
7993         * modules/unictype/property-grapheme-link-tests: New file.
7994         * modules/unictype/property-hex-digit-tests: New file.
7995         * modules/unictype/property-hyphen-tests: New file.
7996         * modules/unictype/property-id-continue-tests: New file.
7997         * modules/unictype/property-id-start-tests: New file.
7998         * modules/unictype/property-ideographic-tests: New file.
7999         * modules/unictype/property-ids-binary-operator-tests: New file.
8000         * modules/unictype/property-ids-trinary-operator-tests: New file.
8001         * modules/unictype/property-ignorable-control-tests: New file.
8002         * modules/unictype/property-iso-control-tests: New file.
8003         * modules/unictype/property-join-control-tests: New file.
8004         * modules/unictype/property-left-of-pair-tests: New file.
8005         * modules/unictype/property-line-separator-tests: New file.
8006         * modules/unictype/property-logical-order-exception-tests: New file.
8007         * modules/unictype/property-lowercase-tests: New file.
8008         * modules/unictype/property-math-tests: New file.
8009         * modules/unictype/property-non-break-tests: New file.
8010         * modules/unictype/property-not-a-character-tests: New file.
8011         * modules/unictype/property-numeric-tests: New file.
8012         * modules/unictype/property-other-alphabetic-tests: New file.
8013         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
8014         * modules/unictype/property-other-grapheme-extend-tests: New file.
8015         * modules/unictype/property-other-id-continue-tests: New file.
8016         * modules/unictype/property-other-id-start-tests: New file.
8017         * modules/unictype/property-other-lowercase-tests: New file.
8018         * modules/unictype/property-other-math-tests: New file.
8019         * modules/unictype/property-other-uppercase-tests: New file.
8020         * modules/unictype/property-paired-punctuation-tests: New file.
8021         * modules/unictype/property-paragraph-separator-tests: New file.
8022         * modules/unictype/property-pattern-syntax-tests: New file.
8023         * modules/unictype/property-pattern-white-space-tests: New file.
8024         * modules/unictype/property-private-use-tests: New file.
8025         * modules/unictype/property-punctuation-tests: New file.
8026         * modules/unictype/property-quotation-mark-tests: New file.
8027         * modules/unictype/property-radical-tests: New file.
8028         * modules/unictype/property-sentence-terminal-tests: New file.
8029         * modules/unictype/property-soft-dotted-tests: New file.
8030         * modules/unictype/property-space-tests: New file.
8031         * modules/unictype/property-terminal-punctuation-tests: New file.
8032         * modules/unictype/property-test-tests: New file.
8033         * modules/unictype/property-titlecase-tests: New file.
8034         * modules/unictype/property-unassigned-code-value-tests: New file.
8035         * modules/unictype/property-unified-ideograph-tests: New file.
8036         * modules/unictype/property-uppercase-tests: New file.
8037         * modules/unictype/property-variation-selector-tests: New file.
8038         * modules/unictype/property-white-space-tests: New file.
8039         * modules/unictype/property-xid-continue-tests: New file.
8040         * modules/unictype/property-xid-start-tests: New file.
8041         * modules/unictype/property-zero-width-tests: New file.
8042         * modules/unictype/scripts-tests: New file.
8043         * modules/unictype/syntax-c-ident-tests: New file.
8044         * modules/unictype/syntax-c-whitespace-tests: New file.
8045         * modules/unictype/syntax-java-ident-tests: New file.
8046         * modules/unictype/syntax-java-whitespace-tests: New file.
8047         * tests/unictype/test-bidi_byname.c: New file.
8048         * tests/unictype/test-bidi_name.c: New file.
8049         * tests/unictype/test-bidi_of.c: New file.
8050         * tests/unictype/test-bidi_test.c: New file.
8051         * tests/unictype/test-block_list.c: New file.
8052         * tests/unictype/test-block_of.c: New file.
8053         * tests/unictype/test-block_test.c: New file.
8054         * tests/unictype/test-categ_and.c: New file.
8055         * tests/unictype/test-categ_and_not.c: New file.
8056         * tests/unictype/test-categ_byname.c: New file.
8057         * tests/unictype/test-categ_name.c: New file.
8058         * tests/unictype/test-categ_none.c: New file.
8059         * tests/unictype/test-categ_of.c: New file.
8060         * tests/unictype/test-categ_or.c: New file.
8061         * tests/unictype/test-categ_test_withtable.c: New file.
8062         * tests/unictype/test-combining.c: New file.
8063         * tests/unictype/test-decdigit.c: New file.
8064         * tests/unictype/test-digit.c: New file.
8065         * tests/unictype/test-mirror.c: New file.
8066         * tests/unictype/test-numeric.c: New file.
8067         * tests/unictype/test-pr_byname.c: New file.
8068         * tests/unictype/test-pr_test.c: New file.
8069         * tests/unictype/test-predicate-part1.h: New file.
8070         * tests/unictype/test-predicate-part2.h: New file.
8071         * tests/unictype/test-scripts.c: New file.
8072         * tests/unictype/test-sy_c_ident.c: New file.
8073         * tests/unictype/test-sy_java_ident.c: New file.
8074
8075         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
8076         for Unicode 5.0.0.
8077         * tests/unictype/test-categ_Cc.c: Likewise.
8078         * tests/unictype/test-categ_Cf.c: Likewise.
8079         * tests/unictype/test-categ_Cn.c: Likewise.
8080         * tests/unictype/test-categ_Co.c: Likewise.
8081         * tests/unictype/test-categ_Cs.c: Likewise.
8082         * tests/unictype/test-categ_L.c: Likewise.
8083         * tests/unictype/test-categ_Ll.c: Likewise.
8084         * tests/unictype/test-categ_Lm.c: Likewise.
8085         * tests/unictype/test-categ_Lo.c: Likewise.
8086         * tests/unictype/test-categ_Lt.c: Likewise.
8087         * tests/unictype/test-categ_Lu.c: Likewise.
8088         * tests/unictype/test-categ_M.c: Likewise.
8089         * tests/unictype/test-categ_Mc.c: Likewise.
8090         * tests/unictype/test-categ_Me.c: Likewise.
8091         * tests/unictype/test-categ_Mn.c: Likewise.
8092         * tests/unictype/test-categ_N.c: Likewise.
8093         * tests/unictype/test-categ_Nd.c: Likewise.
8094         * tests/unictype/test-categ_Nl.c: Likewise.
8095         * tests/unictype/test-categ_No.c: Likewise.
8096         * tests/unictype/test-categ_P.c: Likewise.
8097         * tests/unictype/test-categ_Pc.c: Likewise.
8098         * tests/unictype/test-categ_Pd.c: Likewise.
8099         * tests/unictype/test-categ_Pe.c: Likewise.
8100         * tests/unictype/test-categ_Pf.c: Likewise.
8101         * tests/unictype/test-categ_Pi.c: Likewise.
8102         * tests/unictype/test-categ_Po.c: Likewise.
8103         * tests/unictype/test-categ_Ps.c: Likewise.
8104         * tests/unictype/test-categ_S.c: Likewise.
8105         * tests/unictype/test-categ_Sc.c: Likewise.
8106         * tests/unictype/test-categ_Sk.c: Likewise.
8107         * tests/unictype/test-categ_Sm.c: Likewise.
8108         * tests/unictype/test-categ_So.c: Likewise.
8109         * tests/unictype/test-categ_Z.c: Likewise.
8110         * tests/unictype/test-categ_Zl.c: Likewise.
8111         * tests/unictype/test-categ_Zp.c: Likewise.
8112         * tests/unictype/test-categ_Zs.c: Likewise.
8113         * tests/unictype/test-ctype_alnum.c: Likewise.
8114         * tests/unictype/test-ctype_alpha.c: Likewise.
8115         * tests/unictype/test-ctype_blank.c: Likewise.
8116         * tests/unictype/test-ctype_cntrl.c: Likewise.
8117         * tests/unictype/test-ctype_digit.c: Likewise.
8118         * tests/unictype/test-ctype_graph.c: Likewise.
8119         * tests/unictype/test-ctype_lower.c: Likewise.
8120         * tests/unictype/test-ctype_print.c: Likewise.
8121         * tests/unictype/test-ctype_punct.c: Likewise.
8122         * tests/unictype/test-ctype_space.c: Likewise.
8123         * tests/unictype/test-ctype_upper.c: Likewise.
8124         * tests/unictype/test-ctype_xdigit.c: Likewise.
8125         * tests/unictype/test-decdigit.h: Likewise.
8126         * tests/unictype/test-digit.h: Likewise.
8127         * tests/unictype/test-numeric.h: Likewise.
8128         * tests/unictype/test-pr_alphabetic.c: Likewise.
8129         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
8130         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
8131         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
8132         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
8133         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
8134         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
8135         * tests/unictype/test-pr_bidi_control.c: Likewise.
8136         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
8137         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
8138         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
8139         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
8140         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
8141         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
8142         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
8143         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
8144         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
8145         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
8146         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
8147         * tests/unictype/test-pr_combining.c: Likewise.
8148         * tests/unictype/test-pr_composite.c: Likewise.
8149         * tests/unictype/test-pr_currency_symbol.c: Likewise.
8150         * tests/unictype/test-pr_dash.c: Likewise.
8151         * tests/unictype/test-pr_decimal_digit.c: Likewise.
8152         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
8153         * tests/unictype/test-pr_deprecated.c: Likewise.
8154         * tests/unictype/test-pr_diacritic.c: Likewise.
8155         * tests/unictype/test-pr_extender.c: Likewise.
8156         * tests/unictype/test-pr_format_control.c: Likewise.
8157         * tests/unictype/test-pr_grapheme_base.c: Likewise.
8158         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
8159         * tests/unictype/test-pr_grapheme_link.c: Likewise.
8160         * tests/unictype/test-pr_hex_digit.c: Likewise.
8161         * tests/unictype/test-pr_hyphen.c: Likewise.
8162         * tests/unictype/test-pr_id_continue.c: Likewise.
8163         * tests/unictype/test-pr_id_start.c: Likewise.
8164         * tests/unictype/test-pr_ideographic.c: Likewise.
8165         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
8166         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
8167         * tests/unictype/test-pr_ignorable_control.c: Likewise.
8168         * tests/unictype/test-pr_iso_control.c: Likewise.
8169         * tests/unictype/test-pr_join_control.c: Likewise.
8170         * tests/unictype/test-pr_left_of_pair.c: Likewise.
8171         * tests/unictype/test-pr_line_separator.c: Likewise.
8172         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
8173         * tests/unictype/test-pr_lowercase.c: Likewise.
8174         * tests/unictype/test-pr_math.c: Likewise.
8175         * tests/unictype/test-pr_non_break.c: Likewise.
8176         * tests/unictype/test-pr_not_a_character.c: Likewise.
8177         * tests/unictype/test-pr_numeric.c: Likewise.
8178         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
8179         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
8180         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
8181         * tests/unictype/test-pr_other_id_continue.c: Likewise.
8182         * tests/unictype/test-pr_other_id_start.c: Likewise.
8183         * tests/unictype/test-pr_other_lowercase.c: Likewise.
8184         * tests/unictype/test-pr_other_math.c: Likewise.
8185         * tests/unictype/test-pr_other_uppercase.c: Likewise.
8186         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
8187         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
8188         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
8189         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
8190         * tests/unictype/test-pr_private_use.c: Likewise.
8191         * tests/unictype/test-pr_punctuation.c: Likewise.
8192         * tests/unictype/test-pr_quotation_mark.c: Likewise.
8193         * tests/unictype/test-pr_radical.c: Likewise.
8194         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
8195         * tests/unictype/test-pr_soft_dotted.c: Likewise.
8196         * tests/unictype/test-pr_space.c: Likewise.
8197         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
8198         * tests/unictype/test-pr_titlecase.c: Likewise.
8199         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
8200         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
8201         * tests/unictype/test-pr_uppercase.c: Likewise.
8202         * tests/unictype/test-pr_variation_selector.c: Likewise.
8203         * tests/unictype/test-pr_white_space.c: Likewise.
8204         * tests/unictype/test-pr_xid_continue.c: Likewise.
8205         * tests/unictype/test-pr_xid_start.c: Likewise.
8206         * tests/unictype/test-pr_zero_width.c: Likewise.
8207         * tests/unictype/test-sy_c_whitespace.c: Likewise.
8208         * tests/unictype/test-sy_java_whitespace.c: Likewise.
8209
8210 2007-11-12  Bruno Haible  <bruno@clisp.org>
8211
8212         Unicode character classification functions.
8213         * lib/unictype.h: New file.
8214         * modules/unictype/base: New file.
8215         * modules/unictype/category-L: New file.
8216         * modules/unictype/category-Lu: New file.
8217         * modules/unictype/category-Ll: New file.
8218         * modules/unictype/category-Lt: New file.
8219         * modules/unictype/category-Lm: New file.
8220         * modules/unictype/category-Lo: New file.
8221         * modules/unictype/category-M: New file.
8222         * modules/unictype/category-Mn: New file.
8223         * modules/unictype/category-Mc: New file.
8224         * modules/unictype/category-Me: New file.
8225         * modules/unictype/category-N: New file.
8226         * modules/unictype/category-Nd: New file.
8227         * modules/unictype/category-Nl: New file.
8228         * modules/unictype/category-No: New file.
8229         * modules/unictype/category-P: New file.
8230         * modules/unictype/category-Pc: New file.
8231         * modules/unictype/category-Pd: New file.
8232         * modules/unictype/category-Ps: New file.
8233         * modules/unictype/category-Pe: New file.
8234         * modules/unictype/category-Pi: New file.
8235         * modules/unictype/category-Pf: New file.
8236         * modules/unictype/category-Po: New file.
8237         * modules/unictype/category-S: New file.
8238         * modules/unictype/category-Sm: New file.
8239         * modules/unictype/category-Sc: New file.
8240         * modules/unictype/category-Sk: New file.
8241         * modules/unictype/category-So: New file.
8242         * modules/unictype/category-Z: New file.
8243         * modules/unictype/category-Zs: New file.
8244         * modules/unictype/category-Zl: New file.
8245         * modules/unictype/category-Zp: New file.
8246         * modules/unictype/category-C: New file.
8247         * modules/unictype/category-Cc: New file.
8248         * modules/unictype/category-Cf: New file.
8249         * modules/unictype/category-Cs: New file.
8250         * modules/unictype/category-Co: New file.
8251         * modules/unictype/category-Cn: New file.
8252         * modules/unictype/category-or: New file.
8253         * modules/unictype/category-of: New file.
8254         * modules/unictype/category-test: New file.
8255         * modules/unictype/category-test-withtable: New file.
8256         * modules/unictype/category-byname: New file.
8257         * modules/unictype/category-none: New file.
8258         * modules/unictype/category-and: New file.
8259         * modules/unictype/category-and-not: New file.
8260         * modules/unictype/category-name: New file.
8261         * modules/unictype/combining-class: New file.
8262         * modules/unictype/category-all: New file.
8263         * modules/unictype/bidicategory-all: New file.
8264         * modules/unictype/bidicategory-byname: New file.
8265         * modules/unictype/bidicategory-name: New file.
8266         * modules/unictype/bidicategory-of: New file.
8267         * modules/unictype/bidicategory-test: New file.
8268         * modules/unictype/decimal-digit: New file.
8269         * modules/unictype/digit: New file.
8270         * modules/unictype/numeric: New file.
8271         * modules/unictype/mirror: New file.
8272         * modules/unictype/property-white-space: New file.
8273         * modules/unictype/property-alphabetic: New file.
8274         * modules/unictype/property-other-alphabetic: New file.
8275         * modules/unictype/property-not-a-character: New file.
8276         * modules/unictype/property-default-ignorable-code-point: New file.
8277         * modules/unictype/property-other-default-ignorable-code-point: New
8278         file.
8279         * modules/unictype/property-deprecated: New file.
8280         * modules/unictype/property-logical-order-exception: New file.
8281         * modules/unictype/property-variation-selector: New file.
8282         * modules/unictype/property-private-use: New file.
8283         * modules/unictype/property-unassigned-code-value: New file.
8284         * modules/unictype/property-uppercase: New file.
8285         * modules/unictype/property-other-uppercase: New file.
8286         * modules/unictype/property-lowercase: New file.
8287         * modules/unictype/property-other-lowercase: New file.
8288         * modules/unictype/property-titlecase: New file.
8289         * modules/unictype/property-soft-dotted: New file.
8290         * modules/unictype/property-id-start: New file.
8291         * modules/unictype/property-other-id-start: New file.
8292         * modules/unictype/property-id-continue: New file.
8293         * modules/unictype/property-other-id-continue: New file.
8294         * modules/unictype/property-xid-start: New file.
8295         * modules/unictype/property-xid-continue: New file.
8296         * modules/unictype/property-pattern-white-space: New file.
8297         * modules/unictype/property-pattern-syntax: New file.
8298         * modules/unictype/property-join-control: New file.
8299         * modules/unictype/property-grapheme-base: New file.
8300         * modules/unictype/property-grapheme-extend: New file.
8301         * modules/unictype/property-other-grapheme-extend: New file.
8302         * modules/unictype/property-grapheme-link: New file.
8303         * modules/unictype/property-bidi-control: New file.
8304         * modules/unictype/property-bidi-left-to-right: New file.
8305         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
8306         * modules/unictype/property-bidi-arabic-right-to-left: New file.
8307         * modules/unictype/property-bidi-european-digit: New file.
8308         * modules/unictype/property-bidi-eur-num-separator: New file.
8309         * modules/unictype/property-bidi-eur-num-terminator: New file.
8310         * modules/unictype/property-bidi-arabic-digit: New file.
8311         * modules/unictype/property-bidi-common-separator: New file.
8312         * modules/unictype/property-bidi-block-separator: New file.
8313         * modules/unictype/property-bidi-segment-separator: New file.
8314         * modules/unictype/property-bidi-whitespace: New file.
8315         * modules/unictype/property-bidi-non-spacing-mark: New file.
8316         * modules/unictype/property-bidi-boundary-neutral: New file.
8317         * modules/unictype/property-bidi-pdf: New file.
8318         * modules/unictype/property-bidi-embedding-or-override: New file.
8319         * modules/unictype/property-bidi-other-neutral: New file.
8320         * modules/unictype/property-hex-digit: New file.
8321         * modules/unictype/property-ascii-hex-digit: New file.
8322         * modules/unictype/property-ideographic: New file.
8323         * modules/unictype/property-unified-ideograph: New file.
8324         * modules/unictype/property-radical: New file.
8325         * modules/unictype/property-ids-binary-operator: New file.
8326         * modules/unictype/property-ids-trinary-operator: New file.
8327         * modules/unictype/property-zero-width: New file.
8328         * modules/unictype/property-space: New file.
8329         * modules/unictype/property-non-break: New file.
8330         * modules/unictype/property-iso-control: New file.
8331         * modules/unictype/property-format-control: New file.
8332         * modules/unictype/property-dash: New file.
8333         * modules/unictype/property-hyphen: New file.
8334         * modules/unictype/property-punctuation: New file.
8335         * modules/unictype/property-line-separator: New file.
8336         * modules/unictype/property-paragraph-separator: New file.
8337         * modules/unictype/property-quotation-mark: New file.
8338         * modules/unictype/property-sentence-terminal: New file.
8339         * modules/unictype/property-terminal-punctuation: New file.
8340         * modules/unictype/property-currency-symbol: New file.
8341         * modules/unictype/property-math: New file.
8342         * modules/unictype/property-other-math: New file.
8343         * modules/unictype/property-paired-punctuation: New file.
8344         * modules/unictype/property-left-of-pair: New file.
8345         * modules/unictype/property-combining: New file.
8346         * modules/unictype/property-composite: New file.
8347         * modules/unictype/property-decimal-digit: New file.
8348         * modules/unictype/property-numeric: New file.
8349         * modules/unictype/property-diacritic: New file.
8350         * modules/unictype/property-extender: New file.
8351         * modules/unictype/property-ignorable-control: New file.
8352         * modules/unictype/property-test: New file.
8353         * modules/unictype/property-byname: New file.
8354         * modules/unictype/property-all: New file.
8355         * modules/unictype/scripts: New file.
8356         * modules/unictype/scripts-all: New file.
8357         * modules/unictype/block-of: New file.
8358         * modules/unictype/block-test: New file.
8359         * modules/unictype/block-list: New file.
8360         * modules/unictype/block-all: New file.
8361         * modules/unictype/syntax-c-whitespace: New file.
8362         * modules/unictype/syntax-java-whitespace: New file.
8363         * modules/unictype/syntax-c-ident: New file.
8364         * modules/unictype/syntax-java-ident: New file.
8365         * modules/unictype/ctype-alnum: New file.
8366         * modules/unictype/ctype-alpha: New file.
8367         * modules/unictype/ctype-cntrl: New file.
8368         * modules/unictype/ctype-digit: New file.
8369         * modules/unictype/ctype-graph: New file.
8370         * modules/unictype/ctype-lower: New file.
8371         * modules/unictype/ctype-print: New file.
8372         * modules/unictype/ctype-punct: New file.
8373         * modules/unictype/ctype-space: New file.
8374         * modules/unictype/ctype-upper: New file.
8375         * modules/unictype/ctype-xdigit: New file.
8376         * modules/unictype/ctype-blank: New file.
8377         * lib/unictype/bidi_byname.c: New file.
8378         * lib/unictype/bidi_name.c: New file.
8379         * lib/unictype/bidi_of.c: New file.
8380         * lib/unictype/bidi_test.c: New file.
8381         * lib/unictype/bitmap.h: New file.
8382         * lib/unictype/block_test.c: New file.
8383         * lib/unictype/blocks.c: New file.
8384         * lib/unictype/categ_C.c: New file.
8385         * lib/unictype/categ_Cc.c: New file.
8386         * lib/unictype/categ_Cf.c: New file.
8387         * lib/unictype/categ_Cn.c: New file.
8388         * lib/unictype/categ_Co.c: New file.
8389         * lib/unictype/categ_Cs.c: New file.
8390         * lib/unictype/categ_L.c: New file.
8391         * lib/unictype/categ_Ll.c: New file.
8392         * lib/unictype/categ_Lm.c: New file.
8393         * lib/unictype/categ_Lo.c: New file.
8394         * lib/unictype/categ_Lt.c: New file.
8395         * lib/unictype/categ_Lu.c: New file.
8396         * lib/unictype/categ_M.c: New file.
8397         * lib/unictype/categ_Mc.c: New file.
8398         * lib/unictype/categ_Me.c: New file.
8399         * lib/unictype/categ_Mn.c: New file.
8400         * lib/unictype/categ_N.c: New file.
8401         * lib/unictype/categ_Nd.c: New file.
8402         * lib/unictype/categ_Nl.c: New file.
8403         * lib/unictype/categ_No.c: New file.
8404         * lib/unictype/categ_P.c: New file.
8405         * lib/unictype/categ_Pc.c: New file.
8406         * lib/unictype/categ_Pd.c: New file.
8407         * lib/unictype/categ_Pe.c: New file.
8408         * lib/unictype/categ_Pf.c: New file.
8409         * lib/unictype/categ_Pi.c: New file.
8410         * lib/unictype/categ_Po.c: New file.
8411         * lib/unictype/categ_Ps.c: New file.
8412         * lib/unictype/categ_S.c: New file.
8413         * lib/unictype/categ_Sc.c: New file.
8414         * lib/unictype/categ_Sk.c: New file.
8415         * lib/unictype/categ_Sm.c: New file.
8416         * lib/unictype/categ_So.c: New file.
8417         * lib/unictype/categ_Z.c: New file.
8418         * lib/unictype/categ_Zl.c: New file.
8419         * lib/unictype/categ_Zp.c: New file.
8420         * lib/unictype/categ_Zs.c: New file.
8421         * lib/unictype/categ_and.c: New file.
8422         * lib/unictype/categ_and_not.c: New file.
8423         * lib/unictype/categ_byname.c: New file.
8424         * lib/unictype/categ_name.c: New file.
8425         * lib/unictype/categ_none.c: New file.
8426         * lib/unictype/categ_of.c: New file.
8427         * lib/unictype/categ_or.c: New file.
8428         * lib/unictype/categ_test.c: New file.
8429         * lib/unictype/combining.c: New file.
8430         * lib/unictype/ctype_alnum.c: New file.
8431         * lib/unictype/ctype_alpha.c: New file.
8432         * lib/unictype/ctype_blank.c: New file.
8433         * lib/unictype/ctype_cntrl.c: New file.
8434         * lib/unictype/ctype_digit.c: New file.
8435         * lib/unictype/ctype_graph.c: New file.
8436         * lib/unictype/ctype_lower.c: New file.
8437         * lib/unictype/ctype_print.c: New file.
8438         * lib/unictype/ctype_punct.c: New file.
8439         * lib/unictype/ctype_space.c: New file.
8440         * lib/unictype/ctype_upper.c: New file.
8441         * lib/unictype/ctype_xdigit.c: New file.
8442         * lib/unictype/decdigit.c: New file.
8443         * lib/unictype/digit.c: New file.
8444         * lib/unictype/identsyntaxmap.h: New file.
8445         * lib/unictype/mirror.c: New file.
8446         * lib/unictype/numeric.c: New file.
8447         * lib/unictype/pr_alphabetic.c: New file.
8448         * lib/unictype/pr_ascii_hex_digit.c: New file.
8449         * lib/unictype/pr_bidi_arabic_digit.c: New file.
8450         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
8451         * lib/unictype/pr_bidi_block_separator.c: New file.
8452         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
8453         * lib/unictype/pr_bidi_common_separator.c: New file.
8454         * lib/unictype/pr_bidi_control.c: New file.
8455         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
8456         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
8457         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
8458         * lib/unictype/pr_bidi_european_digit.c: New file.
8459         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
8460         * lib/unictype/pr_bidi_left_to_right.c: New file.
8461         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
8462         * lib/unictype/pr_bidi_other_neutral.c: New file.
8463         * lib/unictype/pr_bidi_pdf.c: New file.
8464         * lib/unictype/pr_bidi_segment_separator.c: New file.
8465         * lib/unictype/pr_bidi_whitespace.c: New file.
8466         * lib/unictype/pr_byname.c: New file.
8467         * lib/unictype/pr_byname.gperf: New file.
8468         * lib/unictype/pr_combining.c: New file.
8469         * lib/unictype/pr_composite.c: New file.
8470         * lib/unictype/pr_currency_symbol.c: New file.
8471         * lib/unictype/pr_dash.c: New file.
8472         * lib/unictype/pr_decimal_digit.c: New file.
8473         * lib/unictype/pr_default_ignorable_code_point.c: New file.
8474         * lib/unictype/pr_deprecated.c: New file.
8475         * lib/unictype/pr_diacritic.c: New file.
8476         * lib/unictype/pr_extender.c: New file.
8477         * lib/unictype/pr_format_control.c: New file.
8478         * lib/unictype/pr_grapheme_base.c: New file.
8479         * lib/unictype/pr_grapheme_extend.c: New file.
8480         * lib/unictype/pr_grapheme_link.c: New file.
8481         * lib/unictype/pr_hex_digit.c: New file.
8482         * lib/unictype/pr_hyphen.c: New file.
8483         * lib/unictype/pr_id_continue.c: New file.
8484         * lib/unictype/pr_id_start.c: New file.
8485         * lib/unictype/pr_ideographic.c: New file.
8486         * lib/unictype/pr_ids_binary_operator.c: New file.
8487         * lib/unictype/pr_ids_trinary_operator.c: New file.
8488         * lib/unictype/pr_ignorable_control.c: New file.
8489         * lib/unictype/pr_iso_control.c: New file.
8490         * lib/unictype/pr_join_control.c: New file.
8491         * lib/unictype/pr_left_of_pair.c: New file.
8492         * lib/unictype/pr_line_separator.c: New file.
8493         * lib/unictype/pr_logical_order_exception.c: New file.
8494         * lib/unictype/pr_lowercase.c: New file.
8495         * lib/unictype/pr_math.c: New file.
8496         * lib/unictype/pr_non_break.c: New file.
8497         * lib/unictype/pr_not_a_character.c: New file.
8498         * lib/unictype/pr_numeric.c: New file.
8499         * lib/unictype/pr_other_alphabetic.c: New file.
8500         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
8501         * lib/unictype/pr_other_grapheme_extend.c: New file.
8502         * lib/unictype/pr_other_id_continue.c: New file.
8503         * lib/unictype/pr_other_id_start.c: New file.
8504         * lib/unictype/pr_other_lowercase.c: New file.
8505         * lib/unictype/pr_other_math.c: New file.
8506         * lib/unictype/pr_other_uppercase.c: New file.
8507         * lib/unictype/pr_paired_punctuation.c: New file.
8508         * lib/unictype/pr_paragraph_separator.c: New file.
8509         * lib/unictype/pr_pattern_syntax.c: New file.
8510         * lib/unictype/pr_pattern_white_space.c: New file.
8511         * lib/unictype/pr_private_use.c: New file.
8512         * lib/unictype/pr_punctuation.c: New file.
8513         * lib/unictype/pr_quotation_mark.c: New file.
8514         * lib/unictype/pr_radical.c: New file.
8515         * lib/unictype/pr_sentence_terminal.c: New file.
8516         * lib/unictype/pr_soft_dotted.c: New file.
8517         * lib/unictype/pr_space.c: New file.
8518         * lib/unictype/pr_terminal_punctuation.c: New file.
8519         * lib/unictype/pr_test.c: New file.
8520         * lib/unictype/pr_titlecase.c: New file.
8521         * lib/unictype/pr_unassigned_code_value.c: New file.
8522         * lib/unictype/pr_unified_ideograph.c: New file.
8523         * lib/unictype/pr_uppercase.c: New file.
8524         * lib/unictype/pr_variation_selector.c: New file.
8525         * lib/unictype/pr_white_space.c: New file.
8526         * lib/unictype/pr_xid_continue.c: New file.
8527         * lib/unictype/pr_xid_start.c: New file.
8528         * lib/unictype/pr_zero_width.c: New file.
8529         * lib/unictype/scripts.c: New file.
8530         * lib/unictype/sy_c_ident.c: New file.
8531         * lib/unictype/sy_c_whitespace.c: New file.
8532         * lib/unictype/sy_java_ident.c: New file.
8533         * lib/unictype/sy_java_whitespace.c: New file.
8534
8535         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
8536         Unicode 5.0.0.
8537         * lib/unictype/blocks.h: Likewise.
8538         * lib/unictype/categ_C.h: Likewise.
8539         * lib/unictype/categ_Cc.h: Likewise.
8540         * lib/unictype/categ_Cf.h: Likewise.
8541         * lib/unictype/categ_Cn.h: Likewise.
8542         * lib/unictype/categ_Co.h: Likewise.
8543         * lib/unictype/categ_Cs.h: Likewise.
8544         * lib/unictype/categ_L.h: Likewise.
8545         * lib/unictype/categ_Ll.h: Likewise.
8546         * lib/unictype/categ_Lm.h: Likewise.
8547         * lib/unictype/categ_Lo.h: Likewise.
8548         * lib/unictype/categ_Lt.h: Likewise.
8549         * lib/unictype/categ_Lu.h: Likewise.
8550         * lib/unictype/categ_M.h: Likewise.
8551         * lib/unictype/categ_Mc.h: Likewise.
8552         * lib/unictype/categ_Me.h: Likewise.
8553         * lib/unictype/categ_Mn.h: Likewise.
8554         * lib/unictype/categ_N.h: Likewise.
8555         * lib/unictype/categ_Nd.h: Likewise.
8556         * lib/unictype/categ_Nl.h: Likewise.
8557         * lib/unictype/categ_No.h: Likewise.
8558         * lib/unictype/categ_P.h: Likewise.
8559         * lib/unictype/categ_Pc.h: Likewise.
8560         * lib/unictype/categ_Pd.h: Likewise.
8561         * lib/unictype/categ_Pe.h: Likewise.
8562         * lib/unictype/categ_Pf.h: Likewise.
8563         * lib/unictype/categ_Pi.h: Likewise.
8564         * lib/unictype/categ_Po.h: Likewise.
8565         * lib/unictype/categ_Ps.h: Likewise.
8566         * lib/unictype/categ_S.h: Likewise.
8567         * lib/unictype/categ_Sc.h: Likewise.
8568         * lib/unictype/categ_Sk.h: Likewise.
8569         * lib/unictype/categ_Sm.h: Likewise.
8570         * lib/unictype/categ_So.h: Likewise.
8571         * lib/unictype/categ_Z.h: Likewise.
8572         * lib/unictype/categ_Zl.h: Likewise.
8573         * lib/unictype/categ_Zp.h: Likewise.
8574         * lib/unictype/categ_Zs.h: Likewise.
8575         * lib/unictype/categ_of.h: Likewise.
8576         * lib/unictype/combining.h: Likewise.
8577         * lib/unictype/ctype_alnum.h: Likewise.
8578         * lib/unictype/ctype_alpha.h: Likewise.
8579         * lib/unictype/ctype_blank.h: Likewise.
8580         * lib/unictype/ctype_cntrl.h: Likewise.
8581         * lib/unictype/ctype_digit.h: Likewise.
8582         * lib/unictype/ctype_graph.h: Likewise.
8583         * lib/unictype/ctype_lower.h: Likewise.
8584         * lib/unictype/ctype_print.h: Likewise.
8585         * lib/unictype/ctype_punct.h: Likewise.
8586         * lib/unictype/ctype_space.h: Likewise.
8587         * lib/unictype/ctype_upper.h: Likewise.
8588         * lib/unictype/ctype_xdigit.h: Likewise.
8589         * lib/unictype/decdigit.h: Likewise.
8590         * lib/unictype/digit.h: Likewise.
8591         * lib/unictype/mirror.h: Likewise.
8592         * lib/unictype/numeric.h: Likewise.
8593         * lib/unictype/pr_alphabetic.h: Likewise.
8594         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
8595         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
8596         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
8597         * lib/unictype/pr_bidi_block_separator.h: Likewise.
8598         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
8599         * lib/unictype/pr_bidi_common_separator.h: Likewise.
8600         * lib/unictype/pr_bidi_control.h: Likewise.
8601         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
8602         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
8603         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
8604         * lib/unictype/pr_bidi_european_digit.h: Likewise.
8605         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
8606         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
8607         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
8608         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
8609         * lib/unictype/pr_bidi_pdf.h: Likewise.
8610         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
8611         * lib/unictype/pr_bidi_whitespace.h: Likewise.
8612         * lib/unictype/pr_combining.h: Likewise.
8613         * lib/unictype/pr_composite.h: Likewise.
8614         * lib/unictype/pr_currency_symbol.h: Likewise.
8615         * lib/unictype/pr_dash.h: Likewise.
8616         * lib/unictype/pr_decimal_digit.h: Likewise.
8617         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
8618         * lib/unictype/pr_deprecated.h: Likewise.
8619         * lib/unictype/pr_diacritic.h: Likewise.
8620         * lib/unictype/pr_extender.h: Likewise.
8621         * lib/unictype/pr_format_control.h: Likewise.
8622         * lib/unictype/pr_grapheme_base.h: Likewise.
8623         * lib/unictype/pr_grapheme_extend.h: Likewise.
8624         * lib/unictype/pr_grapheme_link.h: Likewise.
8625         * lib/unictype/pr_hex_digit.h: Likewise.
8626         * lib/unictype/pr_hyphen.h: Likewise.
8627         * lib/unictype/pr_id_continue.h: Likewise.
8628         * lib/unictype/pr_id_start.h: Likewise.
8629         * lib/unictype/pr_ideographic.h: Likewise.
8630         * lib/unictype/pr_ids_binary_operator.h: Likewise.
8631         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
8632         * lib/unictype/pr_ignorable_control.h: Likewise.
8633         * lib/unictype/pr_iso_control.h: Likewise.
8634         * lib/unictype/pr_join_control.h: Likewise.
8635         * lib/unictype/pr_left_of_pair.h: Likewise.
8636         * lib/unictype/pr_line_separator.h: Likewise.
8637         * lib/unictype/pr_logical_order_exception.h: Likewise.
8638         * lib/unictype/pr_lowercase.h: Likewise.
8639         * lib/unictype/pr_math.h: Likewise.
8640         * lib/unictype/pr_non_break.h: Likewise.
8641         * lib/unictype/pr_not_a_character.h: Likewise.
8642         * lib/unictype/pr_numeric.h: Likewise.
8643         * lib/unictype/pr_other_alphabetic.h: Likewise.
8644         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
8645         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
8646         * lib/unictype/pr_other_id_continue.h: Likewise.
8647         * lib/unictype/pr_other_id_start.h: Likewise.
8648         * lib/unictype/pr_other_lowercase.h: Likewise.
8649         * lib/unictype/pr_other_math.h: Likewise.
8650         * lib/unictype/pr_other_uppercase.h: Likewise.
8651         * lib/unictype/pr_paired_punctuation.h: Likewise.
8652         * lib/unictype/pr_paragraph_separator.h: Likewise.
8653         * lib/unictype/pr_pattern_syntax.h: Likewise.
8654         * lib/unictype/pr_pattern_white_space.h: Likewise.
8655         * lib/unictype/pr_private_use.h: Likewise.
8656         * lib/unictype/pr_punctuation.h: Likewise.
8657         * lib/unictype/pr_quotation_mark.h: Likewise.
8658         * lib/unictype/pr_radical.h: Likewise.
8659         * lib/unictype/pr_sentence_terminal.h: Likewise.
8660         * lib/unictype/pr_soft_dotted.h: Likewise.
8661         * lib/unictype/pr_space.h: Likewise.
8662         * lib/unictype/pr_terminal_punctuation.h: Likewise.
8663         * lib/unictype/pr_titlecase.h: Likewise.
8664         * lib/unictype/pr_unassigned_code_value.h: Likewise.
8665         * lib/unictype/pr_unified_ideograph.h: Likewise.
8666         * lib/unictype/pr_uppercase.h: Likewise.
8667         * lib/unictype/pr_variation_selector.h: Likewise.
8668         * lib/unictype/pr_white_space.h: Likewise.
8669         * lib/unictype/pr_xid_continue.h: Likewise.
8670         * lib/unictype/pr_xid_start.h: Likewise.
8671         * lib/unictype/pr_zero_width.h: Likewise.
8672         * lib/unictype/scripts.h: Likewise.
8673         * lib/unictype/scripts_byname.gperf: Likewise.
8674         * lib/unictype/sy_c_ident.h: Likewise.
8675         * lib/unictype/sy_c_whitespace.h: Likewise.
8676         * lib/unictype/sy_java_ident.h: Likewise.
8677         * lib/unictype/sy_java_whitespace.h: Likewise.
8678
8679         * lib/unictype/Makefile: New file.
8680         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
8681         glibc.
8682         * lib/unictype/3level.h: New file, copied from glibc.
8683         * lib/unictype/3levelbit.h: New file.
8684
8685 2007-11-11  Bruno Haible  <bruno@clisp.org>
8686
8687         * modules/gperf: New file.
8688         * modules/iconv_open (Depends-on): Add it.
8689         (Makefile.am): Remove the GPERF definition.
8690
8691 2007-11-11  Bruno Haible  <bruno@clisp.org>
8692
8693         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
8694         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
8695
8696 2007-11-11  Bruno Haible  <bruno@clisp.org>
8697
8698         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
8699         (usage): Remove function.
8700
8701 2007-11-11  Bruno Haible  <bruno@clisp.org>
8702
8703         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
8704         gl_FUNC_CEILF_LIBS.
8705         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
8706         gl_FUNC_CEIL_LIBS.
8707         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
8708         gl_FUNC_CEILL_LIBS.
8709         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
8710         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
8711         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
8712
8713 2007-11-11  Bruno Haible  <bruno@clisp.org>
8714
8715         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
8716         roundf were declared but do not exist on functions.
8717         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
8718         roundl were declared but do not exist on functions.
8719         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
8720         HAVE_FLOORL_AND_CEILL, respectively.
8721         Needed for Sun C on Solaris 10.
8722
8723 2007-11-11  Bruno Haible  <bruno@clisp.org>
8724
8725         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
8726         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
8727         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
8728         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
8729         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
8730         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
8731         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
8732         HAVE_DECL_ROUNDF.
8733         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
8734         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
8735         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
8736         of HAVE_DECL_ROUND*.
8737         * modules/math (Makefile.am): Update.
8738
8739 2007-11-10  Bruno Haible  <bruno@clisp.org>
8740
8741         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
8742         ptrdiff_t as m4/intl.m4.
8743
8744 2007-11-10  Jim Meyering  <meyering@redhat.com>
8745
8746         Avoid link failure for the argmatch test.
8747         * tests/test-argmatch.c (usage): Define function to avoid a link
8748         failure: argmatch_die requires a usage function.
8749
8750 2007-11-09  Bruno Haible  <bruno@clisp.org>
8751
8752         * doc/functions/snprintf.texi: Mention BeOS deficiency.
8753         * doc/functions/vsnprintf.texi: Likewise.
8754         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
8755         with a size argument < 2.
8756
8757 2007-11-09  Bruno Haible  <bruno@clisp.org>
8758
8759         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
8760         buffer. Fixes an inefficiency introduced on 2007-11-03.
8761
8762 2007-11-09  Bruno Haible  <bruno@clisp.org>
8763
8764         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
8765         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
8766
8767 2007-11-08  Jim Meyering  <meyering@redhat.com>
8768
8769         Change cache variable name prefix "jm_" to "gl_" everywhere.
8770         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
8771         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
8772         * m4/uptime.m4: s/gl_/jm_/
8773
8774 2007-11-07  Bruno Haible  <bruno@clisp.org>
8775
8776         Update to GNU gettext 0.17.
8777         * m4/intl.m4: Update to GNU gettext 0.17.
8778         * m4/po.m4: Likewise.
8779         * modules/gettext (Files): Remove m4/ulonglong.m4.
8780         (configure.ac): Require gettext infrastructure from version 0.17.
8781
8782 2007-11-06  Bruno Haible  <bruno@clisp.org>
8783
8784         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
8785         symbolic values are not defined in a public header.
8786         * lib/freadable.c (freadable) [QNX]: Likewise.
8787         * lib/freadahead.c (freadahead) [QNX]: Likewise.
8788         * lib/freading.c (freading) [QNX]: Likewise.
8789         * lib/fseterr.c (fseterr) [QNX]: Likewise.
8790         * lib/fwritable.c (fwritable) [QNX]: Likewise.
8791         * lib/fwriting.c (fwriting) [QNX]: Likewise.
8792         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
8793         Reported by Alain Magloire.
8794
8795         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
8796
8797 2007-11-05  Bruno Haible  <bruno@clisp.org>
8798
8799         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
8800         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
8801         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
8802         Reported by Eric Blake.
8803
8804 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8805             Bruno Haible  <bruno@clisp.org>
8806
8807         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
8808         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
8809         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
8810         (malloc): Undefine also before including <stdlib.h>.
8811         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
8812         Needed on OSF/1 4.0.
8813
8814 2007-11-05  Jim Meyering  <meyering@redhat.com>
8815
8816         git-version-gen: sync from coreutils.
8817         * build-aux/git-version-gen: Add comments.
8818         Change the first '-' to '.' in the snapshot version string,
8819         e.g., 6.9-377-08144 -> 6.9.377-08144
8820         Remove first parameter.
8821         Don't declare a version "-dirty" merely because a time
8822         stamp has changed.
8823
8824 2007-11-04  Bruno Haible  <bruno@clisp.org>
8825
8826         * lib/lock.h: Protect all macro definitions containing an 'if'
8827         statement through a "do { ... } while (0)".
8828         * lib/tls.h: Likewise.
8829
8830 2007-11-04  Bruno Haible  <bruno@clisp.org>
8831
8832         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
8833
8834 2007-11-04  Bruno Haible  <bruno@clisp.org>
8835
8836         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
8837         * modules/fprintf-posix (Depends-on): Add nocrash.
8838         * modules/snprintf-posix (Depends-on): Likewise.
8839         * modules/sprintf-posix (Depends-on): Likewise.
8840         * modules/vasnprintf-posix (Depends-on): Likewise.
8841         * modules/vasprintf-posix (Depends-on): Likewise.
8842         * modules/vfprintf-posix (Depends-on): Likewise.
8843         * modules/vsnprintf-posix (Depends-on): Likewise.
8844         * modules/vsprintf-posix (Depends-on): Likewise.
8845         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
8846         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
8847         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
8848         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
8849         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
8850         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
8851         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
8852
8853 2007-11-04  Bruno Haible  <bruno@clisp.org>
8854
8855         * modules/nocrash: New file.
8856         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
8857         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
8858
8859 2007-11-04  Bruno Haible  <bruno@clisp.org>
8860
8861         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
8862         precision handling.
8863         * tests/test-vasprintf-posix.c (test_function): Likewise.
8864         * tests/test-snprintf-posix.h (test_function): Likewise.
8865         * tests/test-sprintf-posix.h (test_function): Likewise.
8866
8867         Fix *printf behaviour for large precisions on mingw and BeOS.
8868         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
8869         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
8870         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
8871         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
8872         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
8873         gl_PRINTF_PRECISION and test its result. Invoke
8874         gl_PREREQ_VASNPRINTF_PRECISION.
8875         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
8876         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
8877         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
8878         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
8879         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
8880         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
8881         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
8882         * doc/functions/fprintf.texi: Update.
8883         * doc/functions/printf.texi: Update.
8884         * doc/functions/snprintf.texi: Update.
8885         * doc/functions/sprintf.texi: Update.
8886         * doc/functions/vfprintf.texi: Update.
8887         * doc/functions/vprintf.texi: Update.
8888         * doc/functions/vsnprintf.texi: Update.
8889         * doc/functions/vsprintf.texi: Update.
8890
8891 2007-11-04  Bruno Haible  <bruno@clisp.org>
8892
8893         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
8894
8895 2007-11-04  Bruno Haible  <bruno@clisp.org>
8896
8897         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
8898         Reported by Sylvain Beucler <beuc@gnu.org>.
8899
8900 2007-11-03  Bruno Haible  <bruno@clisp.org>
8901
8902         * tests/test-fprintf-posix2.sh: New file.
8903         * tests/test-fprintf-posix2.c: New file.
8904         * modules/fprintf-posix-tests (Files): Add them.
8905         (TESTS): Add test-fprintf-posix2.sh.
8906         (configure.ac): Check for getrlimit and setrlimit.
8907         (check_PROGRAMS): Add test-fprintf-posix2.
8908
8909         * tests/test-printf-posix2.sh: New file.
8910         * tests/test-printf-posix2.c: New file.
8911         * modules/printf-posix-tests (Files): Add them.
8912         (TESTS): Add test-printf-posix2.sh.
8913         (configure.ac): Check for getrlimit and setrlimit.
8914         (check_PROGRAMS): Add test-printf-posix2.
8915
8916         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
8917         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
8918         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
8919         (decode_double): New function, copied from decode_long_double.
8920         (scale10_round_decimal_decoded): New function, extracted from
8921         scale10_round_decimal_long_double.
8922         (scale10_round_decimal_long_double): Use it.
8923         (scale10_round_decimal_double): New function.
8924         (floorlog10): New function.
8925         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
8926         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
8927         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
8928         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
8929         gl_PRINTF_ENOMEM and test its result. Invoke
8930         gl_PREREQ_VASNPRINTF_ENOMEM.
8931         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
8932         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
8933         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
8934         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
8935         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
8936         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
8937         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
8938         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
8939         * modules/snprintf-posix (Depends-on): Likewise.
8940         * modules/sprintf-posix (Depends-on): Likewise.
8941         * modules/vasnprintf-posix (Depends-on): Likewise.
8942         * modules/vasprintf-posix (Depends-on): Likewise.
8943         * modules/vfprintf-posix (Depends-on): Likewise.
8944         * modules/vsnprintf-posix (Depends-on): Likewise.
8945         * modules/vsprintf-posix (Depends-on): Likewise.
8946         * doc/functions/fprintf.texi: Update.
8947         * doc/functions/printf.texi: Update.
8948         * doc/functions/snprintf.texi: Update.
8949         * doc/functions/sprintf.texi: Update.
8950         * doc/functions/vfprintf.texi: Update.
8951         * doc/functions/vprintf.texi: Update.
8952         * doc/functions/vsnprintf.texi: Update.
8953         * doc/functions/vsprintf.texi: Update.
8954
8955 2007-11-03  Bruno Haible  <bruno@clisp.org>
8956
8957         * modules/frexp-nolibm-tests: New file.
8958
8959         * modules/frexp-nolibm: New file.
8960         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
8961
8962 2007-11-03  Bruno Haible  <bruno@clisp.org>
8963
8964         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
8965         value is C99 compliant.
8966         Needed for OSF/1 5.1.
8967
8968 2007-11-03  Bruno Haible  <bruno@clisp.org>
8969
8970         Fix out-of-memory handling of vasnprintf.
8971         * lib/printf-parse.c: Include <errno.h>.
8972         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
8973         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
8974         is already set.
8975
8976 2007-11-02  Eric Blake  <ebb9@byu.net>
8977
8978         Fix tests on cygwin.
8979         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
8980
8981 2007-11-01  Bruno Haible  <bruno@clisp.org>
8982
8983         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
8984         warning.
8985         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
8986         needed for POSIX compatibility.
8987
8988 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
8989
8990         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
8991         for compatibility with GNU.
8992
8993 2007-11-01  Bruno Haible  <bruno@clisp.org>
8994
8995         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
8996         (putenv): Renamed from rpl_putenv. Change argument type from
8997         'const char *' to 'char *'.
8998         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
8999         of defining putenv in config.h, just set REPLACE_PUTENV.
9000         * modules/putenv (Depends-on): Add stdlib.
9001         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
9002         (Include): Use <stdlib.h>.
9003         * lib/stdlib.in.h (putenv): New declaration.
9004         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
9005         REPLACE_PUTENV.
9006         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
9007         REPLACE_PUTENV.
9008         Needed for MacOS X 10.5.0.
9009         Reported by Peter O'Gorman <peter@pogma.com>.
9010
9011 2007-11-01  Jim Meyering  <meyering@redhat.com>
9012
9013         Treat an empty date string exactly like "0".
9014         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
9015         if the remaining date string (to be parsed) is empty, use "0".
9016         Reported by Mischa Molhoek and discussed in this thread:
9017         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
9018
9019 2007-10-31  Bruno Haible  <bruno@clisp.org>
9020
9021         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
9022         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
9023         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
9024         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
9025         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
9026         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
9027
9028 2007-10-31  Bruno Haible  <bruno@clisp.org>
9029
9030         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
9031         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
9032         (AC_TYPE_LONG_LONG_INT): Use it.
9033         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
9034         it as well.
9035         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
9036         to m4/longlong.m4.
9037         * modules/stdint (Files): Remove m4/ulonglong.m4.
9038         * modules/strtoull (Files): Use m4/longlong.m4 instead of
9039         m4/ulonglong.m4.
9040         * modules/strtoumax (Files): Likewise.
9041
9042 2007-10-30  Bruno Haible  <bruno@clisp.org>
9043
9044         * modules/xvasprintf-posix: New file.
9045         Suggested by Eric Blake.
9046
9047 2007-10-30  Bruno Haible  <bruno@clisp.org>
9048
9049         * modules/xprintf-posix-tests: New file.
9050         * tests/test-xprintf-posix.sh: New file.
9051         * tests/test-xprintf-posix.c: New file.
9052         * tests/test-xfprintf-posix.c: New file.
9053
9054         * modules/xprintf-posix: New file.
9055
9056 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9057
9058         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
9059         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
9060         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
9061
9062 2007-10-29  Bruno Haible  <bruno@clisp.org>
9063
9064         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
9065         contain the special marker '_cv_'.
9066         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
9067         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
9068         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
9069         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
9070         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
9071         Reported by Ralf Wildenhues.
9072
9073 2007-10-29  Bruno Haible  <bruno@clisp.org>
9074
9075         * gnulib-tool (func_import): When --lgpl is not specified, set
9076         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
9077         GPLv3.
9078         Reported by Simon Josefsson.
9079
9080 2007-10-28  Bruno Haible  <bruno@clisp.org>
9081
9082         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
9083         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
9084         HAVE_DECL_ISFINITE.
9085         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
9086         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
9087         HAVE_DECL_ISFINITE.
9088
9089 2007-10-28  Bruno Haible  <bruno@clisp.org>
9090
9091         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
9092         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
9093
9094 2007-10-28  Bruno Haible  <bruno@clisp.org>
9095
9096         Fix link errors with Sun C 5.0 on Solaris 10.
9097         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
9098         function is declared but not present in the compiler's libm.
9099         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
9100         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
9101         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
9102         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
9103         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
9104         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
9105         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
9106         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
9107         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
9108         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
9109         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
9110         HAVE_DECL_FLOORL.
9111
9112 2007-10-28  Bruno Haible  <bruno@clisp.org>
9113
9114         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
9115         gl_FUNC_FLOORL. Cache the result.
9116         (gl_FUNC_FLOORL): Use it.
9117         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
9118         gl_FUNC_CEILL. Cache the result.
9119         (gl_FUNC_CEILL): Use it.
9120
9121         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
9122         gl_FUNC_FLOOR. Cache the result.
9123         (gl_FUNC_FLOOR): Use it.
9124         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
9125         gl_FUNC_CEIL. Cache the result.
9126         (gl_FUNC_CEIL): Use it.
9127
9128         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
9129         gl_FUNC_FLOORF. Cache the result.
9130         (gl_FUNC_FLOORF): Use it.
9131         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
9132         gl_FUNC_CEILF. Cache the result.
9133         (gl_FUNC_CEILF): Use it.
9134
9135 2007-10-28  Bruno Haible  <bruno@clisp.org>
9136
9137         * gnulib-tool: Allow specifying the LGPL version number through
9138         --lgpl=2 or --lgpl=3.
9139         (func_usage): Document --lgpl with argument.
9140         Handle --lgpl=... arguments.
9141         (func_import): Recognize also gl_LGPL calls with an argument. When
9142         --lgpl=2 is used and the module's license is just LGPL, report an
9143         error. Set sed_transform_lib_file according to the lgpl variable. In
9144         the generated files, use --lgpl or gl_LGPL invocations with argument,
9145         if necessary.
9146         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
9147         an LGPv2+ license.
9148         * doc/gnulib-tool.texi (Modified imports): Update explanation of
9149         gl_LGPL macro.
9150
9151 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9152             Bruno Haible  <bruno@clisp.org>
9153
9154         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
9155         (u16_uctomb_aux): Likewise.
9156         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
9157         !HAVE_INLINE.
9158         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
9159
9160 2007-10-28  Bruno Haible  <bruno@clisp.org>
9161
9162         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
9163         Invoke AM_GETTEXT_OPTION if it exists.
9164         * modules/vasprintf: Likewise.
9165         * modules/verror: Likewise.
9166         * modules/xprintf: Likewise.
9167         * modules/xvasprintf: Likewise.
9168
9169 2007-10-27  Ben Pfaff  <blp@gnu.org>
9170
9171         * lib/math.in.h: Define isfinite macro and prototypes for
9172         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
9173         implementations.
9174         * m4/math_h.m4: New substitutions for isfinite module.
9175         * lib/isfinite.c: New file.
9176         * m4/isfinite.m4: New file.
9177         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
9178         * modules/isfinite: New file.
9179         * modules/isfinite-tests: New file.
9180         * tests/tests-isfinite.c: New file.
9181         * doc/functions/isfinite.texi: Mention isfinite module.
9182         * MODULES.html.sh: Mention new module.
9183
9184 2007-10-27  Ben Pfaff  <blp@gnu.org>
9185
9186         Ralf Wildenhues reported that Tru64 4.0D declares the round
9187         functions but does not have definitions.
9188         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
9189         cannot be found in any library, set the output variable to
9190         "missing" instead of "".
9191         * m4/round.m4: Also use our substitute if we cannot find round in
9192         any library, even if it is declared.
9193         * m4/roundf.m4: Likewise for roundf.
9194         * m4/roundl.m4: Likewise for roundl.
9195         * lib/math.in.h: Undefine roundf, round, roundl before defining
9196         their replacements, to allow for hypothetical systems where these
9197         may be defined as macros but not available in libraries.
9198
9199 2007-10-27  Bruno Haible  <bruno@clisp.org>
9200
9201         * doc/gnulib.texi: Invoke @firstparagraphindent.
9202         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
9203         changes in gnulib.
9204         (Source changes): New section.
9205
9206 2007-10-26  Bruno Haible  <bruno@clisp.org>
9207
9208         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
9209         borrowed from autoconf.
9210
9211 2007-10-26  Bruno Haible  <bruno@clisp.org>
9212
9213         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
9214         strerror returned the empty string. Needed on HP-UX 11.00.
9215
9216 2007-10-24  Micah Cowan  <micah@cowan.name>
9217
9218         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
9219         * build-aux/bootstrap: Remove support for now-unnecessary option,
9220         --cvs-user, and envvars CVS_USER, CVS_RSH.
9221
9222 2007-10-24  Jim Meyering  <meyering@redhat.com>
9223
9224         Avoid diagnostics from sha1sum when there is no cached checksum.
9225         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
9226         if the po.s1 file hasn't been created yet.
9227
9228         * build-aux/bootstrap: Sync from coreutils:
9229         2007-10-24  Jim Meyering  <meyering@redhat.com>
9230         Get gnulib from the git repository, not from an obsolete cvs one.
9231         * build-aux/bootstrap: Suggestion from Micah Cowan.
9232         2007-10-04  Jim Meyering  <jim@meyering.net>
9233         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
9234         (update_po_files): Work also when there are no .po files in po/.
9235
9236 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
9237
9238         * README: Append ".git" to git and cg examples.
9239         Problem reported by Benoit Sigoure.
9240
9241 2007-10-23  Micah Cowan  <micah@cowan.name>
9242
9243         * users.txt: Add wget.
9244
9245 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9246
9247         Fix linking of some unistdio tests on FreeBSD.
9248         * modules/unistdio/u16-vsnprintf-tests
9249         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
9250         * modules/unistdio/u16-vsprintf-tests
9251         (test_u16_vsnprintf1_LDADD): Likewise.
9252         * modules/unistdio/u32-vsnprintf-tests
9253         (test_u32_vsnprintf1_LDADD): Likewise.
9254         * modules/unistdio/u32-vsprintf-tests
9255         (test_u32_vsprintf1_LDADD): Likewise.
9256         * modules/unistdio/u8-vsnprintf-tests
9257         (test_u8_vsnprintf1_LDADD): Likewise.
9258         * modules/unistdio/u8-vsprintf-tests
9259         (test_u8_vsprintf1_LDADD): Likewise.
9260         * modules/unistdio/ulc-vsnprintf-tests
9261         (test_ulc_vsnprintf1_LDADD): Likewise.
9262         * modules/unistdio/ulc-vsprintf-tests
9263         (test_ulc_vsprintf1_LDADD): Likewise.
9264
9265         Fix linking of some uniconv tests on FreeBSD.
9266         * modules/uniconv/u16-conv-from-enc-tests
9267         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
9268         * modules/uniconv/u16-conv-to-enc-tests
9269         (test_u16_conv_to_enc_LDADD): Likewise.
9270         * modules/uniconv/u16-strconv-from-enc-tests
9271         (test_u16_strconv_from_enc_LDADD): Likewise.
9272         * modules/uniconv/u16-strconv-to-enc-tests
9273         (test_u16_strconv_to_enc_LDADD): Likewise.
9274         * modules/uniconv/u32-conv-from-enc-tests
9275         (test_u32_conv_from_enc_LDADD): Likewise.
9276         * modules/uniconv/u32-conv-to-enc-tests
9277         (test_u32_conv_to_enc_LDADD): Likewise.
9278         * modules/uniconv/u32-strconv-from-enc-tests
9279         (test_u32_strconv_from_enc_LDADD): Likewise.
9280         * modules/uniconv/u32-strconv-to-enc-tests
9281         (test_u32_strconv_to_enc_LDADD): Likewise.
9282         * modules/uniconv/u8-conv-from-enc-tests
9283         (test_u8_conv_from_enc_LDADD): Likewise.
9284         * modules/uniconv/u8-conv-to-enc-tests
9285         (test_u8_conv_to_enc_LDADD): Likewise.
9286         * modules/uniconv/u8-strconv-from-enc-tests
9287         (test_u8_strconv_from_enc_LDADD): Likewise.
9288         * modules/uniconv/u8-strconv-to-enc-tests
9289         (test_u8_strconv_to_enc_LDADD): Likewise.
9290
9291 2007-10-22  Bruno Haible  <bruno@clisp.org>
9292
9293         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
9294         size.
9295
9296 2007-10-22  Eric Blake  <ebb9@byu.net>
9297
9298         Tweak x*printf documentation.
9299         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
9300         variable name and comments.
9301         Suggested by Bruno Haible.
9302
9303 2007-10-22  Bruno Haible  <bruno@clisp.org>
9304
9305         * lib/acl.c (copy_acl): Fix file name in comment.
9306
9307 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
9308
9309         Fix Tru64 problem with stdbool.h.
9310         * lib/stdbool.in.h (false, true):
9311         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
9312         Don't declare as an enum in this situation; it runs afoul of Tru64.
9313         Problem reported by Steven M. Schweda in
9314         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
9315
9316 2007-10-22  Eric Blake  <ebb9@byu.net>
9317
9318         Also wrap vf?printf.
9319         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
9320         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
9321         (xvprintf, xvfprintf): New functions.
9322
9323 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9324
9325         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
9326         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
9327
9328         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
9329         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
9330
9331 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
9332
9333         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
9334         by Bruno Haible.
9335
9336 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9337
9338         * lib/getloadavg.c
9339         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
9340         Undef `sys' after including sys/table.h, for Tru64 4.0D.
9341
9342         * tests/test-i-ring.c: Work for C89.
9343
9344 2007-10-22  Bruno Haible  <bruno@clisp.org>
9345
9346         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
9347         -1u, in preprocessor expression, so that we don't test for the bug
9348         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
9349         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
9350
9351 2007-10-22  Eric Blake  <ebb9@byu.net>
9352
9353         * tests/test-yesno.sh: Silence stderr during test.
9354
9355 2007-10-22  Simon Josefsson  <simon@josefsson.org>
9356
9357         * modules/crypto/gc-camellia: New file.
9358
9359         * m4/gc-camellia.m4: New file.
9360
9361         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
9362
9363         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
9364
9365 2007-10-22  Simon Josefsson  <simon@josefsson.org>
9366
9367         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
9368         --help to stdout.  Reported by sms@antinode.org (Steven
9369         M. Schweda).
9370
9371 2007-10-22  Simon Josefsson  <simon@josefsson.org>
9372
9373         * users.txt: Fix link to libksba.
9374
9375 2007-10-21  Ben Pfaff  <blp@gnu.org>
9376
9377         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
9378         round.c roundf implementation that depends on floorf and ceilf to
9379         be tested unconditionally.
9380
9381 2007-10-21  Ben Pfaff  <blp@gnu.org>
9382
9383         * m4/check-libm-func.m4: Removed.
9384         * m4/check-math-lib.m4: New file.
9385         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
9386         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
9387         definition and lack of AC_LIBOBJ([roundf]).
9388         * m4/roundl.m4: Ditto, and similarly for roundl.
9389         * modules/round: Reference new m4 file.
9390         * modules/roundf: Ditto.
9391         * modules/roundl: Ditto.
9392         * tests/test-round2.c (main): Use ROUND instead of round.
9393         Bug report from Bruno Haible.
9394
9395 2007-10-21  Bruno Haible  <bruno@clisp.org>
9396
9397         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
9398         context.
9399
9400 2007-10-21  Bruno Haible  <bruno@clisp.org>
9401
9402         * tests/test-wcwidth.c (main): Allow negative result for some control
9403         characters.
9404
9405         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
9406         Needed on OSF/1 5.1.
9407
9408 2007-10-21  Bruno Haible  <bruno@clisp.org>
9409
9410         * tests/test-floorf1.c: Include isnanf.h.
9411         (main): Use isnanf() instead of isnan().
9412         * tests/test-ceilf1.c: Include isnanf.h.
9413         (main): Use isnanf() instead of isnan().
9414         * tests/test-truncf1.c: Include isnanf.h.
9415         (main): Use isnanf() instead of isnan().
9416         * tests/test-roundf1.c: Include isnanf.h.
9417         (main): Use isnanf() instead of isnan().
9418
9419 2007-10-21  Eric Blake  <ebb9@byu.net>
9420
9421         * users.txt: Update URL for m4.
9422
9423 2007-10-21  Bruno Haible  <bruno@clisp.org>
9424
9425         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
9426
9427 2007-10-21  Bruno Haible  <bruno@clisp.org>
9428
9429         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
9430         Git's management files if the CVS files are not present.
9431
9432 2007-10-20  Bruno Haible  <bruno@clisp.org>
9433
9434         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
9435         gcc-3.4.x.
9436
9437 2007-10-20  Ben Pfaff  <blp@gnu.org>
9438
9439         * lib/math.in.h: Declare round, roundf, roundl if we are providing
9440         implementations.
9441         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
9442         * lib/round.c: New file.
9443         * lib/roundf.c: New file.
9444         * lib/roundl.c: New file.
9445         * m4/round.m4: New file.
9446         * m4/roundf.m4: New file.
9447         * m4/roundl.m4: New file.
9448         * m4/check-libm-func-m4: New file.
9449         * modules/math: Replace round, roundf, roundl related @VARS@ in
9450         math.in.h.
9451         * modules/round: New file.
9452         * modules/round-tests: New file.
9453         * modules/roundf: New file.
9454         * modules/roundf-tests: New file.
9455         * modules/roundl: New file.
9456         * modules/roundl-tests: New file.
9457         * tests/test-round1.c: New file.
9458         * tests/test-round2.c: New file.
9459         * tests/test-roundf1.c: New file.
9460         * tests/test-roundf2.c: New file.
9461         * tests/test-roundl.c: New file.
9462         * doc/functions/round.texi: Mention round module.
9463         * doc/functions/roundf.texi: Mention roundf module.
9464         * doc/functions/roundl.texi: Mention roundl module.
9465         * MODULES.html.sh: Mention new modules.
9466         Thanks to Bruno Haible for suggestions.
9467
9468 2007-10-20  Jim Meyering  <meyering@redhat.com>
9469
9470         * lib/xprintf.c: Include <config.h> unconditionally.
9471
9472         Change xprintf's license to GPL.
9473         * modules/xprintf (License): s/LGPL/GPL/, since this module
9474         depends on modules (exit and exitfail) which are GPL.
9475         Suggestion from Bruno Haible.
9476
9477         xprintf fixes.
9478         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
9479         Use a clearer diagnostic.
9480         Patch from Bruno Haible.
9481
9482 2007-10-20  Bruno Haible  <bruno@clisp.org>
9483
9484         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
9485         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
9486         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
9487
9488 2007-10-20  Bruno Haible  <bruno@clisp.org>
9489
9490         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
9491         precision in the comparison result > x - 1 or similar.
9492         * tests/test-ceilf2.c (correct_result_p): Likewise.
9493         * tests/test-truncf2.c (correct_result_p): Likewise.
9494         * tests/test-trunc2.c (correct_result_p): Likewise.
9495         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
9496
9497 2007-10-20  Bruno Haible  <bruno@clisp.org>
9498
9499         * modules/ceil: New file.
9500         * m4/ceil.m4: New file.
9501         * doc/functions/ceil.texi: Mention the 'ceil' module.
9502
9503 2007-10-20  Bruno Haible  <bruno@clisp.org>
9504
9505         * modules/floor: New file.
9506         * m4/floor.m4: New file.
9507         * doc/functions/floor.texi: Mention the 'floor' module.
9508
9509 2007-10-20  Bruno Haible  <bruno@clisp.org>
9510
9511         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
9512         of %a.
9513         * modules/floorf-tests (Depends-on): Likewise.
9514         * modules/truncf-tests (Depends-on): Likewise.
9515         * modules/trunc-tests (Depends-on): Likewise.
9516         Reported by Ben Pfaff.
9517
9518 2007-10-19  Jim Meyering  <meyering@redhat.com>
9519
9520         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
9521         Don't bother testing specific errno values.  Just test ferror.
9522
9523         New module: xprintf
9524         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
9525
9526 2007-10-19  Bruno Haible  <bruno@clisp.org>
9527
9528         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
9529         syntax.
9530         * modules/javaexec (Makefile.am): Likewise.
9531         * modules/relocatable-prog (Makefile.am): Likewise.
9532         Suggested by Jim Meyering.
9533
9534 2007-10-18  Bruno Haible  <bruno@clisp.org>
9535
9536         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
9537         Reported by Jim Meyering.
9538
9539 2007-10-18  Eric Blake  <ebb9@byu.net>
9540
9541         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
9542
9543 2007-10-18  Bruno Haible  <bruno@clisp.org>
9544
9545         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
9546         the format string into writable memory. Needed in Fortify conditions.
9547
9548 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
9549             Bruno Haible  <bruno@clisp.org>
9550
9551         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
9552         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
9553         * modules/trim (Depends-on): Add mbchar.
9554         (configure.ac): Add gl_FUNC_MBRTOWC.
9555         (Makefile.am): Augment lib_SOURCES.
9556
9557 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
9558
9559         Modify glob.c to use fstatat and dirfd, to simplify it.
9560         Suggested by Eric Blake.
9561         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
9562         Don't include <stdbool.h>; not used.
9563         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
9564         (link_exists_p): Simplify implementation, since we can now assume
9565         dirfd and fstatat.
9566         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
9567
9568 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9569
9570         * gnulib-tool (func_get_dependencies): Fix sed script to
9571         match only tests.
9572
9573 2007-10-17  Bruno Haible  <bruno@clisp.org>
9574
9575         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
9576         allow locale names without encoding suffix.
9577         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
9578         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
9579
9580 2007-10-16  Bruno Haible  <bruno@clisp.org>
9581
9582         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
9583         * lib/getgroups.c (getgroups): Likewise.
9584         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
9585
9586 2007-10-16  Bruno Haible  <bruno@clisp.org>
9587
9588         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
9589         * modules/malloc-posix (License): Likewise.
9590         * modules/realloc-posix (License): Likewise.
9591         * modules/calloc-posix (License): Likewise.
9592         * modules/intprops (License): Change from GPL to LGPL, with
9593         Paul Eggert's approval.
9594
9595 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
9596
9597         Merge glibc changes into lib/glob.c.
9598
9599         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
9600         2007-10-15 04:59:03 UTC.  Here are the changes:
9601
9602         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
9603
9604         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
9605
9606         * lib/glob.c: Add some branch prediction throughout.
9607
9608         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
9609
9610         [BZ #5103]
9611         * lib/glob.c (glob): Recognize patterns starting \/.
9612
9613         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
9614
9615         [BZ #3996]
9616         * lib/glob.c (attribute_hidden): Define if not defined.
9617         (glob): Unescape dirname, filename or username when needed and not
9618         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
9619         is NULL.  Handle unescaped [ in pattern without closing ].
9620         Don't pass GLOB_CHECK down to recursive glob for directories.
9621         (__glob_pattern_type): New function.
9622         (__glob_pattern_p): Implement using __glob_pattern_type.
9623         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
9624         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
9625         Remove unreachable code.
9626
9627         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
9628
9629         * lib/glob.c (glob_in_dir): Add some comments and asserts to
9630         explain why there are no leaks.
9631
9632         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
9633
9634         [BZ #3253]
9635         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
9636         time, rather allocate increasingly bigger arrays of pointers, if
9637         possible with alloca, if too large with malloc.
9638
9639 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
9640
9641         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
9642         Problem reported by H.Merijn Brand in
9643         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
9644         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
9645         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
9646
9647 2007-10-15  Bruno Haible  <bruno@clisp.org>
9648
9649         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
9650         with explicit rpl_ prefix.
9651         * lib/fopen.c (fopen): Likewise.
9652         * lib/freopen.c (freopen): Likewise.
9653         * lib/iconv.c (iconv): Likewise.
9654         * lib/iconv_close.c (iconv_close): Likewise.
9655
9656 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9657
9658         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
9659
9660 2007-10-15  Bruno Haible  <bruno@clisp.org>
9661
9662         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
9663         <stddef.h> instead of <stdlib.h> since we only need NULL.
9664         Reported by Ben Pfaff <blp@cs.stanford.edu>.
9665
9666 2007-10-15  Bruno Haible  <bruno@clisp.org>
9667
9668         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
9669         Replace paragraph talking about LIBOBJS.
9670         Reported by Colin Watson <cjwatson@debian.org>.
9671
9672 2007-10-15  Bruno Haible  <bruno@clisp.org>
9673
9674         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
9675         <stdlib.h> before using NULL.
9676
9677 2007-10-15  Simon Josefsson  <simon@josefsson.org>
9678
9679         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
9680         Reported by Albert Chin <china@thewrittenword.com>.
9681
9682 2007-10-14  Bruno Haible  <bruno@clisp.org>
9683
9684         * modules/iconv_open-utf-tests: New file.
9685         * tests/test-iconv-utf.c: New file.
9686
9687         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
9688         * modules/iconv_open-utf: New file.
9689         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
9690         (iconv, iconv_close): New declarations.
9691         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
9692         be defined.
9693         (iconv_open): Add special handling of conversion between UTF-8 and
9694         UTF-{16,32}{BE,LE}.
9695         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
9696         * lib/iconv_close.c: New file.
9697         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
9698         gl_FUNC_ICONV_OPEN.
9699         (gl_FUNC_ICONV_OPEN): Use it.
9700         (gl_FUNC_ICONV_OPEN_UTF): New macro.
9701         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
9702         and REPLACE_ICONV_UTF.
9703         * modules/iconv_open (Depends-on): Add c-strcase.
9704         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
9705         ICONV_CONST.
9706         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
9707
9708 2007-10-13  Albert Chin  <china@thewrittenword.com>
9709             Bruno Haible  <bruno@clisp.org>
9710
9711         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
9712         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
9713
9714 2007-10-13  Bruno Haible  <bruno@clisp.org>
9715
9716         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
9717         defined, use the ISO C99 inline semantics.
9718         * lib/argp.h (ARGP_EI): Likewise.
9719
9720 2007-10-13  Bruno Haible  <bruno@clisp.org>
9721
9722         Handle 'inline' change in gcc 4.3.0.
9723         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
9724         argp_fmtstream_write, argp_fmtstream_set_lmargin,
9725         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
9726         argp_fmtstream_point): Disable 'extern' declaration if the function
9727         definition is going to be provided inline.
9728         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
9729         semantics, not the ISO C99 inline semantics.
9730         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
9731         'extern' declaration if the function definition is going to be provided
9732         inline.
9733         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
9734         the GNU C inline semantics, not the ISO C99 inline semantics. With
9735         GCC 4.2, avoid a warning.
9736
9737 2007-10-13  Bruno Haible  <bruno@clisp.org>
9738
9739         * lib/freading.h (freading): Enable the use of __freading for
9740         glibc >= 2.7.
9741         * lib/freading.c (freading): Likewise.
9742
9743 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
9744
9745         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
9746         "warning: C99 inline functions are not supported; using GNU89".
9747
9748 2007-10-12  Bruno Haible  <bruno@clisp.org>
9749
9750         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
9751         of 2.
9752         * tests/test-ceilf2.c: New file.
9753         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
9754
9755         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
9756         * modules/ceilf-tests: Update.
9757
9758 2007-10-12  Bruno Haible  <bruno@clisp.org>
9759
9760         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
9761         of 2.
9762         * tests/test-floorf2.c: New file.
9763         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
9764
9765         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
9766         * modules/floorf-tests: Update.
9767
9768 2007-10-12  Bruno Haible  <bruno@clisp.org>
9769
9770         * tests/test-trunc2.c: New file.
9771         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
9772
9773         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
9774         * modules/trunc-tests: Update.
9775
9776 2007-10-12  Bruno Haible  <bruno@clisp.org>
9777
9778         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
9779         of 2.
9780         * tests/test-truncf2.c: New file.
9781         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
9782
9783         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
9784         * modules/truncf-tests: Update.
9785
9786 2007-10-11  Eric Blake  <ebb9@byu.net>
9787
9788         Don't claim strerror is broken on Interix.
9789         * doc/functions/strerror.texi (strerror): Known broken systems are
9790         now Solaris 8, and not Interix.
9791         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
9792         Interix on cross-compile.
9793         Reported by Martin Koeppe in
9794         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
9795
9796 2007-10-11  Bruno Haible  <bruno@clisp.org>
9797
9798         * modules/i-ring-tests: New file.
9799         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
9800         instead of assert.
9801
9802 2007-10-11  Bruno Haible  <bruno@clisp.org>
9803
9804         * modules/filenamecat-tests: New file.
9805         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
9806         * lib/filenamecat.c: Remove test code.
9807
9808 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
9809
9810         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
9811
9812         * lib/strerror.c: Include <string.h> always, to test interface,
9813         and to remove the need for the dummy.
9814         Include intprops.h to compute width instead of doing it ourselves
9815         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
9816         (strerror): Define it to return NULL if there's no system strerror.
9817         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
9818         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
9819         ancient pre-strerror Unix systems well any more.  Saying "unknown
9820         system error" is enough.
9821         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
9822         simpler strerror.c implementation.
9823         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
9824         Simplify the tests to reflect the simpler strerror implementation.
9825         * modules/strerror (Depends-on): Add intprops.
9826
9827 2007-10-09  Eric Blake  <ebb9@byu.net>
9828
9829         Silence test-fpending.
9830         * modules/fpending-tests (Files): Add wrapper script.
9831         * tests/test-fpending.sh: New file.
9832
9833 2007-10-09  Bruno Haible  <bruno@clisp.org>
9834
9835         * MODULES.html.sh (func_module): Don't create a hyperlink for
9836         function names like 'printf_frexp'.
9837         (Misc): Add crc, memxor.
9838         (Characteristics of floating types): New section.
9839         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
9840         isnanf-nolibm, signbit, trunc, truncf, truncl.
9841         (Enhancements for ISO C 99 functions): New subsection Input/output.
9842         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
9843         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
9844         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
9845         (Compatibility checks for POSIX:2001 functions): Add clock-time.
9846         (Enhancements for POSIX:2001 functions): Add chdir-long.
9847         (File system functions): Add areadlink, chdir-safer, read-file.
9848         Remove cycle-check.
9849         (File system as inode set): New section.
9850         (Date and time): Add gethrxtime.
9851         (Multithreading): Add openmp.
9852         (Internationalization functions): Add localename.
9853         (Unicode string functions): Add unistr/u*-mbsnlen.
9854         (Support for maintaining and releasing projects): Add git-version-gen.
9855         (Lone files): Remove directories.
9856
9857 2007-10-08  Ben Pfaff  <blp@gnu.org>
9858
9859         * lib/xmalloca.h: Fix typo in comment.
9860
9861 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
9862
9863         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
9864         when avoiding problems with integer overflow.  Use a portable test
9865         instead.
9866
9867 2007-10-08  Simon Josefsson  <simon@josefsson.org>
9868
9869         * modules/dummy (License): Change to LGPLv2+.
9870         * modules/float (License): Likewise
9871         * modules/realloc (License): Likewise
9872         * modules/stdlib (License): Likewise
9873
9874 2007-10-07  Bruno Haible  <bruno@clisp.org>
9875
9876         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
9877         * floor.c (TWO_MANT_DIG): Likewise.
9878         * ceil.c (TWO_MANT_DIG): Likewise.
9879         Reported by Ben Pfaff.
9880
9881 2007-10-07  Bruno Haible  <bruno@clisp.org>
9882
9883         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
9884         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
9885         * lib/frexp.c (FUNC): Likewise.
9886         * lib/printf-frexp.h (printf_frexp): Likewise.
9887         * lib/printf-frexpl.h (printf_frexpl): Likewise.
9888         * lib/printf-frexp.c (FUNC): Likewise.
9889         Suggested by Jim Meyering.
9890
9891 2007-10-07  Jim Meyering  <meyering@redhat.com>
9892
9893         Make xnanosleep's integer overflow test more robust.
9894         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
9895         so that gcc-4.3.0 doesn't optimize away this test for overflow.
9896
9897 2007-10-07  Bruno Haible  <bruno@clisp.org>
9898
9899         * NEWS: Mention the license change.
9900
9901         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
9902         abbreviations in the modules files.
9903
9904         Change copyright notice from GPLv2+ to GPLv3+.
9905         * README: Change copyright notice.
9906         * MODULES.html.sh: Likewise.
9907         * build-aux/bootstrap.conf: Likewise.
9908         * build-aux/config.libpath: Likewise.
9909         * build-aux/csharpcomp.sh.in: Likewise.
9910         * build-aux/csharpexec.sh.in: Likewise.
9911         * build-aux/install-reloc: Likewise.
9912         * build-aux/javacomp.sh.in: Likewise.
9913         * build-aux/javaexec.sh.in: Likewise.
9914         * build-aux/ldd.sh.in: Likewise.
9915         * build-aux/reloc-ldflags: Likewise.
9916         * build-aux/relocatable.sh.in: Likewise.
9917         * build-aux/x-to-1.in: Likewise.
9918         * check-module: Likewise.
9919         * config/srclistvars.sh: Likewise.
9920         * gnulib-tool: Likewise.
9921         * lib/acl-internal.h: Likewise.
9922         * lib/acl.c: Likewise.
9923         * lib/acl.h: Likewise.
9924         * lib/acl_entries.c: Likewise.
9925         * lib/areadlink-with-size.c: Likewise.
9926         * lib/areadlink.c: Likewise.
9927         * lib/areadlink.h: Likewise.
9928         * lib/argmatch.c: Likewise.
9929         * lib/argmatch.h: Likewise.
9930         * lib/argp-ba.c: Likewise.
9931         * lib/argp-eexst.c: Likewise.
9932         * lib/argp-fmtstream.c: Likewise.
9933         * lib/argp-fmtstream.h: Likewise.
9934         * lib/argp-fs-xinl.c: Likewise.
9935         * lib/argp-help.c: Likewise.
9936         * lib/argp-namefrob.h: Likewise.
9937         * lib/argp-parse.c: Likewise.
9938         * lib/argp-pin.c: Likewise.
9939         * lib/argp-pv.c: Likewise.
9940         * lib/argp-pvh.c: Likewise.
9941         * lib/argp-xinl.c: Likewise.
9942         * lib/argp.h: Likewise.
9943         * lib/at-func.c: Likewise.
9944         * lib/atanl.c: Likewise.
9945         * lib/backupfile.c: Likewise.
9946         * lib/backupfile.h: Likewise.
9947         * lib/basename.c: Likewise.
9948         * lib/binary-io.h: Likewise.
9949         * lib/byteswap.in.h: Likewise.
9950         * lib/c-stack.c: Likewise.
9951         * lib/c-stack.h: Likewise.
9952         * lib/c-strcasestr.c: Likewise.
9953         * lib/c-strcasestr.h: Likewise.
9954         * lib/c-strstr.c: Likewise.
9955         * lib/c-strstr.h: Likewise.
9956         * lib/c-strtod.c: Likewise.
9957         * lib/calloc.c: Likewise.
9958         * lib/canon-host.c: Likewise.
9959         * lib/canon-host.h: Likewise.
9960         * lib/canonicalize-lgpl.c: Likewise.
9961         * lib/canonicalize.c: Likewise.
9962         * lib/canonicalize.h: Likewise.
9963         * lib/ceil.c: Likewise.
9964         * lib/ceilf.c: Likewise.
9965         * lib/ceill.c: Likewise.
9966         * lib/chdir-long.c: Likewise.
9967         * lib/chdir-long.h: Likewise.
9968         * lib/chdir-safer.c: Likewise.
9969         * lib/chdir-safer.h: Likewise.
9970         * lib/chown.c: Likewise.
9971         * lib/classpath.c: Likewise.
9972         * lib/classpath.h: Likewise.
9973         * lib/clean-temp.c: Likewise.
9974         * lib/clean-temp.h: Likewise.
9975         * lib/cloexec.c: Likewise.
9976         * lib/close-stream.c: Likewise.
9977         * lib/closein.c: Likewise.
9978         * lib/closein.h: Likewise.
9979         * lib/closeout.c: Likewise.
9980         * lib/closeout.h: Likewise.
9981         * lib/concat-filename.c: Likewise.
9982         * lib/copy-file.c: Likewise.
9983         * lib/copy-file.h: Likewise.
9984         * lib/count-one-bits.h: Likewise.
9985         * lib/crc.c: Likewise.
9986         * lib/crc.h: Likewise.
9987         * lib/creat-safer.c: Likewise.
9988         * lib/csharpcomp.c: Likewise.
9989         * lib/csharpcomp.h: Likewise.
9990         * lib/csharpexec.c: Likewise.
9991         * lib/csharpexec.h: Likewise.
9992         * lib/cycle-check.c: Likewise.
9993         * lib/cycle-check.h: Likewise.
9994         * lib/diacrit.c: Likewise.
9995         * lib/diacrit.h: Likewise.
9996         * lib/diffseq.h: Likewise.
9997         * lib/dirchownmod.c: Likewise.
9998         * lib/dirent.in.h: Likewise.
9999         * lib/dirfd.c: Likewise.
10000         * lib/dirfd.h: Likewise.
10001         * lib/dirname.c: Likewise.
10002         * lib/dirname.h: Likewise.
10003         * lib/dummy.c: Likewise.
10004         * lib/dup-safer.c: Likewise.
10005         * lib/dup2.c: Likewise.
10006         * lib/eealloc.h: Likewise.
10007         * lib/error.c: Likewise.
10008         * lib/error.h: Likewise.
10009         * lib/euidaccess.c: Likewise.
10010         * lib/exclude.c: Likewise.
10011         * lib/exclude.h: Likewise.
10012         * lib/execute.c: Likewise.
10013         * lib/execute.h: Likewise.
10014         * lib/exitfail.c: Likewise.
10015         * lib/exitfail.h: Likewise.
10016         * lib/expl.c: Likewise.
10017         * lib/fatal-signal.c: Likewise.
10018         * lib/fatal-signal.h: Likewise.
10019         * lib/fbufmode.c: Likewise.
10020         * lib/fbufmode.h: Likewise.
10021         * lib/fchdir.c: Likewise.
10022         * lib/fchmodat.c: Likewise.
10023         * lib/fchownat.c: Likewise.
10024         * lib/fcntl--.h: Likewise.
10025         * lib/fcntl-safer.h: Likewise.
10026         * lib/fcntl.in.h: Likewise.
10027         * lib/fd-safer.c: Likewise.
10028         * lib/fflush.c: Likewise.
10029         * lib/file-has-acl.c: Likewise.
10030         * lib/file-set.c: Likewise.
10031         * lib/file-type.c: Likewise.
10032         * lib/file-type.h: Likewise.
10033         * lib/fileblocks.c: Likewise.
10034         * lib/filemode.c: Likewise.
10035         * lib/filemode.h: Likewise.
10036         * lib/filename.h: Likewise.
10037         * lib/filenamecat.c: Likewise.
10038         * lib/filenamecat.h: Likewise.
10039         * lib/findprog.c: Likewise.
10040         * lib/findprog.h: Likewise.
10041         * lib/float.in.h: Likewise.
10042         * lib/floor.c: Likewise.
10043         * lib/floorf.c: Likewise.
10044         * lib/floorl.c: Likewise.
10045         * lib/fopen-safer.c: Likewise.
10046         * lib/fopen.c: Likewise.
10047         * lib/fpending.c: Likewise.
10048         * lib/fpending.h: Likewise.
10049         * lib/fprintf.c: Likewise.
10050         * lib/fprintftime.h: Likewise.
10051         * lib/fpucw.h: Likewise.
10052         * lib/fpurge.c: Likewise.
10053         * lib/fpurge.h: Likewise.
10054         * lib/freadable.c: Likewise.
10055         * lib/freadable.h: Likewise.
10056         * lib/freadahead.c: Likewise.
10057         * lib/freadahead.h: Likewise.
10058         * lib/freading.c: Likewise.
10059         * lib/freading.h: Likewise.
10060         * lib/free.c: Likewise.
10061         * lib/freopen.c: Likewise.
10062         * lib/frexp.c: Likewise.
10063         * lib/frexpl.c: Likewise.
10064         * lib/fseek.c: Likewise.
10065         * lib/fseterr.c: Likewise.
10066         * lib/fseterr.h: Likewise.
10067         * lib/fstatat.c: Likewise.
10068         * lib/fstrcmp.c: Likewise.
10069         * lib/fstrcmp.h: Likewise.
10070         * lib/fsusage.c: Likewise.
10071         * lib/fsusage.h: Likewise.
10072         * lib/ftell.c: Likewise.
10073         * lib/ftello.c: Likewise.
10074         * lib/fts-cycle.c: Likewise.
10075         * lib/fts.c: Likewise.
10076         * lib/fts_.h: Likewise.
10077         * lib/full-read.c: Likewise.
10078         * lib/full-read.h: Likewise.
10079         * lib/full-write.c: Likewise.
10080         * lib/full-write.h: Likewise.
10081         * lib/fwritable.c: Likewise.
10082         * lib/fwritable.h: Likewise.
10083         * lib/fwriteerror.c: Likewise.
10084         * lib/fwriteerror.h: Likewise.
10085         * lib/fwriting.c: Likewise.
10086         * lib/fwriting.h: Likewise.
10087         * lib/gcd.c: Likewise.
10088         * lib/gcd.h: Likewise.
10089         * lib/getcwd.c: Likewise.
10090         * lib/getdate.h: Likewise.
10091         * lib/getdate.y: Likewise.
10092         * lib/getdomainname.c: Likewise.
10093         * lib/getdomainname.h: Likewise.
10094         * lib/getgroups.c: Likewise.
10095         * lib/gethostname.c: Likewise.
10096         * lib/gethrxtime.c: Likewise.
10097         * lib/gethrxtime.h: Likewise.
10098         * lib/getloadavg.c: Likewise.
10099         * lib/getndelim2.c: Likewise.
10100         * lib/getndelim2.h: Likewise.
10101         * lib/getnline.c: Likewise.
10102         * lib/getnline.h: Likewise.
10103         * lib/getopt.c: Likewise.
10104         * lib/getopt.in.h: Likewise.
10105         * lib/getopt1.c: Likewise.
10106         * lib/getopt_int.h: Likewise.
10107         * lib/getpagesize.h: Likewise.
10108         * lib/getsubopt.c: Likewise.
10109         * lib/gettime.c: Likewise.
10110         * lib/getugroups.c: Likewise.
10111         * lib/getugroups.h: Likewise.
10112         * lib/getusershell.c: Likewise.
10113         * lib/gl_anyavltree_list1.h: Likewise.
10114         * lib/gl_anyavltree_list2.h: Likewise.
10115         * lib/gl_anyhash_list1.h: Likewise.
10116         * lib/gl_anyhash_list2.h: Likewise.
10117         * lib/gl_anylinked_list1.h: Likewise.
10118         * lib/gl_anylinked_list2.h: Likewise.
10119         * lib/gl_anyrbtree_list1.h: Likewise.
10120         * lib/gl_anyrbtree_list2.h: Likewise.
10121         * lib/gl_anytree_list1.h: Likewise.
10122         * lib/gl_anytree_list2.h: Likewise.
10123         * lib/gl_anytree_oset.h: Likewise.
10124         * lib/gl_anytreehash_list1.h: Likewise.
10125         * lib/gl_anytreehash_list2.h: Likewise.
10126         * lib/gl_array_list.c: Likewise.
10127         * lib/gl_array_list.h: Likewise.
10128         * lib/gl_array_oset.c: Likewise.
10129         * lib/gl_array_oset.h: Likewise.
10130         * lib/gl_avltree_list.c: Likewise.
10131         * lib/gl_avltree_list.h: Likewise.
10132         * lib/gl_avltree_oset.c: Likewise.
10133         * lib/gl_avltree_oset.h: Likewise.
10134         * lib/gl_avltreehash_list.c: Likewise.
10135         * lib/gl_avltreehash_list.h: Likewise.
10136         * lib/gl_carray_list.c: Likewise.
10137         * lib/gl_carray_list.h: Likewise.
10138         * lib/gl_linked_list.c: Likewise.
10139         * lib/gl_linked_list.h: Likewise.
10140         * lib/gl_linkedhash_list.c: Likewise.
10141         * lib/gl_linkedhash_list.h: Likewise.
10142         * lib/gl_list.c: Likewise.
10143         * lib/gl_list.h: Likewise.
10144         * lib/gl_oset.c: Likewise.
10145         * lib/gl_oset.h: Likewise.
10146         * lib/gl_rbtree_list.c: Likewise.
10147         * lib/gl_rbtree_list.h: Likewise.
10148         * lib/gl_rbtree_oset.c: Likewise.
10149         * lib/gl_rbtree_oset.h: Likewise.
10150         * lib/gl_rbtreehash_list.c: Likewise.
10151         * lib/gl_rbtreehash_list.h: Likewise.
10152         * lib/gl_sublist.c: Likewise.
10153         * lib/gl_sublist.h: Likewise.
10154         * lib/group-member.c: Likewise.
10155         * lib/group-member.h: Likewise.
10156         * lib/hard-locale.c: Likewise.
10157         * lib/hard-locale.h: Likewise.
10158         * lib/hash-pjw.c: Likewise.
10159         * lib/hash-pjw.h: Likewise.
10160         * lib/hash-triple.c: Likewise.
10161         * lib/hash.c: Likewise.
10162         * lib/hash.h: Likewise.
10163         * lib/human.c: Likewise.
10164         * lib/human.h: Likewise.
10165         * lib/i-ring.c: Likewise.
10166         * lib/i-ring.h: Likewise.
10167         * lib/idcache.c: Likewise.
10168         * lib/imaxabs.c: Likewise.
10169         * lib/imaxdiv.c: Likewise.
10170         * lib/inet_pton.c: Likewise.
10171         * lib/inet_pton.h: Likewise.
10172         * lib/intprops.h: Likewise.
10173         * lib/inttostr.c: Likewise.
10174         * lib/inttostr.h: Likewise.
10175         * lib/inttypes.in.h: Likewise.
10176         * lib/isapipe.c: Likewise.
10177         * lib/isdir.c: Likewise.
10178         * lib/isnan.c: Likewise.
10179         * lib/isnan.h: Likewise.
10180         * lib/isnanf.c: Likewise.
10181         * lib/isnanf.h: Likewise.
10182         * lib/isnanl-nolibm.h: Likewise.
10183         * lib/isnanl.c: Likewise.
10184         * lib/isnanl.h: Likewise.
10185         * lib/javacomp.c: Likewise.
10186         * lib/javacomp.h: Likewise.
10187         * lib/javaexec.c: Likewise.
10188         * lib/javaexec.h: Likewise.
10189         * lib/javaversion.c: Likewise.
10190         * lib/javaversion.h: Likewise.
10191         * lib/javaversion.java: Likewise.
10192         * lib/lbrkprop.h: Likewise.
10193         * lib/lchmod.h: Likewise.
10194         * lib/lchown.c: Likewise.
10195         * lib/ldexpl.c: Likewise.
10196         * lib/linebreak.c: Likewise.
10197         * lib/linebreak.h: Likewise.
10198         * lib/linebuffer.c: Likewise.
10199         * lib/linebuffer.h: Likewise.
10200         * lib/locale.in.h: Likewise.
10201         * lib/logl.c: Likewise.
10202         * lib/long-options.c: Likewise.
10203         * lib/long-options.h: Likewise.
10204         * lib/lstat.c: Likewise.
10205         * lib/lstat.h: Likewise.
10206         * lib/math.in.h: Likewise.
10207         * lib/mbchar.c: Likewise.
10208         * lib/mbchar.h: Likewise.
10209         * lib/mbfile.h: Likewise.
10210         * lib/mbiter.h: Likewise.
10211         * lib/mbscasecmp.c: Likewise.
10212         * lib/mbscasestr.c: Likewise.
10213         * lib/mbschr.c: Likewise.
10214         * lib/mbscspn.c: Likewise.
10215         * lib/mbslen.c: Likewise.
10216         * lib/mbsncasecmp.c: Likewise.
10217         * lib/mbsnlen.c: Likewise.
10218         * lib/mbspbrk.c: Likewise.
10219         * lib/mbspcasecmp.c: Likewise.
10220         * lib/mbsrchr.c: Likewise.
10221         * lib/mbssep.c: Likewise.
10222         * lib/mbsspn.c: Likewise.
10223         * lib/mbsstr.c: Likewise.
10224         * lib/mbstok_r.c: Likewise.
10225         * lib/mbswidth.c: Likewise.
10226         * lib/mbswidth.h: Likewise.
10227         * lib/mbuiter.h: Likewise.
10228         * lib/memcasecmp.c: Likewise.
10229         * lib/memcasecmp.h: Likewise.
10230         * lib/memchr.c: Likewise.
10231         * lib/memcmp.c: Likewise.
10232         * lib/memcoll.c: Likewise.
10233         * lib/memcoll.h: Likewise.
10234         * lib/memcpy.c: Likewise.
10235         * lib/memrchr.c: Likewise.
10236         * lib/mkancesdirs.c: Likewise.
10237         * lib/mkdir-p.c: Likewise.
10238         * lib/mkdir-p.h: Likewise.
10239         * lib/mkdir.c: Likewise.
10240         * lib/mkdirat.c: Likewise.
10241         * lib/mkdtemp.c: Likewise.
10242         * lib/mkstemp-safer.c: Likewise.
10243         * lib/mkstemp.c: Likewise.
10244         * lib/modechange.c: Likewise.
10245         * lib/modechange.h: Likewise.
10246         * lib/mountlist.c: Likewise.
10247         * lib/mountlist.h: Likewise.
10248         * lib/mpsort.c: Likewise.
10249         * lib/nanosleep.c: Likewise.
10250         * lib/obstack.c: Likewise.
10251         * lib/obstack.h: Likewise.
10252         * lib/open-safer.c: Likewise.
10253         * lib/open.c: Likewise.
10254         * lib/openat-die.c: Likewise.
10255         * lib/openat-priv.h: Likewise.
10256         * lib/openat-proc.c: Likewise.
10257         * lib/openat.c: Likewise.
10258         * lib/openat.h: Likewise.
10259         * lib/pagealign_alloc.c: Likewise.
10260         * lib/pagealign_alloc.h: Likewise.
10261         * lib/physmem.c: Likewise.
10262         * lib/physmem.h: Likewise.
10263         * lib/pipe-safer.c: Likewise.
10264         * lib/pipe.c: Likewise.
10265         * lib/pipe.h: Likewise.
10266         * lib/posixtm.c: Likewise.
10267         * lib/posixtm.h: Likewise.
10268         * lib/posixver.c: Likewise.
10269         * lib/printf-frexp.c: Likewise.
10270         * lib/printf-frexp.h: Likewise.
10271         * lib/printf-frexpl.c: Likewise.
10272         * lib/printf-frexpl.h: Likewise.
10273         * lib/printf.c: Likewise.
10274         * lib/progname.c: Likewise.
10275         * lib/progname.h: Likewise.
10276         * lib/progreloc.c: Likewise.
10277         * lib/putenv.c: Likewise.
10278         * lib/quote.c: Likewise.
10279         * lib/quote.h: Likewise.
10280         * lib/quotearg.c: Likewise.
10281         * lib/quotearg.h: Likewise.
10282         * lib/raise.c: Likewise.
10283         * lib/readline.c: Likewise.
10284         * lib/readline.h: Likewise.
10285         * lib/readlink.c: Likewise.
10286         * lib/readtokens.c: Likewise.
10287         * lib/readtokens.h: Likewise.
10288         * lib/readtokens0.c: Likewise.
10289         * lib/readtokens0.h: Likewise.
10290         * lib/readutmp.c: Likewise.
10291         * lib/readutmp.h: Likewise.
10292         * lib/realloc.c: Likewise.
10293         * lib/relocwrapper.c: Likewise.
10294         * lib/rename-dest-slash.c: Likewise.
10295         * lib/rename.c: Likewise.
10296         * lib/rmdir.c: Likewise.
10297         * lib/rpmatch.c: Likewise.
10298         * lib/safe-read.c: Likewise.
10299         * lib/safe-read.h: Likewise.
10300         * lib/safe-write.c: Likewise.
10301         * lib/safe-write.h: Likewise.
10302         * lib/same-inode.h: Likewise.
10303         * lib/same.c: Likewise.
10304         * lib/same.h: Likewise.
10305         * lib/save-cwd.c: Likewise.
10306         * lib/save-cwd.h: Likewise.
10307         * lib/savedir.c: Likewise.
10308         * lib/savedir.h: Likewise.
10309         * lib/savewd.c: Likewise.
10310         * lib/savewd.h: Likewise.
10311         * lib/search.in.h: Likewise.
10312         * lib/setenv.c: Likewise.
10313         * lib/setenv.h: Likewise.
10314         * lib/settime.c: Likewise.
10315         * lib/sh-quote.c: Likewise.
10316         * lib/sh-quote.h: Likewise.
10317         * lib/sig2str.c: Likewise.
10318         * lib/sig2str.h: Likewise.
10319         * lib/signal.in.h: Likewise.
10320         * lib/signbitd.c: Likewise.
10321         * lib/signbitf.c: Likewise.
10322         * lib/signbitl.c: Likewise.
10323         * lib/sigprocmask.c: Likewise.
10324         * lib/sincosl.c: Likewise.
10325         * lib/sleep.c: Likewise.
10326         * lib/sprintf.c: Likewise.
10327         * lib/sqrtl.c: Likewise.
10328         * lib/stat-time.h: Likewise.
10329         * lib/stdio--.h: Likewise.
10330         * lib/stdio-safer.h: Likewise.
10331         * lib/stdlib--.h: Likewise.
10332         * lib/stdlib-safer.h: Likewise.
10333         * lib/stdlib.in.h: Likewise.
10334         * lib/stpcpy.c: Likewise.
10335         * lib/stpncpy.c: Likewise.
10336         * lib/strchrnul.c: Likewise.
10337         * lib/strcspn.c: Likewise.
10338         * lib/strerror.c: Likewise.
10339         * lib/strftime.c: Likewise.
10340         * lib/strftime.h: Likewise.
10341         * lib/striconveh.c: Likewise.
10342         * lib/striconveh.h: Likewise.
10343         * lib/striconveha.c: Likewise.
10344         * lib/striconveha.h: Likewise.
10345         * lib/stripslash.c: Likewise.
10346         * lib/strnlen1.c: Likewise.
10347         * lib/strnlen1.h: Likewise.
10348         * lib/strtod.c: Likewise.
10349         * lib/strtoimax.c: Likewise.
10350         * lib/strtok_r.c: Likewise.
10351         * lib/strtol.c: Likewise.
10352         * lib/strtoll.c: Likewise.
10353         * lib/strtoul.c: Likewise.
10354         * lib/strtoull.c: Likewise.
10355         * lib/sysexits.in.h: Likewise.
10356         * lib/tempname.c: Likewise.
10357         * lib/tempname.h: Likewise.
10358         * lib/timespec.h: Likewise.
10359         * lib/tls.c: Likewise.
10360         * lib/tls.h: Likewise.
10361         * lib/tmpdir.c: Likewise.
10362         * lib/tmpdir.h: Likewise.
10363         * lib/tmpfile-safer.c: Likewise.
10364         * lib/tmpfile.c: Likewise.
10365         * lib/trigl.c: Likewise.
10366         * lib/trigl.h: Likewise.
10367         * lib/trim.c: Likewise.
10368         * lib/trim.h: Likewise.
10369         * lib/trunc.c: Likewise.
10370         * lib/truncf.c: Likewise.
10371         * lib/truncl.c: Likewise.
10372         * lib/tsearch.c: Likewise.
10373         * lib/unicodeio.c: Likewise.
10374         * lib/unicodeio.h: Likewise.
10375         * lib/unistd--.h: Likewise.
10376         * lib/unistd-safer.h: Likewise.
10377         * lib/unistdio/ulc-fprintf.c: Likewise.
10378         * lib/unistdio/ulc-vfprintf.c: Likewise.
10379         * lib/unlinkdir.c: Likewise.
10380         * lib/unlinkdir.h: Likewise.
10381         * lib/unlocked-io.h: Likewise.
10382         * lib/unsetenv.c: Likewise.
10383         * lib/userspec.c: Likewise.
10384         * lib/utime.c: Likewise.
10385         * lib/utimecmp.c: Likewise.
10386         * lib/utimecmp.h: Likewise.
10387         * lib/utimens.c: Likewise.
10388         * lib/verify.h: Likewise.
10389         * lib/verror.c: Likewise.
10390         * lib/verror.h: Likewise.
10391         * lib/version-etc-fsf.c: Likewise.
10392         * lib/version-etc.c: Likewise.
10393         * lib/version-etc.h: Likewise.
10394         * lib/vfprintf.c: Likewise.
10395         * lib/vprintf.c: Likewise.
10396         * lib/vsprintf.c: Likewise.
10397         * lib/w32spawn.h: Likewise.
10398         * lib/wait-process.c: Likewise.
10399         * lib/wait-process.h: Likewise.
10400         * lib/wcwidth.c: Likewise.
10401         * lib/write-any-file.c: Likewise.
10402         * lib/xalloc-die.c: Likewise.
10403         * lib/xalloc.h: Likewise.
10404         * lib/xasprintf.c: Likewise.
10405         * lib/xgetcwd.c: Likewise.
10406         * lib/xgetcwd.h: Likewise.
10407         * lib/xgetdomainname.c: Likewise.
10408         * lib/xgetdomainname.h: Likewise.
10409         * lib/xgethostname.c: Likewise.
10410         * lib/xmalloc.c: Likewise.
10411         * lib/xmalloca.c: Likewise.
10412         * lib/xmalloca.h: Likewise.
10413         * lib/xmemcoll.c: Likewise.
10414         * lib/xnanosleep.c: Likewise.
10415         * lib/xreadlink.c: Likewise.
10416         * lib/xreadlink.h: Likewise.
10417         * lib/xsetenv.c: Likewise.
10418         * lib/xsetenv.h: Likewise.
10419         * lib/xstriconv.c: Likewise.
10420         * lib/xstriconv.h: Likewise.
10421         * lib/xstrndup.c: Likewise.
10422         * lib/xstrndup.h: Likewise.
10423         * lib/xstrtod.c: Likewise.
10424         * lib/xstrtod.h: Likewise.
10425         * lib/xstrtol-error.c: Likewise.
10426         * lib/xstrtol.c: Likewise.
10427         * lib/xstrtol.h: Likewise.
10428         * lib/xtime.h: Likewise.
10429         * lib/xvasprintf.c: Likewise.
10430         * lib/xvasprintf.h: Likewise.
10431         * lib/yesno.c: Likewise.
10432         * lib/yesno.h: Likewise.
10433         * posix-modules: Likewise.
10434         * tests/test-alloca-opt.c: Likewise.
10435         * tests/test-arcfour.c: Likewise.
10436         * tests/test-arctwo.c: Likewise.
10437         * tests/test-argmatch.c: Likewise.
10438         * tests/test-argp-2.sh: Likewise.
10439         * tests/test-argp.c: Likewise.
10440         * tests/test-arpa_inet.c: Likewise.
10441         * tests/test-array_list.c: Likewise.
10442         * tests/test-array_oset.c: Likewise.
10443         * tests/test-atexit.c: Likewise.
10444         * tests/test-avltree_list.c: Likewise.
10445         * tests/test-avltree_oset.c: Likewise.
10446         * tests/test-avltreehash_list.c: Likewise.
10447         * tests/test-base64.c: Likewise.
10448         * tests/test-binary-io.c: Likewise.
10449         * tests/test-byteswap.c: Likewise.
10450         * tests/test-c-ctype.c: Likewise.
10451         * tests/test-c-strcasecmp.c: Likewise.
10452         * tests/test-c-strcasestr.c: Likewise.
10453         * tests/test-c-strncasecmp.c: Likewise.
10454         * tests/test-c-strstr.c: Likewise.
10455         * tests/test-canonicalize-lgpl.c: Likewise.
10456         * tests/test-canonicalize.c: Likewise.
10457         * tests/test-carray_list.c: Likewise.
10458         * tests/test-ceilf.c: Likewise.
10459         * tests/test-ceill.c: Likewise.
10460         * tests/test-count-one-bits.c: Likewise.
10461         * tests/test-crc.c: Likewise.
10462         * tests/test-dirname.c: Likewise.
10463         * tests/test-fbufmode.c: Likewise.
10464         * tests/test-fcntl.c: Likewise.
10465         * tests/test-fflush.c: Likewise.
10466         * tests/test-floorf.c: Likewise.
10467         * tests/test-floorl.c: Likewise.
10468         * tests/test-fopen.c: Likewise.
10469         * tests/test-fprintf-posix.c: Likewise.
10470         * tests/test-fprintf-posix.h: Likewise.
10471         * tests/test-fpurge.c: Likewise.
10472         * tests/test-freadable.c: Likewise.
10473         * tests/test-freadahead.c: Likewise.
10474         * tests/test-freading.c: Likewise.
10475         * tests/test-freopen.c: Likewise.
10476         * tests/test-frexp.c: Likewise.
10477         * tests/test-frexpl.c: Likewise.
10478         * tests/test-fseek.c: Likewise.
10479         * tests/test-fseeko.c: Likewise.
10480         * tests/test-fseterr.c: Likewise.
10481         * tests/test-fstrcmp.c: Likewise.
10482         * tests/test-ftell.c: Likewise.
10483         * tests/test-ftello.c: Likewise.
10484         * tests/test-fwritable.c: Likewise.
10485         * tests/test-fwriting.c: Likewise.
10486         * tests/test-getaddrinfo.c: Likewise.
10487         * tests/test-getpass.c: Likewise.
10488         * tests/test-gettimeofday.c: Likewise.
10489         * tests/test-hmac-md5.c: Likewise.
10490         * tests/test-hmac-sha1.c: Likewise.
10491         * tests/test-iconv.c: Likewise.
10492         * tests/test-iconvme.c: Likewise.
10493         * tests/test-inttypes.c: Likewise.
10494         * tests/test-isnan.c: Likewise.
10495         * tests/test-isnanf.c: Likewise.
10496         * tests/test-isnanl-nolibm.c: Likewise.
10497         * tests/test-isnanl.c: Likewise.
10498         * tests/test-isnanl.h: Likewise.
10499         * tests/test-ldexpl.c: Likewise.
10500         * tests/test-linked_list.c: Likewise.
10501         * tests/test-linkedhash_list.c: Likewise.
10502         * tests/test-locale.c: Likewise.
10503         * tests/test-localename.c: Likewise.
10504         * tests/test-lock.c: Likewise.
10505         * tests/test-lseek.c: Likewise.
10506         * tests/test-malloca.c: Likewise.
10507         * tests/test-math.c: Likewise.
10508         * tests/test-mbscasecmp.c: Likewise.
10509         * tests/test-mbscasestr1.c: Likewise.
10510         * tests/test-mbscasestr2.c: Likewise.
10511         * tests/test-mbscasestr3.c: Likewise.
10512         * tests/test-mbscasestr4.c: Likewise.
10513         * tests/test-mbschr.c: Likewise.
10514         * tests/test-mbscspn.c: Likewise.
10515         * tests/test-mbsncasecmp.c: Likewise.
10516         * tests/test-mbspbrk.c: Likewise.
10517         * tests/test-mbspcasecmp.c: Likewise.
10518         * tests/test-mbsrchr.c: Likewise.
10519         * tests/test-mbsspn.c: Likewise.
10520         * tests/test-mbsstr1.c: Likewise.
10521         * tests/test-mbsstr2.c: Likewise.
10522         * tests/test-mbsstr3.c: Likewise.
10523         * tests/test-md5.c: Likewise.
10524         * tests/test-memmem.c: Likewise.
10525         * tests/test-netinet_in.c: Likewise.
10526         * tests/test-open.c: Likewise.
10527         * tests/test-printf-frexp.c: Likewise.
10528         * tests/test-printf-frexpl.c: Likewise.
10529         * tests/test-printf-posix.c: Likewise.
10530         * tests/test-printf-posix.h: Likewise.
10531         * tests/test-rbtree_list.c: Likewise.
10532         * tests/test-rbtree_oset.c: Likewise.
10533         * tests/test-rbtreehash_list.c: Likewise.
10534         * tests/test-read-file.c: Likewise.
10535         * tests/test-rijndael.c: Likewise.
10536         * tests/test-search.c: Likewise.
10537         * tests/test-signbit.c: Likewise.
10538         * tests/test-sleep.c: Likewise.
10539         * tests/test-snprintf-posix.c: Likewise.
10540         * tests/test-snprintf-posix.h: Likewise.
10541         * tests/test-snprintf.c: Likewise.
10542         * tests/test-sprintf-posix.c: Likewise.
10543         * tests/test-sprintf-posix.h: Likewise.
10544         * tests/test-stat-time.c: Likewise.
10545         * tests/test-stdbool.c: Likewise.
10546         * tests/test-stdint.c: Likewise.
10547         * tests/test-stdio.c: Likewise.
10548         * tests/test-stdlib.c: Likewise.
10549         * tests/test-stpncpy.c: Likewise.
10550         * tests/test-strcasestr.c: Likewise.
10551         * tests/test-striconv.c: Likewise.
10552         * tests/test-striconveh.c: Likewise.
10553         * tests/test-striconveha.c: Likewise.
10554         * tests/test-string.c: Likewise.
10555         * tests/test-sys_select.c: Likewise.
10556         * tests/test-sys_socket.c: Likewise.
10557         * tests/test-sys_stat.c: Likewise.
10558         * tests/test-sys_time.c: Likewise.
10559         * tests/test-sysexits.c: Likewise.
10560         * tests/test-time.c: Likewise.
10561         * tests/test-tls.c: Likewise.
10562         * tests/test-trunc.c: Likewise.
10563         * tests/test-truncf.c: Likewise.
10564         * tests/test-truncl.c: Likewise.
10565         * tests/test-unistd.c: Likewise.
10566         * tests/test-vasnprintf-posix.c: Likewise.
10567         * tests/test-vasnprintf-posix2.c: Likewise.
10568         * tests/test-vasnprintf.c: Likewise.
10569         * tests/test-vasprintf-posix.c: Likewise.
10570         * tests/test-vasprintf.c: Likewise.
10571         * tests/test-verify.c: Likewise.
10572         * tests/test-vfprintf-posix.c: Likewise.
10573         * tests/test-vprintf-posix.c: Likewise.
10574         * tests/test-vsnprintf-posix.c: Likewise.
10575         * tests/test-vsnprintf.c: Likewise.
10576         * tests/test-vsprintf-posix.c: Likewise.
10577         * tests/test-wchar.c: Likewise.
10578         * tests/test-wctype.c: Likewise.
10579         * tests/test-wcwidth.c: Likewise.
10580         * tests/test-xstrtol.c: Likewise.
10581         * tests/test-xvasprintf.c: Likewise.
10582         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
10583         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
10584         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
10585         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
10586         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
10587         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
10588         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
10589         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
10590         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
10591         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
10592         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
10593         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
10594         * tests/uniname/test-uninames.c: Likewise.
10595         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
10596         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
10597         * tests/unistdio/test-u16-printf1.h: Likewise.
10598         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
10599         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
10600         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
10601         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
10602         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
10603         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
10604         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
10605         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
10606         * tests/unistdio/test-u32-printf1.h: Likewise.
10607         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
10608         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
10609         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
10610         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
10611         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
10612         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
10613         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
10614         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
10615         * tests/unistdio/test-u8-printf1.h: Likewise.
10616         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
10617         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
10618         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
10619         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
10620         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
10621         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
10622         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
10623         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
10624         * tests/unistdio/test-ulc-printf1.h: Likewise.
10625         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
10626         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
10627         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
10628         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
10629         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
10630         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
10631         * tests/uniwidth/test-u16-strwidth.c: Likewise.
10632         * tests/uniwidth/test-u16-width.c: Likewise.
10633         * tests/uniwidth/test-u32-strwidth.c: Likewise.
10634         * tests/uniwidth/test-u32-width.c: Likewise.
10635         * tests/uniwidth/test-u8-strwidth.c: Likewise.
10636         * tests/uniwidth/test-u8-width.c: Likewise.
10637         * tests/uniwidth/test-uc_width.c: Likewise.
10638         * config/srclist-update: Likewise.
10639         (fixlicense): Update to GPLv3+.
10640
10641         Change copyright notice from LGPLv2.1+ to LGPLv3+.
10642         * tests/test-tsearch.c: Change copyright notice.
10643
10644         Change copyright notice from LGPLv2.0+ to LGPLv3+.
10645         * lib/c-strcaseeq.h: Change copyright notice.
10646         * lib/streq.h: Likewise.
10647         * lib/uniconv.h: Likewise.
10648         * lib/uniconv/u-conv-from-enc.h: Likewise.
10649         * lib/uniconv/u-conv-to-enc.h: Likewise.
10650         * lib/uniconv/u-strconv-from-enc.h: Likewise.
10651         * lib/uniconv/u-strconv-to-enc.h: Likewise.
10652         * lib/uniconv/u16-conv-from-enc.c: Likewise.
10653         * lib/uniconv/u16-conv-to-enc.c: Likewise.
10654         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
10655         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
10656         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
10657         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
10658         * lib/uniconv/u32-conv-from-enc.c: Likewise.
10659         * lib/uniconv/u32-conv-to-enc.c: Likewise.
10660         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
10661         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
10662         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
10663         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
10664         * lib/uniconv/u8-conv-from-enc.c: Likewise.
10665         * lib/uniconv/u8-conv-to-enc.c: Likewise.
10666         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
10667         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
10668         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
10669         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
10670         * lib/uniname.h: Likewise.
10671         * lib/uniname/uniname.c: Likewise.
10672         * lib/unistdio.h: Likewise.
10673         * lib/unistdio/u-asnprintf.h: Likewise.
10674         * lib/unistdio/u-asprintf.h: Likewise.
10675         * lib/unistdio/u-printf-args.c: Likewise.
10676         * lib/unistdio/u-printf-args.h: Likewise.
10677         * lib/unistdio/u-printf-parse.h: Likewise.
10678         * lib/unistdio/u-snprintf.h: Likewise.
10679         * lib/unistdio/u-sprintf.h: Likewise.
10680         * lib/unistdio/u-vasprintf.h: Likewise.
10681         * lib/unistdio/u-vsnprintf.h: Likewise.
10682         * lib/unistdio/u-vsprintf.h: Likewise.
10683         * lib/unistdio/u16-asnprintf.c: Likewise.
10684         * lib/unistdio/u16-asprintf.c: Likewise.
10685         * lib/unistdio/u16-printf-parse.c: Likewise.
10686         * lib/unistdio/u16-snprintf.c: Likewise.
10687         * lib/unistdio/u16-sprintf.c: Likewise.
10688         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
10689         * lib/unistdio/u16-u16-asprintf.c: Likewise.
10690         * lib/unistdio/u16-u16-snprintf.c: Likewise.
10691         * lib/unistdio/u16-u16-sprintf.c: Likewise.
10692         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
10693         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
10694         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
10695         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
10696         * lib/unistdio/u16-vasnprintf.c: Likewise.
10697         * lib/unistdio/u16-vasprintf.c: Likewise.
10698         * lib/unistdio/u16-vsnprintf.c: Likewise.
10699         * lib/unistdio/u16-vsprintf.c: Likewise.
10700         * lib/unistdio/u32-asnprintf.c: Likewise.
10701         * lib/unistdio/u32-asprintf.c: Likewise.
10702         * lib/unistdio/u32-printf-parse.c: Likewise.
10703         * lib/unistdio/u32-snprintf.c: Likewise.
10704         * lib/unistdio/u32-sprintf.c: Likewise.
10705         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
10706         * lib/unistdio/u32-u32-asprintf.c: Likewise.
10707         * lib/unistdio/u32-u32-snprintf.c: Likewise.
10708         * lib/unistdio/u32-u32-sprintf.c: Likewise.
10709         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
10710         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
10711         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
10712         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
10713         * lib/unistdio/u32-vasnprintf.c: Likewise.
10714         * lib/unistdio/u32-vasprintf.c: Likewise.
10715         * lib/unistdio/u32-vsnprintf.c: Likewise.
10716         * lib/unistdio/u32-vsprintf.c: Likewise.
10717         * lib/unistdio/u8-asnprintf.c: Likewise.
10718         * lib/unistdio/u8-asprintf.c: Likewise.
10719         * lib/unistdio/u8-printf-parse.c: Likewise.
10720         * lib/unistdio/u8-snprintf.c: Likewise.
10721         * lib/unistdio/u8-sprintf.c: Likewise.
10722         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
10723         * lib/unistdio/u8-u8-asprintf.c: Likewise.
10724         * lib/unistdio/u8-u8-snprintf.c: Likewise.
10725         * lib/unistdio/u8-u8-sprintf.c: Likewise.
10726         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
10727         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
10728         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
10729         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
10730         * lib/unistdio/u8-vasnprintf.c: Likewise.
10731         * lib/unistdio/u8-vasprintf.c: Likewise.
10732         * lib/unistdio/u8-vsnprintf.c: Likewise.
10733         * lib/unistdio/u8-vsprintf.c: Likewise.
10734         * lib/unistdio/ulc-asnprintf.c: Likewise.
10735         * lib/unistdio/ulc-asprintf.c: Likewise.
10736         * lib/unistdio/ulc-printf-parse.c: Likewise.
10737         * lib/unistdio/ulc-snprintf.c: Likewise.
10738         * lib/unistdio/ulc-sprintf.c: Likewise.
10739         * lib/unistdio/ulc-vasnprintf.c: Likewise.
10740         * lib/unistdio/ulc-vasprintf.c: Likewise.
10741         * lib/unistdio/ulc-vsnprintf.c: Likewise.
10742         * lib/unistdio/ulc-vsprintf.c: Likewise.
10743         * lib/unistr.h: Likewise.
10744         * lib/unistr/u-cpy-alloc.h: Likewise.
10745         * lib/unistr/u-cpy.h: Likewise.
10746         * lib/unistr/u-endswith.h: Likewise.
10747         * lib/unistr/u-move.h: Likewise.
10748         * lib/unistr/u-set.h: Likewise.
10749         * lib/unistr/u-startswith.h: Likewise.
10750         * lib/unistr/u-stpcpy.h: Likewise.
10751         * lib/unistr/u-stpncpy.h: Likewise.
10752         * lib/unistr/u-strcat.h: Likewise.
10753         * lib/unistr/u-strcpy.h: Likewise.
10754         * lib/unistr/u-strcspn.h: Likewise.
10755         * lib/unistr/u-strdup.h: Likewise.
10756         * lib/unistr/u-strlen.h: Likewise.
10757         * lib/unistr/u-strncat.h: Likewise.
10758         * lib/unistr/u-strncpy.h: Likewise.
10759         * lib/unistr/u-strnlen.h: Likewise.
10760         * lib/unistr/u-strpbrk.h: Likewise.
10761         * lib/unistr/u-strspn.h: Likewise.
10762         * lib/unistr/u-strstr.h: Likewise.
10763         * lib/unistr/u-strtok.h: Likewise.
10764         * lib/unistr/u16-check.c: Likewise.
10765         * lib/unistr/u16-chr.c: Likewise.
10766         * lib/unistr/u16-cmp.c: Likewise.
10767         * lib/unistr/u16-cpy-alloc.c: Likewise.
10768         * lib/unistr/u16-cpy.c: Likewise.
10769         * lib/unistr/u16-endswith.c: Likewise.
10770         * lib/unistr/u16-mblen.c: Likewise.
10771         * lib/unistr/u16-mbsnlen.c: Likewise.
10772         * lib/unistr/u16-mbtouc-aux.c: Likewise.
10773         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
10774         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
10775         * lib/unistr/u16-mbtouc.c: Likewise.
10776         * lib/unistr/u16-mbtoucr.c: Likewise.
10777         * lib/unistr/u16-move.c: Likewise.
10778         * lib/unistr/u16-next.c: Likewise.
10779         * lib/unistr/u16-prev.c: Likewise.
10780         * lib/unistr/u16-set.c: Likewise.
10781         * lib/unistr/u16-startswith.c: Likewise.
10782         * lib/unistr/u16-stpcpy.c: Likewise.
10783         * lib/unistr/u16-stpncpy.c: Likewise.
10784         * lib/unistr/u16-strcat.c: Likewise.
10785         * lib/unistr/u16-strchr.c: Likewise.
10786         * lib/unistr/u16-strcmp.c: Likewise.
10787         * lib/unistr/u16-strcpy.c: Likewise.
10788         * lib/unistr/u16-strcspn.c: Likewise.
10789         * lib/unistr/u16-strdup.c: Likewise.
10790         * lib/unistr/u16-strlen.c: Likewise.
10791         * lib/unistr/u16-strmblen.c: Likewise.
10792         * lib/unistr/u16-strmbtouc.c: Likewise.
10793         * lib/unistr/u16-strncat.c: Likewise.
10794         * lib/unistr/u16-strncmp.c: Likewise.
10795         * lib/unistr/u16-strncpy.c: Likewise.
10796         * lib/unistr/u16-strnlen.c: Likewise.
10797         * lib/unistr/u16-strpbrk.c: Likewise.
10798         * lib/unistr/u16-strrchr.c: Likewise.
10799         * lib/unistr/u16-strspn.c: Likewise.
10800         * lib/unistr/u16-strstr.c: Likewise.
10801         * lib/unistr/u16-strtok.c: Likewise.
10802         * lib/unistr/u16-to-u32.c: Likewise.
10803         * lib/unistr/u16-to-u8.c: Likewise.
10804         * lib/unistr/u16-uctomb-aux.c: Likewise.
10805         * lib/unistr/u16-uctomb.c: Likewise.
10806         * lib/unistr/u32-check.c: Likewise.
10807         * lib/unistr/u32-chr.c: Likewise.
10808         * lib/unistr/u32-cmp.c: Likewise.
10809         * lib/unistr/u32-cpy-alloc.c: Likewise.
10810         * lib/unistr/u32-cpy.c: Likewise.
10811         * lib/unistr/u32-endswith.c: Likewise.
10812         * lib/unistr/u32-mblen.c: Likewise.
10813         * lib/unistr/u32-mbsnlen.c: Likewise.
10814         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
10815         * lib/unistr/u32-mbtouc.c: Likewise.
10816         * lib/unistr/u32-mbtoucr.c: Likewise.
10817         * lib/unistr/u32-move.c: Likewise.
10818         * lib/unistr/u32-next.c: Likewise.
10819         * lib/unistr/u32-prev.c: Likewise.
10820         * lib/unistr/u32-set.c: Likewise.
10821         * lib/unistr/u32-startswith.c: Likewise.
10822         * lib/unistr/u32-stpcpy.c: Likewise.
10823         * lib/unistr/u32-stpncpy.c: Likewise.
10824         * lib/unistr/u32-strcat.c: Likewise.
10825         * lib/unistr/u32-strchr.c: Likewise.
10826         * lib/unistr/u32-strcmp.c: Likewise.
10827         * lib/unistr/u32-strcpy.c: Likewise.
10828         * lib/unistr/u32-strcspn.c: Likewise.
10829         * lib/unistr/u32-strdup.c: Likewise.
10830         * lib/unistr/u32-strlen.c: Likewise.
10831         * lib/unistr/u32-strmblen.c: Likewise.
10832         * lib/unistr/u32-strmbtouc.c: Likewise.
10833         * lib/unistr/u32-strncat.c: Likewise.
10834         * lib/unistr/u32-strncmp.c: Likewise.
10835         * lib/unistr/u32-strncpy.c: Likewise.
10836         * lib/unistr/u32-strnlen.c: Likewise.
10837         * lib/unistr/u32-strpbrk.c: Likewise.
10838         * lib/unistr/u32-strrchr.c: Likewise.
10839         * lib/unistr/u32-strspn.c: Likewise.
10840         * lib/unistr/u32-strstr.c: Likewise.
10841         * lib/unistr/u32-strtok.c: Likewise.
10842         * lib/unistr/u32-to-u16.c: Likewise.
10843         * lib/unistr/u32-to-u8.c: Likewise.
10844         * lib/unistr/u32-uctomb.c: Likewise.
10845         * lib/unistr/u8-check.c: Likewise.
10846         * lib/unistr/u8-chr.c: Likewise.
10847         * lib/unistr/u8-cmp.c: Likewise.
10848         * lib/unistr/u8-cpy-alloc.c: Likewise.
10849         * lib/unistr/u8-cpy.c: Likewise.
10850         * lib/unistr/u8-endswith.c: Likewise.
10851         * lib/unistr/u8-mblen.c: Likewise.
10852         * lib/unistr/u8-mbsnlen.c: Likewise.
10853         * lib/unistr/u8-mbtouc-aux.c: Likewise.
10854         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
10855         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
10856         * lib/unistr/u8-mbtouc.c: Likewise.
10857         * lib/unistr/u8-mbtoucr.c: Likewise.
10858         * lib/unistr/u8-move.c: Likewise.
10859         * lib/unistr/u8-next.c: Likewise.
10860         * lib/unistr/u8-prev.c: Likewise.
10861         * lib/unistr/u8-set.c: Likewise.
10862         * lib/unistr/u8-startswith.c: Likewise.
10863         * lib/unistr/u8-stpcpy.c: Likewise.
10864         * lib/unistr/u8-stpncpy.c: Likewise.
10865         * lib/unistr/u8-strcat.c: Likewise.
10866         * lib/unistr/u8-strchr.c: Likewise.
10867         * lib/unistr/u8-strcmp.c: Likewise.
10868         * lib/unistr/u8-strcpy.c: Likewise.
10869         * lib/unistr/u8-strcspn.c: Likewise.
10870         * lib/unistr/u8-strdup.c: Likewise.
10871         * lib/unistr/u8-strlen.c: Likewise.
10872         * lib/unistr/u8-strmblen.c: Likewise.
10873         * lib/unistr/u8-strmbtouc.c: Likewise.
10874         * lib/unistr/u8-strncat.c: Likewise.
10875         * lib/unistr/u8-strncmp.c: Likewise.
10876         * lib/unistr/u8-strncpy.c: Likewise.
10877         * lib/unistr/u8-strnlen.c: Likewise.
10878         * lib/unistr/u8-strpbrk.c: Likewise.
10879         * lib/unistr/u8-strrchr.c: Likewise.
10880         * lib/unistr/u8-strspn.c: Likewise.
10881         * lib/unistr/u8-strstr.c: Likewise.
10882         * lib/unistr/u8-strtok.c: Likewise.
10883         * lib/unistr/u8-to-u16.c: Likewise.
10884         * lib/unistr/u8-to-u32.c: Likewise.
10885         * lib/unistr/u8-uctomb-aux.c: Likewise.
10886         * lib/unistr/u8-uctomb.c: Likewise.
10887         * lib/unitypes.h: Likewise.
10888         * lib/uniwidth.h: Likewise.
10889         * lib/uniwidth/cjk.h: Likewise.
10890         * lib/uniwidth/u16-strwidth.c: Likewise.
10891         * lib/uniwidth/u16-width.c: Likewise.
10892         * lib/uniwidth/u32-strwidth.c: Likewise.
10893         * lib/uniwidth/u32-width.c: Likewise.
10894         * lib/uniwidth/u8-strwidth.c: Likewise.
10895         * lib/uniwidth/u8-width.c: Likewise.
10896         * lib/uniwidth/width.c: Likewise.
10897
10898 2007-10-07  Bruno Haible  <bruno@clisp.org>
10899
10900         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
10901         The file is still under LGPL (see modules/inttypes).
10902
10903 2007-10-06  Bruno Haible  <bruno@clisp.org>
10904
10905         * modules/trunc (Dependencies): Add 'extensions'.
10906         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
10907         Reported by Ben Pfaff <blp@gnu.org>.
10908
10909 2007-10-06  Bruno Haible  <bruno@clisp.org>
10910
10911         * modules/freopen-tests: New file.
10912         * tests/test-freopen.c: New file.
10913
10914         * modules/fopen-tests: New file.
10915         * tests/test-fopen.c: New file.
10916
10917         * modules/fopen: New file.
10918         * lib/fopen.c: New file.
10919         * m4/fopen.m4: New file.
10920         * modules/freopen: New file.
10921         * lib/freopen.c: New file.
10922         * m4/freopen.m4: New file.
10923         * lib/stdio.in.h (fopen, freopen): New declarations.
10924         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
10925         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
10926         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
10927         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
10928         * doc/functions/fopen.texi: Mention the 'fopen' module.
10929         * doc/functions/freopen.texi: Mention the 'freopen' module.
10930
10931 2007-10-06  Bruno Haible  <bruno@clisp.org>
10932
10933         * modules/open-tests: New file.
10934         * tests/test-open.c: New file.
10935
10936         * modules/open: New file.
10937         * lib/open.c: New file.
10938         * m4/open.m4: New file.
10939         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
10940         lib/open.c does.
10941         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
10942         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
10943         macros.
10944         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
10945         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
10946         REPLACE_OPEN.
10947         * doc/functions/open.texi: Mention the 'open' module.
10948
10949 2007-10-04  Bruno Haible  <bruno@clisp.org>
10950
10951         * modules/ceill-tests: New file.
10952         * tests/test-ceill.c: New file.
10953
10954         * modules/ceill: New file.
10955         * lib/ceill.c: Replace entire file.
10956         * m4/ceill.m4: New file.
10957         * lib/math.in.h (ceill): Replace declaration.
10958         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
10959         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
10960         * doc/functions/ceill.texi: Mention the 'ceill' module.
10961         * modules/mathl (Files): Remove lib/ceill.c.
10962         (Depends-on): Add ceill.
10963
10964 2007-10-04  Bruno Haible  <bruno@clisp.org>
10965
10966         * modules/ceilf-tests: New file.
10967         * tests/test-ceilf.c: New file.
10968
10969         * modules/ceilf: New file.
10970         * lib/ceil.c: New file.
10971         * lib/ceilf.c: New file.
10972         * m4/ceilf.m4: New file.
10973         * lib/math.in.h (ceilf): New declaration.
10974         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
10975         HAVE_DECL_CEILF.
10976         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
10977         HAVE_DECL_CEILF.
10978         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
10979
10980 2007-10-04  Bruno Haible  <bruno@clisp.org>
10981
10982         * modules/floorl-tests: New file.
10983         * tests/test-floorl.c: New file.
10984
10985         * modules/floorl: New file.
10986         * lib/floorl.c: Replace entire file.
10987         * m4/floorl.m4: New file.
10988         * lib/math.in.h (floorl): Replace declaration.
10989         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
10990         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
10991         * doc/functions/floorl.texi: Mention the 'floorl' module.
10992         * modules/mathl (Files): Remove lib/floorl.c.
10993         (Depends-on): Add floorl.
10994
10995 2007-10-04  Bruno Haible  <bruno@clisp.org>
10996
10997         * modules/floorf-tests: New file.
10998         * tests/test-floorf.c: New file.
10999
11000         * modules/floorf: New file.
11001         * lib/floor.c: New file.
11002         * lib/floorf.c: New file.
11003         * m4/floorf.m4: New file.
11004         * lib/math.in.h (floorf): New declaration.
11005         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
11006         HAVE_DECL_FLOORF.
11007         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
11008         HAVE_DECL_FLOORF.
11009         * doc/functions/floorf.texi: Mention the 'floorf' module.
11010
11011 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
11012             Bruno Haible  <bruno@clisp.org>
11013
11014         Advertise for the Git server instead of the CVS server.
11015         * doc/gnulib-intro.texi (Steady Development): Mention the Git
11016         repository instead of the CVS one.
11017         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
11018         about all VCS systems generically.
11019         * doc/gnulib.texi (Introduction): Capitalize `Git'.
11020
11021 2007-10-04  Bruno Haible  <bruno@clisp.org>
11022
11023         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
11024         means.
11025         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
11026
11027 2007-10-04  Bruno Haible  <bruno@clisp.org>
11028
11029         * modules/truncl-tests: New file.
11030         * tests/test-truncl.c: New file.
11031
11032         * modules/truncl: New file.
11033         * lib/truncl.c: New file.
11034         * m4/truncl.m4: New file.
11035         * lib/math.in.h (truncl): New declaration.
11036         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
11037         HAVE_DECL_TRUNCL.
11038         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
11039         HAVE_DECL_TRUNCL.
11040         * doc/functions/truncl.texi: Mention the 'truncl' module.
11041
11042 2007-10-04  Bruno Haible  <bruno@clisp.org>
11043
11044         * modules/truncf-tests: New file.
11045         * tests/test-truncf.c: New file.
11046
11047         * modules/truncf: New file.
11048         * lib/trunc.c: Make paramerizable through USE_* macros.
11049         * lib/truncf.c: New file.
11050         * m4/truncf.m4: New file.
11051         * lib/math.in.h (truncf): New declaration.
11052         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
11053         HAVE_DECL_TRUNCF.
11054         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
11055         HAVE_DECL_TRUNCF.
11056         * doc/functions/truncf.texi: Mention the 'truncf' module.
11057
11058 2007-10-03  Bruno Haible  <bruno@clisp.org>
11059
11060         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
11061         augmentation also for tests modules.
11062         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
11063         * modules/atexit-tests (Makefile.am): Likewise.
11064         * modules/binary-io-tests (Makefile.am): Likewise.
11065         * modules/c-strcase-tests (Makefile.am): Likewise.
11066         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
11067         * modules/canonicalize-tests (Makefile.am): Likewise.
11068         * modules/closein-tests (Makefile.am): Likewise.
11069         * modules/fprintf-posix-tests (Makefile.am): Likewise.
11070         * modules/freadahead-tests (Makefile.am): Likewise.
11071         * modules/fseek-tests (Makefile.am): Likewise.
11072         * modules/fseeko-tests (Makefile.am): Likewise.
11073         * modules/ftell-tests (Makefile.am): Likewise.
11074         * modules/ftello-tests (Makefile.am): Likewise.
11075         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
11076         * modules/isnanl-tests (Makefile.am): Likewise.
11077         * modules/lseek-tests (Makefile.am): Likewise.
11078         * modules/mbscasecmp-tests (Makefile.am): Likewise.
11079         * modules/mbscasestr-tests (Makefile.am): Likewise.
11080         * modules/mbschr-tests (Makefile.am): Likewise.
11081         * modules/mbscspn-tests (Makefile.am): Likewise.
11082         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
11083         * modules/mbspbrk-tests (Makefile.am): Likewise.
11084         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
11085         * modules/mbsrchr-tests (Makefile.am): Likewise.
11086         * modules/mbsspn-tests (Makefile.am): Likewise.
11087         * modules/mbsstr-tests (Makefile.am): Likewise.
11088         * modules/printf-posix-tests (Makefile.am): Likewise.
11089         * modules/snprintf-posix-tests (Makefile.am): Likewise.
11090         * modules/sprintf-posix-tests (Makefile.am): Likewise.
11091         * modules/tsearch-tests (Makefile.am): Likewise.
11092         * modules/uniname/uniname-tests (Makefile.am): Likewise.
11093         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
11094         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
11095         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
11096         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
11097         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
11098         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
11099         * modules/vprintf-posix-tests (Makefile.am): Likewise.
11100         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
11101         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
11102         * modules/xstrtoimax-tests (Makefile.am): Likewise.
11103         * modules/xstrtol-tests (Makefile.am): Likewise.
11104         * modules/xstrtoumax-tests (Makefile.am): Likewise.
11105         * modules/yesno-tests (Makefile.am): Likewise.
11106
11107 2007-10-03  Bruno Haible  <bruno@clisp.org>
11108
11109         * modules/trunc-tests: New file.
11110         * tests/test-trunc.c: New file.
11111
11112         * modules/trunc: New file.
11113         * lib/trunc.c: New file.
11114         * m4/trunc.m4: New file.
11115         * lib/math.in.h (trunc): New declaration.
11116         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
11117         HAVE_DECL_TRUNC.
11118         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
11119         HAVE_DECL_TRUNC.
11120         * doc/functions/trunc.texi: Mention the 'trunc' module.
11121
11122 2007-10-03  Bruno Haible  <bruno@clisp.org>
11123
11124         * tests/test-fpending.c: New file, mostly copied
11125         from coreutils/lib/t-fpending.c.
11126         * modules/fpending-tests: New file.
11127
11128 2007-10-03  Bruno Haible  <bruno@clisp.org>
11129
11130         Port the stdio extensions to QNX (untested).
11131         * lib/fseterr.c (fseterr): Add support for QNX.
11132         * lib/fbufmode.c (fbufmode): Likewise.
11133         * lib/freadable.c (freadable): Likewise.
11134         * lib/fwritable.c (fwritable): Likewise.
11135         * lib/freading.c (freading): Likewise.
11136         * lib/fwriting.c (fwriting): Likewise.
11137         * lib/freadahead.c (freadahed): Likewise.
11138         * lib/fpurge.c (fpurge): Likewise.
11139         * lib/fseeko.c (rpl_fseeko): Likewise.
11140
11141 2007-10-03  Bruno Haible  <bruno@clisp.org>
11142             Jim Meyering  <jim@meyering.net>
11143             Eric Blake  <ebb9@byu.net>
11144
11145         * doc/relocatable.texi: Use @command instead of @program.
11146
11147 2007-10-02  Jim Meyering  <jim@meyering.net>
11148
11149         Perform one more "_.h" -> ".in.h" substitution.
11150         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
11151         instead of unistd_.h here, too.
11152
11153 2007-10-01  Bruno Haible  <bruno@clisp.org>
11154
11155         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
11156         Needed for the alloca-opt module.
11157
11158 2007-09-30  Bruno Haible  <bruno@clisp.org>
11159
11160         * lib/alloca.in.h: Renamed from lib/alloca_.h.
11161         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
11162         alloca_.h.
11163         * lib/argz.in.h: Renamed from lib/argz_.h.
11164         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
11165         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
11166         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
11167         byteswap_.h.
11168         * lib/dirent.in.h: Renamed from lib/dirent_.h.
11169         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
11170         dirent_.h.
11171         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
11172         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
11173         fcntl_.h.
11174         * lib/float.in.h: Renamed from lib/float_.h.
11175         * modules/float (Files, Makefile.am): Use float.in.h instead of
11176         float_.h.
11177         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
11178         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
11179         fnmatch_.h.
11180         * lib/getopt.in.h: Renamed from lib/getopt_.h.
11181         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
11182         getopt_.h.
11183         * lib/glob.in.h: Renamed from lib/glob_.h.
11184         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
11185         * lib/iconv.in.h: Renamed from lib/iconv_.h.
11186         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
11187         iconv_.h.
11188         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
11189         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
11190         inttypes_.h.
11191         * lib/locale.in.h: Renamed from lib/locale_.h.
11192         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
11193         locale_.h.
11194         * lib/math.in.h: Renamed from lib/math_.h.
11195         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
11196         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
11197         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
11198         of netinet_in_.h. Add dependency.
11199         * lib/poll.in.h: Renamed from lib/poll_.h.
11200         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
11201         * lib/search.in.h: Renamed from lib/search_.h.
11202         * modules/search (Files, Makefile.am): Use search.in.h instead of
11203         search_.h.
11204         * lib/signal.in.h: Renamed from lib/signal_.h.
11205         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
11206         _signal.h.
11207         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
11208         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
11209         stdbool_.h.
11210         * lib/stdint.in.h: Renamed from lib/stdint_.h.
11211         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
11212         stdint_.h.
11213         * lib/stdio.in.h: Renamed from lib/stdio_.h.
11214         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
11215         stdio_.h.
11216         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
11217         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
11218         stdlib_.h.
11219         * lib/string.in.h: Renamed from lib/string_.h.
11220         * modules/string (Files, Makefile.am): Use string.in.h instead of
11221         string_.h.
11222         * doc/gnulib-tool.texi (Initial import): Update.
11223         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
11224         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
11225         of sys_select_.h. Add dependency.
11226         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
11227         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
11228         of sys_socket_.h.
11229         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
11230         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
11231         sys_stat_.h.
11232         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
11233         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
11234         sys_time_.h.
11235         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
11236         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
11237         sysexits_.h.
11238         * lib/time.in.h: Renamed from lib/time_.h.
11239         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
11240         * lib/unistd.in.h: Renamed from lib/unistd_.h.
11241         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
11242         unistd_.h.
11243         * lib/wchar.in.h: Renamed from lib/wchar_.h.
11244         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
11245         wchar_.h.
11246         * lib/wctype.in.h: Renamed from lib/wctype_.h.
11247         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
11248         wctype_.h.
11249         * build-aux/bootstrap (slurp): Update.
11250         * lib/.cppi-disable: Update.
11251
11252 2007-09-30  Bruno Haible  <bruno@clisp.org>
11253
11254         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
11255         Needed on BeOS.
11256
11257 2007-09-30  Bruno Haible  <bruno@clisp.org>
11258
11259         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
11260
11261 2007-09-29  Bruno Haible  <bruno@clisp.org>
11262
11263         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
11264
11265 2007-09-29  Bruno Haible  <bruno@clisp.org>
11266
11267         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
11268         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
11269         * build-aux/install-reloc: Compile also areadlink.c.
11270         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
11271
11272 2007-09-29  Bruno Haible  <bruno@clisp.org>
11273
11274         * gnulib-tool (func_emit_initmacro_done): Indentation.
11275
11276 2007-09-29  Bruno Haible  <bruno@clisp.org>
11277
11278         * README: Add CVS checkout update instructions.
11279         Info from Bob Proulx <bob@proulx.com>.
11280
11281 2007-09-28  Eric Blake  <ebb9@byu.net>
11282
11283         Provide move-if-change.
11284         * build-aux/move-if-change: New file, based on best practice
11285         rather than any canonical upstream location.
11286
11287 2007-09-28  Jim Meyering  <jim@meyering.net>
11288
11289         Fix canonicalize loop-detection corner case.
11290         Do not attempt to stat the symlink values stored via seen_triple.
11291         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
11292         on linux-2.6.18, (but not 2.6.22).
11293         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
11294         triple_compare.  The former compares dev,ino,filename, while the latter
11295         would actually stat dirname(filename) when dev and ino were equal.
11296         * lib/hash-triple.c: Install <string.h>.
11297         (STREQ): Define.
11298         (triple_compare_ino_str): New function.
11299         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
11300
11301 2007-09-28  Eric Blake  <ebb9@byu.net>
11302
11303         Enforce that AC_REPLACE_FUNCS files exist.
11304         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
11305         override check for typos.
11306
11307         Fix test-closein on Solaris 10.
11308         * tests/test-closein.c (main): Don't assume stdin can be inherited
11309         closed on all systems.
11310         * tests/test-closein.sh: Likewise.
11311         Reported by Piotr Tarnowski.
11312
11313 2007-09-28  Jim Meyering  <jim@meyering.net>
11314
11315         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
11316
11317 2007-09-27  Jim Meyering  <jim@meyering.net>
11318
11319         canonicalize: Avoid a false-positive cycle failure.
11320         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
11321         Sort.  Remove cycle-check.
11322         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
11323         not cycle-check.h.
11324         (seen_triple): New function.
11325         (canonicalize_filename_mode): Use it instead of cycle-check.
11326         * tests/test-canonicalize.c: Add a test for this bug.
11327         * tests/test-canonicalize.sh: Set up and run the test.
11328
11329         New module, file-set, from coreutils.
11330         * modules/file-set: Define it.
11331         * lib/file-set.c, lib/file-set.h: Implement.
11332
11333         New module, hash-triple, from coreutils.
11334         * modules/hash-triple: Define it.
11335         * lib/hash-triple.c, lib/hash-triple.h: Implement.
11336
11337 2007-09-25  Eric Blake  <ebb9@byu.net>
11338
11339         Fix strerror on Interix.
11340         * lib/string_.h (strerror): Declare replacement.
11341         * doc/functions/strerror.texi (strerror): Document the Interix
11342         shortcoming.
11343         * modules/string (Makefile.am): Support new hooks.
11344         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
11345         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
11346         gl_FUNC_STRERROR_SEPARATE.
11347         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
11348         * lib/strerror.c (rpl_strerror): Provide replacement.
11349         * modules/strerror (Depends-on): Add string.
11350         (configure.ac): Detect use of module.
11351         * tests/test-strerror.c: New file.
11352         * modules/strerror-tests: New test module.
11353         * modules/argp (Depends-on): Add strerror.
11354         * modules/error (Depends-on): Likewise.
11355         Reported by Martin Koeppe.
11356
11357 2007-09-24  Bruno Haible  <bruno@clisp.org>
11358
11359         * README: Update git instructions.
11360
11361 2007-09-24  Eric Blake  <ebb9@byu.net>
11362
11363         Revert fpending breakage from 2007-09-08.
11364         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
11365         __fpending.c.
11366
11367 2007-09-24  Jim Meyering  <jim@meyering.net>
11368
11369         filenamecat.c: Add a test.
11370         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
11371         showing how the function works when DIR is the empty string.
11372
11373 2007-09-21  Simon Josefsson  <simon@josefsson.org>
11374
11375         * tests/test-canonicalize.sh: Turn on executable bit.
11376
11377 2007-09-19  Eric Blake  <ebb9@byu.net>
11378
11379         * README: Update CVS instructions.
11380
11381 2007-09-18  Bruno Haible  <bruno@clisp.org>
11382
11383         * modules/areadlink: New file.
11384         * lib/areadlink.h (areadlink): New declaration.
11385         * lib/areadlink.c: New file, based on lib/xreadlink.c.
11386
11387 2007-09-17  Jim Meyering  <jim@meyering.net>
11388
11389         * lib/savewd.c (ESTALE) [!defined]: Define.
11390         Reported to be required on Interix by Martin Koeppe.
11391
11392 2007-09-17  Bruno Haible  <bruno@clisp.org>
11393
11394         * gnulib-tool (func_version): Use $version.
11395
11396 2007-09-16  Bruno Haible  <bruno@clisp.org>
11397
11398         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
11399         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
11400         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
11401         Reported by Greg Schafer <gschafer@zip.com.au>.
11402
11403 2007-09-15  Bruno Haible  <bruno@clisp.org>
11404
11405         * gnulib-tool (sed): Try a little harder to make bash understand the
11406         alias.
11407         Reported by Bruce Korb <bruce.korb@gmail.com>.
11408
11409 2007-09-13  Eric Blake  <ebb9@byu.net>
11410
11411         * ChangeLog: Remove conflict markers.
11412
11413 2007-09-13  Simon Josefsson  <simon@josefsson.org>
11414
11415         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
11416         Reported by Bruno Haible <bruno@clisp.org>.
11417
11418 2007-09-12  Bruno Haible  <bruno@clisp.org>
11419
11420         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
11421         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
11422         is not defined.
11423
11424 2007-09-12  Eric Blake  <ebb9@byu.net>
11425
11426         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
11427         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
11428         Autoconf definition.
11429         * modules/euidaccess (Depends-on): Add extensions, for
11430         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
11431         * modules/fnmatch (Depends-on): Likewise.
11432         * modules/getaddrinfo (Depends-on): Likewise.
11433         * modules/getdelim (Depends-on): Likewise.
11434         * modules/getline (Depends-on): Likewise.
11435         * modules/getsubopt (Depends-on): Likewise.
11436         * modules/gettext (Depends-on): Likewise.
11437         * modules/group-member (Depends-on): Likewise.
11438         * modules/mbchar (Depends-on): Likewise.
11439         * modules/memmem (Depends-on): Likewise.
11440         * modules/mempcpy (Depends-on): Likewise.
11441         * modules/memrchr (Depends-on): Likewise.
11442         * modules/pagealign_alloc (Depends-on): Likewise.
11443         * modules/readutmp (Depends-on): Likewise.
11444         * modules/stpcpy (Depends-on): Likewise.
11445         * modules/stpncpy (Depends-on): Likewise.
11446         * modules/strchrnul (Depends-on): Likewise.
11447         * modules/strndup (Depends-on): Likewise.
11448         * modules/strsep (Depends-on): Likewise.
11449         * modules/strverscmp (Depends-on): Likewise.
11450         * modules/vasprintf (Depends-on): Likewise.
11451         * modules/wcwidth (Depends-on): Likewise.
11452         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
11453         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
11454         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
11455         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
11456         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
11457         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
11458         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
11459         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
11460         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
11461         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
11462         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
11463         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
11464         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
11465         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
11466         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
11467         * m4/readutmp.m4 (gl_READUTMP): Likewise.
11468         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
11469         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
11470         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
11471         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
11472         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
11473         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
11474         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
11475         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
11476         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
11477         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
11478         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
11479         so that lock.m4 can be used in gettext without extensions module.
11480
11481 2007-09-11  Bruno Haible  <bruno@clisp.org>
11482
11483         * m4/isc-posix.m4: Remove file.
11484         Suggested by Eric Blake.
11485
11486 2007-09-11  Eric Blake  <ebb9@byu.net>
11487
11488         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
11489
11490 2007-09-10  Bruno Haible  <bruno@clisp.org>
11491
11492         * posix-modules: Fix typo in error message.
11493         Reported by Matt <mkraai@beckman.com>.
11494
11495 2007-09-09  Bruno Haible  <bruno@clisp.org>
11496
11497         * doc/functions/getdelim.texi: Update list of platforms lacking the
11498         function.
11499         * doc/functions/getline.texi: Likewise.
11500
11501 2007-09-09  Jim Meyering  <jim@meyering.net>
11502
11503         * lib/hash.c (hash_initialize): Detect calloc failure.
11504         Reported by Bruno Haible.
11505
11506 2007-09-09  Bruno Haible  <bruno@clisp.org>
11507
11508         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
11509         malloc or realloc fails.
11510
11511 2007-09-09  Bruno Haible  <bruno@clisp.org>
11512
11513         * modules/getcwd (Depends-on): Add malloc-posix.
11514         * modules/glob (Depends-on): Likewise.
11515         * modules/putenv (Depends-on): Likewise.
11516         * modules/strdup (Depends-on): Likewise.
11517         * modules/getdelim (Depends-on): Add realloc-posix.
11518         * modules/read-file (Depends-on): Likewise.
11519
11520 2007-09-09  Bruno Haible  <bruno@clisp.org>
11521
11522         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
11523         (gl_FUNC_MALLOC_POSIX): Require it.
11524         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
11525         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
11526         * modules/realloc (Files): Add m4/malloc.m4.
11527         * modules/calloc (Files): Likewise.
11528
11529 2007-09-09  Bruno Haible  <bruno@clisp.org>
11530
11531         * modules/malloc-posix: New file.
11532         * modules/malloc (Depends-on): Add malloc-posix.
11533         * lib/malloc.c: Include errno.h.
11534         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
11535         and a POSIX-compatible malloc into a single function. Set ENOMEM
11536         when returning NULL.
11537         * m4/malloc.m4: New file.
11538         * doc/functions/malloc.texi: Mention the malloc-posix module.
11539         * lib/stdlib_.h (malloc): New declaration.
11540         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
11541         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
11542         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
11543         and HAVE_MALLOC_POSIX.
11544
11545 2007-09-09  Bruno Haible  <bruno@clisp.org>
11546
11547         * modules/realloc-posix: New file.
11548         * modules/realloc (Depends-on): Add realloc-posix.
11549         * lib/realloc.c: Include errno.h.
11550         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
11551         and a POSIX-compatible realloc into a single function. Set ENOMEM
11552         when returning NULL.
11553         * m4/realloc.m4: New file.
11554         * doc/functions/realloc.texi: Mention the realloc-posix module.
11555         * lib/stdlib_.h (realloc): New declaration.
11556         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
11557         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
11558         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
11559         and HAVE_REALLOC_POSIX.
11560
11561 2007-09-09  Bruno Haible  <bruno@clisp.org>
11562
11563         * modules/calloc-posix: New file.
11564         * modules/calloc (Depends-on): Add calloc-posix.
11565         * lib/calloc.c: Include errno.h.
11566         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
11567         and a POSIX-compatible calloc into a single function. Set ENOMEM
11568         when returning NULL.
11569         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
11570         * doc/functions/calloc.texi: Mention the calloc-posix module.
11571         * lib/stdlib_.h (calloc): New declaration.
11572         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
11573         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
11574         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
11575         and HAVE_CALLOC_POSIX.
11576
11577 2007-09-09  Bruno Haible  <bruno@clisp.org>
11578
11579         Allow for modules to show an arbitrary notice.
11580         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
11581         * gnulib-tool: New option --extract-notice.
11582         (func_usage): Document it.
11583         (sed_extract_prog): Update.
11584         (func_get_notice): New function.
11585         (func_modules_notice): New function.
11586         (func_import, func_create_testdir): Invoke it.
11587         Suggested by Jim Meyering.
11588
11589 2007-09-09  Bruno Haible  <bruno@clisp.org>
11590
11591         * gnulib-tool: New options --verbose, --quiet.
11592         (func_usage): Document them.
11593         (verbose): New variable.
11594         (func_execute_command): New function.
11595         (func_import): Don't show the module list and the file list if
11596         $verbose < 0.
11597         (func_create_testdir): Likewise. Use func_execute_command.
11598         (func_create_megatestdir): Use func_execute_command.
11599
11600 2007-09-08  Bruno Haible  <bruno@clisp.org>
11601
11602         * gnulib-tool (func_import): Prefer rsync over wget when available,
11603         for fetching the PO files.
11604
11605 2007-09-08  Bruno Haible  <bruno@clisp.org>
11606
11607         * posix-modules: New file. Portions copied from gnulib-tool.
11608         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
11609
11610 2007-09-08  Jim Meyering  <jim@meyering.net>
11611
11612         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
11613         * lib/fpending.h: Rename from __fpending.h.
11614         * lib/fpending.c: Rename from __fpending.c.
11615         Include "fpending.h", not "__fpending.h".
11616         * lib/__fpending.h, lib/__fpending.c: Remove files.
11617         * modules/fpending (Files): Reflect new file names.
11618         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
11619
11620 2007-09-08  Bruno Haible  <bruno@clisp.org>
11621
11622         * m4/inttypes-h.m4: Remove stub file.
11623
11624 2007-09-07  Simon Josefsson  <simon@josefsson.org>
11625
11626         * doc/headers/stdint.texi: Discuss #include_next issue.
11627
11628 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
11629
11630         * build-aux/bootstrap: Remove obsolete comment about wget --help.
11631
11632 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
11633
11634         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
11635         in variable name.
11636
11637 2007-09-03  Jim Meyering  <jim@meyering.net>
11638
11639         New module: git-version-gen.
11640         * modules/git-version-gen: New file.
11641
11642         Import changes from coreutils for bootstrap script.
11643
11644         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
11645
11646         bootstrap: uses rsync to download the .po files
11647         * build-aux/bootstrap (po_download_command_format): New global.
11648         (download_po_files): Use rsync.
11649         (update_po_files): Don't remove .po files after download,
11650         so future rsync runs can take advantage of the copies.
11651
11652         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
11653
11654         Solve the unnecessary-.po-file-regeneration problem once and for all.
11655         * build-aux/bootstrap (download_po_files): New function, renamed from
11656         get_translations.  Now, downloads, but doesn't update LINGUAS.
11657         (update_po_files): New function.
11658
11659         bootstrap: Ignore more.
11660         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
11661         uniwidth to e.g., lib/.gitignore.
11662         (slurp): Handle the sys_stat_.h -> sys mapping, too.
11663
11664         * build-aux/bootstrap: New setting: vc_ignore.
11665         (insert_sorted_if_absent): Create $file if absent.
11666         Adapt to new, possibly empty, list: $vc_ignore.
11667
11668         bootstrap: generate more ignorable names
11669         * build-aux/bootstrap (slurp): When generating ignorable names,
11670         also map .sin to .sed, .gperf to .c, and .y to .c.
11671
11672 2007-09-03  Jim Meyering  <jim@meyering.net>
11673
11674         * build-aux/git-version-gen: New file, from coreutils.  For details, see
11675         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
11676
11677 2007-09-02  Bruno Haible  <bruno@clisp.org>
11678
11679         Fix mis-recognition of 'mcs' on QNX 6.
11680         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
11681         output contains the string "Mono".
11682         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
11683         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
11684
11685 2007-09-01  Bruno Haible  <bruno@clisp.org>
11686
11687         Fix collision between uniwidth/* and linebreak modules.
11688         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
11689         u32_width): Remove declarations.
11690         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
11691         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
11692         streq3, streq2, streq1, streq0): Remove functions.
11693         (STREQ): Remove macro.
11694         (is_cjk_encoding): Remove function.
11695         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
11696         (uc_width, u8_width, u16_width, u32_width): Remove functions.
11697         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
11698         * NEWS: Document the change.
11699
11700 2007-09-01  Bruno Haible  <bruno@clisp.org>
11701
11702         * lib/streq.h: Add double-inclusion guard.
11703
11704 2007-09-01  Karl Berry  <karl@gnu.org>
11705
11706         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
11707
11708 2007-08-28  Jim Meyering  <jim@meyering.net>
11709
11710         Rename mreadlink_with_size to areadlink_with_size.
11711         * NEWS: Document the change.
11712         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
11713         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
11714         * lib/mreadlink.h: Rename this to...
11715         * lib/areadlink.h: ...this.
11716         * modules/mreadlink-with-size: Rename this to...
11717         * modules/areadlink-with-size: ...this.
11718         * lib/canonicalize.c: Reflect the renaming.
11719         * modules/canonicalize: Likewise.
11720
11721 2007-08-26  Bruno Haible  <bruno@clisp.org>
11722
11723         * gnulib-tool (func_import): When deciding which files to remove,
11724         consider also dangling symbolic links.
11725         Reported by Eric Blake.
11726
11727 2007-08-26  Bruno Haible  <bruno@clisp.org>
11728
11729         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
11730
11731 2007-08-23  Simon Josefsson  <simon@josefsson.org>
11732
11733         * lib/readline.c: Don't include getline.h, the prototype is now
11734         found in stdio.h.
11735
11736 2007-08-23  Jim Meyering  <jim@meyering.net>
11737
11738         Getdelim touchup.
11739         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
11740         around the funlockfile call, since funlockfile never sets errno.
11741         Don't set errno upon failed realloc.
11742
11743 2007-08-22  Eric Blake  <ebb9@byu.net>
11744
11745         Getline touchups.
11746         * lib/getdelim.c (getdelim): Revert regression that required *n to
11747         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
11748         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
11749         getdelim, rather than whether implementation is missing.
11750         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
11751         * lib/stdio_.h (getline): Also declare if replacement is
11752         required.
11753         * doc/functions/getdelim.texi: New file.
11754         * doc/functions/getline.texi: Likewise.
11755         * doc/gnulib.texi (Function Substitutes): Add new files.
11756         Reported by Bruno Haible.
11757
11758 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
11759
11760         * users.txt: Add Guile.
11761
11762 2007-08-22  Eric Blake  <ebb9@byu.net>
11763
11764         * tests/test-getdelim.c (main): Use remove, not unlink.
11765         * tests/test-getline.c (main): Likewise.
11766
11767         Move getline and getdelim into stdio.h, per POSIX 200x.
11768         * modules/getline (Files): Remove getline.h.
11769         (Depends-on): Add stdio.
11770         (configure.ac): Add module indicator.
11771         * modules/getdelim (Files): Remove getdelim.h.
11772         (Depends-on): Add stdio.
11773         (configure.ac): Add module indicator.
11774         * modules/stdio (Makefile.am): Work with new indicators.
11775         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
11776         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
11777         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
11778         * lib/getdelim.h: Delete.
11779         * lib/getline.h: Delete.
11780         * lib/stdio_.h (getdelim, getline): Declare.
11781         * modules/getdelim-tests: New module.
11782         * modules/getline-tests: Likewise.
11783         * tests/test-getdelim.c: New file.
11784         * tests/test-getline.c: Likewise.
11785         * NEWS: Document the change.
11786         * lib/getline.c: Update choice of header.
11787         * lib/csharpcomp.c: Likewise.
11788         * lib/getpass.c: Likewise.
11789         * lib/javacomp.c: Likewise.
11790         * lib/javaversion.c: Likewise.
11791         * lib/yesno.c: Likewise.
11792         * lib/getdelim.c: Likewise.
11793         (getdelim): Set errno on failure, and avoid memory leak.
11794
11795 2007-08-19  Bruno Haible  <bruno@clisp.org>
11796
11797         * modules/closein (Depends-on): Add freadahead.
11798         * lib/closein.c: Include freadahead.h.
11799         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
11800         is zero.
11801
11802 2007-08-19  Bruno Haible  <bruno@clisp.org>
11803
11804         * modules/freadahead-tests: New file.
11805         * tests/test-freadahead.sh: New file.
11806         * tests/test-freadahead.c: New file.
11807
11808         * modules/freadahead: New file.
11809         * lib/freadahead.h: New file.
11810         * lib/freadahead.c: New file.
11811         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
11812         fbufmode, fpurge, freadable, fwritable.
11813
11814 2007-08-19  Eric Blake  <ebb9@byu.net>
11815
11816         Test yesno in combination with closein.
11817         * lib/yesno.c (yesno): Document use of stdin.
11818         * modules/yesno-tests (Files): New module.
11819         * tests/test-yesno.c (main): New file.
11820         * tests/test-yesno.sh: Likewise.
11821
11822 2007-08-19  Bruno Haible  <bruno@clisp.org>
11823
11824         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
11825         * lib/fseeko.c (rpl_fseeko): Likewise.
11826         * lib/fseterr.c (fseterr): Likewise.
11827
11828 2007-08-19  Bruno Haible  <bruno@clisp.org>
11829
11830         * tests/test-lseek.c (main): Disable a test for BeOS.
11831         * doc/functions/lseek.texi: Document the BeOS bug.
11832
11833 2007-08-19  Bruno Haible  <bruno@clisp.org>
11834             Eric Blake  <ebb9@byu.net>
11835
11836         * lib/lseek.c: Include <sys/stat.h>.
11837         (rpl_lseek): Add workaround code also for Unix platforms.
11838         Needed for BeOS.
11839         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
11840         * doc/functions/lseek.texi: Document BeOS definiency.
11841
11842 2007-08-18  Bruno Haible  <bruno@clisp.org>
11843
11844         * modules/fstrcmp-tests: New file.
11845         * tests/test-fstrcmp.c: New file.
11846
11847 2007-08-18  Bruno Haible  <bruno@clisp.org>
11848
11849         * modules/fstrcmp: New file, from GNU gettext with modifications.
11850         * lib/fstrcmp.h: New file, from GNU gettext.
11851         * lib/fstrcmp.c: New file, from GNU gettext.
11852         * MODULES.html.sh (String handling): Add fstrcmp.
11853
11854 2007-08-18  Bruno Haible  <bruno@clisp.org>
11855
11856         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
11857         'bool'.
11858         (diag, compareseq): Remove const from the ctxt argument.
11859         (USE_HEURISTIC): Undefine at the end.
11860
11861 2007-08-18  Jim Meyering  <jim@meyering.net>
11862
11863         New file: lib/idcache.h
11864         * NEWS: Mention the addition.
11865         * modules/idcache (Files): Add lib/idcache.h
11866         * lib/idcache.c: Include "idcache.h".
11867         Don't include <sys/types.h>.
11868         Add a FIXME comment.
11869         Move file-scoped "static" declarations to the top.
11870         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
11871
11872 2007-08-17  Bruno Haible  <bruno@clisp.org>
11873         and Paul Eggert  <eggert@cs.ucla.edu>
11874
11875         * MODULES.html.sh: Add diffseq.
11876         * modules/diffseq: New file.
11877         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
11878         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
11879
11880 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
11881
11882         Import changes from coreutils for bootstrap script.
11883
11884         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
11885
11886         * build-aux/bootstrap (slurp): Work even in environments where
11887         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
11888         current code does not slurp files whose names start with ".", and
11889         this looks like it might be a troublesome area.
11890
11891         2007-07-11  Jim Meyering  <jim@meyering.net>
11892
11893         If there's a GPL vN copyright comment, require that N == 3.
11894
11895         2007-07-08  Jim Meyering  <jim@meyering.net>
11896
11897         Run the coreutils-specific code only if tests/Makefile.am.in exists.
11898         * build-aux/bootstrap (mam_template): Move definition out of loop.
11899
11900         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
11901
11902         * build-aux/bootstrap (symlink_to_dir): Rename function from
11903         symlink_to_gnulib.  Add a directory parameter.  Update all
11904         callers.
11905         (cp_mark_as_generated): Also check for -- and link to -- files in
11906         gl/.
11907
11908         2007-07-08  Jim Meyering  <jim@meyering.net>
11909
11910         Adapt to deeper hierarchy in gnulib.
11911         * build-aux/bootstrap (symlink_to_dir): If the destination
11912         directory doesn't exist, create it. This is required at least for
11913         "lib/uniwidth/cjk.h".
11914
11915         2007-05-15  Jim Meyering  <jim@meyering.net>
11916
11917         * build-aux/bootstrap: Now that generated Makefile.am files
11918         are no longer under version control, they must be created at
11919         bootstrap time.
11920
11921 2007-08-14  Ben Pfaff  <blp@gnu.org>
11922
11923         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
11924
11925 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
11926
11927         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
11928         given the changes below.
11929         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
11930         even on hosts that have padding bits beyond the supported 64.
11931
11932 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
11933
11934         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
11935         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
11936         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
11937         depends on it.
11938         (xstrtol_error): Remove.
11939         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
11940         but with a different signature.
11941         (ATTRIBUTE_NORETURN, __attribute__): New macros.
11942         * lib/xstrtol-error.c: Include exitfail.h.
11943         (xstrtol_fatal): New function, with a different signature from the
11944         old xstrtol_error, so that the caller need not worry about passing
11945         in an exit status, or about storage management of the option argument.
11946         (xstrtol_error): Now a static function.  Redo signature to
11947         implement xstrtol_fatal.  Output the correct number of hyphens in
11948         front of the option so that the caller need not worry about
11949         storage management.
11950         (N_): New macro.
11951         (_): Remove; not used now.
11952         * modules/xstrtol: Depend on getopt.
11953         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
11954         of old STRTOL_FATAL_ERROR macro.
11955         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
11956         of test program.
11957         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
11958         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
11959
11960 2007-08-08  Eric Blake  <ebb9@byu.net>
11961
11962         * lib/xstrtol-error.c: Add missing include.
11963
11964         Move xstrtol messages into gnulib domain, when --pobase is used.
11965         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
11966         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
11967         * modules/xstrtol (Files): Distribute new file.
11968         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
11969         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
11970         * tests/test-xstrtol.c: ...into new file.
11971         * tests/test-xstrtoul.c: Also test xstrtoul.
11972         * tests/test-xstrtoimax.c: Also test xstrtoimax.
11973         * tests/test-xstrtoumax.c: Also test xstrtoumax.
11974         * tests/test-xstrtol.sh: Drive the tests.
11975         * tests/test-xstrtoimax.sh: Likewise.
11976         * tests/test-xstrtoumax.sh: Likewise.
11977         * modules/xstrtol-tests: New module.
11978         * modules/xstrtoimax-tests: Likewise.
11979         * modules/xstrtoumax-tests: Likewise.
11980
11981 2007-08-08  Jim Meyering  <jim@meyering.net>
11982
11983         New function: mfile_name_concat.
11984         * lib/filenamecat.c (mfile_name_concat): New function, just like
11985         file_name_concat, but return NULL upon failure rather than exiting
11986         with a diagnostic.
11987         * lib/filenamecat.h: Declare it.
11988
11989 2007-08-07  Bruno Haible  <bruno@clisp.org>
11990
11991         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
11992         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
11993         warning from gcc.
11994         Reported by Eric Blake.
11995
11996 2007-08-07  Simon Josefsson  <simon@josefsson.org>
11997
11998         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
11999         * modules/crypto/arcfour (License): Likewise.
12000         * modules/crypto/des-tests (License): Likewise.
12001         * modules/crypto/gc-arctwo-tests (License): Likewise.
12002         * modules/crypto/gc-des-tests (License): Likewise.
12003         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
12004         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
12005         * modules/crypto/gc-md2-tests (License): Likewise.
12006         * modules/crypto/gc-md4-tests (License): Likewise.
12007         * modules/crypto/gc-md5-tests (License): Likewise.
12008         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
12009         * modules/crypto/gc-rijndael-tests (License): Likewise.
12010         * modules/crypto/gc-sha1-tests (License): Likewise.
12011         * modules/crypto/gc-tests (License): Likewise.
12012         * modules/crypto/hmac-md5 (License): Likewise.
12013         * modules/crypto/hmac-sha1 (License): Likewise.
12014         * modules/crypto/md2-tests (License): Likewise.
12015         * modules/crypto/md4-tests (License): Likewise.
12016         * modules/crypto/md5 (License): Likewise.
12017         * modules/crypto/rijndael (License): Likewise.
12018         * modules/crypto/sha1 (License): Likewise.
12019         * modules/memxor (License): Likewise.
12020
12021 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
12022         and Bruno Haible  <bruno@clisp.org>
12023
12024         * NEWS: Describe interface changes to human, xstrtol.
12025         * lib/human.h: Include <xstrtol.h>.
12026         (human_options): Return enum strtol_error, not int.  Remove
12027         bool arg; take int * instead.
12028         * lib/human.c: Don't include "gettext.h".
12029         (_): Remove; no longer used.
12030         Don't include <xstrtol.h>, since human.h does it.
12031         (human_options): Adjust to abovementioned interface changes.
12032         Do not report error to stderr; that's now the caller's
12033         responsibility.
12034         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
12035         interface change.
12036         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
12037         Str, Argument_type_string.  All uses changed.  Put " argument"
12038         in diagnostics to make them clearer.  Change wording of suffix
12039         message for clarity.
12040         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
12041         Argument_type_string.
12042         (STRTOL_FATAL_WARN): Remove; no longer used.
12043         * modules/human (Depends-on): Remove gettext-h.
12044
12045 2007-08-06  Simon Josefsson  <simon@josefsson.org>
12046
12047         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
12048
12049 2007-07-31  Bruno Haible  <bruno@clisp.org>
12050
12051         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
12052         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
12053         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
12054
12055 2007-07-31  Bruno Haible  <bruno@clisp.org>
12056
12057         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
12058         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
12059
12060 2007-07-30  Bruno Haible  <bruno@clisp.org>
12061
12062         * modules/base64 (License): Use the synonymous term "LGPLv2+".
12063         * modules/c-ctype (License): Likewise.
12064         * modules/c-strcase (License): Likewise.
12065         * modules/check-version (License): Likewise.
12066         * modules/iconv (License): Likewise.
12067         * modules/iconv_open (License): Likewise.
12068         * modules/read-file (License): Likewise.
12069         * modules/striconv (License): Likewise.
12070         * modules/strverscmp (License): Likewise.
12071         * modules/vasprintf (License): Likewise.
12072         * modules/crypto/des (License): Likewise.
12073         * modules/crypto/gc (License): Likewise.
12074         * modules/crypto/gc-arcfour (License): Likewise.
12075         * modules/crypto/gc-arctwo (License): Likewise.
12076         * modules/crypto/gc-des (License): Likewise.
12077         * modules/crypto/gc-hmac-md5 (License): Likewise.
12078         * modules/crypto/gc-hmac-sha1 (License): Likewise.
12079         * modules/crypto/gc-md2 (License): Likewise.
12080         * modules/crypto/gc-md4 (License): Likewise.
12081         * modules/crypto/gc-md5 (License): Likewise.
12082         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
12083         * modules/crypto/gc-random (License): Likewise.
12084         * modules/crypto/gc-rijndael (License): Likewise.
12085         * modules/crypto/gc-sha1 (License): Likewise.
12086         * modules/crypto/md2 (License): Likewise.
12087         * modules/crypto/md4 (License): Likewise.
12088
12089 2007-07-30  Jim Meyering  <jim@meyering.net>
12090
12091         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
12092         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
12093         it has valid stat data.  This bug would cause du not to count the
12094         sizes of inaccessible directories.
12095         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
12096         in <http://bugzilla.redhat.com/250077>.
12097
12098 2007-07-25  Peter O'Gorman  <peter@pogma.com>
12099             Bruno Haible  <bruno@clisp.org>
12100
12101         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
12102         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
12103         #include_next, gives a diagnostic about it, but reports no error in
12104         the exit code.
12105         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
12106
12107 2007-07-24  Ben Pfaff  <blp@gnu.org>
12108
12109         Improve name: "count-one-bits" is better than "popcount".
12110         * MODULES.html.sh: Update name.
12111         * lib/popcount.h: Renamed lib/count-one-bits.h.
12112         (popcount): Renamed count_one_bits.
12113         (popcountl): Renamed count_one_bits_l.
12114         (popcountll): Renamed count_one_bits_ll.
12115         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
12116         * modules/popcount: Renamed module/count-one-bits.
12117         * modules/popcount-tests: Renamed module/count-one-bits-tests.
12118         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
12119
12120 2007-07-23  Ben Pfaff  <blp@gnu.org>
12121
12122         * lib/popcount.h (popcount32): Reduce size of constants, to allow
12123         better code generation, and add U to large constants to avoid
12124         warnings, in non-GCC case.
12125         Suggested by Bruno Haible.
12126
12127 2007-07-23  Ben Pfaff  <blp@gnu.org>
12128
12129         * lib/popcount.h: Use verify_true instead of if...abort.
12130         * modules/popcount: Depend on verify module.
12131         Suggested by Jim Meyering.
12132
12133 2007-07-23  Bruno Haible  <bruno@clisp.org>
12134
12135         * gnulib-tool (func_import): Create a .cvsignore file also when the
12136         directory is not yet in CVS but the toplevel directory is. When
12137         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
12138         Reported by Karl Berry.
12139
12140 2007-07-22  Ben Pfaff  <blp@gnu.org>
12141
12142         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
12143         case.
12144         Suggested by Eric Blake.
12145
12146 2007-07-22  Ben Pfaff  <blp@gnu.org>
12147
12148         New module: popcount.
12149         * MODULES.html.sh: Add popcount.
12150         * modules/popcount: New file.
12151         * modules/popcount-tests: New file.
12152         * tests/test-popcount.c: New file.
12153         * lib/popcount.h: New file.
12154         * m4/popcount.m4: New file.
12155
12156 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
12157
12158         * build-aux/announce-gen: Update to GPLv3.
12159
12160         * build-aux/config.guess: Update from config.
12161
12162 2007-07-21  Bruno Haible  <bruno@clisp.org>
12163
12164         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
12165         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
12166
12167 2007-07-20  Jim Meyering  <jim@meyering.net>
12168
12169         * check-module: Diagnose a self-dependency.
12170
12171 2007-07-19  Bruno Haible  <bruno@clisp.org>
12172
12173         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
12174         empty.
12175         Reported by Eric Blake.
12176
12177 2007-07-18  Bruno Haible  <bruno@clisp.org>
12178
12179         * gnulib-tool: New options --po-base, --po-domain.
12180         (func_usage): Document them.
12181         (pobase, po_domain): New variables.
12182         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
12183         DEFAULT_TEXT_DOMAIN.
12184         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
12185         (func_import): Consider pobase and po_domain. Create a po/ directory.
12186         (func_create_testdir): Set pobase and po_domain to empty.
12187         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
12188         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
12189
12190 2007-07-18  Bruno Haible  <bruno@clisp.org>
12191
12192         * gnulib-tool (func_get_automake_snippet): Synthesize also an
12193         EXTRA_DIST augmentation for files in build-aux/.
12194
12195 2007-07-16  Bruno Haible  <bruno@clisp.org>
12196
12197         * modules/lseek (License): Use the synonymous term "LGPLv2+".
12198         * modules/getdelim (License): Likewise.
12199
12200 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
12201
12202         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
12203         * modules/d-type (License): Likewise.
12204         * modules/extensions (License): Likewise.
12205         * modules/fnmatch (License): Likewise.
12206         * modules/fseeko (License): Likewise.
12207         * modules/getaddrinfo (License): Likewise.
12208         * modules/getline (License): Likewise.
12209         * modules/getlogin_r (License): Likewise.
12210         * modules/getpass (License): Likewise.
12211         * modules/gettimeofday (License): Likewise.
12212         * modules/glob (License): Likewise.
12213         * modules/inet_ntop (License): Likewise.
12214         * modules/malloc (License): Likewise.
12215         * modules/malloca (License): Likewise.
12216         * modules/memmem (License): Likewise.
12217         * modules/mempcpy (License): Likewise.
12218         * modules/memset (License): Likewise.
12219         * modules/minmax (License): Likewise.
12220         * modules/mktime (License): Likewise.
12221         * modules/netinet_in (License): Likewise.
12222         * modules/pathmax (License): Likewise.
12223         * modules/poll (License): Likewise.
12224         * modules/regex (License): Likewise.
12225         * modules/snprintf (License): Likewise.
12226         * modules/stdbool (License): Likewise.
12227         * modules/stdint (License): Likewise.
12228         * modules/stdio (License): Likewise.
12229         * modules/strcase (License): Likewise.
12230         * modules/strcasestr (License): Likewise.
12231         * modules/strdup (License): Likewise.
12232         * modules/string (License): Likewise.
12233         * modules/strndup (License): Likewise.
12234         * modules/strnlen (License): Likewise.
12235         * modules/strpbrk (License): Likewise.
12236         * modules/strptime (License): Likewise.
12237         * modules/strsep (License): Likewise.
12238         * modules/sys_select (License): Likewise.
12239         * modules/sys_socket (License): Likewise.
12240         * modules/sys_stat (License): Likewise.
12241         * modules/sys_time (License): Likewise.
12242         * modules/time (License): Likewise.
12243         * modules/time_r (License): Likewise.
12244         * modules/timegm (License): Likewise.
12245         * modules/unistd (License): Likewise.
12246         * modules/vsnprintf (License): Likewise.
12247         * modules/wctype (License): Likewise.
12248
12249 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12250
12251         * modules/argz (License): LGPLv2+.
12252
12253 2007-07-15  Karl Berry  <karl@gnu.org>
12254
12255         * doc/gnulib.texi: revise node structure per new fdl.texi.
12256
12257 2007-07-14  Bruno Haible  <bruno@clisp.org>
12258
12259         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
12260         the output file.
12261         * lib/uniname/uninames.h: Regenerated.
12262
12263 2007-07-14  Karl Berry  <karl@gnu.org>
12264
12265         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
12266         omitting sectioning and index commands.
12267
12268 2007-07-13  Bruno Haible  <bruno@clisp.org>
12269
12270         New gnulib-tool option --more-symlinks.
12271         * gnulib-tool (func_usage): Document --more-symlinks.
12272         (do_copyrights): New variable.
12273         Recognize option --more-symlinks.
12274         (func_import): Don't add a copyright notice transform to
12275         sed_transform_lib_file if do_copyrights is empty.
12276
12277 2007-07-13  Bruno Haible  <bruno@clisp.org>
12278
12279         * lib/vasnprintf.c (decimal_point_char): Define also if
12280         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
12281         && !NEED_PRINTF_DIRECTIVE_A.
12282         Reported by Clemens Koller <clemens.koller@anagramm.de> via
12283         Gary V. Vaughan <gary@gnu.org>.
12284
12285 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
12286
12287         * lib/inttypes_.h: Undo previous change, since it was fixed
12288         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
12289
12290 2007-07-13  Bruno Haible  <bruno@clisp.org>
12291
12292         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
12293         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
12294
12295 2007-07-13  Jim Meyering  <jim@meyering.net>
12296
12297         df: Don't fail for Tru64's "file-on-file mount".
12298         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
12299         so we fall through and use statfs instead.  Details here:
12300         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
12301         Reported by Albert Chin.
12302
12303 2007-07-13  Bruno Haible  <bruno@clisp.org>
12304
12305         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
12306         * modules/configmake (License): Likewise.
12307         * modules/gettext (License): Likewise.
12308         * modules/gettext-h (License): Likewise.
12309         * modules/include_next (License): Likewise.
12310         * modules/link-warning (License): Likewise.
12311         * modules/localcharset (License): Likewise.
12312         * modules/localename (License): Likewise.
12313         * modules/lock (License): Likewise.
12314         * modules/relocatable-lib-lgpl (License): Likewise.
12315         * modules/size_max (License): Likewise.
12316         * modules/vasnprintf (License): Likewise.
12317         * modules/wchar (License): Likewise.
12318         * modules/xsize (License): Likewise.
12319
12320 2007-07-13  Bruno Haible  <bruno@clisp.org>
12321
12322         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
12323         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
12324
12325 2007-07-12  Bruno Haible  <bruno@clisp.org>
12326
12327         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
12328         in the modules files.
12329
12330 2007-07-11  Karl Berry  <karl@gnu.org>
12331
12332         * MODULES.html.sh (func_module): use
12333          sed -e '\|^'"${includefile}"'$|d'
12334          instead of /.../d, to avoid errors on $includefile's containing /.
12335
12336 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
12337
12338         * gnulib-tool (func_import): Avoid duplication of --avoid
12339         statements
12340         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
12341         names to `_' in variable names.
12342
12343 2007-07-10  Eric Blake  <ebb9@byu.net>
12344
12345         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
12346         * NEWS: Document this change.
12347
12348 2007-07-08  Bruno Haible  <bruno@clisp.org>
12349
12350         Update to Unicode 5.0.
12351         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
12352         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
12353         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
12354         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
12355         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
12356         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
12357         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
12358         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
12359         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
12360         U+10A3F, U+1D242..U+1D244.
12361         (nonspacing_table_ind): Update.
12362         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
12363         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
12364
12365 2007-07-08  Bruno Haible  <bruno@clisp.org>
12366
12367         Update to Unicode 5.0.
12368         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
12369         code transform. Extend the name index field of unicode_name_to_code and
12370         unicode_code_to_name from 16 to 24 bits.
12371         * lib/uniname/uniname.c (unicode_character_name,
12372         unicode_name_character): Add the range 0x12xxx to the code transform.
12373         * lib/uniname/uninames.h: Regenerated.
12374         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
12375
12376 2007-07-07  Bruno Haible  <bruno@clisp.org>
12377
12378         * modules/wcwidth-tests: New file.
12379         * tests/test-wcwidth.c: New file.
12380
12381         Work around MacOS X wcwidth() bug.
12382         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
12383         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
12384         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
12385         original wcwidth in non-UTF-8 locales.
12386         * modules/wcwidth (Depends-on): Add localcharset, streq,
12387         uniwidth/width.
12388         * doc/functions/wcwidth.texi: Update.
12389
12390 2007-07-07  Bruno Haible  <bruno@clisp.org>
12391
12392         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
12393         (wcwidth): New declaration.
12394         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
12395         macros.
12396         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
12397         here. Prepare for creating <wchar.h> unconditionally.
12398         * modules/wchar (Depends-on): Add link-warning.
12399         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
12400         REPLACE_WCWIDTH, and GL_LINK_WARNING.
12401         * lib/wcwidth.h: Remove file.
12402         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
12403         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
12404         * modules/wcwidth (Files): Remove lib/wcwidth.h.
12405         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
12406         (Include): Replace wcwidth.h with <wchar.h>.
12407         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
12408         * lib/mbchar.h: Don't include wcwidth.h.
12409         * lib/mbswidth.c: Likewise.
12410         * NEWS: Mention the change.
12411
12412 2007-07-07  Bruno Haible  <bruno@clisp.org>
12413
12414         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
12415         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
12416         definition with an external declaration.
12417         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
12418         defined as a function. Remove AC_C_INLINE requirement.
12419         * modules/wcwidth (Files): Add lib/wcwidth.c.
12420         (Makefile.am): Remove redundant statement.
12421
12422 2007-07-07  Bruno Haible  <bruno@clisp.org>
12423
12424         * MODULES.html.sh (Unicode string functions): Add the new modules.
12425
12426         * tests/uniwidth/test-u32-strwidth.c: New file.
12427         * modules/uniwidth/u32-strwidth-tests: New file.
12428
12429         * lib/uniwidth/u32-strwidth.c: New file.
12430         * modules/uniwidth/u32-strwidth: New file.
12431
12432         * tests/uniwidth/test-u16-strwidth.c: New file.
12433         * modules/uniwidth/u16-strwidth-tests: New file.
12434
12435         * lib/uniwidth/u16-strwidth.c: New file.
12436         * modules/uniwidth/u16-strwidth: New file.
12437
12438         * tests/uniwidth/test-u8-strwidth.c: New file.
12439         * modules/uniwidth/u8-strwidth-tests: New file.
12440
12441         * lib/uniwidth/u8-strwidth.c: New file.
12442         * modules/uniwidth/u8-strwidth: New file.
12443
12444         * tests/uniwidth/test-u32-width.c: New file.
12445         * modules/uniwidth/u32-width-tests: New file.
12446
12447         * lib/uniwidth/u32-width.c: New file.
12448         * modules/uniwidth/u32-width: New file.
12449
12450         * tests/uniwidth/test-u16-width.c: New file.
12451         * modules/uniwidth/u16-width-tests: New file.
12452
12453         * lib/uniwidth/u16-width.c: New file.
12454         * modules/uniwidth/u16-width: New file.
12455
12456         * tests/uniwidth/test-u8-width.c: New file.
12457         * modules/uniwidth/u8-width-tests: New file.
12458
12459         * lib/uniwidth/u8-width.c: New file.
12460         * modules/uniwidth/u8-width: New file.
12461
12462         * tests/uniwidth/test-uc_width.c: New file.
12463         * modules/uniwidth/width-tests: New file.
12464
12465         * lib/uniwidth/width.c: New file, from GNU libiconv.
12466         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
12467         * modules/uniwidth/width: New file.
12468
12469         * lib/uniwidth.h: New file, from GNU libiconv.
12470         * modules/uniwidth/base: New file.
12471
12472 2007-07-07  Bruno Haible  <bruno@clisp.org>
12473
12474         * lib/uniname.h: New file, from GNU gettext.
12475         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
12476         * lib/uniname/uninames.h: New file, from GNU gettext.
12477         * lib/uniname/uniname.c: New file, from GNU gettext.
12478         * tests/uniname/test-uninames.sh: New file.
12479         * tests/uniname/test-uninames.c: New file, from GNU gettext.
12480         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
12481         * modules/uniname/base: New file.
12482         * modules/uniname/uniname: New file.
12483         * modules/uniname/uniname-tests: New file.
12484         * MODULES.html.sh (Unicode string functions): Add the new modules.
12485
12486 2007-07-06  Bruno Haible  <bruno@clisp.org>
12487
12488         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
12489
12490 2007-07-06  Bruno Haible  <bruno@clisp.org>
12491
12492         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
12493         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
12494         includes <cygwin/sys_time.h> which includes <sys/select.h> which
12495         include <sys/time.h>.
12496         Reported by Eric Blake.
12497
12498 2007-07-06  Eric Blake  <ebb9@byu.net>
12499
12500         Fix testing canonicalize on cygwin.
12501         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
12502         Revert patch from 2007-06-19.
12503         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
12504         canonicalize module is also in use.
12505         * tests/test-canonicalize.c: New file.
12506         * tests/test-canonicalize.sh: Likewise.
12507         * modules/canonicalize-tests: Likewise.
12508
12509 2007-07-06  Jim Meyering  <jim@meyering.net>
12510
12511         * lib/getugroups.c (getugroups): Detect getgrent failure.
12512         Adjust comment to reflect reality: this function may return -1.
12513
12514 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
12515
12516         * build-aux/bootstrap (TP_URL,get_translations): Update to use
12517         the new TP address.
12518         (usage): Fix typo
12519         (gnulib_mk): New variable.
12520
12521 2007-07-05  Jim Meyering  <jim@meyering.net>
12522
12523         Don't let endgrent clobber errno, no matter how improbable.
12524         * lib/getugroups.c (getugroups): Save and restore errno around
12525         endgrent call.
12526
12527         Close the group DB even when failing with 2^31 or more members.
12528         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
12529
12530 2007-07-04  Jim Meyering  <jim@meyering.net>
12531
12532         * lib/getugroups.h: New file.
12533         * lib/getugroups.c: Include "getugroups.h".
12534         Remove uses of "register" keyword.
12535         Move local variable, "cp", down into scope where used.
12536         Give "username" parameter the "const" attribute.
12537         * modules/getugroups (Files): Add lib/getugroups.h
12538
12539 2007-07-04  Karl Berry  <karl@gnu.org>
12540
12541         * MODULES.html.sh (func_all_modules): Complete rename of
12542         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
12543
12544 2007-07-02  Bruno Haible  <bruno@clisp.org>
12545
12546         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
12547         mode, when inttypes.h comes from gnulib.
12548         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
12549
12550 2007-07-02  Simon Josefsson  <simon@josefsson.org>
12551
12552         * NEWS: Mention lgpl module name change.
12553
12554         * modules/lgpl-2.1: Renamed from lgpl.
12555
12556         * NEWS: Mention gpl module name change.
12557
12558         * modules/gpl-3.0: New file, based on gpl-2.0.
12559
12560         * modules/gpl-2.0: Renamed from gpl.
12561
12562         * modules/gpl: Fix filename, doc/gpl.texi is now found at
12563         doc/gpl-2.0.texi.
12564
12565 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
12566
12567         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
12568         #define __STDC_LIMIT_MACROS temporarily while including
12569         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
12570         Problem reported by Joel E. Denny in
12571         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
12572
12573 2007-07-01  Bruno Haible  <bruno@clisp.org>
12574
12575         * lib/unistdio.h: New file.
12576         * lib/unistdio/u-asnprintf.h: New file.
12577         * lib/unistdio/u-asprintf.h: New file.
12578         * lib/unistdio/u-printf-args.c: New file.
12579         * lib/unistdio/u-printf-args.h: New file.
12580         * lib/unistdio/u-printf-parse.h: New file.
12581         * lib/unistdio/u-snprintf.h: New file.
12582         * lib/unistdio/u-sprintf.h: New file.
12583         * lib/unistdio/u-vasprintf.h: New file.
12584         * lib/unistdio/u-vsnprintf.h: New file.
12585         * lib/unistdio/u-vsprintf.h: New file.
12586         * lib/unistdio/ulc-asnprintf.c: New file.
12587         * lib/unistdio/ulc-asprintf.c: New file.
12588         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
12589         * lib/unistdio/ulc-printf-parse.c: New file.
12590         * lib/unistdio/ulc-snprintf.c: New file.
12591         * lib/unistdio/ulc-sprintf.c: New file.
12592         * lib/unistdio/ulc-vasnprintf.c: New file.
12593         * lib/unistdio/ulc-vasprintf.c: New file.
12594         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
12595         * lib/unistdio/ulc-vsnprintf.c: New file.
12596         * lib/unistdio/ulc-vsprintf.c: New file.
12597         * lib/unistdio/u8-asnprintf.c: New file.
12598         * lib/unistdio/u8-asprintf.c: New file.
12599         * lib/unistdio/u8-printf-parse.c: New file.
12600         * lib/unistdio/u8-snprintf.c: New file.
12601         * lib/unistdio/u8-sprintf.c: New file.
12602         * lib/unistdio/u8-vasnprintf.c: New file.
12603         * lib/unistdio/u8-vasprintf.c: New file.
12604         * lib/unistdio/u8-vsnprintf.c: New file.
12605         * lib/unistdio/u8-vsprintf.c: New file.
12606         * lib/unistdio/u8-u8-asnprintf.c: New file.
12607         * lib/unistdio/u8-u8-asprintf.c: New file.
12608         * lib/unistdio/u8-u8-snprintf.c: New file.
12609         * lib/unistdio/u8-u8-sprintf.c: New file.
12610         * lib/unistdio/u8-u8-vasnprintf.c: New file.
12611         * lib/unistdio/u8-u8-vasprintf.c: New file.
12612         * lib/unistdio/u8-u8-vsnprintf.c: New file.
12613         * lib/unistdio/u8-u8-vsprintf.c: New file.
12614         * lib/unistdio/u16-asnprintf.c: New file.
12615         * lib/unistdio/u16-asprintf.c: New file.
12616         * lib/unistdio/u16-printf-parse.c: New file.
12617         * lib/unistdio/u16-snprintf.c: New file.
12618         * lib/unistdio/u16-sprintf.c: New file.
12619         * lib/unistdio/u16-vasnprintf.c: New file.
12620         * lib/unistdio/u16-vasprintf.c: New file.
12621         * lib/unistdio/u16-vsnprintf.c: New file.
12622         * lib/unistdio/u16-vsprintf.c: New file.
12623         * lib/unistdio/u16-u16-asnprintf.c: New file.
12624         * lib/unistdio/u16-u16-asprintf.c: New file.
12625         * lib/unistdio/u16-u16-snprintf.c: New file.
12626         * lib/unistdio/u16-u16-sprintf.c: New file.
12627         * lib/unistdio/u16-u16-vasnprintf.c: New file.
12628         * lib/unistdio/u16-u16-vasprintf.c: New file.
12629         * lib/unistdio/u16-u16-vsnprintf.c: New file.
12630         * lib/unistdio/u16-u16-vsprintf.c: New file.
12631         * lib/unistdio/u32-asnprintf.c: New file.
12632         * lib/unistdio/u32-asprintf.c: New file.
12633         * lib/unistdio/u32-printf-parse.c: New file.
12634         * lib/unistdio/u32-snprintf.c: New file.
12635         * lib/unistdio/u32-sprintf.c: New file.
12636         * lib/unistdio/u32-vasnprintf.c: New file.
12637         * lib/unistdio/u32-vasprintf.c: New file.
12638         * lib/unistdio/u32-vsnprintf.c: New file.
12639         * lib/unistdio/u32-vsprintf.c: New file.
12640         * lib/unistdio/u32-u32-asnprintf.c: New file.
12641         * lib/unistdio/u32-u32-asprintf.c: New file.
12642         * lib/unistdio/u32-u32-snprintf.c: New file.
12643         * lib/unistdio/u32-u32-sprintf.c: New file.
12644         * lib/unistdio/u32-u32-vasnprintf.c: New file.
12645         * lib/unistdio/u32-u32-vasprintf.c: New file.
12646         * lib/unistdio/u32-u32-vsnprintf.c: New file.
12647         * lib/unistdio/u32-u32-vsprintf.c: New file.
12648         * tests/unistdio/test-ulc-asnprintf1.c: New file.
12649         * tests/unistdio/test-ulc-asnprintf1.h: New file.
12650         * tests/unistdio/test-ulc-printf1.h: New file.
12651         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
12652         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
12653         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
12654         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
12655         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
12656         * tests/unistdio/test-ulc-vasprintf1.c: New file.
12657         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
12658         * tests/unistdio/test-ulc-vsprintf1.c: New file.
12659         * tests/unistdio/test-u8-asnprintf1.c: New file.
12660         * tests/unistdio/test-u8-asnprintf1.h: New file.
12661         * tests/unistdio/test-u8-printf1.h: New file.
12662         * tests/unistdio/test-u8-vasnprintf1.c: New file.
12663         * tests/unistdio/test-u8-vasnprintf2.c: New file.
12664         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
12665         * tests/unistdio/test-u8-vasnprintf3.c: New file.
12666         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
12667         * tests/unistdio/test-u8-vasprintf1.c: New file.
12668         * tests/unistdio/test-u8-vsnprintf1.c: New file.
12669         * tests/unistdio/test-u8-vsprintf1.c: New file.
12670         * tests/unistdio/test-u16-asnprintf1.c: New file.
12671         * tests/unistdio/test-u16-asnprintf1.h: New file.
12672         * tests/unistdio/test-u16-printf1.h: New file.
12673         * tests/unistdio/test-u16-vasnprintf1.c: New file.
12674         * tests/unistdio/test-u16-vasnprintf2.c: New file.
12675         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
12676         * tests/unistdio/test-u16-vasnprintf3.c: New file.
12677         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
12678         * tests/unistdio/test-u16-vasprintf1.c: New file.
12679         * tests/unistdio/test-u16-vsnprintf1.c: New file.
12680         * tests/unistdio/test-u16-vsprintf1.c: New file.
12681         * tests/unistdio/test-u32-asnprintf1.c: New file.
12682         * tests/unistdio/test-u32-asnprintf1.h: New file.
12683         * tests/unistdio/test-u32-printf1.h: New file.
12684         * tests/unistdio/test-u32-vasnprintf1.c: New file.
12685         * tests/unistdio/test-u32-vasnprintf2.c: New file.
12686         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
12687         * tests/unistdio/test-u32-vasnprintf3.c: New file.
12688         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
12689         * tests/unistdio/test-u32-vasprintf1.c: New file.
12690         * tests/unistdio/test-u32-vsnprintf1.c: New file.
12691         * tests/unistdio/test-u32-vsprintf1.c: New file.
12692         * modules/unistdio/base: New file.
12693         * modules/unistdio/u-printf-args: New file.
12694         * modules/unistdio/ulc-asnprintf: New file.
12695         * modules/unistdio/ulc-asprintf: New file.
12696         * modules/unistdio/ulc-fprintf: New file.
12697         * modules/unistdio/ulc-printf-parse: New file.
12698         * modules/unistdio/ulc-snprintf: New file.
12699         * modules/unistdio/ulc-sprintf: New file.
12700         * modules/unistdio/ulc-vasnprintf: New file.
12701         * modules/unistdio/ulc-vasprintf: New file.
12702         * modules/unistdio/ulc-vfprintf: New file.
12703         * modules/unistdio/ulc-vsnprintf: New file.
12704         * modules/unistdio/ulc-vsprintf: New file.
12705         * modules/unistdio/u8-asnprintf: New file.
12706         * modules/unistdio/u8-asprintf: New file.
12707         * modules/unistdio/u8-printf-parse: New file.
12708         * modules/unistdio/u8-snprintf: New file.
12709         * modules/unistdio/u8-sprintf: New file.
12710         * modules/unistdio/u8-vasnprintf: New file.
12711         * modules/unistdio/u8-vasprintf: New file.
12712         * modules/unistdio/u8-vsnprintf: New file.
12713         * modules/unistdio/u8-vsprintf: New file.
12714         * modules/unistdio/u8-u8-asnprintf: New file.
12715         * modules/unistdio/u8-u8-asprintf: New file.
12716         * modules/unistdio/u8-u8-snprintf: New file.
12717         * modules/unistdio/u8-u8-sprintf: New file.
12718         * modules/unistdio/u8-u8-vasnprintf: New file.
12719         * modules/unistdio/u8-u8-vasprintf: New file.
12720         * modules/unistdio/u8-u8-vsnprintf: New file.
12721         * modules/unistdio/u8-u8-vsprintf: New file.
12722         * modules/unistdio/u16-asnprintf: New file.
12723         * modules/unistdio/u16-asprintf: New file.
12724         * modules/unistdio/u16-printf-parse: New file.
12725         * modules/unistdio/u16-snprintf: New file.
12726         * modules/unistdio/u16-sprintf: New file.
12727         * modules/unistdio/u16-vasnprintf: New file.
12728         * modules/unistdio/u16-vasprintf: New file.
12729         * modules/unistdio/u16-vsnprintf: New file.
12730         * modules/unistdio/u16-vsprintf: New file.
12731         * modules/unistdio/u16-u16-asnprintf: New file.
12732         * modules/unistdio/u16-u16-asprintf: New file.
12733         * modules/unistdio/u16-u16-snprintf: New file.
12734         * modules/unistdio/u16-u16-sprintf: New file.
12735         * modules/unistdio/u16-u16-vasnprintf: New file.
12736         * modules/unistdio/u16-u16-vasprintf: New file.
12737         * modules/unistdio/u16-u16-vsnprintf: New file.
12738         * modules/unistdio/u16-u16-vsprintf: New file.
12739         * modules/unistdio/u32-asnprintf: New file.
12740         * modules/unistdio/u32-asprintf: New file.
12741         * modules/unistdio/u32-printf-parse: New file.
12742         * modules/unistdio/u32-snprintf: New file.
12743         * modules/unistdio/u32-sprintf: New file.
12744         * modules/unistdio/u32-vasnprintf: New file.
12745         * modules/unistdio/u32-vasprintf: New file.
12746         * modules/unistdio/u32-vsnprintf: New file.
12747         * modules/unistdio/u32-vsprintf: New file.
12748         * modules/unistdio/u32-u32-asnprintf: New file.
12749         * modules/unistdio/u32-u32-asprintf: New file.
12750         * modules/unistdio/u32-u32-snprintf: New file.
12751         * modules/unistdio/u32-u32-sprintf: New file.
12752         * modules/unistdio/u32-u32-vasnprintf: New file.
12753         * modules/unistdio/u32-u32-vasprintf: New file.
12754         * modules/unistdio/u32-u32-vsnprintf: New file.
12755         * modules/unistdio/u32-u32-vsprintf: New file.
12756         * modules/unistdio/ulc-asnprintf-tests: New file.
12757         * modules/unistdio/ulc-vasnprintf-tests: New file.
12758         * modules/unistdio/ulc-vasprintf-tests: New file.
12759         * modules/unistdio/ulc-vsnprintf-tests: New file.
12760         * modules/unistdio/ulc-vsprintf-tests: New file.
12761         * modules/unistdio/u8-asnprintf-tests: New file.
12762         * modules/unistdio/u8-vasnprintf-tests: New file.
12763         * modules/unistdio/u8-vasprintf-tests: New file.
12764         * modules/unistdio/u8-vsnprintf-tests: New file.
12765         * modules/unistdio/u8-vsprintf-tests: New file.
12766         * modules/unistdio/u16-asnprintf-tests: New file.
12767         * modules/unistdio/u16-vasnprintf-tests: New file.
12768         * modules/unistdio/u16-vasprintf-tests: New file.
12769         * modules/unistdio/u16-vsnprintf-tests: New file.
12770         * modules/unistdio/u16-vsprintf-tests: New file.
12771         * modules/unistdio/u32-asnprintf-tests: New file.
12772         * modules/unistdio/u32-vasnprintf-tests: New file.
12773         * modules/unistdio/u32-vasprintf-tests: New file.
12774         * modules/unistdio/u32-vsnprintf-tests: New file.
12775         * modules/unistdio/u32-vsprintf-tests: New file.
12776         * MODULES.html.sh (Unicode string functions): Add the new modules.
12777
12778 2007-07-01  Bruno Haible  <bruno@clisp.org>
12779
12780         * lib/sprintf.c (sprintf): Limit the available length estimation,
12781         to avoid address wraparound.
12782         * lib/vsprintf.c (vsprintf): Likewise.
12783         * modules/sprintf-posix (Dependencies): Add stdint.
12784         * modules/vsprintf-posix (Dependencies): Likewise.
12785
12786 2007-07-01  Bruno Haible  <bruno@clisp.org>
12787
12788         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
12789         Windows PATH as well. Conservative double-quoting. Comments.
12790
12791 2007-07-01  Bruno Haible  <bruno@clisp.org>
12792             Eric Blake  <ebb9@byu.net>
12793             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12794
12795         * gnulib-tool (self_abspathname): Fix algorithm to cope with
12796         empty components in $PATH, denoting '.'.
12797
12798 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12799
12800         * gnulib-tool: Fix indentation.
12801         (func_create_megatestdir): Likewise.
12802         Report by Bruno Haible.
12803
12804 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12805
12806         Sync from Automake.
12807         * build-aux/gnupload: Fix shell portability issues with for loops.
12808         Report by Karl Berry.
12809
12810 2007-06-29  Simon Josefsson  <simon@josefsson.org>
12811
12812         * build-aux/maint.mk (POURL): Use translationproject.org.
12813
12814 2007-06-27  Simon Josefsson  <simon@josefsson.org>
12815             Bruno Haible  <bruno@clisp.org>
12816
12817         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
12818         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
12819         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
12820         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
12821         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
12822
12823 2007-06-27  Bruno Haible  <bruno@clisp.org>
12824
12825         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
12826         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
12827
12828 2007-06-26  Karl Berry  <karl@gnu.org>
12829
12830         * MODULES.html.sh: remove xreadlink-with-size.
12831
12832 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
12833
12834         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
12835         method that I hope also handles the double-include problem noted
12836         by Bruno Haible in
12837         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
12838
12839 2007-06-23  Bruno Haible  <bruno@clisp.org>
12840
12841         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
12842         Don't let the 'mostlyclean' target fail if the last subdirectory could
12843         not be removed.
12844         Reported by Karl Berry.
12845
12846 2007-06-23  Bruno Haible  <bruno@clisp.org>
12847
12848         * gnulib-tool (echo): Add a speedier workaround for ksh.
12849         * tests/test-echo.sh: Likewise.
12850
12851 2007-06-23  Bruno Haible  <bruno@clisp.org>
12852
12853         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
12854         * tests/test-echo.sh: Likewise.
12855
12856 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12857
12858         * gnulib-tool (IFS): Initialize early, so we don't set it to
12859         empty later.
12860         (self_abspathname): Rewrite algorithm to set it, reindent.
12861         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
12862         (func_create_megatestdir): Merge some sed scripts.
12863
12864 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
12865
12866         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
12867         exposed by Sun Studio 11 cc on Solaris 8.
12868
12869 2007-06-22  Bruno Haible  <bruno@clisp.org>
12870
12871         * gnulib-tool (echo): Ensure the echo primitive does not interpret
12872         backslashes.
12873         * tests/test-echo.sh: New file.
12874
12875 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12876
12877         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
12878         simplify `sed_replace_build_aux' scripts, they are portable but
12879         echoing them with `echo' is not.
12880         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
12881
12882 2007-06-21  Karl Berry  <karl@gnu.org>
12883
12884         * config/srclist.txt: guess we can't handle the licenses via
12885         srclist at the moment.
12886
12887 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
12888
12889         * MODULES.html.sh: Add include_next.
12890         * modules/include_next: New file.
12891
12892 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
12893
12894         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
12895         INCLUDE_NEXT.
12896         (gl_CHECK_NEXT_HEADERS): New macro.
12897         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
12898         the obsolescent gl_ABSOLUTE_HEADER.
12899         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
12900         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
12901         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
12902         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
12903         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
12904         * m4/math_h.m4 (gl_MATH_H): Likewise.
12905         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
12906         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
12907         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
12908         * m4/stdint.m4 (gl_STDINT_H): Likewise.
12909         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
12910         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
12911         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
12912         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
12913         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
12914         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
12915         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
12916         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
12917         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
12918         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
12919         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
12920         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
12921         * m4/inttypes.m4 (gl_INTTYPES_H): Define
12922         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
12923         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
12924         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
12925         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
12926         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
12927         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
12928         * lib/float_.h: Likewise.
12929         * lib/inttypes_.h: Likewise.
12930         * lib/math_.h: Likewise.
12931         * lib/search_.h: Likewise.
12932         * lib/signal_.h: Likewise.
12933         * lib/stdint_.h: Likewise.
12934         * lib/stdio_.h: Likewise.
12935         * lib/stdlib_.h: Likewise.
12936         * lib/string_.h: Likewise.
12937         * lib/sys_stat_.h: Likewise.
12938         * lib/sys_time_.h: Likewise.
12939         * lib/time_.h: Likewise.
12940         * lib/unistd_.h: Likewise.
12941         * lib/wchar_.h: Likewise.
12942         * lib/wctype_.h: Likewise.
12943         * lib/dirent_.h: Likewise.
12944         * lib/iconv_.h: Likewise.
12945         * lib/locale_.h: Likewise.
12946         * lib/netinet_in_.h: Likewise.
12947         * lib/sys_select_.h: Likewise.
12948         * lib/sys_socket_.h: Likewise.
12949         * lib/sysexits_.h: Likewise.
12950         * modules/fcntl (Depends-on): Depend on include_next, not
12951         absolute_header.
12952         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
12953         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
12954         * modules/fchdir: Likewise.
12955         * modules/float: Likewise.
12956         * modules/iconv_open: Likewise.
12957         * modules/inttypes: Likewise.
12958         * modules/locale: Likewise.
12959         * modules/math: Likewise.
12960         * modules/netinet_in: Likewise.
12961         * modules/search: Likewise.
12962         * modules/signal: Likewise.
12963         * modules/stdint: Likewise.
12964         * modules/stdio: Likewise.
12965         * modules/stdlib: Likewise.
12966         * modules/string: Likewise.
12967         * modules/sys_select: Likewise.
12968         * modules/sys_socket: Likewise.
12969         * modules/sys_stat: Likewise.
12970         * modules/sys_time: Likewise.
12971         * modules/sysexits: Likewise.
12972         * modules/time: Likewise.
12973         * modules/unistd: Likewise.
12974         * modules/wchar: Likewise.
12975         * modules/wctype: Likewise.
12976         * modules/sys_stat: Change maintainer to "all".
12977         * modules/unistd: Likewise.
12978
12979 2007-06-20  Karl Berry  <karl@gnu.org>
12980
12981         * config/srclist.txt: track www changes in license files.
12982
12983 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
12984
12985         * build-aux/bootstrap: Remove stray dot.
12986         Make sure build_aux settings are honored when linking
12987         gnulib_extra_files.
12988
12989 2007-06-19  Eric Blake  <ebb9@byu.net>
12990
12991         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
12992         Allow compilation on cygwin.
12993
12994 2007-06-19  Jim Meyering  <jim@meyering.net>
12995
12996         xreadlink-with-size: Remove module.  No longer used.
12997         Ex-callers now use xreadlink or mreadlink-with-size.
12998         * modules/xreadlink-with-size: Remove module.
12999         * lib/xreadlink-with-size.c: Remove file.
13000         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
13001         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
13002         just before the function definition *is* accurate.
13003
13004         Eliminate one way canonicalize_filename_mode could exit.
13005         * lib/canonicalize.c (canonicalize_filename_mode):
13006         Use mreadlink_with_size, not xreadlink_with_size.
13007
13008 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
13009
13010         Detect porting problems to FreeBSD/arm, which has time_t wider than
13011         long int.  Original problem reported for GNU diff by Xin Li in
13012         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
13013         * modules/getdate (Depends-on): Add intprops, verify.
13014         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
13015         is an integer type no wider than long int.
13016
13017 2007-06-18  Jim Meyering  <jim@meyering.net>
13018
13019         New module: mreadlink-with-size.
13020         * MODULES.html.sh: Add mreadlink-with-size.
13021         * modules/mreadlink-with-size: New module
13022         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
13023         not xreadlink-with-size.
13024         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
13025
13026 2007-06-16  Bruno Haible  <bruno@clisp.org>
13027
13028         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
13029         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
13030         Reported by Gary V. Vaughan <gary@gnu.org>.
13031
13032 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
13033
13034         Revamp lchown so that it lives in unistd.h where it belongs.
13035         * lib/lchown.h: Remove.
13036         * lib/dirchownmod.c: Don't include lib/lchown.h.
13037         * lib/fchownat.c: Likewise.
13038         * lib/openat.c: Likewise.
13039         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
13040         does not follow symlinks.
13041         (EOPNOTSUPP): Define if not defined.
13042         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
13043         is defined to 0.
13044         (lchown): New decl.
13045         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
13046         Do not check for lchown decl.
13047         Set REPLACE_LCHOWN.
13048         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
13049         REPLACE_LCHOWN.
13050         * modules/chown: Make it clear it follows symlinks.
13051         * modules/lchown: Make it clear it doesn't follow symlinks.
13052         (Files): Remove lib/lchown.h
13053         (Depends-on): Add unistd.
13054         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
13055         (Include): Include <unistd.h>, not "lchown.h".
13056         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
13057         REPLACE_LCHOWN.
13058
13059 2007-06-15  Jim Meyering  <jim@meyering.net>
13060
13061         Change license (GPL to LGPL) of fsusage and dependents.
13062         * modules/fsusage (License): Change to LGPL.
13063         * modules/full-read (License): Likewise.
13064         * modules/full-write (License): Likewise.
13065         * modules/safe-read (License): Likewise.
13066         * modules/safe-write (License): Likewise.
13067
13068 2007-06-14  Ben Pfaff  <blp@gnu.org>
13069
13070         Missing part of allocsa -> malloca transition.
13071         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
13072         gl_MALLOCA.
13073
13074 2007-06-12  Bruno Haible  <bruno@clisp.org>
13075
13076         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
13077         to ia64, x86_64, i386.
13078         Reported by Eric Blake.
13079
13080 2007-06-12  Bruno Haible  <bruno@clisp.org>
13081
13082         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
13083         cross-compiling to x86_64.
13084
13085 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
13086
13087         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
13088         glitch reported by Ralf Wildenhues in
13089         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
13090
13091         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
13092         Vin Shelton.
13093
13094 2007-06-11  Bruno Haible  <bruno@clisp.org>
13095
13096         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
13097         replacement string.
13098         Reported by Eric Blake.
13099
13100 2007-06-10  Bruno Haible  <bruno@clisp.org>
13101
13102         Prepare vasnprintf code for use with Unicode strings.
13103         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
13104         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
13105         TYPE_U32_STRING.
13106         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
13107         a_u32_string variants.
13108         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
13109         * lib/printf-args.c: Don't include config.h and the specification
13110         header if PRINTF_FETCHARGS is already defined.
13111         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
13112         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
13113         TYPE_U16_STRING, TYPE_U32_STRING.
13114         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
13115         u16_directive, u16_directives, u32_directive, u32_directives): New
13116         types.
13117         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
13118         New declarations.
13119         * lib/printf-parse.c: Don't include config.h and the specification
13120         header if PRINTF_PARSE is already defined. Eliminate the set of
13121         parameters for WIDE_CHAR_VERSION; the user of this file must provide
13122         them now. Include c-ctype.h.
13123         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
13124         directive and CHAR_T_ONLY_ASCII.
13125         * lib/vasnprintf.c: Don't include config.h and the specification header
13126         if VASNPRINTF is already defined.
13127         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
13128         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
13129         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
13130         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
13131         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
13132         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
13133         code accordingly.
13134         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
13135         pad_ourselves also in this case, with the 'c' and 's' directives, and
13136         with a different notion of "width".
13137         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
13138
13139 2007-06-10  Bruno Haible  <bruno@clisp.org>
13140
13141         * modules/unistr/u32-mbsnlen: New file.
13142         * lib/unistr/u32-mbsnlen.c: New file.
13143
13144         * modules/unistr/u16-mbsnlen: New file.
13145         * lib/unistr/u16-mbsnlen.c: New file.
13146
13147         * modules/unistr/u8-mbsnlen: New file.
13148         * lib/unistr/u8-mbsnlen.c: New file.
13149
13150         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
13151         declarations.
13152
13153 2007-06-10  Bruno Haible  <bruno@clisp.org>
13154
13155         * lib/string_.h (mbsnlen): New declaration.
13156         * lib/mbsnlen.c: New file.
13157         * m4/mbsnlen.m4: New file.
13158         * modules/mbsnlen: New file.
13159         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
13160         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
13161         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
13162
13163 2007-06-10  Bruno Haible  <bruno@clisp.org>
13164
13165         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
13166
13167 2007-06-10  Bruno Haible  <bruno@clisp.org>
13168
13169         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
13170         * lib/mbuiter.h: Likewise.
13171
13172 2007-06-10  Bruno Haible  <bruno@clisp.org>
13173
13174         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
13175         declaration.
13176
13177 2007-06-10  Karl Berry  <karl@gnu.org>
13178
13179         * config/srclist.txt: remove gettext entries, Bruno prefers
13180         to update individually.
13181
13182 2007-06-10  Bruno Haible  <bruno@clisp.org>
13183
13184         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
13185         'maxlen'. Ensure only length + width bytes are allocated, not
13186         length + 1 + width.
13187
13188 2007-06-09  Bruno Haible  <bruno@clisp.org>
13189
13190         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
13191         (CHAR_T): Remove macro.
13192         (VASNPRINTF): Update.
13193
13194 2007-06-09  Bruno Haible  <bruno@clisp.org>
13195
13196         * MODULES.html.sh (Unicode string functions): Add the new modules.
13197
13198         * modules/uniconv/u32-conv-to-enc: New file.
13199         * lib/uniconv/u32-conv-to-enc.c: New file.
13200         * modules/uniconv/u32-conv-to-enc-tests: New file.
13201         * tests/uniconv/test-u32-conv-to-enc.c: New file.
13202
13203         * modules/uniconv/u16-conv-to-enc: New file.
13204         * lib/uniconv/u16-conv-to-enc.c: New file.
13205         * lib/uniconv/u-conv-to-enc.h: New file.
13206         * modules/uniconv/u16-conv-to-enc-tests: New file.
13207         * tests/uniconv/test-u16-conv-to-enc.c: New file.
13208
13209         * modules/uniconv/u8-conv-to-enc: New file.
13210         * lib/uniconv/u8-conv-to-enc.c: New file.
13211         * modules/uniconv/u8-conv-to-enc-tests: New file.
13212         * tests/uniconv/test-u8-conv-to-enc.c: New file.
13213
13214         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
13215         u32_conv_to_encoding): New declarations.
13216
13217 2007-06-09  Bruno Haible  <bruno@clisp.org>
13218
13219         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
13220
13221 2007-06-09  Bruno Haible  <bruno@clisp.org>
13222
13223         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
13224         * modules/malloca: Renamed from modules/allocsa, updated.
13225         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
13226         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
13227         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
13228         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
13229         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
13230         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
13231         * modules/xmalloca: Renamed from modules/xallocsa, updated.
13232         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
13233         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
13234         * modules/c-strcasestr (Depends-on): Update.
13235         * lib/c-strcasestr.c: Update.
13236         * modules/c-strstr (Depends-on): Update.
13237         * lib/c-strstr.c: Update.
13238         * modules/canonicalize-lgpl (Depends-on): Update.
13239         * lib/canonicalize-lgpl.c: Update.
13240         * modules/clean-temp (Depends-on): Update.
13241         * lib/clean-temp.c: Update.
13242         * modules/csharpcomp (Depends-on): Update.
13243         * lib/csharpcomp.c: Update.
13244         * modules/csharpexec (Depends-on): Update.
13245         * lib/csharpexec.c: Update.
13246         * modules/javacomp (Depends-on): Update.
13247         * lib/javacomp.c: Update.
13248         * modules/javaexec (Depends-on): Update.
13249         * lib/javaexec.c: Update.
13250         * modules/mbscasestr (Depends-on): Update.
13251         * lib/mbscasestr.c: Update.
13252         * modules/mbsstr (Depends-on): Update.
13253         * lib/mbsstr.c: Update.
13254         * modules/setenv (Depends-on): Update.
13255         * lib/setenv.c: Update.
13256         * modules/strcasestr (Depends-on): Update.
13257         * lib/strcasestr.c: Update.
13258         * modules/striconveha (Depends-on): Update.
13259         * lib/striconveha.c: Update.
13260         * modules/relocatable-prog-wrapper (Files): Update.
13261         * lib/relocwrapper.c: Update.
13262         * build-aux/install-reloc: Update.
13263         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
13264
13265 2007-06-08  Bruno Haible  <bruno@clisp.org>
13266
13267         Port to uClibc.
13268         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
13269         * lib/fpurge.c (fpurge): Likewise.
13270         * lib/freading.c (freading): Likewise.
13271         * lib/fseeko.c (rpl_fseeko): Likewise.
13272         * lib/fseterr.c (fseterr): Likewise.
13273         * lib/fwriting.c (fwriting): Likewise.
13274         * tests/test-fflush.c (main): Avoid a failure on uClibc.
13275
13276 2007-06-08  Bruno Haible  <bruno@clisp.org>
13277
13278         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
13279         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
13280         * modules/gettext (Files): Add m4/intlmacosx.m4.
13281
13282 2007-06-07  Bruno Haible  <bruno@clisp.org>
13283
13284         * modules/localename-tests: New file.
13285         * tests/test-localename.c: New file.
13286
13287         New module 'localename'.
13288         * lib/localename.h: New file.
13289         * lib/localename.c: New file, from GNU gettext.
13290         * m4/localename.m4: New file.
13291         * modules/localename: New file.
13292
13293 2007-06-07  Bruno Haible  <bruno@clisp.org>
13294
13295         Work around the lack of <wchar.h> on some builds of uClibc.
13296         * doc/headers/wchar.texi: Update.
13297         * lib/wchar_.h: Include <wchar.h> only if it exists.
13298         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
13299         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
13300         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
13301         doesn't exist.
13302         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
13303         * modules/mbfile (Depends-on): Add wchar.
13304         * modules/mbiter (Depends-on): Likewise.
13305         * modules/mbuiter (Depends-on): Likewise.
13306         Reported by Simon Josefsson.
13307
13308 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
13309
13310         Work around problem reported by Steven M. Schweda in
13311         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
13312         Tru64 5.1B with the Compaq compiler environment installed declares
13313         an 'isblank' function but does not define it in the C library.
13314         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
13315         * lib/regex_internal.h (isblank): Likewise.
13316         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
13317         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
13318
13319 2007-06-05  Bruno Haible  <bruno@clisp.org>
13320
13321         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
13322         ia64.
13323         * modules/printf-safe: New file.
13324         * modules/fprintf-posix (Depends-on): Add printf-safe.
13325         * modules/printf-posix (Depends-on): Likewise.
13326         * modules/snprintf-posix (Depends-on): Likewise.
13327         * modules/sprintf-posix (Depends-on): Likewise.
13328         * modules/vasnprintf-posix (Depends-on): Likewise.
13329         * modules/vasprintf-posix (Depends-on): Likewise.
13330         * modules/vfprintf-posix (Depends-on): Likewise.
13331         * modules/vprintf-posix (Depends-on): Likewise.
13332         * modules/vsnprintf-posix (Depends-on): Likewise.
13333         * modules/vsprintf-posix (Depends-on): Likewise.
13334         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
13335         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
13336         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
13337         "no" on i386, x86_64, ia64.
13338         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
13339         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
13340         on i386, x86_64, ia64.
13341         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
13342         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
13343         on i386, x86_64, ia64.
13344         * tests/test-vasnprintf-posix.c: Include float.h.
13345         (LDBL80_WORDS): New macro.
13346         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
13347         on i386, x86_64, ia64.
13348         * tests/test-vasprintf-posix.c: Include float.h.
13349         (LDBL80_WORDS): New macro.
13350         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
13351         on i386, x86_64, ia64.
13352         * tests/test-snprintf-posix.c: Include float.h.
13353         * tests/test-sprintf-posix.c: Likewise.
13354         * tests/test-vsnprintf-posix.c: Likewise.
13355         * tests/test-vsprintf-posix.c: Likewise.
13356
13357 2007-06-05  Bruno Haible  <bruno@clisp.org>
13358
13359         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
13360         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
13361         non-IEEE numbers on i386, x86_64, ia64.
13362         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
13363         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
13364         * tests/test-isnanl.h: Include float.h.
13365         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
13366
13367 2007-06-05  Bruno Haible  <bruno@clisp.org>
13368
13369         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
13370         also the %a / %A. Handle the %a / %A code before this extra handling.
13371
13372 2007-06-05  Bruno Haible  <bruno@clisp.org>
13373
13374         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
13375         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
13376
13377 2007-06-05  Bruno Haible  <bruno@clisp.org>
13378
13379         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
13380         typo in variable name.
13381
13382 2007-06-05  Eric Blake  <ebb9@byu.net>
13383
13384         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
13385         Reported by Simon Josefsson.
13386
13387 2007-06-04  Bruno Haible  <bruno@clisp.org>
13388
13389         Avoid test failures on some PowerPC platforms.
13390         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
13391         Define differently for PowerPC.
13392         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
13393         Reported by Gary V. Vaughan <gary@gnu.org>.
13394
13395 2007-06-02  Bruno Haible  <bruno@clisp.org>
13396
13397         Fix test-stdint failure on FreeBSD/ia64.
13398         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
13399         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
13400         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
13401         * doc/headers/stdint.texi: Update.
13402
13403 2007-06-01  Bruno Haible  <bruno@clisp.org>
13404
13405         * tests/test-binary-io.c (main): Pass a third argument to open().
13406         Reported by Gary V. Vaughan <gary@gnu.org>.
13407
13408 2007-06-01  Bruno Haible  <bruno@clisp.org>
13409
13410         * doc/functions/frexpl.texi: Update for mingw.
13411
13412 2007-06-01  Bruno Haible  <bruno@clisp.org>
13413
13414         * tests/test-lseek.c (main): Disable test of errno for invalid third
13415         argument.
13416         * doc/functions/lseek.texi: Update.
13417         Reported by Gary V. Vaughan <gary@gnu.org>.
13418
13419 2007-05-28  Bruno Haible  <bruno@clisp.org>
13420
13421         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
13422
13423 2007-05-31  Eric Blake  <ebb9@byu.net>
13424
13425         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
13426         cross compiling.
13427
13428 2007-05-30  Eric Blake  <ebb9@byu.net>
13429         and Bruno Haible  <bruno@clisp.org>
13430
13431         Work around mingw test failures exposed by m4-1.4.9b.
13432         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
13433         * tests/test-unistd.c: Disable uid_t and git_t tests for the
13434         moment.
13435
13436 2007-05-30  Bruno Haible  <bruno@clisp.org>
13437
13438         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
13439         assuming that they are closed. Needed on HP-UX 11.
13440
13441 2007-05-29  Bruno Haible  <bruno@clisp.org>
13442
13443         Fix a problem with #include_next.
13444         * lib/dirent_.h: Split the double-inclusion guard.
13445         * lib/fcntl_.h: Likewise.
13446         * lib/float_.h: Likewise.
13447         * lib/iconv_.h: Likewise.
13448         * lib/inttypes_.h: Likewise.
13449         * lib/locale_.h: Likewise.
13450         * lib/math_.h: Likewise.
13451         * lib/netinet_in_.h: Likewise.
13452         * lib/search_.h: Likewise.
13453         * lib/signal_.h: Likewise.
13454         * lib/stdint_.h: Likewise.
13455         * lib/stdio_.h: Likewise.
13456         * lib/stdlib_.h: Likewise.
13457         * lib/string_.h: Likewise.
13458         * lib/sys_select_.h: Likewise.
13459         * lib/sys_socket_.h: Likewise.
13460         * lib/sys_stat_.h: Likewise.
13461         * lib/sys_time_.h: Likewise.
13462         * lib/sysexits_.h: Likewise.
13463         * lib/time_.h: Likewise.
13464         * lib/unistd_.h: Likewise.
13465         * lib/wchar_.h: Likewise.
13466         * lib/wctype_.h: Likewise.
13467
13468 2007-05-29  Bruno Haible  <bruno@clisp.org>
13469
13470         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
13471         for the moment.
13472
13473 2007-05-29  Bruno Haible  <bruno@clisp.org>
13474
13475         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
13476         invocation.
13477         Reported by Eric Blake.
13478
13479 2007-05-29  Bruno Haible  <bruno@clisp.org>
13480
13481         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
13482         compiling case.
13483
13484 2007-05-29  Eric Blake  <ebb9@byu.net>
13485             Bruno Haible  <bruno@clisp.org>
13486
13487         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
13488         cross compiles.
13489
13490 2007-05-28  Eric Blake  <ebb9@byu.net>
13491
13492         * modules/closein-tests (test_closein_LDADD): Support test on
13493         cygwin with libtool.
13494
13495 2007-05-28  Bruno Haible  <bruno@clisp.org>
13496
13497         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
13498         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
13499         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
13500         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
13501         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
13502         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
13503         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
13504         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
13505         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
13506
13507 2007-05-28  Eric Blake  <ebb9@byu.net>
13508
13509         Unconditionally include <config.h> in unit tests.
13510         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
13511         * tests/test-allocsa.c, tests/test-arcfour.c,
13512         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
13513         tests/test-array_list.c, tests/test-array_oset.c,
13514         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
13515         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
13516         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
13517         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
13518         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
13519         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
13520         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
13521         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
13522         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
13523         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
13524         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
13525         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
13526         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
13527         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
13528         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
13529         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
13530         test-md5.c, test-memmem.c, test-printf-posix.c,
13531         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
13532         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
13533         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
13534         test-strcasestr.c, test-striconv.c, test-striconveh.c,
13535         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
13536         test-vasnprintf-posix2.c, test-vasnprintf.c,
13537         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
13538         test-vfprintf-posix.c, test-vprintf-posix.c,
13539         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
13540         test-xvasprintf.c: Likewise.
13541
13542 2007-05-28  Bruno Haible  <bruno@clisp.org>
13543
13544         * gnulib-tool (func_import): Remember the --with-tests command-line
13545         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
13546         Reported by Eric Blake.
13547
13548 2007-05-28  Bruno Haible  <bruno@clisp.org>
13549
13550         * modules/ftell-tests: New file.
13551         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
13552         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
13553
13554         * lib/ftell.c: New file.
13555         * modules/ftell: New file.
13556         * m4/ftell.m4: New file.
13557         * doc/functions/ftell.texi: Update.
13558         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
13559         REPLACE_FTELL.
13560         * lib/stdio_.h (rpl_ftell): New declaration.
13561         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
13562         REPLACE_FTELL.
13563
13564 2007-05-28  Eric Blake  <ebb9@byu.net>
13565
13566         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
13567
13568 2007-05-28  Bruno Haible  <bruno@clisp.org>
13569
13570         * modules/fseek-tests: New file.
13571         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
13572         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
13573
13574         * lib/fseek.c: New file.
13575         * modules/fseek: New file.
13576         * m4/fseek.m4: New file.
13577         * doc/functions/fseek.texi: Update.
13578         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
13579         REPLACE_FSEEK.
13580         * lib/stdio_.h (rpl_fseek): New declaration.
13581         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
13582         REPLACE_FSEEK.
13583
13584 2007-05-28  Bruno Haible  <bruno@clisp.org>
13585
13586         * lib/stdio_.h (fflush): More comments.
13587
13588 2007-05-28  Bruno Haible  <bruno@clisp.org>
13589
13590         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
13591         runtime test.
13592
13593 2007-05-28  Eric Blake  <ebb9@byu.net>
13594
13595         Improve lseek module.
13596         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
13597         * lib/unistd_.h (lseek): Scale back link warning message.
13598         * tests/test-lseek.c: Beef up test.
13599         * tests/test-lseek.sh: Exercise more facets of lseek.
13600         Reported by Bruno Haible.
13601
13602 2007-05-28  Bruno Haible  <bruno@clisp.org>
13603
13604         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
13605         to define.
13606
13607 2007-05-27  Bruno Haible  <bruno@clisp.org>
13608
13609         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
13610
13611 2007-05-27  Bruno Haible  <bruno@clisp.org>
13612
13613         * modules/openmp: New file.
13614         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
13615         Noah Misch.
13616
13617 2007-05-26  Bruno Haible  <bruno@clisp.org>
13618
13619         * modules/chdir-long (Depends-on): Add fchdir.
13620         * modules/chdir-safer (Depends-on): Likewise.
13621         * modules/fts (Depends-on): Likewise.
13622         * modules/fts-lgpl (Depends-on): Likewise.
13623         * modules/openat (Depends-on): Likewise.
13624         * modules/savewd (Depends-on): Likewise.
13625
13626 2007-05-24  Eric Blake  <ebb9@byu.net>
13627
13628         Fix lseek on mingw.
13629         * modules/lseek: New module.
13630         * m4/lseek.m4: New file.
13631         * lib/lseek.c: New file.
13632         * modules/lseek-tests: New file.
13633         * tests/test-lseek.c: New file.
13634         * tests/test-lseek.sh: New file.
13635         * MODULES.html.sh: Document lseek module.
13636         * modules/fflush (Depends-on): Add lseek, fseeko.
13637         * modules/fseeko (Depends-on): Likewise.
13638         * modules/ftello (Depends-on): Likewise.
13639         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
13640         broken.
13641         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
13642         broken.
13643         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
13644         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
13645         * lib/ftello.c (rpl_ftello): Likewise.
13646         * tests/test-fseeko.c (main): Test this.
13647         * tests/test-fseeko.sh: Likewise.
13648         * tests/test-ftello.c (main): Likewise.
13649         * tests/test-ftello.sh: Likewise.
13650         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
13651         implies replacing fseek.
13652         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
13653         HAVE_FTELLO.
13654         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
13655         * modules/unistd (Makefile.am): Likewise.
13656         * lib/unistd_.h (lseek): Declare a replacement.
13657         * doc/functions/lseek.texi (lseek): Document this fix.
13658         * doc/functions/fseek.texi (fseek): Likewise.
13659         * doc/functions/ftell.texi (ftell): Likewise.
13660
13661 2007-05-24  Bruno Haible  <bruno@clisp.org>
13662
13663         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
13664         in the printed representation of a NaN.
13665         * tests/test-vasprintf-posix.c (test_function): Likewise.
13666         * tests/test-snprintf-posix.h (test_function): Likewise.
13667         * tests/test-sprintf-posix.h (test_function): Likewise.
13668         Reported by Eric Blake.
13669
13670 2007-05-23  Eric Blake  <ebb9@byu.net>
13671
13672         Fix fseeko/ftello on cygwin 1.5.24.
13673         * doc/functions/fseeko.texi (fseeko): Document the fix.
13674         * doc/functions/ftello.texi (ftello): Document the fix.
13675         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
13676         * doc/functions/stdout.text (stdout): New file.
13677         * doc/functions/stderr.text (stderr): New file.
13678         * doc/gnulib.texi (Function Substitutes): Use new files.
13679         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
13680         prior to 1.7.0.
13681         * tests/test-ftello.c (main): Likewise for ftello.
13682         * tests/test-fseeko.sh: New file.
13683         * tests/test-ftello.sh: New file.
13684         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
13685         with seekable stdin.
13686         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
13687         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
13688         (gl_REPLACE_FSEEKO): New macro.
13689         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
13690         * modules/fseeko (Files): Distribute fseeko.c.
13691         * modules/ftello (Files): Distribute ftello.c.
13692         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
13693         mode.
13694         * lib/ftello.c (rpl_ftello): New file.
13695         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
13696         fseeko, ftello.
13697         (gl_STDIN_LARGE_OFFSET): New macro.
13698         * modules/stdio (Makefile.am): Perform the replacement.
13699         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
13700
13701 2007-05-23  Bruno Haible  <bruno@clisp.org>
13702
13703         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
13704         GNULIB_POSIXCHECK is defined.
13705
13706 2007-05-21  Bruno Haible  <bruno@clisp.org>
13707
13708         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
13709         Check also the output for NaN arguments. When cross-compiling, guess
13710         no on IRIX.
13711         * lib/vasnprintf.c: Update comments.
13712         * tests/test-vasnprintf-posix.c (strisnan): New function.
13713         (test_function): Use it.
13714         * tests/test-vasprintf-posix.c (strisnan): New function.
13715         (test_function): Use it.
13716         * tests/test-snprintf-posix.h (strisnan): New function.
13717         (test_function): Use it.
13718         * tests/test-sprintf-posix.h (strisnan): New function.
13719         (test_function): Use it.
13720         Reported by Eric Blake.
13721
13722 2007-05-20  Bruno Haible  <bruno@clisp.org>
13723
13724         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
13725         numbers that fails on BeOS.
13726         * doc/functions/frexpl.texi: Update.
13727
13728 2007-05-20  Jim Meyering  <jim@meyering.net>
13729
13730         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
13731         forced upon us by glibc-2.6.
13732
13733 2007-05-20  Bruno Haible  <bruno@clisp.org>
13734
13735         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
13736         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
13737         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
13738         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
13739         NEED_PRINTF_INFINITE.
13740         (is_infinitel): New function.
13741         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
13742         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
13743         gl_PREREQ_VASNPRINTF_INFINITE.
13744         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
13745         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
13746         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
13747         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
13748         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
13749         gl_PREREQ_VASNPRINTF_INFINITE.
13750         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
13751         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
13752         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
13753         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
13754         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
13755         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
13756         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
13757         * doc/functions/fprintf.texi: Update.
13758         * doc/functions/printf.texi: Update.
13759         * doc/functions/snprintf.texi: Update.
13760         * doc/functions/sprintf.texi: Update.
13761         * doc/functions/vfprintf.texi: Update.
13762         * doc/functions/vprintf.texi: Update.
13763         * doc/functions/vsnprintf.texi: Update.
13764         * doc/functions/vsprintf.texi: Update.
13765
13766 2007-05-20  Bruno Haible  <bruno@clisp.org>
13767
13768         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
13769         was not found in libc.
13770         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
13771
13772 2007-05-20  Bruno Haible  <bruno@clisp.org>
13773
13774         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
13775         printed as "-nan" instead of "nan".
13776         * tests/test-vasprintf-posix.c (test_function): Likewise.
13777         * tests/test-snprintf-posix.h (test_function): Likewise.
13778         * tests/test-sprintf-posix.h (test_function): Likewise.
13779         Needed for HP-UX 11.
13780
13781 2007-05-20  Jim Meyering  <jim@meyering.net>
13782
13783         Fix buggy test for the fchownat-deref bug.
13784         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
13785         symlink required for the run-test.  Without it, this test would
13786         always declare that fchownat doesn't work, and client code would
13787         unnecessarily use the replacement function with fixed libc.
13788         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
13789         Reported by Greg Schafer.
13790
13791 2007-05-19  Bruno Haible  <bruno@clisp.org>
13792
13793         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
13794         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
13795         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
13796         Needed for IRIX 6.5 and Solaris 2.5.1.
13797
13798 2007-05-19  Bruno Haible  <bruno@clisp.org>
13799
13800         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
13801         (test_function): Skip tests involving -0.0 on platforms where
13802         -0.0 = 0.0.
13803         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
13804         (test_function): Skip tests involving -0.0 on platforms where
13805         -0.0 = 0.0.
13806         * tests/test-snprintf-posix.h (have_minus_zero): New function.
13807         (test_function): Skip tests involving -0.0 on platforms where
13808         -0.0 = 0.0.
13809         * tests/test-sprintf-posix.h (have_minus_zero): New function.
13810         (test_function): Skip tests involving -0.0 on platforms where
13811         -0.0 = 0.0.
13812         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
13813         tests.
13814         * tests/test-printf-posix.h (test_function): Likewise.
13815         * tests/test-printf-posix.output: Remove all -0.0 related results.
13816         Needed for IRIX 6.5.
13817
13818 2007-05-19  Bruno Haible  <bruno@clisp.org>
13819
13820         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
13821         printed as "nan0x7fffffff" instead of "nan".
13822         * tests/test-vasprintf-posix.c (test_function): Likewise.
13823         * tests/test-snprintf-posix.h (test_function): Likewise.
13824         * tests/test-sprintf-posix.h (test_function): Likewise.
13825         * tests/test-fprintf-posix.h (NaN): Remove macro.
13826         (test_function): Remove all NaN related tests.
13827         * tests/test-printf-posix.h (NaN): Remove macro.
13828         (test_function): Remove all NaN related tests.
13829         * tests/test-printf-posix.output: Remove all NaN related results.
13830         Needed for IRIX 6.5.
13831
13832 2007-05-19  Bruno Haible  <bruno@clisp.org>
13833
13834         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
13835         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
13836
13837 2007-05-19  Bruno Haible  <bruno@clisp.org>
13838
13839         * lib/float_.h: New file.
13840         * m4/float_h.m4: New file.
13841         * modules/float: New file.
13842         * modules/isnanl (Dependencies): Add float.
13843         * modules/isnanl-nolibm (Dependencies): Likewise.
13844         * modules/mathl (Dependencies): Likewise.
13845         * modules/printf-frexpl (Dependencies): Likewise.
13846         * modules/signbit (Dependencies): Likewise.
13847         * modules/vasnprintf (Dependencies): Likewise.
13848         * doc/headers/float.texi: Update.
13849
13850 2007-05-19  Jim Meyering  <jim@meyering.net>
13851
13852         * lib/utimens.c (gl_futimens): Rename from futimens,
13853         now that glibc-2.6 declares futimens.
13854         * lib/utimens.h: Likewise.
13855
13856 2007-05-19  Bruno Haible  <bruno@clisp.org>
13857
13858         Avoid test failures on mingw.
13859         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
13860         * tests/test-printf-posix.sh: Likewise.
13861         * tests/test-vfprintf-posix.sh: Likewise.
13862         * tests/test-vprintf-posix.sh: Likewise.
13863
13864 2007-05-19  Bruno Haible  <bruno@clisp.org>
13865
13866         Fix *printf result for NaN, Inf, -0.0 on mingw.
13867         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
13868         * lib/vasnprintf.c: Include math.h and isnan.h.
13869         (is_infinite_or_zero): New function.
13870         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
13871         values in the %f, %F, %e, %E, %g, %G directives.
13872         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
13873         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
13874         gl_PRINTF_INFINITE and test its result. Invoke
13875         gl_PREREQ_VASNPRINTF_INFINITE.
13876         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
13877         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
13878         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
13879         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
13880         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
13881         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
13882         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
13883         * doc/functions/fprintf.texi: Update.
13884         * doc/functions/printf.texi: Update.
13885         * doc/functions/snprintf.texi: Update.
13886         * doc/functions/sprintf.texi: Update.
13887         * doc/functions/vfprintf.texi: Update.
13888         * doc/functions/vprintf.texi: Update.
13889         * doc/functions/vsnprintf.texi: Update.
13890         * doc/functions/vsprintf.texi: Update.
13891
13892 2007-05-19  Bruno Haible  <bruno@clisp.org>
13893
13894         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
13895         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
13896         Instead of multiplying with 10^k, set extra_zeroes to k.
13897         (scale10_round_long_double): Remove function.
13898
13899 2007-05-18  Bruno Haible  <bruno@clisp.org>
13900
13901         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
13902         introduced on 2007-05-06.
13903
13904 2007-05-18  Bruno Haible  <bruno@clisp.org>
13905
13906         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
13907         %g directives.
13908         * tests/test-vasprintf-posix.c (test_function): Likewise.
13909         * tests/test-snprintf-posix.h (test_function): Likewise.
13910         * tests/test-sprintf-posix.h (test_function): Likewise.
13911
13912 2007-05-18  Bruno Haible  <bruno@clisp.org>
13913
13914         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
13915         (strmatch): New function.
13916         (test_function): Test the %f directive on numbers of various exponents.
13917         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
13918         (strmatch): New function.
13919         (test_function): Test the %f directive on numbers of various exponents.
13920         * tests/test-snprintf-posix.h (strmatch): New function.
13921         (test_function): Test the %f directive on numbers of various exponents.
13922         * tests/test-sprintf-posix.h (strmatch): New function.
13923         (test_function): Test the %f directive on numbers of various exponents.
13924         * tests/test-snprintf-posix.c (SIZEOF): New macro.
13925         * tests/test-sprintf-posix.c (SIZEOF): New macro.
13926         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
13927         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
13928
13929 2007-05-18  Bruno Haible  <bruno@clisp.org>
13930
13931         Add support for 'long double' number output.
13932         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
13933         * lib/vasnprintf.c: Include math.h and float+.h.
13934         (mp_limb_t): New type.
13935         (GMP_LIMB_BITS): New macro.
13936         (mp_twolimb_t): New type.
13937         (GMP_TWOLIMB_BITS): New macro.
13938         (mpn_t): New type.
13939         (multiply, divide, convert_to_decimal, decode_long_double,
13940         scale10_round_long_double, scale10_round_decimal_long_double,
13941         floorlog10l): New functions.
13942         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
13943         for the %f, %F, %e, %E, %g, %G directives.
13944         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
13945         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
13946         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
13947         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
13948         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
13949         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
13950         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
13951         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
13952         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
13953         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
13954         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
13955         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
13956         * modules/snprintf-posix (Depends-on): Likewise.
13957         * modules/sprintf-posix (Depends-on): Likewise.
13958         * modules/vasnprintf-posix (Depends-on): Likewise.
13959         * modules/vasprintf-posix (Depends-on): Likewise.
13960         * modules/vfprintf-posix (Depends-on): Likewise.
13961         * modules/vsnprintf-posix (Depends-on): Likewise.
13962         * modules/vsprintf-posix (Depends-on): Likewise.
13963         * modules/vasnprintf (Files): Add lib/float+.h.
13964         * doc/functions/fprintf.texi: Update.
13965         * doc/functions/printf.texi: Update.
13966         * doc/functions/snprintf.texi: Update.
13967         * doc/functions/sprintf.texi: Update.
13968         * doc/functions/vfprintf.texi: Update.
13969         * doc/functions/vprintf.texi: Update.
13970         * doc/functions/vsnprintf.texi: Update.
13971         * doc/functions/vsprintf.texi: Update.
13972
13973 2007-05-18  Bruno Haible  <bruno@clisp.org>
13974
13975         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
13976
13977 2007-05-18  Bruno Haible  <bruno@clisp.org>
13978
13979         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
13980         for printing 64-bit integers. Needed for mingw.
13981
13982 2007-05-18  Bruno Haible  <bruno@clisp.org>
13983
13984         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
13985         gl_FUNC_FREXPL_WORKS.
13986         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
13987
13988 2007-05-18  Bruno Haible  <bruno@clisp.org>
13989
13990         * modules/frexpl-nolibm-tests: New file.
13991
13992         * modules/frexpl-nolibm: New file.
13993         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
13994
13995 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
13996
13997         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
13998         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
13999         GCC 4.2, which otherwise issues a lot of warnings.
14000         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
14001         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
14002         Likewise.
14003         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
14004         * modules/iconv_open (iconv.h): Likewise.
14005         * modules/locale (locale.h): Likewise.
14006         * modules/netinet_in (netinet/in.h): Likewise.
14007         * modules/sys_select (sys_select.h): Likewise.
14008         * modules/sys_socket (sys/socket.h): Likewise.
14009         * modules/sys_stat (sys/stat.h): Likewise.
14010         * modules/sysexits (sysexits.h): Likewise.
14011         * modules/unistd (unistd.h): Likewise.
14012
14013 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14014
14015         * modules/closein-tests (Makefile.am): Distribute
14016         `test-closein.sh'.
14017
14018 2007-05-17  Bruno Haible  <bruno@clisp.org>
14019
14020         * tests/test-printf-posix.output: Renamed from
14021         tests/test-fprintf-posix.out.
14022         * modules/fprintf-posix-tests: Update.
14023         * modules/printf-posix-tests: Update.
14024         * modules/vfprintf-posix-tests: Update.
14025         * modules/vprintf-posix-tests: Update.
14026         * tests/test-fprintf-posix.sh: Update.
14027         * tests/test-printf-posix.sh: Update.
14028         * tests/test-vfprintf-posix.sh: Update.
14029         * tests/test-vprintf-posix.sh: Update.
14030         Reported by Ralf Wildenhues.
14031
14032 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
14033
14034         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
14035         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
14036         GCC 4.2, which otherwise issues a lot of warnings.
14037         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
14038         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
14039         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
14040         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
14041         it should no longer be needed.
14042         * lib/string_.h: Likewise.
14043         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
14044         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
14045         * modules/inttypes (inttypes.h): Likewise.
14046         * modules/math (math.h): Likewise.
14047         * modules/search (search.h): Likewise.
14048         * modules/signal (signal.h): Likewise.
14049         * modules/stdint (stdint.h): Likewise.
14050         * modules/stdio (stdio.h): Likewise.
14051         * modules/stdlib (stdlib.h): Likewise.
14052         * modules/string (string.h): Likewise.
14053         * modules/sys_time (sys/time.h): Likewise.
14054         * modules/time (time.h): Likewise.
14055         * modules/wchar (wchar.h): Likewise.
14056         * modules/wctype (wtype.h): Likewise.
14057
14058 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
14059
14060         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
14061
14062 2007-05-13  Bruno Haible  <bruno@clisp.org>
14063
14064         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
14065         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
14066         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
14067         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
14068         (gl_PREREQ_STRTOK_R): Don't require it here.
14069
14070 2007-05-13  Bruno Haible  <bruno@clisp.org>
14071
14072         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
14073         when used in C++ mode.
14074
14075 2007-05-12  Bruno Haible  <bruno@clisp.org>
14076
14077         * lib/linebuffer.h: Tweak doc.
14078         * lib/linebuffer.c: Likewise.
14079
14080 2007-05-12  James Youngman  <jay@gnu.org>
14081
14082         * lib/linebuffer.c (readlinebuffer_delim): New function,
14083         like readlinebuffer, but use a caller-specified delimiter.
14084         (readlinebuffer): Just call readlinebuffer_delim with '\n'
14085         as the delimiter.
14086         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
14087
14088 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
14089
14090         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
14091         * modules/openat (Files): Remove openat-die.c.
14092         (Depends-on): Add openat-die.
14093         * modules/openat-die: New module.
14094
14095 2007-05-06  Bruno Haible  <bruno@clisp.org>
14096
14097         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
14098         Update with info about Cygwin.
14099         * doc/functions/fprintf.texi: Update.
14100         * doc/functions/printf.texi: Update.
14101         * doc/functions/snprintf.texi: Update.
14102         * doc/functions/sprintf.texi: Update.
14103         * doc/functions/vfprintf.texi: Update.
14104         * doc/functions/vprintf.texi: Update.
14105         * doc/functions/vsnprintf.texi: Update.
14106         * doc/functions/vsprintf.texi: Update.
14107         Reported by Eric Blake.
14108
14109 2007-05-06  Bruno Haible  <bruno@clisp.org>
14110
14111         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
14112         padding ourselves for the floating-point directives.
14113         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
14114         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
14115         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
14116         gl_PRINTF_FLAG_ZERO and test its result. Invoke
14117         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
14118         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
14119         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
14120         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
14121         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
14122         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
14123         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
14124         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
14125         * tests/test-snprintf-posix.h (test_function): Also check the width
14126         and some flags in the %f directive.
14127         * tests/test-sprintf-posix.h (test_function): Likewise.
14128         * tests/test-vasnprintf-posix.c (test_function): Likewise.
14129         * tests/test-vasprintf-posix.c (test_function): Likewise.
14130         * doc/functions/fprintf.texi: Update.
14131         * doc/functions/printf.texi: Update.
14132         * doc/functions/snprintf.texi: Update.
14133         * doc/functions/sprintf.texi: Update.
14134         * doc/functions/vfprintf.texi: Update.
14135         * doc/functions/vprintf.texi: Update.
14136         * doc/functions/vsnprintf.texi: Update.
14137         * doc/functions/vsprintf.texi: Update.
14138
14139 2007-05-06  Bruno Haible  <bruno@clisp.org>
14140
14141         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
14142         pass the ' flag character to sprintf or snprintf.
14143         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
14144         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
14145         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
14146         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
14147         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
14148         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
14149         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
14150         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
14151         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
14152         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
14153         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
14154         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
14155         * tests/test-snprintf-posix.h (test_function): Also check the grouping
14156         flag.
14157         * tests/test-sprintf-posix.h (test_function): Likewise.
14158         * tests/test-vasnprintf-posix.c (test_function): Likewise.
14159         * tests/test-vasprintf-posix.c (test_function): Likewise.
14160         * doc/functions/fprintf.texi: Update.
14161         * doc/functions/printf.texi: Update.
14162         * doc/functions/snprintf.texi: Update.
14163         * doc/functions/sprintf.texi: Update.
14164         * doc/functions/vfprintf.texi: Update.
14165         * doc/functions/vprintf.texi: Update.
14166         * doc/functions/vsnprintf.texi: Update.
14167         * doc/functions/vsprintf.texi: Update.
14168
14169 2007-05-01  Bruno Haible  <bruno@clisp.org>
14170
14171         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
14172
14173 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
14174
14175         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
14176         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
14177
14178 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
14179
14180         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
14181         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
14182         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
14183
14184 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
14185
14186         * lib/argp-help.c (struct hol_entry): New member `ord'.
14187         (HOL_ENTRY_PTRCMP): Use ord for comparison
14188         (hol_sort): Initialize ord.
14189
14190 2007-05-01  Bruno Haible  <bruno@clisp.org>
14191
14192         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
14193         Reported by Eric Blake.
14194         * doc/gnulib.texi (Function Substitutes): Update.
14195
14196 2007-05-01  Bruno Haible  <bruno@clisp.org>
14197
14198         * doc/functions.texi: Remove file, now redundant through
14199         doc/functions/*.texi.
14200
14201 2007-05-01  Bruno Haible  <bruno@clisp.org>
14202
14203         * modules/argp (Depends-on): Add sleep.
14204
14205 2007-05-01  Bruno Haible  <bruno@clisp.org>
14206
14207         * modules/sleep-tests: New file.
14208         * tests/test-sleep.c: New file.
14209
14210         * modules/sleep: New file.
14211         * lib/sleep.c: New file.
14212         * m4/sleep.m4: New file.
14213         * lib/unistd_.h (sleep): New declaration.
14214         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
14215         HAVE_SLEEP.
14216         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
14217         * doc/functions/sleep.texi: Document the sleep module.
14218
14219 2007-05-01  Bruno Haible  <bruno@clisp.org>
14220
14221         * lib/sigprocmask.h: Remove file.
14222         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
14223         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
14224         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
14225         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
14226         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
14227         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
14228         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
14229         HAVE_SIGSET_T as a shell variable.
14230         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
14231         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
14232         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
14233         (Depends-on): Add signal. Remove verify.
14234         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
14235         (Include): Mention <signal.h> instead of sigprocmask.h.
14236         * NEWS: Mention the change.
14237         * lib/fatal-signal.c: Don't include sigprocmask.h.
14238
14239 2007-05-01  Bruno Haible  <bruno@clisp.org>
14240
14241         * modules/signal: New file.
14242         * lib/signal_.h: New file.
14243         * m4/signal_h.m4: New file.
14244
14245 2007-05-01  Bruno Haible  <bruno@clisp.org>
14246
14247         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
14248         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
14249         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
14250         HAVE_WCTYPE_CTMP_BUG into wctype.h.
14251
14252 2007-05-01  Bruno Haible  <bruno@clisp.org>
14253
14254         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
14255         configure time.
14256         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
14257         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
14258         * modules/sys_stat (Makefile.am): Substitute their values into
14259         sys/stat.h.
14260
14261 2007-05-01  Bruno Haible  <bruno@clisp.org>
14262
14263         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
14264         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
14265         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
14266
14267 2007-05-01  Bruno Haible  <bruno@clisp.org>
14268
14269         * doc/header/assert.texi: Undo last change: don't mention the gnulib
14270         'assert' module here.
14271
14272 2007-05-01  Bruno Haible  <bruno@clisp.org>
14273
14274         * doc/functions/*.texi: New files.
14275         * doc/functions/google-ranking.txt: New file.
14276         * doc/gnulib.texi (Function Substitutes): New chapter.
14277         (ctime, inet_ntoa): Remove sections.
14278         * doc/ctime.texi: Remove file.
14279         * doc/inet_ntoa.texi: Remove file.
14280         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
14281         dependencies.
14282         (%.info): New rule, specifying a --reference-limit.
14283
14284 2007-05-01  Bruno Haible  <bruno@clisp.org>
14285
14286         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
14287
14288 2007-05-01  Bruno Haible  <bruno@clisp.org>
14289
14290         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
14291         the portability of 'mkdir' to mingw systems.
14292
14293 2007-05-01  Bruno Haible  <bruno@clisp.org>
14294
14295         * doc/headers/google-ranking.txt: New file.
14296
14297 2007-04-30  Eric Blake  <ebb9@byu.net>
14298
14299         Prefer fseeko to fseek.
14300         * modules/getpass (Depends-on): Add fseeko.
14301         * lib/getpass.c (getpass): Use fseeko, not fseek.
14302
14303 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
14304
14305         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
14306         assumes the sorting is stable, while most qsort implementations
14307         are not.  Use argument addresses to ensure they never compare as
14308         equal.
14309
14310         * tests/test-argp-2.sh (usage-indent test): Fix output
14311         (func_compare): Restore diff options
14312         * tests/test-argp.c: Restore #include "progname.h"
14313
14314 2007-04-29  Bruno Haible  <bruno@clisp.org>
14315
14316         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
14317         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
14318         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
14319         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
14320         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
14321         (configure.ac): Define CHECK_SNPRINTF_POSIX.
14322         (TESTS, check_PROGRAMS): Add test-snprintf.
14323         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
14324         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
14325         (TESTS, check_PROGRAMS): Add test-vsnprintf.
14326         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
14327         assertions that fail on HP-UX, OSF/1, or IRIX.
14328         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
14329
14330 2007-04-29  Bruno Haible  <bruno@clisp.org>
14331
14332         * MODULES.html.sh (posix_functions): Remove 'contents'.
14333
14334 2007-04-29  Karl Berry  <karl@gnu.org>
14335
14336         * config/srclist.txt (gendocs_template_min): new entry.
14337
14338 2007-04-29  Bruno Haible  <bruno@clisp.org>
14339
14340         Work around fpurge bug on BSD systems.
14341         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
14342         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
14343         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
14344         fpurge to rpl_fpurge if the system already has this function.
14345         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
14346         the case where the system already has this function. Correct invariants
14347         on BSD systems.
14348         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
14349         BSD systems.
14350
14351 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
14352
14353         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
14354         proposed by Sven Verdoolaege.
14355
14356         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
14357         options.
14358         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
14359         (usage and help tests): Update
14360
14361 2007-04-29  Bruno Haible  <bruno@clisp.org>
14362
14363         * tests/test-fflush.c (main): Use a file of size 17, not 10.
14364         Print more information in case of failure. Disable a test on BeOS.
14365
14366 2007-04-29  Bruno Haible  <bruno@clisp.org>
14367
14368         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
14369         This helps debugging on systems on which no gdb is available.
14370
14371 2007-04-29  Bruno Haible  <bruno@clisp.org>
14372
14373         * lib/freading.h: Improve comments.
14374         * lib/fwriting.h: Likewise.
14375         * tests/test-freading.c (main): Don't check freading immediately after
14376         repositioning. Needed for glibc.
14377
14378 2007-04-29  Bruno Haible  <bruno@clisp.org>
14379
14380         * lib/freading.c (freading): Trivial simplification.
14381
14382 2007-04-28  Bruno Haible  <bruno@clisp.org>
14383
14384         * tests/test-fwriting.c (main): Also test the interaction between
14385         fflush and fwriting.
14386         * modules/fwriting-tests (Depends-on): Add fflush.
14387
14388         * tests/test-freading.c (main): Also test the interaction between
14389         fflush and freading.
14390         * modules/freading-tests (Depends-on): Add fflush.
14391
14392 2007-04-28  Bruno Haible  <bruno@clisp.org>
14393
14394         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
14395         fseeko and ftello.
14396         Suggested by Eric Blake.
14397
14398 2007-04-28  Jim Meyering  <jim@meyering.net>
14399
14400         Avoid false-negative in gl_STDINT_H's C99 conformance test.
14401         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
14402         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
14403
14404 2007-04-27  Eric Blake  <ebb9@byu.net>
14405
14406         * doc/headers/assert.texi (assert.h): Document assert module use.
14407
14408 2007-04-27  Bruno Haible  <bruno@clisp.org>
14409
14410         * doc/headers/*.texi: New files.
14411         * doc/gnulib.texi (Header File Substitutes): New chapter.
14412         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
14413         dependencies.
14414         (standards.info ,standards.html, standards.dvi): Update dependencies.
14415         (mostlyclean, clean): New targets.
14416
14417 2007-04-27  Bruno Haible  <bruno@clisp.org>
14418
14419         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
14420         * modules/sysexits (Files, Makefile.am): Update.
14421
14422         * lib/sys_socket_.h: Renamed from lib/socket_.h.
14423         * modules/sys_socket (Files, Makefile.am): Update.
14424
14425         * lib/sys_stat_.h: Renamed from lib/stat_.h.
14426         * modules/sys_stat (Files, Makefile.am): Update.
14427
14428 2007-04-27  Eric Blake  <ebb9@byu.net>
14429
14430         * lib/freading.h: Improve comments.
14431         * lib/fwriting.h: Likewise.
14432         * lib/fflush.c: Likewise.
14433
14434         Fix closein for mingw.
14435         * modules/closein-tests: Add tests for closein.
14436         * tests/test-closein.c: New file.
14437         * tests/test-closein.sh: Likewise.
14438         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
14439         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
14440
14441 2007-04-27  Bruno Haible  <bruno@clisp.org>
14442
14443         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
14444         version is < 6.
14445         * lib/math_.h [__DECC]: Likewise.
14446         * lib/stdio_.h [__DECC]: Likewise.
14447         * lib/stdlib_.h [__DECC]: Likewise.
14448         * lib/string_.h [__DECC]: Likewise.
14449         * lib/time_.h [__DECC]: Likewise.
14450         * lib/wchar_.h [__DECC]: Likewise.
14451         * lib/wctype_.h [__DECC]: Likewise.
14452
14453 2007-04-27  Bruno Haible  <bruno@clisp.org>
14454
14455         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
14456
14457 2007-04-27  Bruno Haible  <bruno@clisp.org>
14458
14459         * lib/fflush.c: Add comments.
14460         * modules/fpurge-tests (Depends-on): Add fflush.
14461         * modules/freadable-tests (Depends-on): Likewise.
14462         * modules/fwritable-tests (Depends-on): Likewise.
14463
14464 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
14465
14466         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
14467         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
14468         Report by Bruno Haible <bruno@clisp.org>.
14469
14470 2007-04-26  Eric Blake  <ebb9@byu.net>
14471
14472         Fix fflush on mingw.
14473         * modules/fflush (Depends-on): Add freading.
14474         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
14475         but unread data.
14476
14477 2007-04-26  Eric Blake  <ebb9@byu.net>
14478         and Bruno Haible  <bruno@clisp.org>
14479
14480         Implement freading and fwriting.
14481         * lib/freading.c: New file.
14482         * lib/freading.h: Likewise.
14483         * m4/freading.m4: Likewise.
14484         * modules/freading: Likewise.
14485         * modules/freading-tests: Likewise.
14486         * tests/test-freading.c: Likewise.
14487         * lib/fwriting.c: New file.
14488         * lib/fwriting.h: Likewise.
14489         * m4/fwriting.m4: Likewise.
14490         * modules/fwriting: Likewise.
14491         * modules/fwriting-tests: Likewise.
14492         * tests/test-fwriting.c: Likewise.
14493         * MODULES.html.sh (File stream based Input/Output): Mention them.
14494
14495 2007-04-26  Bruno Haible  <bruno@clisp.org>
14496
14497         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
14498         'long' when we assume it.
14499         Suggested by Eric Blake.
14500
14501 2007-04-26  Bruno Haible  <bruno@clisp.org>
14502
14503         Ensure fseeko, ftello are declared on glibc systems.
14504         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
14505         * modules/fseeko (configure.ac-early): Likewise.
14506         * modules/ftello (configure.ac-early): Likewise.
14507         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
14508         AC_FUNC_FSEEKO for this.
14509         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
14510         (gl_CHECK_FSEEKO): Remove macro.
14511
14512 2007-04-26  Bruno Haible  <bruno@clisp.org>
14513
14514         * tests/test-fflush.c (main): Also check the ftell result after
14515         fflush and fseek/fseeko.
14516         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
14517         file descriptor position cache in the stream.
14518         * lib/fseeko.c (rpl_fseeko): Likewise.
14519
14520 2007-04-26  Bruno Haible  <bruno@clisp.org>
14521
14522         * modules/fflush-tests (Depends-on): Add fseeko.
14523
14524 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
14525             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14526
14527         * lib/argz_.h: ensure error_t definition is obtained in same
14528         mechanism system argz.h would have.
14529         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
14530         argz facilities are known bad.  Err on the side of caution if
14531         cross-compiling.
14532
14533 2007-04-25  Eric Blake  <ebb9@byu.net>
14534
14535         * lib/fpurge.c (includes): Use stdlib.h for free.
14536         * tests/test-fflush.c (main): Also test fflush-fseeko.
14537
14538 2007-04-25  Bruno Haible  <bruno@clisp.org>
14539
14540         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
14541         * lib/fseeko.c: New file.
14542         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
14543         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
14544         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
14545         gl_FUNC_FSEEKO.
14546         (gl_FUNC_FSEEKO): Invoke it.
14547         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
14548         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
14549         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
14550
14551 2007-04-25  Bruno Haible  <bruno@clisp.org>
14552
14553         * modules/fflush (Depends-on): Add ftello.
14554
14555 2007-04-25  Bruno Haible  <bruno@clisp.org>
14556
14557         * modules/ftello-tests: New file.
14558         * tests/test-ftello.c: New file.
14559
14560         * modules/ftello: New file.
14561         * m4/ftello.m4: New file.
14562         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
14563         HAVE_FTELLO.
14564         * lib/stdio_.h (ftello): New declaration.
14565         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
14566         HAVE_FTELLO.
14567
14568 2007-04-25  Bruno Haible  <bruno@clisp.org>
14569
14570         * modules/fseeko-tests: New file.
14571         * tests/test-fseeko.c: New file.
14572
14573         * modules/fseeko: New file.
14574         * m4/fseeko.m4: New file.
14575         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
14576         HAVE_FSEEKO.
14577         * lib/stdio_.h (fseeko): New declaration.
14578         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
14579         HAVE_FSEEKO.
14580
14581 2007-04-25  Bruno Haible  <bruno@clisp.org>
14582
14583         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
14584
14585 2007-04-25  Bruno Haible  <bruno@clisp.org>
14586
14587         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
14588         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
14589         * tests/test-unistd.c: Likewise.
14590         * tests/test-fcntl.c: Likewise.
14591
14592 2007-04-23  Eric Blake  <ebb9@byu.net>
14593
14594         * lib/fflush.c: Fix missing include.
14595         Reported by Bruno Haible.
14596
14597 2007-04-23  Bruno Haible  <bruno@clisp.org>
14598
14599         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
14600         Reported by Eric Blake.
14601
14602 2007-04-23  Bruno Haible  <bruno@clisp.org>
14603
14604         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
14605
14606 2007-04-23  Bruno Haible  <bruno@clisp.org>
14607
14608         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
14609
14610 2007-04-23  Bruno Haible  <bruno@clisp.org>
14611
14612         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
14613         Needed on HP-UX 11.
14614
14615 2007-04-16  Eric Blake  <ebb9@byu.net>
14616
14617         Make fflush rely on fpurge.
14618         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
14619         open coding all variants.
14620         * modules/fflush (Depends-on): Add fpurge and unistd.
14621         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
14622         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
14623
14624         Fix --with-tests compilation on cygwin.
14625         * modules/argmatch-tests (Makefile.am): List gnulib library first
14626         in LDADD.
14627         * modules/argp-tests (Makefile.am): Likewise.
14628         * modules/array-list-tests (Makefile.am): Likewise.
14629         * modules/array-oset-tests (Makefile.am): Likewise.
14630         * modules/avltree-list-tests (Makefile.am): Likewise.
14631         * modules/avltree-oset-tests (Makefile.am): Likewise.
14632         * modules/avltreehash-list-tests (Makefile.am): Likewise.
14633         * modules/carray-list-tests (Makefile.am): Likewise.
14634         * modules/dirname-tests (Makefile.am): Likewise.
14635         * modules/frexp-tests (Makefile.am): Likewise.
14636         * modules/isnanl-tests (Makefile.am): Likewise.
14637         * modules/linked-list-tests (Makefile.am): Likewise.
14638         * modules/linkedhash-list-tests (Makefile.am): Likewise.
14639         * modules/lock-tests (Makefile.am): Likewise.
14640         * modules/rbtree-list-tests (Makefile.am): Likewise.
14641         * modules/rbtree-oset-tests (Makefile.am): Likewise.
14642         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
14643         * modules/tls-tests (Makefile.am): Likewise.
14644         * modules/tsearch-tests (Makefile.am): Likewise.
14645         * modules/xvasprintf-tests (Makefile.am): Likewise.
14646
14647         Fix fpurge for cygwin.
14648         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
14649         value.
14650         * modules/fpurge-tests (Depends-on): Clean up trash.
14651
14652 2007-04-16  Simon Josefsson  <simon@josefsson.org>
14653
14654         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
14655
14656         * m4/autobuild.m4: Re-indent.
14657
14658 2007-04-13  Bruno Haible  <bruno@clisp.org>
14659
14660         * modules/fpurge-tests: New file.
14661         * tests/test-fpurge.c: New file.
14662
14663         * modules/fpurge: New file.
14664         * lib/fpurge.h: New file.
14665         * lib/fpurge.c: New file.
14666         * m4/fpurge.m4: New file.
14667
14668 2007-04-13  Bruno Haible  <bruno@clisp.org>
14669
14670         * modules/fbufmode-tests: New file.
14671         * tests/test-fbufmode.c: New file.
14672
14673         * modules/fbufmode: New file.
14674         * lib/fbufmode.h: New file.
14675         * lib/fbufmode.c: New file.
14676         * m4/fbufmode.m4: New file.
14677
14678 2007-04-13  Bruno Haible  <bruno@clisp.org>
14679
14680         * modules/fwritable-tests: New file.
14681         * tests/test-fwritable.c: New file.
14682
14683         * modules/fwritable: New file.
14684         * lib/fwritable.h: New file.
14685         * lib/fwritable.c: New file.
14686         * m4/fwritable.m4: New file.
14687
14688 2007-04-13  Bruno Haible  <bruno@clisp.org>
14689
14690         * modules/freadable-tests: New file.
14691         * tests/test-freadable.c: New file.
14692
14693         * modules/freadable: New file.
14694         * lib/freadable.h: New file.
14695         * lib/freadable.c: New file.
14696         * m4/freadable.m4: New file.
14697
14698 2007-04-13  Bruno Haible  <bruno@clisp.org>
14699
14700         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
14701         MOSTLYCLEANFILES.
14702
14703 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
14704
14705         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
14706         gzip bootstrap.conf to avoid dragging in i18n machinery.
14707         (gnulib_tool_option): Use it.
14708
14709 2007-04-13  Bruno Haible  <bruno@clisp.org>
14710
14711         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
14712         %F directives.
14713         * tests/test-vasprintf-posix.c (test_function): Likewise.
14714         * tests/test-snprintf-posix.h (test_function): Likewise.
14715         * tests/test-sprintf-posix.h (test_function): Likewise.
14716         * tests/test-fprintf-posix.h (test_function): Likewise.
14717         * tests/test-printf-posix.h (test_function): Likewise.
14718         * tests/test-fprintf-posix.out: Likewise.
14719
14720 2007-04-13  Bruno Haible  <bruno@clisp.org>
14721
14722         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
14723         * modules/tls-tests (configure.ac): Likewise.
14724         Reported by Arto C. Nirkko <anirkko@insel.ch>.
14725
14726 2007-04-13  Bruno Haible  <bruno@clisp.org>
14727
14728         * lib/tls.c (glthread_tls_get): Fix return type.
14729         Patch by Arto C. Nirkko <anirkko@insel.ch>.
14730
14731 2007-04-12  Eric Blake  <ebb9@byu.net>
14732
14733         * modules/gettime (Depends-on): Remove gettime.
14734         Reported by Dmitry V. Levin.
14735
14736 2007-04-12  Bruno Haible  <bruno@clisp.org>
14737
14738         * modules/fflush (Include): Mention <stdio.h>.
14739         * modules/strtoimax (Include): Mention <inttypes.h>.
14740         * modules/strtoumax (Include): Likewise.
14741
14742 2007-04-12  Eric Blake  <ebb9@byu.net>
14743
14744         * .cvsignore: New file.
14745         * .gitignore: Likewise.
14746
14747 2007-04-12  Bruno Haible  <bruno@clisp.org>
14748
14749         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
14750         not before, since $(LDADD) often contains libgnu.a.
14751         * modules/striconv-tests (test_striconv_LDADD): Likewise.
14752         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
14753         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
14754         Needed on Cygwin.
14755
14756 2007-04-12  Eric Blake  <ebb9@byu.net>
14757
14758         Work around glibc's failure to flush stdin on fclose.
14759         * lib/closein.c (close_stdin): Flush stdin before closing.
14760
14761         Work around glibc's failure to reset seekable stdin on exit.
14762         * modules/closein: New module.
14763         * lib/closein.c: New file.
14764         * lib/closein.h: Likewise.
14765         * m4/closein.m4: Likewise.
14766         * MODULES.html.sh (File stream based Input/Output): Document it.
14767
14768 2007-04-12  Simon Josefsson  <simon@josefsson.org>
14769
14770         * gnulib-tool: Rename generated 'autobuild' script to
14771         'do-autobuild' in --create-megatestdir output.
14772
14773         * doc/gnulib.texi (Build robot for gnulib): Fix.
14774
14775 2007-04-12  Simon Josefsson  <simon@josefsson.org>
14776
14777         * modules/sysexits (Depends-on): Add absolute-header.
14778
14779 2007-04-12  Eric Blake  <ebb9@byu.net>
14780
14781         No need to preserve errno on success.
14782         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
14783         Reported by Bruno Haible.
14784
14785 2007-04-12  Simon Josefsson  <simon@josefsson.org>
14786
14787         * MODULES.html.sh (Support for maintaining and releasing
14788         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
14789
14790 2007-04-12  Simon Josefsson  <simon@josefsson.org>
14791
14792         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
14793
14794 2007-04-12  Simon Josefsson  <simon@josefsson.org>
14795
14796         * modules/autobuild: New module.
14797
14798         * m4/autobuild.m4: New file.
14799
14800 2007-04-11  Bruno Haible  <bruno@clisp.org>
14801
14802         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
14803         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
14804         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
14805         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
14806         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
14807         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
14808         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
14809         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
14810         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
14811         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
14812         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
14813         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
14814         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
14815         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
14816         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
14817         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
14818         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
14819         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
14820         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
14821         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
14822         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
14823         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
14824         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
14825         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
14826         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
14827         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
14828         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
14829         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
14830         Reported by Eric Blake.
14831
14832 2007-04-11  Bruno Haible  <bruno@clisp.org>
14833
14834         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
14835
14836 2007-04-10  Bruno Haible  <bruno@clisp.org>
14837
14838         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
14839         for NaN and Infinity. Needed on FreeBSD 6.1.
14840         * tests/test-vasnprintf-posix.c (test_function): Undo last change
14841         regarding results for "%010a" of Infinity and NaN.
14842         * tests/test-vasprintf-posix.c (test_function): Likewise.
14843         * tests/test-snprintf-posix.h (test_function): Likewise.
14844         * tests/test-sprintf-posix.h (test_function): Likewise.
14845         * tests/test-fprintf-posix.h (test_function): Likewise.
14846         * tests/test-printf-posix.h (test_function): Likewise.
14847         * tests/test-fprintf-posix.out: Likewise.
14848
14849 2007-04-10  Bruno Haible  <bruno@clisp.org>
14850
14851         * modules/locale-tests: New file.
14852         * tests/test-locale.c: New file.
14853
14854         * modules/locale: New file.
14855         * lib/locale_.h: New file.
14856         * m4/locale_h.m4: New file.
14857
14858 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
14859             Bruno Haible  <bruno@clisp.org>
14860
14861         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
14862         be determined, test for availability of the copysignf, copysign,
14863         copysignl functions.
14864         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
14865         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
14866         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
14867
14868 2007-04-09  Eric Blake  <ebb9@byu.net>
14869
14870         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
14871         * modules/stdio (Makefile.am): Support fflush.
14872         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
14873         * modules/fflush: New file.
14874         * lib/fflush.c: Likewise.
14875         * m4/fflush.m4: Likewise.
14876         * modules/fflush-tests: New test.
14877         * tests/test-fflush.c: Likewise.
14878         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
14879
14880 2007-04-06  Bruno Haible  <bruno@clisp.org>
14881
14882         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
14883         (VASNPRINTF): Use signbit for faster determination whether to print a
14884         minus sign.
14885         * modules/vasnprintf (Files): Remove lib/float+.h.
14886         * modules/fprintf-posix (Depends-on): Add signbit.
14887         * modules/snprintf-posix (Depends-on): Likewise.
14888         * modules/sprintf-posix (Depends-on): Likewise.
14889         * modules/vasnprintf-posix (Depends-on): Likewise.
14890         * modules/vasprintf-posix (Depends-on): Likewise.
14891         * modules/vfprintf-posix (Depends-on): Likewise.
14892         * modules/vsnprintf-posix (Depends-on): Likewise.
14893         * modules/vsprintf-posix (Depends-on): Likewise.
14894
14895 2007-04-06  Bruno Haible  <bruno@clisp.org>
14896
14897         * tests/test-frexp.c (main): Test also the sign bit of zero results.
14898         * tests/test-frexpl.c (main): Likewise.
14899         * tests/test-ldexpl.c (main): Likewise.
14900         * modules/frexp-tests (Depends-on): Add signbit.
14901         * modules/frexpl-tests (Depdends-on): Likewise.
14902         * modules/ldexpl-tests (Depdends-on): Likewise.
14903
14904 2007-04-06  Bruno Haible  <bruno@clisp.org>
14905
14906         * modules/signbit-tests: New file.
14907         * tests/test-signbit.c: New file.
14908
14909         * modules/signbit: New file.
14910         * lib/signbitf.c: New file.
14911         * lib/signbitd.c: New file.
14912         * lib/signbitl.c: New file.
14913         * m4/signbit.m4: New file.
14914         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
14915         (signbit): New macro.
14916         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
14917         REPLACE_SIGNBIT.
14918         * modules/math (Makefile.am) Substibute also GNULIB_SIGNBIT and
14919         REPLACE_FREXPL into math.h.
14920
14921 2007-04-06  Bruno Haible  <bruno@clisp.org>
14922
14923         * modules/isnanf-nolibm-tests: New file.
14924         * tests/test-isnanf.c: New file.
14925
14926         * modules/isnanf-nolibm: New file.
14927         * lib/isnanf.h: New file.
14928         * lib/isnanf.c: New file.
14929         * lib/isnan.c: Consider the USE_FLOAT macro.
14930         * m4/isnanf.m4: New file.
14931
14932 2007-04-06  Bruno Haible  <bruno@clisp.org>
14933
14934         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
14935         (Link): New section.
14936
14937         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
14938
14939 2007-04-06  Bruno Haible  <bruno@clisp.org>
14940
14941         Assume the 'long double' type.
14942         * m4/longdouble.m4: Remove file.
14943         * config/srclist.txt: Don't mention longdouble.m4.
14944         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
14945         * lib/float+.h: Likewise.
14946         * lib/frexp.c: Likewise.
14947         * lib/printf-args.h: Likewise.
14948         * lib/printf-args.c: Likewise.
14949         * lib/printf-frexp.c: Likewise.
14950         * lib/printf-parse.c: Likewise.
14951         * lib/vasnprintf.c: Likewise.
14952         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
14953         * m4/intl.m4: Likewise.
14954         * m4/isnanl.m4: Likewise.
14955         * m4/printf.m4: Likewise.
14956         * m4/printf-frexpl.m4: Likewise.
14957         * m4/vasnprintf.m4: Likewise.
14958         * modules/allocsa (Files): Remove m4/longdouble.m4.
14959         * modules/gettext (Files): Likewise.
14960         * modules/relocatable-prog-wrapper (Files): Likewise.
14961         * modules/vasnprintf (Files): Likewise.
14962         * modules/isnanl (Files): Likewise.
14963         (Include): Simplify.
14964         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
14965         (Include): Simplify.
14966         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
14967         (Include): Simplify.
14968         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
14969         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
14970         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
14971         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
14972         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
14973         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
14974         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
14975         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
14976         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
14977         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
14978         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
14979         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
14980         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
14981         * tests/test-isnanl.c: Likewise.
14982         * tests/test-snprintf-posix.h: Likewise.
14983         * tests/test-sprintf-posix.h: Likewise.
14984         * tests/test-vasnprintf-posix.c: Likewise.
14985         * tests/test-vasnprintf-posix2.c: Likewise.
14986         * tests/test-vasprintf-posix.c: Likewise.
14987
14988 2007-04-06  Bruno Haible  <bruno@clisp.org>
14989
14990         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
14991         * lib/math_.h [__DECC]: Include the overridden include file through
14992         #include_next, outside the double-inclusion guard.
14993         * lib/stdio_.h [__DECC]: Likewise.
14994         * lib/stdlib_.h [__DECC]: Likewise.
14995         * lib/string_.h [__DECC]: Likewise.
14996         * lib/time_.h [__DECC]: Likewise.
14997         * lib/wchar_.h [__DECC]: Likewise.
14998         * lib/wctype_.h [__DECC]: Likewise.
14999         * lib/inttypes_.h [__DECC]: Likewise.
15000         Reported by Albert Chin <china@thewrittenword.com> in
15001         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
15002
15003 2007-04-04  Eric Blake  <ebb9@byu.net>
15004
15005         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
15006         1.5.x.
15007
15008 2007-04-04  Bruno Haible  <bruno@clisp.org>
15009
15010         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
15011         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
15012
15013 2007-04-04  Bruno Haible  <bruno@clisp.org>
15014
15015         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
15016         results for "%010a" of Infinity and NaN.
15017         * tests/test-vasprintf-posix.c (test_function): Likewise.
15018         * tests/test-snprintf-posix.h (test_function): Likewise.
15019         * tests/test-sprintf-posix.h (test_function): Likewise.
15020         * tests/test-fprintf-posix.h (test_function): Remove these tests.
15021         * tests/test-printf-posix.h (test_function): Likewise.
15022         * tests/test-fprintf-posix.out: Update.
15023         Needed for FreeBSD 6.1.
15024
15025 2007-04-04  Bruno Haible  <bruno@clisp.org>
15026
15027         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
15028         directly used by the gnulib modules nor by gnulib-tool.
15029
15030 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
15031
15032         * DEPENDENCIES: Give overall description of version dependency
15033         desirability.  Use more-typical names for apps.
15034         Add shell, coreutils, diffutils, grep, tar, gzip.
15035
15036 2007-04-04  Simon Josefsson  <simon@josefsson.org>
15037
15038         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
15039
15040 2007-04-04  Karl Berry  <karl@gnu.org>
15041
15042         * MODULES.html.sh (func_module): missing '.
15043
15044 2007-04-03  Bruno Haible  <bruno@clisp.org>
15045
15046         * modules/argmatch-tests (Makefile.am): New variable
15047         test_argmatch_LDADD.
15048         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
15049         * modules/array-list-tests (Makefile.am): New variable
15050         test_array_list_LDADD.
15051         * modules/array-oset-tests (Makefile.am): New variable
15052         test_array_oset_LDADD.
15053         * modules/avltree-list-tests (Makefile.am): New variable
15054         test_avltree_list_LDADD.
15055         * modules/avltree-oset-tests (Makefile.am): New variable
15056         test_avltree_oset_LDADD.
15057         * modules/avltreehash-list-tests (Makefile.am): New variable
15058         test_avltreehash_list_LDADD.
15059         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
15060         test_canonicalize_lgpl_LDADD.
15061         * modules/carray-list-tests (Makefile.am): New variable
15062         test_carray_list_LDADD.
15063         * modules/dirname-tests (Makefile.am): New variable
15064         test_dirname_LDADD.
15065         * modules/linked-list-tests (Makefile.am): New variable
15066         test_linked_list_LDADD.
15067         * modules/linkedhash-list-tests (Makefile.am): New variable
15068         test_linkedhash_list_LDADD.
15069         * modules/rbtree-list-tests (Makefile.am): New variable
15070         test_rbtree_list_LDADD.
15071         * modules/rbtree-oset-tests (Makefile.am): New variable
15072         test_rbtree_oset_LDADD.
15073         * modules/rbtreehash-list-tests (Makefile.am): New variable
15074         test_rbtreehash_list_LDADD.
15075         * modules/xvasprintf-tests (Makefile.am): New variable
15076         test_xvasprintf_LDADD.
15077         Reported by Eric Blake.
15078
15079 2007-04-03  Eric Blake  <ebb9@byu.net>
15080
15081         * DEPENDENCIES: Weaken m4 requirements.
15082
15083 2007-04-03  Bruno Haible  <bruno@clisp.org>
15084
15085         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
15086         * modules/isnanl-tests (configure.ac): Likewise.
15087
15088 2007-04-03  Ben Pfaff  <blp@gnu.org>
15089
15090         * modules/iconv_open: Add $(srcdir)/ to source directory
15091         references in Makefile fragments that call gperf, to fix VPATH
15092         builds.
15093
15094 2007-04-03  Bruno Haible  <bruno@clisp.org>
15095
15096         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
15097         * lib/ldexpl.c: Undo last change.
15098
15099 2007-04-03  Bruno Haible  <bruno@clisp.org>
15100
15101         * modules/printf-frexpl (Depends-on): Undo last change.
15102         (Files): Add m4/ldexpl.m4.
15103
15104 2007-04-03  Bruno Haible  <bruno@clisp.org>
15105
15106         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
15107         * modules/isnanl (Link): New section.
15108
15109         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
15110         * modules/frexp (Link): New section.
15111
15112         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
15113         * modules/frexpl (Link): New section.
15114
15115         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
15116         * modules/ldexpl (Link): New section.
15117
15118 2007-04-03  Bruno Haible  <bruno@clisp.org>
15119
15120         * modules/TEMPLATE-EXTENDED: New file.
15121         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
15122
15123 2007-04-03  Bruno Haible  <bruno@clisp.org>
15124
15125         * DEPENDENCIES: New file.
15126         Suggested by Simon Josefsson.
15127
15128 2007-04-03  Bruno Haible  <bruno@clisp.org>
15129
15130         * doc/gnulib.texi: Escape @.
15131
15132 2007-04-03  James Youngman  <jay@gnu.org>
15133         and Paul Eggert  <eggert@cs.ucla.edu>
15134
15135         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
15136         birthtime on all systems that have birthtime, not just those which
15137         use st_birthtimensec rather than st_birthtim.  Putting zero in
15138         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
15139         that the birth time is not available for files on an NFS mount.
15140
15141 2007-04-03  Simon Josefsson  <simon@josefsson.org>
15142
15143         * modules/memxor: Move back from crypto/, suggested by Bruno.
15144         * modules/crypto/hmac-sha1: Fix memxor dependency.
15145
15146         * modules/crypto/gc: Moved from ../.
15147
15148 2007-04-02  Eric Blake  <ebb9@byu.net>
15149
15150         * lib/ldexpl.c (includes): Avoid libm.
15151
15152         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
15153
15154 2007-04-02  Bruno Haible  <bruno@clisp.org>
15155
15156         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
15157         on IRIX.
15158
15159 2007-04-02  Bruno Haible  <bruno@clisp.org>
15160
15161         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
15162         x86 or x86_64 platforms running MacOS X.
15163         Reported by Ryan Schmidt <@ryandesign.com>.
15164
15165 2007-04-02  Bruno Haible  <bruno@clisp.org>
15166
15167         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
15168         i386.
15169
15170 2007-04-01  Simon Josefsson  <simon@josefsson.org>
15171
15172         * modules/crypto/arcfour: Moved from ../.
15173         * modules/crypto/arcfour-tests: Moved from ../.
15174         * modules/crypto/arctwo: Moved from ../.
15175         * modules/crypto/arctwo-tests: Moved from ../.
15176         * modules/crypto/des: Moved from ../.
15177         * modules/crypto/des-tests: Moved from ../.
15178         * modules/crypto/gc-arcfour: Moved from ../.
15179         * modules/crypto/gc-arcfour-tests: Moved from ../.
15180         * modules/crypto/gc-arctwo: Moved from ../.
15181         * modules/crypto/gc-arctwo-tests: Moved from ../.
15182         * modules/crypto/gc-des: Moved from ../.
15183         * modules/crypto/gc-des-tests: Moved from ../.
15184         * modules/crypto/gc-hmac-md5: Moved from ../.
15185         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
15186         * modules/crypto/gc-hmac-sha1: Moved from ../.
15187         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
15188         * modules/crypto/gc-md2: Moved from ../.
15189         * modules/crypto/gc-md2-tests: Moved from ../.
15190         * modules/crypto/gc-md4: Moved from ../.
15191         * modules/crypto/gc-md4-tests: Moved from ../.
15192         * modules/crypto/gc-md5: Moved from ../.
15193         * modules/crypto/gc-md5-tests: Moved from ../.
15194         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
15195         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
15196         * modules/crypto/gc-random: Moved from ../.
15197         * modules/crypto/gc-rijndael: Moved from ../.
15198         * modules/crypto/gc-rijndael-tests: Moved from ../.
15199         * modules/crypto/gc-sha1: Moved from ../.
15200         * modules/crypto/gc-sha1-tests: Moved from ../.
15201         * modules/crypto/gc-tests: Moved from ../.
15202         * modules/crypto/hmac-md5: Moved from ../.
15203         * modules/crypto/hmac-md5-tests: Moved from ../.
15204         * modules/crypto/hmac-sha1: Moved from ../.
15205         * modules/crypto/hmac-sha1-tests: Moved from ../.
15206         * modules/crypto/md2: Moved from ../.
15207         * modules/crypto/md2-tests: Moved from ../.
15208         * modules/crypto/md4: Moved from ../.
15209         * modules/crypto/md4-tests: Moved from ../.
15210         * modules/crypto/md5: Moved from ../.
15211         * modules/crypto/md5-tests: Moved from ../.
15212         * modules/crypto/memxor: Moved from ../.
15213         * modules/crypto/rijndael: Moved from ../.
15214         * modules/crypto/rijndael-tests: Moved from ../.
15215         * modules/crypto/sha1: Moved from ../.
15216
15217 2007-03-30  James Youngman  <jay@gnu.org>
15218
15219         * tests/test-stat-time.c (prepare_test): use chmod() rather than
15220         rename() to change the ctime of a file (because ctime is unaffected
15221         by rename on jfs2 on AIX 5.1).
15222         (main): Start by doing cleanup, in case a previous run failed leaving
15223         test files behind.
15224
15225 2007-03-31  Bruno Haible  <bruno@clisp.org>
15226
15227         Support old proprietary implementations of iconv.
15228         * modules/iconv_open: New file.
15229         * lib/iconv_.h: New file.
15230         * m4/iconv_h.m4: New file.
15231         * lib/iconv_open.c: New file.
15232         * lib/iconv_open-aix.gperf: New file.
15233         * lib/iconv_open-hpux.gperf: New file.
15234         * lib/iconv_open-irix.gperf: New file.
15235         * lib/iconv_open-osf.gperf: New file.
15236         * m4/iconv_open.m4: New file.
15237         * modules/linebreak (Depends-on): Add iconv_open.
15238         * modules/striconv (Depends-on): Likewise.
15239         * modules/striconveh (Depends-on): Likewise.
15240         * modules/unicodeio (Depends-on): Likewise.
15241         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
15242         (iconv_t)(-1).
15243         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
15244         conversion if cd is (iconv_t)(-1).
15245         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
15246         is not possible.
15247
15248 2007-03-31  Bruno Haible  <bruno@clisp.org>
15249
15250         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
15251         work on Solaris either. Protect also second use of "autodetect_jp".
15252
15253 2007-03-31  Bruno Haible  <bruno@clisp.org>
15254
15255         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
15256         the function is not present.
15257
15258 2007-03-31  Bruno Haible  <bruno@clisp.org>
15259
15260         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
15261         the function is not present.
15262
15263 2007-03-31  Bruno Haible  <bruno@clisp.org>
15264
15265         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
15266         a bug in HP-UX iconv_open().
15267
15268 2007-03-31  Bruno Haible  <bruno@clisp.org>
15269
15270         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
15271         (Mathematics <math.h>): New section, add fpieee.
15272         (Input/output <stdio.h>): Add fseterr.
15273         (Mathematics <math.h>): New section, add printf-frexp.
15274         (Container data structures): Add sublist.
15275         (Core language properties): Add fpucw, inline.
15276         (Functions for greatest-width integer types <inttypes.h>): Add
15277         imaxabs, imaxdiv, inttypes.
15278         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
15279         isnanl-nolibm, ldexp.
15280         (Mathematics <math.h>): New section, add printf-frexpl.
15281         (Support for systems lacking POSIX:2001): Add fprintf-posix,
15282         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
15283         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
15284         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
15285         (Unicode string functions): Add unistr/u*-mbtoucr.
15286         (Java): Add javacomp-script, javaexec-script.
15287         (C#): Add csharpcomp-script, csharpexec-script.
15288         (Support for building libraries and executables): Add havelib,
15289         relocatable-*.
15290         (Support for maintaining and releasing projects): Renamed from
15291         'Support for maintaining and release projects'. Add announce-gen.
15292
15293 2007-03-31  Bruno Haible  <bruno@clisp.org>
15294
15295         * README: Talk primarily about git.
15296         (git and CVS): Renamed from CVS.
15297         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
15298         gnulib is available through git.
15299         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
15300
15301 2007-03-30  Bruno Haible  <bruno@clisp.org>
15302
15303         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
15304         * lib/poll_.h: Likewise.
15305         * lib/stat_.h: Likewise.
15306         * lib/sys_time_.h: Likewise.
15307         * lib/sysexit_.h: Likewise.
15308         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
15309         * lib/stdbool_.h: Likewise.
15310         * lib/byteswap_.h: Add double-inclusion guard.
15311
15312 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
15313
15314         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
15315
15316 2007-03-30  Karl Berry  <karl@gnu.org>
15317
15318         * config/srclist-update: double space after USA in the license
15319         substitution, since that's how it's usually (?) written.
15320
15321 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
15322
15323         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
15324         reported by Bruno Haible.
15325
15326 2007-03-29  Bruno Haible  <bruno@clisp.org>
15327
15328         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
15329         a bug in AIX iconv().
15330
15331 2007-03-29  Bruno Haible  <bruno@clisp.org>
15332
15333         * modules/ldexpl-tests: New file.
15334         * tests/test-ldexpl.c: New file.
15335
15336 2007-03-29  Bruno Haible  <bruno@clisp.org>
15337
15338         * lib/ldexpl.c: Include fpucw.h.
15339         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
15340         multiplication.
15341         * modules/ldexpl (Depends-on): Add fpucw.
15342
15343 2007-03-29  Bruno Haible  <bruno@clisp.org>
15344
15345         * modules/ldexpl: New file.
15346         * m4/ldexpl.m4: New file.
15347         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
15348         set.
15349         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
15350         REPLACE_LDEXPL.
15351         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
15352         REPLACE_LDEXPL.
15353         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
15354         gl_FUNC_LDEXPL_WORKS.
15355         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
15356         * modules/mathl (Files): Remove lib/ldexpl.c.
15357         (Depends-on): Add ldexpl.
15358
15359 2007-03-29  Bruno Haible  <bruno@clisp.org>
15360
15361         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
15362
15363 2007-03-29  Bruno Haible  <bruno@clisp.org>
15364
15365         * tests/test-striconveh.c (main): Don't assume that a direct conversion
15366         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
15367         and possibly also HP-UX.
15368         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
15369         work on AIX, IRIX, HP-UX, OSF/1.
15370         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
15371         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
15372         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
15373         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
15374         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
15375         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
15376
15377 2007-03-29  Bruno Haible  <bruno@clisp.org>
15378
15379         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
15380
15381 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
15382
15383         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
15384         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
15385
15386 2007-03-29  Eric Blake  <ebb9@byu.net>
15387
15388         * lib/acl-internal.h: Remove redundant include.
15389         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
15390         Cygwin when a file is locked.
15391
15392 2007-03-29  Bruno Haible  <bruno@clisp.org>
15393
15394         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
15395         file.
15396         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
15397
15398 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
15399
15400         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
15401         try to remove a parent directory if the child couldn't be removed
15402         (except for the first rmdir, which could fail because the child
15403         doesn't exist).  Problem reported by Jeff Blaine in
15404         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
15405
15406 2007-03-28  Bruno Haible  <bruno@clisp.org>
15407
15408         * lib/striconveh.c (utf8conv_carefully): New function.
15409         (mem_cd_iconveh_internal): Invoke it.
15410
15411 2007-03-28  Bruno Haible  <bruno@clisp.org>
15412
15413         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
15414         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
15415         input.
15416         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
15417         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
15418         unistr/u8-uctomb.
15419
15420 2007-03-28  Bruno Haible  <bruno@clisp.org>
15421
15422         * modules/unistr/u8-mbtoucr: New file.
15423         * lib/unistr/u8-mbtoucr.c: New file.
15424         * modules/unistr/u16-mbtoucr: New file.
15425         * lib/unistr/u16-mbtoucr.c: New file.
15426         * modules/unistr/u16-mbtoucr: New file.
15427         * lib/unistr/u16-mbtoucr.c: New file.
15428         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
15429
15430 2007-03-27  Simon Josefsson  <simon@josefsson.org>
15431             Bruno Haible  <bruno@clisp.org>
15432
15433         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
15434         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
15435         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
15436
15437         * m4/stdio_h.m4: Add stubs for vasprintf too.
15438
15439         * modules/stdio: Support vasprintf in sed command.
15440
15441         * modules/vasprintf: Depend on stdio for prototypes.  Remove
15442         vasprintf.h.  Add stdio module indicator.
15443
15444         * lib/stdio_.h: Declare asprintf and vasprintf, based on
15445         vasprintf.h.
15446
15447         * lib/vasprintf.h: File removed.
15448
15449         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
15450         * lib/vasprintf.c: Ditto.
15451         * lib/xvasprintf.c: Ditto.
15452         * tests/test-vasprintf-posix.c: Ditto.
15453         * tests/test-vasprintf.c: Ditto.
15454
15455 2007-03-27  Bruno Haible  <bruno@clisp.org>
15456
15457         Make vasnprintf multithread-safe.
15458         * lib/vasnprintf.c (decimal_point_char): New function.
15459         (VASNPRINTF): Use it.
15460         Suggested by Simon Josefsson.
15461
15462 2007-03-27  Eric Blake  <ebb9@byu.net>
15463
15464         Support sub-second birthtime on cygwin.
15465         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
15466         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
15467         (get_stat_birthtime): Also work with st_birthtim.
15468
15469 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
15470
15471         * lib/stat-time.h (USE_BIRTHTIME): Remove.
15472         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
15473         (get_stat_birthtime_ns): Do not try to use "spare" fields.
15474         (get_stat_birthtime_ns): Simplify compile-time tests.
15475         (get_stat_birthtime): Change the API to look like
15476         get_stat_mtime etc., except return a negative tv_nsec on error.
15477         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
15478         Don't check for "spare" fields.
15479         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
15480         or for struct stat.st_birthtime, as these tests aren't used.
15481         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
15482
15483 2007-03-27  Bruno Haible  <bruno@clisp.org>
15484
15485         * lib/stat-time.h: Include <sys/stat.h>.
15486
15487 2007-03-27  James Youngman  <jay@gnu.org>
15488
15489         * lib/stat-time.h (get_stat_birthtime): New function for
15490           retrieving st_birthtime as provided by UFS2 (hence *BSD).
15491         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
15492           and its variants.
15493         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
15494         * modules/stat-time-test: New file.
15495         * tests/test-stat-time.c: New test, devised by Bruno Haible.
15496
15497 2007-03-26  Bruno Haible  <bruno@clisp.org>
15498
15499         Better support of signalling NaNs.
15500         * lib/atanl.c: Include isnanl.h.
15501         (atanl): Perform test for NaN at the beginning of the function and
15502         through a call to isnanl.
15503         * lib/cosl.c: Include isnanl.h.
15504         (cosl): Perform test for NaN at the beginning of the function and
15505         through a call to isnanl.
15506         * lib/ldexpl.c: Include isnanl.h.
15507         (ldexpl): Perform test for NaN through a call to isnanl.
15508         * lib/logl.c: Include isnanl.h.
15509         (logl): Perform test for NaN at the beginning of the function and
15510         through a call to isnanl.
15511         * lib/sinl.c: Include isnanl.h.
15512         (sinl): Perform test for NaN at the beginning of the function and
15513         through a call to isnanl.
15514         * lib/sqrtl.c: Include isnanl.h.
15515         (sqrtl): Perform test for NaN at the beginning of the function and
15516         through a call to isnanl.
15517         * lib/tanl.c: Include isnanl.h.
15518         (tanl): Perform test for NaN at the beginning of the function and
15519         through a call to isnanl.
15520         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
15521         * modules/mathl (Depends-on): Add isnanl.
15522
15523 2007-03-26  Eric Blake  <ebb9@byu.net>
15524
15525         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
15526         regression in logic sense of previous patch.
15527
15528 2007-03-26  Bruno Haible  <bruno@clisp.org>
15529
15530         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
15531         unportable shell command "if ! ...".
15532         Reported by Ralf Wildenhues.
15533
15534 2007-03-25  Bruno Haible  <bruno@clisp.org>
15535
15536         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
15537         <sysexits.h> file, and only add EX_CONFIG.
15538         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
15539         absolute file name and whether it is sufficient. Substitute also
15540         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
15541         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
15542         ABSOLUTE_SYSEXITS_H into sysexits.h.
15543
15544 2007-03-25  Bruno Haible  <bruno@clisp.org>
15545
15546         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
15547         hints is NULL.
15548
15549 2007-03-25  Bruno Haible  <bruno@clisp.org>
15550
15551         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
15552         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
15553
15554 2007-03-25  Bruno Haible  <bruno@clisp.org>
15555
15556         * lib/vasnprintf.c: Include langinfo.h.
15557         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
15558         multithread-safe.
15559         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
15560         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
15561         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
15562         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
15563         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
15564         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
15565         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
15566         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
15567         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
15568         Reported by Simon Josefsson.
15569
15570 2007-03-25  Bruno Haible  <bruno@clisp.org>
15571
15572         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
15573         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
15574         * modules/vasnprintf (Depends-on): Add stdint.
15575
15576 2007-03-25  Bruno Haible  <bruno@clisp.org>
15577
15578         * modules/fpieee: New file.
15579         * m4/fpieee.m4: New file.
15580         * modules/isnan-nolibm (Depends-on): Add fpieee.
15581         * modules/isnanl-nolibm (Depends-on): Add fpieee.
15582         * modules/isnanl (Depends-on): Add fpieee.
15583
15584 2007-03-25  Bruno Haible  <bruno@clisp.org>
15585
15586         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
15587
15588 2007-03-25  Bruno Haible  <bruno@clisp.org>
15589
15590         Avoid test failures on IRIX 6.5.
15591         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
15592         (main): Use it.
15593         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
15594         macros.
15595         (main): Use them.
15596
15597 2007-03-25  Bruno Haible  <bruno@clisp.org>
15598
15599         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
15600         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
15601         exists but doesn't work.
15602         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
15603         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
15604         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
15605         * modules/math (Makefile.am) Substibute also REPLACE_FREXPL into math.h.
15606
15607 2007-03-25  Bruno Haible  <bruno@clisp.org>
15608
15609         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
15610         returns inf. Needed on IRIX 6.5.
15611
15612 2007-03-25  Bruno Haible  <bruno@clisp.org>
15613
15614         * tests/test-frexpl.c: Include isnanl-nolibm.h.
15615         (main): Use isnanl instead of x != x idiom.
15616         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
15617
15618         * tests/test-frexp.c: Include isnan.h.
15619         (main): Use isnan instead of x != x idiom.
15620         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
15621
15622 2007-03-25  Bruno Haible  <bruno@clisp.org>
15623
15624         * tests/test-frexp.c (NaN): New function/macro.
15625         (main): Use it instead of 0.0 / 0.0.
15626         * tests/test-isnan.c (NaN): New function/macro.
15627         (main): Use it instead of 0.0 / 0.0.
15628         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
15629         (test_function): Use it instead of 0.0 / 0.0.
15630         * tests/test-vasprintf-posix.c (NaN): New function/macro.
15631         (test_function): Use it instead of 0.0 / 0.0.
15632         * tests/test-snprintf-posix.h (NaN): New function/macro.
15633         (test_function): Use it instead of 0.0 / 0.0.
15634         * tests/test-sprintf-posix.h (NaN): New function/macro.
15635         (test_function): Use it instead of 0.0 / 0.0.
15636         * tests/test-fprintf-posix.h (NaN): New function/macro.
15637         (test_function): Use it instead of 0.0 / 0.0.
15638         * tests/test-printf-posix.h (NaN): New function/macro.
15639         (test_function): Use it instead of 0.0 / 0.0.
15640
15641         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
15642
15643 2007-03-25  Bruno Haible  <bruno@clisp.org>
15644
15645         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
15646
15647 2007-03-25  Bruno Haible  <bruno@clisp.org>
15648
15649         * lib/regexec.c (merge_state_with_log): Make static.
15650
15651 2007-03-25  Bruno Haible  <bruno@clisp.org>
15652
15653         * lib/trigl.c (kernel_rem_pio2): Make static.
15654
15655 2007-03-25  Bruno Haible  <bruno@clisp.org>
15656
15657         * lib/sincosl.c (sincosl_table): Make static.
15658
15659 2007-03-25  Bruno Haible  <bruno@clisp.org>
15660
15661         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
15662         if the compiler does not support C99.
15663
15664 2007-03-25  Bruno Haible  <bruno@clisp.org>
15665
15666         * modules/time (Makefile.am): Ensure all rule action lines start with a
15667         tab.
15668
15669 2007-03-24  Bruno Haible  <bruno@clisp.org>
15670
15671         * modules/tsearch-tests: New file.
15672         * tests/test-tsearch.sh: New file.
15673         * tests/test-tsearch.c: New file, mostly copied from glibc.
15674
15675         * modules/search-tests: New file.
15676         * tests/test-search.c: New file.
15677
15678         * modules/search: New file.
15679         * lib/search_.h: New file, incorporating lib/tsearch.h.
15680         * m4/search_h.m4: New file.
15681         * lib/tsearch.h: Remove file.
15682         * lib/tsearch.c: Include search.h instead of tsearch.h.
15683         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
15684         HAVE_TSEARCH.
15685         * modules/tsearch (Files): Remove lib/tsearch.h.
15686         (Depends-on): Add search.
15687         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
15688         (Include): Change tsearch.h into search.h.
15689
15690 2007-03-24  Bruno Haible  <bruno@clisp.org>
15691
15692         * modules/fpucw: New file.
15693         * lib/fpucw.h: New file.
15694         * lib/frexp.c: Include fpucw.h.
15695         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
15696         (FUNC): Use them.
15697         * lib/printf-frexp.c: Include fpucw.h.
15698         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
15699         (FUNC): Use them.
15700         * lib/vasnprintf.c: Include fpucw.h.
15701         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
15702         'long double' calculations.
15703         * tests/test-frexpl.c: Include fpucw.h.
15704         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
15705         * tests/test-printf-frexpl.c: Include fpucw.h.
15706         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
15707         * modules/frexpl (Depends-on): Add fpucw.
15708         * modules/printf-frexpl (Depends-on): Likewise.
15709         * modules/fprintf-posix (Depends-on): Likewise.
15710         * modules/snprintf-posix (Depends-on): Likewise.
15711         * modules/sprintf-posix (Depends-on): Likewise.
15712         * modules/vasnprintf-posix (Depends-on): Likewise.
15713         * modules/vasprintf-posix (Depends-on): Likewise.
15714         * modules/vfprintf-posix (Depends-on): Likewise.
15715         * modules/vsnprintf-posix (Depends-on): Likewise.
15716         * modules/vsprintf-posix (Depends-on): Likewise.
15717         * modules/frexpl-tests (Depends-on): Likewise.
15718         * modules/printf-frexpl-tests (Depends-on): Likewise.
15719
15720 2007-03-24  Bruno Haible  <bruno@clisp.org>
15721
15722         * lib/float+.h: New file.
15723         * lib/isnan.c: Include float+.h.
15724         (SIZE): New macro.
15725         (FUNC): Compare only SIZE bytes of the value.
15726         * lib/vasnprintf.c: Include float+.h.
15727         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
15728         SIZEOF_LDBL or SIZEOF_DBL bytes.
15729         * modules/isnan-nolibm (Files): Add lib/float+.h.
15730         * modules/isnanl-nolibm (Files): Add lib/float+.h.
15731         * modules/isnanl (Files): Add lib/float+.h.
15732         * modules/vasnprintf (Files): Add lib/float+.h.
15733
15734 2007-03-24  Bruno Haible  <bruno@clisp.org>
15735
15736         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
15737         include isnanl-nolibm.h.
15738
15739 2007-03-24  Bruno Haible  <bruno@clisp.org>
15740
15741         * tests/test-read-file.c (main): Don't produce spurious output for
15742         expected situations. Make the test fail if it encountered unexpected
15743         results.
15744
15745 2007-03-24  Bruno Haible  <bruno@clisp.org>
15746
15747         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
15748         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
15749
15750 2007-03-24  Bruno Haible  <bruno@clisp.org>
15751
15752         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
15753
15754 2007-03-24  Bruno Haible  <bruno@clisp.org>
15755
15756         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
15757         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
15758
15759         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
15760         * modules/utf8-ucs4: Turn into a symbolic link to module
15761         unistr/u8-mbtouc.
15762
15763         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
15764         utf8-ucs4-unsafe.
15765         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
15766         unistr/u8-mbtouc-unsafe.
15767
15768         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
15769         * modules/utf16-ucs4: Turn into a symbolic link to module
15770         unistr/u16-mbtouc.
15771
15772         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
15773         utf16-ucs4-unsafe.
15774         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
15775         unistr/u16-mbtouc-unsafe.
15776
15777         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
15778         * modules/ucs4-utf8: Turn into a symbolic link to module
15779         unistr/u8-ubtomb.
15780
15781         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
15782         * modules/ucs4-utf16: Turn into a symbolic link to module
15783         unistr/u16-ubtomb.
15784
15785 2007-03-24  Bruno Haible  <bruno@clisp.org>
15786
15787         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
15788         Enable the function only if HAVE_INLINE.
15789         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
15790         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
15791         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
15792         Enable the function only if HAVE_INLINE.
15793         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
15794         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
15795         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
15796         Enable the function only if HAVE_INLINE.
15797         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
15798         Enable the function only if HAVE_INLINE.
15799         * modules/utf8-ucs4: Update.
15800         * modules/utf8-ucs4-unsafe: Update.
15801         * modules/utf16-ucs4: Update.
15802         * modules/utf16-ucs4-unsafe: Update.
15803         * modules/ucs4-utf8: Update.
15804         * modules/ucs4-utf16: Update.
15805
15806 2007-03-24  Bruno Haible  <bruno@clisp.org>
15807
15808         * lib/utf8-ucs4.h: Remove file.
15809         * lib/utf8-ucs4-unsafe.h: Remove file.
15810         * lib/utf16-ucs4.h: Remove file.
15811         * lib/utf16-ucs4-unsafe.h: Remove file.
15812         * lib/ucs4-utf8.h: Remove file.
15813         * lib/ucs4-utf16.h: Remove file.
15814         * lib/unistr.h: Include their previous contents.
15815         * m4/utf-ucs4.m4: Remove file.
15816         * m4/ucs4-utf.m4: Remove file.
15817         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
15818         (Depends-on): Add unistr/base.
15819         (configure.ac): Remove gl_UTF_UCS4.
15820         (Makefile.am): Update.
15821         (Include): Change to unistr.h.
15822         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
15823         (Depends-on): Add unistr/base.
15824         (configure.ac): Remove gl_UTF_UCS4.
15825         (Makefile.am): Update.
15826         (Include): Change to unistr.h.
15827         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
15828         (Depends-on): Add unistr/base.
15829         (configure.ac): Remove gl_UTF_UCS4.
15830         (Makefile.am): Update.
15831         (Include): Change to unistr.h.
15832         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
15833         (Depends-on): Add unistr/base.
15834         (configure.ac): Remove gl_UTF_UCS4.
15835         (Makefile.am): Update.
15836         (Include): Change to unistr.h.
15837         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
15838         (Depends-on): Add unistr/base.
15839         (configure.ac): Remove gl_UCS4_UTF.
15840         (Makefile.am): Update.
15841         (Include): Change to unistr.h.
15842         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
15843         (Depends-on): Add unistr/base.
15844         (configure.ac): Remove gl_UCS4_UTF.
15845         (Makefile.am): Update.
15846         (Include): Change to unistr.h.
15847         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
15848         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
15849         utf8-ucs4-unsafe.h.
15850         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
15851         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
15852         utf16-ucs4-unsafe.h.
15853         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
15854         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
15855         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
15856         * lib/unistr/u8-strchr.c: Likewise.
15857         * lib/unistr/u8-strrchr.c: Likewise.
15858         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
15859         * lib/unistr/u16-strchr.c: Likewise.
15860         * lib/unistr/u16-strrchr.c: Likewise.
15861         * lib/striconveh.c: Update.
15862         * lib/linebreak.c: Update.
15863
15864 2007-03-24  Bruno Haible  <bruno@clisp.org>
15865
15866         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
15867         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
15868
15869 2007-03-22  Bruno Haible  <bruno@clisp.org>
15870
15871         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
15872
15873 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
15874
15875         * MODULES.html.sh (File system functions): New module write-any-file.
15876         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
15877         * m4/write-any-file.m4: New files.
15878
15879 2007-03-23  Eric Blake  <ebb9@byu.net>
15880
15881         * gnulib-tool: Rearrange space-tab sequences, since some editors
15882         like to eat them.
15883
15884 2007-03-23  Eric Blake  <ebb9@byu.net>
15885
15886         * lib/version-etc.c (version_etc_va): Update license wording to
15887         be more concise.  Recommended by Richard Stallman.
15888
15889 2007-03-22  Bruno Haible  <bruno@clisp.org>
15890
15891         * lib/poll.c (MSG_PEEK): New fallback definition.
15892
15893 2007-03-22  Bruno Haible  <bruno@clisp.org>
15894
15895         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
15896         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
15897         (main): Update.
15898         Fixes a compilation error on BeOS.
15899
15900 2007-03-22  Bruno Haible  <bruno@clisp.org>
15901
15902         * modules/frexpl-tests: New file.
15903         * tests/test-frexpl.c: New file.
15904
15905         * modules/frexpl: New file.
15906         * m4/frexpl.m4: New file.
15907         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
15908         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
15909         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
15910         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
15911         (Depends-on): Add frexpl. Remove isnanl-nolibm.
15912         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
15913
15914 2007-03-22  Bruno Haible  <bruno@clisp.org>
15915
15916         * lib/frexpl.c: Share code with lib/frexp.c.
15917         * modules/mathl (Files): Add lib/frexp.c.
15918         (Depends-on): Add isnanl-nolibm.
15919
15920 2007-03-22  Bruno Haible  <bruno@clisp.org>
15921
15922         * modules/printf-frexp (Files): Add m4/frexp.m4.
15923         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
15924         only if the found frexp function actually works.
15925
15926 2007-03-22  Bruno Haible  <bruno@clisp.org>
15927
15928         * lib/frexp.c: Remove older implementation that uses divisions.
15929
15930 2007-03-21  Bruno Haible  <bruno@clisp.org>
15931
15932         * modules/frexp-tests: New file.
15933         * tests/test-frexp.c: New file.
15934
15935         * modules/frexp: New file.
15936         * lib/frexp.c: New file.
15937         * m4/frexp.m4: New file.
15938         * lib/math_.h (frexp): New declaration.
15939         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
15940         REPLACE_FREXP.
15941         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
15942
15943 2007-03-21  Bruno Haible  <bruno@clisp.org>
15944
15945         * modules/isnanl-tests: New file.
15946         * tests/test-isnanl.c: New file.
15947
15948         * modules/isnanl: New file.
15949         * lib/isnanl.h: New file.
15950         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
15951         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
15952         gl_FUNC_ISNANL_WORKS.
15953         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
15954         New macros.
15955
15956 2007-03-21  Bruno Haible  <bruno@clisp.org>
15957
15958         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
15959         lib/isnanl.h.
15960         (Include): Update.
15961         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
15962         * lib/vasnprintf.c: Update.
15963         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
15964         tests/test-isnanl.h, remove tests/test-isnanl.c.
15965         (Makefile.am): Update.
15966         * tests/test-isnanl-nolibm.c: New file.
15967         * tests/test-isnanl.h: New file.
15968         * tests/test-isnanl.c: Remove file.
15969
15970 2007-03-21  Jim Meyering  <jim@meyering.net>
15971
15972         When trying to open ".", treat ESTALE like EACCES.
15973         * lib/savewd.c (savewd_save): Resort to forking not just upon
15974         failure with EACCES, but also when errno is ESTALE.
15975
15976 2007-03-20  Bruno Haible  <bruno@clisp.org>
15977
15978         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
15979         Needed on AIX 5.1. Reported by Matthew Woehlke.
15980
15981 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
15982
15983         Suggestions by Bruno Haible:
15984         * lib/acl-internal.h: Include "gettext.h" rather than rolling
15985         our own.
15986         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
15987         * modules/acl (Depends-on): Add gettext.
15988
15989 2007-03-19  Bruno Haible  <bruno@clisp.org>
15990
15991         * modules/iconvme: Remove file.
15992         * lib/iconvme.h: Remove file.
15993         * lib/iconvme.c: Remove file.
15994         * m4/iconvme.m4: Remove file.
15995
15996 2007-03-19  Bruno Haible  <bruno@clisp.org>
15997
15998         * doc/relocatable-maint.texi: Break long shell script line.
15999         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
16000
16001 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
16002
16003         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
16004         handle file_has_acl.
16005         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
16006         * lib/acl.c: Move header inclusions and related macro defns into
16007         lib/acl-internal.h.
16008         (S_ISLNK): Remove defn, since that's now done for us.
16009         (file_has_acl): Move to lib/file-has-acl.c.
16010         Call acl_trivial if available.  This is the crucial part of the fix.
16011         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
16012         shared within the library.  Rewrite a bit, partly to make it compatible
16013         with the GNU coding style.
16014         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
16015         Remove unnecessary double-quotes.
16016         Don't test for acl_to_text; the build will catch that.
16017         Replace acl_entries if it doesn't exist and it is needed.
16018         Check for -lsec and acl_trivial (as used on Solaris 10).
16019         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
16020         lib/file-has-acl.c.
16021         (Depends-on): Add sys_stat, for S_ISLNK.
16022
16023 2007-03-19  Ben Pfaff  <blp@gnu.org>
16024
16025         * doc/gnulib.texi: Fix typos.
16026         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
16027
16028 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
16029
16030         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
16031         If size is zero here, buf must be zero.
16032
16033 2007-03-19  Simon Josefsson  <simon@josefsson.org>
16034
16035         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
16036         <bruno@clisp.org>.
16037
16038 2007-03-18  Bruno Haible  <bruno@clisp.org>
16039
16040         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
16041         Suggested by Eric Blake.
16042
16043 2007-03-18  Ben Pfaff  <blp@gnu.org>
16044
16045         * doc/relocatable.texi: Recommend using as prefix a directory
16046         that does not exist and will never be created.  Based on
16047         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
16048         and others.
16049
16050 2007-03-17  Bruno Haible  <bruno@clisp.org>
16051
16052         * lib/fchownat.c: Include lchown.h.
16053
16054 2007-03-17  Bruno Haible  <bruno@clisp.org>
16055
16056         Fix endless loop when the given allocated size was > INT_MAX.
16057         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
16058         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
16059         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
16060         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
16061         * lib/sprintf.c (sprintf): Likewise.
16062
16063 2007-03-17  Bruno Haible  <bruno@clisp.org>
16064
16065         * tests/test-argp-2.sh (func_compare): Output a context diff.
16066
16067 2007-03-17  Bruno Haible  <bruno@clisp.org>
16068
16069         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
16070         locale's decimal-point character.
16071
16072 2007-03-17  Bruno Haible  <bruno@clisp.org>
16073
16074         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
16075         before comparing it. Needed because on some platforms (e.g. x86) a
16076         'long double' occupies less bytes than sizeof (long double).
16077
16078 2007-03-17  Bruno Haible  <bruno@clisp.org>
16079
16080         * tests/test-crc.c (main): Make printf statements 64-bit clean.
16081         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
16082         * tests/test-getaddrinfo.c (simple): Likewise.
16083         * tests/test-read-file.c (main): Likewise.
16084
16085 2007-03-17  Bruno Haible  <bruno@clisp.org>
16086
16087         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
16088
16089 2007-03-17  Bruno Haible  <bruno@clisp.org>
16090
16091         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
16092         unused variable.
16093
16094 2007-03-17  Bruno Haible  <bruno@clisp.org>
16095
16096         * tests/test-c-strcasecmp.c: Include c-strcase.h.
16097         * tests/test-c-strncasecmp.c: Likewise.
16098
16099 2007-03-17  Bruno Haible  <bruno@clisp.org>
16100
16101         * modules/stdlib (Depends-on): Add unistd.
16102         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
16103         Needed for MacOS X 10.3.
16104
16105 2007-03-17  Bruno Haible  <bruno@clisp.org>
16106
16107         * lib/unistr/u-strdup.h: Include <stdlib.h>.
16108
16109 2007-03-17  Bruno Haible  <bruno@clisp.org>
16110
16111         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
16112
16113 2007-03-17  Bruno Haible  <bruno@clisp.org>
16114
16115         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
16116         to reflect files copied from gnulib (with or without modifications).
16117         Suggested by Jim Meyering.
16118
16119 2007-03-17  Eric Blake  <ebb9@byu.net>
16120
16121         * NEWS: Document stdlib change from 2007-02-18.
16122
16123 2007-03-17  Jim Meyering  <jim@meyering.net>
16124
16125         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
16126         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
16127         someone uses a name containing shell meta-characters.
16128         Reported by Alfred M. Szmidt.
16129
16130         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
16131
16132 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
16133
16134         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
16135         and copy gettext configuration files only if configure.ac contains
16136         a use of AM_GNU_GETTEXT_VERSION.
16137
16138 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
16139
16140         * build-aux/bootstrap (gnulib_name): New variable.
16141         (gnulib_tool_options): Use it.
16142
16143 2007-03-13  Simon Josefsson  <simon@josefsson.org>
16144
16145         * tests/test-des.c: Use new namespace.
16146
16147 2007-03-15  Bruno Haible  <bruno@clisp.org>
16148
16149         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
16150         Reported by James Youngman <jay@gnu.org>.
16151
16152 2007-03-15  Bruno Haible  <bruno@clisp.org>
16153
16154         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
16155         declared prototype. Needed with cc on OSF/1 5.1.
16156
16157 2007-03-15  Bruno Haible  <bruno@clisp.org>
16158
16159         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
16160         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
16161         (struct gl_list_implementation): Add dispose_fn argument to the
16162         'create_empty', 'create' methods.
16163         (struct gl_list_impl_base): Add field 'dispose_fn'.
16164         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
16165         argument.
16166         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
16167         dispose_fn argument.
16168         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
16169         dispose_fn on the dropped values.
16170         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
16171         dispose_fn argument.
16172         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
16173         dropped values.
16174         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
16175         (gl_tree_remove_node): Call dispose_fn on the dropped value.
16176         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
16177         (gl_tree_remove_node): Call dispose_fn on the dropped value.
16178         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
16179         argument.
16180         (gl_tree_list_free): Call dispose_fn on the dropped values.
16181         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
16182         the dropped values.
16183         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
16184         Add dispose_fn argument.
16185         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
16186         Call dispose_fn on the dropped values.
16187         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
16188         Add dispose_fn argument.
16189         (gl_sublist_create): Initialize the 'dispose_fn' field.
16190         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
16191         * tests/test-array_list.c (main): Update.
16192         * tests/test-carray_list.c (main): Update.
16193         * tests/test-avltree_list.c (main): Update.
16194         * tests/test-rbtree_list.c (main): Update.
16195         * tests/test-avltreehash_list.c (main): Update.
16196         * tests/test-rbtreehash_list.c (main): Update.
16197         * tests/test-linked_list.c (main): Update.
16198         * tests/test-linkedhash_list.c (main): Update.
16199         * tests/test-array_oset.c (main): Update.
16200
16201 2007-03-15  Bruno Haible  <bruno@clisp.org>
16202
16203         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
16204         (gl_oset_create_empty): Add dispose_fn argument.
16205         (struct gl_oset_implementation): Add dispose_fn argument to
16206         'create_empty' method.
16207         (struct gl_oset_impl_base): Add dispose_fn field.
16208         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
16209         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
16210         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
16211         values.
16212         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
16213         (gl_tree_oset_free): Call dispose_fn on the dropped values.
16214         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
16215         dropped value.
16216         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
16217         dropped value.
16218         * tests/test-array_oset.c (main): Update.
16219         * tests/test-avltree_oset.c (main): Update.
16220         * tests/test-rbtree_oset.c (main): Update.
16221         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
16222
16223 2007-03-13  Bruno Haible  <bruno@clisp.org>
16224
16225         * tests/test-stdbool.c (i): Update after last patch.
16226
16227 2007-03-12  Bruno Haible  <bruno@clisp.org>
16228
16229         * lib/quotearg.c: Include <wctype.h> early, before the definition of
16230         the iswprint macro. Needed on Solaris 2.5.1.
16231
16232 2007-03-12  Bruno Haible  <bruno@clisp.org>
16233
16234         * tests/test-printf-frexp.c (main): Declare x as volatile.
16235
16236 2007-03-12  Simon Josefsson  <simon@josefsson.org>
16237
16238         * doc/gnulib.texi (Build robot for gnulib): New section.
16239
16240 2007-03-12  Jim Meyering  <jim@meyering.net>
16241
16242         * build-aux/bootstrap: New file.
16243         * build-aux/bootstrap.conf: New file, from coreutils.
16244
16245 2007-03-11  Bruno Haible  <bruno@clisp.org>
16246
16247         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
16248
16249 2007-03-12  Simon Josefsson  <simon@josefsson.org>
16250
16251         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
16252         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
16253         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
16254
16255 2007-03-11  Bruno Haible  <bruno@clisp.org>
16256
16257         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
16258         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
16259
16260 2007-03-11  Bruno Haible  <bruno@clisp.org>
16261
16262         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
16263         formula. Needed for SunPRO C 5.0.
16264
16265 2007-03-11  Bruno Haible  <bruno@clisp.org>
16266
16267         * modules/long-options (Depends-on): Add getopt.
16268
16269 2007-03-11  Bruno Haible  <bruno@clisp.org>
16270
16271         * modules/modechange (Depends-on): Add stdbool.
16272
16273 2007-03-11  Bruno Haible  <bruno@clisp.org>
16274
16275         * modules/i-ring (Depends-on): Add stdbool.
16276
16277 2007-03-11  Bruno Haible  <bruno@clisp.org>
16278
16279         * modules/gc-des (Depends-on): Add stdbool.
16280
16281 2007-03-11  Bruno Haible  <bruno@clisp.org>
16282
16283         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
16284
16285 2007-03-11  Bruno Haible  <bruno@clisp.org>
16286
16287         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
16288
16289 2007-03-11  Bruno Haible  <bruno@clisp.org>
16290
16291         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
16292
16293 2007-03-11  Bruno Haible  <bruno@clisp.org>
16294
16295         * lib/vasnprintf.c (sprintf): Undefine.
16296
16297 2007-03-11  Bruno Haible  <bruno@clisp.org>
16298
16299         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
16300         initializers in SunPRO C and Compaq C compilers.
16301
16302 2007-03-11  Bruno Haible  <bruno@clisp.org>
16303
16304         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
16305         decrementing code ANSI C compliant.
16306
16307 2007-03-11  Bruno Haible  <bruno@clisp.org>
16308
16309         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
16310         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
16311
16312 2007-03-11  Bruno Haible  <bruno@clisp.org>
16313
16314         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
16315         <stdbool.h> substitute doesn't pass.
16316
16317 2007-03-11  Bruno Haible  <bruno@clisp.org>
16318
16319         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
16320
16321 2007-03-11  Bruno Haible  <bruno@clisp.org>
16322
16323         * gnulib-tool (func_create_megatestdir): Create also an autobuild
16324         script, for submission to autobuild.josefsson.org.
16325
16326 2007-03-10  Bruno Haible  <bruno@clisp.org>
16327
16328         * modules/canonicalize-lgpl-tests: New file.
16329         * tests/test-canonicalize-lgpl.sh: New file.
16330         * tests/test-canonicalize-lgpl.c: New file.
16331
16332         * modules/c-strcase-tests: New file.
16333         * tests/test-c-strcase.sh: New file.
16334         * tests/test-c-strcasecmp.c: New file.
16335         * tests/test-c-strncasecmp.c: New file.
16336
16337         * modules/atexit-tests: New file.
16338         * tests/test-atexit.sh: New file.
16339         * tests/test-atexit.c: New file.
16340
16341 2007-03-10  Bruno Haible  <bruno@clisp.org>
16342
16343         * tests/test-binary-io.sh: Use temporary filenames that are not so
16344         likely to clash with those of other tests (in a parallel make).
16345         * tests/test-binary-io.c: Likewise.
16346
16347 2007-03-10  Bruno Haible  <bruno@clisp.org>
16348
16349         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
16350         fallback; use #error instead.
16351         Suggested by Simon Josefsson.
16352
16353 2007-03-10  Bruno Haible  <bruno@clisp.org>
16354
16355         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
16356         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
16357         first and the last.
16358
16359 2007-03-10  Bruno Haible  <bruno@clisp.org>
16360
16361         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
16362
16363 2007-03-10  Bruno Haible  <bruno@clisp.org>
16364
16365         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
16366         "make distcheck".
16367         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
16368         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
16369         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
16370
16371 2007-03-10  Bruno Haible  <bruno@clisp.org>
16372
16373         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
16374         variable.
16375         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
16376         variable.
16377
16378 2007-03-09  Eric Blake  <ebb9@byu.net>
16379         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
16380
16381         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
16382         types are not being provided by gnulib.
16383         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
16384         types are supported.
16385
16386 2007-03-10  Bruno Haible  <bruno@clisp.org>
16387
16388         * lib/stdio_.h (__attribute__): New macro.
16389         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
16390         vsprintf): Specify __attribute__ __format__ for GCC.
16391         Suggested by Eric Blake.
16392
16393 2007-03-09  Bruno Haible  <bruno@clisp.org>
16394
16395         * modules/printf-posix-tests: New file.
16396         * tests/test-printf-posix.sh: New file.
16397         * tests/test-printf-posix.c: New file.
16398
16399         * modules/printf-posix: New file.
16400         * lib/printf.c: New file.
16401         * m4/printf-posix-rpl.m4: New file.
16402         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
16403         REPLACE_PRINTF.
16404         * lib/stdio_.h (printf): New declaration.
16405         (format, __format__, ____printf____, ____scanf____, ____strftime____,
16406         ____strfmon____): New macros.
16407         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
16408         REPLACE_PRINTF.
16409
16410 2007-03-09  Bruno Haible  <bruno@clisp.org>
16411
16412         * tests/test-vasnprintf-posix2.sh: New file.
16413         * tests/test-vasnprintf-posix2.c: New file.
16414         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
16415         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
16416         (Makefile.am): Activate test-vasnprintf-posix2.sh.
16417
16418         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
16419         a locale dependent decimal point, rather than always '.'.
16420
16421 2007-03-09  Eric Blake  <ebb9@byu.net>
16422
16423         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
16424         spite of platforms like Tandem/NSK that define it to -1.
16425
16426 2007-03-08  Bruno Haible  <bruno@clisp.org>
16427
16428         * modules/vprintf-posix-tests: New file.
16429         * tests/test-vprintf-posix.sh: New file.
16430         * tests/test-vprintf-posix.c: New file.
16431         * tests/test-printf-posix.h: New file.
16432
16433         * modules/vprintf-posix: New file.
16434         * lib/vprintf.c: New file.
16435         * m4/vprintf-posix.m4: New file.
16436         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
16437         REPLACE_VPRINTF.
16438         * lib/stdio_.h (vprintf): New declaration.
16439         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
16440         REPLACE_VPRINTF.
16441
16442 2007-03-08  Bruno Haible  <bruno@clisp.org>
16443
16444         * modules/fprintf-posix-tests: New file.
16445         * tests/test-fprintf-posix.sh: New file.
16446         * tests/test-fprintf-posix.c: New file.
16447
16448         * modules/fprintf-posix: New file.
16449         * lib/fprintf.c: New file.
16450         * m4/fprintf-posix.m4: New file.
16451         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
16452         REPLACE_FPRINTF.
16453         * lib/stdio_.h (fprintf): New declaration.
16454         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
16455         REPLACE_FPRINTF.
16456
16457 2007-03-08  Bruno Haible  <bruno@clisp.org>
16458
16459         * modules/vfprintf-posix-tests: New file.
16460         * tests/test-vfprintf-posix.sh: New file.
16461         * tests/test-vfprintf-posix.c: New file.
16462         * tests/test-fprintf-posix.h: New file.
16463         * tests/test-fprintf-posix.out: New file.
16464
16465         * modules/vfprintf-posix: New file.
16466         * lib/vfprintf.c: New file.
16467         * m4/vfprintf-posix.m4: New file.
16468         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
16469         REPLACE_VFPRINTF.
16470         * lib/stdio_.h (vfprintf): New declaration.
16471         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
16472         REPLACE_VFPRINTF.
16473
16474 2007-03-08  Bruno Haible  <bruno@clisp.org>
16475
16476         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
16477
16478 2007-03-08  Bruno Haible  <bruno@clisp.org>
16479
16480         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
16481         instead of 'expr' invocations.
16482         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
16483         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
16484         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
16485         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
16486         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
16487         Suggested by Paul Eggert.
16488
16489 2007-03-08  Bruno Haible  <bruno@clisp.org>
16490
16491         * modules/fseterr-tests: New file.
16492         * tests/test-fseterr.c: New file.
16493
16494         * modules/fseterr: New file.
16495         * lib/fseterr.h: New file.
16496         * lib/fseterr.c: New file.
16497
16498 2007-03-08  Bruno Haible  <bruno@clisp.org>
16499
16500         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
16501         * lib/getopt_.h: Likewise.
16502         * lib/mbswidth.h: Likewise.
16503         * lib/setenv.h: Likewise.
16504         * lib/vasnprintf.h: Likewise.
16505         * lib/vasprintf.h: Likewise.
16506         * lib/verror.h: Likewise.
16507         * lib/xsetenv.h: Likewise.
16508         * lib/xvasprintf.h: Likewise.
16509
16510 2007-03-08  Jim Meyering  <jim@meyering.net>
16511
16512         * users.txt: Add parted.
16513
16514         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
16515
16516 2007-03-07  Bruno Haible  <bruno@clisp.org>
16517
16518         * m4/printf.m4: Make the shell script snippets copy&pastable.
16519
16520 2007-03-02  Bruno Haible  <bruno@clisp.org>
16521
16522         * lib/netinet_in_.h: New file.
16523         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
16524         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
16525         * modules/netinet_in (Files): Add lib/netinet_in_.h.
16526         (Depends-on): Add absolute-header.
16527         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
16528         into netinet/in.h.
16529
16530 2007-03-03  Bruno Haible  <bruno@clisp.org>
16531
16532         * lib/sys_select_.h: New file.
16533         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
16534         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
16535         * modules/sys_select (Files): Add lib/sys_select_.h.
16536         (Depends-on): Add absolute-header.
16537         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
16538         into sys/select.h.
16539
16540 2007-03-02  Bruno Haible  <bruno@clisp.org>
16541
16542         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
16543         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
16544         values.
16545         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
16546         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
16547         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
16548         * modules/sys_socket (Depends-on): Add absolute-header.
16549         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
16550         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
16551         (Include): Remove requirement of inclusion of <sys/types.h>.
16552
16553 2007-03-02  Bruno Haible  <bruno@clisp.org>
16554
16555         * lib/byteswap_.h (bswap_32): Fix formula.
16556
16557 2007-03-06  Bruno Haible  <bruno@clisp.org>
16558
16559         * modules/sprintf-posix-tests: New file.
16560         * tests/test-sprintf-posix.c: New file.
16561
16562         * modules/sprintf-posix: New file.
16563         * lib/sprintf.c: New file.
16564         * m4/sprintf-posix.m4: New file.
16565         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
16566         REPLACE_SPRINTF.
16567         * lib/stdio_.h (sprintf): New declaration.
16568         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
16569         REPLACE_SPRINTF.
16570
16571 2007-03-06  Bruno Haible  <bruno@clisp.org>
16572
16573         * modules/vsprintf-posix-tests: New file.
16574         * tests/test-vsprintf-posix.c: New file.
16575         * tests/test-sprintf-posix.h: New file.
16576
16577         * modules/vsprintf-posix: New file.
16578         * lib/vsprintf.c: New file.
16579         * m4/vsprintf-posix.m4: New file.
16580         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
16581         REPLACE_VSPRINTF.
16582         * lib/stdio_.h (vsprintf): New declaration.
16583         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
16584         REPLACE_VSPRINTF.
16585
16586 2007-03-06  Bruno Haible  <bruno@clisp.org>
16587
16588         * modules/vsnprintf (Depend-on): Remove minmax.
16589
16590 2007-03-06  Bruno Haible  <bruno@clisp.org>
16591
16592         * modules/snprintf-posix-tests: New file.
16593         * tests/test-snprintf-posix.c: New file.
16594
16595         * modules/snprintf-posix: New file.
16596         * m4/snprintf-posix.m4: New file.
16597         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
16598         gl_FUNC_SNPRINTF.
16599         (gl_FUNC_SNPRINTF): Invoke it.
16600         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
16601         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
16602         is set.
16603         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
16604
16605 2007-03-06  Bruno Haible  <bruno@clisp.org>
16606
16607         * modules/vsnprintf-posix-tests: New file.
16608         * tests/test-vsnprintf-posix.c: New file.
16609         * tests/test-snprintf-posix.h: New file.
16610
16611         * modules/vsnprintf-posix: New file.
16612         * m4/vsnprintf-posix.m4: New file.
16613         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
16614         gl_FUNC_VSNPRINTF.
16615         (gl_FUNC_VSNPRINTF): Invoke it.
16616         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
16617         * lib/stdio_.h (vsnprintf): Define as a replacement if
16618         REPLACE_VSNPRINTF is set.
16619         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
16620
16621 2007-03-06  Bruno Haible  <bruno@clisp.org>
16622
16623         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
16624         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
16625
16626 2007-03-06  Bruno Haible  <bruno@clisp.org>
16627
16628         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
16629         (asinl): Declare also if HAVE_DECL_ASINL is set.
16630         (atanl): Declare also if HAVE_DECL_ATANL is set.
16631         (ceill): Declare also if HAVE_DECL_CEILL is set.
16632         (cosl): Declare also if HAVE_DECL_COSL is set.
16633         (expl): Declare also if HAVE_DECL_EXPL is set.
16634         (floorl): Declare also if HAVE_DECL_FLOORL is set.
16635         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
16636         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
16637         (logl): Declare also if HAVE_DECL_LOGL is set.
16638         (sinl): Declare also if HAVE_DECL_SINL is set.
16639         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
16640         (tanl): Declare also if HAVE_DECL_TANL is set.
16641         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
16642         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
16643         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
16644         declaration of frexpl, ldexpl.
16645         * modules/printf-frexpl (Depends-on): Add math.
16646         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
16647
16648 2007-03-05  Bruno Haible  <bruno@clisp.org>
16649
16650         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
16651         frexpl and ldexpl are declared.
16652         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
16653
16654 2007-03-05  Bruno Haible  <bruno@clisp.org>
16655
16656         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
16657         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
16658
16659 2007-03-05  Bruno Haible  <bruno@clisp.org>
16660
16661         * lib/stdio_.h: Include <stddef.h>.
16662
16663 2007-03-05  Bruno Haible  <bruno@clisp.org>
16664
16665         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
16666
16667 2007-03-05  Bruno Haible  <bruno@clisp.org>
16668
16669         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
16670         NetBSD 4, from Ralf Wildenhues.
16671
16672 2007-03-04  Bruno Haible  <bruno@clisp.org>
16673
16674         * lib/vasprintf.h: Update #if logic for the case when the functions
16675         exist but are overridden.
16676
16677 2007-03-04  Bruno Haible  <bruno@clisp.org>
16678
16679         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
16680         implementations: glibc-2.4 and MacOS X 10.3.
16681         * tests/test-vasnprintf-posix.c (test_function): Test also the case
16682         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
16683         * tests/test-vasprintf-posix.c (test_function): Likewise.
16684
16685 2007-03-04  Bruno Haible  <bruno@clisp.org>
16686
16687         * modules/vasprintf-posix-tests: New file.
16688         * tests/test-vasprintf-posix.c: New file.
16689
16690         * modules/vasprintf-posix: New file.
16691         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
16692         defined.
16693         * m4/vasprintf-posix.m4: New file.
16694         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
16695         gl_FUNC_VASPRINTF.
16696         (gl_FUNC_VASPRINTF): Invoke it.
16697         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
16698         here.
16699         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
16700
16701 2007-03-04  Bruno Haible  <bruno@clisp.org>
16702
16703         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
16704         REPLACE_GETTIMEOFDAY.
16705         * modules/sys_time (Makefile.am): Likewise.
16706         * m4/sys_time_h.m4: Likewise.
16707         * m4/gettimeofday.m4: Likewise.
16708
16709 2007-03-04  Bruno Haible  <bruno@clisp.org>
16710
16711         * modules/vasnprintf-posix-tests: New file.
16712         * tests/test-vasnprintf-posix.c: New file.
16713
16714         * modules/vasnprintf-posix: New file.
16715         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
16716         printf-frexpl.h.
16717         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
16718         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
16719         REPLACE_VASNPRINTF is defined.
16720         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
16721         gl_FUNC_VASNPRINTF.
16722         (gl_FUNC_VASNPRINTF): Invoke it.
16723         * m4/vasnprintf-posix.m4: New file.
16724         * m4/printf.m4: New file.
16725
16726 2007-03-04  Bruno Haible  <bruno@clisp.org>
16727
16728         Compile progreloc.c only if --enable-relocatable is specified.
16729         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
16730         if --enable-relocatable was specified.
16731         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
16732         lib_SOURCES.
16733
16734 2007-03-04  Jim Meyering  <jim@meyering.net>
16735
16736         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
16737         Use it consistently, rather than enumerating errno constants.
16738
16739 2007-03-04  Bruno Haible  <bruno@clisp.org>
16740
16741         * modules/xvasprintf-tests: New file.
16742         * tests/test-xvasprintf.c: New file.
16743
16744         * modules/vasprintf-tests: New file.
16745         * tests/test-vasprintf.c: New file.
16746
16747         * modules/vasnprintf-tests: New file.
16748         * tests/test-vasnprintf.c: New file.
16749
16750         * modules/vsnprintf-tests: New file.
16751         * tests/test-vsnprintf.c: New file.
16752
16753         * modules/snprintf-tests: New file.
16754         * tests/test-snprintf.c: New file.
16755
16756 2007-03-04  Bruno Haible  <bruno@clisp.org>
16757
16758         Compile relocatable.c only if --enable-relocatable is specified.
16759         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
16760         gl_RELOCATABLE_LIBRARY.
16761         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
16762         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
16763         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
16764         gl_RELOCATABLE_LIBRARY.
16765         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
16766         (Makefile.am): Remove lib_SOURCES.
16767         * modules/relocatable-lib-lgpl (configure.ac): Invoke
16768         gl_RELOCATABLE_LIBRARY.
16769         (Makefile.am): Remove lib_SOURCES.
16770         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
16771         always.
16772         * modules/relocatable-prog-wrapper (configure.ac): Invoke
16773         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
16774
16775 2007-03-04  Bruno Haible  <bruno@clisp.org>
16776
16777         * modules/argmatch-tests: New file.
16778         * tests/test-argmatch.c: New file.
16779
16780         * tests/test-allocsa.c (main): Halve the number of loop runs.
16781
16782         * modules/alloca-opt-tests: New file.
16783         * tests/test-alloca-opt.c: New file.
16784
16785 2007-03-04  Jim Meyering  <jim@meyering.net>
16786
16787         Work around difference between Linux ACLs and Solaris 10 ZFS.
16788         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
16789         for EINVAL.
16790
16791 2007-03-03  Bruno Haible  <bruno@clisp.org>
16792
16793         * modules/relocatable-prog (Depends-on): Add back progreloc's
16794         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
16795
16796 2007-03-03  Bruno Haible  <bruno@clisp.org>
16797
16798         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
16799         * modules/relocatable-lib: New file.
16800
16801 2007-03-03  Bruno Haible  <bruno@clisp.org>
16802
16803         * modules/relocatable-prog: Renamed from modules/relocatable.
16804         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
16805
16806 2007-03-03  Bruno Haible  <bruno@clisp.org>
16807
16808         * modules/relocatable-script (Files): Add doc/relocatable.texi,
16809         m4/relocatable-lib.m4.
16810         (Depends-on): Remove 'relocatable'.
16811         (configure.ac): Add gl_RELOCATABLE_NOP.
16812
16813 2007-03-03  Bruno Haible  <bruno@clisp.org>
16814
16815         * modules/relocatable-prog-wrapper: New file.
16816         * modules/relocatable (Depends-on): Add it. Remove all other
16817         dependencies except progname.
16818         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
16819
16820         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
16821         (gl_FUNC_STRERROR): Nop.
16822         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
16823
16824         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
16825         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
16826
16827         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
16828         (gl_FUNC_READLINK): Update.
16829
16830         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
16831
16832 2007-03-03  Bruno Haible  <bruno@clisp.org>
16833
16834         * lib/xreadlink.c: Include <unistd.h> unconditionally.
16835         * modules/xreadlink (Depends-on): Add unistd.
16836         * modules/xreadlink-with-size (Depends-on): Likewise.
16837
16838 2007-03-03  Bruno Haible  <bruno@clisp.org>
16839
16840         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
16841         extracted from gt_FUNC_SETENV.
16842         (gt_FUNC_SETENV): Remove macro.
16843         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
16844         remove gt_FUNC_SETENV.
16845
16846 2007-03-03  Bruno Haible  <bruno@clisp.org>
16847
16848         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
16849         ENABLE_RELOCATABLE here.
16850         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
16851
16852 2007-03-03  Bruno Haible  <bruno@clisp.org>
16853
16854         * modules/rbtreehash-list-tests (Depends-on): Add progname.
16855         * tests/test-rbtreehash_list.c: Include progname.h.
16856         (main): Call set_program_name.
16857
16858         * modules/rbtree-oset-tests (Depends-on): Add progname.
16859         * tests/test-rbtree_oset.c: Include progname.h.
16860         (main): Call set_program_name.
16861
16862         * modules/rbtree-list-tests (Depends-on): Add progname.
16863         * tests/test-rbtree_list.c: Include progname.h.
16864         (main): Call set_program_name.
16865
16866         * modules/linked-list-tests (Depends-on): Add progname.
16867         * tests/test-linked_list.c: Include progname.h.
16868         (main): Call set_program_name.
16869
16870 2007-03-03  Bruno Haible  <bruno@clisp.org>
16871
16872         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
16873         All uses of __restrict changed to _Restrict_.
16874         * lib/glob_.h (__restrict): Remove macro.
16875
16876 2007-03-02  Bruno Haible  <bruno@clisp.org>
16877
16878         * modules/gettext (configure.ac): Require gettext infrastructure
16879         from version 0.16.1.
16880
16881 2007-03-02  Bruno Haible  <bruno@clisp.org>
16882
16883         * modules/linkedhash-list-tests (Depends-on): Add progname.
16884         * tests/test-linkedhash_list.c: Include progname.h.
16885         (main): Call set_program_name.
16886
16887         * modules/carray-list-tests (Depends-on): Add progname.
16888         * tests/test-carray_list.c: Include progname.h.
16889         (main): Call set_program_name.
16890
16891         * modules/avltreehash-list-tests (Depends-on): Add progname.
16892         * tests/test-avltreehash_list.c: Include progname.h.
16893         (main): Call set_program_name.
16894
16895         * modules/avltree-oset-tests (Depends-on): Add progname.
16896         * tests/test-avltree_oset.c: Include progname.h.
16897         (main): Call set_program_name.
16898
16899         * modules/avltree-list-tests (Depends-on): Add progname.
16900         * tests/test-avltree_list.c: Include progname.h.
16901         (main): Call set_program_name.
16902
16903         * modules/array-oset-tests (Depends-on): Add progname.
16904         * tests/test-array_oset.c: Include progname.h.
16905         (main): Call set_program_name.
16906
16907         * modules/array-list-tests (Depends-on): Add progname.
16908         * tests/test-array_list.c: Include progname.h.
16909         (main): Call set_program_name.
16910
16911         * modules/argp-tests (Depends-on): Add progname.
16912         * tests/test-argp.c: Include argp.h first. Include progname.h.
16913         (main): Call set_program_name.
16914
16915 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
16916
16917         * doc/gnulib-tool.texi (Initial import): Reword description of
16918         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
16919         limited effect even if defined after the first system include.
16920
16921 2007-03-01  Bruno Haible  <bruno@clisp.org>
16922
16923         * build-aux/config.libpath: Update to libtool-1.5.22.
16924         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
16925
16926 2007-03-01  Bruno Haible  <bruno@clisp.org>
16927
16928         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
16929         foo_CFLAGS.
16930         Reported by Ralf Wildenhues.
16931
16932 2007-03-01  Bruno Haible  <bruno@clisp.org>
16933
16934         * build-aux/install-reloc: Remove object files left over by some
16935         compilers.
16936         Reported by Ralf Wildenhues.
16937
16938 2007-03-01  Bruno Haible  <bruno@clisp.org>
16939
16940         * build-aux/install-reloc: Break long lines.
16941
16942 2007-03-01  Bruno Haible  <bruno@clisp.org>
16943
16944         * doc/relocatable.texi: Document that it may not work on OpenBSD.
16945         Reported by Ralf Wildenhues.
16946
16947 2007-03-01  Bruno Haible  <bruno@clisp.org>
16948
16949         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
16950         include ordering constraints.
16951
16952 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
16953
16954         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
16955         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
16956         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
16957         as another example.
16958         * lib/time_.h: Fix misspelling.
16959         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
16960         Require gl_HEADER_TIME_H_DEFAULTS.
16961         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
16962         * m4/time_r.m4 (gl_TIME_R): Likewise.
16963         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
16964
16965 2007-03-01  Bruno Haible  <bruno@clisp.org>
16966
16967         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
16968         * m4/utimens.m4 (gl_UTIMENS): Likewise.
16969
16970 2007-03-01  Jim Meyering  <jim@meyering.net>
16971
16972         * modules/xreadlink (Maintainer): Add my name.
16973         * modules/xreadlink-with-size (Depends-on): Alphabetize.
16974
16975 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
16976             Bruno Haible  <bruno@clisp.org>
16977
16978         * build-aux/install-reloc: Compile also c-ctype.c.
16979         * build-aux/relocatable.sh.in: New file.
16980         * doc/relocatable.texi: New file.
16981         * doc/relocatable-maint.texi: New file.
16982         * doc/gnulib.texi: Include relocatable-maint.texi.
16983         * lib/progreloc.c: Include unistd.h unconditionally.
16984         * lib/relocwrapper.c: Include unistd.h unconditionally.
16985         Include c-ctype.h.
16986         (add_dotbin): Use c_tolower.
16987         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
16988         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
16989         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
16990         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
16991         to m4/relocatable-lib.m4.
16992         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
16993         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
16994         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
16995         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
16996         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
16997         * modules/relocatable: New file.
16998         * modules/relocatable-lib: New file.
16999         * modules/relocatable-script: New file.
17000
17001 2007-02-28  Bruno Haible  <bruno@clisp.org>
17002
17003         Import --enable-relocatable infrastructure.
17004         * build-aux/config.libpath: New file, from GNU gettext.
17005         * build-aux/install-reloc: New file, from GNU gettext.
17006         * build-aux/reloc-ldflags: New file, from GNU gettext.
17007         * lib/relocatable.h: New file, from GNU gettext.
17008         * lib/relocatable.c: New file, from GNU gettext.
17009         * lib/relocwrapper.c: New file, from GNU gettext.
17010         * m4/relocatable.m4: New file, from GNU gettext.
17011
17012 2007-02-28  Bruno Haible  <bruno@clisp.org>
17013
17014         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
17015
17016         * modules/xreadlink: New file, from GNU gettext with modifications.
17017         * lib/xreadlink.c: New file, from GNU gettext.
17018         * lib/xreadlink.h: Add comments.
17019         (xreadlink): New declaration.
17020
17021         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
17022         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
17023         lib/xreadlink-with-size.c.
17024         (configure.ac): Remove gl_XREADLINK invocation.
17025         (Makefile.am): Augment lib_SOURCES.
17026         * m4/xreadlink.m4: Remove file.
17027         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
17028         (xreadlink_with_size): Renamed from xreadink.
17029         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
17030         * modules/canonicalize (Depends-on): Replace xreadlink with
17031         xreadlink-with-size.
17032         * lib/canonicalize.c (canonicalize_filename_mode): Update.
17033
17034 2007-02-25  Jim Meyering  <jim@meyering.net>
17035
17036         * build-aux/announce-gen: When complaining about excess arguments,
17037         list them.
17038
17039 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
17040
17041         * README: Document signed integer overflow situation more
17042         accurately.
17043
17044 2007-02-25  Bruno Haible  <bruno@clisp.org>
17045
17046         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
17047         'a' or 'A' conversion.
17048
17049 2007-02-25  Bruno Haible  <bruno@clisp.org>
17050
17051         * modules/filename: Renamed from modules/pathname.
17052         (Files): Replace lib/pathname.h with lib/filename.h. Replace
17053         lib/concatpath.c with lib/concat-filename.c.
17054         (Makefile.am): Update.
17055         (Include): Replace pathname.h with filename.h.
17056         * lib/filename.h: Renamed from lib/pathname.h.
17057         (concatenated_filename): Renamed from concatenated_pathname.
17058         * lib/concat-filename.c: Renamed from lib/concatpath.c.
17059         (concatenated_filename): Renamed from concatenated_pathname.
17060         * lib/findprog.c: Include filename.h instead of pathname.h.
17061         (find_in_path): Update.
17062         * lib/javacomp.c: Include filename.h instead of pathname.h.
17063         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
17064         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
17065         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
17066         is_oldgcj_14_13_usable, is_javac_usable): Update.
17067         * lib/javaexec.c: Include filename.h instead of pathname.h.
17068         (execute_java_class): Update.
17069         * modules/findprog: Update.
17070         * modules/javacomp: Update.
17071         * modules/javaexec: Update.
17072         * MODULES.html.sh (File system functions): Add 'filename', remove
17073         'pathname'.
17074
17075 2007-02-25  Bruno Haible  <bruno@clisp.org>
17076
17077         * modules/printf-frexpl-tests: New file.
17078         * tests/test-printf-frexpl.c: New file.
17079
17080         * modules/printf-frexpl: New file.
17081         * lib/printf-frexpl.h: New file.
17082         * lib/printf-frexpl.c: New file.
17083         * m4/printf-frexpl.m4: New file.
17084
17085 2007-02-25  Bruno Haible  <bruno@clisp.org>
17086
17087         * modules/printf-frexp-tests: New file.
17088         * tests/test-printf-frexp.c: New file.
17089
17090         * modules/printf-frexp: New file.
17091         * lib/printf-frexp.h: New file.
17092         * lib/printf-frexp.c: New file.
17093         * m4/printf-frexp.m4: New file.
17094
17095 2007-02-25  Bruno Haible  <bruno@clisp.org>
17096
17097         Assume automake >= 1.10 for the tests.
17098         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
17099         * modules/arctwo-tests: Likewise.
17100         * modules/argp-tests: Likewise.
17101         * modules/avltree-list-tests: Likewise.
17102         * modules/avltree-oset-tests: Likewise.
17103         * modules/avltreehash-list-tests: Likewise.
17104         * modules/carray-list-tests: Likewise.
17105         * modules/crc-tests: Likewise.
17106         * modules/des-tests: Likewise.
17107         * modules/gc-arcfour-tests: Likewise.
17108         * modules/gc-arctwo-tests: Likewise.
17109         * modules/gc-des-tests: Likewise.
17110         * modules/gc-hmac-md5-tests: Likewise.
17111         * modules/gc-hmac-sha1-tests: Likewise.
17112         * modules/gc-md2-tests: Likewise.
17113         * modules/gc-md4-tests: Likewise.
17114         * modules/gc-md5-tests: Likewise.
17115         * modules/gc-pbkdf2-sha1-tests: Likewise.
17116         * modules/gc-rijndael-tests: Likewise.
17117         * modules/gc-sha1-tests: Likewise.
17118         * modules/gc-tests: Likewise.
17119         * modules/getaddrinfo-tests: Likewise.
17120         * modules/hmac-md5-tests: Likewise.
17121         * modules/hmac-sha1-tests: Likewise.
17122         * modules/linked-list-tests: Likewise.
17123         * modules/linkedhash-list-tests: Likewise.
17124         * modules/lock-tests: Likewise.
17125         * modules/md2-tests: Likewise.
17126         * modules/md4-tests: Likewise.
17127         * modules/md5-tests: Likewise.
17128         * modules/rbtree-list-tests: Likewise.
17129         * modules/rbtree-oset-tests: Likewise.
17130         * modules/rbtreehash-list-tests: Likewise.
17131         * modules/read-file-tests: Likewise.
17132         * modules/rijndael-tests: Likewise.
17133         * modules/stdint-tests: Likewise.
17134         * modules/tls-tests: Likewise.
17135
17136 2007-02-24  Bruno Haible  <bruno@clisp.org>
17137
17138         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
17139         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
17140         function; instead check whether isnan with a double argument links.
17141         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
17142         function; instead check whether isnan with a 'long double' argument
17143         links.
17144         Reported by Eric Blake <ebb9@byu.net>.
17145
17146 2007-02-24  Bruno Haible  <bruno@clisp.org>
17147
17148         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
17149         defined.
17150         * lib/isnanl.c: Remove all code. Just include isnan.c.
17151         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
17152
17153 2007-02-25  Jim Meyering  <jim@meyering.net>
17154
17155         Avoid conflicting types for 'unsetenv' on FreeBSD.
17156         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
17157         conflicting with FreeBSD's (5.0 and 6.1) function declaration
17158         in stdlib.h.
17159
17160 2007-02-24  Bruno Haible  <bruno@clisp.org>
17161
17162         * modules/isnanl-nolibm-tests: New file.
17163         * tests/test-isnanl.c: New file.
17164
17165         * modules/isnanl-nolibm: New file.
17166         * lib/isnanl.h: New file.
17167         * lib/isnanl.c: New file.
17168         * m4/isnanl.m4: New file.
17169
17170 2007-02-24  Bruno Haible  <bruno@clisp.org>
17171
17172         * modules/isnan-nolibm-tests: New file.
17173         * tests/test-isnan.c: New file.
17174
17175         * modules/isnan-nolibm: New file.
17176         * lib/isnan.h: New file.
17177         * lib/isnan.c: New file.
17178         * m4/isnan.m4: New file.
17179
17180 2007-02-24  Bruno Haible  <bruno@clisp.org>
17181
17182         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
17183         assume that an exponent fits in 20 bits.
17184
17185 2007-02-24  Jim Meyering  <jim@meyering.net>
17186
17187         * m4/regex.m4: Update the description of the configure-time option,
17188         --without-included-regex, to state accurately what the defaults are,
17189         and perhaps to give people an idea why using this option is risky.
17190
17191 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
17192
17193         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
17194         loops on small arguments.  This attempts to avoid the problem
17195         Bruno Haible reported for AIX 4.3.2 in
17196         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
17197
17198 2007-02-23  Bruno Haible  <bruno@clisp.org>
17199
17200         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
17201         Needed for help2man.
17202
17203 2007-02-23  Karl Berry  <karl@gnu.org>
17204
17205         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
17206         exists, foo.h should be cvs-ignored, not committed.
17207
17208 2007-02-23  Eric Blake  <ebb9@byu.net>
17209
17210         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
17211         * lib/stat-time.h (includes): Likewise.
17212         * lib/utimecmp.c (includes): Likewise.
17213         * lib/utimens.h (includes): Likewise.
17214         * lib/getdate.y (includes): Also include "timespec.h" for use
17215         internal to the module.
17216         * modules/utimens (Depends-on): Revert yesterday's patch.
17217         * modules/nanosleep (Depends-on): Add missing dependency.
17218
17219 2007-02-22  Bruno Haible  <bruno@clisp.org>
17220
17221         * lib/glob.c: Don't include getlogin_r.h.
17222
17223 2007-02-22  Jim Meyering  <jim@meyering.net>
17224
17225         * modules/utimens (Depends-on): Add timespec, required for
17226         utimens.h's inclusion of timespec.h.
17227
17228 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
17229
17230         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
17231         long unreadable paths in GNU/Linux.  Problem reported by Andreas
17232         Schwab in
17233         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
17234         I'll try to think of a better way to fix the Solaris problem.
17235
17236         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
17237         like glibc; on Solaris 10, it fails with errno == EINVAL.
17238         POSIX says the behavior is unspecified if the first argument is NULL,
17239         so play it safe and never pass NULL to the system getcwd.
17240
17241 2007-02-21  Jim Meyering  <jim@meyering.net>
17242
17243         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
17244         of gettimeofday.  It would conflict with the one now always
17245         provided via sys_time_.h.  Reported by Matthew Woehlke, as
17246         an IRIX 6.5 build failure.
17247
17248 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
17249
17250         Minor fixups to port to Solaris 10 with Sun C 5.8.
17251         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
17252         * modules/getcwd (Depends-on): Add dirfd.
17253         * lib/putenv.c (putenv): #undef it.
17254         (rpl_putenv): New decl.
17255         (malloc, free): Include <stdlib.h> rather than prototyping separately.
17256
17257 2007-02-20  Bruno Haible  <bruno@clisp.org>
17258
17259         * modules/stdio-tests: New file.
17260         * tests/test-stdio.c: New file.
17261
17262         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
17263         (Depends-on): Add stdio.
17264         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
17265         (Include): Use <stdio.h> instead of vsnprintf.h.
17266         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
17267         HAVE_DECL_VSNPRINTF.
17268         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
17269
17270         * modules/snprintf (Files): Remove lib/snprintf.h.
17271         (Depends-on): Add stdio.
17272         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
17273         (Include): Use <stdio.h> instead of snprintf.h.
17274         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
17275         HAVE_DECL_SNPRINTF.
17276         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
17277         * lib/getaddrinfo.c: Likewise.
17278
17279         * modules/stdio: New file.
17280         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
17281         * lib/snprintf.h: Remove file.
17282         * lib/vsnprintf.h: Remove file.
17283         * lib/.cppi-disable: Remove snprintf.h.
17284         * m4/stdio_h.m4: New file.
17285         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
17286
17287 2007-02-20  Jim Meyering  <jim@meyering.net>
17288
17289         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
17290         used by e.g., mingw.  From Bruno Haible.
17291
17292 2007-02-19  Bruno Haible  <bruno@clisp.org>
17293
17294         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
17295         warnings.
17296         Reported by Ben Pfaff <blp@cs.stanford.edu>.
17297
17298 2007-02-19  Bruno Haible  <bruno@clisp.org>
17299
17300         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
17301         from mingw users.
17302
17303 2007-02-19  Bruno Haible  <bruno@clisp.org>
17304
17305         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
17306         warnings.
17307         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
17308
17309 2007-02-19  Jim Meyering  <jim@meyering.net>
17310
17311         Don't use FD after a successful "fdopendir (fd)".
17312         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
17313         Reset it by calling dirfd on the just-obtained DIR*.
17314
17315         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
17316         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
17317
17318 2007-02-18  Bruno Haible  <bruno@clisp.org>
17319
17320         * lib/readlink.c: Include <unistd.h>.
17321         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
17322         HAVE_READLINK.
17323         * modules/readlink (Depends-on): Add unistd.
17324         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
17325         (Include): Add <unistd.h>.
17326
17327         * lib/getlogin_r.h: Remove file.
17328         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
17329         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
17330         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
17331         HAVE_DECL_GETLOGIN_R.
17332         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
17333         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
17334         (Include): Use <unistd.h> instead of getlogin_r.h.
17335
17336         * lib/getcwd.h: Remove file.
17337         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
17338         * lib/xgetcwd.c: Likewise.
17339         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
17340         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
17341         * modules/getcwd (Files): Remove lib/getcwd.h.
17342         (Depends-on): Add unistd.
17343         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
17344         (Include): Use <unistd.h> instad of getcwd.h.
17345
17346         * lib/ftruncate.c: Include <unistd.h> first.
17347         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
17348         Set HAVE_FTRUNCATE.
17349         * modules/ftruncate (Depends-on): Add unistd.
17350         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
17351
17352         * lib/fchdir.c: Include <unistd.h> first.
17353         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
17354         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
17355         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
17356         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
17357         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
17358
17359         * lib/dup2.c: Include <unistd.h> first.
17360         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
17361         HAVE_DUP2.
17362         * modules/dup2 (Depends-on): Add unistd.
17363         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
17364
17365         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
17366         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
17367         REPLACE_CHOWN. Don't define chown as a macro here.
17368         * modules/chown (Depends-on): Add unistd.
17369         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
17370
17371         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
17372         Add definition for GL_LINK_WARNING.
17373         (chown, dup2): New declarations.
17374         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
17375         link warning.
17376         (ftruncate): New declaration.
17377         (getcwd): New declaration, taken from old getcwd.h.
17378         (getlogin_r): New declaration, taken from old getlogin_r.h.
17379         (readlink): New declaration.
17380         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
17381         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
17382         (gl_PREREQ_UNISTD): Remove macro.
17383         (gl_UNISTD_MODULE_INDICATOR): New macro.
17384         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
17385         many new variables. Don't set UNISTD_H.
17386         * modules/unistd (Description): Change.
17387         (Depends-on): Add link-warning.
17388         (configure.ac): Update.
17389         (Makefile.am): Create unistd.h always. Substitute many new variables
17390         into it.
17391
17392 2007-02-18  Bruno Haible  <bruno@clisp.org>
17393
17394         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
17395         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
17396         HAVE_GETSUBOPT.
17397         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
17398         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
17399         * lib/getsubopt.h: Remove file.
17400         * modules/getsubopt (Files): Remove lib/getsubopt.h.
17401         (Depends-on): Add stdlib.
17402         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
17403         (Includes): Use <stdlib.h> instead of getsubopt.h.
17404         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
17405         Set HAVE_GETSUBOPT.
17406         * lib/getsubopt.c: Don't include getsubopt.h.
17407
17408 2007-02-18  Bruno Haible  <bruno@clisp.org>
17409
17410         * modules/fchdir (Depends-on): Add dup2.
17411
17412 2007-02-18  Bruno Haible  <bruno@clisp.org>
17413
17414         * lib/stdlib_.h: Handle glibc's special invocation convention
17415         specially.
17416
17417 2007-02-18  Bruno Haible  <bruno@clisp.org>
17418
17419         * modules/stdlib-tests: New file.
17420         * tests/test-stdlib.c: New file.
17421
17422         * modules/mkstemp (Files): Remove lib/mkstemp.h.
17423         (Depends-on): Add stdlib.
17424         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
17425         (Includes): Use <stdlib.h> instead of mkstemp.h.
17426         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
17427         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
17428         * lib/mkstemp.c: Don't include mkstemp.h.
17429         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
17430         * lib/stdlib--.h: Don't include mkstemp.h.
17431
17432         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
17433         (Depends-on): Add stdlib.
17434         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
17435         (Includes): Use <stdlib.h> instead of mkdtemp.h.
17436         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
17437         HAVE_MKDTEMP.
17438         * lib/mkdtemp.c: Don't include mkdtemp.h.
17439         * lib/clean-temp.c: Don't include mkdtemp.h.
17440
17441         * modules/exit (Files): Remove lib/exit.h.
17442         (Depends-on): Add stdlib.
17443         (Makefile.am): Remove lib_SOURCES.
17444         (Include): Use <stdlib.h> instead of exit.h.
17445         * lib/argmatch.c: Don't include exit.h.
17446         * lib/execute.c: Likewise.
17447         * lib/pagealign_alloc.c: Likewise.
17448         * lib/pipe.c: Likewise.
17449         * lib/wait-process.c: Likewise.
17450         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
17451         * lib/exitfail.c: Likewise.
17452         * lib/savewd.c: Likewise.
17453         * lib/xsetenv.c: Likewise.
17454
17455         * modules/stdlib: New file.
17456         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
17457         and extra comments about mkstemp().
17458         * lib/exit.h: Remove file.
17459         * lib/mkdtemp.h: Remove file.
17460         * lib/mkstemp.h: Remove file.
17461         * m4/stdlib_h.m4: New file.
17462         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
17463
17464 2007-02-18  Bruno Haible  <bruno@clisp.org>
17465
17466         * modules/math-tests: New file.
17467         * tests/test-math.c: New file.
17468
17469         * modules/math: New file.
17470         * modules/mathl (Files): Remove lib/mathl.h.
17471         (Depends-on): Add math.
17472         (Makefile.am): Don't mention mathl.h.
17473         (Include): Use <math.h> instead of mathl.h.
17474         * lib/math_.h: New file.
17475         * lib/mathl.h: Remove file.
17476         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
17477         mathl.h.
17478         * lib/asinl.c: Likewise.
17479         * lib/atanl.c: Likewise.
17480         * lib/ceill.c: Likewise.
17481         * lib/cosl.c: Likewise.
17482         * lib/expl.c: Likewise.
17483         * lib/floorl.c: Likewise.
17484         * lib/frexpl.c: Likewise.
17485         * lib/ldexpl.c: Likewise.
17486         * lib/logl.c: Likewise.
17487         * lib/sincosl.c: Likewise.
17488         * lib/sinl.c: Likewise.
17489         * lib/sqrtl.c: Likewise.
17490         * lib/tanl.c: Likewise.
17491         * lib/trigl.c: Likewise.
17492         * m4/math_h.m4: New file.
17493         * MODULES.html.sh (Mathematics): Add math.
17494
17495 2007-02-17  Bruno Haible  <bruno@clisp.org>
17496
17497         * modules/wctype-tests: New file.
17498         * tests/test-wctype.c: New file.
17499
17500         * modules/wchar-tests: New file.
17501         * tests/test-wchar.c: New file.
17502
17503         * modules/unistd-tests: New file.
17504         * tests/test-unistd.c: New file.
17505
17506         * modules/time-tests: New file.
17507         * tests/test-time.c: New file.
17508
17509         * modules/sysexits-tests: New file.
17510         * tests/test-sysexits.c: New file.
17511
17512         * modules/sys_time-tests: New file.
17513         * tests/test-sys_time.c: New file.
17514
17515         * modules/sys_stat-tests: New file.
17516         * tests/test-sys_stat.c: New file.
17517
17518         * modules/sys_socket-tests: New file.
17519         * tests/test-sys_socket.c: New file.
17520
17521         * modules/sys_select-tests: New file.
17522         * tests/test-sys_select.c: New file.
17523
17524         * modules/string-tests: New file.
17525         * tests/test-string.c: New file.
17526
17527         * modules/stdbool-tests: New file.
17528         * tests/test-stdbool.c: New file.
17529
17530         * modules/netinet_in-tests: New file.
17531         * tests/test-netinet_in.c: New file.
17532
17533         * modules/inttypes-tests: New file.
17534         * tests/test-inttypes.c: New file.
17535
17536         * modules/fcntl-tests: New file.
17537         * tests/test-fcntl.c: New file.
17538
17539         * modules/byteswap-tests: New file.
17540         * tests/test-byteswap.c: New file.
17541
17542         * modules/arpa_inet-tests: New file.
17543         * tests/test-arpa_inet.c: New file.
17544
17545 2007-02-17  Bruno Haible  <bruno@clisp.org>
17546
17547         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
17548         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
17549         if the corresponding module is not enabled. Emit link warnings if
17550         the function is used nevertheless.
17551         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
17552         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
17553         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
17554         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
17555         * modules/inttypes (Depends-on): Add link-warning.
17556         (Makefile.am): Copy the contents of build-aux/link-warning.h into
17557         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
17558         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
17559         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
17560         * modules/imaxdiv (configure.ac): Likewise.
17561         * modules/strtoimax (configure.ac): Likewise.
17562         * modules/strtoumax (configure.ac): Likewise.
17563
17564 2007-02-17  Bruno Haible  <bruno@clisp.org>
17565
17566         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
17567         gl_STRING_MODULE_INDICATOR_DEFAULTS.
17568         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
17569         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
17570
17571 2007-02-17  Bruno Haible  <bruno@clisp.org>
17572
17573         * modules/link-warning: New file.
17574         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
17575         * lib/string_.h (GL_LINK_WARNING): Remove definition.
17576         * modules/string (Depends-on): Add link-warning.
17577         (Makefile.am): Copy the contents of build-aux/link-warning.h into
17578         string.h.
17579         * MODULES.html.sh (Support for building libraries and executables): Add
17580         link-warning.
17581
17582 2007-02-17  Bruno Haible  <bruno@clisp.org>
17583
17584         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
17585         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
17586         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
17587         long lines.
17588
17589 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
17590             Bruno Haible  <bruno@clisp.org>
17591
17592         * modules/tmpfile: New file.
17593         * lib/tmpfile.c: New file.
17594         * m4/tmpfile.m4: New file.
17595         * MODULES.html.sh (func_all_modules): New section "Input/output".
17596
17597 2007-02-15  Bruno Haible  <bruno@clisp.org>
17598
17599         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
17600         (supports_delete_on_close): New function.
17601         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
17602
17603 2007-02-14  Bruno Haible  <bruno@clisp.org>
17604
17605         * modules/mbspcasecmp-tests: New file.
17606         * tests/test-mbspcasecmp.sh: New file.
17607         * tests/test-mbspcasecmp.c: New file.
17608
17609         New module mbspcasecmp.
17610         * modules/mbspcasecmp: New file.
17611         * lib/mbspcasecmp.c: New file.
17612         * lib/string_.h (strncasecmp): Change warning message.
17613         (mbspcasecmp): New declaration.
17614         * m4/mbspcasecmp.m4: New file.
17615         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
17616         GNULIB_MBSPCASECMP.
17617         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
17618         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
17619
17620 2007-02-14  Bruno Haible  <bruno@clisp.org>
17621
17622         * modules/mbsncasecmp-tests: New file.
17623         * tests/test-mbsncasecmp.sh: New file.
17624         * tests/test-mbsncasecmp.c: New file.
17625
17626         New module mbsncasecmp.
17627         * modules/mbsncasecmp: New file.
17628         * lib/mbsncasecmp.c: New file.
17629         * lib/string_.h (mbsncasecmp): New declaration.
17630         * m4/mbsncasecmp.m4: New file.
17631         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
17632         GNULIB_MBSNCASECMP.
17633         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
17634         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
17635
17636 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
17637
17638         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
17639         Verify that it doesn't overlap with our flags.
17640         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
17641         do not have the desired effect in multibyte locales; instead, use
17642         mbscasecmp.
17643         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
17644         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
17645         we don't require GNU fnmatch ourselves (if our users require it, they
17646         should do so explicitly).
17647
17648         Fix regex code so it doesn't rely on strcasecmp.
17649         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
17650         Otherwise, include gnulib's langinfo.h.
17651         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
17652         undesirable behavior in non-C locales.  Instead, rely on localecharset.
17653         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
17654         * modules/regex (FILES): Remove m4/codeset.m4.
17655         (Depends-on): Add localcharset.  Remove strcase.
17656
17657 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17658
17659         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
17660         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
17661
17662 2007-02-13  Bruno Haible  <bruno@clisp.org>
17663
17664         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
17665         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
17666
17667 2007-02-12  Bruno Haible  <bruno@clisp.org>
17668
17669         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
17670         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
17671         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
17672         time warning rather than a link error.
17673
17674 2007-02-12  Bruno Haible  <bruno@clisp.org>
17675
17676         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
17677         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
17678         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
17679
17680 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
17681
17682         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
17683         args, not 2.
17684
17685 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
17686
17687         New module 'time', so that apps can include <time.h> as per
17688         POSIX and GNU instead of separate include files like time_r.h
17689         and timegm.h.  This implementation tries out a simpler approach
17690         for replacing decls in standard include files (as compared to
17691         the string module), somewhat as an experiment.
17692
17693         * config/srclist.txt: Comment out mktime.c for now.
17694         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
17695         since it doesn't apply any more.  Use generic wording instead.
17696         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
17697         'time'.
17698         * lib/time_.h, m4/time_h.m4, modules/time: New files.
17699         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
17700         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
17701         Don't include <sys/types.h>; no longer needed since we assume C89.
17702         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
17703         * lib/strftime.c: Likewise.
17704         * lib/time_r.c: Likewise.
17705         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
17706         * lib/nanosleep.c: Include <time.h> first, to check interface.
17707         * lib/strptime.c: Likewise.
17708         * lib/time_r.c: Likewise.
17709         * lib/timegm.c: Likewise.
17710         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
17711         needed.
17712         * lib/timegm.c: Don't include timegm.h; no longer needed.
17713         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
17714         time.h now handles any problems in that area.
17715         (struct timespec, nanosleep): Remove; time.h now arranges for these.
17716         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
17717         that time.h defines struct timespec.
17718         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
17719         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
17720         handles that.
17721         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
17722         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
17723         needed.  Set REPLACE_LOCALTIME.
17724         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
17725         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
17726         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
17727         nanosleep; time_h.m4 now does that.  Don't require
17728         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
17729         module handles this now.
17730         * modules/getdate (Depends-on): Remove timespec.  Add time.
17731         * modules/nanosleep (Depends-on): Likewise.
17732         * modules/stat-time (Depends-on): Likewise.
17733         * modules/nanosleep (Include): Include time.h, not timespec.h.
17734         * modules/strptime (Files): Remove lib/strptime.h.
17735         (Depends-on): Add extensions, time.
17736         (Include): Include time.h, not strptime.h.
17737         * modules/time_r (Files): Remove lib/time_r.h.
17738         (Depends-on): Add time.
17739         (Include): Include time.h, not time_r.h.
17740         * modules/timegm: Likewise.
17741         * modules/timespec (Description): Now does timespec-related decls
17742         of our own, instead of struct timespec itself.
17743         (Depends-on): Add time; remove extensions.
17744         (Maintainer): Add self.
17745         * modules/utimecmp (Depends-on): Add time; remove timespec.
17746         * modules/utimens (Depends-on): Likewise.
17747         * modules/xnanosleep (Depends-on): Likewise.
17748
17749 2007-02-11  Bruno Haible  <bruno@clisp.org>
17750
17751         * lib/c-strstr.c: Include allocsa.h.
17752         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
17753         * lib/c-strcasestr.c: Include allocsa.h.
17754         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
17755         * lib/strcasestr.c: Include allocsa.h.
17756         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
17757         * lib/mbsstr.c: Include allocsa.h.
17758         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
17759         allocsa/freesa instead of malloc/free.
17760         * lib/mbscasestr.c: Include allocsa.h.
17761         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
17762         allocsa/freesa instead of malloc/free.
17763         * modules/c-strstr (Depends-on): Add allocsa.
17764         * modules/c-strcasestr (Depends-on): Likewise.
17765         * modules/strcasestr (Depends-on): Likewise.
17766         * modules/mbsstr (Depends-on): Likewise.
17767         * modules/mbscasestr (Depends-on): Likewise.
17768
17769 2007-02-11  Bruno Haible  <bruno@clisp.org>
17770
17771         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
17772
17773         * modules/mbsspn-tests: New file.
17774         * tests/test-mbsspn.sh: New file.
17775         * tests/test-mbsspn.c: New file.
17776
17777 2007-02-11  Bruno Haible  <bruno@clisp.org>
17778
17779         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
17780
17781         * modules/mbspbrk-tests: New file.
17782         * tests/test-mbspbrk.sh: New file.
17783         * tests/test-mbspbrk.c: New file.
17784
17785 2007-02-11  Bruno Haible  <bruno@clisp.org>
17786
17787         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
17788         unneeded cast.
17789
17790         * modules/mbscspn-tests: New file.
17791         * tests/test-mbscspn.sh: New file.
17792         * tests/test-mbscspn.c: New file.
17793
17794 2007-02-11  Bruno Haible  <bruno@clisp.org>
17795
17796         * modules/mbscasecmp-tests: New file.
17797         * tests/test-mbscasecmp.sh: New file.
17798         * tests/test-mbscasecmp.c: New file.
17799
17800 2007-02-11  Bruno Haible  <bruno@clisp.org>
17801
17802         Ensure O(n) worst-case complexity of mbscasestr.
17803         * lib/mbscasestr.c: Include stdbool.h.
17804         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
17805         functions.
17806         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
17807         the bookkeeping indicates that it's worth it.
17808         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
17809
17810         * modules/mbscasestr-tests: New file.
17811         * tests/test-mbscasestr1.c: New file.
17812         * tests/test-mbscasestr2.sh: New file.
17813         * tests/test-mbscasestr2.c: New file.
17814         * tests/test-mbscasestr3.sh: New file.
17815         * tests/test-mbscasestr3.c: New file.
17816         * tests/test-mbscasestr4.sh: New file.
17817         * tests/test-mbscasestr4.c: New file.
17818         * m4/locale-tr.m4: New file.
17819
17820 2007-02-11  Bruno Haible  <bruno@clisp.org>
17821
17822         Ensure O(n) worst-case complexity of mbsstr.
17823         * lib/mbsstr.c: Include stdbool.h.
17824         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
17825         functions.
17826         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
17827         bookkeeping indicates that it's worth it.
17828         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
17829
17830         * modules/mbsstr-tests: New file.
17831         * tests/test-mbsstr1.c: New file.
17832         * tests/test-mbsstr2.sh: New file.
17833         * tests/test-mbsstr2.c: New file.
17834         * tests/test-mbsstr3.sh: New file.
17835         * tests/test-mbsstr3.c: New file.
17836         * m4/locale-fr.m4: New file.
17837
17838 2007-02-11  Bruno Haible  <bruno@clisp.org>
17839
17840         * lib/mbsrchr.c (mbsrchr): Fix bug.
17841
17842         * modules/mbsrchr-tests: New file.
17843         * tests/test-mbsrchr.sh: New file.
17844         * tests/test-mbsrchr.c: New file.
17845
17846 2007-02-11  Bruno Haible  <bruno@clisp.org>
17847
17848         * lib/mbschr.c (mbschr): Fix bug.
17849
17850         * modules/mbschr-tests: New file.
17851         * tests/test-mbschr.sh: New file.
17852         * tests/test-mbschr.c: New file.
17853         * m4/locale-zh.m4: New file.
17854
17855 2007-02-11  Bruno Haible  <bruno@clisp.org>
17856
17857         Support for copying multibyte string iterators.
17858         * lib/mbiter.h: Include <string.h>.
17859         (mbiter_multi_copy): New function.
17860         (mbi_copy): New macro.
17861         * lib/mbuiter.h: Include <string.h>.
17862         (mbuiter_multi_copy): New function.
17863         (mbui_copy): New macro.
17864
17865 2007-02-11  Bruno Haible  <bruno@clisp.org>
17866
17867         New module mbslen.
17868         * modules/mbslen: New file.
17869         * lib/mbslen.c: New file.
17870         * lib/string_.h (mbslen): New declaration.
17871         * m4/mbslen.m4: New file.
17872         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
17873         GNULIB_MBSLEN.
17874         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
17875         * MODULES.html.sh (Internationalization functions): Add mbslen.
17876
17877 2007-02-11  Bruno Haible  <bruno@clisp.org>
17878
17879         Ensure O(n) worst-case complexity of strcasestr substitute.
17880         * lib/strcasestr.c: Include stdbool.h.
17881         (knuth_morris_pratt): New function.
17882         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
17883         bookkeeping indicates that it's worth it.
17884         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
17885
17886         * modules/strcasestr-tests: New file.
17887         * tests/test-strcasestr.c: New file.
17888
17889 2007-02-11  Bruno Haible  <bruno@clisp.org>
17890
17891         Ensure O(n) worst-case complexity of c_strcasestr.
17892         * lib/c-strcasestr.c: Include stdbool.h, string.h.
17893         (knuth_morris_pratt): New function.
17894         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
17895         the bookkeeping indicates that it's worth it.
17896         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
17897
17898         * modules/c-strcasestr-tests: New file.
17899         * tests/test-c-strcasestr.c: New file.
17900
17901 2007-02-11  Bruno Haible  <bruno@clisp.org>
17902
17903         Ensure O(n) worst-case complexity of c_strstr.
17904         * lib/c-strstr.c: Include stdbool.h, string.h.
17905         (knuth_morris_pratt): New function.
17906         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
17907         bookkeeping indicates that it's worth it.
17908         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
17909
17910         * lib/c-strstr.c: Complete rewrite for maintainability.
17911
17912         * modules/c-strstr-tests: New file.
17913         * tests/test-c-strstr.c: New file.
17914
17915 2007-02-11  Bruno Haible  <bruno@clisp.org>
17916
17917         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
17918         5.2.1 and earlier, whereby \055 was treated just like the range
17919         delimiter '-'.
17920         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
17921
17922 2007-02-08  Bruno Haible  <bruno@clisp.org>
17923
17924         * modules/regex (Depends-on): Add stdbool.
17925         Reported by Dalibor Topic <robilad@kaffe.org>.
17926
17927 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
17928
17929         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
17930         Prefer returning from main to exiting from it.
17931         Remove unnecessary parens after sizeof.
17932
17933 2007-02-05  Bruno Haible  <bruno@clisp.org>
17934
17935         New module mbssep.
17936         * modules/mbssep: New file.
17937         * lib/mbssep.c: New file.
17938         * lib/string_.h (strsep): Add a conditional link warning.
17939         (mbssep): New declaration.
17940         * m4/mbssep.m4: New file.
17941         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
17942         GNULIB_MBSSEP.
17943         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
17944         * MODULES.html.sh (Internationalization functions): Add mbssep.
17945
17946 2007-02-05  Bruno Haible  <bruno@clisp.org>
17947
17948         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
17949         Optimize search in case of 1 delimiter.
17950
17951 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
17952
17953         * lib/acl.h: Include sys/types.h before sys/acl.h.
17954
17955 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
17956
17957         Merge upstream fix for glibc bugzilla #3957:
17958
17959         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
17960
17961         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
17962         bit for RE_HAT_LISTS_NOT_NEWLINE.
17963         (build_charclass_op): Remove bogus comment.
17964
17965 2007-02-05  Simon Josefsson  <simon@josefsson.org>
17966
17967         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
17968
17969 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
17970
17971         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
17972         * lib/memmem.c [!defined _LIBC]: Include config.h.
17973
17974 2007-02-04  Bruno Haible  <bruno@clisp.org>
17975
17976         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
17977         warning message.
17978
17979 2007-02-04  Bruno Haible  <bruno@clisp.org>
17980
17981         New module mbstok_r.
17982         * modules/mbstok_r: New file.
17983         * lib/mbstok_r.c: New file.
17984         * lib/string_.h (strtok_r): Change argument names to match the
17985         comments. Add a conditional link warning.
17986         (mbstok_r): New declaration.
17987         * m4/mbstok_r.m4: New file.
17988         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
17989         GNULIB_MBSTOK_R.
17990         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
17991         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
17992
17993 2007-02-04  Bruno Haible  <bruno@clisp.org>
17994
17995         New module mbsspn.
17996         * modules/mbsspn: New file.
17997         * lib/mbsspn.c: New file.
17998         * lib/string_.h (strspn): Add a conditional link warning.
17999         (mbsspn): New declaration.
18000         * m4/mbsspn.m4: New file.
18001         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
18002         GNULIB_MBSSPN.
18003         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
18004         * MODULES.html.sh (Internationalization functions): Add mbsspn.
18005
18006 2007-02-04  Bruno Haible  <bruno@clisp.org>
18007
18008         New module mbspbrk.
18009         * modules/mbspbrk: New file.
18010         * lib/mbspbrk.c: New file.
18011         * lib/string_.h (strpbrk): Add a conditional link warning.
18012         (mbspbrk): New declaration.
18013         * m4/mbspbrk.m4: New file.
18014         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
18015         GNULIB_MBSPBRK.
18016         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
18017         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
18018
18019 2007-02-04  Bruno Haible  <bruno@clisp.org>
18020
18021         New module mbscspn.
18022         * modules/mbscspn: New file.
18023         * lib/mbscspn.c: New file.
18024         * lib/string_.h (strcspn): Add a conditional link warning.
18025         (mbscspn): New declaration.
18026         * m4/mbscspn.m4: New file.
18027         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
18028         GNULIB_MBSCSPN.
18029         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
18030         * MODULES.html.sh (Internationalization functions): Add mbscspn.
18031
18032 2007-02-04  Bruno Haible  <bruno@clisp.org>
18033
18034         New module mbscasestr, reduced goal of strcasestr.
18035         * modules/mbscasestr: New file.
18036         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
18037         (mbscasestr): Renamed from strcasestr.
18038         * lib/strcasestr.c: Don't include mbuiter.h.
18039         (strcasestr): Remove support for multibyte locales.
18040         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
18041         Change the conditional link warning.
18042         (mbscasestr): New declaration.
18043         * m4/mbscasestr.m4: New file.
18044         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
18045         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
18046         REPLACE_STRCASESTR.
18047         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
18048         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
18049         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
18050         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
18051         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
18052         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
18053         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
18054         (Depends-on): Remove mbuiter.
18055         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
18056
18057 2007-02-04  Bruno Haible  <bruno@clisp.org>
18058
18059         Simplify handling of strncasecmp.
18060         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
18061         the conditional link warning.
18062         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
18063         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
18064         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
18065         * modules/strcase (configure.ac): Don't invoke
18066         gl_STRING_MODULE_INDICATOR.
18067         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
18068
18069 2007-02-04  Bruno Haible  <bruno@clisp.org>
18070
18071         New module mbscasecmp, reduced goal of strcasecmp.
18072         * modules/mbscasecmp: New file.
18073         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
18074         (mbscasecmp): Renamed from strcasecmp.
18075         * lib/strcasecmp.c: Don't include mbuiter.h.
18076         (strcasecmp): Remove support for multibyte locales.
18077         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
18078         Change the conditional link warning.
18079         (mbscasecmp): New declaration.
18080         * m4/mbscasecmp.m4: New file.
18081         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
18082         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
18083         REPLACE_STRCASECMP.
18084         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
18085         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
18086         GNULIB_MBSCASECMP.
18087         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
18088         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
18089         * modules/strcase (Files): Remove m4/mbrtowc.m4.
18090         (Depends-on): Remove mbuiter.
18091         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
18092
18093 2007-02-04  Bruno Haible  <bruno@clisp.org>
18094
18095         New module mbsstr. Remove module strstr.
18096         * modules/mbsstr: New file.
18097         * modules/strstr: Remove file.
18098         * lib/mbsstr.c: Renamed from lib/strstr.c.
18099         (mbsstr): Renamed from strstr.
18100         * lib/string_.h (strstr): Remove declaration. Change the conditional
18101         link warning.
18102         (mbsstr): New declaration.
18103         * m4/mbsstr.m4: New file.
18104         * m4/strstr.m4: Remove file.
18105         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
18106         REPLACE_STRSTR.
18107         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
18108         Don't initialize GNULIB_STRSTR.
18109         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
18110         substitute GNULIB_STRSTR and REPLACE_STRSTR.
18111         * MODULES.html.sh (Internationalization functions): Add mbsstr.
18112         (Support for systems lacking ANSI C 89): Remove strstr.
18113
18114 2007-02-04  Bruno Haible  <bruno@clisp.org>
18115
18116         New module mbsrchr.
18117         * modules/mbsrchr: New file.
18118         * lib/mbsrchr.c: New file.
18119         * lib/string_.h (strrchr): Add a conditional link warning.
18120         (mbsrchr): New declaration.
18121         * m4/mbsrchr.m4: New file.
18122         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
18123         GNULIB_MBSRCHR.
18124         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
18125         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
18126
18127 2007-02-04  Bruno Haible  <bruno@clisp.org>
18128
18129         New module mbschr.
18130         * modules/mbschr: New file.
18131         * lib/mbschr.c: New file.
18132         * lib/string_.h (strchr): Add a conditional link warning.
18133         (mbschr): New declaration.
18134         * m4/mbschr.m4: New file.
18135         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
18136         GNULIB_MBSCHR.
18137         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
18138         * MODULES.html.sh (Internationalization functions): Add mbschr.
18139
18140 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
18141
18142         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
18143
18144         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
18145
18146 2007-02-04  Bruno Haible  <bruno@clisp.org>
18147
18148         New module description section 'configure.ac-early'.
18149         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
18150         (func_get_autoconf_early_snippet): New function.
18151         (func_import, func_create_testdir): Use it. Remove special cases for
18152         modules 'extensions' and 'lock'.
18153         * modules/extensions (configure.ac-early): Require
18154         gl_USE_SYSTEM_EXTENSIONS.
18155         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
18156
18157 2007-02-04  Bruno Haible  <bruno@clisp.org>
18158
18159         Make use of gcj-4.3's -fsource and -ftarget option.
18160         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
18161         and if so try the options -fsource and -ftarget.
18162         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
18163         source_version, ftarget_option, target_version arguments.
18164         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
18165         (is_envjavac_oldgcj_14_14_usable): Renamed from
18166         is_envjavac_gcj_14_14_usable.
18167         (is_envjavac_oldgcj_14_13_usable): Renamed from
18168         is_envjavac_gcj_14_13_usable.
18169         (is_gcj_present): Update.
18170         (is_gcj_43, is_gcj43_usable): New functions.
18171         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
18172         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
18173         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
18174         try the options -fsource and -ftarget.
18175
18176 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
18177
18178         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
18179         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
18180         larger value.
18181
18182 2007-02-03  Jim Meyering  <jim@meyering.net>
18183
18184         Give tools a better chance to allocate space for very large buffers.
18185         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
18186
18187         Make pwd and readlink work also when run with an unreadable parent dir
18188         on systems with openat support.
18189         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
18190         provided getcwd function, even when we have openat support.
18191         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
18192
18193 2007-02-02  Bruno Haible  <bruno@clisp.org>
18194
18195         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
18196         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
18197         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
18198         portability problems if one of these functions is only used on specific
18199         platforms.
18200         Reported by Paul Eggert.
18201
18202 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
18203
18204         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
18205         is causing more trouble than it's curing.
18206         * lib/regex_internal.h (__mempcpy): Remove.
18207         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
18208         (and make the code a tad smaller to boot).
18209         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
18210
18211 2007-02-02  Jim Meyering  <jim@meyering.net>
18212
18213         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
18214         section, not in the Makefile.am: one.
18215
18216 2007-02-02  Eric Blake  <ebb9@byu.net>
18217
18218         * lib/strchrnul.c: Always include config.h first.
18219
18220         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
18221         gnulib strstr is not necessary here.
18222
18223 2007-02-02  Simon Josefsson  <simon@josefsson.org>
18224
18225         * m4/socklen.m4: Fix typo.
18226
18227 2007-02-02  Eric Blake  <ebb9@byu.net>
18228
18229         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
18230         * modules/netinet_in (Makefile.am): Likewise.
18231
18232 2007-02-01  Bruno Haible  <bruno@clisp.org>
18233
18234         * lib/string_.h (GL_LINK_WARNING): New macro.
18235         (strcasecmp, strstr, strcasestr): If provided by the system,
18236         conditionally define as a macro that leads to a warning instead of to
18237         an error.
18238         (strncasecmp): Conditionally define as a macro that leads to a warning.
18239
18240 2007-02-01  Karl Berry  <karl@gnu.org>
18241
18242         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
18243
18244 2007-02-01  Bruno Haible  <bruno@clisp.org>
18245
18246         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
18247         renamings.
18248
18249 2007-02-01  Eric Blake  <ebb9@byu.net>
18250
18251         * modules/regex (Depends-on): Revert dependence on mempcpy.
18252         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
18253         module's definition of mempcpy.
18254         Reported by Paul Eggert.
18255
18256 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
18257
18258         * lib/string_.h: If the gnulib module XYZ is not present, undefine
18259         the symbol XYZ before redefining it.  This fixes a problem with
18260         programs that don't use XYZ, when compiled on systems that define
18261         XYZ to something else.
18262
18263 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
18264
18265         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
18266         occurs when "mkdir -m foo" creates a setgid directory that is (1)
18267         writeable to group or other and (2) is intended to have a special
18268         mode bit that is set or cleared.  In such a case, the directory
18269         should be neither group- nor other-writeable until the special
18270         mode bits are right.
18271
18272 2007-01-31  Eric Blake  <ebb9@byu.net>
18273
18274         * modules/mountlist (Depends-on): Add strstr.
18275
18276         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
18277         bug.
18278         * modules/string (Makefile.am): Remove redundant replacement.
18279         * modules/regex (Depends-on): Add mempcpy.
18280
18281 2007-01-31  Bruno Haible  <bruno@clisp.org>
18282
18283         New module description field 'Link'.
18284         * gnulib-tool (func_usage): Document --extract-link-directive.
18285         (sed_extract_prog): Recognize 'Link' directive.
18286         (func_get_link_directive): New function.
18287         (func_import): Show summary of link directives.
18288         Handle --extract-link-directive option.
18289         * modules/acl (Link): New section.
18290         * modules/clock-time (Link): New section.
18291         * modules/euidaccess (Link): New section.
18292         * modules/gettext (Link): New section.
18293         * modules/iconv (Link): New section.
18294         * modules/lock (Link): New section.
18295         * modules/nanosleep (Link): New section.
18296         * modules/readline (Link): New section.
18297
18298 2007-01-27  Bruno Haible  <bruno@clisp.org>
18299
18300         Enforce the use of gnulib modules for unportable <string.h> functions.
18301         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
18302         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
18303         (gl_HEADER_STRING_H_BODY): Require it.
18304         * lib/string_.h: If the gnulib module XYZ is not present, redefine
18305         the symbol XYZ to one that gives a link error.
18306         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
18307         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
18308         * modules/mempcpy (configure.ac): Likewise.
18309         * modules/memrchr (configure.ac): Likewise.
18310         * modules/stpcpy (configure.ac): Likewise.
18311         * modules/stpncpy (configure.ac): Likewise.
18312         * modules/strcase (configure.ac): Likewise.
18313         * modules/strcasestr (configure.ac): Likewise.
18314         * modules/strchrnul (configure.ac): Likewise.
18315         * modules/strdup (configure.ac): Likewise.
18316         * modules/strndup (configure.ac): Likewise.
18317         * modules/strnlen (configure.ac): Likewise.
18318         * modules/strpbrk (configure.ac): Likewise.
18319         * modules/strsep (configure.ac): Likewise.
18320         * modules/strstr (configure.ac): Likewise.
18321         * modules/strtok_r (configure.ac): Likewise.
18322
18323 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
18324
18325         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
18326
18327 2007-01-30  Jim Meyering  <jim@meyering.net>
18328
18329         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
18330
18331 2007-01-29  Bruno Haible  <bruno@clisp.org>
18332
18333         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
18334         * lib/execute.c: Likewise.
18335         * lib/pipe.c: Likewise.
18336         * lib/printf-args.h: Likewise.
18337         * lib/printf-args.c: Likewise.
18338         * lib/printf-parse.c: Likewise.
18339         * lib/vasnprintf.c: Likewise.
18340
18341 2007-01-29  Eric Blake  <ebb9@byu.net>
18342
18343         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
18344         declaration.
18345
18346 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
18347
18348         * lib/strptime.h (strptime): Use 'restrict' for args where
18349         POSIX requires this.
18350         * lib/strptime.c (strptime): Likewise.
18351         Change license notice from LGPL to GPL, since gnulib-tool will
18352         change this as needed.
18353         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
18354         defined.
18355         Include "strptime.h" first, to check interface.
18356         Do not #undef _LIBC and _NL_CURRENT.
18357         Do not include <stdlib.h>; no longer needed.
18358         Include "time_r.h" and declare ptime_locale_status
18359         only if _LIBC is not defined.
18360         (__P): Remove unused macro.
18361         (match_string): Bring back glibc version, but use it only if _LIBC
18362         is defined.
18363         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
18364         Remove unnecessary assertion and abort() call.
18365         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
18366         * m4/strptime.m4: Fix serial number comment.
18367         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
18368         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
18369         (Depends-on): Add time_r.
18370
18371 2007-01-29  Bruno Haible  <bruno@clisp.org>
18372
18373         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
18374         strptime.
18375         * modules/strptime (Depends-on): Add stdbool.
18376         * lib/strptime.h: Include <time.h> always. Add comments.
18377
18378 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
18379
18380         * modules/strptime: New file.
18381         * lib/strptime.h: New file.
18382         * lib/strptime.c: New file.
18383         * m4/strptime.m4: New file.
18384
18385 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
18386
18387         * MODULES.html.sh: New module mpsort.
18388         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
18389
18390         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
18391         a circularity problem with HP-UX ia64 reported by Bob Proulx in
18392         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
18393         All uses changed.
18394         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
18395         All uses changed.
18396         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
18397         to _Restrict_.
18398         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
18399         the parameter matches the prototype.
18400
18401 2007-01-28  Jim Meyering  <jim@meyering.net>
18402
18403         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
18404         sys/time.h here, reverting that part of the previous patch:
18405         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
18406
18407 2007-01-28  Bruno Haible  <bruno@clisp.org>
18408
18409         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
18410         value of $(SYS_TIME_H).
18411         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
18412         remove it conditionally, too. [added by Jim Meyering]
18413         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
18414         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
18415         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
18416         GETTIMEOFDAY_REPLACEMENT to 1.
18417
18418 2007-01-28  Bruno Haible  <bruno@clisp.org>
18419
18420         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
18421         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
18422         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
18423         Set UNISTD_H instead of UNISTD_H2.
18424         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
18425
18426 2007-01-28  Bruno Haible  <bruno@clisp.org>
18427
18428         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
18429         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
18430
18431 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18432
18433         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
18434         (func_create_testdir): Ensure C locale for `grep' and `tr'
18435         character ranges.
18436         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
18437         ACLOCAL_AMFLAGS parsing state machine.
18438
18439 2007-01-27  Bruno Haible  <bruno@clisp.org>
18440
18441         * modules/unistr/base: Update.
18442
18443 2007-01-27  Bruno Haible  <bruno@clisp.org>
18444
18445         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
18446         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
18447         * modules/unistr/u32-mbtouc-unsafe: Renamed from
18448         modules/unistr/u32-mbtouc.
18449         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
18450         * lib/unistr.h: Update.
18451         * lib/linebreak.c: Update.
18452         * modules/unistr/u32-mbtouc: Renamed from
18453         modules/unistr/u32-mbtouc-safe.
18454         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
18455         * lib/unistr.h: Update.
18456         * lib/unistr/u32-to-u8.c: Update.
18457         * lib/unistr/u32-to-u16.c: Update.
18458
18459 2007-01-27  Bruno Haible  <bruno@clisp.org>
18460
18461         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
18462         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
18463         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
18464         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
18465         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
18466         * modules/unistr/u16-mbtouc-unsafe: Renamed from
18467         modules/unistr/u16-mbtouc.
18468         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
18469         * lib/unistr.h: Update.
18470         * lib/linebreak.c: Update.
18471         * modules/linebreak: Update.
18472         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
18473         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
18474         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
18475         * modules/unistr/u16-mbtouc: Renamed from
18476         modules/unistr/u16-mbtouc-safe.
18477         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
18478         * lib/unistr.h: Update.
18479         * lib/unistr/u16-to-u8.c: Update.
18480         * modules/unistr/u16-to-u8: Update.
18481         * lib/unistr/u16-to-u32.c: Update.
18482         * modules/unistr/u16-to-u32: Update.
18483
18484 2007-01-27  Bruno Haible  <bruno@clisp.org>
18485
18486         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
18487         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
18488         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
18489         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
18490         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
18491         * modules/unistr/u8-mbtouc-unsafe: Renamed from
18492         modules/unistr/u8-mbtouc.
18493         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
18494         * lib/unistr.h: Update.
18495         * lib/striconveh.c: Update.
18496         * modules/striconveh: Update.
18497         * lib/linebreak.c: Update.
18498         * modules/linebreak: Update.
18499         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
18500         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
18501         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
18502         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
18503         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
18504         * lib/unistr.h: Update.
18505         * lib/striconveh.c: Update.
18506         * modules/striconveh: Update.
18507         * lib/unistr/u8-to-u16.c: Update.
18508         * modules/unistr/u8-to-u16: Update.
18509         * lib/unistr/u8-to-u32.c: Update.
18510         * modules/unistr/u8-to-u32: Update.
18511
18512 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18513
18514         Sync from Libtool.
18515         * lib/argz.c: Do not include strings.h nor memory.h, include
18516         string.h unconditionally.  Patch by Simon Josefsson.
18517
18518 2007-01-27  Bruno Haible  <bruno@clisp.org>
18519
18520         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
18521         from gl_HEADER_STRING_H_BODY.
18522         (gl_HEADER_STRING_H_BODY): Require it.
18523         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
18524         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
18525         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
18526         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
18527         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
18528         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
18529         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
18530         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
18531         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
18532         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
18533         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
18534         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
18535         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
18536         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
18537         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
18538
18539 2007-01-27  Bruno Haible  <bruno@clisp.org>
18540
18541         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
18542         check_PROGRAMS into noinst_PROGRAMS.
18543         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
18544         check_PROGRAMS in this case.
18545         (func_import): Set for_test to false.
18546         (func_create_testdir): Set for_test to true.
18547
18548 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
18549             Bruno Haible  <bruno@clisp.org>
18550
18551         * modules/strcasestr (Files): Remove lib/strcasestr.h.
18552         (Depends-on): Add string.
18553         (Includes): Use <string.h> instead of strcasestr.h.
18554         * modules/string (Makefile.am): Also substitute the value of
18555         REPLACE_STRCASESTR.
18556         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
18557         assume strcasestr is declared in <string.h> not <strings.h>. Also
18558         set REPLACE_STRCASESTR.
18559         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
18560         REPLACE_STRCASESTR.
18561         * lib/strcasestr.h: Remove file.
18562         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
18563         * lib/string_.h (strcasestr): New declaration.
18564
18565 2007-01-27  Bruno Haible  <bruno@clisp.org>
18566
18567         * lib/string_.h: Use 'extern'.
18568
18569 2007-01-27  Jim Meyering  <jim@meyering.net>
18570
18571         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
18572         of set-but-not-used local, "q".
18573
18574         * lib/mempcpy.c: Include <config.h> before <string.h>.
18575         This fixes a compilation error on HP-UX, due to the system's
18576         "restrict"-using mempcpy prototype.
18577
18578 2007-01-26  Bruno Haible  <bruno@clisp.org>
18579
18580         Small optimization.
18581         * lib/javacomp.c: Include c-strstr.h.
18582          (is_envjavac_gcj): Use c_strstr instead of strstr.
18583         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
18584
18585 2007-01-26  Bruno Haible  <bruno@clisp.org>
18586
18587         * MODULES.html.sh (Unicode string functions): Add the new modules.
18588
18589         * modules/uniconv/u32-strconv-to-locale: New file.
18590         * lib/uniconv/u32-strconv-to-locale.c: New file.
18591
18592         * modules/uniconv/u16-strconv-to-locale: New file.
18593         * lib/uniconv/u16-strconv-to-locale.c: New file.
18594
18595         * modules/uniconv/u8-strconv-to-locale: New file.
18596         * lib/uniconv/u8-strconv-to-locale.c: New file.
18597
18598         * modules/uniconv/u32-strconv-from-locale: New file.
18599         * lib/uniconv/u32-strconv-from-locale.c: New file.
18600
18601         * modules/uniconv/u16-strconv-from-locale: New file.
18602         * lib/uniconv/u16-strconv-from-locale.c: New file.
18603
18604         * modules/uniconv/u8-strconv-from-locale: New file.
18605         * lib/uniconv/u8-strconv-from-locale.c: New file.
18606
18607         * modules/uniconv/u32-strconv-to-enc: New file.
18608         * lib/uniconv/u32-strconv-to-enc.c: New file.
18609         * modules/uniconv/u32-strconv-to-enc-tests: New file.
18610         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
18611
18612         * modules/uniconv/u16-strconv-to-enc: New file.
18613         * lib/uniconv/u16-strconv-to-enc.c: New file.
18614         * lib/uniconv/u-strconv-to-enc.h: New file.
18615         * modules/uniconv/u16-strconv-to-enc-tests: New file.
18616         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
18617
18618         * modules/uniconv/u8-strconv-to-enc: New file.
18619         * lib/uniconv/u8-strconv-to-enc.c: New file.
18620         * modules/uniconv/u8-strconv-to-enc-tests: New file.
18621         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
18622
18623         * modules/uniconv/u32-strconv-from-enc: New file.
18624         * lib/uniconv/u32-strconv-from-enc.c: New file.
18625         * modules/uniconv/u32-strconv-from-enc-tests: New file.
18626         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
18627
18628         * modules/uniconv/u16-strconv-from-enc: New file.
18629         * lib/uniconv/u16-strconv-from-enc.c: New file.
18630         * modules/uniconv/u16-strconv-from-enc-tests: New file.
18631         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
18632
18633         * modules/uniconv/u8-strconv-from-enc: New file.
18634         * lib/uniconv/u8-strconv-from-enc.c: New file.
18635         * lib/uniconv/u-strconv-from-enc.h: New file.
18636         * modules/uniconv/u8-strconv-from-enc-tests: New file.
18637         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
18638
18639         * modules/uniconv/u32-conv-from-enc: New file.
18640         * lib/uniconv/u32-conv-from-enc.c: New file.
18641         * modules/uniconv/u32-conv-from-enc-tests: New file.
18642         * tests/uniconv/test-u32-conv-from-enc.c: New file.
18643
18644         * modules/uniconv/u16-conv-from-enc: New file.
18645         * lib/uniconv/u16-conv-from-enc.c: New file.
18646         * lib/uniconv/u-conv-from-enc.h: New file.
18647         * modules/uniconv/u16-conv-from-enc-tests: New file.
18648         * tests/uniconv/test-u16-conv-from-enc.c: New file.
18649
18650         * modules/uniconv/u8-conv-from-enc: New file.
18651         * lib/uniconv/u8-conv-from-enc.c: New file.
18652         * modules/uniconv/u8-conv-from-enc-tests: New file.
18653         * tests/uniconv/test-u8-conv-from-enc.c: New file.
18654
18655         * modules/uniconv/base: New file.
18656         * lib/uniconv.h: New file.
18657
18658 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
18659
18660         * doc/gnulib-tool.texi (Initial import): Update to match current
18661         behavior with strdup module.
18662         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
18663         * lib/memmem.h: Remove; all uses removed.  This is now done
18664         by <string.h>.
18665         * lib/mempcpy.h: Likewise.
18666         * lib/memrchr.h: Likewise.
18667         * lib/stpcpy.h: Likewise.
18668         * lib/stpncpy.h: Likewise.
18669         * lib/strcase.h: Likewise.
18670         * lib/strchrnul.h: Likewise.
18671         * lib/strdup.h: Likewise.
18672         * lib/strndup.h: Likewise.
18673         * lib/strnlen.h: Likewise.
18674         * lib/strpbrk.h: Likewise.
18675         * lib/strsep.h: Likewise.
18676         * lib/strstr.h: Likewise.
18677         * lib/strtok_r.h: Likewise.
18678         * lib/string_.h: New file.
18679         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
18680         Rely on <string.h> instead.
18681         * lib/canon-host.c: Likewise.
18682         * lib/chdir-long.c: Likewise.
18683         * lib/concatpath.c: Likewise.
18684         * lib/exclude.c: Likewise.
18685         * lib/fchdir.c: Likewise.
18686         * lib/getaddrinfo.c: Likewise.
18687         * lib/getcwd.c: Likewise.
18688         * lib/getsubopt.c: Likewise.
18689         * lib/glob.c: Likewise.
18690         * lib/hard-locale.c: Likewise.
18691         * lib/iconvme.c: Likewise.
18692         * lib/javacomp.c: Likewise.
18693         * lib/mempcpy.c: Likewise.
18694         * lib/memrchr.c: Likewise.
18695         * lib/regex_internal.h: Likewise.
18696         * lib/stpncpy.c: Likewise.
18697         * lib/strcasecmp.c: Likewise.
18698         * lib/strchrnul.c: Likewise.
18699         * lib/strdup.c: Likewise.
18700         * lib/striconv.c: Likewise.
18701         * lib/striconveh.c: Likewise.
18702         * lib/striconveha.c: Likewise.
18703         * lib/strncasecmp.c: Likewise.
18704         * lib/strndup.c: Likewise.
18705         * lib/strnlen.c: Likewise.
18706         * lib/strsep.c: Likewise.
18707         * lib/strstr.c: Likewise.
18708         * lib/strtok_r.c: Likewise.
18709         * lib/userspec.c: Likewise.
18710         * lib/w32spawn.h: Likewise.
18711         * lib/xstrndup.c: Likewise.
18712         * lib/mountlist.c (strstr): Remove decl.
18713         * m4/string_h.m4: New file.
18714         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
18715         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
18716         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
18717         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
18718         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
18719         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
18720         Set REPLACE_STRCASECMP if necessary.
18721         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
18722         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
18723         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
18724         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
18725         HAVE_DECL_STRDUP if necessary.
18726         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
18727         since gl_FUNC_STRNDUP does that now.
18728         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
18729         Check for decl here...
18730         (gl_PREREQ_STRNLEN): ... not here.
18731         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
18732         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
18733         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
18734         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
18735         necessary.
18736         * modules/string: New file.
18737         * modules/memmem (Files): Remove special-purpose include file.
18738         (Depends-on): Add string.
18739         (Include): Include <string.h>, not the removed file.
18740         * modules/mempcpy: Likewise.
18741         * modules/memrchr: Likewise.
18742         * modules/stpcpy: Likewise.
18743         * modules/stpncpy: Likewise.
18744         * modules/strcase: Likewise.
18745         * modules/strchrnul: Likewise.
18746         * modules/strdup: Likewise.
18747         * modules/strndup: Likewise.
18748         * modules/strnlen: Likewise.
18749         * modules/strpbrk: Likewise.
18750         * modules/strsep: Likewise.
18751         * modules/strstr: Likewise.
18752         * modules/strtok_r: Likewise.
18753         * tests/test-dirname.c: Don't include "strdup.h", since
18754         <string.h> now suffices.
18755         * tests/test-memmem.c: Don't include "memmem.h", since
18756         <string.h> now suffices.
18757
18758 2007-01-25  Bruno Haible  <bruno@clisp.org>
18759
18760         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
18761         *resultp is 0.
18762
18763         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
18764         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
18765         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
18766         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
18767
18768         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
18769         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
18770         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
18771         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
18772         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
18773         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
18774
18775 2007-01-24  Bruno Haible  <bruno@clisp.org>
18776
18777         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
18778         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
18779         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
18780         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
18781         gl_FUNC_FTS_CORE.
18782         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
18783         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
18784         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
18785         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
18786         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
18787         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
18788         gl_FUNC_FCHOWNAT.
18789         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
18790         gl_FUNC_STRFTIME.
18791         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
18792         Reported by Ralf Wildenhues.
18793
18794 2007-01-24  Bruno Haible  <bruno@clisp.org>
18795
18796         Drop AC_REQUIRE calls that are redundant with the module dependencies.
18797         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
18798         gl_GETADDRINFO.
18799         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
18800         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
18801         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
18802
18803 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
18804
18805         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
18806         Don't use 'exit'; just return from 'main'.
18807         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
18808
18809         * lib/fnmatch_.h: Readjust white space and comments to match
18810         glibc, to avoid spurious diffs.
18811
18812 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
18813
18814         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
18815         2004-12-01 change by Jakub Jelinek, since this code won't compile
18816         if !LIBC.  Problem reported by Bob Proulx.
18817
18818 2007-01-23  Bruno Haible  <bruno@clisp.org>
18819
18820         * lib/striconveh.c: Include c-strcaseeq.h.
18821         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
18822         * modules/striconveh (Depends-on): Add c-strcaseeq.
18823
18824 2007-01-23  Bruno Haible  <bruno@clisp.org>
18825
18826         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
18827
18828         * modules/c-strcaseeq: New file.
18829         * lib/c-strcaseeq.h: New file.
18830
18831         * modules/streq: New file.
18832         * lib/streq.h: New file.
18833
18834 2007-01-23  Bruno Haible  <bruno@clisp.org>
18835
18836         * modules/striconveha-tests: New file.
18837         * tests/test-striconveha.c: New file.
18838
18839         * lib/striconveha.h: Include <stdbool.h>.
18840         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
18841         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
18842         (mem_iconveha_notranslit): Renamed from mem_iconveha.
18843         (mem_iconveha): New function.
18844         (str_iconveha_notranslit): Renamed from str_iconveha.
18845         (str_iconveha): New function.
18846         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
18847         c-strcase.
18848
18849 2007-01-23  Bruno Haible  <bruno@clisp.org>
18850
18851         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
18852         encodings without forgiving before trying any encoding with handler.
18853         (str_iconveha): Try all encodings without forgiving before trying any
18854         encoding with handler.
18855
18856 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
18857
18858         Import the following changes from libc.
18859
18860         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
18861
18862         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
18863
18864         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
18865
18866         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
18867         normal_bracket label.
18868
18869         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
18870
18871         [BZ #361]
18872         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
18873         to normal_bracket after fetching the next character.
18874
18875 2007-01-22  Bruno Haible  <bruno@clisp.org>
18876
18877         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
18878         argument.
18879         * lib/striconveh.c (iconv_carefully_1): New function.
18880         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
18881         argument.
18882         (str_cd_iconveh): Update.
18883         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
18884         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
18885         * tests/test-striconveh.c (MAGIC): New macro.
18886         (new_offsets): New function.
18887         (main): Test call with and without offsets.
18888
18889 2007-01-22  Bruno Haible  <bruno@clisp.org>
18890
18891         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
18892         * modules/sys_select (Makefile.am): Likewise.
18893         * modules/sys_socket (Makefile.am): Likewise.
18894         * modules/sys_time (Makefile.am): Likewise.
18895
18896 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
18897
18898         * modules/gettimeofday (License): Change from GPL to LGPL, since
18899         gettimeofday is a library function.
18900
18901 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
18902
18903         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
18904
18905 2007-01-21  Bruno Haible  <bruno@clisp.org>
18906
18907         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
18908
18909 2007-01-21  Bruno Haible  <bruno@clisp.org>
18910
18911         * modules/striconveha: New file.
18912         * lib/striconveha.h: New file.
18913         * lib/striconveha.c: New file.
18914         * MODULES.html.sh (Internationalization functions): Add striconveha.
18915         * lib/striconv.c (str_iconv): Optimize the case of an empty input
18916         string.
18917         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
18918
18919 2007-01-21  Bruno Haible  <bruno@clisp.org>
18920
18921         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
18922         * lib/striconveh.c (str_iconveh): Likewise.
18923
18924 2007-01-21  Bruno Haible  <bruno@clisp.org>
18925
18926         * lib/striconveh.h (mem_iconveh): New declaration.
18927         * lib/striconveh.c (mem_iconveh): New function.
18928         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
18929
18930 2007-01-21  Bruno Haible  <bruno@clisp.org>
18931
18932         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
18933
18934         * lib/striconveh.h (mem_cd_iconveh): Change specification.
18935         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
18936         original result buffer.
18937         (str_cd_iconveh): Update.
18938         * tests/test-striconveh.c (main): Update.
18939
18940         * lib/striconv.h (mem_cd_iconv): Change specification.
18941         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
18942         result buffer.
18943         (str_cd_iconv): Update.
18944         * tests/test-striconv.c (main): Update.
18945
18946 2007-01-21  Bruno Haible  <bruno@clisp.org>
18947
18948         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
18949
18950 2007-01-20  Jim Meyering  <jim@meyering.net>
18951
18952         * lib/userspec.c (parse_with_separator): If a user or group string
18953         starts with "+", skip the corresponding name-to-ID look-up, since
18954         such a look-up must fail: user and group names may not include "+".
18955
18956 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
18957
18958         * lib/poll.c: Include sys/time.h and time.h unconditionally,
18959         since we now assume the sys_time module.
18960         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
18961         check for sys/time.h; no longer needed.
18962         * modules/poll (Depends-on): Depend on sys_time.
18963
18964 2007-01-18  Bruno Haible  <bruno@clisp.org>
18965
18966         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
18967         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
18968
18969         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
18970         gettimeofday.
18971
18972         * tests/test-gettimeofday.c: Include <time.h>.
18973         (dummy): Remove variable.
18974
18975         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
18976         gl_HEADER_SYS_TIME_H.
18977         (gl_HEADER_SYS_TIME_H): New macro.
18978
18979         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
18980         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
18981         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
18982         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
18983         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
18984         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
18985         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
18986         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
18987         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
18988         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
18989         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
18990
18991         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
18992         last change; it caused a compilation error when cross-compiling to
18993         Cygwin.
18994
18995 2007-01-18  Jim Meyering  <jim@meyering.net>
18996
18997         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
18998         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
18999         than the race-prone "test -d sys || mkdir sys".
19000         (configure.ac): Use AC_PROG_MKDIR_P.
19001         * modules/sys_select: Likewise.
19002         * modules/sys_socket: Likewise.
19003         * modules/sys_time: Likewise.
19004
19005 2007-01-18  Eric Blake  <ebb9@byu.net>
19006
19007         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
19008         replace gettimeofday.
19009         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
19010         name, to avoid infinite recursion.
19011
19012 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
19013
19014         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
19015         module sys_time.
19016         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
19017         assume timespec.h defines struct timeval.
19018         * lib/settime.c: Likewise.
19019         * lib/utimens.c: Likewise.
19020         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
19021         since we now assume the gettimeofday module.
19022         * lib/tempname.c (__gen_tempname): Likewise.
19023         * lib/gettimeofday.h: Remove.
19024         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
19025         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
19026         Include <time.h>, for 'time()'.
19027         (localtime_buffer_addr): Also use this workaround if
19028         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
19029         to simplify the uses.  All uses changed.
19030         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
19031         that #undef is inside {}, and 'const' follows type name consistently.
19032         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
19033         (gettimeofday): Do not use the maximum possible value for
19034         tv->tv_usec, since that might break usages other than ls.c.
19035         Instead, we'll leave ls.c alone.  This undoes today's patch
19036         by Bruno.  Add a compile-time warning for 1s-clock resolution;
19037         we've never observed the problem but might as well keep the
19038         canary.
19039         * lib/nanosleep.c: Include timespec.h first, for interface check.
19040         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
19041         now assume the sys_time module.
19042         * lib/tempname.c: Likewise.
19043         * lib/timespec.h: Likewise.
19044         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
19045         needed.
19046         * lib/strftime.c: Likewise.
19047         * lib/timespec.h: Likewise.
19048         * lib/posixtm.c: Include posixtm.h first, for interface check.
19049         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
19050         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
19051         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
19052         * lib/sys_time_.h: New file.
19053         * lib/timespec.h (struct timespec): Use long int, not long.
19054         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
19055         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
19056         Remove obsolescent call to AC_HEADER_TIME.
19057         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
19058         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
19059         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
19060         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
19061         Likewise.
19062         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
19063         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
19064         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
19065         into the sys_time module.  Check for gettimeofday just once.
19066         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
19067         for gettimeofday signature to just check the signature.  Merely
19068         compile it, since linking doesn't test signature.  Improve test for
19069         whether gettimeofday.o is actually needed.
19070         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
19071         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
19072         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
19073         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
19074         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
19075         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
19076         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
19077         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
19078         than worrying about sys/time.h.
19079         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
19080         Don't bother worrying about TIME_WITH_SYS_TIME.
19081         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
19082         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
19083         * m4/sys_time_h.m4: New file.
19084         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
19085         Don't include sys/time.h.  Return from main rather than exiting.
19086         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
19087         all uses changed.
19088         * modules/gethrxtime (Depends-on): Add sys_time.
19089         * modules/gettime (Depends-on): Likewise.
19090         * modules/gettimeofday (Depends-on): Likewise.
19091         * modules/nanosleep (Depends-on): Likewise.
19092         * modules/settime (Depends-on): Likewise.
19093         * modules/tempname (Depends-on): Likewise.
19094         * modules/utimens (Depends-on): Likewise.
19095         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
19096         (Include:) Change back to <sys/time.h>.
19097         (Maintainer:) Add self.
19098         * modules/sys_time: New file.
19099         * modules/tempname (Depends-on): Add gettimeofday.
19100         * tests/test-gettimeofday.c: Include <sys/time.h>
19101         rather than gettimeofday.h.
19102
19103 2007-01-17  Bruno Haible  <bruno@clisp.org>
19104
19105         * gnulib-tool (func_get_license): Revert last patch. Instead, let
19106         the license default to GPL.
19107         (func_create_testdir): Don't complain if a module is LGPL and its
19108         tests module depends on GPLed modules.
19109
19110 2007-01-17  Bruno Haible  <bruno@clisp.org>
19111
19112         * lib/gettimeofday.c (gettimeofday): Add code for the case
19113         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
19114         maximum possible value for tv->tv_usec, rather than the minimum one.
19115
19116 2005-10-08  Martin Lambers  <marlam@marlam.de>
19117 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
19118 2007-01-16  Bruno Haible  <bruno@clisp.org>
19119
19120         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
19121         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
19122         gl_FUNC_GETTIMEOFDAY.
19123         (Include): Add gettimeofday.h.
19124         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
19125         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
19126         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
19127         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
19128         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
19129         * lib/gettimeofday.h: New file.
19130         * lib/gettimeofday.c: Include <sys/timeb.h>.
19131         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
19132         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
19133         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
19134         fall back on time().
19135
19136         * tests/test-gettimeofday.c: New file.
19137         * modules/gettimeofday-tests: New file.
19138
19139 2007-01-16  Eric Blake  <ebb9@byu.net>
19140
19141         * modules/fnmatch (Depends-on): Depend on wchar.
19142         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
19143         * m4/fnmatch.m4: Likewise.
19144         * modules/mbchar (Makefile.am): Assume <wchar.h>.
19145         * m4/mbchar.m4: Likewise.
19146         * modules/mbswidth (Depends-on): Depend on wchar.
19147         * lib/mbswidth.c: Assume <wchar.h>.
19148         * m4/mbswidth.m4: Likewise.
19149         * modules/quotearg (Depends-on): Depend on wchar.
19150         * lib/quotearg.c: Assume <wchar.h>.
19151         * m4/quotearg.m4: Likewise.
19152         * modules/regex (Depends-on): Depend on wchar.
19153         * lib/regex_internal.h: Assume <wchar.h>.
19154         * m4/regex.m4: Likewise.
19155         * modules/stdint (Depends-on): Depend on wchar.
19156         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
19157         * m4/stdint.m4: Likewise.
19158         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
19159         * modules/strftime (Depends-on): Depend on wchar.
19160         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
19161         * modules/strtol (Depends-on): Depend on wchar.
19162         * lib/strtol.c: Assume <wchar.h>.
19163         * modules/wcwidth (Depends-on): Depend on wchar.
19164         * lib/wcwidth.h: Assume <wchar.h>.
19165         * m4/wcwidth.m4: Likewise.
19166
19167 2007-01-16  Bruno Haible  <bruno@clisp.org>
19168
19169         * modules/csharpexec-script: New, created from...
19170         * modules/csharpexec: ... this.
19171
19172 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
19173
19174         * modules/javaexec-script: New, created from...
19175         * modules/javaexec: ... this.
19176
19177 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
19178
19179         * modules/poll (Dependencies): Add sys_select.
19180
19181 2007-01-15  Jim Meyering  <jim@meyering.net>
19182
19183         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
19184         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
19185         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
19186         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
19187
19188 2007-01-15  Bruno Haible  <bruno@clisp.org>
19189
19190         * modules/striconveh: New file.
19191         * lib/striconveh.h: New file.
19192         * lib/striconveh.c: New file.
19193         * MODULES.html.sh (Internationalization functions): Add striconveh.
19194
19195         * modules/striconveh-tests: New file.
19196         * tests/test-striconveh.c: New file.
19197
19198 2007-01-15  Bruno Haible  <bruno@clisp.org>
19199
19200         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
19201         not from GNU libiconv or GNU libc.
19202
19203 2007-01-15  Bruno Haible  <bruno@clisp.org>
19204
19205         * doc/gnulib-intro.texi (Copyright): Explain the different license
19206         terms for module descriptions, autoconf macros, tests, documentation.
19207
19208 2007-01-14  Bruno Haible  <bruno@clisp.org>
19209
19210         * modules/striconv-tests: New file.
19211         * tests/test-striconv.c: New file.
19212
19213 2007-01-14  Bruno Haible  <bruno@clisp.org>
19214
19215         * modules/iconv-tests: New file.
19216         * tests/test-iconv.c: New file.
19217
19218 2007-01-14  Bruno Haible  <bruno@clisp.org>
19219
19220         * gnulib-tool (func_get_license): For test modules, use the license of
19221         the main module.
19222
19223 2007-01-14  Bruno Haible  <bruno@clisp.org>
19224
19225         * modules/iconv (Include): Clarify that <iconv.h> can only be included
19226         if iconv is found to exist.
19227
19228 2007-01-14  Bruno Haible  <bruno@clisp.org>
19229
19230         * modules/c-ctype-tests: New file.
19231         * tests/test-c-ctype.c: New file.
19232
19233 2007-01-14  Bruno Haible  <bruno@clisp.org>
19234
19235         * modules/binary-io-tests: New file.
19236         * tests/test-binary-io.sh: New file.
19237         * tests/test-binary-io.c: New file.
19238
19239 2007-01-14  Bruno Haible  <bruno@clisp.org>
19240
19241         * modules/array-oset-tests: New file.
19242         * tests/test-array_oset.c: New file.
19243
19244 2007-01-14  Bruno Haible  <bruno@clisp.org>
19245
19246         * modules/array-list-tests: New file.
19247         * tests/test-array_list.c: New file.
19248
19249 2007-01-14  Bruno Haible  <bruno@clisp.org>
19250
19251         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
19252         and make.
19253         Reported by Simon Josefsson in
19254         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
19255
19256 2007-01-14  Bruno Haible  <bruno@clisp.org>
19257
19258         * modules/allocsa-tests: New file.
19259         * tests/test-allocsa.c: New file.
19260
19261 2007-01-14  Bruno Haible  <bruno@clisp.org>
19262
19263         * modules/fchdir (Depends-on): Add absolute-header.
19264         * modules/unistd (Depends-on): Likewise.
19265
19266 2006-12-30  Bruno Haible  <bruno@clisp.org>
19267
19268         * modules/fchdir: New file.
19269         * modules/unistd (Files): Add lib/unistd_.h.
19270         (Makefile.am): Generate unistd.h from unistd_.h.
19271         * lib/fchdir.c: New file.
19272         * lib/dirent_.h: New file.
19273         * lib/unistd_.h: New file.
19274         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
19275         * m4/fchdir.m4: New file.
19276         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
19277         (gl_HEADER_UNISTD): Invoke it.
19278         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
19279         function.
19280         * lib/backupfile.c (opendir, closedir): Undefine.
19281         * lib/chown.c (open, close): Undefine.
19282         * lib/clean-temp.c (open, close): Undefine.
19283         * lib/copy-file.c (open, close): Undefine.
19284         * lib/execute.c (open, close): Undefine.
19285         * lib/fsusage.c (open, close): Undefine.
19286         * lib/gc-gnulib.c (open, close): Undefine.
19287         * lib/getcwd.c (opendir, closedir): Undefine.
19288         * lib/glob.c (opendir, closedir): Undefine.
19289         * lib/javacomp.c (open, close): Undefine.
19290         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
19291         * lib/openat-proc.c (open, close): Undefine.
19292         * lib/pagealign_alloc.c (open, close): Undefine.
19293         * lib/pipe.c (open, close): Undefine.
19294         * lib/progreloc.c (open, close): Undefine.
19295         * lib/savedir.c (opendir, closedir): Undefine.
19296         * lib/utime.c (open, close): Undefine.
19297         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
19298
19299 2007-01-10  Bruno Haible  <bruno@clisp.org>
19300
19301         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
19302
19303 2007-01-12  Eric Blake  <ebb9@byu.net>
19304
19305         Provide a robust <wchar.h>.  Further simplifications are now
19306         possible in other modules, but not included here.
19307         * modules/wchar: New module.
19308         * m4/wchar.m4: New file.
19309         * lib/wchar_.h: Likewise.
19310         * modules/mbchar (Depends-on): Depend on wchar, as the first use
19311         of the new module.
19312         * MODULES.html.sh (Extended multibyte and wide character utilities):
19313         New section.
19314
19315 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
19316
19317         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
19318         to a reasonable default for memory allocation.
19319         (xreadlink): Don't allocate a huge buffer, to work around a buggy
19320         file system that reports garbage st_size values for symlinks.
19321         Problem reported by Liyang Hu.
19322
19323 2007-01-11  Simon Josefsson  <simon@josefsson.org>
19324
19325         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
19326         Emacs .#* auto-save files).
19327
19328 2007-01-11  Bruno Haible  <bruno@clisp.org>
19329
19330         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
19331         directory.
19332
19333 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
19334
19335         Use @...@ consistently in lib/wctype_.h.
19336         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
19337         on it being set to 1 or 0.
19338         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
19339         go back to AC_SUBSTing it.
19340         * modules/wctype (Makefile.am): Undo previous change.
19341
19342 2007-01-10  Eric Blake  <ebb9@byu.net>
19343
19344         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
19345         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
19346         * modules/wctype (Makefile.am): Likewise.
19347         Reported by Chris McGuire.
19348
19349 2007-01-10  Jim Meyering  <jim@meyering.net>
19350
19351         fts.c: a small readability/maintainability improvement
19352         * lib/fts.c (fts_read): Make this code slightly more readable and
19353         maintainable by hoisting the "sp->fts_cur = p" assignments to
19354         immediately follow the statements that set P.  Derived from
19355         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
19356
19357 2007-01-10  Eric Blake  <ebb9@byu.net>
19358
19359         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
19360         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
19361         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
19362         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
19363         Reported by Chris McGuire.
19364
19365 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19366
19367         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
19368         in sed script.
19369
19370 2007-01-09  Bruno Haible  <bruno@clisp.org>
19371
19372         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
19373         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
19374         variables.
19375         (func_module): Use them.
19376
19377 2007-01-09  Bruno Haible  <bruno@clisp.org>
19378
19379         * modules/unistr/base: New file.
19380         * lib/unistr.h: New file.
19381
19382         * modules/unistr/u8-to-u16: New file.
19383         * lib/unistr/u8-to-u16.c: New file.
19384
19385         * modules/unistr/u8-to-u32: New file.
19386         * lib/unistr/u8-to-u32.c: New file.
19387
19388         * modules/unistr/u16-to-u8: New file.
19389         * lib/unistr/u16-to-u8.c: New file.
19390
19391         * modules/unistr/u16-to-u32: New file.
19392         * lib/unistr/u16-to-u32.c: New file.
19393
19394         * modules/unistr/u32-to-u8: New file.
19395         * lib/unistr/u32-to-u8.c: New file.
19396
19397         * modules/unistr/u32-to-u16: New file.
19398         * lib/unistr/u32-to-u16.c: New file.
19399
19400         * modules/unistr/u8-check: New file.
19401         * modules/unistr/u16-check: New file.
19402         * modules/unistr/u32-check: New file.
19403         * lib/unistr/u8-check.c: New file.
19404         * lib/unistr/u16-check.c: New file.
19405         * lib/unistr/u32-check.c: New file.
19406
19407         * modules/unistr/u8-chr: New file.
19408         * modules/unistr/u16-chr: New file.
19409         * modules/unistr/u32-chr: New file.
19410         * lib/unistr/u8-chr.c: New file.
19411         * lib/unistr/u16-chr.c: New file.
19412         * lib/unistr/u32-chr.c: New file.
19413
19414         * modules/unistr/u8-cmp: New file.
19415         * modules/unistr/u16-cmp: New file.
19416         * modules/unistr/u32-cmp: New file.
19417         * lib/unistr/u8-cmp.c: New file.
19418         * lib/unistr/u16-cmp.c: New file.
19419         * lib/unistr/u32-cmp.c: New file.
19420
19421         * modules/unistr/u8-cpy: New file.
19422         * modules/unistr/u16-cpy: New file.
19423         * modules/unistr/u32-cpy: New file.
19424         * lib/unistr/u8-cpy.c: New file.
19425         * lib/unistr/u16-cpy.c: New file.
19426         * lib/unistr/u32-cpy.c: New file.
19427         * lib/unistr/u-cpy.h: New file.
19428
19429         * modules/unistr/u8-cpy-alloc: New file.
19430         * modules/unistr/u16-cpy-alloc: New file.
19431         * modules/unistr/u32-cpy-alloc: New file.
19432         * lib/unistr/u8-cpy-alloc.c: New file.
19433         * lib/unistr/u16-cpy-alloc.c: New file.
19434         * lib/unistr/u32-cpy-alloc.c: New file.
19435         * lib/unistr/u-cpy-alloc.h: New file.
19436
19437         * modules/unistr/u8-endswith: New file.
19438         * modules/unistr/u16-endswith: New file.
19439         * modules/unistr/u32-endswith: New file.
19440         * lib/unistr/u8-endswith.c: New file.
19441         * lib/unistr/u16-endswith.c: New file.
19442         * lib/unistr/u32-endswith.c: New file.
19443         * lib/unistr/u-endswith.h: New file.
19444
19445         * modules/unistr/u8-mblen: New file.
19446         * modules/unistr/u16-mblen: New file.
19447         * modules/unistr/u32-mblen: New file.
19448         * lib/unistr/u8-mblen.c: New file.
19449         * lib/unistr/u16-mblen.c: New file.
19450         * lib/unistr/u32-mblen.c: New file.
19451
19452         * modules/unistr/u8-mbtouc: New file.
19453         * modules/unistr/u16-mbtouc: New file.
19454         * modules/unistr/u32-mbtouc: New file.
19455         * lib/unistr/u8-mbtouc.c: New file.
19456         * lib/unistr/u16-mbtouc.c: New file.
19457         * lib/unistr/u32-mbtouc.c: New file.
19458
19459         * modules/unistr/u8-mbtouc-safe: New file.
19460         * modules/unistr/u16-mbtouc-safe: New file.
19461         * modules/unistr/u32-mbtouc-safe: New file.
19462         * lib/unistr/u8-mbtouc-safe.c: New file.
19463         * lib/unistr/u16-mbtouc-safe.c: New file.
19464         * lib/unistr/u32-mbtouc-safe.c: New file.
19465
19466         * modules/unistr/u8-move: New file.
19467         * modules/unistr/u16-move: New file.
19468         * modules/unistr/u32-move: New file.
19469         * lib/unistr/u8-move.c: New file.
19470         * lib/unistr/u16-move.c: New file.
19471         * lib/unistr/u32-move.c: New file.
19472         * lib/unistr/u-move.h: New file.
19473
19474         * modules/unistr/u8-next: New file.
19475         * modules/unistr/u16-next: New file.
19476         * modules/unistr/u32-next: New file.
19477         * lib/unistr/u8-next.c: New file.
19478         * lib/unistr/u16-next.c: New file.
19479         * lib/unistr/u32-next.c: New file.
19480
19481         * modules/unistr/u8-prev: New file.
19482         * modules/unistr/u16-prev: New file.
19483         * modules/unistr/u32-prev: New file.
19484         * lib/unistr/u8-prev.c: New file.
19485         * lib/unistr/u16-prev.c: New file.
19486         * lib/unistr/u32-prev.c: New file.
19487
19488         * modules/unistr/u8-set: New file.
19489         * modules/unistr/u16-set: New file.
19490         * modules/unistr/u32-set: New file.
19491         * lib/unistr/u8-set.c: New file.
19492         * lib/unistr/u16-set.c: New file.
19493         * lib/unistr/u32-set.c: New file.
19494         * lib/unistr/u-set.h: New file.
19495
19496         * modules/unistr/u8-startswith: New file.
19497         * modules/unistr/u16-startswith: New file.
19498         * modules/unistr/u32-startswith: New file.
19499         * lib/unistr/u8-startswith.c: New file.
19500         * lib/unistr/u16-startswith.c: New file.
19501         * lib/unistr/u32-startswith.c: New file.
19502         * lib/unistr/u-startswith.h: New file.
19503
19504         * modules/unistr/u8-stpcpy: New file.
19505         * modules/unistr/u16-stpcpy: New file.
19506         * modules/unistr/u32-stpcpy: New file.
19507         * lib/unistr/u8-stpcpy.c: New file.
19508         * lib/unistr/u16-stpcpy.c: New file.
19509         * lib/unistr/u32-stpcpy.c: New file.
19510         * lib/unistr/u-stpcpy.h: New file.
19511
19512         * modules/unistr/u8-stpncpy: New file.
19513         * modules/unistr/u16-stpncpy: New file.
19514         * modules/unistr/u32-stpncpy: New file.
19515         * lib/unistr/u8-stpncpy.c: New file.
19516         * lib/unistr/u16-stpncpy.c: New file.
19517         * lib/unistr/u32-stpncpy.c: New file.
19518         * lib/unistr/u-stpncpy.h: New file.
19519
19520         * modules/unistr/u8-strcat: New file.
19521         * modules/unistr/u16-strcat: New file.
19522         * modules/unistr/u32-strcat: New file.
19523         * lib/unistr/u8-strcat.c: New file.
19524         * lib/unistr/u16-strcat.c: New file.
19525         * lib/unistr/u32-strcat.c: New file.
19526         * lib/unistr/u-strcat.h: New file.
19527
19528         * modules/unistr/u8-strchr: New file.
19529         * modules/unistr/u16-strchr: New file.
19530         * modules/unistr/u32-strchr: New file.
19531         * lib/unistr/u8-strchr.c: New file.
19532         * lib/unistr/u16-strchr.c: New file.
19533         * lib/unistr/u32-strchr.c: New file.
19534
19535         * modules/unistr/u8-strcmp: New file.
19536         * modules/unistr/u16-strcmp: New file.
19537         * modules/unistr/u32-strcmp: New file.
19538         * lib/unistr/u8-strcmp.c: New file.
19539         * lib/unistr/u16-strcmp.c: New file.
19540         * lib/unistr/u32-strcmp.c: New file.
19541
19542         * modules/unistr/u8-strcpy: New file.
19543         * modules/unistr/u16-strcpy: New file.
19544         * modules/unistr/u32-strcpy: New file.
19545         * lib/unistr/u8-strcpy.c: New file.
19546         * lib/unistr/u16-strcpy.c: New file.
19547         * lib/unistr/u32-strcpy.c: New file.
19548         * lib/unistr/u-strcpy.h: New file.
19549
19550         * modules/unistr/u8-strcspn: New file.
19551         * modules/unistr/u16-strcspn: New file.
19552         * modules/unistr/u32-strcspn: New file.
19553         * lib/unistr/u8-strcspn.c: New file.
19554         * lib/unistr/u16-strcspn.c: New file.
19555         * lib/unistr/u32-strcspn.c: New file.
19556         * lib/unistr/u-strcspn.h: New file.
19557
19558         * modules/unistr/u8-strdup: New file.
19559         * modules/unistr/u16-strdup: New file.
19560         * modules/unistr/u32-strdup: New file.
19561         * lib/unistr/u8-strdup.c: New file.
19562         * lib/unistr/u16-strdup.c: New file.
19563         * lib/unistr/u32-strdup.c: New file.
19564         * lib/unistr/u-strdup.h: New file.
19565
19566         * modules/unistr/u8-strlen: New file.
19567         * modules/unistr/u16-strlen: New file.
19568         * modules/unistr/u32-strlen: New file.
19569         * lib/unistr/u8-strlen.c: New file.
19570         * lib/unistr/u16-strlen.c: New file.
19571         * lib/unistr/u32-strlen.c: New file.
19572         * lib/unistr/u-strlen.h: New file.
19573
19574         * modules/unistr/u8-strmblen: New file.
19575         * modules/unistr/u16-strmblen: New file.
19576         * modules/unistr/u32-strmblen: New file.
19577         * lib/unistr/u8-strmblen.c: New file.
19578         * lib/unistr/u16-strmblen.c: New file.
19579         * lib/unistr/u32-strmblen.c: New file.
19580
19581         * modules/unistr/u8-strmbtouc: New file.
19582         * modules/unistr/u16-strmbtouc: New file.
19583         * modules/unistr/u32-strmbtouc: New file.
19584         * lib/unistr/u8-strmbtouc.c: New file.
19585         * lib/unistr/u16-strmbtouc.c: New file.
19586         * lib/unistr/u32-strmbtouc.c: New file.
19587
19588         * modules/unistr/u8-strncat: New file.
19589         * modules/unistr/u16-strncat: New file.
19590         * modules/unistr/u32-strncat: New file.
19591         * lib/unistr/u8-strncat.c: New file.
19592         * lib/unistr/u16-strncat.c: New file.
19593         * lib/unistr/u32-strncat.c: New file.
19594         * lib/unistr/u-strncat.h: New file.
19595
19596         * modules/unistr/u8-strncmp: New file.
19597         * modules/unistr/u16-strncmp: New file.
19598         * modules/unistr/u32-strncmp: New file.
19599         * lib/unistr/u8-strncmp.c: New file.
19600         * lib/unistr/u16-strncmp.c: New file.
19601         * lib/unistr/u32-strncmp.c: New file.
19602
19603         * modules/unistr/u8-strncpy: New file.
19604         * modules/unistr/u16-strncpy: New file.
19605         * modules/unistr/u32-strncpy: New file.
19606         * lib/unistr/u8-strncpy.c: New file.
19607         * lib/unistr/u16-strncpy.c: New file.
19608         * lib/unistr/u32-strncpy.c: New file.
19609         * lib/unistr/u-strncpy.h: New file.
19610
19611         * modules/unistr/u8-strnlen: New file.
19612         * modules/unistr/u16-strnlen: New file.
19613         * modules/unistr/u32-strnlen: New file.
19614         * lib/unistr/u8-strnlen.c: New file.
19615         * lib/unistr/u16-strnlen.c: New file.
19616         * lib/unistr/u32-strnlen.c: New file.
19617         * lib/unistr/u-strnlen.h: New file.
19618
19619         * modules/unistr/u8-strpbrk: New file.
19620         * modules/unistr/u16-strpbrk: New file.
19621         * modules/unistr/u32-strpbrk: New file.
19622         * lib/unistr/u8-strpbrk.c: New file.
19623         * lib/unistr/u16-strpbrk.c: New file.
19624         * lib/unistr/u32-strpbrk.c: New file.
19625         * lib/unistr/u-strpbrk.h: New file.
19626
19627         * modules/unistr/u8-strrchr: New file.
19628         * modules/unistr/u16-strrchr: New file.
19629         * modules/unistr/u32-strrchr: New file.
19630         * lib/unistr/u8-strrchr.c: New file.
19631         * lib/unistr/u16-strrchr.c: New file.
19632         * lib/unistr/u32-strrchr.c: New file.
19633
19634         * modules/unistr/u8-strspn: New file.
19635         * modules/unistr/u16-strspn: New file.
19636         * modules/unistr/u32-strspn: New file.
19637         * lib/unistr/u8-strspn.c: New file.
19638         * lib/unistr/u16-strspn.c: New file.
19639         * lib/unistr/u32-strspn.c: New file.
19640         * lib/unistr/u-strspn.h: New file.
19641
19642         * modules/unistr/u8-strstr: New file.
19643         * modules/unistr/u16-strstr: New file.
19644         * modules/unistr/u32-strstr: New file.
19645         * lib/unistr/u8-strstr.c: New file.
19646         * lib/unistr/u16-strstr.c: New file.
19647         * lib/unistr/u32-strstr.c: New file.
19648         * lib/unistr/u-strstr.h: New file.
19649
19650         * modules/unistr/u8-strtok: New file.
19651         * modules/unistr/u16-strtok: New file.
19652         * modules/unistr/u32-strtok: New file.
19653         * lib/unistr/u8-strtok.c: New file.
19654         * lib/unistr/u16-strtok.c: New file.
19655         * lib/unistr/u32-strtok.c: New file.
19656         * lib/unistr/u-strtok.h: New file.
19657
19658         * modules/unistr/u8-uctomb: New file.
19659         * modules/unistr/u16-uctomb: New file.
19660         * modules/unistr/u32-uctomb: New file.
19661         * lib/unistr/u8-uctomb.c: New file.
19662         * lib/unistr/u16-uctomb.c: New file.
19663         * lib/unistr/u32-uctomb.c: New file.
19664
19665         * MODULES.html.sh (Unicode string functions): Add the new modules.
19666
19667 2007-01-08  Bruno Haible  <bruno@clisp.org>
19668
19669         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
19670         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
19671         subdirectories.
19672
19673 2007-01-08  Karl Berry  <karl@gnu.org>
19674
19675         * doc/error.texi: mention that main() fns must set program_name
19676         when progname is used.
19677
19678 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
19679
19680         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
19681         WCTYPE_H is empty, for the benefit of builds from non-distclean
19682         directories.  Problem reported by Eric Blake in
19683         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
19684
19685 2007-01-08  Bruno Haible  <bruno@clisp.org>
19686
19687         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
19688         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
19689         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
19690         PROVIDE_CANONICALIZE_FILENAME_MODE.
19691         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
19692
19693 2007-01-08  Bruno Haible  <bruno@clisp.org>
19694
19695         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
19696         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
19697         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
19698         * lib/fts.c: Likewise.
19699         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
19700
19701 2006-12-25  Bruno Haible  <bruno@clisp.org>
19702
19703         * modules/utf8-ucs4-safe: New file.
19704         * lib/utf8-ucs4-safe.h: New file.
19705         * lib/unistr/utf8-ucs4-safe.c: New file.
19706
19707         * modules/utf16-ucs4-safe: New file.
19708         * lib/utf16-ucs4-safe.h: New file.
19709         * lib/unistr/utf16-ucs4-safe.c: New file.
19710
19711         * MODULES.html.sh (Unicode string functions): Add the new modules.
19712
19713 2007-01-08  Bruno Haible  <bruno@clisp.org>
19714
19715         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
19716         (Depends-on): Add unitypes.
19717         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
19718         (u8_mbtouc_aux): Move out to separate file.
19719         (u8_mbtouc): Use ucs4_t, uint8_t types.
19720         * lib/unistr/utf8-ucs4.c: New file.
19721
19722         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
19723         (Depends-on): Add unitypes.
19724         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
19725         (u16_mbtouc_aux): Move out to separate file.
19726         (u16_mbtouc): Use ucs4_t, uint16_t types.
19727         * lib/unistr/utf16-ucs4.c: New file.
19728
19729         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
19730         (Depends-on): Add unitypes.
19731         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
19732         (u8_uctomb_aux): Move out to separate file.
19733         (u8_uctomb): Use ucs4_t, uint8_t types.
19734         * lib/unistr/ucs4-utf8.c: New file.
19735
19736         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
19737         (Depends-on): Add unitypes.
19738         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
19739         (u16_uctomb_aux): Move out to separate file.
19740         (u16_uctomb): Use ucs4_t, uint16_t types.
19741         * lib/unistr/ucs4-utf16.c: New file.
19742
19743 2006-12-25  Bruno Haible  <bruno@clisp.org>
19744
19745         * modules/unitypes: New file.
19746         * lib/unitypes.h: New file.
19747         * MODULES.html.sh (func_all_modules): New section "Unicode string
19748         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
19749         this section. Add unitypes.
19750
19751 2007-01-08  Bruno Haible  <bruno@clisp.org>
19752
19753         Avoid variable names that conflict with those from libtool.
19754         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
19755         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
19756         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
19757         library_names_spec to acl_library_names_spec, hardcode_* to
19758         acl_hardcode_*.
19759         Reported by Ralf Wildenhues.
19760
19761 2007-01-08  Bruno Haible  <bruno@clisp.org>
19762
19763         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
19764         definition.
19765         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
19766         definition.
19767         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
19768         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
19769         definition.
19770         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
19771         definition.
19772         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
19773         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
19774         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
19775         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
19776         definition.
19777         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
19778         definition.
19779         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
19780         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
19781         GC_USE_<algorithm>.
19782         * lib/gc-libgcrypt.c: Likewise.
19783         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
19784         * modules/gc-arctwo (configure.ac): Likewise.
19785         * modules/gc-des (configure.ac): Likewise.
19786         * modules/gc-hmac-md5 (configure.ac): Likewise.
19787         * modules/gc-hmac-sha1 (configure.ac): Likewise.
19788         * modules/gc-md2 (configure.ac): Likewise.
19789         * modules/gc-md4 (configure.ac): Likewise.
19790         * modules/gc-md5 (configure.ac): Likewise.
19791         * modules/gc-random (configure.ac): Likewise.
19792         * modules/gc-rijndael (configure.ac): Likewise.
19793         * modules/gc-sha1 (configure.ac): Likewise.
19794
19795 2007-01-08  Bruno Haible  <bruno@clisp.org>
19796
19797         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
19798         macro definition.
19799         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
19800         definition.
19801         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
19802         definition.
19803         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
19804         * modules/fcntl-safer (configure.ac): Likewise.
19805         * modules/fopen-safer (configure.ac): Likewise.
19806         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
19807         GNULIB_FWRITEERROR macro definition.
19808
19809 2007-01-08  Bruno Haible  <bruno@clisp.org>
19810
19811         * m4/gnulib-common.m4: New file.
19812         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
19813         (func_get_filelist): Add m4/gnulib-common.m4.
19814
19815 2007-01-08  Bruno Haible  <bruno@clisp.org>
19816
19817         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
19818         command.
19819
19820 2007-01-08  Jim Meyering  <jim@meyering.net>
19821
19822         Use a more robust test for a "can't happen" condition.
19823         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
19824         narrowed the st_size value.  Presuming the "can't happen" condition
19825         is true, that narrowing could conceivably convert an invalid st_size
19826         value into a valid one.  Instead, use a change based on Matthew
19827         Woehlke's original patch.
19828
19829         Slight readability improvement: use an assert-like macro
19830         in place of literal "abort ()" uses.
19831         * lib/fts.c (fts_assert): Define.
19832         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
19833         Use this macro instead of a bare 'abort'.
19834
19835 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
19836
19837         Don't worry about using IRIX 5.3's wctype.h broken definitions;
19838         simply work around them.
19839         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
19840         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
19841         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
19842         declaring.
19843         Don't bother to define as macros, since the standard doesn't require it.
19844         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
19845         longer worry about IRIX 5.3.
19846         (HAVE_WCTYPE_CTMP_BUG): Remove.
19847
19848 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
19849
19850         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
19851         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
19852         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
19853         Problems reported by Georg Schwarz for IRIX 5.3.
19854
19855         * gnulib-tool (autoconf_minversion): Take the maximum version number
19856         found, not the minimum.  Problem reported by James Youngman.
19857
19858 2007-01-03  Karl Berry  <karl@gnu.org>
19859
19860         * doc/error.texi: new file, explaining interaction with progname.
19861         * doc/gnulib.texi: include it.  Update copyright.
19862
19863 2007-01-03  Simon Josefsson  <simon@josefsson.org>
19864
19865         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
19866         AC_CANONICAL_HOST, to improve autobuild outputs.
19867
19868 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
19869             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
19870
19871         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
19872         sockets, server sockets, and other file descriptors.  Count errors
19873         to compute the return value.  Reorder the code a bit to be easier
19874         to follow.  Don't set event bits that were not requested (except
19875         POLLERR and POLLHUP).
19876
19877 2007-01-01  Bruno Haible  <bruno@clisp.org>
19878
19879         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
19880
19881 2007-01-03  Jim Meyering  <jim@meyering.net>
19882
19883         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
19884
19885 2007-01-02  Bruno Haible  <bruno@clisp.org>
19886
19887         * modules/settime (Include): Require timespec.h.
19888         * modules/nanosleep (Include): Likewise.
19889
19890 2007-01-01  Bruno Haible  <bruno@clisp.org>
19891
19892         * gnulib-tool (func_emit_copyright_notice): Bump year.
19893         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
19894
19895 2007-01-01  Bruno Haible  <bruno@clisp.org>
19896
19897         Improve support for OpenBSD.
19898         * build-aux/config.rpath (libname_spec): Export.
19899         (library_names_spec): New variable. Export.
19900         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
19901         library_names_spec from the config.rpath output. Locate shared library
19902         through the name pattern in library_names_spec.
19903
19904 2007-01-01  Eric Blake  <ebb9@byu.net>
19905
19906         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
19907
19908 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
19909
19910         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
19911         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
19912         assume the C locale, and avoid an "eval" that could cause trouble.
19913         Problem with SORT reported by Bob Proulx.
19914
19915         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
19916         Define.  Trivial patch from Henning Nielsen Lund, originally
19917         sent to bug-grep@gnu.org today.
19918
19919 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
19920
19921         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
19922         struct stat.  Problem reported by Henning Nielsen Lund.
19923         * lib/acl.c: Include acl.h first, to check interface.  Don't
19924         bother to include sys/types.h and sys/stat.h again.
19925
19926 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
19927
19928         Import the following change from libc; problem reported by
19929         Sven Verdoolaege.
19930
19931         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
19932
19933         [BZ #1373]
19934         * lib/argp.h: Remove __NTH for __argp_usage inline function.
19935
19936 2006-12-28  Jim Meyering  <jim@meyering.net>
19937
19938         * build-aux/announce-gen: Do not assume that the package
19939         builds any of tar.gz, tar.bz2, and .xdelta files.
19940         Suggestion from Simon Josefsson.
19941
19942 2006-12-28  Simon Josefsson  <simon@josefsson.org>
19943
19944         * modules/announce-gen: New file.
19945
19946 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
19947
19948         * lib/mbchar.h: Just include <wctype.h>; the wctype module
19949         handles its gotchas now.
19950         * lib/mbswidth.c: Likewise.
19951         * lib/wcwidth.h: Likewise.
19952         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
19953         and iswcntrl; the wctype module does this stuff now.
19954         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
19955         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
19956         * modules/mbchar (Depends-on): Add wctype.
19957         * modules/mbswidth (Depends-on): Likewise.
19958         * modules/wcwidth (Depends-on): Likewise.
19959
19960 2006-12-27  Eric Blake  <ebb9@byu.net>
19961
19962         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
19963         module uses more than what <wctype.h> is required to provide.
19964
19965 2006-12-26  Eric Blake  <ebb9@byu.net>
19966
19967         * gnulib-tool (sed_extract_prog): Avoid space-tab.
19968
19969 2006-12-26  Eric Blake  <ebb9@byu.net>
19970
19971         * modules/absolute-header: New module.
19972         * modules/fcntl (Depends-on): Depend on it.
19973         * modules/inttypes (Depends-on): Likewise.
19974         * modules/stdint (Depends-on): Likewise.
19975         * modules/sys_stat (Depends-on): Likewise.
19976         * modules/wctype (Depends-on): Likewise.
19977         * MODULES.html.sh (Support for building libraries and
19978         executables): Document it.
19979
19980 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
19981
19982         * gnulib-tool (SED): Remove, undoing previous change.
19983         The problem was that it broke coreutils on Solaris, because
19984         "sed --posix" leaked into a makefile.
19985         (sed): New alias, if 'alias' and GNU sed.
19986
19987 2006-12-24  Jim Meyering  <jim@meyering.net>
19988
19989         Work around an fchownat bug in glibc-2.4:
19990         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
19991         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
19992         in spite of the -P option.
19993         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
19994         New macros.
19995         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
19996         * modules/openat (Files): Add lib/fchownat.c.
19997         * lib/openat.c (fchownat): Don't define here.  Move to...
19998         * lib/fchownat.c: ...this new file.
19999
20000 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
20001
20002         Fix bug reported by Bruno Haible in
20003         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
20004         where quotearg.c didn't compile on Mac OS X 10.2 because it
20005         lacks <wchar.h> and wint_t.
20006         * lib/wctype_.h (__wctype_wint_t): New type.
20007         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
20008         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
20009         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
20010         Arg is now of type __wctype_wint_t, not wint_t.
20011         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
20012         substitute HAVE_WINT_T.
20013         * modules/wctype (Files): Add m4/wint_t.m4.
20014         (wctype.h): Substitute HAVE_WINT_T.
20015
20016 2006-12-23  Bruno Haible  <bruno@clisp.org>
20017
20018         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
20019
20020 2006-12-23  Bruno Haible  <bruno@clisp.org>
20021
20022         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
20023         S_ISLNK.
20024         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
20025         mingw.
20026
20027 2006-12-22  Bruno Haible  <bruno@clisp.org>
20028
20029         * lib/copy-file.c: Include acl.h.
20030         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
20031         Close the file descriptors only after being done with copy_acl.
20032         * modules/copy-file (Depends-on): Add acl.
20033
20034 2006-12-22  Bruno Haible  <bruno@clisp.org>
20035
20036         * gnulib-tool (SED): New variable.
20037         Use $SED instead of sed everywhere.
20038
20039 2006-12-22  Bruno Haible  <bruno@clisp.org>
20040
20041         * modules/no-c++: New file.
20042         * m4/no-c++.m4: New file.
20043         * MODULES.html.sh (Support for building libraries and executables):
20044         Add no-c++.
20045
20046 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
20047
20048         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
20049         Include <limits.h>, and use its INT_MAX to rewrite the
20050         j loop so that it does not overflow 'int'.  Problem reported by
20051         Ralf Wildenhues in
20052         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
20053         Play it safe by shifting left by 1 rather than multiplying by 2,
20054         as GCC is less likely to optimize this away when the value
20055         is signed (when it assumes overflow leads to undefined behavior).
20056         Also, don't assume time_t uses two's complement.
20057
20058 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
20059
20060         * MODULES.html.sh: New module wctype.
20061         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
20062         * lib/fnmatch.c: Don't bother to include <wchar.h> before
20063         <wctype.h>, since the new wctype module should fix this.
20064         * lib/quotearg.c: Include <wctype.h> unconditionally, since
20065         the wctype module should arrange for it.
20066         * lib/regex_internal.h: Likewise.
20067         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
20068         since the wctype module should handle this now.
20069         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
20070         * modules/fnmatch (Depends-on): Add wctype.
20071         * modules/quotearg (Depends-on): Likewise.
20072         * modules/regex (Depends-on): Likewise.
20073
20074 2006-12-19  Bruno Haible  <bruno@clisp.org>
20075
20076         * lib/strdup.h [C++]: Wrap definitions in extern "C".
20077         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
20078
20079 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20080
20081         * modules/savewd (Depends-on): Fix dependency on fcntl.
20082
20083 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
20084
20085         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
20086         conforms to C99, rather than relying on the user's environment
20087         setting of STDINT_H.
20088
20089 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
20090         and Eric Blake  <ebb9@byu.net>
20091
20092         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
20093         This is more consistent with the other defines here.
20094         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
20095         Port to z/OS.  Problem reported by Paul Gilmartin.
20096         Change local vars to use gl_ prefix rather than ac_.
20097         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
20098         with other defines.
20099         * modules/double-slash-root: New module.
20100         * modules/dirname (Files): Remove m4/double-slash-root.m4.
20101         (Depends-on): Add double-slash-root.
20102         * MODULES.html.sh (File system functions): Mention new module.
20103
20104 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
20105
20106         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
20107         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
20108         This is for the benefit of gzip, which doesn't do i18n.
20109
20110 2006-12-12  Jim Meyering  <jim@meyering.net>
20111
20112         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
20113         Reported by Andreas Schwab <schwab@suse.de>.
20114
20115 2006-12-12  Bruno Haible  <bruno@clisp.org>
20116
20117         Merge these changes.
20118         2006-09-05  Bruno Haible  <bruno@clisp.org>
20119         * lib/iconvme.c (iconv_string): No need to save and restore errno when
20120         iconv_alloc succeeded.
20121         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
20122         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
20123         test for " && dest " at the end - dest is always != NULL there. Call
20124         iconv with 4xNULL arguments initially, to reset the state. Call iconv
20125         with 2xNULL arguments, also to flush the state storage. Handle the
20126         IRIX iconv behaviour. Realloc the final result, to throw away unused
20127         memory.
20128
20129 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
20130
20131         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
20132         and fchmodat unconditionally, since glibc 2.4 has them.
20133         Problem reported by Arkadiusz Miskiewicz.
20134
20135 2006-12-10  Bruno Haible  <bruno@clisp.org>
20136
20137         * gnulib-tool (func_import): Show the include files only for those
20138         modules that are copied and specified.
20139         Reported by Karl Berry.
20140
20141 2006-12-08  Jim Meyering  <jim@meyering.net>
20142
20143         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
20144         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
20145
20146         * build-aux/announce-gen: Add two new options, both optional:
20147         --bootstrap-tools=TOOL_LIST
20148               a comma-separated list of tools, e.g.,
20149               autoconf,automake,bison,gnulib
20150         --gnulib-snapshot-date=DATE
20151               if gnulib is in the bootstrap tool list,
20152               then report this as the snapshot date.
20153               If not specified, use the current date/time.
20154               If you specify a date here, be sure it's UTC.
20155
20156 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20157
20158         * tests/test-argp-2.sh: Fix test to match actual output.
20159         (func_compare): Fix sed script to be portable.
20160
20161 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
20162
20163         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
20164         workaround for this case.  It is not autoconfigured now; offhand
20165         it's hard to see how to autoconfigure it.
20166
20167 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
20168
20169         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
20170         a directory that is about to be chowned.  Such a directory's
20171         initial file permissions should permit the owner only and this
20172         should not be changed until after the chown, since the group and
20173         other bits would be incorrect if they granted permission before
20174         the chown.
20175
20176         Fix porting problem for iswctype reported by Georg Schwarz in:
20177         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
20178         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
20179         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
20180         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
20181         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
20182
20183 2006-12-03  Jim Meyering  <jim@meyering.net>
20184
20185         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
20186         p->fts_statp may not yet be defined.
20187         (fts_read): Instead, set it in the caller, once p->fts_statp is
20188         sure to be defined, and corresponds to a top-level directory.
20189         This bug made du -x fail.  Here's the coreutils test case:
20190         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
20191         Reported by Mike Frysinger.
20192
20193 2006-12-01  Jim Meyering  <jim@meyering.net>
20194
20195         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
20196         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
20197         Reported by Simon Josefsson.
20198
20199 2006-11-30  Jim Meyering  <jim@meyering.net>
20200
20201         * m4/warning.m4: Use the all-permissive copyright notice
20202         recommended by RMS (rather than LGPL).
20203         * m4/vararrays.m4: Likewise.
20204         * m4/flexmember.m4: Likewise.
20205
20206 2006-11-29  Bruno Haible  <bruno@clisp.org>
20207
20208         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
20209         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
20210         using +=.
20211         Reported by Simon Josefsson <simon@josefsson.org>.
20212
20213 2006-11-28  James Youngman <jay@gnu.org>
20214
20215         * README: Advise users that they might find the bug-gnulib@gnu.org
20216         and autotools-announce@gnu.org mailing lists useful.
20217
20218 2006-11-28  Bruno Haible  <bruno@clisp.org>
20219
20220         * m4/ptrdiff_max.m4: Remove file.
20221
20222 2006-11-21  Bruno Haible  <bruno@clisp.org>
20223
20224         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
20225         _AC_COMPUTE_INT.
20226         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
20227         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
20228         _AC_COMPUTE_INT.
20229         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
20230         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
20231         _AC_COMPUTE_INT.
20232         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
20233
20234 2006-11-28  Jim Meyering  <jim@meyering.net>
20235
20236         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
20237         warning from "gcc -Wshadow" about shadowing the builtin.
20238
20239 2006-11-27  Bruno Haible  <bruno@clisp.org>
20240
20241         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
20242         _AC_COMPUTE_INT.
20243         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
20244
20245 2006-11-27  Bruno Haible  <bruno@clisp.org>
20246             Paul Eggert  <eggert@cs.ucla.edu>
20247
20248         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
20249
20250 2006-11-26  Bruno Haible  <bruno@clisp.org>
20251
20252         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
20253         noinst_LTLIBRARIES.
20254
20255 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
20256             Bruno Haible  <bruno@clisp.org>
20257
20258         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
20259         if compiling with "gcc -ansi".
20260
20261 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
20262
20263         Fix some incompatibilities with gcc -ansi -pedantic.
20264         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
20265         if compiling pedantically with GCC, unless it's C99 or later.
20266         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
20267         it mishandles gcc -ansi -pedantic as well.
20268         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
20269         if gcc -pedantic.
20270         * lib/regexec.c (check_node_accept_bytes): Don't use auto
20271         initializers for struct if -pedantic, unless it's C99 or later.
20272
20273 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
20274
20275         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
20276         Don't close an fd more than once. Identical atimes indicate
20277         success, not failure.
20278
20279 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
20280
20281         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
20282
20283 2006-11-23  Jim Meyering  <jim@meyering.net>
20284
20285         * build-aux/announce-gen: New file.  From coreutils.
20286
20287 2006-11-22  Jim Meyering  <jim@meyering.net>
20288
20289         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
20290         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
20291         (fts_read): Use a temporary to narrow the overused st_size member
20292         before using it in a switch statement.  Reported by Matthew Woehlke.
20293
20294         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
20295         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
20296
20297 2006-11-20  Bruno Haible  <bruno@clisp.org>
20298
20299         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
20300         changequote instead of pairs of brackets.
20301         Reported by Andreas Schwab <schwab@suse.de>.
20302
20303 2006-11-21  Jim Meyering  <jim@meyering.net>
20304
20305         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
20306         so as to remain compatible with older compilers.
20307         Patch from Michael Deutschmann.
20308
20309 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
20310
20311         * MODULES.html.sh (File system functions): Add openat.
20312
20313         * lib/openat.h (rpl_fstatat): New macro, if
20314         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
20315         (fstatat): Define to rpl_fstatat under the same conditions,
20316         unless COMPILING_FSTATAT.
20317         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
20318         seems to have the bug.
20319         * lib/fstatat.c: New file.
20320         * modules/openat (Files): Add it.
20321
20322 2006-11-20  Bruno Haible  <bruno@clisp.org>
20323
20324         * Makefile: New file.
20325
20326 2006-11-20  Jim Meyering  <jim@meyering.net>
20327
20328         The beginnings of syntax-related checks for gnulib.
20329         * lib/Makefile: New file.
20330         * lib/t-idcache: New script.  Ensure that the two halves of
20331         idcache.c stay in sync.
20332
20333         * lib/idcache.c: Adjust comments in user- and group- portions to
20334         be more accurate, and to be consistent with one another.
20335
20336 2006-11-20  Jim Meyering  <jim@meyering.net>
20337
20338         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
20339         continue using the flexible array member (thus, this module performs
20340         half as many malloc calls), with the addition that...
20341         (getgroup, getuser): Consistently record a non-match via an empty
20342         "name" string, and map an empty string match to a NULL return value.
20343         * modules/idcache (Depends-on): Re-add flexmember.
20344
20345         * lib/idcache.c (getuser): Remove all uses of the register keyword.
20346         (getuidbyname, getgroup, getgidbyname): Likewise.
20347
20348         Use cleaner syntax: NULL rather than 0.
20349         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
20350
20351 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
20352
20353         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
20354         It mishandled the case where the group was missing.
20355         Problem reported by Greg Schafer.
20356         * modules/idcache: Likewise.
20357
20358 2006-11-18  Jim Meyering  <jim@meyering.net>
20359
20360         * check-module (%exempt_header): Add exception for some
20361         conditionally-included headers.
20362
20363         * modules/i-ring (Depends-on): Add verify.
20364         (License): Change to LGPL.
20365
20366 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
20367
20368         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
20369         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
20370         and inttostr.h.  Use snprintf rather than uinttostr, so that
20371         LGPLed code doesn't depend on GPLed.
20372
20373 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
20374
20375         * modules/inline (License): Change from GPL to LGPL.
20376
20377 2006-11-17  Jim Meyering  <jim@meyering.net>
20378
20379         * modules/d-type (License): Switch to LGPL.
20380
20381 2006-11-15  Bruno Haible  <bruno@clisp.org>
20382
20383         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
20384
20385 2006-11-15  Eric Blake  <ebb9@byu.net>
20386
20387         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
20388         the module dependency.
20389
20390 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
20391             Bruno Haible  <bruno@clisp.org>
20392
20393         * gnulib-tool (func_create_testdir): Add license consistency check.
20394
20395 2006-11-15  Eric Blake  <ebb9@byu.net>
20396
20397         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
20398         random "(cached)" in configure output.
20399
20400 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20401
20402         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
20403         test for conforming inttypes.h is both announced and cached.
20404
20405         * MODULES.html.sh (seen_modules, seen_files): New variables.
20406         (func_module): Rewrite to use a few less gnulib-tool and sed
20407         invocations.  Avoid a couple of quadratic algorithms for ...
20408         (missed_modules, missed_files): ... these, with ...
20409         (func_append, func_tmpdir): ... these new functions, from
20410         gnulib-tool.  Analogously, install traps for cleanup.
20411
20412         * tests/test-gc.c (main): Remove unused variables.
20413         * tests/test-read-file.c: Include stdlib.h, for 'free'.
20414
20415 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
20416
20417         * modules/inttostr (License): Change to LGPL.
20418
20419 2006-11-14  Eric Blake  <ebb9@byu.net>
20420
20421         * modules/tempname (License): Change to LGPL.
20422
20423 2006-11-14  Eric Blake  <ebb9@byu.net>
20424
20425         * doc/functions.texi (Function Portability): *printf functions on
20426         Cygwin now understand all POSIX size specifiers.
20427
20428 2006-11-14  Bruno Haible  <bruno@clisp.org>
20429
20430         * modules/c-ctype (License): Change to LGPL.
20431
20432 2006-11-12  Bruno Haible  <bruno@clisp.org>
20433
20434         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
20435         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
20436         for GNOME libraries, for which the include files are installed in
20437         subdirectories of $prefix/include.
20438
20439 2006-11-12  Bruno Haible  <bruno@clisp.org>
20440
20441         * m4/lib-link.m4: Require at least autoconf-2.54.
20442         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
20443         name to underscores for the --with option.
20444
20445 2006-11-13  Bruno Haible  <bruno@clisp.org>
20446
20447         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
20448         the tests directory.
20449         Reported by Ralf Wildenhues.
20450
20451 2006-11-13  Bruno Haible  <bruno@clisp.org>
20452
20453         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
20454         (func_emit_initmacro_end): Undo the override here.
20455         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
20456         Works around the famous automake error in coreutils.
20457
20458 2006-11-13  Eric Blake  <ebb9@byu.net>
20459
20460         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
20461         element, not its node.
20462
20463 2006-11-12  Bruno Haible  <bruno@clisp.org>
20464
20465         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
20466         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
20467
20468 2006-11-12  Bruno Haible  <bruno@clisp.org>
20469
20470         * gnulib-tool: New option --local-symlink.
20471         (func_usage): Document it.
20472         (lsymbolic): New variable.
20473         (func_import, func_create_testdir): If --symlink was not specified,
20474         test whether --local-symlink was specified and the file comes from
20475         the local_gnulib_dir.
20476
20477 2006-11-12  Bruno Haible  <bruno@clisp.org>
20478
20479         * gnulib-tool (func_ln): New function.
20480         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
20481
20482 2006-11-12  Bruno Haible  <bruno@clisp.org>
20483
20484         Finish support for source files in subdirectories.
20485         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
20486         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
20487         AUTOMAKE_OPTIONS.
20488         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
20489
20490 2006-11-12  Bruno Haible  <bruno@clisp.org>
20491
20492         * gnulib-tool (func_get_automake_snippet): Synthesize also an
20493         EXTRA_lib_SOURCES augmentation.
20494         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
20495
20496 2006-11-12  Jim Meyering  <jim@meyering.net>
20497
20498         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
20499         file descriptors.  This also averts a failure on systems with
20500         native openat support when a traversed directory lacks "x" access.
20501         * lib/fts_.h: Include "i-ring.h"
20502         (struct FTS) [fts_fd_ring]: New member.
20503         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
20504         (FCHDIR): Add parentheses.
20505         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
20506         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
20507         When descending, rather than simply closing the previous
20508         fts_cwd_fd value, push that file descriptor onto the ring.
20509         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
20510         (fts_open): Initialize the new fd_ring member.
20511         (fts_close): Clear the ring.
20512         (fts_safe_changedir): When possible, use our new fd_ring to skip
20513         the diropen and fstat and dev/ino comparison that would normally
20514         accompany a virtual `chdir ("..")'.
20515
20516         * modules/fts (Depends-on): Add i-ring.
20517         * modules/i-ring: New module.
20518         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
20519         * m4/i-ring.m4: New file.
20520
20521 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20522
20523         * gnulib-tool (func_create_testdir): Fix replacement of
20524         `build-aux' in configure.ac.  Run autotools in gltests
20525         subdirectory.
20526         (func_create_testdir, func_create_megatestdir, test): There is
20527         no need for '--force' in most autotool invocations in a new
20528         tree.  Actually fail the whole test if any of the tools, or the
20529         configure or make stages fail.
20530
20531         Sync from Automake.
20532         * build-aux/gnupload: Revert last change.  Add pointer to upload
20533         instructions of the GNU Maintenance Instructions.
20534         Suggestion by Karl Berry.
20535
20536 2006-11-10  Jim Meyering  <jim@meyering.net>
20537
20538         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
20539
20540 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
20541
20542         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
20543         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
20544         (bind_textdomain_codeset) [! ENABLE_NLS]:
20545         Evaluate all the arguments.  That way, callers get compatible behavior
20546         if the arguments have side effects.  Also, it avoids some GCC
20547         diagnostics in some cases; Joel E. Denny reported problems when Bison
20548         was configured with --enable-gcc-warnigs.
20549
20550 2006-11-10  Jim Meyering  <jim@meyering.net>
20551
20552         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
20553         relevant options in CFLAGS (like -O, -fno-inline) are taken into
20554         account.
20555
20556 2006-11-10  Jim Meyering  <jim@meyering.net>
20557
20558         * modules/inline: New file/module.
20559         * modules/xalloc (Files): Remove m4/inline.m4.
20560         (Depends-on): Add inline, instead.
20561         * modules/oset: Likewise.
20562         * modules/list: Likewise.
20563
20564 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
20565
20566         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
20567         Problem reported by Matthew Woehlke.
20568
20569 2006-11-09  Bruno Haible  <bruno@clisp.org>
20570
20571         * lib/tempname.c (gen_tempname): Remove variant that invokes
20572         __gen_tempname.
20573         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
20574         __gen_tempname.
20575
20576 2006-11-08  Bruno Haible  <bruno@clisp.org>
20577
20578         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
20579         to 'yes' instead of 'cross-compiling'.
20580
20581 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
20582
20583         * lib/quotearg.h (quotearg_free): New decl.
20584         * lib/quotearg.c (quotearg_free): New function.
20585         (slot0, nslots, slotvec0, slotvec):
20586         Now file-scope so that quotearg_free can get at them.
20587
20588 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20589
20590         Sync from Automake.
20591         * build-aux/gnupload: Add missing 'gnu' to example URL.
20592         Report by Karl Berry.
20593
20594 2006-11-08  Bruno Haible  <bruno@clisp.org>
20595
20596         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
20597         Suggested by Paul Eggert.
20598
20599 2006-11-08  Jim Meyering  <jim@meyering.net>
20600
20601         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
20602         It's already included if !_LIBC.
20603         (fts_safe_changedir): Add a comment.
20604
20605 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
20606
20607         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
20608         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
20609         Matthew Woehlke.
20610
20611         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
20612         definitions up, to avoid colliding with change below.
20613         (static_inline) [HAVE_INLINE]: New macro.
20614         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
20615         Provide extern decls when !HAVE_INLINE.  Do not define unless
20616         static_inline is defined, either by us or by xmalloc.c.  Use
20617         static_inline rather than static inline.
20618         (XCALLOC): Optimize sizeof(T) = 1 case.
20619         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
20620
20621 2006-11-07  Bruno Haible  <bruno@clisp.org>
20622
20623         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
20624         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
20625         AC_C_INLINE.
20626         * modules/xalloc (Files): Add m4/inline.m4.
20627
20628 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20629
20630         * README: Fix typo.
20631         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
20632         (Miscellanous Notes): ...from this.
20633
20634 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
20635
20636         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
20637         Mention that offsetof should be used instead of sizeof.
20638         From Bruno Haible.
20639
20640 2006-11-07  Bruno Haible  <bruno@clisp.org>
20641
20642         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
20643
20644 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
20645
20646         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
20647         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
20648         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
20649         (gl_tree_add_before, gl_tree_add_after):
20650         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
20651         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
20652         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
20653         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
20654         (gl_linked_add_after, gl_linked_add_at): Likewise.
20655         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
20656         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
20657         (gl_tree_add_before, gl_tree_add_after): Likewise.
20658         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
20659         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
20660         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
20661
20662 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20663
20664         * lib/gl_oset.h: Use C comment style, not C++ comment style.
20665
20666 2006-11-06  Bruno Haible  <bruno@clisp.org>
20667
20668         * m4/inline.m4: New file.
20669         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
20670         * modules/list (Files): Add m4/inline.m4.
20671         * modules/oset (Files): Likewise.
20672
20673 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
20674
20675         * lib/idcache.c: Include <stddef.h>, for offsetof.
20676         (struct userid.name): Change from char * to a flexible array member.
20677         All uses changed.
20678         * modules/idcache (Depends-on): Add flexmember.
20679
20680         * MODULES.html.sh (Core language properties): New module flexmember.
20681         * modules/flexmember, m4/flexmember.m4: New files.
20682
20683         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
20684         inline functions that are identical with the old xnmalloc_inline,
20685         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
20686         that we can avoid some unnecessary integer multiplications and
20687         divisions in the common case where the element size is known at
20688         compile time.
20689         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
20690         needed.
20691         (xnboundedmalloc): Remove.
20692         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
20693         arguments, for consistency with rest of this header.
20694         (xcharalloc): Rewrite using XNMALLOC.
20695         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
20696         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
20697         versions have been moved to lib/xalloc.h and renamed to be the
20698         non-*_inline versions.
20699         (xmalloc, xrealloc): Implement without reference to the xnmalloc
20700         and xnrealloc functions, since those functions are now inline and
20701         now call us.
20702         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
20703         renaming described above.
20704         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
20705         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
20706         captures the dependency in AC_C_INLINE.
20707
20708         New module canonicalize-lgpl, proposed by Charles Wilson in
20709         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
20710         with a few small changes afterwards.
20711         * MODULES.html.sh (File system functions): New module
20712         canonicalize-lgpl.
20713         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
20714         and canonicalize_file_name.
20715         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
20716         * modules/canonicalize-lgpl: New files.
20717
20718 2006-11-05  Bruno Haible  <bruno@clisp.org>
20719
20720         * gnulib-tool (func_import, func_create_testdir): Create directories
20721         also for files in subdirectories of lib/.
20722
20723 2006-11-05  Bruno Haible  <bruno@clisp.org>
20724
20725         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
20726         ANSI C compliant.
20727
20728 2006-11-03  Bruno Haible  <bruno@clisp.org>
20729
20730         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
20731         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
20732         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
20733         (xnboundedmalloc): New inline function.
20734         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
20735         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
20736         xmalloc.
20737         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
20738         xmalloc.
20739         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
20740         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
20741         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
20742         xmalloc.
20743         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
20744         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
20745         xmalloc.
20746         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
20747         gl_tree_add_after): Use XMALLOC instead of xmalloc.
20748         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
20749         xmalloc.
20750         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
20751         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
20752         gl_tree_add_after): Use XMALLOC instead of xmalloc.
20753         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
20754         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
20755         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
20756         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
20757
20758 2006-11-03  Bruno Haible  <bruno@clisp.org>
20759
20760         * lib/c-ctype.h [C++]: Define functions without name mangling.
20761         * lib/fwriteerror.h [C++]: Likewise.
20762         * lib/gcd.h [C++]: Likewise.
20763         * lib/linebreak.h [C++]: Likewise.
20764
20765 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
20766
20767         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
20768         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
20769         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
20770         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
20771         Check for functions and headers just once.
20772         Check for declaration of canonicalize_file_name.
20773         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
20774
20775 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
20776
20777         * gnulib-tool (func_import): Fix typo in actioncmd.
20778
20779 2006-11-02  Bruno Haible  <bruno@clisp.org>
20780
20781         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
20782         newline sequence in the Makefile.am snippet as a space, like "make"
20783         does.
20784         Reported by Roger Persson <perrog@gmail.com>.
20785
20786 2006-11-01  Bruno Haible  <bruno@clisp.org>
20787
20788         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
20789         already declared in <string.h>.
20790         * lib/strcase.h (strncasecmp): Don't declare it if yes.
20791
20792 2006-11-01  Bruno Haible  <bruno@clisp.org>
20793
20794         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
20795         * lib/strcase.h: Include <string.h>.
20796         (strcasecmp): Define to rpl_strcasecmp here.
20797
20798 2006-11-01  Bruno Haible  <bruno@clisp.org>
20799
20800         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
20801
20802 2006-11-01  Eric Blake  <ebb9@byu.net>
20803
20804         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
20805
20806         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
20807
20808 2006-10-29  Bruno Haible  <bruno@clisp.org>
20809
20810         Make it compile in C++ mode.
20811         * lib/full-write.c (full_rw): Add a cast.
20812
20813 2006-11-01  Bruno Haible  <bruno@clisp.org>
20814
20815         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
20816         be POSIX compliant.
20817         Reported by Roger Persson <perrog@gmail.com>.
20818
20819 2006-11-01  Eric Blake  <ebb9@byu.net>
20820
20821         * lib/getopt_.h: Fix comments.
20822
20823 2006-10-31  Eric Blake  <ebb9@byu.net>
20824
20825         * modules/tmpdir (Depends-on): Add sys_stat.
20826         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
20827         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
20828         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
20829         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
20830         tempname.
20831
20832 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
20833
20834         Avoid some C++ diagnostics reported by Bruno Haible.
20835         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
20836         xmalloc.
20837         (quotearg_alloc): Use xcharalloc rather than xmalloc.
20838         (struct slotvec): Move to top level.
20839         (quotearg_n_options): Rewrite to avoid xmalloc.
20840         * lib/xalloc.h (xcharalloc): New function.
20841         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
20842         [defined __cplusplus]: Add function template that provides result
20843         type propagation.  This part of the change is from Bruno Haible.
20844
20845 2006-10-29  Bruno Haible  <bruno@clisp.org>
20846
20847         Make it compile in C++ mode.
20848         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
20849         * lib/strnlen1.c (strnlen1): Cast memchr result.
20850         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
20851         * lib/clean-temp.c (string_equals, string_hash): Add casts.
20852         (create_temp_dir): Rename local variable 'template'.
20853         (compile_csharp_using_sscli): Add cast.
20854         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
20855         * lib/findprog.c (find_in_path): Likewise.
20856         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
20857         * lib/wait-process.c (register_slave_subprocess): Likewise.
20858
20859 2006-10-22  Bruno Haible  <bruno@clisp.org>
20860
20861         * modules/tsearch: New file.
20862         * lib/tsearch.h: New file.
20863         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
20864         * m4/tsearch.m4: New file.
20865         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
20866
20867 2006-10-29  Eric Blake  <ebb9@byu.net>
20868
20869         * lib/arcfour.c: Assume config.h.
20870         * lib/arctwo.c: Likewise.
20871         * lib/base64.c: Likewise.
20872         * lib/check-version.c: Likewise.
20873         * lib/crc.c: Likewise.
20874         * lib/des.c: Likewise.
20875         * lib/gc-gnulib.c: Likewise.
20876         * lib/gc-libgcrypt.c: Likewise.
20877         * lib/gc-pbkdf2-sha1.c: Likewise.
20878         * lib/getaddrinfo.c: Likewise.
20879         * lib/getdelim.c: Likewise.
20880         * lib/getline.c: Likewise.
20881         * lib/hmac-md5.c: Likewise.
20882         * lib/hmac-sha1.c: Likewise.
20883         * lib/iconvme.c: Likewise.
20884         * lib/md2.c: Likewise.
20885         * lib/md4.c: Likewise.
20886         * lib/memxor.c: Likewise.
20887         * lib/read-file.c: Likewise.
20888         * lib/readline.c: Likewise.
20889         * lib/rijndael-alg-fst.c: Likewise.
20890         * lib/rijndael-api-fst.c: Likewise.
20891         * lib/xgetdomainname.c: Likewise.
20892
20893 2006-10-28  Eric Blake  <ebb9@byu.net>
20894
20895         * lib/xstrndup.c: Assume config.h.
20896
20897 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
20898
20899         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
20900         stat-macros.h is now for our own macros, whereas stat_h is for
20901         macros in the <sys/stat.h> name space.
20902         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
20903         (STAT_MACROS_H): Remove.
20904         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
20905         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
20906         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
20907         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
20908         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
20909         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
20910         Move these macros to ...
20911         * lib/stat_.h: here.  Don't include stat-macros.h.
20912         * lib/canonicalize.c: Don't include stat-macros.h.
20913         * lib/chown.c: Likewise.
20914         * lib/euidaccess.c: Likewise.
20915         * lib/file-type.c: Likewise.
20916         * lib/filemode.c: Likewise.
20917         * lib/glob.c: Likewise.
20918         * lib/isapipe.c: Likewise.
20919         * lib/lchown.c: Likewise.
20920         * lib/lstat.c: Likewise.
20921         * lib/mkdir-p.c: Likewise.
20922         * lib/rmdir.c: Likewise.
20923         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
20924         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
20925         unless mkdir isn't declared, to speed up 'configure'.
20926         Always create sys/stat.h, since it's unlikely any real sys/stat.h
20927         would define all the S_* symbols.
20928         * modules/canonicalize (Depends-on):
20929         Depend on sys_stat, not stat-macros.
20930         * modules/chown: Likewise.
20931         * modules/euidaccess: Likewise.
20932         * modules/filemode: Likewise.
20933         * modules/file-type: Likewise.
20934         * modules/glob: Likewise.
20935         * modules/isapipe: Likewise.
20936         * modules/lchown: Likewise.
20937         * modules/lstat: Likewise.
20938         * modules/mkancesdirs: Likewise.
20939         * modules/rmdir: Likewise.
20940         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
20941         * modules/modechange: Likewise.
20942         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
20943         (configure.ac): Remove gl_STAT_MACROS.
20944         * modules/sys_stat (Depends-on): Remove stat-macros.
20945
20946 2006-10-27  Bruno Haible  <bruno@clisp.org>
20947
20948         * m4/signed.m4: Remove file.
20949         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
20950         invocation.
20951         * modules/vasnprintf (Files): Remove m4/signed.m4.
20952
20953 2006-10-27  Bruno Haible  <bruno@clisp.org>
20954
20955         Update to GNU gettext 0.16.
20956         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
20957         m4/inttypes-h.m4, m4/signed.m4.
20958         * m4/gettext.m4: Update to GNU gettext 0.16.
20959         * m4/intl.m4: New file, from GNU gettext.
20960         * m4/intldir.m4: New file, from GNU gettext.
20961         * config/srclist.txt: Update
20962
20963 2006-10-27  Eric Blake  <ebb9@byu.net>
20964
20965         * MODULES.html.sh: Document tempname.
20966         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
20967         dependencies.
20968         (Files): Move lib/tempname.c...
20969         * modules/tempname: ...to this new module.
20970         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
20971         (gl_PREREQ_TEMPNAME): Move...
20972         * m4/tempname.m4: ...to this new file.
20973         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
20974         * modules/sys_stat (Depends-on): Add stat-macros.
20975         * lib/stat_.h (includes): Pick up stat macros.
20976         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
20977         if stat macros are broken.
20978         * lib/tempname.c (includes): No need to include "stat-macros.h".
20979         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
20980         (direxists, __path_search) [!_LIBC]: Don't compile these in
20981         gnulib; the tmpdir module covers that.
20982         * lib/tempname.h: New file.
20983
20984 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
20985
20986         * COPYING: Explain how gnulib-tool converts licence headers.
20987         Almost all wording by Eric Blake.
20988
20989 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
20990
20991         * lib/mbchar.h (is_basic_table): Make read-only.
20992         * lib/mbchar.c (is_basic_table): Likewise.
20993         Reported by John Darrington.
20994
20995 2006-10-25  Bruno Haible  <bruno@clisp.org>
20996
20997         * lib/progname.h (set_program_name): Undefine before defining.
20998
20999 2006-10-25  Bruno Haible  <bruno@clisp.org>
21000
21001         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
21002         false for non-gcc C++ compilers.
21003         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
21004
21005 2006-10-24  Bruno Haible  <bruno@clisp.org>
21006
21007         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
21008         iconv implementations like Irix iconv.
21009
21010 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
21011
21012         * modules/vararrays: New file.
21013         * m4/vararrays.m4: New file, taken from diffutils.
21014         * MODULES.html.sh: New module vararrays.
21015
21016 2006-10-24  Karl Berry  <karl@gnu.org>
21017
21018         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
21019         Don't call GNU Unix.
21020
21021 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21022
21023         * users.txt: Add Libtool.
21024
21025         Sync from Libtool:
21026
21027         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
21028
21029         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
21030         to gnulib's policy of including config.h unconditionally.
21031
21032 2006-10-24  Bruno Haible  <bruno@clisp.org>
21033
21034         * modules/wcwidth (Files): Add m4/wint_t.m4.
21035         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
21036         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
21037
21038 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
21039
21040         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
21041         to pacify GCC with some -W flags enabled.  Problem reported by
21042         Bruno Haible.
21043
21044 2006-10-24  Jim Meyering  <jim@meyering.net>
21045
21046         * MODULES.html.sh: Remove uinttostr.  It's not a module.
21047         Reported by Karl Berry.
21048
21049 2006-10-23  Bruno Haible  <bruno@clisp.org>
21050
21051         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
21052
21053 2006-10-24  Bruno Haible  <bruno@clisp.org>
21054
21055         * lib/gl_list.h: Use C comment style, not C++ comment style.
21056
21057 2006-10-23  Eric Blake  <ebb9@byu.net>
21058
21059         * lib/getaddrinfo.c (includes): Add missing include.
21060
21061 2006-10-23  Bruno Haible  <bruno@clisp.org>
21062             Paul Eggert  <eggert@cs.ucla.edu>
21063
21064         Ability to rename obstack_free.
21065         * lib/obstack.h (__obstack_free): New macro. Declare instead of
21066         obstack_free.
21067         (obstack_free): Invoke the __obstack_free macro.
21068         * lib/obstack.c (obstack_free): Use __obstack_free macro.
21069
21070 2006-10-23  Bruno Haible  <bruno@clisp.org>
21071             Paul Eggert  <eggert@cs.ucla.edu>
21072
21073         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
21074         __argc, __argv from the declaration. (They are defined as macros on
21075         mingw.)
21076
21077 2006-10-22  Bruno Haible  <bruno@clisp.org>
21078
21079         * doc/gnulib-intro.texi: New file.
21080         * doc/gnulib.texi: Include it.
21081
21082 2006-10-21  Bruno Haible  <bruno@clisp.org>
21083
21084         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
21085         "Introduction", "Miscellanous Notes", "Particular Modules".
21086
21087 2006-10-21  Bruno Haible  <bruno@clisp.org>
21088
21089         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
21090         Change mostlyclean-local rule to avoid sh syntax error from bash
21091         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
21092
21093 2006-10-23  Jim Meyering  <jim@meyering.net>
21094
21095         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
21096         in place of snprintf.
21097
21098         * modules/inttostr (Files): Add lib/uinttostr.c.
21099         * lib/uinttostr.c (inttostr): New file/function.
21100         * lib/inttostr.h (uinttostr): Declare.
21101         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
21102         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
21103         Add uinttostr.
21104         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
21105
21106 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
21107
21108         * lib/canonicalize.c (ELOOP): Define if not already defined.
21109         Problem reported by Bruno Haible in
21110         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
21111
21112 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
21113
21114         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
21115         Problem reported by Perry Smith and Ville Laurikari.
21116
21117         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
21118         uses.
21119
21120 2006-10-19  Bruno Haible  <bruno@clisp.org>
21121
21122         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
21123         for mingw.
21124
21125 2006-10-19  Bruno Haible  <bruno@clisp.org>
21126
21127         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
21128         Needed for mingw.
21129
21130 2006-10-19  Bruno Haible  <bruno@clisp.org>
21131
21132         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
21133
21134 2006-10-19  Bruno Haible  <bruno@clisp.org>
21135
21136         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
21137         it.
21138
21139 2006-10-19  Bruno Haible  <bruno@clisp.org>
21140
21141         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
21142         invocation.
21143
21144 2006-10-19  Bruno Haible  <bruno@clisp.org>
21145
21146         * gnulib-tool (func_create_testdir): Don't include ftruncate and
21147         mountlist by default.
21148
21149 2006-10-16  Bruno Haible  <bruno@clisp.org>
21150
21151         * lib/c-strstr.c: Include c-strstr.h.
21152
21153 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
21154
21155         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
21156         in a slash.
21157
21158 2006-10-18  Bruno Haible  <bruno@clisp.org>
21159
21160         * lib/lock.h [C++]: Wrap definitions in extern "C".
21161
21162 2006-10-18  Bruno Haible  <bruno@clisp.org>
21163
21164         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
21165         gl_LIBOBJS list.
21166
21167 2006-10-18  Bruno Haible  <bruno@clisp.org>
21168
21169         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
21170
21171 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
21172
21173         * lib/xstrtol.h: Include gettext.h.
21174         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
21175         Problem reported by Eric Blake.
21176         * modules/xstrtol (Depends-on): Add gettext-h.
21177
21178 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
21179
21180         * lib/strftime.c (advance): New macro.
21181         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
21182         incomplete type, so you can't add 0 to it.  Problem and patch
21183         reported by Eelco Dolstra for dietlibc.
21184
21185 2006-10-18  Jim Meyering  <jim@meyering.net>
21186
21187         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
21188         type for a local, and rename it: s/up/user_proc/.
21189
21190 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
21191
21192         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
21193         READ_UTMP_USER_PROCESS.
21194         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
21195
21196 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
21197
21198         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
21199         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
21200
21201 2006-10-17  Eric Blake  <ebb9@byu.net>
21202
21203         * lib/sigprocmask.c (sigprocmask): Fix typo.
21204
21205         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
21206
21207         * modules/clean-temp (Makefile.am): Don't add to make output...
21208         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
21209         config.h.
21210
21211 2006-10-17  Bruno Haible  <bruno@clisp.org>
21212
21213         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
21214         differently if DEFAULT_TEXT_DOMAIN is set.
21215
21216 2006-10-16  Bruno Haible  <bruno@clisp.org>
21217
21218         * lib/clean-temp.c: Include fwriteerror.h.
21219
21220 2006-10-16  Bruno Haible  <bruno@clisp.org>
21221
21222         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
21223
21224 2006-10-16  Bruno Haible  <bruno@clisp.org>
21225
21226         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
21227         * lib/sigprocmask.h: Include <sys/types.h>.
21228         (sigset_t): Use the system's definition if present.
21229
21230 2006-10-17  Eric Blake  <ebb9@byu.net>
21231
21232         * lib/xvasprintf.c (includes): Assume config.h.
21233         * lib/xasprintf.c (includes): Likewise.
21234
21235 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
21236
21237         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
21238         at least as wide as intmax_t.
21239
21240 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
21241
21242         (Imported from Automake.)
21243         * build-aux/gnupload: Update to version 1.1 of directive file.
21244
21245 2006-10-16  Eric Blake  <ebb9@byu.net>
21246
21247         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
21248         match Automake 1.10a.
21249
21250 2006-10-14  Bruno Haible  <bruno@clisp.org>
21251
21252         * modules/sigprocmask: New file.
21253         * lib/sigprocmask.h: New file.
21254         * lib/sigprocmask.c: New file.
21255         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
21256         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
21257         request sigprocmask.o.
21258         (gl_PREREQ_SIGPROCMASK): New macro.
21259         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
21260         (Depends-on): Add sigprocmask.
21261         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
21262         gt_SIGNALBLOCKING. Test for 'raise' only once.
21263         * lib/fatal-signal.c: Include sigprocmask.h.
21264         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
21265         unblock_fatal_signals): Define always.
21266         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
21267         sigprocmask.
21268
21269 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
21270
21271         Sync from Automake.
21272         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
21273         which incorrectly sets the mode of an existing destination
21274         directory.  In some cases the unpatched install-sh could do the
21275         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
21276         system.  We hope this is rare in practice, but it's clearly worth
21277         fixing.  Problem reported by Alex Unleashed in
21278         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
21279         Also, don't bother to check for -m bugs unless we're using -m;
21280         suggested by Stepan Kasal.
21281
21282 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21283
21284         Sync from Automake.
21285         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
21286         `-c' flag, so they appear at the same position as in %FASTDEP%
21287         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
21288         which ignores unknown options only after the first non-option.
21289         Bug report against M4 by Nelson H. F. Beebe.
21290
21291 2006-10-13  Jim Meyering  <jim@meyering.net>
21292
21293         Fix a bug in yesterday's change.
21294         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
21295         p->fts_statp->st_dev would be used uninitialized.
21296         Ensures that we always call fts_stat on the very first entry.
21297         Miklos Szeredi reported that find -xdev stopped working.
21298
21299 2006-10-12  Bruno Haible  <bruno@clisp.org>
21300
21301         * gnulib-tool (func_get_automake_snippet): Append an automatically
21302         computed EXTRA_DIST augmentation.
21303         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
21304         * modules/alloca-opt (Makefile.am): Likewise.
21305         * modules/allocsa (Makefile.am): Likewise.
21306         * modules/arcfour (Makefile.am): Likewise.
21307         * modules/arctwo (Makefile.am): Likewise.
21308         * modules/argmatch (Makefile.am): Likewise.
21309         * modules/argz (Makefile.am): Likewise.
21310         * modules/atexit (Makefile.am): Likewise.
21311         * modules/backupfile (Makefile.am): Likewise.
21312         * modules/byteswap (Makefile.am): Likewise.
21313         * modules/c-strtod (Makefile.am): Likewise.
21314         * modules/c-strtold (Makefile.am): Likewise.
21315         * modules/calloc (Makefile.am): Likewise.
21316         * modules/canon-host (Makefile.am): Likewise.
21317         * modules/canonicalize (Makefile.am): Likewise.
21318         * modules/chdir-long (Makefile.am): Likewise.
21319         * modules/chdir-safer (Makefile.am): Likewise.
21320         * modules/check-version (Makefile.am): Likewise.
21321         * modules/chown (Makefile.am): Likewise.
21322         * modules/cloexec (Makefile.am): Likewise.
21323         * modules/close-stream (Makefile.am): Likewise.
21324         * modules/closeout (Makefile.am): Likewise.
21325         * modules/crc (Makefile.am): Likewise.
21326         * modules/csharpexec (Makefile.am): Likewise.
21327         * modules/cycle-check (Makefile.am): Likewise.
21328         * modules/des (Makefile.am): Likewise.
21329         * modules/dev-ino (Makefile.am): Likewise.
21330         * modules/dirfd (Makefile.am): Likewise.
21331         * modules/dirname (Makefile.am): Likewise.
21332         * modules/dup2 (Makefile.am): Likewise.
21333         * modules/eealloc (Makefile.am): Likewise.
21334         * modules/error (Makefile.am): Likewise.
21335         * modules/euidaccess (Makefile.am): Likewise.
21336         * modules/exclude (Makefile.am): Likewise.
21337         * modules/exitfail (Makefile.am): Likewise.
21338         * modules/fcntl-safer (Makefile.am): Likewise.
21339         * modules/fcntl (Makefile.am): Likewise.
21340         * modules/file-type (Makefile.am): Likewise.
21341         * modules/fileblocks (Makefile.am): Likewise.
21342         * modules/filemode (Makefile.am): Likewise.
21343         * modules/filenamecat (Makefile.am): Likewise.
21344         * modules/fnmatch (Makefile.am): Likewise.
21345         * modules/fopen-safer (Makefile.am): Likewise.
21346         * modules/fpending (Makefile.am): Likewise.
21347         * modules/fprintftime (Makefile.am): Likewise.
21348         * modules/free (Makefile.am): Likewise.
21349         * modules/fsusage (Makefile.am): Likewise.
21350         * modules/ftruncate (Makefile.am): Likewise.
21351         * modules/fts (Makefile.am): Likewise.
21352         * modules/gc-arcfour (Makefile.am): Likewise.
21353         * modules/gc-des (Makefile.am): Likewise.
21354         * modules/gc-hmac-md5 (Makefile.am): Likewise.
21355         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
21356         * modules/gc-md4 (Makefile.am): Likewise.
21357         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
21358         * modules/gc-sha1 (Makefile.am): Likewise.
21359         * modules/gc (Makefile.am): Likewise.
21360         * modules/getaddrinfo (Makefile.am): Likewise.
21361         * modules/getcwd (Makefile.am): Likewise.
21362         * modules/getdelim (Makefile.am): Likewise.
21363         * modules/getdomainname (Makefile.am): Likewise.
21364         * modules/getgroups (Makefile.am): Likewise.
21365         * modules/gethostname (Makefile.am): Likewise.
21366         * modules/gethrxtime (Makefile.am): Likewise.
21367         * modules/getline (Makefile.am): Likewise.
21368         * modules/getloadavg (Makefile.am): Likewise.
21369         * modules/getlogin_r (Makefile.am): Likewise.
21370         * modules/getndelim2 (Makefile.am): Likewise.
21371         * modules/getopt (Makefile.am): Likewise.
21372         * modules/getpagesize (Makefile.am): Likewise.
21373         * modules/getpass-gnu (Makefile.am): Likewise.
21374         * modules/getpass (Makefile.am): Likewise.
21375         * modules/getsubopt (Makefile.am): Likewise.
21376         * modules/gettime (Makefile.am): Likewise.
21377         * modules/gettimeofday (Makefile.am): Likewise.
21378         * modules/getugroups (Makefile.am): Likewise.
21379         * modules/getusershell (Makefile.am): Likewise.
21380         * modules/glob (Makefile.am): Likewise.
21381         * modules/group-member (Makefile.am): Likewise.
21382         * modules/hard-locale (Makefile.am): Likewise.
21383         * modules/hash (Makefile.am): Likewise.
21384         * modules/hmac-md5 (Makefile.am): Likewise.
21385         * modules/hmac-sha1 (Makefile.am): Likewise.
21386         * modules/human (Makefile.am): Likewise.
21387         * modules/idcache (Makefile.am): Likewise.
21388         * modules/imaxabs (Makefile.am): Likewise.
21389         * modules/imaxdiv (Makefile.am): Likewise.
21390         * modules/inet_ntop (Makefile.am): Likewise.
21391         * modules/inet_pton (Makefile.am): Likewise.
21392         * modules/intprops (Makefile.am): Likewise.
21393         * modules/inttostr (Makefile.am): Likewise.
21394         * modules/inttypes (Makefile.am): Likewise.
21395         * modules/isapipe (Makefile.am): Likewise.
21396         * modules/javaversion (Makefile.am): Likewise.
21397         * modules/lchmod (Makefile.am): Likewise.
21398         * modules/lchown (Makefile.am): Likewise.
21399         * modules/localcharset (Makefile.am): Likewise.
21400         * modules/long-options (Makefile.am): Likewise.
21401         * modules/lstat (Makefile.am): Likewise.
21402         * modules/malloc (Makefile.am): Likewise.
21403         * modules/mathl (Makefile.am): Likewise.
21404         * modules/mbchar (Makefile.am): Likewise.
21405         * modules/md2 (Makefile.am): Likewise.
21406         * modules/md4 (Makefile.am): Likewise.
21407         * modules/md5 (Makefile.am): Likewise.
21408         * modules/memcasecmp (Makefile.am): Likewise.
21409         * modules/memchr (Makefile.am): Likewise.
21410         * modules/memcmp (Makefile.am): Likewise.
21411         * modules/memcoll (Makefile.am): Likewise.
21412         * modules/memcpy (Makefile.am): Likewise.
21413         * modules/memmem (Makefile.am): Likewise.
21414         * modules/memmove (Makefile.am): Likewise.
21415         * modules/mempcpy (Makefile.am): Likewise.
21416         * modules/memrchr (Makefile.am): Likewise.
21417         * modules/memset (Makefile.am): Likewise.
21418         * modules/memxor (Makefile.am): Likewise.
21419         * modules/mkancesdirs (Makefile.am): Likewise.
21420         * modules/mkdir-p (Makefile.am): Likewise.
21421         * modules/mkdir (Makefile.am): Likewise.
21422         * modules/mkdtemp (Makefile.am): Likewise.
21423         * modules/mkstemp (Makefile.am): Likewise.
21424         * modules/mktime (Makefile.am): Likewise.
21425         * modules/modechange (Makefile.am): Likewise.
21426         * modules/mountlist (Makefile.am): Likewise.
21427         * modules/nanosleep (Makefile.am): Likewise.
21428         * modules/obstack (Makefile.am): Likewise.
21429         * modules/openat (Makefile.am): Likewise.
21430         * modules/pagealign_alloc (Makefile.am): Likewise.
21431         * modules/pathmax (Makefile.am): Likewise.
21432         * modules/physmem (Makefile.am): Likewise.
21433         * modules/poll (Makefile.am): Likewise.
21434         * modules/posixtm (Makefile.am): Likewise.
21435         * modules/posixver (Makefile.am): Likewise.
21436         * modules/putenv (Makefile.am): Likewise.
21437         * modules/quote (Makefile.am): Likewise.
21438         * modules/quotearg (Makefile.am): Likewise.
21439         * modules/raise (Makefile.am): Likewise.
21440         * modules/read-file (Makefile.am): Likewise.
21441         * modules/readline (Makefile.am): Likewise.
21442         * modules/readlink (Makefile.am): Likewise.
21443         * modules/readtokens (Makefile.am): Likewise.
21444         * modules/readutmp (Makefile.am): Likewise.
21445         * modules/realloc (Makefile.am): Likewise.
21446         * modules/regex (Makefile.am): Likewise.
21447         * modules/rename-dest-slash (Makefile.am): Likewise.
21448         * modules/rename (Makefile.am): Likewise.
21449         * modules/rijndael (Makefile.am): Likewise.
21450         * modules/rmdir (Makefile.am): Likewise.
21451         * modules/rpmatch (Makefile.am): Likewise.
21452         * modules/safe-read (Makefile.am): Likewise.
21453         * modules/safe-write (Makefile.am): Likewise.
21454         * modules/same-inode (Makefile.am): Likewise.
21455         * modules/same (Makefile.am): Likewise.
21456         * modules/save-cwd (Makefile.am): Likewise.
21457         * modules/savedir (Makefile.am): Likewise.
21458         * modules/setenv (Makefile.am): Likewise.
21459         * modules/settime (Makefile.am): Likewise.
21460         * modules/sha1 (Makefile.am): Likewise.
21461         * modules/sig2str (Makefile.am): Likewise.
21462         * modules/snprintf (Makefile.am): Likewise.
21463         * modules/stat-macros (Makefile.am): Likewise.
21464         * modules/stat-time (Makefile.am): Likewise.
21465         * modules/stdbool (Makefile.am): Likewise.
21466         * modules/stdint (Makefile.am): Likewise.
21467         * modules/stdlib-safer (Makefile.am): Likewise.
21468         * modules/stpcpy (Makefile.am): Likewise.
21469         * modules/stpncpy (Makefile.am): Likewise.
21470         * modules/strcase (Makefile.am): Likewise.
21471         * modules/strcasestr (Makefile.am): Likewise.
21472         * modules/strchrnul (Makefile.am): Likewise.
21473         * modules/strcspn (Makefile.am): Likewise.
21474         * modules/strdup (Makefile.am): Likewise.
21475         * modules/strerror (Makefile.am): Likewise.
21476         * modules/strftime (Makefile.am): Likewise.
21477         * modules/strndup (Makefile.am): Likewise.
21478         * modules/strnlen (Makefile.am): Likewise.
21479         * modules/strpbrk (Makefile.am): Likewise.
21480         * modules/strsep (Makefile.am): Likewise.
21481         * modules/strstr (Makefile.am): Likewise.
21482         * modules/strtod (Makefile.am): Likewise.
21483         * modules/strtoimax (Makefile.am): Likewise.
21484         * modules/strtok_r (Makefile.am): Likewise.
21485         * modules/strtol (Makefile.am): Likewise.
21486         * modules/strtoll (Makefile.am): Likewise.
21487         * modules/strtoul (Makefile.am): Likewise.
21488         * modules/strtoull (Makefile.am): Likewise.
21489         * modules/strtoumax (Makefile.am): Likewise.
21490         * modules/strverscmp (Makefile.am): Likewise.
21491         * modules/sys_socket (Makefile.am): Likewise.
21492         * modules/sys_stat (Makefile.am): Likewise.
21493         * modules/sysexits (Makefile.am): Likewise.
21494         * modules/time_r (Makefile.am): Likewise.
21495         * modules/timegm (Makefile.am): Likewise.
21496         * modules/timespec (Makefile.am): Likewise.
21497         * modules/tmpfile-safer (Makefile.am): Likewise.
21498         * modules/trim (Makefile.am): Likewise.
21499         * modules/unistd-safer (Makefile.am): Likewise.
21500         * modules/unlinkdir (Makefile.am): Likewise.
21501         * modules/unlocked-io (Makefile.am): Likewise.
21502         * modules/userspec (Makefile.am): Likewise.
21503         * modules/utime (Makefile.am): Likewise.
21504         * modules/utimecmp (Makefile.am): Likewise.
21505         * modules/utimens (Makefile.am): Likewise.
21506         * modules/vasnprintf (Makefile.am): Likewise.
21507         * modules/vasprintf (Makefile.am): Likewise.
21508         * modules/vsnprintf (Makefile.am): Likewise.
21509         * modules/xalloc (Makefile.am): Likewise.
21510         * modules/xgetcwd (Makefile.am): Likewise.
21511         * modules/xnanosleep (Makefile.am): Likewise.
21512         * modules/xreadlink (Makefile.am): Likewise.
21513         * modules/xstrtod (Makefile.am): Likewise.
21514         * modules/xstrtol (Makefile.am): Likewise.
21515         * modules/xstrtold (Makefile.am): Likewise.
21516         * modules/yesno (Makefile.am): Likewise.
21517         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
21518
21519 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
21520
21521         * modules/error (Makefile.am): Distribute files through
21522         EXTRA_DIST, not lib_SOURCES.
21523
21524 2006-10-12  Eric Blake  <ebb9@byu.net>
21525
21526         * modules/error (Makefile.am): Distribute files in /lib.
21527         * modules/obstack (Makefile.am): Likewise.
21528
21529 2006-10-12  Bruno Haible  <bruno@clisp.org>
21530
21531         * modules/acl (Makefile.am): Distribute all files in lib/ through
21532         EXTRA_DIST.
21533         * modules/arcfour (Makefile.am): Likewise.
21534         * modules/arctwo (Makefile.am): Likewise.
21535         * modules/argmatch (Makefile.am): Likewise.
21536         * modules/argz (Makefile.am): Likewise.
21537         * modules/atexit (Makefile.am): Likewise.
21538         * modules/backupfile (Makefile.am): Likewise.
21539         * modules/c-strtod (Makefile.am): Likewise.
21540         * modules/c-strtold (Makefile.am): Likewise.
21541         * modules/calloc (Makefile.am): Likewise.
21542         * modules/canon-host (Makefile.am): Likewise.
21543         * modules/canonicalize (Makefile.am): Likewise.
21544         * modules/chdir-long (Makefile.am): Likewise.
21545         * modules/chdir-safer (Makefile.am): Likewise.
21546         * modules/check-version (Makefile.am): Likewise.
21547         * modules/chown (Makefile.am): Likewise.
21548         * modules/cloexec (Makefile.am): Likewise.
21549         * modules/close-stream (Makefile.am): Likewise.
21550         * modules/closeout (Makefile.am): Likewise.
21551         * modules/crc (Makefile.am): Likewise.
21552         * modules/cycle-check (Makefile.am): Likewise.
21553         * modules/des (Makefile.am): Likewise.
21554         * modules/dirfd (Makefile.am): Likewise.
21555         * modules/dirname (Makefile.am): Likewise.
21556         * modules/dup2 (Makefile.am): Likewise.
21557         * modules/euidaccess (Makefile.am): Likewise.
21558         * modules/exclude (Makefile.am): Likewise.
21559         * modules/exitfail (Makefile.am): Likewise.
21560         * modules/fcntl-safer (Makefile.am): Likewise.
21561         * modules/file-type (Makefile.am): Likewise.
21562         * modules/fileblocks (Makefile.am): Likewise.
21563         * modules/filemode (Makefile.am): Likewise.
21564         * modules/filenamecat (Makefile.am): Likewise.
21565         * modules/fnmatch (Makefile.am): Likewise.
21566         * modules/fopen-safer (Makefile.am): Likewise.
21567         * modules/fpending (Makefile.am): Likewise.
21568         * modules/fprintftime (Makefile.am): Likewise.
21569         * modules/free (Makefile.am): Likewise.
21570         * modules/fsusage (Makefile.am): Likewise.
21571         * modules/ftruncate (Makefile.am): Likewise.
21572         * modules/fts (Makefile.am): Likewise.
21573         * modules/gc (Makefile.am): Likewise.
21574         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
21575         * modules/getaddrinfo (Makefile.am): Likewise.
21576         * modules/getcwd (Makefile.am): Likewise.
21577         * modules/getdelim (Makefile.am): Likewise.
21578         * modules/getdomainname (Makefile.am): Likewise.
21579         * modules/getgroups (Makefile.am): Likewise.
21580         * modules/gethostname (Makefile.am): Likewise.
21581         * modules/gethrxtime (Makefile.am): Likewise.
21582         * modules/getline (Makefile.am): Likewise.
21583         * modules/getloadavg (Makefile.am): Likewise.
21584         * modules/getlogin_r (Makefile.am): Likewise.
21585         * modules/getopt (Makefile.am): Likewise.
21586         * modules/getpass (Makefile.am): Likewise.
21587         * modules/getpass-gnu (Makefile.am): Likewise.
21588         * modules/getsubopt (Makefile.am): Likewise.
21589         * modules/gettime (Makefile.am): Likewise.
21590         * modules/gettimeofday (Makefile.am): Likewise.
21591         * modules/getugroups (Makefile.am): Likewise.
21592         * modules/getusershell (Makefile.am): Likewise.
21593         * modules/glob (Makefile.am): Likewise.
21594         * modules/group-member (Makefile.am): Likewise.
21595         * modules/hard-locale (Makefile.am): Likewise.
21596         * modules/hash (Makefile.am): Likewise.
21597         * modules/hmac-md5 (Makefile.am): Likewise.
21598         * modules/hmac-sha1 (Makefile.am): Likewise.
21599         * modules/human (Makefile.am): Likewise.
21600         * modules/idcache (Makefile.am): Likewise.
21601         * modules/imaxabs (Makefile.am): Likewise.
21602         * modules/imaxdiv (Makefile.am): Likewise.
21603         * modules/inet_ntop (Makefile.am): Likewise.
21604         * modules/inet_pton (Makefile.am): Likewise.
21605         * modules/inttostr (Makefile.am): Likewise.
21606         * modules/isapipe (Makefile.am): Likewise.
21607         * modules/lchown (Makefile.am): Likewise.
21608         * modules/long-options (Makefile.am): Likewise.
21609         * modules/lstat (Makefile.am): Likewise.
21610         * modules/malloc (Makefile.am): Likewise.
21611         * modules/mathl (Makefile.am): Likewise.
21612         * modules/mbchar (Makefile.am): Likewise.
21613         * modules/md2 (Makefile.am): Likewise.
21614         * modules/md4 (Makefile.am): Likewise.
21615         * modules/md5 (Makefile.am): Likewise.
21616         * modules/memcasecmp (Makefile.am): Likewise.
21617         * modules/memchr (Makefile.am): Likewise.
21618         * modules/memcmp (Makefile.am): Likewise.
21619         * modules/memcoll (Makefile.am): Likewise.
21620         * modules/memcpy (Makefile.am): Likewise.
21621         * modules/memmem (Makefile.am): Likewise.
21622         * modules/memmove (Makefile.am): Likewise.
21623         * modules/mempcpy (Makefile.am): Likewise.
21624         * modules/memrchr (Makefile.am): Likewise.
21625         * modules/memset (Makefile.am): Likewise.
21626         * modules/memxor (Makefile.am): Likewise.
21627         * modules/mkancesdirs (Makefile.am): Likewise.
21628         * modules/mkdir (Makefile.am): Likewise.
21629         * modules/mkdir-p (Makefile.am): Likewise.
21630         * modules/mkdtemp (Makefile.am): Likewise.
21631         * modules/mkstemp (Makefile.am): Likewise.
21632         * modules/mktime (Makefile.am): Likewise.
21633         * modules/modechange (Makefile.am): Likewise.
21634         * modules/mountlist (Makefile.am): Likewise.
21635         * modules/nanosleep (Makefile.am): Likewise.
21636         * modules/openat (Makefile.am): Likewise.
21637         * modules/pagealign_alloc (Makefile.am): Likewise.
21638         * modules/physmem (Makefile.am): Likewise.
21639         * modules/poll (Makefile.am): Likewise.
21640         * modules/posixtm (Makefile.am): Likewise.
21641         * modules/posixver (Makefile.am): Likewise.
21642         * modules/putenv (Makefile.am): Likewise.
21643         * modules/quote (Makefile.am): Likewise.
21644         * modules/quotearg (Makefile.am): Likewise.
21645         * modules/raise (Makefile.am): Likewise.
21646         * modules/read-file (Makefile.am): Likewise.
21647         * modules/readline (Makefile.am): Likewise.
21648         * modules/readlink (Makefile.am): Likewise.
21649         * modules/readtokens (Makefile.am): Likewise.
21650         * modules/readutmp (Makefile.am): Likewise.
21651         * modules/realloc (Makefile.am): Likewise.
21652         * modules/regex (Makefile.am): Likewise.
21653         * modules/rename (Makefile.am): Likewise.
21654         * modules/rename-dest-slash (Makefile.am): Likewise.
21655         * modules/rijndael (Makefile.am): Likewise.
21656         * modules/rmdir (Makefile.am): Likewise.
21657         * modules/rpmatch (Makefile.am): Likewise.
21658         * modules/safe-read (Makefile.am): Likewise.
21659         * modules/safe-write (Makefile.am): Likewise.
21660         * modules/same (Makefile.am): Likewise.
21661         * modules/save-cwd (Makefile.am): Likewise.
21662         * modules/savedir (Makefile.am): Likewise.
21663         * modules/setenv (Makefile.am): Likewise.
21664         * modules/settime (Makefile.am): Likewise.
21665         * modules/sha1 (Makefile.am): Likewise.
21666         * modules/sig2str (Makefile.am): Likewise.
21667         * modules/snprintf (Makefile.am): Likewise.
21668         * modules/stdlib-safer (Makefile.am): Likewise.
21669         * modules/stpcpy (Makefile.am): Likewise.
21670         * modules/stpncpy (Makefile.am): Likewise.
21671         * modules/strcase (Makefile.am): Likewise.
21672         * modules/strcasestr (Makefile.am): Likewise.
21673         * modules/strchrnul (Makefile.am): Likewise.
21674         * modules/strcspn (Makefile.am): Likewise.
21675         * modules/strdup (Makefile.am): Likewise.
21676         * modules/strerror (Makefile.am): Likewise.
21677         * modules/strftime (Makefile.am): Likewise.
21678         * modules/strndup (Makefile.am): Likewise.
21679         * modules/strnlen (Makefile.am): Likewise.
21680         * modules/strpbrk (Makefile.am): Likewise.
21681         * modules/strsep (Makefile.am): Likewise.
21682         * modules/strstr (Makefile.am): Likewise.
21683         * modules/strtod (Makefile.am): Likewise.
21684         * modules/strtoimax (Makefile.am): Likewise.
21685         * modules/strtok_r (Makefile.am): Likewise.
21686         * modules/strtol (Makefile.am): Likewise.
21687         * modules/strtoll (Makefile.am): Likewise.
21688         * modules/strtoul (Makefile.am): Likewise.
21689         * modules/strtoull (Makefile.am): Likewise.
21690         * modules/strtoumax (Makefile.am): Likewise.
21691         * modules/strverscmp (Makefile.am): Likewise.
21692         * modules/time_r (Makefile.am): Likewise.
21693         * modules/timegm (Makefile.am): Likewise.
21694         * modules/tmpfile-safer (Makefile.am): Likewise.
21695         * modules/unistd-safer (Makefile.am): Likewise.
21696         * modules/unlinkdir (Makefile.am): Likewise.
21697         * modules/userspec (Makefile.am): Likewise.
21698         * modules/utime (Makefile.am): Likewise.
21699         * modules/utimecmp (Makefile.am): Likewise.
21700         * modules/utimens (Makefile.am): Likewise.
21701         * modules/vasnprintf (Makefile.am): Likewise.
21702         * modules/vasprintf (Makefile.am): Likewise.
21703         * modules/vsnprintf (Makefile.am): Likewise.
21704         * modules/xalloc (Makefile.am): Likewise.
21705         * modules/xgetcwd (Makefile.am): Likewise.
21706         * modules/xnanosleep (Makefile.am): Likewise.
21707         * modules/xreadlink (Makefile.am): Likewise.
21708         * modules/xstrtod (Makefile.am): Likewise.
21709         * modules/xstrtol (Makefile.am): Likewise.
21710         * modules/xstrtold (Makefile.am): Likewise.
21711         * modules/yesno (Makefile.am): Likewise.
21712
21713 2006-10-12  Jim Meyering  <jim@meyering.net>
21714
21715         * m4/getloadavg.m4: Revert the change below.
21716
21717         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
21718         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
21719         fail with a symlink, which is what coreutils' ./bootstrap now
21720         creates by default.
21721
21722 2006-10-12  Bruno Haible  <bruno@clisp.org>
21723
21724         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
21725         mingw.
21726         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
21727         MSVC and mingw explicitly.
21728
21729 2006-10-11  Simon Josefsson  <jas@extundo.com>
21730             Bruno Haible  <bruno@clisp.org>
21731
21732         Add support for multiple gnulib-tool invocations in the scope of a
21733         single configure.ac file.
21734         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
21735         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
21736         with the same contents as the _LIBADD variable.
21737         (func_emit_initmacro_start, func_emit_initmacro_end,
21738         func_emit_initmacro_done): New functions.
21739         (func_import, func_create_testdir): Invoke them. Allow the identifiers
21740         gl_LIBOBJS and gl_LTLIBOBJS.
21741
21742 2006-10-11  Bruno Haible  <bruno@clisp.org>
21743
21744         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
21745         (func_create_testdir): Don't create po/Makefile.am, don't invoke
21746         autoreconf. Instead, invoke autopoint explicitly but move back the
21747         *.m4 files from gnulib.
21748
21749 2006-10-11  Bruno Haible  <bruno@clisp.org>
21750
21751         * gnulib-tool (func_usage): Make module names after --create-testdir
21752         optional.
21753         (func_create_testdir): If no module was specified, use nearly all
21754         modules.
21755
21756 2006-10-12  Jim Meyering  <jim@meyering.net>
21757
21758         Big performance improvement for fts-based tools that use FTS_NOSTAT.
21759         Avoid spurious inode-mismatch problems on non-POSIX file systems.
21760         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
21761         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
21762         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
21763         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
21764         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
21765         (fts_set_stat_required): New function.
21766         (fts_open): Defer the calls to fts_stat, if possible or requested.
21767         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
21768         into fts_stat itself.
21769         (fts_read): Perform any required (deferred) fts_stat call.
21770         (fts_build): Likewise, for the directory we're about to open and read.
21771         In the readdir loop, carefully decide whether each entry will require
21772         an eventual call to fts_stat, using dirent.d_type info if available.
21773         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
21774         a command line argument into this function.  Update all callers.
21775         Map a return value of FTS_DOT to FTS_D for a command line argument.
21776         * modules/fts (Depends-on): Add d-type.  Alphabetize.
21777         Thanks to Miklos Szeredi for his tenacity and for the initial
21778         bug report about "find" failing on a FUSE-based file system.
21779
21780         * lib/fts.c (fts_open): Use consistent indentation.
21781
21782 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
21783
21784         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
21785         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
21786         reported by Jim Meyering.  All uses of cache variables renamed
21787         to match Autoconf's.
21788         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
21789         the other one.
21790
21791         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
21792         Fix misspelling in diagnostic.
21793
21794 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
21795
21796         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
21797         defined.  Problem reported by Matthew Woehlke.
21798
21799         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
21800         Add support for Tandem NonStop R series.
21801         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
21802         Use new macro.
21803
21804         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
21805         (has_trailing_slash): Omit size arg; all callers changed.
21806         Omit 'inline', since it doesn't help performance and we'd
21807         need to configure it.
21808         Don't count //, ///, etc. as having a trailing slash.
21809         As a side effect, this removes a C99ism reported by Matthew Woehlke.
21810         (rpl_rename_dest_slash): On failure, use rename's errno rather
21811         than (in some cases) an incorrect or junk errno.
21812         Simplify code by removing need to compute length; this does
21813         cause it to make two passes instead of one over the file name,
21814         but it's worth it.
21815
21816         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
21817         change, since Autoconf's version may no longer be appropriate now
21818         that we are using CVS Autoconf's version.  Add support for Tandem.
21819
21820 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
21821             Bruno Haible  <bruno@clisp.org>
21822
21823         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
21824         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
21825         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
21826         gl_AC_TYPE_LONG_LONG.
21827
21828         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
21829         instead of HAVE_LONG_LONG.
21830         * lib/printf-args.c (printf_fetchargs): Likewise.
21831         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
21832         * lib/vasnprintf.c (VASNPRINTF): Likewise.
21833         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
21834         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
21835         gl_AC_TYPE_LONG_LONG.
21836
21837 2006-10-11  Bruno Haible  <bruno@clisp.org>
21838
21839         * m4/longlong.m4: Add comments.
21840         * m4/ulonglong.m4: Likewise.
21841
21842 2006-10-10  Bruno Haible  <bruno@clisp.org>
21843
21844         Make it possible to #define stpcpy, strdup to aliases.
21845         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
21846         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
21847
21848 2006-10-10  Bruno Haible  <bruno@clisp.org>
21849
21850         Make it possible to #define gcd to an alias.
21851         * lib/gcd.c: Include config.h.
21852
21853 2006-10-10  Bruno Haible  <bruno@clisp.org>
21854
21855         Make it possible to #define c_isascii to an alias.
21856         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
21857         defined. Undefine the macros before defining them, to avoid gcc
21858         warnings.
21859         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
21860         define NO_C_CTYPE_MACROS early.
21861
21862 2006-10-10  Bruno Haible  <bruno@clisp.org>
21863
21864         Make it possible to #define set_program_name to an alias.
21865         * lib/progname.c: Don't undefine set_program_name; instead, undefine
21866         ENABLE_RELOCATABLE early.
21867
21868 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
21869
21870         Port to Tandem NSK OSS, which has 64-bit signed int but at most
21871         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
21872         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
21873         More generally, don't assume that 64-bit signed int is available
21874         if unsigned int is, and vice versa.
21875         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
21876         unsigned symbols, not on their signed counterparts.
21877         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
21878         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
21879         (UINT64_C, UINTMAX_C):
21880         Likewise.
21881         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
21882         unsigned counterparts.
21883         (Have_long_long, Unsigned): New macros.
21884         (Int): Renamed from INT.
21885         (strtoimax): Use the new macros.
21886         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
21887         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
21888         * modules/inttypes (inttypes.h): Substitute
21889         HAVE_UNSIGNED_LONG_LONG_INT.
21890         * modules/stdint (stdint.h): Likewise.
21891         (Files): Add m4/ulonglong.m4.
21892
21893 2006-10-10  Bruno Haible  <bruno@clisp.org>
21894
21895         Fix a gcc -Wshadow warning.
21896         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
21897         to 'bucket'.
21898         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
21899         gl_linked_indexof_from_to): Likewise.
21900         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
21901         Likewise.
21902         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
21903         Likewise.
21904         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
21905         Reported by Eric Blake.
21906
21907 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
21908
21909         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
21910         for NetBSD.  Problem reported by Bruno Haible.
21911
21912 2006-10-09  Jim Meyering  <jim@meyering.net>
21913
21914         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
21915         Patch from Bruno Haible.
21916
21917 2006-10-09  Jim Meyering  <jim@meyering.net>
21918
21919         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
21920         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
21921         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
21922
21923 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
21924
21925         Don't include <config.h> twice; this doesn't work in some cases,
21926         e.g., when config.h has "#define intmax_t long long int" and
21927         we include <config.h>, <inttypes.h>, <config.h> in that order.
21928         Problem reported by Matthew Woehlke in:
21929         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
21930         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
21931         * lib/fts-cycle.c: Don't include config.h.
21932         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
21933         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
21934         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
21935         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
21936         inttypes.h.
21937         * lib/xstrtoumax.c: Likewise.
21938         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
21939         __strtol and the like, so that this module is more like its siblings.
21940         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
21941         Remove; no longer needed now that we assume gnulib inttypes.h.
21942
21943 2006-10-08  Bruno Haible  <bruno@clisp.org>
21944
21945         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
21946         option.
21947
21948 2006-10-07  Jim Meyering  <jim@meyering.net>
21949
21950         * modules/inttypes (inttypes.h): Revert what seems to have been
21951         an inadvertent part of today's change: use "|", not "/" in the
21952         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
21953
21954 2006-10-07  Bruno Haible  <bruno@clisp.org>
21955
21956         * modules/sublist: New file.
21957
21958 2006-10-07  Bruno Haible  <bruno@clisp.org>
21959
21960         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
21961         * modules/argz (argz.h): Likewise.
21962         * modules/arpa_inet (arpa/inet.h): Likewise.
21963         * modules/byteswap (byteswap.h): Likewise.
21964         * modules/configmake (configmake.h): Likewise.
21965         * modules/fcntl (fcntl.h): Likewise.
21966         * modules/fnmatch (fnmatch.h): Likewise.
21967         * modules/getopt (getopt.h): Likewise.
21968         * modules/glob (glob.h): Likewise.
21969         * modules/inttypes (inttypes.h): Likewise.
21970         * modules/netinet_in (netinet/in.h): Likewise.
21971         * modules/poll (poll.h): Likewise.
21972         * modules/stdbool (stdbool.h): Likewise.
21973         * modules/stdint (stdint.h): Likewise.
21974         * modules/sys_select (sys/select.h): Likewise.
21975         * modules/sys_socket (sys/socket.h): Likewise.
21976         * modules/sys_stat (sys/stat.h): Likewise.
21977         * modules/sysexits (sysexits.h): Likewise.
21978         * modules/unistd (unistd.h): Likewise.
21979         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
21980         Add a "DO NOT EDIT" comment to the generated file.
21981         (func_import): Likewise for gnulib-comp.m4.
21982
21983 2006-10-07  Bruno Haible  <bruno@clisp.org>
21984
21985         * lib/gl_sublist.h: New file.
21986         * lib/gl_sublist.c: New file.
21987
21988 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
21989
21990         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
21991         name (relative to the original working directory) and the file
21992         name component (relative to the temporary working directory).  All
21993         callers changed.
21994         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
21995         * lib/mkdir-p.c (make_dir_parents): Likewise.
21996         * lib/mkdir-p.h (make_dir_parents): Likewise.
21997
21998 2006-10-06  Eric Blake  <ebb9@byu.net>
21999
22000         Define several macros for use by the clean-temp module.
22001         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
22002         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
22003         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
22004
22005         * lib/clean-temp.h (close_stream_temp): New declaration.
22006         * lib/clean-temp.c (includes): Pull in headers according to what
22007         other modules are in use.
22008         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
22009
22010 2006-10-06  Bruno Haible  <bruno@clisp.org>
22011
22012         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
22013         instead of fopen, fwriteerror.
22014
22015 2006-10-06  Bruno Haible  <bruno@clisp.org>
22016
22017         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
22018         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
22019         int.
22020         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
22021         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
22022         Return an error indicator.
22023         Suggested by Eric Blake.
22024
22025 2006-10-06  Bruno Haible  <bruno@clisp.org>
22026
22027         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
22028         Reported by Eric Blake.
22029
22030 2006-10-06  Bruno Haible  <bruno@clisp.org>
22031
22032         * modules/closeout (Description): Mention stderr too.
22033
22034 2006-10-06  Bruno Haible  <bruno@clisp.org>
22035         and Paul Eggert  <eggert@cs.ucla.edu>
22036
22037         * lib/closeout.c (close_stdout): Also close stderr.
22038         * lib/closeout.h: Update comment.
22039
22040 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
22041
22042         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
22043         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
22044         * lib/dirchownmod.c: Include lchown.h.
22045         * lib/lchown.c: Don't include files that lchown.h now includes.
22046         Don't declare chown, since lchown.h now does that.
22047         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
22048         (lchown): Define to rpl_chown if lchown is declared but
22049         does not exist.  Declare using a prototype if lchown is not
22050         declared.  Add a copyright notice.
22051         * lib/mkstemp.h: Include <unistd.h>.
22052         * lib/openat.c: Include lchown.h.
22053
22054         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
22055         we now test for that separately.
22056         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
22057         rather than O_NOFOLLOW, when testing whether it's possible to
22058         avoid a race condition reliably.
22059         * lib/savewd.c (savewd_chdir): Likewise.
22060
22061         Remove macros that are no longer needed now that stdint.h is
22062         reliable.
22063         * lib/fsusage.c (UINTMAX_MAX): Remove.
22064         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
22065         * lib/utimecmp.c (SIZE_MAX): Remove.
22066
22067         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
22068
22069         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
22070         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
22071         O_NOATIME works.
22072
22073 2006-10-05  Bruno Haible  <bruno@clisp.org>
22074
22075         * lib/gl_list.h (gl_sortedlist_search_from_to,
22076         gl_sortedlist_indexof_from_to): New declarations.
22077         (gl_list_implementation): New fields sortedlist_search_from_to,
22078         sortedlist_indexof_from_to.
22079         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
22080         inline functions.
22081         * lib/gl_list.c (gl_sortedlist_search_from_to,
22082         gl_sortedlist_indexof_from_to): New functions.
22083         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
22084         function.
22085         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
22086         (gl_array_sortedlist_search_from_to): New function.
22087         (gl_array_list_implementation): Update.
22088         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
22089         function.
22090         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
22091         (gl_carray_sortedlist_search_from_to): New function.
22092         (gl_carray_list_implementation): Update.
22093         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
22094         gl_linked_sortedlist_indexof_from_to): New functions.
22095         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
22096         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
22097         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
22098         gl_tree_sortedlist_indexof_from_to): New functions.
22099         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
22100         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
22101         Update.
22102         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
22103         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
22104         Update.
22105
22106 2006-10-05  Bruno Haible  <bruno@clisp.org>
22107
22108         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
22109         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
22110         (struct gl_list_implementation): Add fields search_from_to,
22111         indexof_from_to. Remove fields search, indexof.
22112         (gl_list_search): Use the search_from_to method.
22113         (gl_list_search_from, gl_list_search_from_to): New functions.
22114         (gl_list_indexof): Use the indexof_from_to method.
22115         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
22116         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
22117         (gl_list_search_from, gl_list_search_from_to): New functions.
22118         (gl_list_indexof): Use the indexof_from_to method.
22119         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
22120         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
22121         gl_array_indexof. Add start_index, end_index arguments.
22122         (gl_array_search_from_to): Renamed from gl_array_search. Add
22123         start_index, end_index arguments.
22124         (gl_array_remove, gl_array_list_implementation): Update.
22125         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
22126         gl_carray_indexof. Add start_index, end_index arguments.
22127         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
22128         start_index, end_index arguments.
22129         (gl_carray_remove, gl_carray_list_implementation): Update.
22130         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
22131         gl_linked_search. Add start_index, end_index arguments.
22132         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
22133         start_index, end_index arguments.
22134         (gl_linked_remove): Update.
22135         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
22136         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
22137         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
22138         field to 'size_t'.
22139         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
22140         gl_tree_search. Add start_index, end_index arguments.
22141         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
22142         start_index, end_index arguments.
22143         (gl_tree_remove): Update.
22144         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
22145         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
22146         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
22147         function.
22148         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
22149         gl_tree_search. Add start_index, end_index arguments.
22150         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
22151         start_index, end_index arguments.
22152         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
22153         Update.
22154         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
22155
22156 2006-10-05  Bruno Haible  <bruno@clisp.org>
22157
22158         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
22159
22160         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
22161         fwriteerror_temp): New declarations.
22162         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
22163         (descriptors): New variable.
22164         (cleanup): First, close the descriptors.
22165         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
22166         fclose_temp, fwriteerror_temp): New functions.
22167
22168 2006-10-04  Jim Meyering  <jim@meyering.net>
22169
22170         * lib/fts.c (fts_open): Tiny comment change.
22171
22172 2006-10-04  Bruno Haible  <bruno@clisp.org>
22173
22174         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
22175         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
22176         gl_LOCK_BODY.
22177         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
22178         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
22179         gl_LOCK_EARLY_BODY.
22180         (gl_LOCK): Require gl_LOCK_BODY.
22181
22182 2006-10-04  Bruno Haible  <bruno@clisp.org>
22183
22184         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
22185         (gl_oset_search_atleast): New declaration.
22186         (struct gl_oset_implementation): Add field 'search_atleast'.
22187         (gl_oset_search_atleast): New inline function.
22188         * lib/gl_oset.c (gl_oset_search_atleast): New function.
22189         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
22190         (gl_array_oset_implementation): Update.
22191         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
22192         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
22193         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
22194
22195 2006-10-04  Bruno Haible  <bruno@clisp.org>
22196
22197         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
22198
22199 2006-10-03  Bruno Haible  <bruno@clisp.org>
22200
22201         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
22202         from gl_avltreehash_list_implementation.
22203
22204 2006-10-03  Bruno Haible  <bruno@clisp.org>
22205
22206         * lib/gl_oset.c (gl_oset_add): Fix return type.
22207
22208 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
22209
22210         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
22211
22212 2006-10-02  Eric Blake  <ebb9@byu.net>
22213
22214         * modules/strnlen (Depends-on): Add extensions.
22215
22216 2006-10-02  Eric Blake  <ebb9@byu.net>
22217
22218         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
22219         definition in 2.60+.
22220
22221 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
22222
22223         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
22224         checks.
22225
22226 2006-10-02  Bruno Haible  <bruno@clisp.org>
22227
22228         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
22229         to the AUTOMAKE_OPTIONS.
22230         Reported by Jim Meyering.
22231
22232 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
22233
22234         Work around bug in Solaris 10 /proc file system:
22235         /proc/self/fd/NNN/.. isn't the parent directory of
22236         the directory whose file descriptor is NNN.  This needs to
22237         be worked around at run time, not compile time, since a
22238         program might be built on Solaris 8, where things work, and
22239         run on Solaris 10.
22240         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
22241         to use the following interface instead:
22242         (OPENAT_BUFFER_SIZE): New macro.
22243         (openat_proc_name): New function.
22244         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
22245         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
22246         Likewise.
22247         * lib/openat-proc.c: New file.
22248         * modules/openat (Files): Add lib/openat-proc.c.
22249         (Depends-on): Add same-inode, stdbool.
22250         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
22251
22252 2006-09-29  Bruno Haible  <bruno@clisp.org>
22253
22254         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
22255         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
22256         argument. Set stdout_closed before testing for ferror, not after.
22257         (fwriteerror, fwriteerror_no_ebadf): New functions.
22258
22259 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22260
22261         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
22262
22263 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
22264
22265         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
22266         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
22267
22268 2006-09-28  Jim Meyering  <jim@meyering.net>
22269
22270         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
22271         Include <unistd.h>.
22272
22273 2006-09-28  Bruno Haible  <bruno@clisp.org>
22274
22275         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
22276         * modules/linkedhash-list (Depends-on): Likewise.
22277         * modules/rbtreehash-list (Depends-on): Likewise.
22278
22279 2006-09-28  Bruno Haible  <bruno@clisp.org>
22280
22281         * lib/strndup.h: Simplify the redefinition of strndup.
22282         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
22283         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
22284
22285 2006-09-28  Bruno Haible  <bruno@clisp.org>
22286
22287         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
22288         * lib/gl_linkedhash_list.c: Likewise.
22289         * lib/gl_rbtreehash_list.c: Likewise.
22290
22291 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
22292
22293         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
22294         getaddrinfo.
22295
22296         * lib/__fpending.h: Don't include <stdio_ext.h> unless
22297         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
22298         it causes <stdio_ext.h> to cause a compile-time error.
22299         Problem reported by Nelson H. F. Beebe.
22300         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
22301         of HAVE_DECL___PENDING.
22302
22303         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
22304         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
22305         declaration.
22306
22307 2006-09-27  Jim Meyering  <jim@meyering.net>
22308
22309         This file could end up with a definition for a function
22310         named __strndup, rather than rpl_strndup on a system with
22311         incomplete weak_alias support.
22312         * lib/strndup.c (strndup): Rename from __strndup.
22313         Remove #defines that used to map __strndup to strndup.
22314         Don't use K&R prototypes.
22315         Remove LIBC-related code, since this file is not sync'd with glibc.
22316         * lib/strndup.h: Revamp, accordingly.
22317         * m4/strndup.m4: Modernize.
22318
22319 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
22320
22321         * modules/savewd (Depends-on): Add 'raise'.
22322         * lib/savewd.c: Include <signal.h>, for 'raise'.
22323
22324 2006-09-26  Jim Meyering  <jim@meyering.net>
22325
22326         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
22327         when we detect Darwin 8.7.0's acl_get_file bug.
22328         Rearrange to perform the new (below) run-test while $LIBS
22329         contains any acl-related library.  Set USE_ACL at the end.
22330         (gl_ACL_GET_FILE): New function.
22331
22332 2006-09-26  Eric Blake  <ebb9@byu.net>
22333
22334         * lib/verror.c: Include <config.h> unconditionally.
22335
22336 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
22337
22338         * modules/clock-time (Maintainer): Add self.
22339         * modules/getlogin_r (Depends-on): Add extensions.
22340
22341 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22342
22343         * modules/clock-time: New module.
22344         * modules/nanosleep (Depends-on): Add clock-time.
22345         * modules/gethrxtime (Depends-on): Likewise.
22346         * modules/gettime (Depends-on): Likewise.
22347         * modules/settime (Depends-on): Likewise.
22348
22349         * modules/fts-lgpl: Depend on openat.
22350         * modules/mkancesdirs: Depend on savewd.
22351         * modules/mkdir-p: Likewise.
22352
22353 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22354
22355         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
22356
22357         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
22358         `gl_have_arbitrary_file_name_length_limit' to
22359         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
22360         actually works between configure runs.
22361
22362 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22363             Bruno Haible  <bruno@clisp.org>
22364
22365         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
22366
22367 2006-09-25  Jim Meyering  <jim@meyering.net>
22368
22369         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
22370         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
22371
22372 2006-09-25  Eric Blake  <ebb9@byu.net>
22373
22374         * gnulib-tool (func_import, func_create_testdir): Fix typos in
22375         exec's in 2006-09-18 patch when shuffling fds.
22376
22377 2006-09-25  Bruno Haible  <bruno@clisp.org>
22378
22379         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
22380         Reported by Jim Meyering.
22381
22382 2006-09-24  Jim Meyering  <jim@meyering.net>
22383
22384         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
22385         compare a pointer against a literal "0".  That caused failures with
22386         at least HP-UX's hpcc.
22387
22388 2006-09-22  Simon Josefsson  <jas@extundo.com>
22389
22390         * modules/gc-sha1:
22391         * modules/gc-md4:
22392         * modules/gc-hmac-sha1:
22393         * modules/gc-hmac-md5:
22394         * modules/gc-des:
22395         * modules/gc-arcfour: Distribute more files.
22396
22397 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22398
22399         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
22400         (gl_linked_iterator_from_to): Initialize struct completely.
22401         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
22402         (gl_tree_iterator_from_to): Likewise
22403         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
22404         * lib/gl_array_list.c [lint] (gl_array_iterator)
22405         (gl_array_iterator_from_to): Likewise.
22406         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
22407         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
22408         (gl_carray_iterator_from_to): Likewise.
22409
22410         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
22411         * lib/md4.c (md4_process_block): Remove unused variable.
22412         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
22413         parentheses for clarity.
22414
22415 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22416
22417         * modules/bison-i18n (Depends-on): Add gettext.
22418
22419 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22420
22421         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
22422         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
22423         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
22424         also add missing comma that caused broken test.
22425         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
22426         stdlib.h, for `abort'.
22427         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
22428         variables.
22429         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
22430         include unistd.h if present, for `rmdir'.
22431         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
22432         variables.
22433         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
22434         in the process include standard headers for prototypes.
22435         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
22436         gets declared on GNU/Linux.
22437         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
22438         unistd.h, for `rmdir'.
22439         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
22440
22441         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
22442         always true.
22443         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
22444
22445         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
22446
22447 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22448
22449         * gnulib-tool (func_version): Create output all at once.  This
22450         may help avoid triggering unnecessary SIGPIPEs, and at any
22451         rate it doesn't hurt.
22452
22453 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22454             Bruno Haible  <bruno@clisp.org>
22455
22456         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
22457         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
22458         * m4/signed.m4 (bh_C_SIGNED): Likewise.
22459
22460         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
22461         (gl_FUNC_VASPRINTF): Invoke it.
22462
22463 2006-09-22  Bruno Haible  <bruno@clisp.org>
22464
22465         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
22466         getloadavg.c as first argument.
22467
22468 2006-09-22  Bruno Haible  <bruno@clisp.org>
22469
22470         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
22471         at the beginning of the gl_INIT macro.
22472         * modules/getloadavg (configure.ac): Pass $gl_source_base to
22473         gl_GETLOADAVG.
22474
22475 2006-09-22  Bruno Haible  <bruno@clisp.org>
22476
22477         * gnulib-tool (func_create_megatestdir): Don't include the config-h
22478         module.
22479         Suggested by Ralf Wildenhues.
22480
22481 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
22482
22483         Import this patch from libc:
22484
22485         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
22486
22487         * lib/regex_internal.c (re_string_reconstruct): Handle
22488         offset < pstr->valid_raw_len && pstr->offsets_needed case.
22489         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
22490         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
22491         re_string_context_at.
22492
22493         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
22494         now requires it.
22495         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
22496         gl_REGEX now does it for us.
22497         (gl_REGEX): Add test taken from
22498         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
22499
22500         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
22501         Check that large offsets work.  Modernize Autoconf usages.
22502         Prefer "yes" to mean a good thing rather than a bad.
22503         Don't put "#define mkstemp" in config.h, as this might interfere
22504         with standard system headers that "#define mkstemp mkstemp64".
22505
22506         * modules/mkstemp (Depends-on): Add extensions, so that
22507         mkstemp is visible on some platforms.
22508         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
22509         (Include): Change to "mkstemp.h" from <stdlib.h>.
22510         (Files): Add mkstemp.h.
22511
22512         * lib/mkstemp.h: New file, since some standard headers
22513         #define mkstemp.
22514         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
22515         Include "mkstemp.h".
22516         Make the _LIBC code resemble glibc original more,
22517         e.g., use K&R style.
22518         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
22519         (mkstemp): Remove, since mkstemp.h does this for us.
22520         * lib/stdlib--.h: Include mkstemp.h.
22521
22522         Import this patch from libc:
22523
22524         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
22525
22526         * lib/tempname.c (__gen_tempname): Change attempts_min
22527         into a macro.  Use preprocessor to decide how to initialize
22528         attempts [Coverity CID 67].
22529
22530 2006-09-20  Bruno Haible  <bruno@clisp.org>
22531
22532         * lib/mkdtemp.c: Import from libc.
22533         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
22534                 * sysdeps/posix/tempname.c (__gen_tempname): Change
22535                 attempts_min into a macro.  Use preprocessor to decide how to
22536                 initialize attempts [Coverity CID 67].
22537         2001-11-27  Paul Eggert  <eggert@twinsun.com>
22538                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
22539                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
22540
22541 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22542
22543         * gnulib-tool (func_exit): New function, to allow to pass the
22544         exit status portably through the trap.  Use everywhere.
22545         (--help, --version): Signal a write error.
22546         (trap): catch SIGPIPE, for write errors.
22547         Exit at the end of the trap, with the correct exit status.
22548
22549 2006-09-19  Karl Berry  <karl@gnu.org>
22550
22551         * doc/gnulib.texi: note about the license texinfo files.
22552
22553 2006-09-19  Eric Blake  <ebb9@byu.net>
22554
22555         * gnulib-tool: Avoid space-tab.
22556
22557 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
22558
22559         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
22560         that prevented coreutils 6.1 from building.  Problem reported
22561         by Petter Reinholdtsen.
22562
22563 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
22564
22565         * gnulib-tool (avoidlist): Fix typo that broke options like
22566         --avoid=lock that are used by coreutils bootstrap.
22567
22568 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
22569
22570         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
22571         more systematically.
22572
22573 2006-09-18  Jim Meyering  <jim@meyering.net>
22574
22575         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
22576
22577 2006-09-18  Bruno Haible  <bruno@clisp.org>
22578
22579         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
22580
22581 2006-09-18  Bruno Haible  <bruno@clisp.org>
22582
22583         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
22584         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
22585         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
22586         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
22587         * m4/gettext.m4: Require autoconf >= 2.52.
22588         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
22589         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
22590         of gl_cv_header_inttypes_h.
22591
22592 2006-09-18  Bruno Haible  <bruno@clisp.org>
22593
22594         * lib/javaversion.c: Include configmake.h.
22595
22596 2006-09-18  Bruno Haible  <bruno@clisp.org>
22597
22598         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
22599         avoid that the while loops be executed in a subshell.
22600
22601 2006-09-18  Bruno Haible  <bruno@clisp.org>
22602
22603         * MODULES.html.sh (func_module): Break long lines.
22604         Suggested by Bruce Korb <bkorb@gnu.org>.
22605
22606 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22607
22608         Speed up by a factor of 1.12.
22609         * gnulib-tool (nl): New variable.
22610         (func_import): Rewrite include directive extraction to only read each
22611         directive once.
22612
22613 2006-09-17  Bruno Haible  <bruno@clisp.org>
22614
22615         * modules/javaversion (Makefile.am): Remove DEFS setting.
22616         (Depends-on): Add configmake, for PKGDATADIR definition.
22617
22618 2006-09-17  Bruno Haible  <bruno@clisp.org>
22619
22620         * gnulib-tool (func_create_testdir): Rewrite all files at once.
22621
22622 2006-09-17  Bruno Haible  <bruno@clisp.org>
22623
22624         * gnulib-tool (func_append): New function, stolen from libtool.m4.
22625         (func_modules_transitive_closure, func_modules_add_dummy,
22626         func_modules_to_filelist, func_import, func_create_testdir,
22627         func_create_megatestdir, ...): Use it wherever possible.
22628         Suggested by Ralf Wildenhues.
22629
22630 2006-09-16  Karl Berry  <karl@gnu.org>
22631
22632         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
22633         to avoid sectioning errors.
22634         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
22635         [ifinfo]: blank line after @center-ed titles.
22636         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
22637         Spell FSF address consistently with others.
22638         (These changes approved by rms.)
22639
22640 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22641
22642         Speed up by a factor of 1.61.
22643         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
22644         already checked module names again.
22645
22646 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22647
22648         Speed up by a factor of 1.13.
22649         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
22650         for new_files, and the input to func_add_or_update.
22651
22652 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22653
22654         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
22655         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
22656
22657 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
22658
22659         * modules/mkancesdirs (Depends-on): Add fcntl.
22660         * modules/savewd: New file.
22661         * MODULES.html.sh (File system functions): Add savewd.
22662
22663         * modules/configmake (Makefile.am): Add support for the
22664         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
22665
22666 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
22667
22668         * m4/savewd.m4: New file.
22669
22670 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
22671
22672         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
22673         (dirchownmod): New arg FD.  All callers changed.
22674         Use FD rather than opening the directory ourself, as opening is
22675         now the caller's responsibility.
22676         * lib/dirchownmod.h: Likewise.
22677         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
22678         hosts that require <sys/types.h> before <sys/stat.h>.  Include
22679         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
22680         (test_dir): Remove.
22681         (mkancesdirs): Return length of prefix of FILE that has already
22682         been made, or -2 if there is a child doing the work.  Redo
22683         algorithm so that it is O(N) rather than O(N**2).  Optimize away
22684         ".", and treat ".." specially since it might stray back into
22685         already-created areas.  Use a subprocess if necessary.  New arg
22686         WD; all users changed.  MAKE_DIR function should now return 1
22687         if it creates a directory that is not readable.  Return -2 if
22688         a child process is spun off.
22689         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
22690         Adjust signature to match code.
22691         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
22692         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
22693         all users changed.
22694         * lib/savewd.c, lib/savewd.h: New files.
22695
22696 2006-09-15  Jim Meyering  <jim@meyering.net>
22697
22698         * modules/rename-dest-slash: New module.
22699         * MODULES.html.sh (posix_compat): Add it here.
22700
22701         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
22702
22703 2006-09-15  Jim Meyering  <jim@meyering.net>
22704
22705         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
22706         file.
22707
22708         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
22709
22710 2006-09-15  Jim Meyering  <jim@meyering.net>
22711
22712         * lib/rename-dest-slash.c (has_trailing_slash): Use
22713         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
22714         (rpl_rename_dest_slash): Perform the cheaper trailing slash
22715         test before testing whether SRC is a directory.
22716         Suggestions from Bruno Haible.
22717
22718         Avoid a warning about an unused variable.
22719         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
22720         into the #ifdef block where it's used.
22721
22722         * lib/rename-dest-slash.c: New file.
22723
22724 2006-09-14  Bruno Haible  <bruno@clisp.org>
22725
22726         * lib/allocsa.c: Include <config.h> unconditionally.
22727         * lib/asnprintf.c: Likewise.
22728         * lib/asprintf.c: Likewise.
22729         * lib/c-strcasecmp.c: Likewise.
22730         * lib/c-strcasestr.c: Likewise.
22731         * lib/c-strncasecmp.c: Likewise.
22732         * lib/c-strstr.c: Likewise.
22733         * lib/classpath.c: Likewise.
22734         * lib/clean-temp.c: Likewise.
22735         * lib/concatpath.c: Likewise.
22736         * lib/copy-file.c: Likewise.
22737         * lib/csharpcomp.c: Likewise.
22738         * lib/csharpexec.c: Likewise.
22739         * lib/execute.c: Likewise.
22740         * lib/fatal-signal.c: Likewise.
22741         * lib/findprog.c: Likewise.
22742         * lib/fwriteerror.c: Likewise.
22743         * lib/gl_array_list.c: Likewise.
22744         * lib/gl_array_oset.c: Likewise.
22745         * lib/gl_avltree_list.c: Likewise.
22746         * lib/gl_avltree_oset.c: Likewise.
22747         * lib/gl_avltreehash_list.c: Likewise.
22748         * lib/gl_carray_list.c: Likewise.
22749         * lib/gl_linked_list.c: Likewise.
22750         * lib/gl_linkedhash_list.c: Likewise.
22751         * lib/gl_list.c: Likewise.
22752         * lib/gl_oset.c: Likewise.
22753         * lib/gl_rbtree_list.c: Likewise.
22754         * lib/gl_rbtree_oset.c: Likewise.
22755         * lib/gl_rbtreehash_list.c: Likewise.
22756         * lib/imaxabs.c: Likewise.
22757         * lib/imaxdiv.c: Likewise.
22758         * lib/javacomp.c: Likewise.
22759         * lib/javaexec.c: Likewise.
22760         * lib/javaversion.c: Likewise.
22761         * lib/linebreak.c: Likewise.
22762         * lib/localcharset.c: Likewise.
22763         * lib/lock.c: Likewise.
22764         * lib/mbchar.c: Likewise.
22765         * lib/mbswidth.c: Likewise.
22766         * lib/mkdtemp.c: Likewise.
22767         * lib/pipe.c: Likewise.
22768         * lib/printf-args.c: Likewise.
22769         * lib/printf-parse.c: Likewise.
22770         * lib/progname.c: Likewise.
22771         * lib/progreloc.c: Likewise.
22772         * lib/readlink.c: Likewise.
22773         * lib/sh-quote.c: Likewise.
22774         * lib/stpcpy.c: Likewise.
22775         * lib/stpncpy.c: Likewise.
22776         * lib/strcasecmp.c: Likewise.
22777         * lib/strcasestr.c: Likewise.
22778         * lib/strcspn.c: Likewise.
22779         * lib/striconv.c: Likewise.
22780         * lib/strncasecmp.c: Likewise.
22781         * lib/strnlen1.c: Likewise.
22782         * lib/strstr.c: Likewise.
22783         * lib/strtok_r.c: Likewise.
22784         * lib/tls.c: Likewise.
22785         * lib/tmpdir.c: Likewise.
22786         * lib/unicodeio.c: Likewise.
22787         * lib/unsetenv.c: Likewise.
22788         * lib/vasnprintf.c: Likewise.
22789         * lib/vasprintf.c: Likewise.
22790         * lib/wait-process.c: Likewise.
22791         * lib/xallocsa.c: Likewise.
22792         * lib/xsetenv.c: Likewise.
22793         * lib/xstriconv.c: Likewise.
22794
22795 2006-09-13  Simon Josefsson  <jas@extundo.com>
22796
22797         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
22798         that internally, suggested by Ralf Wildenhues
22799         <Ralf.Wildenhues@gmx.de>.
22800
22801 2006-09-13  Simon Josefsson  <jas@extundo.com>
22802
22803         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
22804         @LIBOBJS@.
22805         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
22806
22807 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
22808
22809         * lib/_fpending.c: Include <config.h> unconditionally, since we no
22810         longer worry about uses that don't define HAVE_CONFIG_H.
22811         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
22812         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
22813         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
22814         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
22815         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
22816         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
22817         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
22818         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
22819         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
22820         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
22821         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
22822         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
22823         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
22824         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
22825         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
22826         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
22827         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
22828         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
22829         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
22830         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
22831         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
22832         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
22833         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
22834         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
22835         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
22836         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
22837         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
22838         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
22839         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
22840         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
22841         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
22842         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
22843         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
22844         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
22845         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
22846         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
22847         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
22848         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
22849         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
22850         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
22851         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
22852         Likewise.
22853
22854 2006-09-13  Eric Blake  <ebb9@byu.net>
22855
22856         * lib/getopt.c: Fix typo in last commit.
22857
22858 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
22859
22860         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
22861         dgettext.
22862
22863 2006-09-12  Jim Meyering  <jim@meyering.net>
22864
22865         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
22866         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
22867         Reported by Nelson H. F. Beebe.
22868
22869 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
22870
22871         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
22872         program_invocation_name and program_invocation_short_name are
22873         initialized.
22874         * lib/argp-namefrob.h: Move declarations of program_invocation_name
22875         and program_invocation_short_name to argp.h, so they are visible
22876         to user programs.
22877         * lib/argp.h: Likewise
22878
22879 2006-09-10  Bruno Haible  <bruno@clisp.org>
22880
22881         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
22882         m4/inttypes_h.m4, m4/uintmax_t.m4.
22883
22884 2006-09-10  Bruno Haible  <bruno@clisp.org>
22885
22886         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
22887         gl_AC_TYPE_UINTMAX_T.
22888
22889 2006-09-10  Bruno Haible  <bruno@clisp.org>
22890
22891         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
22892
22893 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
22894
22895         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
22896         convention.  Text proposed by Bruno Haible.
22897         (struct argp_option): Document the use of N_() wrappers.
22898
22899         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
22900         '\v', and translate the two parts separately, instead of feeding
22901         the whole string to gettext.  This allows to exclude
22902         '\v' from the strings visible to the translator by writing doc
22903         strings as N_("..") "\v" N_("..").
22904
22905 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
22906
22907         * config/srclist.txt: Undo latest change; the bug was fixed.
22908
22909 2006-09-09  Bruno Haible  <bruno@clisp.org>
22910
22911         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
22912         assignments if building a library without libtool.
22913         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
22914         in func_emit_lib_Makefile_am.
22915         (func_import): When building a static library libfoo.a, arrange to
22916         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
22917         (func_create_testdir): Likewise.
22918         * modules/gc (configure.ac, Makefile.am): If building statically,
22919         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
22920         * modules/iconvme (configure.ac, Makefile.am): Likewise.
22921         * modules/striconv (configure.ac, Makefile.am): Likewise.
22922         Based on a suggestion by Ralf Wildenhues.
22923
22924 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
22925
22926         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
22927         Check for unistd.h too, since Autoconf doesn't assume POSIX.
22928         Also:
22929
22930         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
22931         Add year_2050_test to catch glibc bug 2821
22932         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
22933
22934         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
22935         Prefer #ifdef to #if.
22936
22937         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
22938         Return from 'main' instead of calling 'exit'.
22939
22940 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
22941
22942         * lib/mktime.c (guess_time_tm): Fix bug where mktime
22943         returned the maximum time_t value rather than (time_t) -1.
22944         Problem originally reported by William Bardwell
22945         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
22946
22947         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
22948         Moved to here ...
22949         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
22950         ... from here.
22951
22952 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
22953
22954         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
22955         2821 is fixed.
22956
22957 2006-09-08  Jim Meyering  <jim@meyering.net>
22958
22959         Don't make generated files read-only.  That would bother too many
22960         people.  However, do retain the ability to work when targets are
22961         read-only: remove the destination and temporary files before writing
22962         them (when generated via sed or echo), or by using the -f option for
22963         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
22964         * modules/alloca-opt, modules/argz, modules/arpa_inet:
22965         * modules/byteswap, modules/configmake, modules/fcntl:
22966         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
22967         * modules/localcharset, modules/netinet_in, modules/poll:
22968         * modules/stdbool, modules/stdint, modules/sys_select:
22969         * modules/sys_socket, modules/sys_stat, modules/sysexits:
22970
22971 2006-09-08  Jim Meyering  <jim@meyering.net>
22972
22973         Avoid new build failure on FreeBSD 6.0.
22974         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
22975         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
22976         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
22977
22978 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22979
22980         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
22981
22982 2006-09-07  Jim Meyering  <jim@meyering.net>
22983
22984         Fix global typo in last change: use chmod u-w, not chmod u-x.
22985         Spotted by Paul Eggert and Bruce Korb.
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-06  Jim Meyering  <jim@meyering.net>
22994
22995         Make generated files be read-only.
22996         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
22997         Ensure that each generated file is now read-only.
22998         * modules/argz: Likewise.
22999         * modules/arpa_inet: Likewise.
23000         * modules/byteswap: Likewise.
23001         * modules/configmake: Likewise.
23002         * modules/fcntl: Likewise.
23003         * modules/fnmatch: Likewise.
23004         * modules/getopt: Likewise.
23005         * modules/glob: Likewise.
23006         * modules/inttypes: Likewise.
23007         * modules/netinet_in: Likewise.
23008         * modules/poll: Likewise.
23009         * modules/stdbool: Likewise.
23010         * modules/stdint: Likewise.
23011         * modules/sys_select: Likewise.
23012         * modules/sys_socket: Likewise.
23013         * modules/sys_stat: Likewise.
23014         * modules/sysexits: Likewise.
23015         * modules/localcharset: Same as above, but continue using temporary
23016         file named "t-$@" (why different?) rather than the "$@-t" used
23017         everywhere else.
23018
23019         * modules/sysexits (Makefile.am): Replace literal occurrences
23020         of "sysexit.h" more readable, and more consistent, "$@".
23021
23022 2006-09-06  Bruno Haible  <bruno@clisp.org>
23023
23024         * modules/striconv: New file.
23025         * modules/xstriconv: New file.
23026         * MODULES.html.sh (Internationalization functions): Add striconv,
23027         xstriconv.
23028
23029 2006-09-06  Bruno Haible  <bruno@clisp.org>
23030
23031         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
23032         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
23033         not using libtool correctly.
23034
23035 2006-09-06  Bruno Haible  <bruno@clisp.org>
23036
23037         * lib/striconv.h: New file.
23038         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
23039         iconvstring.c.
23040         * lib/xstriconv.h: New file.
23041         * lib/xstriconv.c: New file.
23042
23043 2006-09-06  Bruno Haible  <bruno@clisp.org>
23044
23045         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
23046         lib_..._LDFLAGS.
23047
23048 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23049
23050         * lib/argz_.h: Sync from Libtool.
23051
23052         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
23053                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
23054
23055         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
23056
23057 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
23058
23059         * modules/trim: New file.
23060
23061 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
23062
23063         * lib/trim.h: New file.
23064         * lib/trim.c: New file.
23065
23066 2006-09-05  Bruno Haible  <bruno@clisp.org>
23067
23068         * MODULES.html.sh (String handling): Add trim.
23069
23070 2006-09-04  Karl Berry  <karl@gnu.org>
23071
23072         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
23073         until next release.
23074
23075 2006-09-03  Bruno Haible  <bruno@clisp.org>
23076
23077         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
23078         correctly.
23079
23080 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
23081
23082         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
23083         not gl_GETLOADAVG.  Omit unneeded semicolons.
23084         Problems reported by Ralf Wildenhues in
23085         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
23086         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
23087         at the end, which is the usual gnulib style.
23088
23089         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
23090         of doing all the work ourselves.
23091         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
23092         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
23093
23094 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
23095
23096         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
23097         Problem reported by Ralf Wildenhues in
23098         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
23099
23100         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
23101         HAVE_STRUCT_STATFS_F_FSTYPENAME.
23102
23103 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
23104
23105         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
23106         yesterday's patch by changing test -n to test -z.
23107
23108 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
23109
23110         * modules/getloadavg (Files): Add m4/getloadavg.m4.
23111         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
23112         the former is now obsolescent.
23113
23114         * modules/chdir-long (Depends-on): Add fcntl.
23115
23116 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
23117
23118         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
23119         obsolescent, and programs should use gnulib instead.
23120         * m4/getloadavg.m4: New file, with contents taken from Autoconf
23121         but with prefixes changed.
23122
23123 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
23124
23125         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
23126         or stdbool.h, because they might not exist while configuring.
23127
23128         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
23129         Don't include unistd.h or limits.h; not needed, since chdir-long.h
23130         does that for us.
23131         (O_DIRECTORY): Remove.
23132
23133 2006-08-31  Eric Blake  <ebb9@byu.net>
23134
23135         * gnulib-tool: Don't let emacs change spaces to TAB.
23136
23137 2006-08-31  Bruno Haible  <bruno@clisp.org>
23138
23139         * gnulib-tool: When calling func_import more than once, do it in a
23140         subshell.
23141         Reported by Eric Blake <ebb9@byu.net>.
23142
23143 2006-08-31  Bruno Haible  <bruno@clisp.org>
23144
23145         * gnulib-tool (nl): Remove variable.
23146         (sed_transform_lib_file): Use more robust test for config-h module.
23147         (func_import): Fix typo in 2006-08-25 patch.
23148
23149 2006-08-31  Bruno Haible  <bruno@clisp.org>
23150
23151         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
23152         specified, augment Makefile.am variables instead of assigning them.
23153
23154 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
23155
23156         Work around a bug in both the Linux and SunOS 64-bit kernels:
23157         nanosleep mishandles sleeps for longer than 2**31 seconds.
23158         Problem reported by Frank v Waveren in
23159         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
23160         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
23161         Check for nanosleep bug.
23162         (LIB_NANOSLEEP): Append clock_gettime library if needed.
23163
23164 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
23165
23166         Work around a bug in both the Linux and SunOS 64-bit kernels:
23167         nanosleep mishandles sleeps for longer than 2**31 seconds.
23168         Problem reported by Frank v Waveren in
23169         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
23170         * lib/nanosleep.c (BILLION): New constant.
23171         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
23172         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
23173         implementation.
23174
23175 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
23176
23177         * modules/nanosleep (Depends-on): Add gettime.
23178
23179 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
23180         and Simon Josefsson  <jas@extundo.com>
23181         and Oskar Liljeblad  <oskar@osk.mine.nu>
23182
23183         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
23184         * gnulib-tool (func_import): New license type 'unmodifiable license
23185         text'.
23186         * modules/fdl: Use it.  Longer description.
23187         * module/gpl, module/lgpl: New files.
23188
23189 2006-08-30  Jim Meyering  <jim@meyering.net>
23190
23191         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
23192         shadowing the parameter.
23193
23194 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23195
23196         Sync from Libtool:
23197
23198         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23199
23200         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
23201         sharing with gnulib.  Report by Eric Blake.
23202
23203 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
23204
23205         * modules/isapipe: New file.
23206         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
23207
23208 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
23209
23210         * modules/configmake (Makefile.am): Add a comment, and omit
23211         the CONFIGMAKE_ prefix from generated macro names.  Suggested
23212         by Bruno Haible.
23213
23214 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
23215
23216         * m4/isapipe.m4: New file.
23217
23218 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
23219
23220         * lib/isapipe.c, lib/isapipe.h: New files.
23221
23222 2006-08-29  Jim Meyering  <jim@meyering.net>
23223
23224         * modules/configmake (Makefile.am): Make configmake.h depend on
23225         Makefile.  Otherwise, a stale configmake.h could hang around.
23226
23227 2006-08-29  Eric Blake  <ebb9@byu.net>
23228
23229         * lib/error.c (error_at_line, print_errno_message): Match libc, after
23230         resolution of upstream bug 3044.
23231
23232 2006-08-29  Bruno Haible  <bruno@clisp.org>
23233
23234         * modules/localcharset (Depends-on): Add configmake.
23235         (Makefile.am): Remove setting of LIBDIR through DEFS.
23236
23237 2006-08-29  Bruno Haible  <bruno@clisp.org>
23238
23239         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
23240         defined.
23241
23242 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
23243
23244         * modules/fcntl: New file.
23245         * modules/chdir-safer (Depends-on): Add fcntl.
23246         * modules/fts: Likewise.
23247         * modules/mkdir-p: Likewise.
23248
23249         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
23250         This undoes the most recent change, since we're now addressing the
23251         problem in a different way.
23252
23253         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
23254         into output, since the output might be called Makefile.am even
23255         if $makefile_name is something different.
23256         (func_import): Use $makefile_am rather than
23257         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
23258         empty.
23259
23260         * modules/inttypes (Files): Add m4/inttypes-h.m4.
23261
23262 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
23263
23264         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
23265         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
23266         recent change to stdint.m4, since we're now addressing the problem in a
23267         different way.
23268
23269 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
23270
23271         * m4/fcntl_h.m4: New file.
23272
23273 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
23274
23275         * lib/fcntl_.h: New file.
23276         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
23277         the fcntl module.
23278         * lib/dirchownmod.c: Likewise.
23279         * lib/fts.c: Likewise.
23280
23281         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
23282         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
23283         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
23284         just before including <inttypes.h>, to avoid circular inclusion.
23285
23286 2006-08-28  Jim Meyering  <jim@meyering.net>
23287
23288         * doc/visibility.texi: Actually read and correct the grammar of the
23289         sentence affected by yesterday's change.
23290
23291 2006-08-28  Eric Blake  <ebb9@byu.net>
23292
23293         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
23294         needs wrapper.
23295
23296 2006-08-28  Eric Blake  <ebb9@byu.net>
23297
23298         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
23299
23300 2006-08-28  Eric Blake  <ebb9@byu.net>
23301
23302         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
23303
23304 2006-08-28  Bruno Haible  <bruno@clisp.org>
23305
23306         * modules/c-strstr: New file, from GNU gettext.
23307         * MODULES.html.sh (String handling): Add c-strstr.
23308
23309 2006-08-28  Bruno Haible  <bruno@clisp.org>
23310
23311         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
23312         macros.
23313         Reported by Eric Blake.
23314
23315 2006-08-28  Bruno Haible  <bruno@clisp.org>
23316
23317         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
23318         (VASNPRINTF): Return a string of length > INT_MAX without failing.
23319         * lib/vasprintf.c: Include errno.h, limits.h.
23320         (EOVERFLOW): New fallback definition.
23321         (vasprintf): Test here whether the string length is > INT_MAX.
23322         * lib/vsnprintf.c: Include errno.h, limits.h.
23323         (EOVERFLOW): New fallback definition.
23324         (vsnprintf): Fix bug when generated string was too long for the buffer.
23325         Test here whether the string length is > INT_MAX.
23326
23327 2006-08-28  Bruno Haible  <bruno@clisp.org>
23328
23329         * lib/inttypes_.h (SCNX*): Remove definitions.
23330         Reported by Eric Blake.
23331
23332 2006-08-28  Bruno Haible  <bruno@clisp.org>
23333
23334         * lib/c-strstr.h: New file, from GNU gettext.
23335         * lib/c-strstr.c: New file, from GNU gettext.
23336
23337 2006-08-28  Bruno Haible  <bruno@clisp.org>
23338
23339         * gnulib-tool: Reorder some statements.
23340
23341 2006-08-28  Bruno Haible  <bruno@clisp.org>
23342
23343         * gnulib-tool: New option --makefile-name.
23344         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
23345         $makefile_name.
23346         (func_import): Write $makefile_name to the cache file, and read it from
23347         there unless explicitly specified. Use $makefile_name as file name
23348         instead of Makefile.am. Adjust the recommendations accordingly.
23349
23350 2006-08-28  Bruno Haible  <bruno@clisp.org>
23351
23352         * gnulib-tool (func_verify_module): Check against misapplying patch.
23353
23354 2006-08-28  Bruno Haible  <bruno@clisp.org>
23355
23356         * gnulib-tool (func_relativize, func_relconcat): New functions.
23357         Give an error if --local-dir is given with --update.
23358         Remove trailing slashes from $local_gnulib_dir.
23359         (func_import): Store the relativized $local_gnulib_dir in
23360         gnulib-cache.m4, and read it from there if not specified explicitly.
23361
23362 2006-08-28  Bruno Haible  <bruno@clisp.org>
23363
23364         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
23365         is the current directory. Respect also $local_gnulib_dir.
23366
23367 2006-08-28  Bruno Haible  <bruno@clisp.org>
23368             Simon Josefsson  <jas@extundo.com>
23369
23370         BeOS portability.
23371         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
23372
23373 2006-08-27  Jim Meyering  <jim@meyering.net>
23374
23375         * doc/visibility.texi: Remove duplicate word: "pointer".
23376
23377 2006-08-26  Bruno Haible  <bruno@clisp.org>
23378
23379         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
23380         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
23381         (Makefile.am): Create inttypes.h from inttypes_.h.
23382         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
23383
23384         * modules/imaxabs: New file.
23385
23386         * modules/imaxdiv: New file.
23387
23388 2006-08-26  Bruno Haible  <bruno@clisp.org>
23389
23390         * m4/inttypes.m4: New file.
23391         * m4/_inttypes_h.m4: Remove file.
23392         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
23393         PRI_MACROS_BROKEN.
23394         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
23395
23396         * m4/imaxabs.m4: New file.
23397
23398         * m4/imaxdiv.m4: New file.
23399
23400 2006-08-26  Bruno Haible  <bruno@clisp.org>
23401
23402         * lib/inttypes_.h: New file.
23403         * lib/inttypes.h: Remove file.
23404         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
23405
23406         * lib/imaxabs.c: New file.
23407
23408         * lib/imaxdiv.c: New file.
23409
23410 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
23411
23412         New config-h module, so that "make" output needn't be cluttered
23413         by -DHAVE_CONFIG_H.
23414         * MODULES.html.sh (Support for building libraries and executables):
23415         Add config-h.
23416         * modules/config-h: New file.
23417         * gnulib-tool (nl, sed_transform_lib_file): New vars.
23418         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
23419         the config-h module is used.
23420
23421         New configmake module, so that "make" output needn't be cluttered
23422         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
23423         * MODULES.html.sh (Support for building libraries and executables):
23424         Add configmake.
23425         * modules/configmake: New file.
23426
23427 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
23428
23429         * m4/config-h.m4: New file.
23430
23431 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
23432
23433         * config/srclist.txt: Add elisp-comp.
23434
23435 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
23436
23437         * MODULES.html.sh (Support for building libraries and executables):
23438         Add elisp-comp.
23439         * build-aux/elisp-comp: New file.
23440         * modules/elisp-comp: New file.
23441
23442 2006-08-24  Bruno Haible  <bruno@clisp.org>
23443
23444         * gnulib-tool (func_create_testdir): Use non-default values of
23445         sourcebase and m4base.
23446
23447 2006-08-24  Bruno Haible  <bruno@clisp.org>
23448
23449         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
23450         HTML structure.
23451
23452 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
23453
23454         * modules/openat (Depends-on): Add lchown.
23455
23456 2006-08-23  Bruno Haible  <bruno@clisp.org>
23457
23458         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
23459         of gl_LOCK_EARLY instead of gl_LOCK.
23460
23461 2006-08-23  Bruno Haible  <bruno@clisp.org>
23462
23463         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
23464         on OSF/1 to no.
23465         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
23466
23467 2006-08-23  Bruno Haible  <bruno@clisp.org>
23468
23469         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
23470         as unusable.
23471
23472         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
23473         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
23474         (gl_LOCK): New macro.
23475
23476 2006-08-22  Simon Josefsson  <jas@extundo.com>
23477
23478         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
23479         to md5 module.
23480
23481 2006-08-22  Simon Josefsson  <jas@extundo.com>
23482
23483         * MODULES.html.sh: Add "Support for maintaining and release
23484         projects".
23485
23486         * build-aux/gnupload: New file, from coreutils.
23487
23488 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
23489
23490         Avoid the need for AC_LIBSOURCES in m4 macros.
23491         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
23492         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
23493         * modules/check-version (EXTRA_DIST): Add check-version.h.
23494         * modules/crc (EXTRA_DIST): Add crc.h.
23495         * modules/des (EXTRA_DIST): Add des.h.
23496         * modules/gc (EXTRA_DIST): Add gc.h.
23497         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
23498         * modules/getline (EXTRA_DIST): Add getline.h.
23499         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
23500         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
23501         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
23502         * modules/md2 (EXTRA_DIST): Add md2.h.
23503         * modules/md4 (EXTRA_DIST): Add md4.h.
23504         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
23505         * modules/read-file (EXTRA_DIST): Add read-file.h.
23506         * modules/readline (EXTRA_DIST): Add readline.h.
23507         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
23508         rijndael-api-fst.h.
23509
23510 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
23511
23512         * m4/rijndael.m4 (gl_ARCFOUR):
23513         * m4/arctwo.m4 (gl_ARCTWO):
23514         * m4/check-version.m4 (gl_CHECK_VERSION):
23515         * m4/crc.m4 (gl_CRC):
23516         * m4/des.m4 (gl_DES):
23517         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
23518         * m4/gc.m4 (gl_GC):
23519         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
23520         * m4/getline.m4 (gl_FUNC_GETLINE):
23521         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
23522         * m4/hmac-md5.m4 (gl_HMAC_MD5):
23523         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
23524         * m4/md2.m4 (gl_MD2):
23525         * m4/md4.m4 (gl_MD4):
23526         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
23527         * m4/read-file.m4 (gl_FUNC_READ_FILE):
23528         * m4/readline.m4 (gl_FUNC_READLINE):
23529         * m4/rijndael.m4 (gl_RIJNDAEL):
23530         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
23531         to get the necessary .h files and whatnot.
23532
23533 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
23534
23535         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
23536         gnulib rather than the other way around.
23537         * config/srclistvars.sh (COREUTILS): Remove.
23538
23539 2006-08-22  Jim Meyering  <jim@meyering.net>
23540
23541         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
23542
23543         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
23544
23545 2006-08-22  Eric Blake  <ebb9@byu.net>
23546
23547         * modules/regexprops-generic: New file.
23548         * MODULES.html.sh (Support for building documentation): List it.
23549
23550 2006-08-22  Eric Blake  <ebb9@byu.net>
23551
23552         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
23553         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
23554         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
23555         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
23556
23557 2006-08-22  Bruno Haible  <bruno@clisp.org>
23558
23559         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
23560         and lib_LTLIBRARIES like the other lib_* variables.
23561
23562 2006-08-22  Bruno Haible  <bruno@clisp.org>
23563
23564         * build-aux/x-to-1.in: New file, from GNU gettext.
23565
23566 2006-08-22  Bruno Haible  <bruno@clisp.org>
23567
23568         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
23569         <utmpx.h> exists.
23570
23571 2006-08-22  Bruno Haible  <bruno@clisp.org>
23572
23573         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
23574         <utmpx.h> exists.
23575
23576 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
23577
23578         BeOS portability.
23579         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
23580         exist.
23581         Problem reported by Bruno Haible.
23582
23583 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
23584
23585         Avoid the need for AC_LIBSOURCES in m4 macros.
23586         * modules/acl (EXTRA_DIST): Add acl.h.
23587         * modules/argmatch (Files): Add m4/argmatch.m4.
23588         (configure.ac): Add gl_ARGMATCH.
23589         (EXTRA_DIST): Renamed from lib_SOURCES, for
23590         consistency with the other modules.  Remove argmatch.c.
23591         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
23592         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
23593         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
23594         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
23595         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
23596         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
23597         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
23598         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
23599         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
23600         * modules/closeout (EXTRA_DIST): Add closeout.h.
23601         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
23602         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
23603         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
23604         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
23605         dirname.h; remove basename.c and stripslash.c.
23606         * modules/exclude (EXTRA_DIST): Add exclude.h.
23607         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
23608         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
23609         * modules/file-type (EXTRA_DIST): Add file-type.h.
23610         * modules/filemode (EXTRA_DIST): Add filemode.h.
23611         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
23612         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
23613         * modules/fpending (EXTRA_DIST): Add __fpending.h.
23614         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
23615         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
23616         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
23617         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
23618         * modules/getdate (EXTRA_DIST): Add getdate.c.
23619         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
23620         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
23621         * modules/getpass (EXTRA_DIST): Add getpass.h.
23622         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
23623         * modules/group-member (EXTRA_DIST): Add group-member.h.
23624         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
23625         * modules/hash (EXTRA_DIST): Add hash.h.
23626         * modules/human (EXTRA_DIST): Add human.h.
23627         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
23628         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
23629         * modules/lchown (EXTRA_DIST): Add lchown.h.
23630         * modules/long-options (EXTRA_DIST): Add long-options.h.
23631         * modules/lstat (EXTRA_DIST): Add lstat.h.
23632         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
23633         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
23634         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
23635         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
23636         * modules/memxor (EXTRA_DIST): Add memxor.h.
23637         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
23638         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
23639         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
23640         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
23641         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
23642         * modules/physmem (EXTRA_DIST): Add physmem.h.
23643         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
23644         * modules/posixver (EXTRA_DIST): Add posixver.h.
23645         * modules/quote (EXTRA_DIST): Add quote.h.
23646         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
23647         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
23648         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
23649         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
23650         regex_internal.h regexec.c.
23651         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
23652         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
23653         * modules/same (EXTRA_DIST): Add same.h.
23654         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
23655         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
23656         * modules/savedir (EXTRA_DIST): Add savedir.h.
23657         * modules/sha1 (EXTRA_DIST): Add sha1.h.
23658         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
23659         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
23660         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
23661         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
23662         * modules/strdup (EXTRA_DIST): Add strdup.h.
23663         * modules/strftime (EXTRA_DIST): Add strftime.h.
23664         * modules/strndup (EXTRA_DIST): Add strndup.h.
23665         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
23666         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
23667         * modules/time_r (EXTRA_DIST): Add time_r.h.
23668         * modules/timespec (EXTRA_DIST): Add timespec.h.
23669         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
23670         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
23671         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
23672         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
23673         * modules/userspec (EXTRA_DIST): Add userspec.h.
23674         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
23675         * modules/utimens (EXTRA_DIST): Add utimens.h.
23676         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
23677         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
23678         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
23679         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
23680         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
23681         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
23682         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
23683         * modules/yesno (EXTRA_DIST): Add yesno.h.
23684
23685 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
23686
23687         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
23688
23689         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
23690         * m4/dev-ino.m4, same-inode.m4: Remove.
23691
23692         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
23693         * m4/acl.m4 (AC_FUNC_ACL):
23694         * m4/backupfile.m4 (gl_BACKUPFILE):
23695         * m4/c-strtod.m4 (gl_C99_STRTOLD):
23696         * m4/canon-host.m4 (gl_CANON_HOST):
23697         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
23698         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
23699         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
23700         * m4/cloexec.m4 (gl_CLOEXEC):
23701         * m4/close-stream.m4 (gl_CLOSE_STREAM):
23702         * m4/closeout.m4 (gl_CLOSEOUT):
23703         * m4/dirfd.m4 (gl_FUNC_DIRFD):
23704         * m4/dirname.m4 (gl_DIRNAME):
23705         * m4/exclude.m4 (gl_EXCLUDE):
23706         * m4/exitfail.m4 (gl_EXITFAIL):
23707         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
23708         * m4/file-type.m4 (gl_FILE_TYPE):
23709         * m4/filemode.m4 (gl_FILEMODE):
23710         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
23711         * m4/fpending.m4 (gl_FUNC_FPENDING):
23712         * m4/fprintftime.m4 (gl_FPRINTFTIME):
23713         * m4/fts.m4 (gl_FUNC_FTS):
23714         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
23715         * m4/getdate.m4 (gl_GETDATE):
23716         * m4/gethrxtime.m4 (gl_GETHRXTIME):
23717         * m4/getpagesize.m4 (gl_GETPAGESIZE):
23718         * m4/getpass.m4 (gl_FUNC_GETPASS):
23719         * m4/gettime.m4 (gl_GETTIME):
23720         * m4/getugroups.m4 (gl_GETUGROUPS):
23721         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
23722         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
23723         * m4/hard-locale.m4 (gl_HARD_LOCALE):
23724         * m4/hash.m4 (gl_HASH):
23725         * m4/idcache.m4 (gl_IDCACHE):
23726         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
23727         * m4/lchown.m4 (gl_FUNC_LCHOWN):
23728         * m4/long-options.m4 (gl_LONG_OPTIONS):
23729         * m4/lstat.m4 (gl_FUNC_LSTAT):
23730         * m4/md5.m4 (gl_MD5):
23731         * m4/memcasecmp.m4 (gl_MEMCASECMP):
23732         * m4/memcoll.m4 (gl_MEMCOLL):
23733         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
23734         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
23735         * m4/memxor.m4 (gl_MEMXOR):
23736         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
23737         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
23738         * m4/modechange.m4 (gl_MODECHANGE):
23739         * m4/mountlist.m4 (gl_MOUNTLIST):
23740         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
23741         * m4/openat.m4 (gl_FUNC_OPENAT):
23742         * m4/pathmax.m4 (gl_PATHMAX):
23743         * m4/physmem.m4 (gl_PHYSMEM):
23744         * m4/posixtm.m4 (gl_POSIXTM):
23745         * m4/posixver.m4 (gl_POSIXVER):
23746         * m4/quote.m4 (gl_QUOTE):
23747         * m4/quotearg.m4 (gl_QUOTEARG):
23748         * m4/readtokens.m4 (gl_READTOKENS):
23749         * m4/readutmp.m4 (gl_READUTMP):
23750         * m4/regex.m4 (gl_REGEX):
23751         * m4/safe-read.m4 (gl_SAFE_READ):
23752         * m4/safe-write.m4 (gl_SAFE_WRITE):
23753         * m4/same.m4 (gl_SAME):
23754         * m4/save-cwd.m4 (gl_SAVE_CWD):
23755         * m4/savedir.m4 (gl_SAVEDIR):
23756         * m4/settime.m4 (gl_SETTIME):
23757         * m4/sha1.m4 (gl_SHA1):
23758         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
23759         * m4/stat-macros.m4 (gl_STAT_MACROS):
23760         * m4/stat-time.m4 (gl_STAT_TIME):
23761         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
23762         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
23763         * m4/strdup.m4 (gl_FUNC_STRDUP):
23764         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
23765         * m4/strndup.m4 (gl_FUNC_STRNDUP):
23766         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
23767         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
23768         * m4/time_r.m4 (gl_TIME_R):
23769         * m4/timespec.m4 (gl_TIMESPEC):
23770         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
23771         * m4/unlinkdir.m4 (gl_UNLINKDIR):
23772         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
23773         * m4/userspec.m4 (gl_USERSPEC):
23774         * m4/utimecmp.m4 (gl_UTIMECMP):
23775         * m4/utimens.m4 (gl_UTIMENS):
23776         * m4/xalloc.m4 (gl_XALLOC):
23777         * m4/xgetcwd.m4 (gl_XGETCWD):
23778         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
23779         * m4/xreadlink.m4 (gl_XREADLINK):
23780         * m4/xstrtod.m4 (gl_XSTRTOD):
23781         * m4/yesno.m4 (gl_YESNO):
23782         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
23783         to get the necessary .h files and whatnot.
23784
23785 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
23786             Bruno Haible  <bruno@clisp.org>
23787
23788         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
23789         /bin/sh understanding of '!' conditional negation.
23790
23791 2006-08-21  Jim Meyering  <jim@meyering.net>
23792
23793         * modules/openat (Depends-on): Really alphabetize.
23794
23795         * modules/acl (Depends-on): Add error and quote.
23796
23797         * check-module (find_included_lib_files): Add at-func.c to the
23798         ok-to-include-more-than-once white list.
23799
23800         * modules/openat (Depends-on): Add lstat.  Alphabetize.
23801
23802 2006-08-21  Bruno Haible  <bruno@clisp.org>
23803
23804         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
23805         Emit a pkgdata_DATA variable only if some snippets add contents to it.
23806         Reported by Martin Lambers <marlam@marlam.de>.
23807
23808 2006-08-21  Bruno Haible  <bruno@clisp.org>
23809
23810         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
23811         specify an installation location, don't emit a noinst_LIBRARIES or
23812         noinst_LTLIBRARIES assignment.
23813
23814 2006-08-21  Bruno Haible  <bruno@clisp.org>
23815
23816         BeOS portability.
23817         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
23818         BeOS has mbrtowc() but no <wctype.h>.
23819
23820 2006-08-21  Bruno Haible  <bruno@clisp.org>
23821
23822         BeOS portability.
23823         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
23824         exist.
23825
23826 2006-08-21  Bruno Haible  <bruno@clisp.org>
23827
23828         BeOS portability.
23829         * lib/mbchar.h: Include <wctype.h> only if it exists.
23830
23831 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
23832
23833         Remove files that are no longer needed by their respective modules.
23834         * m4/obstack.m4: Remove.
23835         * m4/strerror_r.m4: Remove.
23836         * m4/uint32_t.m4: Remove.
23837         * m4/uintptr_t.m4: Remove.
23838         * m4/ullong_max.m4: Remove.
23839         * m4/xstrtoimax.m4: Remove.
23840         * m4/xstrtoumax.m4: Remove.
23841
23842         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
23843         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
23844         dependencies now capture this.
23845
23846         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
23847         Do not use AC_LIBSOURCES, since gnulib modules now do this.
23848         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
23849         * m4/human.m4 (gl_HUMAN): Likewise.
23850         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
23851         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
23852
23853         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
23854
23855         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
23856         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
23857         stdint.
23858         * m4/human.m4 (gl_HUMAN): Likewise.
23859         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
23860         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
23861         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
23862         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
23863         * m4/xstrtol (gl_XSTRTOL): Likewise.
23864
23865         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
23866         AC_TYPE_LONG_LONG_INT.
23867         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
23868         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
23869         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
23870         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
23871
23872         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
23873         on stdbool.
23874
23875         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
23876         (gl_PREREQ_XSTRTOUL): Remove.
23877
23878         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
23879
23880         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
23881         mode.
23882
23883 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
23884
23885         Add and change modules to make it easier for coreutils to use
23886         gnulib-tool.
23887         * modules/backupfile (Files): Remove m4/d-ino.m4.
23888         (Depends-on): Add d-ino.
23889         * modules/cycle-check (Depends-on): Add stdint.
23890         (lib_SOURCES): Add cycle-check.h.
23891         * modules/d-ino: New module.
23892         * modules/d-type: New module.
23893         * modules/error (Files): Remove m4/strerror_r.m4.
23894         * modules/filemode (Files): Add m4/st_dm_mode.m4.
23895         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
23896         m4/inttypes_h.m4, m4/uintmax_t.m4.
23897         (Depends-on): Add stdint.
23898         (lib_SOURCES): Add fsusage.h.
23899         * modules/getcwd (Files): Remove d-ino.m4.
23900         (Depends-on): Add d-ino.
23901         * modules/getndelim2 (Depends-on): Add stdint.
23902         * modules/glob (Files): Remove m4/d-type.m4.
23903         (Depends-on): Add d-type.
23904         * modules/host-os: New module.
23905         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
23906         m4/inttypes_h.m4, m4/uintmax_t.m4.
23907         * Depends-on: Add stdint.
23908         (lib_SOURCES): Add human.h.
23909         * modules/inttostr (Files): Remove m4/intmax_t.m4,
23910         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
23911         m4/uintmax_t.m4, m4/ulonglong.m4.
23912         (Depends-on): Add stdint.
23913         (EXTRA_DIST): Add inttostr.h.
23914         * modules/lchmod: New module.
23915         * modules/link-follow: New module.
23916         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
23917         (Depends-on): Add lchmod.
23918         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
23919         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
23920         (Depends-on): Add stdint.
23921         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
23922         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
23923         (Depends-on): Add stdint.
23924         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
23925         * modules/perl: New module.
23926         * modules/regex (Depends-on): Add stdint.
23927         * modules/rmdir-errno: New module.
23928         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
23929         m4/intmax_t.m4.
23930         (Depends-on): Add stdint.
23931         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
23932         m4/uintmax_t.m4.
23933         (Depends-on): Add stdint.
23934         * modules/unlink-busy: New module.
23935         * modules/utimecmp (Depends-on): Add stdint.
23936         * modules/uptime: New module.
23937         * modules/winsz-ioctl: New module.
23938         * modules/winsz-termios: New module.
23939         * modules/xnanosleep (Depends-on): Add nanosleep.
23940         * modules/ullong_max: Remove.
23941         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
23942         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
23943         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
23944         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
23945         (Depends-on): Add inttypes.
23946         (lib_SOURCES): Add xstrtol.h.
23947         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
23948         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
23949         * MODULES.html.sh: Move 'assert' into the assert section.
23950         Move 'dummy' into the linking section.
23951         Remove ullong_max.
23952         Add section for compatibility checks for POSIX:2001 functions,
23953         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
23954         winsz-ioctl, and winsz-termios into it.
23955         Add lchmod.
23956         Add top-level Misc section and put host-os, perl, and uptime
23957         into it.
23958
23959 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
23960
23961         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
23962         now assume the stdint module.  Do not include inttypes.h.
23963         * lib/fsusage.h: Likewise.
23964         * lib/getndelim2.c: Likewise.
23965         * lib/human.h: Likewise.
23966         * lib/inttostr.h: Likewise.
23967         * lib/obstack.c: Likewise.
23968         * lib/regex_internal.h: Likewise.
23969         * lib/tempname.c: Likewise.
23970         * lib/utimecmp.c: Likewise.
23971         * lib/xstrtol.h: Likewise.
23972
23973         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
23974
23975         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
23976         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
23977         * lib/xtime.h: Likewise.
23978
23979 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
23980
23981         * modules/openat (Files): Add lib/fchmodat.c.
23982         Fixes problem reported by Jay Youngman.
23983
23984 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
23985
23986         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
23987         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
23988
23989 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
23990             Bruno Haible  <bruno@clisp.org>
23991
23992         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
23993         and is a script that invokes bison. Tighten the code. Add comments.
23994
23995 2006-08-18  Jim Meyering  <jim@meyering.net>
23996
23997         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
23998         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
23999         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
24000         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
24001
24002 2006-08-18  Bruno Haible  <bruno@clisp.org>
24003
24004         * modules/bison-i18n: New file.
24005         * MODULES.html.sh (Internationalization functions): Add it.
24006
24007 2006-08-18  Bruno Haible  <bruno@clisp.org>
24008
24009         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
24010         sys/statvfs.h. When getmntinfo was found, check its declaration and
24011         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
24012
24013 2006-08-18  Bruno Haible  <bruno@clisp.org>
24014
24015         * m4/bison-i18n.m4: New file, from bison.
24016
24017 2006-08-18  Bruno Haible  <bruno@clisp.org>
24018
24019         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
24020         (ME_DUMMY): Treat "kernfs" as a dummy.
24021         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
24022
24023 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
24024
24025         Update from coreutils.
24026
24027         2006-08-15  Jim Meyering  <jim@meyering.net>
24028
24029         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
24030
24031         2006-01-17  Jim Meyering  <jim@meyering.net>
24032
24033         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
24034
24035         2006-01-11  Jim Meyering  <jim@meyering.net>
24036
24037         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
24038         Check for the lchmod function.
24039
24040 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
24041
24042         Update from coreutils.
24043
24044         * lib/__fpending.h: Add copyright notice.
24045         * lib/fprintftime.h: Likewise.
24046         * lib/savedir.c: Use (C) in copyright notice.
24047         * lib/savedir.h: Likewise.
24048
24049         2006-08-15  Jim Meyering  <jim@meyering.net>
24050
24051         * lib/at-func.c: New file, with the logic of all emulated at-functions.
24052         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
24053         in support of the EXPECTED_ERRNO macro.
24054         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
24055         definitions.  Instead, define the appropriate symbols and include
24056         "at-func.c".
24057         * lib/mkdirat.c (mkdirat): Likewise.
24058         * lib/fchmodat.c (fchmodat): Likewise.
24059         (ENOSYS): Remove definition.
24060         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
24061         it.  Don't include "unistd--.h" -- it wasn't ever used.
24062
24063         2006-01-17  Jim Meyering  <jim@meyering.net>
24064
24065         Rewrite fts.c not to change the current working directory,
24066         by using openat, fstatat, fdopendir, etc..
24067
24068         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
24069         (HAVE_OPENAT_SUPPORT): Define.
24070         [_LIBC] (fchdir): Don't undef or define; no longer used.
24071         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
24072         Now, this `function' always succeeds, and consumes its file descriptor
24073         parameter -- so callers must not close such FDs.  Update callers.
24074         (diropen_fd, opendirat, cwd_advance_fd): New functions.
24075         (diropen): Add parameter, SP.  Adjust all callers.
24076         Implement using diropen_fd, rather than open.
24077         (fts_open): Initialize new member, fts_cwd_fd.
24078         Remove fts_rft-setting code.
24079         (fts_close): Close fts_cwd_fd, if necessary.
24080         (__opendir2): Define in terms of opendir or opendirat,
24081         depending on whether the FST_NOCHDIR flag is set.
24082         (fts_build): Since fts_safe_changedir consumes its FD, and since
24083         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
24084         and close the dup'd file descriptor upon failure.
24085         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
24086         (fts_safe_changedir): Tweak semantics to reflect that this function
24087         now calls cwd_advance_fd and hence consumes its FD argument.
24088         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
24089         [struct FTS] (fts_rft): Remove now-unused member.
24090         [struct FTS] (fts_cycle.state): Improve comment.
24091
24092         * lib/openat.c (openat_needs_fchdir): New function.
24093         * lib/openat.h (openat_needs_fchdir): Declare it.
24094
24095 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
24096
24097         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
24098         Problem and fix reported by Pádraig Brady in
24099         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
24100
24101 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
24102
24103         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
24104
24105 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
24106
24107         * lib/memcoll.c (memcoll): Optimize for the common case where the
24108         arguments are bytewise equal.
24109
24110 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
24111
24112         * doc/regexprops-generic.texi: Add a copyright notice.
24113
24114 2006-08-15  Bruno Haible  <bruno@clisp.org>
24115
24116         * modules/tmpdir (License): Change to LGPL.
24117
24118 2006-08-15  Bruno Haible  <bruno@clisp.org>
24119
24120         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
24121         module.
24122
24123 2006-08-14  Simon Josefsson  <jas@extundo.com>
24124
24125         * config/srclist.txt: Add gnupload.
24126
24127 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
24128
24129         Change copyright notice from LGPL 2 to GPL 2, since that's the
24130         standard form used in the gnulib repository.
24131         * tests/test-lock.c: Likewise.
24132         * tests/test-stdint.c: Likewise.
24133         * tests/test-tls.c: Likewise.
24134
24135         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
24136         prelude-manager.  User shorter URLs for GNU projects, without '?'.
24137         Add copyright notice.
24138
24139         * check-module: Add copyright notice.  Output a copyright
24140         notice if "--version" is specified.
24141         * modules/COPYING: New file.
24142         * tests/test-getaddrinfo.c: Add copyright notice.
24143         * tests/test-verify.c: Likewise.
24144
24145 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
24146
24147         Change copyright notice from LGPL 2 to GPL 2, since that's the
24148         standard form used in the gnulib repository.
24149         * lib/lock.c: LGPL -> GPL.
24150         * lib/lock.h: Likewise.
24151         * lib/strnlen1.c: Likewise.
24152         * lib/strnlen1.h: Likewise.
24153         * lib/tls.c: Likewise.
24154         * lib/tls.h: Likewise.
24155         * lib/tmpdir.c: Likewise.
24156
24157         * lib/TODO: Remove; this belongs only in coreutils.
24158
24159 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
24160
24161         Add copyright notices to long-enough files that lack them, since
24162         otherwise the files aren't clearly free.  Use the same notice that
24163         getdate.texi already uses.
24164         * doc/alloca-opt.texi: Add copyright notice.
24165         * doc/alloca.texi: Likewise.
24166         * doc/ctime.texi: Likewise.
24167         * doc/functions.texi: Likewise.
24168         * doc/gcd.texi: Likewise.
24169         * doc/gnulib-tool.texi: Likewise.
24170         * doc/inet_ntoa.texi: Likewise.
24171         * doc/visibility.texi: Likewise.
24172
24173         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
24174         * doc/quote.texi: Add copyright notice.
24175
24176         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
24177         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
24178         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
24179         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
24180         is now obsolete, and give a pointer to the Sun list.
24181         Add copyright notice.
24182
24183 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
24184
24185         * config/srclistvars.sh: Add copyright notice.
24186
24187 2006-08-14  Eric Blake  <ebb9@byu.net>
24188
24189         Import the following change from libc:
24190
24191         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
24192
24193         Upstream bug 2997.
24194         * lib/misc/error.c: Add space between program name and message if file
24195         name is missing.
24196
24197 2006-08-12  Karl Berry  <karl@gnu.org>
24198
24199         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
24200         remove, these originate in gnulib now.
24201
24202 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24203
24204         * doc/Makefile (standards.info standards.html standards.dvi):
24205         Also depend on make-stds.texi.
24206
24207 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
24208
24209         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
24210         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
24211
24212         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
24213         in wchar_t.  Problem reported by Eric Blake.
24214
24215         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
24216         LEN is smaller than SIZE.  Suggested by Bruno Haible.
24217         Also, help the compiler to keep LEN in a register.
24218
24219 2006-08-11  Eric Blake  <ebb9@byu.net>
24220
24221         * users.txt: Sort.  Add tar.
24222
24223 2006-08-11  Bruno Haible  <bruno@clisp.org>
24224
24225         * users.txt: New file.
24226
24227 2006-08-11  Bruno Haible  <bruno@clisp.org>
24228
24229         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
24230         before <wchar.h>. Needed for OSF/1 and BSD/OS.
24231
24232 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
24233
24234         * modules/snprintf (Depends-on): Remove minmax.
24235         (Maintainer): Add self and Bruno.
24236
24237 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
24238
24239         * lib/.cppi-disable: Add snprintf.h, socket_.h.
24240         * lib/snprintf.c: Include <errno.h> and <limits.h>.
24241         (EOVERFLOW): Define if the system does not.
24242         Do not include "minmax.h"; it wasn't used.
24243         (snprintf): Don't assume size_t promotes to an unsigned type.
24244         Fix bug when generated string was too long for the buffer: the
24245         buffer's contents are supposed to be the initial prefix of the
24246         output.  Don't assume vasnprintf returns EOVERFLOW if the size
24247         exceeds INT_MAX; do the check ourselves.
24248
24249         Import the following changes from libc:
24250
24251         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
24252
24253         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
24254         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
24255         set wc to the byte which couldn't be converted.
24256         (re_string_reconstruct): Don't clear valid_raw_len before calling
24257         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
24258         tip_context using re_string_context_at.
24259
24260         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
24261
24262         * lib/posix/regex.h: g++ still cannot handled [restrict].
24263
24264         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
24265
24266         * lib/posix/regex.h: Remove special handling for VMS.
24267
24268 2006-08-10  Jim Meyering  <jim@meyering.net>
24269
24270         * modules/same-inode: New module.
24271         * modules/dev-ino: New module.
24272         * modules/cycle-check: Depend on these modules, rather than simply
24273         including their .h files.
24274         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
24275         required via m4/cycle-check.m4.
24276         * modules/same: Depend on new same-inode module, rather than
24277         including same-inode.h.
24278         * modules/chdir-safer: New file.
24279
24280         * modules/chown (Depends-on): Add stat-macros.
24281
24282 2006-08-10  Jim Meyering  <jim@meyering.net>
24283
24284         * m4/cycle-check.m4: New file.
24285         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
24286         * m4/dev-ino.m4, m4/same-inode.m4: New files.
24287
24288 2006-08-10  Eric Blake  <ebb9@byu.net>
24289
24290         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
24291         in from original proposal.
24292
24293 2006-08-10  Eric Blake  <ebb9@byu.net>
24294         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
24295
24296         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
24297         namespace.
24298
24299 2006-08-10  Bruno Haible  <bruno@clisp.org>
24300
24301         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
24302         as well.
24303
24304 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
24305
24306         Sync from coreutils.
24307
24308         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
24309
24310         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
24311         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
24312
24313 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
24314
24315         * modules/restrict: Remove; no longer needed now that we assume
24316         Autoconf 2.59 or later.
24317         * MODULES.html.sh: Remove 'restrict'.
24318         * modules/argp (Depends-on): Remove 'restrict'.
24319         * modules/base64 (Depends-on): Likewise.
24320         * modules/gc (Depends-on): Likewise.
24321         * modules/getaddrinfo (Depends-on): Likewise.
24322         * modules/glob (Depends-on): Likewise.
24323         * modules/inet_ntop (Depends-on): Likewise.
24324         * modules/inet_pton (Depends-on): Likewise.
24325         * modules/memxor (Depends-on): Likewise.
24326         * modules/regex (Depends-on): Likewise.
24327         * modules/strtok_r (Depends-on): Likewise.
24328         * modules/time_r (Depends-on): Likewise.
24329
24330 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
24331
24332         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
24333         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
24334         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
24335         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
24336         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
24337         * m4/memxor.m4 (gl_MEMXOR): Likewise.
24338         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
24339         gl_C_RESTRICT replaced by AC_C_RESTRICT.
24340
24341         Merge from coreutils.
24342         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
24343         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
24344         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
24345         * m4/time_r.m4 (gl_TIME_R): Likewise.
24346
24347 2006-08-09  Karl Berry  <karl@gnu.org>
24348
24349         * config/srclist.txt: no more gettext-tools, per Bruno.
24350
24351 2006-08-08  Eric Blake  <ebb9@byu.net>
24352
24353         * modules/verror: New module.
24354         * MODULES.html.sh: Document it.
24355
24356 2006-08-08  Eric Blake  <ebb9@byu.net>
24357
24358         * lib/verror.h, lib/verror.c: New files.
24359
24360 2006-08-08  Eric Blake  <ebb9@byu.net>
24361
24362         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
24363         verror_at_line output complies with GNU Coding Standards even when
24364         file is NULL.
24365
24366 2006-08-07  Bruno Haible  <bruno@clisp.org>
24367
24368         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
24369         versions of AIX.
24370         Reported by Ralf Wildenhues.
24371
24372 2006-08-07  Bruno Haible  <bruno@clisp.org>
24373
24374         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
24375         in an AC_DEFUN. Needed so that the autoconf snippets can use
24376         AC_REQUIRE.
24377
24378 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24379
24380         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
24381         Initialize pkgdata_DATA.
24382         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
24383         overriding it.
24384
24385 2006-08-06  Eric Blake  <ebb9@byu.net>
24386
24387         * lib/error.h: Fold in some upstream changes from glibc.
24388         * lib/error.c: Likewise.
24389
24390 2006-08-04  Bruno Haible  <bruno@clisp.org>
24391
24392         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
24393         Make the mostlyclean-local rule depend on mostlyclean-generic.
24394         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
24395
24396 2006-07-31  Bruno Haible  <bruno@clisp.org>
24397
24398         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
24399         <stdlib.h>, <string.h>.
24400
24401 2006-07-30  Bruno Haible  <bruno@clisp.org>
24402
24403         * modules/readlink (License): Change to LGPL.
24404
24405 2006-07-30  Bruno Haible  <bruno@clisp.org>
24406
24407         * modules/javaversion (Makefile.am): Distribute javaversion.java and
24408         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
24409         set PKGDATADIR to point to it.
24410
24411 2006-07-30  Bruno Haible  <bruno@clisp.org>
24412
24413         * modules/csharpexec (configure.ac): Comment out macro invocation.
24414         * modules/javaexec (configure.ac): Likewise.
24415         * modules/javacomp-script (configure.ac): Likewise.
24416
24417         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
24418
24419 2006-07-30  Bruno Haible  <bruno@clisp.org>
24420
24421         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
24422         linked-list.
24423
24424 2006-07-30  Bruno Haible  <bruno@clisp.org>
24425
24426         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
24427
24428 2006-07-30  Bruno Haible  <bruno@clisp.org>
24429
24430         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
24431         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
24432         get removed.
24433
24434 2006-07-29  Bruno Haible  <bruno@clisp.org>
24435
24436         Make it possible for gnulib-tool to work with locally modified or
24437         augmented gnulib repositories.
24438         * gnulib-tool (func_usage): Document --local-dir option.
24439         (local_gnulib_dir): New variable.
24440         Handle --local-dir option.
24441         (func_lookup_file): New function.
24442         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
24443         (func_get_description, func_get_filelist, func_get_description,
24444         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
24445         func_get_automake_snippet, func_get_include_directive,
24446         func_get_license, func_get_maintainer): Use func_lookup_file.
24447         (func_import, func_create_testdir): Use func_lookup_file.
24448
24449 2006-07-29  Bruno Haible  <bruno@clisp.org>
24450
24451         * modules/setenv (Depends-on): Add unistd.
24452
24453 2006-07-29  Bruno Haible  <bruno@clisp.org>
24454
24455         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
24456
24457 2006-07-29  Bruno Haible  <bruno@clisp.org>
24458
24459         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
24460
24461 2006-07-29  Bruno Haible  <bruno@clisp.org>
24462
24463         * gnulib-tool (import, update): If there is no Makefile.am, look at
24464         aclocal.m4, instead of bailing out.
24465
24466 2006-07-29  Bruno Haible  <bruno@clisp.org>
24467
24468         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
24469         Categorize the options by when they are useful.
24470
24471 2006-07-29  Bruno Haible  <bruno@clisp.org>
24472
24473         * gnulib-tool (func_usage): Document option --no-libtool.
24474         Handle option --no-libtool.
24475         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
24476         for changed semantics of $libtool variable.
24477         (func_import): Likewise. If libtool is not used, show this through
24478         an option --no-libtool.
24479         (func_create_testdir): Update.
24480
24481 2006-07-29  Bruno Haible  <bruno@clisp.org>
24482
24483         * gnulib-tool (func_import): Extend error message about missing
24484         --doc-base.
24485
24486 2006-07-29  Bruno Haible  <bruno@clisp.org>
24487
24488         * gnulib-tool (func_import): Don't create the $docbase directory if
24489         there is no file to store there.
24490
24491 2006-07-29  Bruno Haible  <bruno@clisp.org>
24492
24493         * gnulib-tool (autoconf_minversion): If a --dir option is given and
24494         relevant, look for configure.ac there, not in the current directory.
24495         Also use a simple search for AC_PREREQ, not "autoconf --trace".
24496
24497 2006-07-29  Bruno Haible  <bruno@clisp.org>
24498
24499         * gnulib-tool (SORT): New variable.
24500         (func_usage): Undocument --assume-autoconf option.
24501         Remove --assume-autoconf option handling.
24502         (autoconf_minversion): Determine from the contents of configure.ac.
24503         (func_import): Remove autoconf_minversion handling.
24504         Suggested by Eric Blake.
24505
24506 2006-07-29  Bruno Haible  <bruno@clisp.org>
24507
24508         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
24509
24510 2006-07-29  Bruno Haible  <bruno@clisp.org>
24511
24512         * config/srclist.txt (*setenv.[ch]): Remove rules.
24513
24514 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
24515
24516         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
24517
24518 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
24519
24520         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
24521         arpa/inet.h.
24522
24523 2006-07-28  Simon Josefsson  <jas@extundo.com>
24524
24525         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
24526         * modules/inet_pton (Depends-on): Likewise.
24527
24528 2006-07-28  Simon Josefsson  <jas@extundo.com>
24529
24530         * m4/netinet_in_h.m4: New file.
24531
24532 2006-07-28  Simon Josefsson  <jas@extundo.com>
24533
24534         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
24535         #include's.
24536
24537 2006-07-28  Simon Josefsson  <jas@extundo.com>
24538
24539         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
24540         #include's.
24541
24542 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
24543
24544         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
24545         setgid on directories only if they set these bits.
24546         * lib/modechange.h: Remove obsolete comment about masks.
24547
24548 2006-07-28  Eric Blake  <ebb9@byu.net>
24549
24550         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
24551         macro expansion.
24552
24553 2006-07-28  Bruno Haible  <bruno@clisp.org>
24554
24555         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
24556
24557 2006-07-28  Bruno Haible  <bruno@clisp.org>
24558
24559         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
24560
24561 2006-07-28  Bruno Haible  <bruno@clisp.org>
24562
24563         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
24564         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
24565         Define fallbacks.
24566         Avoids link error on FreeBSD 4.x.
24567         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
24568
24569         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
24570         encoding.
24571         * lib/mbswidth.c (iswcntrl): Likewise.
24572
24573 2006-07-27  Bruno Haible  <bruno@clisp.org>
24574
24575         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
24576         test.
24577
24578 2006-07-27  Bruno Haible  <bruno@clisp.org>
24579
24580         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
24581         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
24582         defined.
24583
24584 2006-07-26  Eric Blake  <ebb9@byu.net>
24585
24586         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
24587
24588 2006-07-26  Eric Blake  <ebb9@byu.net>
24589
24590         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
24591         like mingw that lack mkstemp.
24592         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
24593         avoid compilation warning on mingw.
24594
24595 2006-07-26  Bruno Haible  <bruno@clisp.org>
24596
24597         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
24598         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
24599         INT_FAST*_MIN, INTPTR_MIN.
24600
24601 2006-07-25  Bruno Haible  <bruno@clisp.org>
24602
24603         * modules/version-etc (Depends-on): Add stdarg.
24604
24605 2006-07-25  Bruno Haible  <bruno@clisp.org>
24606
24607         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
24608         complex commands.
24609
24610 2006-07-25  Bruno Haible  <bruno@clisp.org>
24611
24612         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
24613         defined in <stdarg.h> or config.h.
24614
24615 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
24616
24617         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
24618         (gl_STDIO_SAFER): Remove.
24619
24620 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
24621
24622         * MODULES.html.sh (File stream based Input/Output):
24623         Add fopen-safer, tmpfile-safer; remove stdio-safer.
24624         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
24625         * modules/fopen-safer, modules/tmpfile-safer: New files.
24626         * modules/stdio-safer: Remove.
24627
24628 2006-07-24  Bruno Haible  <bruno@clisp.org>
24629
24630         * modules/tmpdir: New file.
24631         * MODULES.html.sh (File system functions): Add it.
24632
24633 2006-07-24  Bruno Haible  <bruno@clisp.org>
24634
24635         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
24636         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
24637
24638 2006-07-24  Bruno Haible  <bruno@clisp.org>
24639
24640         * modules/clean-temp: New file.
24641
24642 2006-07-24  Bruno Haible  <bruno@clisp.org>
24643
24644         * m4/tmpdir.m4: New file, from GNU gettext.
24645
24646 2006-07-24  Bruno Haible  <bruno@clisp.org>
24647
24648         * lib/tmpdir.h: New file, from GNU gettext.
24649         * lib/tmpdir.c: New file, from GNU gettext.
24650
24651 2006-07-24  Bruno Haible  <bruno@clisp.org>
24652
24653         * lib/clean-temp.h: New file, from GNU gettext.
24654         * lib/clean-temp.c: New file, from GNU gettext.
24655
24656 2006-07-23  Eric Blake  <ebb9@byu.net>
24657
24658         * modules/stdio-safer (Files): Add tmpfile-safer.c.
24659         (Depends-on): Add binary-io.
24660
24661 2006-07-23  Eric Blake  <ebb9@byu.net>
24662
24663         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
24664
24665 2006-07-23  Eric Blake  <ebb9@byu.net>
24666
24667         * lib/tmpfile-safer.c: New file.
24668         * lib/stdio-safer.h (fopen_safer): Add prototype.
24669         * lib/stdio--.h (tmpfile): Make safer.
24670
24671 2006-07-23  Bruno Haible  <bruno@clisp.org>
24672
24673         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
24674         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
24675         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
24676         gl_linked_remove_at): Use it.
24677
24678 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
24679         and Simon Josefsson <jas@extundo.com>
24680
24681         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
24682
24683         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
24684
24685 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
24686
24687         * modules/close-stream: New file.
24688         * modules/closeout (Description): Make it clear that it exits
24689         with a diagnostic on error.
24690         (Depends-on): Add close-stream.  Remove fpending, stdbool.
24691         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
24692
24693 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
24694
24695         * m4/close-stream.m4: New file.
24696
24697 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
24698
24699         * lib/close-stream.c, lib/close-stream.h: New files.
24700
24701 2006-07-22  Bruno Haible  <bruno@clisp.org>
24702
24703         Merge from GNU gettext 0.15.
24704
24705         2006-05-01  Bruno Haible  <bruno@clisp.org>
24706
24707                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
24708
24709         2006-07-22  Bruno Haible  <bruno@clisp.org>
24710
24711                 * modules/javaversion: New file.
24712                 * MODULES.html.sh (Java): Add javaversion.
24713
24714         2006-03-12  Bruno Haible  <bruno@clisp.org>
24715
24716                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
24717
24718         2005-12-04  Bruno Haible  <bruno@clisp.org>
24719
24720                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
24721                 (untested).
24722
24723         2006-06-21  Bruno Haible  <bruno@clisp.org>
24724
24725                 Avoid warnings from recent versions of mcs.
24726                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
24727                 -o, -L, -r any more. Use options documented since mcs-1.0
24728                 instead. Similarly for -g.
24729
24730         2005-12-04  Bruno Haible  <bruno@clisp.org>
24731
24732                 * build-aux/csharpcomp.sh.in: Suffix for resources is
24733                 .resources, not .resource.
24734
24735         2005-07-09  Bruno Haible  <bruno@clisp.org>
24736
24737                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
24738                 add a .dll suffix.
24739                 Reported by Mark Junker <mjscod@gmx.de>.
24740
24741         2006-07-22  Bruno Haible  <bruno@clisp.org>
24742
24743                 * modules/gettext: Upgrade to gettext-0.15.
24744                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
24745                 m4/visibility.m4.
24746                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
24747
24748 2006-07-22  Bruno Haible  <bruno@clisp.org>
24749
24750         Merge from GNU gettext 0.15.
24751
24752         2006-03-25  Bruno Haible  <bruno@clisp.org>
24753
24754                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
24755
24756         2006-07-21  Bruno Haible  <bruno@clisp.org>
24757
24758                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
24759                 "1.1".
24760
24761         2006-05-09  Bruno Haible  <bruno@clisp.org>
24762
24763                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
24764                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
24765                 for the conftestver execution.
24766
24767         2006-05-01  Bruno Haible  <bruno@clisp.org>
24768
24769                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
24770                 optional target-version argument. Verify that the compiler
24771                 groks source of the specified source-version, or add -source
24772                 option as necessary. Verify that the compiler produces
24773                 bytecode in the specified target-version, or add -target and
24774                 -source options as necessary. Make the result of the test
24775                 available as variable CONF_JAVAC. Also log error output in
24776                 config.log.
24777
24778         2006-03-11  Bruno Haible  <bruno@clisp.org>
24779
24780                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
24781
24782         2006-05-09  Bruno Haible  <bruno@clisp.org>
24783
24784                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
24785                 CLASSPATH_SEPARATOR to a semicolon.
24786
24787         2006-03-12  Bruno Haible  <bruno@clisp.org>
24788
24789                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
24790                 available as variable CONF_JAVA, for subsequent autoconf
24791                 tests. Also log error output in config.log.
24792
24793         2006-07-19  Bruno Haible  <bruno@clisp.org>
24794
24795                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
24796                 that getline works on glibc2 systems. Needed to avoid trouble
24797                 in relocatable.c.
24798                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
24799
24800         2005-12-04  Bruno Haible  <bruno@clisp.org>
24801
24802                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
24803                 launcher (untested).
24804
24805         2005-12-04  Bruno Haible  <bruno@clisp.org>
24806
24807                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
24808
24809         2006-07-22  Bruno Haible  <bruno@clisp.org>
24810
24811                 * gettext.m4: Update from GNU gettext-0.15.
24812                 * nls.m4: Likewise.
24813                 * po.m4: Likewise.
24814                 * inttypes-pri.m4: Likewise.
24815                 * inttypes-h.m4: Renamed from inttypes.m4.
24816                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
24817
24818 2006-07-22  Bruno Haible  <bruno@clisp.org>
24819
24820         Merge from GNU gettext 0.15.
24821
24822         2005-07-05  Bruno Haible  <bruno@clisp.org>
24823
24824                 * printf-args.c (printf_fetchargs): Work around broken
24825                 definition of wint_t on mingw.
24826
24827         2005-02-12  Bruno Haible  <bruno@clisp.org>
24828
24829                 * xallocsa.h: Add extern "C" for C++.
24830
24831         2006-05-17  Bruno Haible  <bruno@clisp.org>
24832
24833                 Cygwin portability.
24834                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
24835
24836         2006-04-30  Bruno Haible  <bruno@clisp.org>
24837
24838                 * progreloc.c: Include <mach-o/dyld.h> if available.
24839                 (find_executable): Use _NSGetExecutablePath when possible.
24840
24841         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
24842
24843                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
24844                 function.
24845
24846         2005-12-29  Bruno Haible  <bruno@clisp.org>
24847
24848                 * progreloc.c (set_program_name_and_installdir): Fix
24849                 compilation error.
24850
24851         2005-12-04  Bruno Haible  <bruno@clisp.org>
24852
24853                 Cygwin portability.
24854                 * progreloc.c: Include <windows.h> also on Cygwin.
24855                 (find_executable): Add support for Cygwin.
24856                 (set_program_name_and_installdir): Handle also platforms with
24857                 nonempty EXEEXT.
24858
24859         2006-07-11  Bruno Haible  <bruno@clisp.org>
24860
24861                 * javacomp.c: Fix a comment.
24862                 Reported by Jim Meyering.
24863
24864         2006-04-30  Bruno Haible  <bruno@clisp.org>
24865
24866                 * javacomp.h (compile_java_class): Add source_version,
24867                 target_version arguments.
24868                 * javacomp.c: Rewritten to choose only a compiler that
24869                 respects the specified source_version and target_version.
24870
24871         2006-06-27  Bruno Haible  <bruno@clisp.org>
24872
24873                 Assume correct S_ISDIR macro.
24874                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
24875
24876         2006-07-22  Bruno Haible  <bruno@clisp.org>
24877
24878                 * javaversion.h: New file, from GNU gettext.
24879                 * javaversion.c: New file, from GNU gettext.
24880                 * javaversion.java: New file, from GNU gettext.
24881                 * javaversion.class: New file, from GNU gettext.
24882
24883         2006-05-17  Bruno Haible  <bruno@clisp.org>
24884
24885                 Cygwin portability.
24886                 * javaexec.c (execute_java_class): Test for jview program
24887                 also on Cygwin.
24888
24889         2006-04-09  Bruno Haible  <bruno@clisp.org>
24890
24891                 * fatal-signal.c: Don't include string.h.
24892                 (at_fatal_signal): Use a copying loop instead of memcpy.
24893
24894         2005-12-04  Bruno Haible  <bruno@clisp.org>
24895
24896                 * csharpexec.c: Add support for 'clix' launcher (untested).
24897                 (execute_csharp_using_sscli): New function.
24898                 (execute_csharp_program): Call it.
24899
24900         2006-06-21  Bruno Haible  <bruno@clisp.org>
24901
24902                 Avoid warnings from recent versions of mcs.
24903                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
24904                 -o, -L, -r any more. Use options documented since mcs-1.0
24905                 instead. Similarly for -g.
24906
24907         2005-07-09  Bruno Haible  <bruno@clisp.org>
24908
24909                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
24910                 add a .dll suffix.
24911                 Reported by Mark Junker <mjscod@gmx.de>.
24912
24913         2006-06-17  Bruno Haible  <bruno@clisp.org>
24914
24915                 * config.charset: Update for NetBSD 3.0.
24916
24917         2006-05-17  Bruno Haible  <bruno@clisp.org>
24918
24919                 Cygwin portability.
24920                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
24921
24922         2006-05-16  Bruno Haible  <bruno@clisp.org>
24923
24924                 * localcharset.c [CYGWIN]: Include <windows.h>.
24925                 (get_charset_aliases): For Cygwin, return the same CPxxx
24926                 aliases list as under WIN32.
24927                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
24928                 the environment variables. Fall back to GetACP().
24929
24930         2006-04-05  Bruno Haible  <bruno@clisp.org>
24931
24932                 * config.charset: Update Juan Manuel Guerrero's address.
24933
24934         2005-02-12  Bruno Haible  <bruno@clisp.org>
24935
24936                 * allocsa.h: Add extern "C" for C++.
24937
24938         2005-02-10  Bruno Haible  <bruno@clisp.org>
24939
24940                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
24941                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
24942
24943         2006-07-22  Bruno Haible  <bruno@clisp.org>
24944
24945                 * gettext.h: Update to GNU gettext-0.15.
24946
24947 2006-07-22  Bruno Haible  <bruno@clisp.org>
24948
24949         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
24950         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
24951         lib-prefix.m4, longdouble.m4, ssize_t.m4.
24952
24953 2006-07-21  Eric Blake  <ebb9@byu.net>
24954
24955         * modules/stdlib-safer: New file.
24956         * MODULES.html.sh (File stream based Input/Output): Add
24957         stdlib-safer.
24958
24959 2006-07-21  Eric Blake  <ebb9@byu.net>
24960
24961         * lib/stdlib-safer.h: New file from coreutils, required by
24962         stdlib--.h.
24963
24964 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
24965
24966         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
24967
24968 2006-07-20  Bruno Haible  <bruno@clisp.org>
24969
24970         * gnulib-tool: Recognize new option --assume-autoconf.
24971         (autoconf_minversion): New variable.
24972         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
24973
24974 2006-07-20  Bruno Haible  <bruno@clisp.org>
24975
24976         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
24977
24978 2006-07-19  Derek R. Price  <derek@ximbiot.com>
24979
24980         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
24981         Reindent and repaginate.
24982
24983 2006-07-19  Derek Price  <derek@ximbiot.com>
24984
24985         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
24986         Correct grammar.
24987
24988 2006-07-17  Bruno Haible  <bruno@clisp.org>
24989
24990         * modules/list: New file.
24991         * modules/array-list: New file.
24992         * modules/carray-list, modules/carray-list-tests: New files.
24993         * modules/linked-list, modules/linked-list-tests: New files.
24994         * modules/avltree-list, modules/avltree-list-tests: New files.
24995         * modules/rbtree-list, modules/rbtree-list-tests: New files.
24996         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
24997         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
24998         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
24999         * modules/oset: New file.
25000         * modules/array-oset: New file.
25001         * modules/avltree-oset, modules/avltree-oset-tests: New files.
25002         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
25003         * tests/test-carray_list.c: New file.
25004         * tests/test-linked_list.c: New file.
25005         * tests/test-avltree_list.c: New file.
25006         * tests/test-rbtree_list.c: New file.
25007         * tests/test-linkedhash_list.c: New file.
25008         * tests/test-avltreehash_list.c: New file.
25009         * tests/test-rbtreehash_list.c: New file.
25010         * tests/test-avltree_oset.c: New file.
25011         * tests/test-rbtree_oset.c: New file.
25012         * MODULES.html.sh (Container data structures): New section.
25013
25014 2006-07-17  Bruno Haible  <bruno@clisp.org>
25015
25016         * m4/gl_list.m4: New file.
25017
25018 2006-07-17  Bruno Haible  <bruno@clisp.org>
25019
25020         * lib/gl_list.h: New file.
25021         * lib/gl_list.c: New file.
25022         * lib/gl_array_list.h: New file.
25023         * lib/gl_array_list.c: New file.
25024         * lib/gl_carray_list.h: New file.
25025         * lib/gl_carray_list.c: New file.
25026         * lib/gl_linked_list.h: New file.
25027         * lib/gl_linked_list.c: New file.
25028         * lib/gl_anylinked_list1.h: New file.
25029         * lib/gl_anylinked_list2.h: New file.
25030         * lib/gl_avltree_list.h: New file.
25031         * lib/gl_avltree_list.c: New file.
25032         * lib/gl_anyavltree_list1.h: New file.
25033         * lib/gl_anyavltree_list2.h: New file.
25034         * lib/gl_rbtree_list.h: New file.
25035         * lib/gl_rbtree_list.c: New file.
25036         * lib/gl_anyrbtree_list1.h: New file.
25037         * lib/gl_anyrbtree_list2.h: New file.
25038         * lib/gl_anytree_list1.h: New file.
25039         * lib/gl_anytree_list2.h: New file.
25040         * lib/gl_linkedhash_list.h: New file.
25041         * lib/gl_linkedhash_list.c: New file.
25042         * lib/gl_anyhash_list1.h: New file.
25043         * lib/gl_anyhash_list2.h: New file.
25044         * lib/gl_avltreehash_list.h: New file.
25045         * lib/gl_avltreehash_list.c: New file.
25046         * lib/gl_rbtreehash_list.h: New file.
25047         * lib/gl_rbtreehash_list.c: New file.
25048         * lib/gl_anytreehash_list1.h: New file.
25049         * lib/gl_anytreehash_list2.h: New file.
25050
25051         * lib/gl_oset.h: New file.
25052         * lib/gl_oset.c: New file.
25053         * lib/gl_array_oset.h: New file.
25054         * lib/gl_array_oset.c: New file.
25055         * lib/gl_avltree_oset.h: New file.
25056         * lib/gl_avltree_oset.c: New file.
25057         * lib/gl_rbtree_oset.h: New file.
25058         * lib/gl_rbtree_oset.c: New file.
25059         * lib/gl_anytree_oset.h: New file.
25060
25061 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
25062
25063         * m4/mkancesdirs.m4: New file.
25064         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
25065         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
25066         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
25067         it.
25068
25069 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
25070
25071         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
25072         * lib/mkancesdirs.h: New files.
25073         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
25074         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
25075         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
25076         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
25077         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
25078         callers changed.  Revamp internals significantly, by not
25079         attempting to create directories that are temporarily more
25080         permissive than the final results.  Do not attempt to use
25081         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
25082         This removes some race conditions, fixes some bugs, and simplifies
25083         things.  Use new dirchownmod function to do owner and mode changes.
25084         * lib/mkdir-p.h: Likewise.
25085         * lib/modechange.c (octal_to_mode): New function.
25086         (struct mode_change): New member mentioned.
25087         (make_node_op_equals): New arg mentioned.  All callers changed.
25088         (mode_compile): Keep track of which mode bits the user has explicitly
25089         mentioned.
25090         (mode_adjust): New arg DIR, so that we implement the X op correctly.
25091         New arg PMODE_BITS, to keep track of which mode bits the user
25092         mentioned; it treats S_ISUID and S_ISGID speciall.
25093         All callers changed.
25094         * lib/modechange.h: Likewise.
25095
25096 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
25097
25098         * MODULES.html.sh: Add mkancestors.
25099         * modules/mkancesdirs: New module.
25100         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
25101         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
25102         The chdir-safer and afs files are now orphans; I'll remove them
25103         unless someone speaks up.
25104         Add lib/dirchownmod.c, lib/dirchownmod.h.
25105         (Depends-on): Remove alloca, chown, save-cwd, dirname.
25106         Add lchown, mkancesdirs.
25107         (Maintainer): Add self.
25108
25109 2006-07-15  Karl Berry  <karl@gnu.org>
25110
25111         * gnulib-tool: help message wording/arrangement.
25112
25113 2006-07-14  Simon Josefsson  <jas@extundo.com>
25114
25115         * doc/gnulib.texi (Libtool and Windows): New section.
25116
25117 2006-07-12  Simon Josefsson  <jas@extundo.com>
25118
25119         * modules/gendocs (License): Fix license, approved by Karl.
25120
25121 2006-07-12  Eric Blake  <ebb9@byu.net>
25122
25123         * MODULES.html.sh: Add gendocs.
25124
25125 2006-07-11  Eric Blake  <ebb9@byu.net>
25126
25127         * modules/fdl: New module, to install doc/fdl.texi.
25128         * MODULES.html.sh: Add new section for documentation modules.
25129         * gnulib-tool: Avoid space-tab.
25130         (--doc-base): New option, to manage files from doc.
25131
25132 2006-07-11  Eric Blake  <ebb9@byu.net>
25133
25134         * m4/absolute-header.m4: Fix comments to match recent change.
25135
25136 2006-07-11  Eric Blake  <ebb9@byu.net>
25137
25138         * gnulib-tool: List --doc-base before --tests-base.
25139
25140 2006-07-11  Derek R. Price  <derek@ximbiot.com>
25141
25142         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
25143
25144 2006-07-11  Bruno Haible  <bruno@clisp.org>
25145
25146         * README: Mention where to put documentation.
25147
25148 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25149
25150         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
25151
25152 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
25153
25154         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
25155         to stdint.m4.
25156
25157 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
25158
25159         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
25160         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
25161         "no/such/file/stdint.h" when there is no such file, so that
25162         the resulting C code can be parsed by dodgy compilers.
25163         Problems reported by Bob Proulx.
25164
25165 2006-07-10  Derek R. Price  <derek@ximbiot.com>
25166
25167         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
25168         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
25169         macros into the GNU _D_EXACT_NAMLEN.
25170         * lib/savedir.c:  Likewise.
25171         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
25172
25173 2006-07-10  Derek R. Price  <derek@ximbiot.com>
25174         and Paul Eggert  <eggert@cs.ucla.edu>
25175
25176         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
25177         * m4/savedir.m4:
25178         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
25179         macros into the GNU _D_EXACT_NAMLEN.
25180
25181 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
25182
25183         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
25184         around the absolute name, to work around a problem with the HP-UX
25185         11.23 native C compiler, reported by Bob Proulx.
25186
25187 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
25188
25189         * doc/maintain.texi, make-stds.texi: Sync from
25190         <http://savannah.gnu.org/projects/gnustandards>.
25191
25192 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
25193
25194         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
25195
25196 2006-07-09  Jim Meyering  <jim@meyering.net>
25197
25198         * m4/glob.m4: Remove a doubled word in a comment.
25199
25200 2006-07-09  Jim Meyering  <jim@meyering.net>
25201
25202         * lib/argp-pv.c: Remove a doubled word in a comment.
25203         * lib/check-version.c (check_version): Likewise.
25204         * lib/javacomp.c (compile_java_class): Likewise.
25205
25206 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
25207
25208         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
25209         for the benefit of people using Autoconf 2.60.  If you want to
25210         support older Autoconf versions you can copy m4/onceonly_2_57.m4
25211         (or m4/onceonly.m4, if pre-2.57) manually.
25212
25213 2006-07-08  Jim Meyering  <jim@meyering.net>
25214
25215         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
25216         comment.
25217         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
25218         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
25219         comment.
25220
25221 2006-07-08  Jim Meyering  <jim@meyering.net>
25222
25223         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
25224
25225 2006-07-07  Simon Josefsson  <jas@extundo.com>
25226
25227         * tests/test-crc.c: Change expected crc value, the test vector
25228         were probably computed using the old broken crc.c?
25229
25230 2006-07-06  Simon Josefsson  <jas@extundo.com>
25231
25232         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
25233         now the canonical place for the M4 file).
25234
25235         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
25236         from the sys_socket dependency now.
25237
25238         * modules/inet_pton (Files): Ditto.
25239
25240         * modules/inet_ntop (Files): Ditto.
25241
25242 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
25243
25244         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
25245         not gl_PREREQ_GETUSERSHELL.
25246
25247 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25248
25249         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
25250         with only one argument, for Autoconf 2.60.
25251         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
25252         expand to nothing, so add a shell command to avoid syntax error.
25253         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
25254
25255 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25256
25257         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
25258
25259 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
25260
25261         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
25262         no longer needed.  Check for isblank decl.
25263         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
25264         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
25265         of existence.
25266
25267 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
25268
25269         * lib/getloadavg.c: Use __VMS, not VMS.
25270         * lib/getopt.c: Likewise.
25271         * lib/getpagesize.h: Likewise.
25272         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
25273         and probably does not work.
25274
25275 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
25276
25277         * lib/.cppi-disable: Add wcwidth.
25278         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
25279         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
25280         (ISGRAPH): Remove.  All uses changed to isgraph.
25281         (FOLD) [!defined _LIBC]: Remove special case.
25282         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
25283         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
25284         HAVE_ISBLANK.
25285         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
25286         case.
25287
25288 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
25289
25290         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
25291         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
25292         brackets.  Other minor changes to suppress some compiler
25293         warnings.
25294
25295 2006-07-06  Derek R. Price  <derek@ximbiot.com>
25296         and Paul Eggert  <eggert@cs.ucla.edu>
25297
25298         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
25299         of invoking obsolescent AC_HEADER_DIRENT macro.
25300         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
25301         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
25302         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
25303         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
25304         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
25305         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
25306         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
25307         * m4/readdir.m4: Remove; no longer needed.
25308
25309 2006-07-06  Derek R. Price  <derek@ximbiot.com>
25310         and Paul Eggert  <eggert@cs.ucla.edu>
25311
25312         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
25313         Don't worry about this obsolete case any more.
25314         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
25315         directories.
25316         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
25317         worry about this obsolete case any more.
25318         * lib/fts.c: Likewise.
25319         * lib/getcwd.c: Likewise.
25320         * lib/glob.h: Likewise.
25321         * lib/savedir.c: Likewise.
25322
25323 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
25324
25325         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
25326         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
25327         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
25328         needed.
25329         All uses removed.
25330         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
25331         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
25332         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
25333         needed.
25334         * m4/getdate.m4 (gl_GETDATE): Likewise.
25335         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
25336         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
25337         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
25338         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
25339         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
25340         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
25341         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
25342         needed.
25343
25344 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
25345
25346         * lib/memcasecmp.c: Include <limits.h>.
25347         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
25348         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
25349         Don't assume isdigit succeeds only on '0' through '9'.
25350
25351 2006-07-05  Eric Blake  <ebb9@byu.net>
25352
25353         * modules/getaddrinfo (Depends-on): Add snprintf.
25354
25355 2006-07-05  Eric Blake  <ebb9@byu.net>
25356
25357         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
25358         to avoid 'header present but could not be compiled' on cygwin.
25359
25360 2006-07-05  Eric Blake  <ebb9@byu.net>
25361
25362         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
25363         missing from netdb.h.
25364         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
25365
25366 2006-07-05  Derek R. Price  <derek@ximbiot.com>
25367
25368         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
25369         no longer needed.
25370         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
25371         * m4/getdate.m4 (gl_GETDATE): Likewise.
25372         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
25373         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
25374         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
25375         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
25376         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
25377
25378 2006-07-05  Derek R. Price  <derek@ximbiot.com>
25379
25380         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
25381         All uses of is_space replaced by isspace.
25382         * lib/exit.h: Don't talk about STDC_HEADERS.
25383         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
25384         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
25385         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
25386         replaced by isprint etc.
25387         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
25388         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
25389         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
25390         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
25391         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
25392         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
25393
25394 2006-07-05  Bruno Haible  <bruno@clisp.org>
25395
25396         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
25397         the function exists, before testing against AIX.
25398         Reported by Martin Lambers <marlam@marlam.de>.
25399
25400 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
25401
25402         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
25403         From Mark D. Baushke.
25404
25405 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
25406
25407         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
25408         to the absolute name, not just one, to bypass Sun C 5.8's
25409         "warning: #include of /usr/include/... may be non-portable".
25410
25411 2006-07-04  Eric Blake  <ebb9@byu.net>
25412
25413         * modules/dirname-tests: New test module.
25414         * tests/test-dirname.c: New file, replacing dirname.c
25415         TEST_DIRNAME section that was recently deleted.
25416
25417 2006-07-04  Bruno Haible  <bruno@clisp.org>
25418
25419         Assume ANSI C header files and <ctype.h> functions.
25420         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
25421         (mbsnwidth): Use isprint, iscntrl instead.
25422
25423 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
25424
25425         Merge from coreutils.
25426         * MODULES.html.sh: Add xstrtold.
25427         * modules/xstrtold: New file.
25428         * modules/cycle-check (Files): Add lib/same-inode.h.
25429         * modules/dirname (Files): Add m4/double-slash-root.m4.
25430         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
25431         * modules/mkdir-p (Files): Add lib/same-inode.h.
25432         * modules/same (Files): Add lib/same-inode.h.
25433
25434 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
25435
25436         * m4/absolute-header.m4: Renamed from full-header-path.m4.
25437         This is to keep the terminology clean; POSIX talks about
25438         "absolute pathnames", not "full pathnames", but the GNU
25439         Coding Standards say to use "path" for something else;
25440         so use "absolute" to keep both sides happy.
25441         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
25442         Set gl_absolute_header, not gl_full_header_path.
25443         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
25444         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
25445         All uses changed.
25446
25447         Merge from coreutils.
25448
25449         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
25450
25451         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
25452         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
25453         want to require the building of c-strtod.o.
25454         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
25455         needs -lm directly.
25456         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
25457
25458         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
25459
25460         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
25461         --as-needed option if available.  Problem reported by Albert Chin in
25462         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
25463         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
25464         cc merely issues a bunch of annoying warnings for --as-needed
25465         (this problem was reported by Bob Proulx).  Also, try linking with
25466         -lm to detect a bug in binutils 2.16 (this problem was reported
25467         by Ralf Wildenhues).
25468
25469         2006-06-18  Jim Meyering  <jim@meyering.net>
25470
25471         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
25472         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
25473         macro.
25474         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
25475         also check for glibc-2.4's abort-inducing bug.
25476
25477         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
25478         Low-probability clean-up should be to use rmdir to get rid of
25479         the just-created directory, not unlink.
25480
25481         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
25482         configure fail, and request a bug report to inform us about it.
25483         Add a comment that, barring reports to the contrary, in 2007 we'll
25484         assume ftruncate is universally available.
25485
25486         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
25487
25488         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
25489
25490         2006-03-12  Jim Meyering  <jim@meyering.net>
25491
25492         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
25493         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
25494         * m4/same.m4 (gl_SAME): Likewise.
25495         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
25496
25497         2006-03-11  Eric Blake  <ebb9@byu.net>
25498
25499         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
25500         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
25501         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
25502         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
25503
25504 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
25505
25506         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
25507         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
25508         reported by Mark D. Baushke, one in
25509         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
25510
25511         Merge from coreutils.
25512
25513         * lib/.cppi-disable: Add stdint_.h.
25514         * lib/.cvsignore: Add stdint.h.
25515
25516         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
25517
25518         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
25519         both double and long double versions.
25520         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
25521         * lib/xstrtold.c: New file.
25522         * lib/xstrtod.h (xstrtold): New decl.
25523
25524         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
25525
25526         * lib/filemode.c (setst): Remove.
25527         (strmode): Rewrite to avoid setst.  This makes the code shorter,
25528         (arguably) clearer, and the generated code is a bit smaller on my
25529         Debian GNU/Linux stable x86 host.
25530
25531         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
25532
25533         * lib/filemode.c: Include "filemode.h" first, to test the interface.
25534         Assume that filemode.h includes sys/types.h and sys/stat.h.
25535         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
25536         (ftypelet): Reorder to put common cases first, for efficiency.
25537         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
25538         to do 'M'.
25539         (strmode): Renamed from mode_string, and now stores 12 bytes instead
25540         of 10, for compatibility with FreeBSD.  All callers changed.
25541         (filemodestring): Now stores 12 bytes instead of 10, and sets file
25542         types that can't be deduced solely from st_mode.  First arg is now a
25543         const pointer.
25544         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
25545         (strmode): Renamed from mode_string.
25546         (filemodestring): New decl.
25547         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
25548         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
25549         needed.
25550         (S_ISPORT, S_ISWHT): New macros, if not already defined.
25551
25552         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
25553
25554         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
25555         fsusage.h now does that.  Include fsusage.h first, to test interface.
25556         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
25557         at most one method (the old code could have generated decls that
25558         didn't conform to C89, not that this was ever exercised).
25559         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
25560
25561         2006-03-19  Jim Meyering  <jim@meyering.net>
25562
25563         Work even in a chroot where d_ino values for entries in "/"
25564         don't match the stat.st_ino values for the same names.
25565         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
25566         number, iterate through all entries again, using lstat instead.
25567         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
25568         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
25569
25570         * lib/getcwd.c (__getcwd): Clarify a comment.
25571         Use memcpy in place of a call to strcpy.
25572
25573         2006-03-12  Jim Meyering  <jim@meyering.net>
25574
25575         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
25576         matches that of the current directory (which we're about to chdir ".."
25577         out of), then save the dev-ino of the parent, instead.
25578
25579         * lib/same-inode.h (SAME_INODE): New file/macro.
25580         * lib/chdir-safer.c (SAME_INODE): Remove definition.
25581         Include "same-inode.h", instead.
25582         * lib/same.c: Likewise.
25583         * lib/cycle-check.h: Include "same-inode.h".
25584         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
25585         * lib/cycle-check.c (SAME_INODE): Remove definition.
25586         * lib/root-dev-ino.h: Include "same-inode.h".
25587
25588         2006-03-11  Eric Blake  <ebb9@byu.net>
25589
25590         * lib/same.c (same_name): s/base_name/last_component/
25591         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
25592         * lib/filenamecat.c (file_name_concat): Likewise.
25593
25594         2006-03-11  Eric Blake  <ebb9@byu.net>,
25595                     Paul Eggert  <eggert@cs.ucla.edu>
25596
25597         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
25598         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
25599         drive prefix.
25600         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
25601         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
25602         (last_component): New method.
25603         * lib/dirname.c (dir_len): Determine when drive letters need a
25604         subsequent slash.  Preserve // when it is special.
25605         (dir_name): Don't append dot when drive letter is absolute.
25606         [TEST_DIRNAME]: Move into a full-blown gnulib test.
25607         * lib/basename.c (base_name): New semantics - malloc the result.
25608         Preserve // when it is special.  Preserve relative files that look
25609         like drive letters.
25610         (base_len): Preserve // when it is special.
25611         (last_component): New method, similar to old base_name semantics.
25612         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
25613         base_name.  Strip redundant slashes from ///.
25614
25615 2006-07-03  Jim Meyering  <jim@meyering.net>
25616
25617         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
25618         macro is used before the first cycle_check call.
25619
25620 2006-07-03  Eric Blake  <ebb9@byu.net>
25621
25622         * modules/dirname (Depends-on): Add xstrndup.
25623
25624 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
25625
25626         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
25627         test cases, so that config.log is a bit easier to follow.
25628
25629 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
25630
25631         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
25632         both are 64 bits, since this seems to be the tradition, and this
25633         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
25634         we ever run into a host that prefers long long to long in this
25635         case, we'll need another configure-time test.  Problem reported by
25636         Jim Meyering.
25637
25638 2006-07-02  Eric Blake  <ebb9@byu.net>
25639
25640         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
25641
25642 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
25643
25644         * modules/inttypes (Depends-on): No longer depends on stdint.
25645         * modules/stdint (Description): Say more about assumptions.
25646         Say that the fast types might differ.  Say macros are used.
25647         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
25648         (Makefile.am): Revise list of substituted symbols to match
25649         new stdint.m4.
25650         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
25651         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
25652         * tests/test-stdint.c (verify_same_types)
25653         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
25654         the code conforms to C99/C89.
25655         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
25656         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
25657
25658 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
25659
25660         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
25661         but fix a bug, by requiring at least 64 bits.
25662         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
25663         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
25664         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
25665         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG) Likewise.
25666
25667         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
25668         changes.  Make 2.59 a prerequisite.  Check and substitute for
25669         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
25670         inttypes.h.  Do not use special include files; just use the
25671         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
25672         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
25673         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
25674         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
25675         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
25676         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
25677         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
25678         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
25679         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
25680         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
25681         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
25682         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
25683         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
25684         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
25685         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
25686         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
25687         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
25688         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
25689         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
25690         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
25691         WINT_MAX.  Check for C99 conformance more strictly, by detecting
25692         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
25693         not check for things that C99 does not require, e.g., int8_t.  If
25694         a test isn't needed unless <stdint.h> isn't working, and is
25695         unlikely to be needed for any other reason, then don't do it
25696         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
25697         size_t, since we assume C89 freestanding at least.  Do not check
25698         for sig_atomic_t, wchar_t, or wint_t, since the code now does
25699         the right thing even if the types are not defined.  Instead use:
25700         (gl_STDINT_TYPE_PROPERTIES): New macro.
25701         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
25702         testing whether <sys/types.h> clashes, as Autoconf does this for
25703         us now.  All uses removed.
25704         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
25705         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
25706         (gl_CHECK_TYPE_SAME):
25707         Remove; no longer needed.
25708         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
25709         exists, since we'll return 0 anyway in that case.
25710         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
25711
25712 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
25713
25714         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
25715         possible collision with system files.
25716         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
25717         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
25718         WCHAR_MIN and WCHAR_MAX in this case.
25719         (<stddef.h>): Do not include; no longer needed.
25720         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
25721         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
25722         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
25723         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
25724         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
25725         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
25726         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
25727         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
25728         !defined(__c99))]: Include in this case too, since it's harmless
25729         now.
25730         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
25731         dangerous to do so.
25732         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
25733         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
25734         (_STDINT_MIN, _STDINT_MAX): New macros.
25735         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
25736         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
25737         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
25738         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
25739         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
25740         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
25741         macros, not typedefs; this simplifies things quite a bit.
25742         Use long int for all types narrower than int64_t.
25743         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
25744         Define in terms of long long int or int64_t or long int,
25745         not int64_t or int32_t.  This saves some compile-time testing.
25746         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
25747         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
25748         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
25749         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
25750         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
25751         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
25752         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
25753         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
25754         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
25755         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
25756         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
25757         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
25758         undef any previous version and define our own version, for
25759         simplicity and consistency with the new macros for types.
25760         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
25761         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
25762         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
25763         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
25764         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
25765         @WINT_T_SUFFIX@ to keep things simple here.
25766         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
25767         Simplify by assuming typical 8/16/32/64 host, since we're
25768         already doing that elsewhere anyway.
25769         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
25770         and assume long long int is 64 bits if available.  This
25771         speeds up 'configure'.
25772
25773 2006-07-01  Eric Blake  <ebb9@byu.net>
25774
25775         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
25776         Reported by Andreas Buening.
25777
25778 2006-07-01  Eric Blake  <ebb9@byu.net>
25779
25780         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
25781
25782 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
25783
25784         * lib/getaddrinfo.c: fixed typo
25785
25786 2006-06-29  Jim Meyering  <jim@meyering.net>
25787
25788         * modules/strftime (Maintainer): Add my name, since with the
25789         FPRINTFTIME changes strftime.c has forked from glibc.
25790
25791 2006-06-29  Eric Blake  <ebb9@byu.net>
25792
25793         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
25794
25795 2006-06-29  Eric Blake  <ebb9@byu.net>
25796
25797         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
25798
25799 2006-06-29  Eric Blake  <ebb9@byu.net>
25800
25801         * lib/stat_.h: New file.
25802
25803 2006-06-29  Eric Blake  <ebb9@byu.net>
25804
25805         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
25806         unused static function.
25807
25808 2006-06-29  Eric Blake  <ebb9@byu.net>
25809
25810         * doc/functions.texi (Function Portability): Document missing lstat
25811         on mingw.
25812
25813 2006-06-29  Eric Blake  <ebb9@byu.net>
25814
25815         * MODULES.html.sh: Add sys_stat.
25816         * modules/sys_stat: New module.
25817         * modules/mkstemp (Depends-on): Add sys_stat.
25818
25819 2006-06-29  Derek R. Price  <derek@ximbiot.com>
25820
25821         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
25822
25823 2006-06-29  Derek R. Price  <derek@ximbiot.com>
25824
25825         * m4/c-bs-a.m4: Removed.
25826
25827 2006-06-29  Derek R. Price  <derek@ximbiot.com>
25828
25829         * lib/strftime.c: Assume strftime() exists.
25830
25831 2006-06-29  Derek Price  <derek@ximbiot.com>
25832
25833         * modules/c-bs-a: Removed - \a is C89.
25834         * MODULES.html.sh: Remove c-bs-a.
25835
25836 2006-06-29  Bruno Haible  <bruno@clisp.org>
25837
25838         * modules/wcwidth (License): Change to LGPL.
25839
25840 2006-06-28  Simon Josefsson  <jas@extundo.com>
25841
25842         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
25843         on _WIN32.
25844
25845         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
25846         getnameinfo.
25847
25848 2006-06-28  Simon Josefsson  <jas@extundo.com>
25849
25850         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
25851
25852 2006-06-28  Simon Josefsson  <jas@extundo.com>
25853
25854         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
25855         functions there.  It will succeed on Windows XP, but on Windows
25856         2000 and (presumably) earlier, it will fail, and use the internal
25857         re-implementation.
25858         (use_win32_p): New function.
25859         (getaddrinfo): Use strtoul on servname, to support numeric ports.
25860         Support AI_NUMERICSERV to disable getservbyname.
25861         (getnameinfo): New function, only supports
25862         NI_NUMERICHOST|NI_NUMERICSERV for now.
25863
25864         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
25865         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
25866         getnameinfo.
25867
25868 2006-06-28  Eric Blake  <ebb9@byu.net>
25869
25870         * modules/wcwidth: New file.
25871         * modules/mbchar (Depends-on): Add wcwidth.
25872         * modules/mbswidth (Depends-on): Add wcwidth.
25873         * MODULES.html.sh: Add wcwidth.
25874
25875 2006-06-28  Eric Blake  <ebb9@byu.net>
25876
25877         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
25878         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
25879
25880 2006-06-28  Eric Blake  <ebb9@byu.net>
25881
25882         * lib/xvasprintf.h: Fix comments.
25883
25884 2006-06-28  Eric Blake  <ebb9@byu.net>
25885
25886         * lib/mbchar.h (wcwidth): Include wcwidth.h.
25887         * lib/mbswidth.c (wcwidth): Move from here...
25888         * lib/wcwidth.h: ...to this new file.
25889
25890 2006-06-28  Derek R. Price  <derek@ximbiot.com>
25891
25892         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
25893
25894         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
25895         it's obsolete.
25896         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
25897
25898 2006-06-28  Derek R. Price  <derek@ximbiot.com>
25899
25900         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
25901         Autoconf 2.60 says this stuff was obsolete.
25902
25903 2006-06-28  Bruno Haible  <bruno@clisp.org>
25904
25905         * modules/wcwidth (Files): Add m4/wchar_t.m4.
25906
25907 2006-06-28  Bruno Haible  <bruno@clisp.org>
25908
25909         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
25910         gt_TYPE_WCHAR_T.
25911
25912 2006-06-28  Bruno Haible  <bruno@clisp.org>
25913
25914         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
25915         declaration for wcwidth.
25916         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
25917
25918 2006-06-28  Bruno Haible  <bruno@clisp.org>
25919
25920         * lib/mkdtemp.c [MINGW]: Include <io.h>.
25921         (mkdir): Define using _mkdir.
25922
25923 2006-06-28  Bruno Haible  <bruno@clisp.org>
25924
25925         * lib/getaddrinfo.h: Fix POSIX URL.
25926         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
25927         _WIN32.
25928         (use_win32_p): Make static.
25929         (getaddrinfo): Reject service name if it is empty or does not consist
25930         solely of decimal digits, or if its value is > 65535.
25931         (getnameinfo): Remove useless casts.
25932
25933 2006-06-27  Simon Josefsson  <jas@extundo.com>
25934
25935         * modules/sys_select: New file, suggested by Bruno Haible, Paul
25936         Eggert and Martin Lambers.
25937
25938 2006-06-27  Simon Josefsson  <jas@extundo.com>
25939
25940         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
25941         Eggert and Martin Lambers.
25942
25943 2006-06-27  Bruno Haible  <bruno@clisp.org>
25944
25945         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
25946         result to 0, not to empty.
25947         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
25948
25949 2006-06-27  Bruno Haible  <bruno@clisp.org>
25950
25951         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
25952
25953 2006-06-26  Simon Josefsson  <jas@extundo.com>
25954
25955         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
25956         present.
25957
25958 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
25959
25960         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
25961         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
25962         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
25963
25964 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
25965
25966         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
25967
25968 2006-06-26  Bruno Haible  <bruno@clisp.org>
25969
25970         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
25971
25972 2006-06-26  Bruno Haible  <bruno@clisp.org>
25973
25974         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
25975
25976 2006-06-26  Bruno Haible  <bruno@clisp.org>
25977
25978         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
25979         SGI C compiler in pre-C99 mode.
25980         Suggested by Mark D. Baushke and Larry Jones.
25981
25982 2006-06-26  Bruno Haible  <bruno@clisp.org>
25983
25984         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
25985         WCHAR_MAX.
25986         Reported by Mark D. Baushke and Larry Jones.
25987
25988 2006-06-26  Bruno Haible  <bruno@clisp.org>
25989
25990         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
25991         in pre-C99 mode.
25992         Suggested by Mark D. Baushke and Larry Jones.
25993
25994 2006-06-23  Simon Josefsson  <jas@extundo.com>
25995             Bruno Haible  <bruno@clisp.org>
25996
25997         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
25998         Emit mostlyclean-local rule.
25999         (func_emit_tests_Makefile_am): Likewise.
26000         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
26001
26002 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
26003
26004         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
26005
26006 2006-06-23  Bruno Haible  <bruno@clisp.org>
26007
26008         * tests/test-stdint.c: Update to match ISO C 99 Technical
26009         Corrigendum 1.
26010
26011 2006-06-23  Bruno Haible  <bruno@clisp.org>
26012
26013         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
26014
26015 2006-06-23  Bruno Haible  <bruno@clisp.org>
26016
26017         * lib/stdint_.h: Treat IRIX like OpenBSD.
26018
26019 2006-06-23  Bruno Haible  <bruno@clisp.org>
26020
26021         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
26022         ISO C 99 Technical Corrigendum 1.
26023
26024 2006-06-22  Simon Josefsson  <jas@extundo.com>
26025
26026         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
26027         MinGW.
26028
26029 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
26030
26031         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
26032         needed.  Some compiler complained about some of them.  Problem reported
26033         by Larry Jones in
26034         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
26035
26036 2006-06-21  Simon Josefsson  <jas@extundo.com>
26037
26038         * tests/test-getaddrinfo.c: New file.
26039
26040         * modules/getaddrinfo-tests: New file.
26041
26042         * MODULES.html.sh: Add inet_pton.
26043
26044         * modules/inet_pton: New file.
26045
26046 2006-06-21  Simon Josefsson  <jas@extundo.com>
26047
26048         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
26049         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
26050         of using the (limited) gnulib implementation on Windows XP.
26051
26052         * m4/inet_pton.m4: New file.
26053
26054 2006-06-21  Simon Josefsson  <jas@extundo.com>
26055
26056         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
26057         variable.
26058
26059         * lib/socket_.h: Don't define WINVER.
26060
26061         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
26062         slightly modified to work in gnulib.
26063
26064 2006-06-21  Simon Josefsson  <jas@extundo.com>
26065
26066         * doc/gnulib.texi (Windows sockets): Add.
26067
26068 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
26069
26070         * lib/read-file.c (fread_file): Start with buffer allocation of
26071         0 bytes rather than 1 byte; this simplifies the code.
26072         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
26073         code to free buffer and save/restore errno.
26074         (internal_read_file): Remove unused local.
26075
26076 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
26077
26078         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
26079         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
26080         Problem reported by Denis Excoffier in
26081         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
26082
26083 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
26084
26085         * modules/sys_socket, modules/socklen: Include sys/types since
26086         FreeBSD 4.x's sys/socket.h needs it.
26087
26088 2006-06-19  Simon Josefsson  <jas@extundo.com>
26089
26090         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
26091
26092 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
26093
26094         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
26095
26096 2006-06-19  Bruno Haible  <bruno@clisp.org>
26097
26098         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
26099         and FULL_PATH_INTTYPES_H in angle brackets.
26100         Reported by Mark D. Baushke <mdb@gnu.org>.
26101
26102 2006-06-17  Eric Blake  <ebb9@byu.net>
26103
26104         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
26105         errno.
26106
26107 2006-06-17  Bruno Haible  <bruno@clisp.org>
26108
26109         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
26110         <sys/inttypes.h>.
26111
26112 2006-06-17  Bruno Haible  <bruno@clisp.org>
26113
26114         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
26115         whether errno is declared. Assume <errno.h> declares errno.
26116
26117 2006-06-17  Bruno Haible  <bruno@clisp.org>
26118
26119         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
26120
26121 2006-06-17  Bruno Haible  <bruno@clisp.org>
26122
26123         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
26124         problem on Solaris 2.5.1.
26125
26126 2006-06-16  Eric Blake  <ebb9@byu.net>
26127
26128         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
26129         * lib/unicodeio.c [!defined errno]: Likewise.
26130         * lib/strtol.c [!defined errno]: Likewise.
26131         * lib/strtod.c [!defined errno]: Likewise.
26132
26133 2006-06-15  Eric Blake  <ebb9@byu.net>
26134
26135         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
26136
26137 2006-06-15  Eric Blake  <ebb9@byu.net>
26138
26139         * config/srclist.txt (ssize_t.m4): Lose sync.
26140
26141 2006-06-15  Bruno Haible  <bruno@clisp.org>
26142
26143         * modules/stdint (Files): Include m4/full-header-path.m4,
26144         m4/size_max.m4, m4/wchar_t.m4.
26145         (Makefile.am): Many more substitutions.
26146         * modules/stdint-tests: New file.
26147         * tests/test-stdint.c: New file.
26148
26149 2006-06-15  Bruno Haible  <bruno@clisp.org>
26150
26151         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
26152         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
26153         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
26154         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
26155         gl_CHECK_TYPE_SAME): New macros.
26156
26157 2006-06-15  Bruno Haible  <bruno@clisp.org>
26158
26159         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
26160
26161 2006-06-15  Bruno Haible  <bruno@clisp.org>
26162
26163         * lib/stdint_.h: Rewritten to be fully auto-configured.
26164         Fixes bug on HP-UX/IA64.
26165
26166 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
26167
26168         * lib/getdate.y (__attribute__): Don't define if already defined.
26169         Problem reported by Larry Jones.
26170         * lib/utimens.c (__attribute__): Likewise.
26171
26172 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
26173
26174         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
26175         reported by Andreas Schwab.
26176
26177 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26178             Bruno Haible  <bruno@clisp.org>
26179
26180         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
26181         check for the declaration of strnlen and a run test that exposes the
26182         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
26183         rpl_strndup.
26184
26185 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26186             Bruno Haible  <bruno@clisp.org>
26187
26188         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
26189
26190 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26191
26192         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
26193         compile test, for Tru64 4.0D.
26194
26195 2006-05-28  Karl Berry  <karl@gnu.org>
26196
26197         * config/srclist.txt (printf-args.c): lose sync.
26198
26199 2006-05-26  Martin Lambers  <marlam@marlam.de>
26200
26201         * lib/getpass.c: Updates the test for the native W32 API, and adds
26202         missing includes, thus fixing compilation warnings.
26203
26204 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
26205
26206         * lib/exclude.c (exclude_fnmatch): New function.
26207         (excluded_file_name): Call exclude_fnmatch.
26208         * lib/exclude.h (excluded_file_name): New prototype
26209
26210 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
26211
26212         * lib/tempname.c (small_open, large_open): New macros.
26213         (__open, __open64) [!_LIBC]: Remove.
26214         (__gen_tempname): Use small_open and large_open instead of __open
26215         and __open64.  This fixes a portability bug on HP-UX 11.11i
26216         reported by Simon Wing-Tang in
26217         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
26218
26219 2006-05-24  Bruno Haible  <bruno@clisp.org>
26220
26221         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
26222         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
26223         Reported by Thorsten Maerz <torte@netztorte.de> via
26224         Aaron Stone <aaron@serendipity.cx>.
26225
26226 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
26227
26228         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
26229         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
26230         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
26231         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
26232         not really conditional on the cache.
26233         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
26234
26235 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
26236
26237         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
26238         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
26239         (my_usleep): Don't mishandle maximum value.
26240
26241 2006-05-19  Jim Meyering  <jim@meyering.net>
26242
26243         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
26244
26245 2006-05-17  Bruno Haible  <bruno@clisp.org>
26246
26247         Cygwin portability.
26248         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
26249
26250 2006-05-17  Bruno Haible  <bruno@clisp.org>
26251
26252         * lib/stdint_.h: Fix recognition of Cygwin.
26253
26254 2006-05-15  Bruno Haible  <bruno@clisp.org>
26255
26256         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
26257         on libtool patch by Ralf Wildenhues.
26258
26259 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
26260
26261         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
26262         test for C99 conformance; (bool) 0.5 is an integer constant
26263         expression, but (bool) -0.5 is not.  Problem reported by Fedor
26264         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
26265
26266 2006-05-11  Simon Josefsson  <jas@extundo.com>
26267
26268         * m4/xvasprintf.m4: Fix obvious typo.
26269
26270 2006-05-11  Jim Meyering  <jim@meyering.net>
26271
26272         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
26273         James Lemley.
26274
26275 2006-05-10  Simon Josefsson  <jas@extundo.com>
26276
26277         * lib/md4.c: Typo fix, update copyright years.
26278         (K1, K2): Don't use L because it turn computations into 64-bit on
26279         64-bit platforms.
26280
26281 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
26282
26283         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
26284         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
26285         unwanted sign propagation, e.g., on hosts with 64-bit int.
26286         There still are some problems with reeelly weird theoretical hosts
26287         (e.g., 33-bit int) but it's not worth worrying about now.
26288         * lib/sha1.c (rol): Likewise.
26289         (K1, K2, K3, K4): Remove unnecessary L suffix.
26290
26291 2006-05-10  Bruno Haible  <bruno@clisp.org>
26292
26293         * lib/des.c: Cast to avoid warnings.
26294
26295 2006-05-09  Bruno Haible  <bruno@clisp.org>
26296
26297         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
26298         (Depends-on): Depend also on xsize, stdarg.
26299         (configure.ac): Add gl_XVASPRINTF.
26300
26301 2006-05-09  Bruno Haible  <bruno@clisp.org>
26302
26303         * m4/xvasprintf.m4: New file.
26304
26305 2006-05-09  Bruno Haible  <bruno@clisp.org>
26306
26307         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
26308         (EOVERFLOW): Define fallback value.
26309         (xstrcat): New function.
26310         (xvasprintf): Recognize the special case of a string concatenation.
26311
26312 2006-05-08  Eric Blake  <ebb9@byu.net>
26313
26314         * gnulib-tool (func_version): Base copyright year on CVS date.
26315         (func_emit_copyright_notice): New function.
26316         (func_emit_lib_Makefile_am): Use it.
26317         (func_emit_tests_Makefile_am): Likewise.
26318         (func_import): Likewise.
26319
26320 2006-05-08  Bruno Haible  <bruno@clisp.org>
26321
26322         * modules/stdarg: New file.
26323         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
26324
26325 2006-05-08  Bruno Haible  <bruno@clisp.org>
26326
26327         * m4/stdarg.m4: New file, from GNU gettext.
26328
26329 2006-05-08  Bruno Haible  <bruno@clisp.org>
26330
26331         * config/srclist.txt (build-aux/config.rpath): different from latest
26332         release.
26333
26334 2006-05-08  Bruno Haible  <bruno@clisp.org>
26335
26336         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
26337
26338 2006-05-05  Jim Meyering  <jim@meyering.net>
26339
26340         * m4/warning.m4: New file, derived from bison's file by the same name.
26341
26342 2006-05-03  Bruno Haible  <bruno@clisp.org>
26343
26344         * lib/stdint_.h: Shorter URL.
26345         * lib/inttypes.h: Likewise.
26346
26347 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
26348
26349         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
26350
26351 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
26352
26353         * lib/verify.h: Document the internals better.  Most of this change
26354         was written by Bruno Haible.
26355
26356 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
26357
26358         * doc/verify.texi: New file, partly based on a proposal by
26359         Bruno Haible.
26360
26361 2006-05-02  Bruno Haible  <bruno@clisp.org>
26362
26363         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
26364         test from here...
26365         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
26366
26367 2006-04-29  Bruno Haible  <bruno@clisp.org>
26368
26369         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
26370         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
26371
26372 2006-04-29  Bruno Haible  <bruno@clisp.org>
26373
26374         * gnulib-tool: Make --update option actually work.
26375
26376 2006-04-29  Bruno Haible  <bruno@clisp.org>
26377
26378         * doc/gcd.texi: New file.
26379         * doc/gnulib.texi: Include it.
26380
26381 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
26382
26383         * lib/getdate.y (get_date): When adding relative date, start with the
26384         initial time, not with the result of the first mktime call.
26385
26386 2006-04-25  Bruno Haible  <bruno@clisp.org>
26387
26388         * gnulib-tool (func_import): Output the include directives in three
26389         blocks, sorted separately.
26390         Reported by Ben Pfaff <blp@cs.stanford.edu>.
26391
26392 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
26393
26394         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
26395         to define main with arguments, for C++.  Reported by Eric Blake.
26396         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
26397         Prefer 'int main ()' to 'int main (void)', for C++.
26398         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
26399         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
26400         for 'main', for C99 and C++.
26401
26402 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
26403
26404         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
26405         Don't assume that exit status -1 is valid.
26406         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
26407         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
26408         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
26409         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
26410         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
26411         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
26412         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
26413         functions can be used without declaring them, or that you can
26414         exit with status -1.
26415         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
26416
26417 2006-04-24  Karl Berry  <karl@gnu.org>
26418
26419         * config/srclist.txt (longdouble.m4): sync lost.
26420
26421 2006-04-24  Eric Blake  <ebb9@byu.net>
26422
26423         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
26424
26425 2006-04-24  Bruno Haible  <bruno@clisp.org>
26426
26427         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
26428         poll() implementation in AIX.
26429         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
26430
26431 2006-04-24  Bruno Haible  <bruno@clisp.org>
26432
26433         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
26434         assigned exactly once.
26435
26436 2006-04-23  Claudio Fontana  <claudio@gnu.org>
26437             Bruno Haible  <bruno@clisp.org>
26438
26439         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
26440         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
26441         for AM_CPPFLAGS.
26442
26443 2006-04-23  Bruno Haible  <bruno@clisp.org>
26444
26445         * modules/copy-file: Depend on unistd.
26446         * modules/execute: Likewise.
26447         * modules/fatal-signal: Likewise.
26448         * modules/findprog: Likewise.
26449         * modules/mkdtemp : Likewise.
26450         * modules/pipe: Likewise.
26451         * modules/wait-process: Likewise.
26452
26453 2006-04-23  Bruno Haible  <bruno@clisp.org>
26454
26455         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
26456         condition was already detected.
26457         Reported by Ben Pfaff <blp@cs.stanford.edu>.
26458
26459 2006-04-23  Bruno Haible  <bruno@clisp.org>
26460
26461         * lib/copy-file.c: Include <unistd.h> unconditionally.
26462         * lib/execute.c: Likewise.
26463         * lib/fatal-signal.c: Likewise.
26464         * lib/findprog.c: Likewise.
26465         * lib/mkdtemp.c: Likewise.
26466         * lib/pipe.h: Likewise.
26467         * lib/pipe.c: Likewise.
26468         * lib/wait-process.h: Likewise.
26469
26470 2006-04-23  Bruno Haible  <bruno@clisp.org>
26471
26472         * gnulib-tool (func_usage): Fix --import description. Document
26473         --update.
26474         (func_import): Create temporary file in a temporary directory, if
26475         --dry-run is specified. Silence errors from 'grep' when there are no
26476         m4 files in $m4dir.
26477         (func_create_testdir): Silence errors from 'grep' when there are no
26478         m4 files in $m4dir.
26479         Reported by Karl Berry <karl@freefriends.org>.
26480
26481 2006-04-20  Bruno Haible  <bruno@clisp.org>
26482
26483         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
26484         one argument, so that the code will be portable to Autoconf 2.60.
26485         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
26486         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
26487         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
26488
26489 2006-04-19  Derek Price  <derek@ximbiot.com>
26490             Eric Blake  <ebb9@byu.net>
26491
26492         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
26493         rather than "/full/path.h".  Update comment to match.  Shorten &
26494         generalize m4_translit call via AS_TR_CPP.
26495
26496 2006-04-19  Derek Price  <derek@ximbiot.com>
26497             Eric Blake  <ebb9@byu.net>
26498
26499         * lib/inttypes.h: Correct grammar in comment.
26500
26501 2006-04-18  Derek Price  <derek@ximbiot.com>
26502             Paul Eggert  <eggert@cs.ucla.edu>
26503
26504         * modules/inttypes: New file.
26505         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
26506
26507 2006-04-18  Derek Price  <derek@ximbiot.com>
26508             Paul Eggert  <eggert@cs.ucla.edu>
26509
26510         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
26511         New files.
26512
26513 2006-04-18  Derek Price  <derek@ximbiot.com>
26514             Paul Eggert  <eggert@cs.ucla.edu>
26515
26516         * lib/inttypes.h: New file.
26517         * lib/strtoimax.c: Assume <inttypes.h>.
26518
26519 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
26520
26521         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
26522         isn't mounted.  Problem reported by Kir Kolyshkin.
26523
26524 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
26525
26526         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
26527         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
26528         Derek R. Price.
26529         * lib/regex.h (RE_DUP_MAX): Update comment to match current
26530         implementation.
26531
26532 2006-04-12  Eric Blake  <ebb9@byu.net>
26533
26534         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
26535         is now done automatically by the corresponding Autoconf macro.
26536
26537 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
26538
26539         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
26540         time_r.h.
26541
26542 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
26543
26544         Merge regex changes from libc, removing some of our
26545         POSIX-conformance changes that were rejected and redoing them in a
26546         less-intrusive way.
26547
26548         * lib/regcomp.c (re_compile_internal, init_dfa):
26549         Length arg is now size_t, not Idx.  All uses changed.
26550         (peek_token): Forward decl now says internal_function.
26551         (__re_error_msgid, __re_error_msgid_idx):
26552         Now static rather than extern with attribute_hidden.
26553         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
26554         For some reason libc prefers K&R style defns for external functions.
26555         (regerror) [!defined _LIBC]: Likewise.
26556         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
26557         (seek_collating_symbol_entry, lookup_collation_sequence_value):
26558         (build_range_exp, build_collating_symbol):
26559         Use K&R-style defn.
26560         (re_compile_fastmap): Use '\0' to memset, not 0.
26561         (utf8_sb_map): Make the calculations more obvious.
26562         (init_dfa, parse_bracket_exp, build_charclass_op):
26563         Call calloc and cast result, as glibc does.
26564         (init_word_char, fetch_token, peek_token, peek_token_bracket):
26565         (build_range_exp, build_collating_symbol):
26566         Now internal functions.
26567
26568         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
26569
26570         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
26571         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
26572         Don't depend on VMS; depend on __VMS instead, for POSIX
26573         namespace cleanness.
26574         (regoff_t): Define to ssize_t, not long int.
26575
26576         Remove the REG_ macros named below.  Instead, make the old names
26577         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
26578         __USE_GNU_REGEX.
26579         (REG_BACKSLASH_ESCAPE_IN_LISTS):
26580         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
26581         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
26582         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
26583         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
26584         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
26585         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
26586         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
26587         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
26588         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
26589         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
26590         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
26591         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
26592         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
26593         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
26594         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
26595         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
26596         (REG_NREGS):
26597         Remove.  All uses replaced by the old RE_* names.
26598         (RE_BACKSLASH_ESCAPE_IN_LISTS):
26599         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
26600         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
26601         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
26602         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
26603         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
26604         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
26605         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
26606         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
26607         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
26608         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
26609         Don't bother having these macros be independent of each others'
26610         values, since they no longer exist in the POSIX name space.
26611
26612         Rename the following member names back to their old names,
26613         unless !__USE_GNU_REGEX.  All uses changed back.
26614         (buffer): Renamed from re_buffer.
26615         (allocated): Renamed from re_allocated.
26616         (used): Renamed from re_used.
26617         (syntax): Renamed from re_syntax.
26618         (fastmap): Renamed from re_fastmap.
26619         (translate): Renamed from re_translate.
26620         (can_be_null): Renamed from re_can_be_null.
26621         (regs_allocated): Renamed from re_regs_allocated.
26622         (fastmap_accurate): Renamed from re_fastmap_accurate.
26623         (no_sub): Renamed from re_no_sub.
26624         (not_bol): Renamed from re_not_bol.
26625         (not_eol): Renamed from re_not_eol.
26626         (newline_anchor): Renamed from re_newline_anchor.
26627         (num_regs): Renamed from rm_num_regs.
26628         (start): Renamed from rm_start.
26629         (end): Renamed from rm_end.
26630
26631         (free_state): Move up a bit.
26632
26633         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
26634         #define to be empty.
26635         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
26636         when that is what is intended.
26637         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
26638         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
26639         (MAX): New macro.
26640         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
26641         All uses changed back to re_malloc, etc.  It's now the caller's
26642         responsibility to check for overflow; all callers changed.
26643         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
26644         (re_x2nrealloc): Remove.
26645         (free_state): Remove decl.
26646
26647         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
26648         (re_set_registers, re_exec):
26649         Use K&R-style defn.
26650
26651         2006-01-31  Roland McGrath  <roland@redhat.com>
26652
26653         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
26654         Reported by Mike Frysinger <vapier@gentoo.org>.
26655
26656         2006-01-15  Andreas Jaeger  <aj@suse.de>
26657
26658         [BZ #1950]
26659         * lib/regex_internal.c (re_string_reconstruct): Adjust for
26660         build_wcs_upper_buffer change.
26661         (build_wcs_upper_buffer): Change return type.
26662
26663         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
26664
26665         * lib/regex_internal.h: Include <stdint.h> if available.
26666
26667         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
26668
26669         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
26670
26671         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
26672
26673         * lib/regcomp.c: Adjust for changed secondary hash function.
26674
26675         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
26676
26677         * lib/regex.h: Pretty printing.
26678         Clean up namespace a bit.
26679
26680         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
26681
26682         * lib/regexec.c (update_cur_sifted_state, check_arrival,
26683         check_arrival_add_next_nodes): Avoid using uninitialized variable.
26684
26685         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
26686                     Ulrich Drepper  <drepper@redhat.com>
26687
26688         [BZ #1302]
26689         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
26690         changed.
26691         (bitset_word_t): Renamed from bitset_word.  All uses changed.
26692
26693         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
26694
26695         [BZ #281]
26696         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
26697         * lib/regcomp.c: Remove unnecessary uses of
26698         unsigned RE_TRANSLATE_TYPE.
26699         * lib/regex_internal.h: Likewise.
26700         * lib/regex_internal.c: Likewise.
26701         * lib/regexec.c: Likewise.
26702         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
26703
26704         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
26705
26706         * lib/regexec.c (find_recover_state): Remove unnecessary
26707         initialization.
26708         (transit_state_bkref): Make DFA a const pointer.
26709         (get_subexp): Likewise.
26710         (check_arrival): Likewise.
26711         (update_cur_sifted_state): Likewise.
26712         (re_search_internal): Likewise.
26713         (prune_impossible_nodes): Likewise.
26714         (acquire_init_state_context): Likewise.
26715         (proceed_next_node): Likewise.
26716         (set_regs): Likewise.
26717         (free_fail_stack_return): Likewise.
26718         (check_arrival_expand_ecl): Mark DFA parameter as const.
26719         (check_arrival_expand_ecl_sub): Likewise.
26720         (check_subexp_limits): Likewise.
26721         (sub_epsilon_src_nodes):  Likewise.
26722         (add_epsilon_src_nodes):  Likewise.
26723         (merge_state_array): Likewise.
26724         (update_regs): Likewise.
26725         (build_trtable): Likewise.
26726         (sift_states_backward): Mark MCTX parameter as const.
26727         (build_sifted_states): Likewise.
26728         (update_cur_sifted_state): Likewise.
26729         (sift_states_mkref): Likewise.
26730         (check_arrival_expand_ecl): Mark eclosure as const.
26731         (check_dst_limits_calc_pos_1): Likewise.
26732         * lib/regex_internal.h (re_match_context_t): Make dfa a const
26733         pointer.
26734
26735         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
26736
26737         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
26738         (transit_state_sb): Likewise.
26739         (transit_state_mb): Likewise.
26740         (sift_states_iter_mb): Likewise.
26741         (check_arrival_add_next_nodes): Likewise.
26742         (check_node_accept_bytes): Change first parameter to pointer-to-const.
26743         [_LIBC] (re_search_2_stub): Use mempcpy.
26744
26745         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
26746         mbrtowc for very simple UTF-8 case.
26747
26748         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
26749         a pointer-to-const.
26750         (re_acquire_state_context): Likewise.
26751         * lib/regex_internal.h: Adjust prototypes.
26752
26753         * lib/regex.c: Prevent using C++ compilers.
26754
26755         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
26756         (re_acquire_state_context): Likewise.
26757
26758 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
26759
26760         * modules/regex (Depends-on): Add ssize_t.
26761
26762 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
26763
26764         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
26765         translation table.
26766
26767 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
26768
26769         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
26770
26771 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
26772             Bruno Haible  <bruno@clisp.org>
26773
26774         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
26775         <sys/types.h> and <inttypes.h>.
26776
26777 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26778
26779         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
26780         `__error_t_defined', so argp.h will not typedef the former.
26781
26782 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
26783
26784         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
26785         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
26786         glibc names.  Even if glibc is changed to conform to POSIX, the
26787         traditional names will be available anyway, since regex depends on
26788         the extensions module.  Also, fix a longstanding typo in the
26789         implementation of Spencer ERE test #75 from grep 2.3.  Problems
26790         reported by Emanuele Giaquinta.  Also, change sense of cached
26791         variable, so that the message makes sense.
26792
26793 2006-03-24  Simon Josefsson  <jas@extundo.com>
26794
26795         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
26796         including some doc fixes.
26797         (base64_encode_alloc): Fix +1 bug on allocation failures.
26798
26799 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26800
26801         * lib/base64.c (base64_encode): Do not read past end of array with
26802         unsanitized input on systems with CHAR_BIT > 8.
26803
26804 2006-03-24  Eric Blake  <ebb9@byu.net>
26805
26806         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
26807
26808 2006-03-22  Karl Berry  <karl@gnu.org>
26809
26810         * config/srclist.txt (*setenv.[ch]): get from coreutils.
26811         * config/srclistvars.sh (COREUTILS): new var.
26812
26813 2006-03-17  Jim Meyering  <jim@meyering.net>
26814
26815         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
26816         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
26817
26818 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
26819
26820         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
26821         no longer needs it.  Instead, check that regoff_t is as least
26822         as wide as ptrdiff_t.
26823
26824         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
26825         so that our regex.h stays compatible with the installed regex.
26826         This is helpful for installers who configure --without-included-regex.
26827         Problem reported by Emanuele Giaquinta.
26828
26829 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
26830
26831         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
26832         Typedef to long int, not to off_, as POSIX will likely change
26833         in that direction.
26834
26835 2006-03-15  Eric Blake  <ebb9@byu.net>
26836
26837         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
26838
26839 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
26840
26841         * lib/argp-help.c (validate_uparams): Fix typo
26842         * lib/argp-parse.c (argp_default_options): Consistently begin help
26843         messages with a lowercase letter.
26844
26845 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
26846
26847         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
26848         overrun buffers and shouldn't be used (much as gets shouldn't be
26849         used).
26850         * lib/time_r.c (asctime_r, ctime_r): Likewise.
26851
26852 2006-03-08  Simon Josefsson  <jas@extundo.com>
26853
26854         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
26855         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
26856
26857 2006-03-08  Simon Josefsson  <jas@extundo.com>
26858
26859         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
26860         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
26861
26862 2006-03-08  Simon Josefsson  <jas@extundo.com>
26863
26864         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
26865         signal that configure disabled the device.
26866
26867 2006-03-08  Simon Josefsson  <jas@extundo.com>
26868
26869         * build-aux/maint.mk: Fix refresh-po, to handle no translated
26870         languages.
26871
26872 2006-03-07  Simon Josefsson  <jas@extundo.com>
26873
26874         * modules/getopt (Depends-on): Add unistd.
26875
26876         * modules/unistd: New file.
26877
26878 2006-03-07  Simon Josefsson  <jas@extundo.com>
26879
26880         * modules/gc-random: New file.
26881
26882 2006-03-07  Simon Josefsson  <jas@extundo.com>
26883
26884         * m4/unistd_h.m4: New file.
26885
26886 2006-03-07  Simon Josefsson  <jas@extundo.com>
26887
26888         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
26889         test to be side-effect free by storing the result in the cache
26890         variable gl_cv_lib_readline, and moving the assignment of
26891         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
26892         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
26893
26894 2006-03-07  Simon Josefsson  <jas@extundo.com>
26895
26896         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
26897         error on missing devices (the functions will return an error).
26898
26899         * m4/gc.m4: Move random stuff to gc-random.m4
26900
26901 2006-03-07  Simon Josefsson  <jas@extundo.com>
26902
26903         * lib/unistd_.h: New file.
26904
26905 2006-03-07  Simon Josefsson  <jas@extundo.com>
26906
26907         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
26908
26909 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
26910
26911         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
26912         Problem reported by Juan Manuel Guerrero.
26913
26914 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
26915
26916         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
26917         the unistd module.
26918         * lib/getlogin_r.c: Likewise.
26919         * lib/getlogin_r.h: Likewise.
26920         * lib/glob.c: Likewise.
26921         * lib/pagealign_alloc.c: Likewise.
26922         * lib/unistd_.h: Remove; no longer needed.
26923
26924 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
26925
26926         * MODULES.html.sh (Support for systems lacking POSIX:2001):
26927         Add unistd.
26928         * modules/c-stack (Depends-on): Add unistd.
26929         * modules/getlogin_r: Likewise.
26930         * modules/glob: Likewise.
26931         * modules/pagealign_alloc: Likewise.
26932         * modules/unistd (Files): Remove lib/unistd_.h.
26933         (EXTRA_DIST): Remove.
26934         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
26935         need unistd_.h.
26936         (MOSTLYCLEANFILES): Remove unistd.h-t.
26937
26938 2006-03-03  Simon Josefsson  <jas@extundo.com>
26939
26940         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
26941
26942 2006-03-03  Simon Josefsson  <jas@extundo.com>
26943
26944         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
26945         libidn and bison.
26946
26947 2006-03-03  Simon Josefsson  <jas@extundo.com>
26948
26949         * build-aux/maint.mk: Add indent target.
26950
26951 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
26952
26953         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
26954         our replacement poll.h in any case, to avoid a differing
26955         declaration from a system header.  Seen on AIX.
26956
26957 2006-03-01  Simon Josefsson  <jas@extundo.com>
26958
26959         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
26960         <kasal@ucw.cz>.
26961
26962 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
26963
26964         * modules/gettime (Depends-on): Add extensions module.
26965         * modules/nanosleep (Depends-on): Likewise.
26966         * modules/settime (Depends-on): Likewise.
26967
26968 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
26969
26970         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
26971         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
26972         pedantically.
26973         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
26974         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
26975
26976         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
26977         not "==".  Reported by Ralf Wildenhues.
26978
26979 2006-03-01  Karl Berry  <karl@gnu.org>
26980
26981         * doc/Copyright/request-*: new files, synced from gnuorg.
26982
26983 2006-03-01  Karl Berry  <karl@gnu.org>
26984
26985         * config/srclist.txt (Copyright/*): new entries.
26986
26987 2006-02-28  Simon Josefsson  <jas@extundo.com>
26988
26989         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
26990
26991 2006-02-27  Simon Josefsson  <jas@extundo.com>
26992
26993         * lib/base64.h: Indent #define's.  From Jim Meyering
26994         <jim@meyering.net>.
26995
26996 2006-02-27  Jim Meyering  <jim@meyering.net>
26997
26998         Revert the change of 2006-02-24, so these files can continue
26999         to be sync'd from gettext.
27000         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
27001         of `config.h'.
27002
27003 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
27004
27005         * modules/intprops: New file.
27006         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
27007         Add intprops.
27008         * modules/getloadavg (Files): Remove lib/intprops.h.
27009         (Depends-on): Add intprops.
27010         * modules/human: Likewise.
27011         * modules/inttostr: Likewise.
27012         * modules/openat: Likewise.
27013         * modules/sig2str: Likewise.
27014         * modules/userspec: Likewise.
27015         * modules/utimecmp: Likewise.
27016         * modules/xnanosleep: Likewise.
27017         * modules/xstrtol: Likewise.
27018
27019 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
27020
27021         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
27022         * modules/lock-tests (TESTS): Use $(EXEEXT).
27023         * modules/tls-tests: Likewise.
27024         * modules/argp-tests: Likewise.
27025         (check_PROGRAMS): New var, replacing...
27026         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
27027
27028 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27029
27030         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
27031         `config.h'.
27032
27033 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
27034
27035         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
27036
27037 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27038
27039         Sync from coreutils.
27040         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
27041         gl_CHDIR_SAFER.
27042
27043 2006-02-22  Jim Meyering  <jim@meyering.net>
27044
27045         Sync from coreutils.
27046         * m4/chdir-safer.m4: New file.
27047
27048 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
27049
27050         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
27051         AT_FDCWD exceeds INT_MAX.
27052         * lib/openat.h (AT_FDCWD): Likewise.
27053
27054 2006-02-17  Eric Blake  <address@hidden>
27055
27056         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
27057
27058 2006-02-16  Simon Josefsson  <jas@extundo.com>
27059
27060         * modules/getaddrinfo (Depends-on): Add sys_socket.
27061
27062 2006-02-15  Simon Josefsson  <jas@extundo.com>
27063
27064         * build-aux/maint.mk: Add dsyntax-check rule.
27065
27066 2006-02-15  Eric Blake  <ebb9@byu.net>
27067
27068         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
27069         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
27070         'present but cannot compile' warnings on cygwin.
27071         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
27072         use ws2tcpip.h if sys/socket.h works.
27073         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
27074         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
27075
27076 2006-02-14  Simon Josefsson  <jas@extundo.com>
27077
27078         * modules/maintainer-makefile (Files): Rename.
27079
27080         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
27081         and (the local) Makefile.cfg to maint-cfg.mk.
27082
27083         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
27084         to the latter.
27085
27086         * modules/maintainer-makefile: New module.
27087
27088         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
27089         severaly stripped to make it possible to build it up from scratch
27090         with reliable tests.
27091
27092         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
27093         fixes to permit overriding the default actions when configure and
27094         makefile are not available.
27095
27096 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
27097
27098         Sync from coreutils.
27099         * modules/lstat (Depends-on): Don't depend on xalloc.
27100         (License): Change from GPL to LGPL, since this is now simply a
27101         replacement for a libc function.
27102
27103 2006-02-14  Jim Meyering  <jim@meyering.net>
27104
27105         Sync from coreutils.
27106
27107         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
27108         failure on deficient systems, and simplify gnulib lgpl dependencies.
27109         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
27110         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
27111
27112         * lib/xalloc-die.c: Remove unused definition of N_.
27113
27114 2006-02-14  Jim Meyering  <jim@meyering.net>
27115
27116         Sync from coreutils.
27117         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
27118         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
27119         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
27120         double-quote uses of that variable, to accommodate the rare case in
27121         which getmntent is available in none of the libraries checked.  This
27122         happens at least on FreeBSD 5.0.
27123
27124 2006-02-13  Simon Josefsson  <jas@extundo.com>
27125
27126         * gnulib-tool (Usage): Fix --import, from
27127         karl@freefriends.org (Karl Berry).
27128
27129 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
27130
27131         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
27132
27133 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
27134
27135         * lib/argp-namefrob.h: Restore changes accidentally lost during the
27136         "autoupdate" on 2005-12-12.
27137
27138 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
27139
27140         * modules/closeout (Depends-on): Remove atexit.
27141
27142 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
27143
27144         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
27145         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
27146
27147 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
27148
27149         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
27150         __EXTENSIONS__ if this causes compilation to fail.  Problem
27151         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
27152         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
27153
27154 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
27155
27156         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
27157         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
27158         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
27159         All uses changed.
27160
27161 2006-01-26  Simon Josefsson  <jas@extundo.com>
27162
27163         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
27164         prototype is visible on mingw32.
27165
27166         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
27167         for mingw32.
27168
27169         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
27170         mingw32).
27171
27172 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
27173
27174         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
27175         attempt to open for write; this always fails, at least on POSIX
27176         hosts.  This reinstates the 2006-01-09 change, which was
27177         inadvertently removed.
27178
27179 2006-01-26  Bruno Haible  <bruno@clisp.org>
27180
27181         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
27182         Reported by Paul Eggert.
27183
27184 2006-01-26  Bruno Haible  <bruno@clisp.org>
27185             Paul Eggert  <eggert@cs.ucla.edu>
27186
27187         * lib/stdbool_.h (_Bool)
27188         [(! (defined __cplusplus || defined __BEOS__)
27189           && !defined __GNUC__
27190           && !(defined __HP_cc || defined __xlc__
27191                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
27192                || defined __sgi))]:
27193         #define to signed char in these cases too; this simplifies
27194         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
27195         etc., separately) and makes it more conservative.
27196
27197 2006-01-25  Simon Josefsson  <jas@extundo.com>
27198
27199         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
27200         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
27201         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
27202
27203 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
27204
27205         * lib/argp-namefrob.h: Bugfix. Remove stray #
27206
27207 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
27208
27209         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
27210         so that we test the test.
27211         Check for yet another HP-UX cc bug involving *bool |= bool.
27212
27213 2006-01-25  Karl Berry  <karl@gnu.org>
27214
27215         * config/srclist.txt (vasnprintf.c): sync lost.
27216
27217 2006-01-25  Jim Meyering  <jim@meyering.net>
27218
27219         Sync from the stable (b5) branch of coreutils:
27220
27221         * lib/fts.c (fts_children): Don't let close() clobber errno from
27222         failed fchdir().
27223
27224         * lib/fts.c (fts_stat): When following a symlink-to-directory,
27225         don't necessarily interpret stat-fails+lstat-succeeds as indicating
27226         a dangling symlink.  That can also happen at least for ELOOP.
27227         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
27228         FYI, this bug predates the inclusion of fts.c in coreutils.
27229
27230         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
27231         in their own block, so pre-c99 compilers don't object.
27232
27233         Avoid the double-free (first in fts_read, second in fts_close) that
27234         would occur when an `active' directory is made inaccessible (e.g.,
27235         via chmod a-x) during a traversal.
27236         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
27237         before returning.  Reproduce this failure by
27238         mkdir -p a/b; cd a; chmod a-x . b
27239         Reported by Stavros Passas.
27240
27241 2006-01-25  Jim Meyering  <jim@meyering.net>
27242
27243         * lib/fileblocks.c: Remove more useless parentheses.
27244         * lib/readutmp.h: Likewise.
27245
27246 2006-01-25  Bruno Haible  <bruno@clisp.org>
27247
27248         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
27249         warnings.
27250         Reported by Paul Eggert.
27251
27252 2006-01-25  Bruno Haible  <bruno@clisp.org>
27253
27254         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
27255         rid of a trap command. For Solaris sh.
27256         Reported by Mark D. Baushke <mdb@gnu.org>.
27257
27258 2006-01-24  Simon Josefsson  <jas@extundo.com>
27259
27260         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
27261         Bruno.
27262
27263 2006-01-24  Karl Berry  <karl@gnu.org>
27264
27265         * config/srclist.txt (argp-namefrob.h): sync lost.
27266
27267 2006-01-24  Jim Meyering  <jim@meyering.net>
27268
27269         * modules/openat (Files): Add lib/intprops.h.
27270         From Mark D. Baushke.
27271
27272 2006-01-24  Jim Meyering  <jim@meyering.net>
27273
27274         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
27275         Reported by Mark D. Baushke.
27276
27277 2006-01-24  Jim Meyering  <jim@meyering.net>
27278
27279         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
27280
27281 2006-01-24  Bruno Haible  <bruno@clisp.org>
27282
27283         * modules/strnlen (Maintainer): Change from glibc to all.
27284
27285 2006-01-24  Bruno Haible  <bruno@clisp.org>
27286
27287         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
27288         Patch by Paul Eggert.
27289
27290 2006-01-24  Bruno Haible  <bruno@clisp.org>
27291
27292         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
27293         already has it.
27294         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
27295         2005-11-26.
27296
27297         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
27298         'signed char' to avoid problems with the built-in _Bool type.
27299         Reported by Paul Eggert on 2005-11-26.
27300
27301 2006-01-24  Bruno Haible  <bruno@clisp.org>
27302
27303         * gnulib-tool (func_import): Avoid constructing complicated sed
27304         expressions inside backquote.
27305         Report and solution by Mark D. Baushke <mdb@gnu.org>.
27306
27307 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
27308
27309         These changes imported from libc.
27310         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
27311         test and two separate function calls.
27312         * lib/strndup.c (__strndup): Add libc_hidden_def.
27313
27314 2006-01-23  Simon Josefsson  <jas@extundo.com>
27315
27316         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
27317         Remove the test_*_SOURCES variable: automake infers it by default.
27318         * modules/tls-tests: Likewise.
27319
27320 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
27321
27322         Work around porting bugs reported by Dieter in
27323         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
27324         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
27325         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
27326         Include "getopt.h" first, to check interface.
27327         (getenv): Declare only if defined HAVE_DECL_GETENV &&
27328         !HAVE_DECL_GETENV.
27329         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
27330         (__strndup): Revert to K&R-style function dfns, the glibc style.
27331         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
27332         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
27333         Include strnlen.h first, to get prototype properly.
27334         (strnlen): Renamed from __strnlen.
27335         Remove weak alias.
27336
27337 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
27338
27339         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
27340
27341 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
27342
27343         * config/srclist.txt: Adjust to reflect glibc reorganization.
27344         This affects only comments.
27345
27346 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
27347
27348          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
27349          Reported by Bruce Korb <bkorb@gnu.org>.
27350
27351 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
27352
27353         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
27354         to pacify gcc -Wswitch-default.
27355
27356 2006-01-22  Bruno Haible  <bruno@clisp.org>
27357
27358         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
27359         temporary buffer for sprintf, take into account the precision also
27360         for 'd', 'i', 'u', 'o', 'x', 'X'.
27361
27362 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
27363
27364         * modules/argp-tests: New module
27365         * tests/test-argp.c: New file
27366         * tests/test-argp-2.sh: New file
27367
27368 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
27369
27370         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
27371         (__argp_base_name): Removed
27372         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
27373         typo.
27374         (__argp_base_name): Provide macro definition or extern declaration
27375         depending on the configuration
27376
27377 2006-01-20  Simon Josefsson  <jas@extundo.com>
27378
27379         * modules/inet_ntop (Depends-on): Depend on sys_socket.
27380
27381 2006-01-20  Simon Josefsson  <jas@extundo.com>
27382
27383         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
27384
27385 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
27386
27387         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
27388         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
27389         Suggested by Bruno Haible.
27390
27391 2006-01-20  Karl Berry  <karl@gnu.org>
27392
27393         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
27394         until changes propagate, I guess.
27395
27396 2006-01-19  Simon Josefsson  <jas@extundo.com>
27397
27398         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
27399
27400 2006-01-19  Simon Josefsson  <jas@extundo.com>
27401
27402         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
27403
27404 2006-01-19  Simon Josefsson  <jas@extundo.com>
27405
27406         * gnulib-tool: Set check_PROGRAMS.
27407
27408         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
27409         modules/des-tests, modules/gc-arcfour-tests,
27410         modules/gc-arctwo-tests, modules/gc-des-tests,
27411         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
27412         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
27413         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
27414         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
27415         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
27416         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
27417         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
27418         test_*_SOURCES.
27419
27420 2006-01-18  Simon Josefsson  <jas@extundo.com>
27421
27422         * modules/socklen (Depends-on): Depend on sys_socket.
27423
27424 2006-01-18  Simon Josefsson  <jas@extundo.com>
27425
27426         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
27427         modules/des-tests, modules/gc-arcfour-tests,
27428         modules/gc-arctwo-tests, modules/gc-des-tests,
27429         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
27430         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
27431         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
27432         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
27433         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
27434         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
27435         $(EXEEXT) to automake TESTS variable, for mingw32.
27436
27437 2006-01-17  Simon Josefsson  <jas@extundo.com>
27438
27439         * modules/socklen (Include): Need sys/socket.h.
27440
27441 2006-01-17  Bruno Haible  <bruno@clisp.org>
27442
27443         * modules/ssize_t (Include): Add <sys/types.h>.
27444
27445 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
27446
27447         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
27448         it's not portable and it doesn't work with cross-compiles.
27449         Problem reported by Bruno Haible.  Fix missing-$ typo in
27450         'test "gl_cv_ignore_unused_libraries" ...' that prevented
27451         -zignore from being used with Sun's C compiler.
27452
27453 2006-01-12  Simon Josefsson  <jas@extundo.com>
27454
27455         * lib/base64.c: Fix warning, reported by Bruno Haible
27456         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
27457
27458 2006-01-12  Bruno Haible  <bruno@clisp.org>
27459
27460         * modules/ldd: New file.
27461         * build-aux/ldd.sh.in: New file.
27462         * MODULES.html.sh (Support for building libraries and executables): Add
27463         ldd.
27464
27465 2006-01-12  Bruno Haible  <bruno@clisp.org>
27466
27467         * m4/ldd.m4: New file.
27468
27469 2006-01-12  Bruno Haible  <bruno@clisp.org>
27470
27471         * gnulib-tool (func_import, func_create_testdir): Don't go into an
27472         endless loop while replacing $auxdir with build-aux.
27473
27474 2006-01-11  Simon Josefsson  <jas@extundo.com>
27475
27476         * lib/stdint_.h (SIZE_MAX): Add missing (.
27477
27478 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
27479
27480         Sync from coreutils.
27481         * lib/md5.c: Fix commentary typos.
27482         (alignof, UNALIGNED_P): No need for a GCC-specific version.
27483         * lib/md5.h (__attribute__): Remove; unused.
27484         * lib/sha1.c: Fix commentary to match md5 better.
27485         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
27486         so that we don't need to worry about alignment.  All uses changed.
27487         This merges the 2005-10-28 md5 change into sha1.
27488
27489 2006-01-11  Jim Meyering  <jim@meyering.net>
27490
27491         Sync from coreutils.
27492         * lib/md5.c (OP): Fix spacing.
27493
27494 2006-01-11  Bruno Haible  <bruno@clisp.org>
27495
27496         Ensure automatic ordering between gl_LOCK and gl_ARGP.
27497         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
27498         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
27499
27500 2006-01-11  Bruno Haible  <bruno@clisp.org>
27501
27502         Ensure automatic ordering between gl_LOCK and gl_ARGP.
27503         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
27504         the "early" section as well.
27505
27506 2006-01-11  Bruno Haible  <bruno@clisp.org>
27507
27508         Avoid "ar: no archive members specified" error on MacOS X.
27509         * gnulib-tool (func_modules_add_dummy): New function.
27510         (func_import, func_create_testdir): Invoke it.
27511
27512 2006-01-11  Bruno Haible  <bruno@clisp.org>
27513
27514         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
27515         with $auxdir in AC_CONFIG_FILES statements.
27516
27517 2006-01-11  Bruno Haible  <bruno@clisp.org>
27518
27519         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
27520         Initialize also noinst_HEADERS to empty.
27521
27522 2006-01-11  Bruno Haible  <bruno@clisp.org>
27523
27524         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
27525         variables.
27526         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
27527         autoreconf.
27528
27529 2006-01-11  Bruno Haible  <bruno@clisp.org>
27530
27531         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
27532         overridable by the user.
27533         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
27534
27535 2006-01-10  Simon Josefsson  <jas@extundo.com>
27536
27537         * modules/sys_socket: New file.
27538
27539 2006-01-10  Simon Josefsson  <jas@extundo.com>
27540
27541         * m4/sys_socket_h.m4: New file.
27542
27543 2006-01-10  Simon Josefsson  <jas@extundo.com>
27544
27545         * lib/socket_.h: New file.
27546
27547 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
27548
27549         * modules/readutmp (Maintainer): Add myself.
27550
27551 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
27552
27553         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
27554         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
27555         People who are still concerned with buggy memcmp implementations
27556         can invoke gl_FUNC_MEMCMP themselves.
27557
27558 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
27559
27560         * lib/regex_internal.h (BITSET_WORD_BITS):
27561         Work around a bug in 64-bit PGC (before version 6.1-2), where the
27562         preprocessor mishandles large unsigned values as if they were signed.
27563         Problem reported by Claudio Fontana in
27564         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
27565
27566 2006-01-10  Jim Meyering  <jim@meyering.net>
27567
27568         Avoid the double-free (first in fts_read, second in fts_close) that
27569         would occur when an `active' directory is made inaccessible (e.g.,
27570         via chmod a-x) during a traversal.
27571         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
27572         before returning.  Reproduce this failure by
27573         mkdir -p a/b; cd a; chmod a-x . b
27574         Reported by Stavros Passas.
27575
27576         Sync from coreutils.
27577         * lib/sha1.c: Tweak grammar in a comment.
27578
27579 2006-01-10  Jim Meyering  <jim@meyering.net>
27580
27581         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
27582         Patch by Joerg Sonnenberger.
27583
27584 2006-01-10  Bruno Haible  <bruno@clisp.org>
27585
27586         * modules/readutmp: Depend on module free.
27587         * modules/strtok_r: Depend on module restrict.
27588
27589 2006-01-10  Bruno Haible  <bruno@clisp.org>
27590
27591         * modules/gettext (configure.ac): Add an invocation of
27592         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
27593
27594 2006-01-10  Bruno Haible  <bruno@clisp.org>
27595
27596         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
27597         Reported by Werner Lemberg <wl@gnu.org>.
27598
27599 2006-01-10  Bruno Haible  <bruno@clisp.org>
27600
27601         * lib/localcharset.c: Update from GNU gettext.
27602
27603 2006-01-10  Bruno Haible  <bruno@clisp.org>
27604
27605         * lib/argp.h (__const): Remove macro. Use const instead.
27606         * lib/argp-fmtstream.h (__const): Likewise.
27607         * lib/glob_.h (__const): Remove macro.
27608         * lib/glob-libc.h: Use const instead of __const.
27609
27610 2006-01-10  Bruno Haible  <bruno@clisp.org>
27611
27612         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
27613         variable.
27614         Needed to avoid an automake error regarding the 'gettext' module.
27615
27616 2006-01-09  Simon Josefsson  <jas@extundo.com>
27617
27618         * modules/inet_ntop (Depends-on): Add restrict.
27619
27620 2006-01-09  Simon Josefsson  <jas@extundo.com>
27621
27622         * modules/gc-rijndael-tests (License): Put under LGPL.
27623
27624         * modules/gc-des-tests (License): Likewise.
27625
27626         * modules/gc-arcfour-tests (License): Likewise.
27627
27628         * modules/gc-arctwo-tests (License): Likewise.
27629
27630         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
27631
27632         * modules/gc-hmac-sha1-tests (Files): Likewise.
27633
27634         * modules/gc-hmac-md5-tests (License): Likewise.
27635
27636         * modules/gc-sha1-tests (License): Likewise.
27637
27638         * modules/gc-md5-tests (License): Likewise.
27639
27640         * modules/gc-md4-tests (License): Likewise.
27641
27642         * modules/gc-md2-tests (License): Likewise.
27643
27644         * modules/gc-tests (License): Likewise.
27645
27646         * modules/des-tests (License): Likewise.
27647
27648         * modules/md4-tests (License): Likewise.
27649
27650         * modules/md2-tests (License): Likewise.
27651
27652 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
27653
27654         Sync from coreutils:
27655
27656         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
27657         * modules/lib-ignore: New file.
27658         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
27659         chdir-safer.m4, lchmod.m4.
27660         * modules/openat: Add mkdirat.c, openat-priv.h.
27661
27662 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
27663
27664         Sync from coreutils.
27665         * m4/lib-ignore.m4: New file.
27666         * m4/lchmod.m4: New file.
27667
27668 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
27669
27670         Sync from coreutils.
27671         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
27672         for write access: POSIX says that must fail.
27673         * lib/fts.c (diropen): Likewise.
27674         * lib/save-cwd.c (save_cwd): Likewise.
27675         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
27676         well, for minor improvements on hosts that lack O_DIRECTORY.
27677         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
27678         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
27679         Fall back on chown if open failed with EACCES.
27680
27681         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
27682         Report an error at compile-time if only a 1-second nominal clock
27683         resolution is found.
27684
27685         * lib/lchmod.h: New file.
27686         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
27687         (make_dir_parents): Use lchown rather than chown, and
27688         lchmod rather than chmod.
27689
27690         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
27691         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
27692         "proc" reported by n0dalus.
27693
27694         * lib/mountlist.c: Include <limits.h>.
27695         (dev_from_mount_options)
27696         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
27697         New function.  It no longer assumes "dev=" has the System V meaning
27698         on Linux (since it doesn't).  It also parses "dev=" more carefully.
27699         (read_file_system_list)
27700         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
27701         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
27702         dev= in that case.
27703
27704         * lib/posixtm.h (PDS_PRE_2000): New macro.
27705         * lib/posixtm.c (year): Arg is now syntax_bits rather than
27706         allow_century.  All usages changed.  Reject dates outside the range
27707         1969-1999 if PDS_PRE_2000 is used.
27708
27709 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
27710
27711         Sync from coreutils.
27712         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
27713         (Time of day items): Mention the possibility of leap seconds.
27714         Problem reported by Dr. David Alan Gilbert.
27715
27716 2006-01-09  Jim Meyering  <jim@meyering.net>
27717
27718         Sync from coreutils.
27719
27720         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
27721
27722         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
27723
27724         * lib/modechange.c (mode_compile): Reject an invalid mode string
27725         that starts with an octal digit.  From Andreas Gruenbacher.
27726
27727         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
27728         and dup to open_safer and dup_safer, respectively.
27729         (openat_permissive): Fix typo in comment.
27730
27731         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
27732         "gettext.h"; either no longer needed or are guaranteed by openat.h.
27733         (_): Remove; no longer needed.
27734         (openat): Renamed from rpl_openat; no need for rpl_openat
27735         since openat.h renames openat for us.
27736         Replace most of the body with a call to openat_permissive,
27737         to avoid duplicate code.
27738         Port to (probably hypothetical) environments were mode_t is
27739         wider than int.
27740         (openat_permissive): Require mode arg, so that we can check
27741         types better.  Put it just after flags.  Change cwd failure
27742         indicator from pointer-to-bool to pointer-to-errno-value.
27743         All callers changed.
27744         Invoke openat_save_fail and/or openat_restore_fail if
27745         cwd_errno is null, so that openat can call us.
27746         (openat_permissive, fdopendir, fstatat, unlinkat):
27747         Simplify errno handling to avoid some duplicate code,
27748         as it's OK to set errno on success.
27749         * lib/openat.h: Revamp code so that function macros depend on
27750         __OPENAT_PREFIX only, not also on AT_FDCWD.
27751         (openat_ro): Remove.  Caller changed to use openat_permissive.
27752         (openat_permissive): Now a macro, if not a function.
27753         (openat_restore_fail, openat_save_fail): Now always functions,
27754         since mkdirat needs them even if __OPENAT_PREFIX is defined.
27755
27756         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
27757         and openat.c.
27758         * lib/mkdirat.c: Include openat-priv.h.
27759         Remove definitions of macros defined therein.
27760         * lib/openat.c: Likewise.
27761
27762         * lib/mkdirat.c (mkdirat): New file and function.
27763         * lib/openat.h (mkdirat): Declare.
27764
27765         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
27766
27767         * lib/openat.h (openat_permissive): Declare.
27768         (openat_ro): Define.
27769
27770         * lib/openat.c (EXPECTED_ERRNO): New macro.
27771         (openat_permissive): New function -- used in remove.c rewrite.
27772         (all functions): Set errno just before returning, only if there
27773         was an actual failure.
27774         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
27775
27776         Emulate openat-family functions using Linux's procfs, if possible.
27777         Idea and some code based on Ulrich Drepper's glibc changes.
27778
27779         * lib/openat.c: (BUILD_PROC_NAME): New macro.
27780         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
27781         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
27782         before falling back on save_cwd and restore_cwd.
27783         (fdopendir, fstatat, unlinkat): Likewise.
27784
27785         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
27786         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
27787
27788         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
27789         as second argument to va_arg.  Otherwise, some versions of gcc
27790         warn that `if this code is reached, the program will abort'.
27791
27792 2006-01-09  Jim Meyering  <jim@meyering.net>
27793
27794         Sync from coreutils.
27795         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
27796         Require openat-priv.h.
27797
27798 2006-01-09  Bruno Haible  <bruno@clisp.org>
27799
27800         * modules/strnlen (Include): Use strnlen.h.
27801
27802 2006-01-09  Bruno Haible  <bruno@clisp.org>
27803
27804         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
27805
27806 2006-01-09  Bruno Haible  <bruno@clisp.org>
27807
27808         * lib/sysexit_.h (EX_OK): New macro.
27809         Suggested by Martin Lambers <marlam@marlam.de>.
27810
27811 2006-01-09  Bruno Haible  <bruno@clisp.org>
27812
27813         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
27814         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
27815
27816 2006-01-09  Bruno Haible  <bruno@clisp.org>
27817
27818         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
27819         numbers.
27820
27821 2006-01-09  Bruno Haible  <bruno@clisp.org>
27822
27823         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
27824         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
27825         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
27826         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
27827
27828 2006-01-09  Bruno Haible  <bruno@clisp.org>
27829
27830         * build-aux/javacomp.sh.in: New file, moved from lib/.
27831         * modules/javacomp-script (Files): Update.
27832         (configure.ac): Add AC_CONFIG_FILES invocation.
27833         (EXTRA_DIST): Remove variable.
27834
27835         * build-aux/javaexec.sh.in: New file, moved from lib/.
27836         * modules/javaexec (Files): Update.
27837         (configure.ac): Add AC_CONFIG_FILES invocation.
27838         (EXTRA_DIST): Remove javaexec.sh.in.
27839
27840         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
27841         * modules/csharpcomp-script (Files): Update.
27842         (configure.ac): Add AC_CONFIG_FILES invocation.
27843         (EXTRA_DIST): Remove variable.
27844
27845         * build-aux/csharpexec.sh.in: New file, moved from lib/.
27846         * modules/csharpexec (Files): Update.
27847         (configure.ac): Add AC_CONFIG_FILES invocation.
27848         (EXTRA_DIST): Remove csharpexec.sh.in.
27849
27850 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
27851
27852         Sync from coreutils.
27853
27854         Add POSIX ACL support
27855         * lib/acl.h (copy_acl, set_acl): Add declarations.
27856         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
27857         systems other than Linux.
27858         (chmod_or_fchmod): New function: use fchmod when possible,
27859         and chmod otherwise.
27860         (file_has_acl): Add a POSIX ACL implementation, with a
27861         Linux-specific subcase.
27862         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
27863         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
27864         acls are unsupported.
27865         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
27866         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
27867         are unsupported.
27868
27869 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
27870
27871         Sync from coreutils.
27872         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
27873
27874 2006-01-07  Bruno Haible  <bruno@clisp.org>
27875
27876         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
27877         gl_EARLY.
27878
27879 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
27880
27881         * lib/strftime.c (tzname): Don't declare if it is already #defined.
27882         Problem reported for Mingw by Mark Junker.
27883
27884 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
27885
27886         * README: Gnulib normally doesn't generate a tarball.
27887
27888 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
27889
27890         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
27891         long int, not int, for nanosecond counts, so that people who are
27892         used to POSIX struct timespec won't be surprised.  Reported by Jim
27893         Meyering.
27894
27895 2005-12-28  Bruno Haible  <bruno@clisp.org>
27896
27897         * build-aux/config.rpath: Update from GNU gettext.
27898
27899 2005-12-16  Jim Meyering  <jim@meyering.net>
27900
27901         * modules/fprintftime: New module.
27902         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
27903
27904 2005-12-16  Jim Meyering  <jim@meyering.net>
27905
27906         * m4/fprintftime.m4: New file.
27907
27908 2005-12-16  Jim Meyering  <jim@meyering.net>
27909
27910         * lib/fprintftime.c, lib/fprintftime.h: New files.
27911
27912 2005-12-15  Simon Josefsson  <jas@extundo.com>
27913
27914         * modules/socklen (configure.ac): Fix M4 macro name, to align with
27915         new m4/socklen.m4.
27916
27917 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
27918
27919         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
27920         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
27921
27922 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
27923
27924         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
27925         * lib/argp-help.c (fill_in_uparams): Check if the constructed
27926         struct uparams is valid. Fall back to the default values if it is
27927         not.
27928
27929 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
27930
27931         * modules/argp (Files): Add argp-pin.c
27932         (Depends-on): dirname
27933         (lib_SOURCES): Add argp-pin.c
27934
27935 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
27936
27937         * m4/argp.m4:  Check if program_invocation_name and
27938         program_invocation_short_name are declared and define appropriate
27939         macros if they are not.
27940
27941 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
27942
27943         * lib/argp-help.c (__argp_base_name): New function
27944         (__argp_short_program_name): Rewrite using __argp_base_name
27945         * lib/argp-namefrob.h: Define program_invocation_name and
27946         program_invocation_short_name if requested
27947         (__argp_base_name): Add prototype
27948         * lib/argp-parse.c (argp_def): Use gettext wrappers
27949         (argp_default_parser): Use __argp_base_name
27950         * lib/argp-pin.c: New file. Defines program_invocation_name and
27951         program_invocation_short_name on systems that lack them.
27952
27953 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
27954
27955         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
27956         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
27957         porting problem reported by Georg Schwarz in
27958         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
27959
27960 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
27961
27962         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
27963         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
27964         porting problem reported by Georg Schwarz in
27965         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
27966
27967 2005-12-05  Bruno Haible  <bruno@clisp.org>
27968
27969         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
27970         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
27971         Reported by Mark Junker <mjscod@gmx.de>.
27972
27973 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
27974
27975         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
27976         Use implementation from Albert Chin, with some
27977         comments/corrections by Stepan Kasal and myself.
27978
27979 2005-12-02  Bruno Haible  <bruno@clisp.org>
27980
27981         * gnulib-tool (func_import): Accept GPLed build tool modules when
27982         --lgpl is given.
27983         * modules/csharpcomp-script: New file.
27984         * modules/csharpcomp: Depend on it.
27985         * modules/javacomp-script: New file.
27986         * modules/javacomp: Depend on it.
27987         Suggested by Simon Josefsson.
27988
27989 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
27990
27991         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
27992         statement, to work around an HP-UX 10.20 compiler bug reported by
27993         Peter O'Gorman.
27994
27995 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
27996
27997         * modules/savedir (Depends-on): Add openat.
27998
27999 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
28000
28001         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
28002         (uintmax_t) [defined uintmax_t]: Do not declare.
28003         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
28004         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
28005         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
28006         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
28007         sake of portability to weird hosts that C allows (though we don't
28008         know of any practical examples).
28009
28010         * lib/savedir.h (fdsavedir): New decl.
28011         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
28012         contains most of the former guts of savedir.
28013         (savedir): Use savedirstream.
28014         Include "openat.h".
28015
28016 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
28017
28018         * modules/obstack (Files): Add m4/ulonglong.m4.
28019         Problem reported by Davide Angelocola.
28020
28021 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
28022
28023         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
28024         coreutils no longer futzes with rounding modes.
28025
28026 2005-11-14  Jim Meyering  <jim@meyering.net>
28027
28028         * lib/mkstemp-safer.c: Include <config.h>, required for possible
28029         replacement of mkstemp.
28030
28031 2005-11-10  Simon Josefsson  <jas@extundo.com>
28032
28033         * lib/readline.c: Remove EOL.
28034
28035 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
28036
28037         * modules/gethrxtime (Depends-on): Add gettime.
28038
28039 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
28040
28041         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
28042         or gettimeofday; no longer needed.
28043
28044 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
28045
28046         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
28047         time business.
28048         (gethrxtime) [! (HAVE_NANOUPTIME
28049         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
28050         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
28051         our own approximation.
28052
28053 2005-11-08  Eric Blake  <ebb9@byu.net>
28054
28055         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
28056
28057 2005-11-08  Eric Blake  <ebb9@byu.net>
28058
28059         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
28060
28061 2005-11-04  Bruno Haible  <bruno@clisp.org>
28062
28063         * gnulib-tool: Implement --update mode.
28064
28065 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
28066
28067         Fix porting problem reported by Theodoros V. Kalamatianos.
28068         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
28069         Don't assume that futimes failing means we must fail.
28070
28071 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
28072
28073         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
28074         variables to suggest the intended function of the PATH_MAX check.
28075
28076 2005-10-30  Kean Johnston  <jkj@sco.com>
28077
28078         Trivial changes to support SCO systems.
28079         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
28080         as PATH_MAX.
28081         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
28082         where __ptr is null when no I/O is pending.
28083
28084 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
28085
28086         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
28087         leave errno alone.  Problem reported by Dmitry V. Levin.
28088
28089 2005-10-28  Simon Josefsson  <jas@extundo.com>
28090
28091         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
28092         Test more.
28093
28094         * tests/test-gc-md2.c, tests/test-md2.c: New files.
28095
28096         * modules/md2, modules/md2-tests: New files.
28097
28098 2005-10-28  Simon Josefsson  <jas@extundo.com>
28099
28100         * m4/inet_ntop.m4: More tests.
28101
28102         * m4/gc-md2.m4, md2.m4: New file.
28103
28104 2005-10-28  Simon Josefsson  <jas@extundo.com>
28105
28106         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
28107         "restrict" keywords, as per POSIX.  Protect the function
28108         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
28109         Don't use K&R prototypes.  Check the sprintf return values.
28110         Re-define EAFNOSUPPORT if not present.  Indent.
28111
28112         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
28113         suggested by Bruno Haible <bruno@clisp.org>.
28114
28115         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
28116
28117         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
28118
28119         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
28120         libgcrypt).
28121
28122         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
28123
28124         * lib/md2.h, lib/md2.c: New files.
28125
28126 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
28127
28128         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
28129         errno alone.  Problem reported by Frederic Jolliton.
28130
28131 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
28132
28133         * modules/verify (License): Change from GPL to LGPL.  This is a
28134         tiny module and there are apparently near-equivalents that are
28135         under the BSD license.
28136
28137 2005-10-24  Simon Josefsson  <jas@extundo.com>
28138
28139         * modules/sha1: Relicense to LGPL.
28140
28141 2005-10-24  Simon Josefsson  <jas@extundo.com>
28142
28143         * lib/md4.h: Shrink buffer size, now that we changed the type.
28144
28145 2005-10-23  Simon Josefsson  <jas@extundo.com>
28146
28147         * gnulib-tool (func_import): Fix --tests-base.
28148
28149 2005-10-22  Simon Josefsson  <jas@extundo.com>
28150
28151         * modules/arcfour (Depends-on): Need stdint.
28152
28153 2005-10-22  Simon Josefsson  <jas@extundo.com>
28154
28155         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
28156         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
28157
28158 2005-10-22  Simon Josefsson  <jas@extundo.com>
28159
28160         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
28161         suggested by Bruno Haible <bruno@clisp.org>.
28162
28163 2005-10-22  Simon Josefsson  <jas@extundo.com>
28164
28165         * lib/crc.h: Include stddef.h, for size_t.
28166
28167 2005-10-22  Simon Josefsson  <jas@extundo.com>
28168
28169         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
28170         arcfour_context struct (simplify test vector testing in GNU
28171         Shishi).
28172
28173 2005-10-21  Simon Josefsson  <jas@extundo.com>
28174
28175         * modules/des, modules/des-tests: New files.
28176
28177         * modules/gc-des, modules/gc-des-tests: New files.
28178
28179         * tests/test-des.c, tests/test-gc-des.c: New file.
28180
28181 2005-10-21  Simon Josefsson  <jas@extundo.com>
28182
28183         * modules/arctwo, modules/arctwo-tests: New files.
28184
28185         * tests/test-arctwo.c: New file.
28186
28187         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
28188
28189         * tests/test-gc-arctwo.c: New file.
28190
28191 2005-10-21  Simon Josefsson  <jas@extundo.com>
28192
28193         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
28194         Bruno Haible <bruno@clisp.org>.
28195
28196         * m4/gc-des.m4: New file.
28197
28198 2005-10-21  Simon Josefsson  <jas@extundo.com>
28199
28200         * m4/arctwo.m4: New file.
28201
28202         * m4/gc-arctwo.m4: New file.
28203
28204 2005-10-21  Simon Josefsson  <jas@extundo.com>
28205
28206         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
28207         block.
28208
28209 2005-10-21  Simon Josefsson  <jas@extundo.com>
28210
28211         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
28212         <bruno@clisp.org>.
28213
28214         * lib/hmac-sha1.c (hmac_sha1): Likewise.
28215
28216         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
28217         Bruno Haible <bruno@clisp.org>.
28218
28219         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
28220         <bruno@clisp.org>.
28221
28222 2005-10-21  Simon Josefsson  <jas@extundo.com>
28223
28224         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
28225
28226 2005-10-21  Simon Josefsson  <jas@extundo.com>
28227
28228         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
28229
28230 2005-10-21  Simon Josefsson  <jas@extundo.com>
28231
28232         * lib/des.h, lib/des.c: New files.
28233
28234         * lib/gc-gnulib.c: Support DES.c
28235
28236 2005-10-21  Simon Josefsson  <jas@extundo.com>
28237
28238         * lib/arctwo.h, lib/arctwo.c: New files.
28239
28240         * lib/gc-gnulib.c: Support ARCTWO.
28241
28242 2005-10-21  Simon Josefsson  <jas@extundo.com>
28243
28244         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
28245         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
28246
28247 2005-10-21  Simon Josefsson  <jas@extundo.com>
28248
28249         * gnulib-tool (func_import, func_create_testdir): Define automake
28250         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
28251         Makefile.am snippet),
28252         suggested by Bruno Haible <bruno@clisp.org>.
28253
28254         * modules/gc (Makefile.am): Use it.
28255
28256 2005-10-21  Bruno Haible  <bruno@clisp.org>
28257
28258         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
28259         patch.
28260
28261 2005-10-19  Simon Josefsson  <jas@extundo.com>
28262
28263         * tests/test-gc-rijndael.c: New file.
28264
28265         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
28266
28267 2005-10-19  Simon Josefsson  <jas@extundo.com>
28268
28269         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
28270         interface too.
28271
28272 2005-10-19  Simon Josefsson  <jas@extundo.com>
28273
28274         * tests/test-gc-arcfour.c: New file.
28275
28276         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
28277
28278 2005-10-19  Simon Josefsson  <jas@extundo.com>
28279
28280         * modules/gc-md4, modules/gc-md4-tests: New file.
28281
28282         * tests/test-gc-md4.c: New file.
28283
28284 2005-10-19  Simon Josefsson  <jas@extundo.com>
28285
28286         * m4/gc-md4.m4: New file.
28287
28288 2005-10-19  Simon Josefsson  <jas@extundo.com>
28289
28290         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
28291         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
28292         <kasal@ucw.cz>.
28293
28294 2005-10-19  Simon Josefsson  <jas@extundo.com>
28295
28296         * m4/gc-arcfour.m4: New file.
28297
28298         * m4/gc-rijndael.m4: New file.
28299
28300 2005-10-19  Simon Josefsson  <jas@extundo.com>
28301
28302         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
28303
28304 2005-10-19  Simon Josefsson  <jas@extundo.com>
28305
28306         * lib/gc-gnulib.c: Support ARCFOUR.
28307
28308 2005-10-19  Simon Josefsson  <jas@extundo.com>
28309
28310         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
28311         support.
28312
28313         * lib/gc.h: Add ECB enum type.
28314
28315         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
28316
28317 2005-10-18  Simon Josefsson  <jas@extundo.com>
28318
28319         * tests/test-md5.c: New file.
28320
28321         * modules/md5-tests: New file.
28322
28323 2005-10-18  Simon Josefsson  <jas@extundo.com>
28324
28325         * tests/test-md4.c: New file.
28326
28327         * modules/md4, modules/md4-tests: New files.
28328
28329 2005-10-18  Simon Josefsson  <jas@extundo.com>
28330
28331         * m4/md4.m4: New file.
28332
28333 2005-10-18  Simon Josefsson  <jas@extundo.com>
28334
28335         * lib/md4.h, lib/md4.c: New files, based on md5.?.
28336
28337 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
28338
28339         * gnulib-tool (func_create_testdir): Omit the second check whether
28340         BUILT_SOURCES in nonempty.
28341
28342 2005-10-17  Simon Josefsson  <jas@extundo.com>
28343
28344         * tests/test-rijndael.c: New file.
28345
28346 2005-10-17  Simon Josefsson  <jas@extundo.com>
28347
28348         * modules/sha1: Depend on stdint instead of md5.
28349
28350         * modules/md5: Depend on stdint, remove uint32_t.
28351
28352 2005-10-17  Simon Josefsson  <jas@extundo.com>
28353
28354         * modules/gc-sha1-tests: New file.
28355
28356         * tests/test-gc-sha1.c: New file.
28357
28358 2005-10-17  Simon Josefsson  <jas@extundo.com>
28359
28360         * m4/md5.m4: Remove call to uint32_t.m4.
28361
28362 2005-10-17  Simon Josefsson  <jas@extundo.com>
28363
28364         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
28365
28366         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
28367         md5.h.
28368
28369         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
28370
28371         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
28372
28373 2005-10-17  Simon Josefsson  <jas@extundo.com>
28374
28375         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
28376
28377 2005-10-17  Simon Josefsson  <jas@extundo.com>
28378
28379         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
28380
28381 2005-10-17  Simon Josefsson  <jas@extundo.com>
28382
28383         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
28384
28385         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
28386
28387 2005-10-17  Bruno Haible  <bruno@clisp.org>
28388
28389         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
28390         that it can also be used in a test.
28391
28392 2005-10-16  Bruno Haible  <bruno@clisp.org>
28393
28394         * gnulib-tool (func_emit_tests_Makefile_am): Also define
28395         TESTS_ENVIRONMENT, so that individual tests can augment it.
28396
28397         * gnulib-tool (func_create_testdir): Use an intermediate target for
28398         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
28399         macros, like $(ALLOCA_H), which cannot be passed through the command
28400         line.
28401
28402 2005-10-15  Simon Josefsson  <jas@extundo.com>
28403
28404         * modules/rijndael-tests: New file.
28405
28406         * modules/rijndael: New file.
28407
28408 2005-10-15  Simon Josefsson  <jas@extundo.com>
28409
28410         * m4/rijndael.m4: New file.
28411
28412 2005-10-15  Simon Josefsson  <jas@extundo.com>
28413
28414         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
28415
28416         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
28417
28418 2005-10-14  Simon Josefsson  <jas@extundo.com>
28419
28420         * tests/test-arcfour.c: New file.
28421
28422         * modules/arcfour, modules/arcfour-tests: New files.
28423
28424 2005-10-14  Simon Josefsson  <jas@extundo.com>
28425
28426         * m4/arcfour.m4: New file.
28427
28428 2005-10-14  Simon Josefsson  <jas@extundo.com>
28429
28430         * lib/arcfour.h, lib/arcfour.c: New files.
28431
28432 2005-10-14  Roland McGrath  <roland@redhat.com>
28433
28434         Import from libc.  [BZ #1331]
28435         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
28436         macro argument.
28437         Reported by Matej Vela <vela@debian.org>.
28438
28439 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
28440
28441         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
28442         include <wchar.h>; no longer needed.
28443
28444 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
28445
28446         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
28447
28448 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
28449         and  Ulrich Drepper  <drepper@redhat.com>
28450
28451         Import from libc.
28452         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
28453         instead of inline stream orientation test and two separate
28454         function calls.  Pay no attention to USE_IN_LIBIO.
28455
28456 2005-10-13  Simon Josefsson  <jas@extundo.com>
28457
28458         * modules/gc-hmac-md5-tests: New file.
28459
28460         * tests/test-gc-hmac-sha1.c: New file.
28461
28462         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
28463
28464         * modules/gc-hmac-md5-tests: New file.
28465
28466         * tests/test-gc-md5.c: New file.
28467
28468         * modules/gc-md5-tests: New file.
28469
28470 2005-10-13  Simon Josefsson  <jas@extundo.com>
28471
28472         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
28473         Move memory allocation outside of loop.
28474
28475 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
28476
28477         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
28478         intermediate directory is in a read-only file system.  Problem
28479         reported by Eric Blake.
28480
28481 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
28482
28483         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
28484
28485 2005-10-12  Simon Josefsson  <jas@extundo.com>
28486
28487         * tests/test-hmac-sha1.c: New file.
28488
28489         * modules/hmac-sha1-tests: New file.
28490
28491         * modules/hmac-sha1: New file.
28492
28493 2005-10-12  Simon Josefsson  <jas@extundo.com>
28494
28495         * modules/gc-sha1: New file.
28496
28497 2005-10-12  Simon Josefsson  <jas@extundo.com>
28498
28499         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
28500
28501         * tests/test-gc-pbkdf2-sha1.c: New file.
28502
28503 2005-10-12  Simon Josefsson  <jas@extundo.com>
28504
28505         * modules/gc-md5, modules/gc-hmac-md5: New files.
28506
28507         * modules/gc (Files): Remove md5, memxor and hmac files.
28508
28509 2005-10-12  Simon Josefsson  <jas@extundo.com>
28510
28511         * m4/gc-pbkdf2-sha1.m4: New file.
28512
28513         * m4/gc-hmac-sha1.m4: New file.
28514
28515         * m4/gc-sha1: New file.
28516
28517         * m4/hmac-sha1.m4: New file.
28518
28519 2005-10-12  Simon Josefsson  <jas@extundo.com>
28520
28521         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
28522
28523         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
28524
28525 2005-10-12  Simon Josefsson  <jas@extundo.com>
28526
28527         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
28528         suggested by Bruno Haible <bruno@clisp.org>.
28529
28530 2005-10-12  Simon Josefsson  <jas@extundo.com>
28531
28532         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
28533
28534 2005-10-12  Simon Josefsson  <jas@extundo.com>
28535
28536         * lib/gc-pbkdf2-sha1.c: New file.
28537
28538         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
28539
28540 2005-10-12  Simon Josefsson  <jas@extundo.com>
28541
28542         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
28543
28544         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
28545
28546 2005-10-12  Simon Josefsson  <jas@extundo.com>
28547
28548         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
28549         GC_USE_HMAC_MD5, respectively.
28550
28551         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
28552         (gc_md5): Fix typo.
28553
28554         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
28555
28556         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
28557
28558         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
28559
28560 2005-10-12  Bruno Haible  <bruno@clisp.org>
28561
28562         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
28563         Reported by Stepan Kasal <kasal@ucw.cz>.
28564
28565 2005-10-11  Simon Josefsson  <jas@extundo.com>
28566
28567         * tests/test-crc.c: New file.
28568
28569         * modules/crc, modules/crc-tests: New files.
28570
28571 2005-10-11  Simon Josefsson  <jas@extundo.com>
28572
28573         * m4/crc.m4: New file.
28574
28575 2005-10-11  Simon Josefsson  <jas@extundo.com>
28576
28577         * lib/gc.h: Add gc_hash and gc_hash_buffer.
28578
28579         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
28580
28581         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
28582
28583 2005-10-11  Simon Josefsson  <jas@extundo.com>
28584
28585         * lib/crc.h, lib/crc.c: New files.
28586
28587         * lib/gc.h (gc_hash_buffer): Add doc.
28588
28589 2005-10-11  Bruno Haible  <bruno@clisp.org>
28590
28591         * modules/c-strcasestr: New file.
28592         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
28593
28594 2005-10-11  Bruno Haible  <bruno@clisp.org>
28595
28596         * modules/c-strcase: New file.
28597         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
28598
28599 2005-10-11  Bruno Haible  <bruno@clisp.org>
28600
28601         * lib/strcasecmp.c: Include limits.h.
28602         (strcasecmp): Avoid integer overflow on exotic platforms.
28603         * lib/strncasecmp.c: Include limits.h.
28604         (strncasecmp): Avoid integer overflow on exotic platforms.
28605         Reported by Paul Eggert.
28606
28607 2005-10-11  Bruno Haible  <bruno@clisp.org>
28608
28609         * lib/c-strcasestr.h: New file, from GNU gettext.
28610         * lib/c-strcasestr.c: New file, from GNU gettext.
28611
28612 2005-10-11  Bruno Haible  <bruno@clisp.org>
28613
28614         * lib/c-strcase.h: New file, from GNU gettext.
28615         * lib/c-strcasecmp.c: New file, from GNU gettext.
28616         * lib/c-strncasecmp.c: New file, from GNU gettext.
28617
28618 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
28619
28620         * modules/mempcpy (License): GPL -> LGPL.
28621         * modules/strchrnul (License): Likewise.
28622         * modules/sysexits (License): Likewise.
28623
28624 2005-10-08  Simon Josefsson  <jas@extundo.com>
28625
28626         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
28627
28628 2005-10-07  Simon Josefsson  <jas@extundo.com>
28629
28630         * m4/memxor.m4: Remove gl_C_RESTRICT call.
28631
28632 2005-10-06  Simon Josefsson  <jas@extundo.com>
28633
28634         * tests/test-hmac-md5.c: New file.
28635
28636         * modules/hmac-md5-tests: New file.
28637
28638         * modules/hmac-md5: New file.
28639
28640 2005-10-06  Simon Josefsson  <jas@extundo.com>
28641
28642         * m4/hmac-md5.m4: New file.
28643
28644         * m4/memxor.m4: Require gl_C_RESTRICT.
28645
28646 2005-10-06  Simon Josefsson  <jas@extundo.com>
28647
28648         * lib/memxor.c (memxor): Avoid casts and warnings.
28649
28650 2005-10-06  Simon Josefsson  <jas@extundo.com>
28651
28652         * lib/hmac-md5.c: New file.
28653
28654         * lib/hmac.h: New file.
28655
28656 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
28657
28658         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
28659         promotes to int, not unsigned int, to catch the AIX 5.3
28660         compiler bug.
28661
28662 2005-10-05  Simon Josefsson  <jas@extundo.com>
28663
28664         * modules/memxor: New file.
28665
28666         * modules/iconv (Files): Move config.rpath to havelib, it is used
28667         there.
28668
28669         * modules/havelib (Files): Add config.rpath.
28670
28671 2005-10-05  Simon Josefsson  <jas@extundo.com>
28672
28673         * m4/memxor.m4: New file.
28674
28675 2005-10-05  Simon Josefsson  <jas@extundo.com>
28676
28677         * lib/memxor.c (memxor): Fix compiler error.
28678
28679         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
28680         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
28681
28682         * lib/memxor.h, lib/memxor.c: New files.
28683
28684         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
28685         we assume all systems have it, suggested by Jim Meyering
28686         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
28687         any systems lack sys/socket.h; mingw32 is known to lack it, but we
28688         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
28689         same reasons.
28690
28691 2005-10-05  Simon Josefsson  <jas@extundo.com>
28692
28693         * config/srclist.txt: Add glibc bug 1423 for md5.h.
28694
28695 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
28696
28697         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
28698         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
28699         needed, since the source code now assumes these .h files.
28700
28701 2005-10-05  Derek Price  <derek@ximbiot.com>
28702
28703         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
28704
28705 2005-10-05  Bruno Haible  <bruno@clisp.org>
28706
28707         * modules/stdint (License): Change to LGPL.
28708
28709 2005-10-04  Simon Josefsson  <jas@extundo.com>
28710
28711         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
28712         D. Baushke" <mdb@gnu.org>.
28713
28714 2005-10-04  Bruno Haible  <bruno@clisp.org>
28715
28716         * lib/verify.h (verify_true): Provide alternative definition for C++.
28717
28718 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
28719
28720         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
28721         (SSIZE_MAX): New macro, if not already defined.
28722         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
28723         than 2 GiB.
28724
28725 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
28726
28727         Sync from coreutils.
28728         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
28729         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
28730         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
28731         ULLONG_MAX doesn't work with 2.7.2.1.
28732
28733 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
28734
28735         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
28736         From Ben Pfaff.
28737
28738         * modules/exclude (Depends-on): Depend on verify.
28739         * modules/strtoimax (Depends-on): Likewise.
28740         * modules/utimecmp (Depends-on): Likewise.
28741
28742 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
28743
28744         * lib/exclude.c: Include verify.h.
28745         (verify): Remove.  All callers changed to use verify.h's version.
28746         * lib/strtoimax.c: Likewise.
28747         * lib/utimecmp.c: Likewis.e
28748
28749         Sync from coreutils.
28750         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
28751         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
28752         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
28753         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
28754         bother returning ENOSYS if settimeofday or stime fails; just let
28755         them return whatever errno they want to return.
28756         * lib/utimens.c: Include unistd.h, for dup2.
28757         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
28758         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
28759
28760 2005-10-02  Jim Meyering  <jim@meyering.net>
28761
28762         Sync from coreutils.
28763         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
28764         from glibc-2.2.5 that fails for read-only files.
28765
28766 2005-10-02  Jim Meyering  <jim@meyering.net>
28767
28768         Sync from coreutils.
28769         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
28770         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
28771         `#if HAVE_CONFIG_H'.
28772         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
28773         Remove AT_FDCWD test.
28774         Do not consume the fd unless successful.
28775         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
28776         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
28777         block, so that we don't even try to compile it if settimeofday is
28778         available.  This works around a compilation failure on OSF1 V5.1,
28779         due to stime requiring a `long int*' while tv_sec is `int'.
28780
28781 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
28782
28783         Sync from coreutils.
28784         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
28785         against `yes', rather than just testing for nonempty.
28786
28787 2005-10-01  Simon Josefsson  <jas@extundo.com>
28788
28789         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
28790         and Darwin.
28791
28792         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
28793         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
28794         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
28795         freeaddrinfo and gai_strerror are declared by the POSIX headers.
28796         Check if struct addrinfo is declared.
28797
28798 2005-10-01  Simon Josefsson  <jas@extundo.com>
28799
28800         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
28801         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
28802         AI_* and EAI_* definitions.  Protect function declarations.
28803
28804 2005-10-01  Jim Meyering  <jim@meyering.net>
28805
28806         Sync from coreutils.
28807
28808         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
28809         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
28810         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
28811         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
28812         in the inet and nsl libraries.  Required on Solaris 5.7.
28813
28814 2005-10-01  Jim Meyering  <jim@meyering.net>
28815
28816         Sync from coreutils.
28817         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
28818         in the inet and nsl libraries.  Required on Solaris 5.7.
28819
28820 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
28821
28822         * lib/getdelim.c (getdelim): Remove unused variables.
28823
28824 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
28825
28826         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
28827         so that the code works even with ancient cpp.  Portability problem
28828         with GCC 2.7.2.1 reported by Thomas M.Ott.
28829
28830 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
28831
28832         * modules/regex (Depends-on): Add strcase.
28833
28834         * modules/gethostname (Licence): Change from GPL to LGPL, since
28835         gethostname.c is a trivial implementation of a standard library
28836         function.
28837         * modules/poll (License): Change from GPL to LGPL, since it's
28838         derived from LGPL code.
28839
28840 2005-09-27  Jim Meyering  <jim@meyering.net>
28841
28842         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
28843         HAVE_CONFIG_H.
28844
28845         * lib/intprops.h (signed_type_or_expr__): Define.
28846         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
28847         for unsigned types.
28848
28849 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
28850
28851         * lib/verify.h (verify_expr): Remove, replacing with:
28852         (verify_true): New macro that returns true instead of void.
28853         (verify_type__): Remove.
28854         (verify): Use verify_true rather than verify_type__.
28855
28856 2005-09-26  Bruno Haible  <bruno@clisp.org>
28857
28858         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
28859         is necessary.
28860         (lib_SOURCES): Remove mbchar.c.
28861         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
28862         (Files): Add m4/mbrtowc.m4.
28863         * modules/mbiter: Likewise.
28864         * modules/mbuiter: Likewise.
28865
28866 2005-09-26  Bruno Haible  <bruno@clisp.org>
28867
28868         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
28869         compile mbchar.c if they are not both present.
28870         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
28871         * m4/mbiter.m4 (gl_MBITER): Likewise.
28872         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
28873         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
28874         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
28875
28876 2005-09-25  Jim Meyering  <jim@meyering.net>
28877
28878         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
28879         also uses socklen_t.
28880
28881 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
28882
28883         * lib/utimens.c (ENOSYS): Define if not already defined.
28884         (futimens): Support having a null PATH if the file descriptor
28885         is nonnegative.
28886
28887         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
28888         Remove.
28889         (__attribute): Define to empty unless GCC 3.1 or later.
28890         This works around a core dump on OpenBSD 3.4, which has GCC
28891         2.95.3, which dumps core when given __attribute__(()).  It also
28892         simplifies other tests, since we really don't want to bother with
28893         worrying about which ancient version of GCC supported what.
28894         Original problem reported by Yoann Vandoorselaere, with part of
28895         the fix suggested by Derek Price.
28896
28897 2005-09-24  Jim Meyering  <jim@meyering.net>
28898
28899         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
28900         so we can once again use a positive bitfield width of 1 -- now we
28901         don't have to explain why we were using a bitfield width of 2.
28902
28903 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
28904
28905         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
28906         and similarly for the other external symbols.  Problem reported
28907         by James Gallager.
28908
28909         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
28910         bug reported by Jim Meyering.
28911
28912         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
28913         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
28914         not needed, since socklen is a prerequisite module.
28915
28916 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
28917
28918         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
28919         Problem reported by Eric Blake.
28920         (getaddrinfo): Initialize se so that it's not garbage.
28921         Redo internal storage allocation so that it doesn't make unportable
28922         assumptions about alignment.
28923         Fix a memory leak.
28924
28925         * lib/utimens.c (futimens): Use futimesat if available.
28926         Prefer it to futimes since it doesn't have the futimes bug.
28927
28928         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
28929         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
28930         Instead, declare a function that returns a pointer to an array,
28931         and use verify_type__ to declare the size of the array.
28932         Problem and germ of a solution reported by Bruno Haible.
28933         (verify_type__): Use 2, not 1, for bitfield size, to avoid
28934         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
28935
28936 2005-09-23  Jim Meyering  <jim@meyering.net>
28937
28938         Sync from coreutils.
28939         Correct build failure (socklen_t not defined) on at least
28940         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
28941         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
28942
28943 2005-09-23  Jim Meyering  <jim@meyering.net>
28944
28945         * modules/getaddrinfo (Depends-on): Add socklen.
28946
28947 2005-09-23  Bruno Haible  <bruno@clisp.org>
28948
28949         * tests/test-verify.c: New file.
28950
28951 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
28952
28953         Sync from coreutils.
28954
28955         * modules/argmatch (Depends-on): Add verify.
28956         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
28957         unistd-safer.
28958         * modules/save-cwd (Depends-on): Likewise.
28959
28960         * modules/openat (Files): Add lib/openat-die.c.
28961         (Depends-on): Remove error, exitfail.
28962         Add dirname.
28963
28964         * modules/verify: New file.
28965         * MODULES.html.sh (Diagnostics <assert.h>): New section,
28966         with "verify" module.
28967
28968 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
28969
28970         Sync from coreutils.
28971
28972         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
28973         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
28974         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
28975         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
28976         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
28977         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
28978         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
28979         Don't bother checking for string.h, stdlib.h, unistd.h.
28980         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
28981         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
28982         module's job.
28983         * m4/jm-macros.m4 (gl_MACROS): Likewise.
28984         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
28985
28986         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
28987         (gl_GETDATE): Use it.
28988
28989         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
28990
28991 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
28992
28993         Sync from coreutils.
28994
28995         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
28996         stat-time.h.
28997         * lib/argmatch.h: Include verify.h
28998         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
28999         (ARGMATCH_ASSERT): Remove; unused.
29000         * lib/canonicalize.c: Assume STDC_HEADERS.
29001         * lib/exclude.c: Include "strcase.h".
29002         * lib/regex_internal.h [!defined _LIBC]: Likewise.
29003         * lib/getusershell.c: Include stdio--.h rather than stdio.h
29004         and stdio-safer.h.
29005         (getusershell): Call fopen, not fopen_safer.
29006         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
29007         Do not include unistd-safer.h.
29008         (save_cwd): Don't call fd_safer; no longer needed
29009         now that we include fcntl--.h.
29010
29011         * lib/getdate.y (relative_time): New type.
29012         (RELATIVE_TIME_0): New constant.
29013         (parser_control): Use relative_time instead of doing it ourselves.
29014         (%union): Add new relative_time rel member.
29015         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
29016         Now typeless.
29017         (relunit, relunit_snumber): Now of type rel.
29018         (zone, rel, relunit, get_date): Adjust to above changes.
29019
29020         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
29021         Do not include unistd-safer.h.
29022         (getloadavg): Don't call fd_safer; no longer needed
29023         now that we include fcntl--.h.
29024
29025         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
29026         (make_dir_parents): Treat ENOSYS like EEXIST.
29027
29028         Improve quality of diagnostics on restore_cwd failure.
29029         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
29030         (make_dir_parents): Last arg is now int * (for errno), not bool *.
29031         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
29032         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
29033         each time through the loop.  Do not diagnose restore_cwd failure;
29034         that is the caller's job (and perhaps the caller does not care).
29035
29036         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
29037         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
29038         If the file already exists but is not a directory, don't bother
29039         to try to make its parents.
29040         Close potential file descriptor leak if we can't chdir("/") (!).
29041         Don't always return true if chdir($PWD) fails; return true only
29042         if the requested action was done successfully (except for the
29043         chdir($PWD)).
29044         Don't log final directory unless we actually made it.
29045         Refactor to avoid duplicate code to fix up permissions.
29046         Don't attempt to fix up parent permissions if chdir($PWD) fails.
29047
29048         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
29049         to make it a bit faster and (I hope) clearer.
29050         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
29051         Fix bug in formats like %2N.
29052
29053         * lib/verify.h: New file.
29054
29055 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
29056
29057         Sync from coreutils.
29058         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
29059
29060 2005-09-22  Jim Meyering  <jim@meyering.net>
29061
29062         Sync from coreutils.
29063
29064         * m4/lstat.m4 (gl_FUNC_LSTAT):
29065         Use AC_LIBSOURCES to require lstat.c and lstat.h.
29066         Remove obsolete comment.
29067         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
29068         * m4/xstrtod.m4: Likewise.
29069
29070         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
29071
29072 2005-09-22  Jim Meyering  <jim@meyering.net>
29073
29074         Sync from coreutils.
29075
29076         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
29077
29078         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
29079         the .tm_year member, since otherwise gcc-4.0 would now warn about
29080         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
29081
29082         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
29083         order to avoid an unsuppressible warning from gcc on 64-bit systems.
29084
29085         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
29086         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
29087         when run in a time zone for which daylight savings time is in effect
29088         for the starting date.
29089
29090         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
29091         stop us from restricting permissions of just-created absolute-named
29092         directories.
29093         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
29094         to restore initial working directory.
29095         * lib/mkdir-p.c (make_dir_parents): New parameter:
29096         different_working_dir, to tell caller if/when we change the working
29097         directory and are unable to return to the initial one.
29098         * lib/mkdir-p.h (make_dir_parents): Update prototype.
29099         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
29100         `return false'.  This fixes a bug introduced on 2004-07-30.
29101
29102         * lib/openat.c (fdopendir): Be sure to close the supplied
29103         file descriptor before returning.  This makes our replacement
29104         implementation a little closer to Solaris's, where fdopendir
29105         ties the file descriptor to the returned DIR* pointer.
29106         * lib/openat.c (unlinkat): New function.
29107         * lib/openat.h (unlinkat): Add prototype.
29108         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
29109         (openat_restore_fail): Rename from openat_restore_die.
29110         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
29111
29112         Provide an alternative to exiting immediately upon save_cwd or
29113         restore_cwd failure.  Now, an application can arrange e.g.,
29114         to perform a longjump in that case.
29115         * lib/openat.c: Include dirname.h.
29116         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
29117         (rpl_openat, fdopendir, fstatat): Call openat_save_die
29118         and openat_restore_die rather than calling error directly.
29119         Don't include "error.h" or "exitfail.h"; they're no longer needed.
29120
29121         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
29122         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
29123         define.
29124
29125         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
29126         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
29127                             int utc, int nanoseconds);
29128         Background:
29129         date should not have to allocate a megabyte of virtual memory to
29130         handle a format argument like +%1048575T.  When implemented with
29131         strftime, it must allocate such a buffer, use strftime to fill it
29132         in, print it, then free it.
29133         With fprintftime, it simply prints everything and exits.
29134         With no need for memory allocation, that's one fewer way to fail.
29135         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
29136         optional field width, not before, so we accept %9:z, not %:9z.
29137         (my_strftime): Be sure to use L_('x') for literals.
29138
29139         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
29140         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
29141         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
29142         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
29143         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
29144         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
29145         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
29146         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
29147         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
29148         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
29149         * lib/xgethostname.c, lib/xreadlink.c:
29150         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
29151
29152         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
29153         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
29154         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
29155         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
29156         and don't include <sys/file.h>).
29157
29158 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
29159
29160         Sync from coreutils.
29161
29162         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
29163         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
29164         [!LDAV_DONE]: Avoid unused variable warning.
29165
29166 2005-09-21  Bruno Haible  <bruno@clisp.org>
29167
29168         * lib/unicodeio.h (unicode_to_mb): New declaration.
29169
29170 2005-09-20  Derek Price  <derek@ximbiot.com>
29171
29172         * lib/getaddrinfo.c: Don't include <netdb.h> included from
29173         getaddrinfo.h.
29174
29175 2005-09-20  Bruno Haible  <bruno@clisp.org>
29176
29177         * gnulib-tool: Remove trailing slashes from the values specified for
29178         --source-base, --m4-base, --tests-base, --aux-dir.
29179         Suggested by Simon Josefsson <jas@extundo.com>.
29180
29181 2005-09-20  Bruno Haible  <bruno@clisp.org>
29182
29183         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
29184         func_modules_to_filelist, func_import, func_create_testdir): Make all
29185         sorting results locale-independent, so that gnulib-cache.m4 doesn't
29186         change when gnulib-tool is invoked in a different locale.
29187
29188 2005-09-19  Simon Josefsson  <jas@extundo.com>
29189
29190         * m4/socklen.m4: Fix typo.
29191
29192 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29193
29194         Use a consistent style for including <config.h>.
29195         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
29196         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
29197         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
29198         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
29199         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
29200         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
29201         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
29202         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
29203         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
29204         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
29205         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
29206         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
29207         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
29208         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
29209         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
29210         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
29211         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
29212         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
29213         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
29214         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
29215         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
29216         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
29217         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
29218         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
29219         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
29220         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
29221         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
29222         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
29223         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
29224         lib/xstrtoumax.c, lib/yesno.c:
29225         Standardize inclusion of config.h.
29226         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
29227         lib/inttostr.h:  Removed inclusion of config.h from header files.
29228         * lib/inttostr.c:  Adjusted in-tree users.
29229         * lib/timespec.h: Remove superfluous warning to include config.h.
29230         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
29231         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
29232         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
29233         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
29234         config.h with HAVE_CONFIG_H.
29235
29236 2005-09-19  Jim Meyering  <jim@meyering.net>
29237
29238         * modules/pathmax (License): Change to LGPL.
29239
29240 2005-09-19  Derek Price  <derek@ximbiot.com>
29241
29242         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
29243
29244 2005-09-19  Bruno Haible  <bruno@clisp.org>
29245
29246         * gnulib-tool (import): Provide default for --tests-base.
29247
29248 2005-09-19  Bruno Haible  <bruno@clisp.org>
29249
29250         * doc/quote.texi: New file, extracted from gnulib.texi.
29251         * doc/ctime.texi: New file, extracted from gnulib.texi.
29252         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
29253         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
29254         * doc/gnulib.texi: Include them.
29255
29256 2005-09-18  Bruno Haible  <bruno@clisp.org>
29257
29258         Portability fix.
29259         * gnulib-tool (func_readlink): New function.
29260         (func_ln_if_changed): Use it.
29261
29262 2005-09-18  Bruno Haible  <bruno@clisp.org>
29263
29264         * gnulib-tool: Support --with-tests also with --import.
29265         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
29266         (func_import): Use variables $testsbase and $inctests. Emit a
29267         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
29268         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
29269         SUBDIRS += $testsdir.
29270         (func_create_testdir): Update.
29271
29272 2005-09-18  Bruno Haible  <bruno@clisp.org>
29273
29274         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
29275         instead of $dry_run.
29276         (func_cp_if_changed, func_mv_if_changed): Remove functions.
29277         (func_ln_if_changed): Don't handle dry-run here.
29278         (func_import): In dry-run mode, detect more precisely which actions
29279         would be performed, and don't use "...ing" verbs.
29280
29281 2005-09-18  Bruno Haible  <bruno@clisp.org>
29282
29283         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
29284         (func_import): Use join on two temporary files instead of three nested
29285         loops, in order to determine which files are new or old.
29286
29287 2005-09-18  Bruno Haible  <bruno@clisp.org>
29288
29289         * gnulib-tool (func_import): Comment out code that spits out the
29290         new files with --dry-run.
29291
29292 2005-09-18  Bruno Haible  <bruno@clisp.org>
29293
29294         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
29295
29296 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
29297
29298         * lib/stat-time.h: New file.
29299         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
29300         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
29301         in a different way.
29302         (timespec_cmp): New function.
29303         * lib/utimecmp.c: Include stat-time.h.
29304         (SYSCALL_RESOLUTION): Depend on whether various struct stat
29305         members exist, not on the obsolescent ST_MTIM_NSEC.
29306         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
29307
29308 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
29309
29310         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
29311
29312 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
29313
29314         * MODULES.html.sh (File system functions): Add stat-time.
29315         * modules/stat-time: New file.
29316         * modules/timespec (Files): Remove m4/st_mtim.m4; this
29317         is now done in a different way, by the stat-time module.
29318         * modules/utimecmp (Depends-on): Add stat-time.
29319
29320 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
29321
29322         * m4/st_mtim.m4: Remove.  Superseded by...
29323         * m4/stat-time.m4: New file.
29324         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
29325         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
29326
29327 2005-09-15  Derek Price  <derek@ximbiot.com>
29328
29329         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
29330
29331 2005-09-15  Derek Price  <derek@ximbiot.com>
29332
29333         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
29334         * lib/regex_internal.c: Ditto, using this...
29335         (__GNUC_PREREQ): ...new macro.
29336         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
29337         using...
29338         (__GNUC_PREREQ): ...this new macro.
29339
29340         * lib/strstr.h: Include string.h. Define strstr as a macro here.
29341
29342 2005-09-15  Derek Price  <derek@ximbiot.com>
29343             Paul Eggert  <eggert@cs.ucla.edu>
29344
29345         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
29346         changes, consolidating in...
29347         * lib/regex_internal.h: ...this file.
29348
29349 2005-09-13  Jim Meyering  <jim@meyering.net>
29350
29351         * lib/canon-host.c: Filter through gnu indent and reword comments
29352         slightly.
29353         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
29354
29355 2005-09-13  Derek Price  <derek@ximbiot.com>
29356
29357         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
29358         failure.
29359         Reported by Jim Meyering  <jim@meyering.net>.
29360
29361 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
29362
29363         * lib/base64.c: Typo.
29364         (base64_encode): Put b64str in initialized data section.
29365
29366 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
29367
29368         Merge glibc and coreutils changes into gnulib, plus a few
29369         extra fixes.
29370         * lib/md5.c: Use #error rather than a string.
29371         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
29372         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
29373         (__attribute__): Define to empty for non recent-GCC.
29374         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
29375         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
29376         Renamed from their non-__ counterparts, with new macros replacing
29377         them if not _LIBC.  Add __THROW attribute.
29378         (rol): Remove.
29379         (struct md5_ctx): Align buffer if using GCC.
29380         * lib/sha1.h (struct sha1_ctx): Likewise.
29381         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
29382         The old name was backwards.
29383         (NOTSWAP): Remove; not used.
29384         (rol): New macro, moved here from md5.h.
29385         (sha1_process_block): Remove a FIXME that doesn't make sense.
29386
29387 2005-09-12  Derek Price  <derek@ximbiot.com>
29388
29389         Return usable errors from canon-host.
29390         * lib/canon-host.h: New file.
29391         * lib/canon-host.c (canon_host): Wrap...
29392         (canon_host_r): ...this new function, which now relies exclusively on
29393         getaddrinfo.
29394         (ch_strerror): New function.
29395         (last_cherror): New global.
29396         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
29397         interface.
29398         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
29399         void *.
29400         (freeaddrinfo): Free ai->ai_canonname when set.
29401
29402 2005-09-12  Derek Price  <derek@ximbiot.com>
29403
29404         Make canon-host require getaddrinfo.
29405         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
29406         AC_LIBSOURCE canon-host.h.  Call...
29407         (gl_PREREQ_CANON_HOST): ...this new function, which requires
29408         gl_GETADDRINFO.
29409         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
29410
29411 2005-09-12  Derek Price  <derek@ximbiot.com>
29412
29413         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
29414         LGPL.
29415         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
29416
29417 2005-09-12  Derek Price  <derek@ximbiot.com>
29418
29419         * lib/gai_strerror.c: Include config.h when available.  Include
29420         getaddrinfo.h before other headers to test interface.
29421         Reported by Larry Jones <lawrence.jones@ugs.com>.
29422
29423 2005-09-12  Derek Price  <derek@ximbiot.com>
29424             Paul Eggert  <eggert@cs.ucla.edu>
29425
29426         * modules/glob (Files): Add glob-libc.h.
29427
29428 2005-09-12  Derek Price  <derek@ximbiot.com>
29429             Paul Eggert  <eggert@cs.ucla.edu>
29430
29431         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
29432         glob_.h, glob-libc.h.
29433         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
29434
29435 2005-09-12  Derek Price  <derek@ximbiot.com>
29436             Paul Eggert  <eggert@cs.ucla.edu>
29437
29438         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
29439         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
29440         protecting things that should be done only in gnulib contexts.
29441         * lib/glob_.h: New file, containing only the glob things needed for
29442         gnulib.
29443         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
29444         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
29445         (glob, globfree, glob_pattern_p): Now defined simply in terms of
29446         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
29447         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
29448         and to respect the namespace rules better.
29449
29450 2005-09-08  Simon Josefsson  <jas@extundo.com>
29451
29452         * modules/socklen: New file.
29453
29454 2005-09-08  Simon Josefsson  <jas@extundo.com>
29455
29456         * m4/socklen.m4: New file.
29457
29458 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
29459
29460         * modules/utimens (Files): Add m4/utimbuf.m4, since
29461         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
29462         Reported by Sergey Poznyakoff.
29463
29464 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
29465
29466         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
29467         definitions, since that's the preferred style in glibc.
29468         Fix a minor spacing issue, and update copyright notice to match
29469         glibc's.
29470
29471 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
29472
29473         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
29474
29475 2005-09-06  Simon Josefsson  <jas@extundo.com>
29476
29477         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
29478         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
29479
29480 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
29481
29482         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
29483         warning.
29484
29485 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
29486
29487         * config/srclist.txt: Add glibc bug 1302.
29488
29489 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
29490
29491         Change bitset word type from unsigned int to unsigned long int,
29492         as this has better performance on typical 64-bit hosts.
29493         Port bitset code to hosts with unusual word sizes.
29494         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
29495         (build_collating_symbol):
29496         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
29497         argument is a bitset.  This is merely a style issue, but it makes
29498         it clearer that an entire array is expected.
29499         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
29500         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
29501         Port to the case where bitset_word is not the same as unsigned int.
29502         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
29503         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
29504         Likewise.
29505         * lib/regexec.c (check_dst_limits_calc_pos_1,
29506         check_subexp_matching_top):
29507         (build_trtable, group_nodes_into_DFAstates):
29508         Likewise.
29509         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
29510         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
29511         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
29512         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
29513         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
29514         * lib/regcomp.c (optimize_subexps, lower_subexp):
29515         Work even if bitset_word has holes in its bitwise representation.
29516         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
29517         * lib/regexec.c (check_dst_limits_calc_pos_1,
29518         check_subexp_matching_top):
29519         Likewise.
29520         * lib/regex_internal.c (re_string_reconstruct):
29521         Don't assume UCHAR_MAX == 255.
29522         * lib/regex_internal.h (bitset_set_all): Likewise.
29523         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
29524         All uses changed.
29525         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
29526         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
29527         All uses changed.
29528         (BITSET_WORD_MAX): New macro.
29529         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
29530         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
29531         (bitset_empty, bitset_copy):
29532         Prefer sizeof (bitset) to multiplying it out ourselves.
29533         (bitset_not_merge): Remove; unused.
29534         (bitset_contain): Return bool, not unsigned int with one bit on.
29535         All callers changed.
29536         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
29537         alignment than re_node_set; do this by defining a new internal
29538         type struct dests_alloc and using it to allocate memory.
29539
29540 2005-09-05  Bruno Haible  <bruno@clisp.org>
29541
29542         * gnulib-tool (func_import): Fix comparison in handling of symbolic
29543         links.
29544
29545 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
29546
29547         * modules/size_max (Makefile.am): Add size_max.h
29548
29549 2005-09-04  Derek Price  <derek@ximbiot.com>
29550
29551         * gnulib-tool (func_import): Fix reversed $symbolic logic.
29552
29553 2005-09-03  Simon Josefsson  <jas@extundo.com>
29554
29555         * gnulib-tool: Fix typo.
29556
29557 2005-09-03  Simon Josefsson  <jas@extundo.com>
29558
29559         * config/srclist.txt: Add glibc bug 1293.
29560
29561 2005-09-03  Derek Price  <derek@ximbiot.com>
29562
29563         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
29564         From Larry Jones <lawrence.jones@ugs.com>.
29565
29566 2005-09-02  Simon Josefsson  <jas@extundo.com>
29567
29568         * modules/socklen: New file.
29569
29570 2005-09-02  Simon Josefsson  <jas@extundo.com>
29571
29572         * modules/havelib: New module.
29573
29574         * modules/gettext, modules/iconv, modules/lock, modules/readline:
29575         Use havelib.
29576
29577 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
29578
29579         Check for arithmetic overflow when calculating sizes, to prevent
29580         some buffer-overflow issues.  These patches are conservative, in the
29581         sense that when I couldn't determine whether an overflow was possible,
29582         I inserted a run-time check.
29583         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
29584         macros.
29585         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
29586         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
29587         (re_xnrealloc, re_x2nrealloc): New inline functions.
29588         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
29589         parse_bracket_exp):
29590         (build_equiv_class, build_charclass): Check for arithmetic overflow
29591         in size expression calculations.
29592         * lib/regex_internal.c (re_string_realloc_buffers):
29593         (build_wcs_upper_buffer, re_node_set_add_intersect):
29594         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
29595         (re_dfa_add_node, register_state): Likewise.
29596         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
29597         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
29598         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
29599         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
29600
29601 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
29602
29603         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
29604         m4/ulonglong.m4.  Problem reported by Martin Lambers.
29605
29606 2005-09-02  Bruno Haible  <bruno@clisp.org>
29607
29608         Support for lib vs. lib64 distinction on biarch platforms.
29609         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
29610         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
29611         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
29612
29613 2005-09-02  Bruno Haible  <bruno@clisp.org>
29614
29615         * gnulib-tool (import): In the other first-use case, provide defaults
29616         as well.
29617
29618 2005-09-02  Bruno Haible  <bruno@clisp.org>
29619
29620         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
29621         patches not yet found in the latest gettext release.
29622
29623 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
29624
29625         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
29626         to avoid a collision with bits/local_lim.h in glibc.
29627         All uses changed.  Problem reported by Dmitry V. Levin in
29628         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
29629
29630         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
29631         bugs in int versus size_t comparisons.
29632         (re_string_context_at): Fix bug where the code assumed that
29633         Idx is signed.
29634
29635         Use bool where appropriate.
29636         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
29637         All callers changed.
29638         (calc_eclosure_iter): Likewise, for ROOT arg.
29639         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
29640         (build_charclass_op): Likewise, for NON_MATCH arg.
29641         * lib/regex_internal.c (re_string_allocate, re_string_construct):
29642         (re_string_construct_common): Likewise, for ICASE arg.
29643         * lib/regexec.c (re_search_2_stub, re_search_stub):
29644         Likewise, for RET_LEN arg.
29645         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
29646         (set_regs): Likewise, for FL_BACKTRACK arg.
29647         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
29648         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
29649         (calc_eclosure_iter, parse_bracket_exp):
29650         Use bool for internal variables that are booleans.
29651         * lib/regexec.c (re_search_internal, check_matching,
29652         proceed_next_node):
29653         (set_regs, build_sifted_states, sift_states_bkref):
29654         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
29655         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
29656         (find_collation_sequence_value):
29657         Likewise.
29658         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
29659         (re_node_set_compare):
29660         Return bool, not int. All callers changed.
29661         * lib/regexec.c (check_halt_node_context, check_dst_limits):
29662         (build_trtable, check_node_accept): Likewise.
29663         * lib/regex_internal.h: Include stdbool.h.
29664
29665         Fix bugs uncovered when converting to bool.
29666         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
29667         failure instead of charging ahead blindly.
29668         * lib/regex_internal.c (register_state): Likewise.
29669         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
29670         for freeing internal storage.
29671         (group_nodes_into_DFA_states): Use unsigned int, not int, for
29672         bitset pieces used as boolean, to avoid undefined behavior
29673         on hosts that do int overflow checking.
29674
29675 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
29676
29677         * config/srclist.txt: Add glibc bugs 1285-1287.
29678
29679 2005-09-01  Jim Meyering  <jim@meyering.net>
29680
29681         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
29682         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
29683         Require gl_STAT_MACROS, too.
29684
29685 2005-09-01  Bruno Haible  <bruno@clisp.org>
29686
29687         * gnulib-tool (import): In the first-use case, provide defaults.
29688
29689 2005-09-01  Bruno Haible  <bruno@clisp.org>
29690
29691         * gnulib-tool (func_import): Remove the .tmp files.
29692
29693 2005-09-01  Bruno Haible  <bruno@clisp.org>
29694
29695         * gnulib-tool (func_import): Fix handling of symbolic links.
29696
29697 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
29698
29699         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
29700         old glibc regex code mishandles strings longer than 2**31 bytes.
29701         This patch fixes this when the regex code is used in gnulib
29702         (i.e., outside glibc).
29703
29704         This patch should not affect the use of the regex code inside
29705         glibc.  No doubt this problem also needs to be handled for glibc
29706         as well, but the result will be an incompatible change to the
29707         glibc ABI, and the old ABI will have to be supported too.  That
29708         can be the the subject for another patch.
29709
29710         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
29711         governing whether the rest of this patch is active.  By default,
29712         the macro is disabled and the patch has no effect.
29713         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
29714         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
29715         (struct re_pattern_buffer, re_search, re_search_2, re_match):
29716         (re_match_2, re_set_registers): Use the new types.
29717         * lib/regex_internal.h (Idx, re_hashval_t): New types.
29718         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
29719         New macros.
29720         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
29721         (re_string_context_at, bin_tree_t, re_dfastate_t):
29722         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
29723         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
29724         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
29725         (re_string_char_size_at, re_string_wchar_at):
29726         (re_string_elem_size_at):
29727         Use the new types and macros to port to 64-bit hosts.
29728         Use unsigned types for internal values, so that the code
29729         mostly works even for arrays larger than SSIZE_MAX.
29730         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
29731         (search_duplicated_node, calc_eclosure_iter, fetch_number):
29732         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
29733         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
29734         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
29735         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
29736         (calc_inveclosure, parse_dup_op, build_range_exp):
29737         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
29738         (fetch_number, create_token_tree, mark_opt_subexp):
29739         Likewise.
29740         * lib/regex_internal.c (re_string_construct_common,
29741         create_ci_newstate):
29742         (create_cd_newstate, re_string_allocate, re_string_construct):
29743         (re_string_realloc_buffers, build_wcs_upper_buffer):
29744         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
29745         (re_string_reconstruct, re_string_peek_byte_case):
29746         (re_string_fetch_byte_case, re_string_context_at):
29747         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
29748         (re_node_set_init_copy, re_node_set_add_intersect):
29749         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
29750         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
29751         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
29752         (re_acquire_state, re_acquire_state_context, register_state):
29753         Likewise.
29754         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
29755         search_cur_bkref_entry):
29756         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
29757         (re_search_internal, re_search_2_stub, re_search_stub)
29758         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
29759         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
29760         (update_cur_sifted_state, check_dst_limits):
29761         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
29762         (check_subexp_limits, sift_states_bkref, merge_state_array):
29763         (check_subexp_matching_top, get_subexp, get_subexp_sub):
29764         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
29765         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
29766         (expand_bkref_cache, check_node_accept_bytes):
29767         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
29768         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
29769         (acquire_init_state_context, check_halt_node_context):
29770         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
29771         (sift_states_backward, clean_state_log_if_needed):
29772         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
29773         (find_recover_state, transit_state_sb, transit_state_mb):
29774         (transit_state_bkref, build_trtable, match_ctx_clean):
29775         Likewise.
29776         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
29777         to work around an assumption that REG_MISSING is negative.
29778
29779         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
29780         (seek_collating_symbol_entry) [defined _LIBC]:
29781         (lookup_collation_sequence_value) [defined _LIBC]:
29782         (build_range_exp, build_collating_symbol) [defined _LIBC]:
29783         Use prototypes rather than old-style function definitions.
29784         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
29785         (transit_state_sb) [0]:
29786         (find_collation_sequence_value) [defined _LIBC]: Likewise.
29787
29788         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
29789         rm_eo.
29790
29791         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
29792         (optimize_subexps, lower_subexp):
29793         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
29794         since the signed shift might overflow.  Use 1u<<31 instead.
29795         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
29796         Likewise.
29797         * lib/regexec.c (check_dst_limits_calc_pos_1,
29798         check_subexp_matching_top): Likewise.
29799
29800         * lib/regcomp.c (optimize_subexps, lower_subexp):
29801         Use CHAR_BIT rather than 8, for clarity.
29802         * lib/regexec.c (check_dst_limits_calc_pos_1):
29803         (check_subexp_matching_top): Likewise.
29804         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
29805         have to worry about portability issues when shifting it left.
29806         Remove no-longer-needed test for table_size > 0.
29807         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
29808         in a word, as the resulting behavior is undefined.
29809         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
29810         in one case, a <= should have been an <, and in another case the
29811         whole test was missing.
29812         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
29813         the standard name CHAR_BIT.
29814         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
29815         this is not true on one's complement and signed-magnitude hosts.
29816
29817         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
29818         next_last_offset.
29819         (struct re_dfa_t): Remove unused member states_alloc.
29820         * lib/regcomp.c (init_dfa): Don't initialize unused members.
29821
29822 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
29823
29824         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
29825         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
29826         and large-file glibc and in 32-bit large-file Solaris.
29827
29828 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
29829
29830         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
29831         lengths fit in regoff_t; this isn't true if regoff_t is the same
29832         width as size_t.
29833         * lib/regex.c (re_search_internal): 5th arg is LAST_START
29834         (= START + RANGE) instead of RANGE.  This avoids overflow
29835         problems when regoff_t is the same width as size_t.
29836         All callers changed.
29837         (re_search_2_stub): Check for overflow when adding the
29838         sizes of the two strings.
29839         (re_search_stub): Check for overflow when adding START
29840         to RANGE; if it occurs, substitute the extreme value.
29841
29842 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
29843
29844         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
29845
29846 2005-08-31  Jim Meyering  <jim@meyering.net>
29847
29848         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
29849         a pointer-to-const.
29850         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
29851         (register_state): Likewise.
29852         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
29853         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
29854         (group_nodes_into_DFAstates): Likewise.
29855
29856 2005-08-31  Jim Meyering  <jim@meyering.net>
29857
29858         * check-module: Add a FIXME comment.
29859
29860 2005-08-31  Eric Blake  <ebb9@byu.net>
29861
29862         * modules/unistd-safer (Files): Add unistd--.h.
29863         * modules/stdio-safer (Files): Add stdio--.h.
29864
29865 2005-08-31  Derek Price  <derek@ximbiot.com>
29866
29867         * lib/getdelim.c (getdelim): Return EOF on EOF.
29868         Reported by Larry Jones <lawrence.jones@ugs.com>.
29869
29870 2005-08-31  Bruno Haible  <bruno@clisp.org>
29871
29872         Avoid unnecessary diffs in the generated lib/Makefile.am.
29873         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
29874         the generated files.
29875         (func_import): Don't set cmd.
29876
29877 2005-08-31  Bruno Haible  <bruno@clisp.org>
29878
29879         * lib/strstr.c: Include <stddef.h>, for NULL.
29880         * lib/strcasestr.c: Likewise.
29881         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
29882
29883 2005-08-31  Bruno Haible  <bruno@clisp.org>
29884
29885         * gnulib-tool: New option --macro-prefix.
29886         (func_import): Use macro_prefix.
29887         (import): Handle option --macro-prefix.
29888
29889 2005-08-31  Bruno Haible  <bruno@clisp.org>
29890
29891         * gnulib-tool (import): Rename most ac_* variables to cached_*.
29892         Also use new variables cached_lgpl, cached_libtool.
29893
29894 2005-08-31  Bruno Haible  <bruno@clisp.org>
29895
29896         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
29897         always instantiating them.
29898
29899 2005-08-31  Bruno Haible  <bruno@clisp.org>
29900
29901         * gnulib-tool (func_import): Read the previous cached settings
29902         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
29903         earlier added by gnulib but are now dropped. Warn when a gnulib file
29904         overwrites a non-gnulib file.
29905
29906 2005-08-31  Bruno Haible  <bruno@clisp.org>
29907
29908         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
29909         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
29910         projects that don't keep autogenerated files in CVS. Put into
29911         actioncmd only the specified modules, not the transitive closure.
29912
29913 2005-08-31  Bruno Haible  <bruno@clisp.org>
29914
29915         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
29916         Create directories that shall be filled.
29917         (import): Don't look for gl_* macros in configure.ac. Recurse across
29918         all directories containing a gnulib-cache.m4 files, if meaningful.
29919
29920 2005-08-31  Bruno Haible  <bruno@clisp.org>
29921
29922         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
29923         (import): Set seen_libtool when we see gl_LIBTOOL.
29924
29925 2005-08-31  Bruno Haible  <bruno@clisp.org>
29926
29927         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
29928         declaration macro definitions from generated gnulib.m4.
29929
29930 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
29931
29932         * lib/iconvme.h: Add prototype for iconv_alloc.
29933
29934 2005-08-29  Simon Josefsson  <jas@extundo.com>
29935
29936         * lib/iconvme.c: Fix errno.
29937
29938 2005-08-29  Bruno Haible  <bruno@clisp.org>
29939
29940         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
29941         that it works when the directory contains spaces.
29942
29943 2005-08-29  Bruno Haible  <bruno@clisp.org>
29944
29945         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
29946
29947 2005-08-29  Bruno Haible  <bruno@clisp.org>
29948
29949         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
29950         Emit more advice.
29951
29952 2005-08-29  Bruno Haible  <bruno@clisp.org>
29953         and Stepan Kasal  <kasal@ucw.cz>
29954
29955         * check-module: If more parameters are given, check each of them
29956         separately; add more exceptions, as noted by Jim Meyering.
29957         (check_module): New procedure.
29958         (%exempt_header): Now contains all exceptions.
29959
29960 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
29961
29962         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
29963
29964 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
29965
29966         * lib/iconvme.c: Split iconv_string into iconv_alloc.
29967
29968 2005-08-28  Bruno Haible  <bruno@clisp.org>
29969
29970         * m4/gnulib-tool.m4: New file.
29971
29972 2005-08-27  Jim Meyering  <jim@meyering.net>
29973
29974         * modules/unistd-safer (Files): Add pipe-safer.c.
29975         * modules/fcntl-safer (Files): Add creat-safer.c.
29976
29977 2005-08-27  Jim Meyering  <jim@meyering.net>
29978
29979         * m4/stdlib-safer.m4: New file.  From coreutils.
29980         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
29981         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
29982         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
29983         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
29984         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
29985
29986 2005-08-27  Jim Meyering  <jim@meyering.net>
29987
29988         * lib/fopen-safer.c: Merge minor changes from coreutils.
29989         * lib/dup-safer.c: Likewise.
29990         * lib/fd-safer.c: Likewise.
29991
29992         Merge from coreutils.
29993         * lib/stdio--.h: New file.
29994         * lib/stdlib--.h: New file.
29995         * lib/mkstemp-safer.c: New file.
29996
29997         GNU tar needs these.
29998         * lib/pipe-safer.c: New file.
29999         * lib/creat-safer.c: New file.
30000         * lib/fcntl--.h (creat): Define to creat_safer.
30001         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
30002         * lib/unistd--.h (pipe): Define to pipe_safer.
30003         * lib/unistd-safer.h: Declare pipe_safer.
30004
30005 2005-08-26  Simon Josefsson  <jas@extundo.com>
30006
30007         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
30008         Haible <bruno@clisp.org>.
30009
30010 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
30011
30012         * lib/regex_internal.h: Remove all references to
30013         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
30014         or better.
30015         (bitset_not, bitset_merge, bitset_not_merge):
30016         (bitset_mask, re_string_allocate, re_string_construct):
30017         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
30018         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
30019         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
30020         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
30021         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
30022         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
30023         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
30024         (re_acquire_state_context):
30025         Remove unnecessary forward decls.
30026         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
30027         Put __attribute at function definition,
30028         now that the function decl has been removed.
30029         * lib/regex_internal.c (re_string_peek_byte_case):
30030         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
30031         Likewise.
30032
30033 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
30034
30035         * m4/regex.m4: Add AC_PREREQ(2.50).
30036         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
30037
30038 2005-08-25  Simon Josefsson  <jas@extundo.com>
30039
30040         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
30041         __fsetlocking.
30042
30043 2005-08-25  Simon Josefsson  <jas@extundo.com>
30044
30045         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
30046         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
30047         GLIBC specific code.
30048
30049 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
30050
30051         Make regex safe for g++.  This fixes one real bug (an "err"
30052         that should have been "*err").  g++ problem reported by
30053         Sam Steingold.
30054         * lib/regex_internal.h (re_calloc): New macro, consistent with
30055         re_malloc etc.  All callers of calloc changed to use re_calloc.
30056         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
30057         not int.  All callers changed.
30058         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
30059         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
30060         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
30061         (find_recover_state): Change "err" to "*err"; this fixes what
30062         appears to be a real bug.
30063         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
30064         versus int.
30065
30066 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
30067
30068         * modules/regex (Depends-on): Add malloc, since the code
30069         assumes that !malloc(0) means failure.
30070
30071 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
30072
30073         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
30074
30075         alloca modernization/simplification for regex.
30076         * lib/regex.c: Remove portability cruft for alloca.  This no longer
30077         needs to be at the start of the file, and can be moved into
30078         regex_internal.h and simplified.
30079         * lib/regex_internal.h: Include <alloca.h>.
30080         (__libc_use_alloca) [!defined _LIBC]: New macro.
30081         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
30082         now works outside glibc.
30083
30084 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
30085
30086         * config/srclist.txt: Add glibc bugs 1241, 1245.
30087
30088 2005-08-25  Jim Meyering  <jim@meyering.net>
30089
30090         * lib/open-safer.c: Include <config.h>.
30091         Otherwise, we'd lose LARGEFILE support in any file using
30092         e.g. "fcntl--.h"
30093
30094 2005-08-25  Bruno Haible  <bruno@clisp.org>
30095
30096         * m4/minmax.m4: Require autoconf 2.52.
30097         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
30098         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
30099         alternatives of translit over the alphabet.
30100         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
30101
30102 2005-08-24  Simon Josefsson  <jas@extundo.com>
30103
30104         * tests/test-getpass.c: New file.
30105
30106 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
30107
30108         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
30109         for GNU regex features.
30110
30111 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
30112
30113         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
30114         * lib/regex.h (regerror): Likewise.
30115
30116         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
30117         requires this.  (The code never needed it.)
30118
30119         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
30120         All uses of recently-renamed identifiers changed to use the new,
30121         POSIX-compliant names.  The code will build and run just fine
30122         without these changes, but it's better to eat our own dog food
30123         and use the standard-conforming names.
30124
30125         * lib/regex.h: Fix a multitude of POSIX name space violations.
30126         These changes have an effect only for programs that define
30127         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
30128         do not change anything for programs compiled in the normal way.
30129         Also, there is no effect on the ABI.
30130
30131         (_REGEX_SOURCE): New macro.
30132         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
30133         defined and _GNU_SOURCE is not; this fixes a name space violation.
30134
30135         Rename the following macros to obey POSIX requirements.
30136         The old names are still visible as macros if _REGEX_SOURCE is defined.
30137         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
30138         RE_BACKSLASH_ESCAPE_IN_LISTS.
30139         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
30140         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
30141         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
30142         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
30143         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
30144         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
30145         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
30146         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
30147         (REG_INTERVALS): renamed from RE_INTERVALS.
30148         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
30149         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
30150         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
30151         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
30152         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
30153         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
30154         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
30155         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
30156         RE_UNMATCHED_RIGHT_PAREN_ORD.
30157         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
30158         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
30159         (REG_DEBUG): renamed from RE_DEBUG.
30160         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
30161         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
30162         unusual, since we can't clash with the POSIX REG_ICASE.
30163         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
30164         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
30165         (REG_NO_SUB): renamed from RE_NO_SUB.
30166         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
30167         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
30168         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
30169         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
30170         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
30171         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
30172         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
30173         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
30174         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
30175         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
30176         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
30177         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
30178         RE_SYNTAX_POSIX_MINIMAL_BASIC.
30179         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
30180         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
30181         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
30182         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
30183         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
30184         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
30185         (REG_FIXED): Renamed from REGS_FIXED.
30186         (REG_NREGS): Renamed from RE_NREGS.
30187
30188         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
30189         of other REG_* macros, since POSIX says the user is allowed to
30190         #undef these macros selectively.
30191
30192         (reg_errcode_t): Update comment stating what other tables need
30193         to be consistent.
30194
30195         Rename the following enum values to obey POSIX requirements.
30196         The old names are still visible as macros.
30197         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
30198         is not defined, since GNU is supposed to be a superset of POSIX as
30199         much as possible, and since we want reg_errcode_t to be a signed
30200         type for implementation consistency.
30201         (_REG_NOERROR): Renamed from REG_NOERROR.
30202         (_REG_NOMATCH): Renamed from REG_NOMATCH.
30203         (_REG_BADPAT): Renamed from REG_BADPAT.
30204         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
30205         (_REG_ECTYPE): Renamed from REG_ECTYPE.
30206         (_REG_EESCAPE): Renamed from REG_EESCAPE.
30207         (_REG_ESUBREG): Renamed from REG_ESUBREG.
30208         (_REG_EBRACK): Renamed from REG_EBRACK.
30209         (_REG_EPAREN): Renamed from REG_EPAREN.
30210         (_REG_EBRACE): Renamed from REG_EBRACE.
30211         (_REG_BADBR): Renamed from REG_BADBR.
30212         (_REG_ERANGE): Renamed from REG_ERANGE.
30213         (_REG_ESPACE): Renamed from REG_ESPACE.
30214         (_REG_BADRPT): Renamed from REG_BADRPT.
30215         (_REG_EEND): Renamed from REG_EEND.
30216         (_REG_ESIZE): Renamed from REG_ESIZE.
30217         (_REG_ERPAREN): Renamed from REG_ERPAREN.
30218         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
30219         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
30220         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
30221         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
30222
30223         (_REG_RE_NAME, _REG_RM_NAME): New macros.
30224         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
30225         changed.  But support the old name if the new one is not defined
30226         and if _REGEX_SOURCE.
30227
30228         Change the following member names in struct re_pattern_buffer.
30229         The old names are still supported if !_REGEX_SOURCE.
30230         The new names are always supported, regardless of _REGEX_SOURCE.
30231         (re_buffer): Renamed from buffer.
30232         (re_allocated): Renamed from allocated.
30233         (re_used): Renamed from used.
30234         (re_syntax): Renamed from syntax.
30235         (re_fastmap): Renamed from fastmap.
30236         (re_translate): Renamed from translate.
30237         (re_can_be_null): Renamed from can_be_null.
30238         (re_regs_allocated): Renamed from regs_allocated.
30239         (re_fastmap_accurate): Renamed from fastmap_accurate.
30240         (re_no_sub): Renamed from no_sub.
30241         (re_not_bol): Renamed from not_bol.
30242         (re_not_eol): Renamed from not_eol.
30243         (re_newline_anchor): Renamed from newline_anchor.
30244
30245         Change the following member names in struct re_registers.
30246         The old names are still supported if !_REGEX_SOURCE.
30247         The new names are always supported, regardless of _REGEX_SOURCE.
30248         (rm_num_regs): Renamed from num_regs.
30249         (rm_start): Renamed from start.
30250         (rm_end): Renamed from end.
30251
30252         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
30253         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
30254         Prepend __ to parameter names.
30255
30256         Undo yesterday's changes.
30257
30258 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
30259
30260         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
30261         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
30262         lib/regex.c.
30263
30264 2005-08-24  Jim Meyering  <jim@meyering.net>
30265
30266         Sync from coreutils.
30267         * m4/fcntl-safer.m4: New file.
30268
30269         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
30270         and object files for this module.
30271
30272 2005-08-24  Jim Meyering  <jim@meyering.net>
30273
30274         Sync from coreutils.
30275         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
30276
30277 2005-08-24  Jim Meyering  <jim@meyering.net>
30278
30279         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
30280         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
30281
30282 2005-08-24  Jim Meyering  <jim@meyering.net>
30283
30284         * modules/fcntl-safer: New module.
30285         * modules/fts (Depends-on): Add fcntl-safer.
30286         * MODULES.html.sh (File descriptor based Input/Output):
30287         Add fcntl-safer.
30288
30289 2005-08-24  Bruno Haible  <bruno@clisp.org>
30290
30291         Support for unit test modules.
30292         * modules/README: Mention tests modules.
30293         * modules/TEMPLATE-TESTS: New file.
30294         * gnulib-tool: New options --extract-tests-module, --with-tests and
30295         --tests-base (unused for the moment).
30296         (testsbase, inctests): New variables.
30297         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
30298         (func_verify_module): Exclude TEMPLATE-TESTS.
30299         (func_verify_nontests_module, func_verify_tests_module): New functions.
30300         (func_get_dependencies): Add implicit dependency for tests modules.
30301         (func_get_tests_module): New function.
30302         (func_modules_transitive_closure): When --with-tests was specified,
30303         include the unit tests as well, unless explicitly avoided.
30304         (func_emit_lib_Makefile_am): Ignore the tests modules here.
30305         (func_emit_tests_Makefile_am): New function.
30306         (func_create_testdir): When --with-tests was specified, emit a
30307         tests/ directory.
30308         * MODULES.html.sh (Future developments): Update.
30309
30310 2005-08-24  Bruno Haible  <bruno@clisp.org>
30311
30312         * modules/tls-tests: New file.
30313         * tests/test-tls.c: New file, from GNU gettext.
30314
30315 2005-08-24  Bruno Haible  <bruno@clisp.org>
30316
30317         * modules/lock-tests: New file.
30318         * tests/test-lock.c: New file, from GNU gettext.
30319
30320 2005-08-24  Bruno Haible  <bruno@clisp.org>
30321
30322         * lib/lock.h: Add multiple inclusion guard.
30323         * lib/tls.h: Add multiple inclusion guard.
30324
30325 2005-08-24  Bruno Haible  <bruno@clisp.org>
30326
30327         * gnulib-tool: Add support for the --aux-dir option to
30328         --create-testdir, --create-megatestdir, --test, --megatest.
30329         (func_create_testdir, func_create_megatestdir): Optionally emit a
30330         AC_CONFIG_AUX_DIR directive.
30331         (create-testdir, create-megatestdir, test, megatest): Provide a
30332         default value for $auxdir.
30333
30334 2005-08-24  Bruno Haible  <bruno@clisp.org>
30335
30336         * gnulib-tool (import): Use compound statement instead of subshell
30337         where possible.
30338
30339 2005-08-24  Bruno Haible  <bruno@clisp.org>
30340
30341         * gnulib-tool (import): Change --aux-dir default to "build-aux".
30342
30343 2005-08-24  Bruno Haible  <bruno@clisp.org>
30344
30345         * gnulib-tool (func_version): Update.
30346
30347 2005-08-24  Bruno Haible  <bruno@clisp.org>
30348
30349         * gnulib-tool (func_import, func_create_testdir,
30350         func_create_megatestdir): Quote all autoconf macro arguments.
30351
30352 2005-08-24  Bruno Haible  <bruno@clisp.org>
30353
30354         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
30355         option --force, because --force causes the aclocal.m4 of each
30356         subdirectory to be newer than the corresponding config.h.in.
30357
30358 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
30359
30360         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
30361         All contents moved to gl_REGEX.
30362         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
30363         assume that it does.
30364
30365 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
30366
30367         * lib/regex.h (REG_NOSYS)
30368         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
30369         Define, since POSIX requires it as of 2001.
30370         (_REG_ENOSYS)
30371         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
30372         New private symbol, used to keep the enum signed in all cases.
30373         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
30374         Youngman in
30375         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
30376
30377         * lib/regex_internal.c (re_string_skip_chars, register_state):
30378         (calc_state_hash):
30379         Remove forward decls; no longer needed now that we use prototypes.
30380         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
30381         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
30382         (clean_state_log_if_needed): Likewise.
30383
30384 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
30385
30386         * config/srclist.txt: Add glibc bugs 1231-1233.
30387
30388 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
30389
30390         Fix problems reported by Sam Steingold in
30391         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
30392         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
30393         assumed that reg_errcode_t is a signed type, which is not
30394         necessarily true if _XOPEN_SOURCE is not defined.
30395         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
30396         since some compilers warn about it otherwise.
30397
30398 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
30399
30400         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
30401         (init_word_char, create_initial_state, duplicate_node_closure):
30402         (fetch_token, peek_token_bracket, build_range_exp):
30403         (build_collating_symbol): Remove forward decls; no longer needed
30404         now that we use prototypes.
30405
30406         * lib/regcomp.c:
30407         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
30408         (re_compile_fastmap_iter, regcomp, regerror, regfree):
30409         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
30410         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
30411         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
30412         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
30413         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
30414         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
30415         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
30416         (build_range_exp, build_collating_symbol, parse_bracket_exp):
30417         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
30418         (build_charclass, build_charclass_op, fetch_number, create_tree):
30419         (create_token_tree, mark_opt_subexp, duplicate_tree):
30420         Use prototypes rather than old-style definitions.
30421
30422         * lib/regex_internal.c:
30423         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
30424         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
30425         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
30426         (re_string_reconstruct, re_string_peek_byte_case):
30427         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
30428         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
30429         (re_node_set_init_copy, re_node_set_add_intersect):
30430         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
30431         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
30432         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
30433         (re_acquire_state, re_acquire_state_context, register_state):
30434         (create_ci_newstate, create_cd_newstate, free_state):
30435         Likewise.
30436         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
30437         re_search_2):
30438         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
30439         (re_search_internal, prune_impossible_nodes):
30440         (acquire_init_state_context, check_matching, static):
30441         (check_halt_node_context, check_halt_state_context, proceed_next_node):
30442         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
30443         (update_regs, sift_states_backward, build_sifted_states):
30444         (clean_state_log_if_needed, merge_state_array):
30445         (update_cur_sifted_state, add_epsilon_src_nodes):
30446         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
30447         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
30448         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
30449         (find_recover_state, check_subexp_matching_top, transit_state_mb):
30450         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
30451         (check_arrival, check_arrival_add_next_nodes):
30452         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
30453         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
30454         (check_node_accept_bytes, check_node_accept, extend_buffers):
30455         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
30456         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
30457         (sift_ctx_init):
30458         Likewise.
30459
30460         * lib/regex_internal.h:
30461         (re_string_allocate, re_string_construct, re_string_reconstruct):
30462         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
30463         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
30464         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
30465         (re_string_context_at, re_string_peek_byte_case):
30466         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
30467         is defined, since we now use prototypes always.
30468
30469         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
30470         C89 or better.  All uses removed.
30471
30472 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
30473
30474         * config/srclist.txt: Add glibc bugs 1220-1227.
30475
30476 2005-08-20  Jim Meyering  <jim@meyering.net>
30477
30478         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
30479         of unused local, dfa.
30480
30481 2005-08-20  Bruno Haible  <bruno@clisp.org>
30482
30483         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
30484
30485 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
30486
30487         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
30488         (re_node_set_insert_last, re_dfa_add_node):
30489         Rename local variables to avoid GCC shadowing warnings.
30490
30491 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
30492
30493         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
30494         [defined lint]: Suppress bogus uninitialized-variable warnings.
30495
30496         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
30497         and let the caller return REG_ESPACE if out of space.  This
30498         removes an uninitialied-variable warning with GCC 4.0.1, and also
30499         avoids taking the address of a local variable.  All callers
30500         changed.
30501
30502 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
30503
30504         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
30505         $LIBCSRC/posix/regexec.c.
30506         Add glibc bug 1217 for regcomp.c.
30507
30508 2005-08-19  Jim Meyering  <jim@meyering.net>
30509
30510         * lib/regexec.c (proceed_next_node): Redo local variables to
30511         avoid GCC shadowing warnings.
30512
30513 2005-08-18  Bruno Haible  <bruno@clisp.org>
30514
30515         * lib/strstr.c (strstr): Fix return value in multibyte case.
30516         * lib/strcasestr.c (strcasestr): Likewise.
30517
30518 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
30519
30520         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
30521
30522 2005-08-17  Jim Meyering  <jim@meyering.net>
30523
30524         Make the %s format (seconds since the epoch) work for a negative
30525         number and when used with a zero-padded field width, e.g. %015s.
30526
30527         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
30528         label so that it precedes the code to set `digits'.  Otherwise,
30529         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
30530         print `00-22'.  Now, it prints `-0022', as it should.
30531
30532 2005-08-17  Bruno Haible  <bruno@clisp.org>
30533
30534         * modules/strstr (Files): Add m4/mbrtowc.m4.
30535         (Depends-on): Add mbuiter.
30536
30537 2005-08-17  Bruno Haible  <bruno@clisp.org>
30538
30539         * modules/strcasestr: New file.
30540         * MODULES.html.sh (String handling, based on ANSI C 89): Add
30541         strcasestr.
30542
30543 2005-08-17  Bruno Haible  <bruno@clisp.org>
30544
30545         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
30546
30547 2005-08-17  Bruno Haible  <bruno@clisp.org>
30548
30549         * modules/mbuiter: New file.
30550         * MODULES.html.sh (Extended multibyte and wide character utilities):
30551         Add mbuiter.
30552
30553 2005-08-17  Bruno Haible  <bruno@clisp.org>
30554
30555         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
30556         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
30557
30558 2005-08-17  Bruno Haible  <bruno@clisp.org>
30559
30560         * m4/strcasestr.m4: New file.
30561
30562 2005-08-17  Bruno Haible  <bruno@clisp.org>
30563
30564         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
30565         * lib/strstr.c: Completely rewritten, with multibyte locale support.
30566
30567 2005-08-17  Bruno Haible  <bruno@clisp.org>
30568
30569         * lib/strcasestr.h: New file.
30570         * lib/strcasestr.c: New file.
30571
30572 2005-08-17  Bruno Haible  <bruno@clisp.org>
30573
30574         * lib/strcasecmp.c: Use mbuiter.h.
30575
30576 2005-08-17  Bruno Haible  <bruno@clisp.org>
30577
30578         * lib/mbuiter.h: New file.
30579
30580 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
30581
30582         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
30583         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
30584         and gl_GETOPT are both invoked via different paths (as happens
30585         with GNU tar CVS because it uses both argp and getopt), the former
30586         wins.
30587
30588 2005-08-16  Bruno Haible  <bruno@clisp.org>
30589
30590         * modules/tls: New file.
30591         * MODULES.html.sh (Multithreading): Add tls.
30592
30593 2005-08-16  Bruno Haible  <bruno@clisp.org>
30594
30595         * modules/strnlen1: New file.
30596         * MODULES.html.sh (String handling): Add strnlen1.
30597
30598 2005-08-16  Bruno Haible  <bruno@clisp.org>
30599
30600         * modules/strcase (Files): Add m4/mbrtowc.m4.
30601         (Depends-on): Add strnlen1, mbchar.
30602
30603 2005-08-16  Bruno Haible  <bruno@clisp.org>
30604
30605         * modules/mbiter: New file.
30606         * MODULES.html.sh (Extended multibyte and wide character utilities):
30607         Add mbiter.
30608
30609 2005-08-16  Bruno Haible  <bruno@clisp.org>
30610
30611         * modules/mbfile: New file.
30612         * MODULES.html.sh (Extended multibyte and wide character utilities):
30613         Add mbfile.
30614
30615 2005-08-16  Bruno Haible  <bruno@clisp.org>
30616
30617         * modules/mbchar: New file.
30618         * MODULES.html.sh (Extended multibyte and wide character utilities):
30619         New section.
30620
30621 2005-08-16  Bruno Haible  <bruno@clisp.org>
30622
30623         * m4/tls.m4: New file, from GNU gettext.
30624
30625 2005-08-16  Bruno Haible  <bruno@clisp.org>
30626
30627         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
30628         always.
30629         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
30630
30631 2005-08-16  Bruno Haible  <bruno@clisp.org>
30632
30633         * m4/mbiter.m4: New file.
30634
30635 2005-08-16  Bruno Haible  <bruno@clisp.org>
30636
30637         * m4/mbfile.m4: New file.
30638
30639 2005-08-16  Bruno Haible  <bruno@clisp.org>
30640
30641         * m4/mbchar.m4: New file.
30642
30643 2005-08-16  Bruno Haible  <bruno@clisp.org>
30644
30645         * lib/tls.h: New file, from GNU gettext.
30646         * lib/tls.c: New file, from GNU gettext.
30647
30648 2005-08-16  Bruno Haible  <bruno@clisp.org>
30649
30650         * lib/strnlen1.h: New file.
30651         * lib/strnlen1.c: New file.
30652
30653 2005-08-16  Bruno Haible  <bruno@clisp.org>
30654
30655         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
30656         (mbi_init): Update.
30657         (mbi_avail, mbi_advance): Let the iteration end before the terminating
30658         NUL byte, not after it.
30659
30660 2005-08-16  Bruno Haible  <bruno@clisp.org>
30661
30662         * lib/strcase.h (strcasecmp): Add note in comments.
30663         * lib/strncasecmp.c: Use code from strcasecmp.c.
30664         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
30665         (strcasecmp): Work correctly in multibyte locales.
30666
30667 2005-08-16  Bruno Haible  <bruno@clisp.org>
30668
30669         * lib/mbiter.h: New file.
30670
30671 2005-08-16  Bruno Haible  <bruno@clisp.org>
30672
30673         * lib/mbfile.h: New file.
30674
30675 2005-08-16  Bruno Haible  <bruno@clisp.org>
30676
30677         * lib/mbchar.h: New file.
30678         * lib/mbchar.c: New file.
30679
30680 2005-08-16  Bruno Haible  <bruno@clisp.org>
30681
30682         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
30683         the valid ones. Makes the comparison operations transitive:
30684         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
30685         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
30686
30687 2005-08-15  Simon Josefsson  <jas@extundo.com>
30688
30689         * modules/ssize_t (License): Change to 'unlimited'.
30690
30691         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
30692
30693 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
30694
30695         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
30696         Add comments for each pending glibc patch.
30697
30698 2005-08-15  Bruno Haible  <bruno@clisp.org>
30699
30700         * lib/regex.h (__restrict_arr): Don't define to __restrict if
30701         __cplusplus is defined.
30702
30703 2005-08-14  Jim Meyering  <jim@meyering.net>
30704
30705         Sync from coreutils.
30706
30707         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
30708         Use the hash-table-based cycle-detection code not just when
30709         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
30710         Reported by James Youngman in
30711         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
30712         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
30713         FTS_TIGHT_CYCLE_CHECK.
30714         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
30715         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
30716         once again.
30717         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
30718         * lib/fts.c (fd_safer): Remove decl.
30719         Include fcntl--.h rather than unistd-safer.h
30720         (fts_safe_changedir): Don't call fd_safer; no longer needed
30721         now that we include fcntl--.h.
30722
30723 2005-08-12  Simon Josefsson  <jas@extundo.com>
30724
30725         * modules/getndelim2: Use ssize_t module.
30726         * modules/getnline: Likewise.
30727         * modules/safe-read: Likewise.
30728         * modules/xreadlink: Likewise.
30729
30730         * modules/ssize_t: New file.
30731
30732 2005-08-12  Simon Josefsson  <jas@extundo.com>
30733
30734         * m4/readline.m4: Look for termcap, curses or ncurses if required.
30735
30736 2005-08-12  Simon Josefsson  <jas@extundo.com>
30737
30738         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
30739         ssize_t.
30740
30741 2005-08-12  Simon Josefsson  <jas@extundo.com>
30742
30743         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
30744         readline, getdelim and check_version.
30745         (Support for systems lacking ISO C 99: Sizes of integer types):
30746         Add size_max.
30747
30748 2005-08-12  Bruno Haible  <bruno@clisp.org>
30749
30750         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
30751
30752 2005-08-11  Simon Josefsson  <jas@extundo.com>
30753
30754         * modules/readline: New file.
30755
30756         * modules/strnlen (Files): Add strnlen.h.
30757
30758 2005-08-11  Simon Josefsson  <jas@extundo.com>
30759
30760         * m4/readline.m4: New file.
30761
30762 2005-08-11  Simon Josefsson  <jas@extundo.com>
30763
30764         * lib/readline.h, readline.c: New file.
30765
30766 2005-08-11  Simon Josefsson  <jas@extundo.com>
30767
30768         * doc/gnulib.texi (Initial import, Finishing touches): Mention
30769         gl_AVOID.
30770
30771 2005-08-11  Bruno Haible  <bruno@clisp.org>
30772
30773         * lib/strnlen.h (strnlen): Change parameter name to match comment.
30774
30775 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
30776
30777         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
30778
30779 2005-08-10  Simon Josefsson  <jas@extundo.com>
30780
30781         * tests/test-iconvme.c: New file.
30782
30783 2005-08-10  Simon Josefsson  <jas@extundo.com>
30784
30785         * m4/strnlen.m4: New file.
30786
30787         * m4/strndup.m4: Don't check for strnlen declaration, done in
30788         strnlen.m4.
30789
30790 2005-08-10  Simon Josefsson  <jas@extundo.com>
30791
30792         * lib/strndup.c: Use strnlen.h.
30793
30794         * lib/strnlen.h: New file.
30795
30796 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
30797
30798         * README: Typos.
30799
30800 2005-08-02  Simon Josefsson  <jas@extundo.com>
30801
30802         * modules/readline: New file.
30803
30804 2005-08-02  Simon Josefsson  <jas@extundo.com>
30805
30806         * modules/getdelim: New file.
30807
30808         * modules/getline: Rewrite, don't use getndelim2.
30809
30810 2005-08-02  Simon Josefsson  <jas@extundo.com>
30811
30812         * m4/getline.m4: Separate out getdelim stuff into separate module.
30813
30814         * m4/getdelim.m4: New file.
30815
30816 2005-08-02  Simon Josefsson  <jas@extundo.com>
30817
30818         * lib/getline.h, getline.c: Rewrite.
30819
30820         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
30821
30822 2005-07-31  Bruno Haible  <bruno@clisp.org>
30823
30824         * lib/lock.h (gl_lock_initializer): New macro.
30825         (gl_lock_define_initialized): Use it.
30826         (gl_rwlock_initializer): New macro.
30827         (gl_rwlock_define_initialized): Use it.
30828         (gl_recursive_lock_initializer): New macro.
30829         (gl_recursive_lock_define_initialized): Use it.
30830
30831 2005-07-30  Karl Berry  <karl@gnu.org>
30832
30833         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
30834         Report from Ben Pfaff, regarding getopt.
30835
30836 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
30837
30838         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
30839         normal way.
30840         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
30841         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
30842         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
30843         (gl_GETOPT): Use the new macros.  Most of the implementation
30844         is moved to the new macros.  This is for programs like Emacs
30845         that don't want all the functionality of gl_GETOPT.
30846
30847 2005-07-26  Bruno Haible  <bruno@clisp.org>
30848
30849         * m4/lock.m4: Update from GNU gettext.
30850
30851 2005-07-26  Bruno Haible  <bruno@clisp.org>
30852
30853         * lib/lock.h: Update from GNU gettext.
30854         * lib/lock.c: Update from GNU gettext.
30855
30856 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
30857
30858         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
30859         obsolescent AC_TRY_RUN.  Include the default includes files, for
30860         'exit'.
30861
30862 2005-07-24  Bruno Haible  <bruno@clisp.org>
30863
30864         * modules/visibility: New file.
30865         * MODULES.html.sh (Misc): Add visibility.
30866
30867 2005-07-24  Bruno Haible  <bruno@clisp.org>
30868
30869         * m4/visibility.m4: New file.
30870
30871 2005-07-24  Bruno Haible  <bruno@clisp.org>
30872
30873         * doc/visibility.texi: New file.
30874
30875 2005-07-22  Bruno Haible  <bruno@clisp.org>
30876
30877         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
30878         $(ALLOCA_H), redundant through BUILT_SOURCES.
30879         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
30880         redundant through BUILT_SOURCES.
30881         * modules/byteswap (Makefile.am): Remove explicit dependency on
30882         $(BYTESWAP_H), redundant through BUILT_SOURCES.
30883         * modules/fnmatch (Makefile.am): Remove explicit dependency on
30884         $(FNMATCH_H), redundant through BUILT_SOURCES.
30885         * modules/getopt (Makefile.am): Remove explicit dependency on
30886         $(GETOPT_H), redundant through BUILT_SOURCES.
30887         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
30888         redundant through BUILT_SOURCES.
30889         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
30890         redundant through BUILT_SOURCES.
30891         * modules/stdbool (Makefile.am): Remove explicit dependency on
30892         $(STDBOOL_H), redundant through BUILT_SOURCES.
30893         * modules/stdint (Makefile.am): Remove explicit dependency on
30894         $(STDINT_H), redundant through BUILT_SOURCES.
30895         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
30896         Remove explicit dependency on $(SYSEXITS_H).
30897         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
30898
30899 2005-07-18  Simon Josefsson  <jas@extundo.com>
30900
30901         * lib/check-version.c (check_version): Accept identical versions too.
30902
30903 2005-07-18  Bruno Haible  <bruno@clisp.org>
30904
30905         * modules/lock: New file.
30906         * MODULES.html.sh (Multithreading): New section.
30907
30908 2005-07-18  Bruno Haible  <bruno@clisp.org>
30909
30910         * m4/lock.m4: New file, from GNU gettext.
30911
30912 2005-07-18  Bruno Haible  <bruno@clisp.org>
30913
30914         * lib/lock.h: New file, from GNU gettext.
30915         * lib/lock.c: New file, from GNU gettext.
30916
30917 2005-07-18  Bruno Haible  <bruno@clisp.org>
30918
30919         * lib/lock.h (gl_once_t): New type.
30920         (gl_once_define, gl_once): New macros.
30921         * lib/lock.c (fresh_once): New variable.
30922         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
30923         functions.
30924
30925 2005-07-16  Simon Josefsson  <jas@extundo.com>
30926
30927         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
30928         workaround, suggested by Bruno.
30929
30930 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
30931
30932         * modules/xalloc (Depends-on): Add xalloc-die.
30933         * modules/xvasprintf (Depends-on): Add xalloc-die.
30934
30935 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
30936
30937         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
30938         with a minor change.
30939
30940 2005-07-15  Bruno Haible  <bruno@clisp.org>
30941
30942         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
30943         When using lib/poll.c, define poll as rpl_poll.
30944
30945 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
30946
30947         * modules/argp (Depends-on): Remove unlocked-io.
30948
30949 2005-07-14  Derek Price  <derek@ximbiot.com>
30950
30951         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
30952         for glob symlink bug.
30953
30954 2005-07-14  Bruno Haible  <bruno@clisp.org>
30955
30956         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
30957         Instead, test for *_unlocked function declarations directly.
30958
30959 2005-07-11  Simon Josefsson  <jas@extundo.com>
30960
30961         * modules/size_max: New file.
30962
30963         * modules/xsize: Depend on size_max module for size_max.m4.
30964
30965 2005-07-11  Simon Josefsson  <jas@extundo.com>
30966
30967         * lib/size_max.h: New file.
30968
30969 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
30970
30971         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
30972         copyright symbol and the year.
30973         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
30974         (version_etc_va): Use parameterized copyright notice.
30975         Reword to conform to the current GNU coding standards.
30976
30977 2005-07-11  Karl Berry  <karl@gnu.org>
30978
30979         * doc/gnulib.texi (Quoting): new node.
30980         (Initial import): more info, from Patrice.
30981
30982 2005-07-11  Bruno Haible  <bruno@clisp.org>
30983
30984         * gnulib-tool (func_usage): Document option --avoid.
30985         (Command line options): Handle --avoid.
30986         (func_acceptable): New function.
30987         (func_modules_transitive_closure): Use it.
30988
30989 2005-07-11  Bruno Haible  <bruno@clisp.org>
30990
30991         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
30992         Reported by Jim Meyering.
30993
30994 2005-07-10  Bruno Haible  <bruno@clisp.org>
30995
30996         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
30997         Needed when size_t is smaller than 'unsigned int'.
30998         Reported by Paul Eggert.
30999
31000 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
31001
31002         * modules/argp (Depends-on): Add unlocked-io
31003
31004 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
31005
31006         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
31007         block of defines.
31008
31009 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
31010
31011         * config/srclist.txt: Comment out regcomp.c, since we have a porting
31012         fix now.
31013
31014 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
31015         and Paul Eggert  <eggert@cs.ucla.edu>
31016
31017         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
31018         in wint_t, not wchar_t.  Remove now-unnecessary cast.
31019
31020 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
31021
31022         * modules/regex (Files): Add lib/regex_internal.c,
31023         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
31024         (Depends-on): Add extensions.
31025         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
31026
31027 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
31028
31029         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
31030         pathconf.
31031         * m4/same.m4 (gl_SAME): Likewise.
31032         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
31033
31034         * m4/regex.m4: Adjust to new libc regex implementation.
31035         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
31036         all the .c and .h parts of (the new) regex.
31037         Quote the m4 stuff better.
31038         Check for RE_ICASE bug of old gnulib.
31039         Check for REG_STARTEND of recent libc.
31040         Rename local variables from jm_* to gl_*.
31041         Quote operand of "test -f".
31042         Say "recent enough" version of libc, not "version 2".
31043         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
31044         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
31045         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
31046         Remove check for btowc, isascii.
31047         Require AM_LANGINFO_CODESET.
31048
31049 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
31050
31051         * lib/regex.c, regex.h: Sync from libc.
31052         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
31053         * lib/regexec.c:
31054         New files, synced from libc, except that regex_internal.h
31055         currently has a small porting fix.
31056
31057 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
31058
31059         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
31060         regex_internal.c, regexec.c.
31061         Add regex_internal.h too, but as a comment, since the libc version
31062         is currently broken in gnulib mode.
31063
31064 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
31065
31066         Support programs like Emacs that use gnulib but not gettext.
31067         * MODULES.html.sh (Internationalization functions): Add gettext-h.
31068         * modules/gettext-h: New file.
31069         * modules/gettext (Files): Remove lib/gettext.h.
31070         (Depends-on): Add gettext-h.
31071         (Makefile.am): Remove lib_SOURCES.
31072         * modules/argmatch, modules/c-stack, modules/closeout:
31073         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
31074         * modules/execute, modules/file-type, modules/getaddrinfo:
31075         * modules/getopt, modules/human, modules/javacomp:
31076         * modules/javaexec, modules/mkdir-p, modules/obstack:
31077         * modules/openat, modules/pagealign_alloc, modules/pipe:
31078         * modules/quotearg, modules/regex, modules/rpmatch:
31079         * modules/unicodeio, modules/userspec, modules/version-etc:
31080         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
31081         * modules/xsetenv:
31082         Depend on gettext-h, not gettext.
31083
31084 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
31085
31086         * gnulib-tool (func_import): Add support for 'public domain' license.
31087         * modules/alloca, modules/atexit, modules/memmove:
31088         Now public domain, not GPL.
31089         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
31090         * modules/realloc, modules/strerror, modules/strtod:
31091         Now LGPL, not GPL.
31092
31093 2005-07-05  Bruno Haible  <bruno@clisp.org>
31094
31095         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
31096         autoconf CVS. Needed for mingw.
31097
31098 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
31099
31100         Remove the dependency of the strftime module on the tzset module.
31101         * modules/strftime (Depends-on): Remove dependency on tzset.
31102
31103 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
31104
31105         Remove the dependency of the strftime module on the tzset module.
31106         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
31107         gl_FUNC_TZSET_CLOBBER.
31108
31109 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
31110
31111         Remove the dependency of the strftime module on the tzset module.
31112         * lib/strftime.c (my_strftime)
31113         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
31114         Copy the input structure, to work around some of the bug with
31115         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
31116         Solaris releases, you should also use the tzset module, but we won't
31117         require it as a dependency any more since we don't want LGPLed code
31118         to depend on GPLed code.
31119
31120 2005-07-02  Jim Meyering  <jim@meyering.net>
31121
31122         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
31123         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
31124         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
31125         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
31126
31127 2005-07-02  Jim Meyering  <jim@meyering.net>
31128
31129         * lib/backupfile.c (backup_args): Change a `0' to NULL.
31130
31131 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
31132
31133         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
31134         declares only 'struct timespec;' (!).
31135
31136 2005-07-01  Jim Meyering  <jim@meyering.net>
31137
31138         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
31139         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
31140         * lib/save-cwd.c, tempname.c:
31141         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
31142         and don't include <sys/file.h>).
31143
31144 2005-06-29  Jim Meyering  <jim@meyering.net>
31145
31146         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
31147         type name.  Use the variable name instead.
31148         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
31149         Likewise.
31150
31151 2005-06-28  Simon Josefsson  <jas@extundo.com>
31152
31153         * modules/check-version (Files): Add check-version.m4.
31154
31155 2005-06-28  Simon Josefsson  <jas@extundo.com>
31156
31157         * m4/check-version.m4: New file, suggested by Jim Meyering
31158         <jim@meyering.net>.
31159
31160 2005-06-28  Simon Josefsson  <jas@extundo.com>
31161
31162         * lib/check-version.h, lib/check-version.c: New files.
31163
31164 2005-06-28  Simon Josefsson  <jas@extundo.com>
31165
31166         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
31167         collision with global variable.  Better indentation.  Don't
31168         increment buffer pointer beyond buffer end.  Based on comments
31169         from Paul Eggert <eggert@cs.ucla.edu>.
31170
31171         * lib/base64.h: Indent.
31172
31173 2005-06-28  Simon Josefsson  <jas@extundo.com>
31174
31175         * doc/gnulib.texi (Library version handling): New section.
31176
31177 2005-06-28  Jim Meyering  <jim@meyering.net>
31178
31179         * check-module (find_included_lib_files): Hard-code another
31180         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
31181         but modules/fts-lgpl (correctly) does not list those files.
31182
31183         * modules/canonicalize (Files): Add lib/pathmax.h.
31184
31185 2005-06-25  Simon Josefsson  <jas@extundo.com>
31186
31187         * modules/check-version: New file.
31188
31189 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
31190
31191         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
31192         initializer of struct addrinfo, as an indication that we don't
31193         care how many members the structure has.
31194
31195 2005-06-24  Derek Price  <derek@ximbiot.com>
31196         and Bruno Haible  <bruno@clisp.org>
31197
31198         Remove stat module & update lstat.
31199         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
31200         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
31201         * m4/stat.m4: Remove this file.
31202
31203 2005-06-24  Derek Price  <derek@ximbiot.com>
31204         and Bruno Haible  <bruno@clisp.org>
31205
31206         Remove stat module & update lstat.
31207         * lib/stat.c: Remove this file...
31208         (slash_aware_lstat): ...moving this content and its support...
31209         * lib/lstat.c (rpl_lstat): ...into here.
31210         * lib/lstat.h: New file.
31211
31212 2005-06-24  Derek Price  <derek@ximbiot.com>
31213         and Bruno Haible  <bruno@clisp.org>
31214
31215         Remove stat module & update lstat.
31216         * config/srclist.txt (libc sources): Remove stat.
31217
31218 2005-06-24  Derek Price  <derek@ximbiot.com>
31219         and Bruno Haible  <bruno@clisp.org>
31220
31221         Remove stat module & update lstat.
31222         * MODULES.html.sh (stat): Remove.
31223         * MODULES.html: Regenerated.
31224         * modules/lstat (Description): Correct function name.
31225         (Files): Add "lstat.h".
31226         (Depends-on): Remove stat, add xalloc, stat-macros.
31227         * modules/stat: Remove this file.
31228         (Include): Add "lstat.h", remove <sys/stat.h>.
31229
31230 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
31231
31232         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
31233         (ranged_convert): Don't save conversion in a temporary struct.
31234         This causes a warning with GCC 4.0.0, and anyway in the typical
31235         case it's not worth the extra 100 bytes or so of code.
31236         (ranged_convert, __mktime_internal): When calling a function via a
31237         pointer P, use P () rather than (*P) (), as we now assume C89 or
31238         better.
31239
31240 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
31241
31242         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
31243         "who -r" failed to give output.  Problem reported by Tim Waugh.
31244
31245         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
31246         (xcalloc): Use it to avoid needless tests.
31247         Problem reported by Jim Meyering.
31248
31249 2005-06-20  Derek Price  <derek@ximbiot.com>
31250
31251         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
31252         unnecessary for Autoconfs > 2.59c.
31253
31254 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
31255
31256         * lib/argp.h (__option_is_short): Check upper limit of
31257         __key. Isprint() requires its argument to have the value
31258         of an unsigned char or EOF.
31259
31260 2005-06-16  Jim Meyering  <jim@meyering.net>
31261
31262         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
31263         when either N or S is zero.
31264
31265 2005-06-16  Derek Price  <derek@ximbiot.com>
31266
31267         * m4/bison.m4: Declare YACC & YFLAGS precious.
31268
31269 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
31270
31271         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
31272         multibyte string or pattern, fall back on unibyte matching.
31273         Problem reported by James Youngman.
31274
31275 2005-06-08  Bruno Haible  <bruno@clisp.org>
31276
31277         * modules/csharpcomp: New file.
31278         * MODULES.html.sh (C#): Add csharpcomp.
31279
31280 2005-06-08  Bruno Haible  <bruno@clisp.org>
31281
31282         * m4/csharpcomp.m4: New file, from GNU gettext.
31283
31284 2005-06-08  Bruno Haible  <bruno@clisp.org>
31285
31286         * lib/csharpcomp.h: New file, from GNU gettext.
31287         * lib/csharpcomp.c: New file, from GNU gettext.
31288         * lib/csharpcomp.sh.in: New file, from GNU gettext.
31289
31290 2005-06-08  Bruno Haible  <bruno@clisp.org>
31291
31292         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
31293         warning on mingw.
31294
31295 2005-06-07  Derek Price  <derek@ximbiot.com>
31296
31297         Sync from CVS.
31298         * lib/glob_.h: Indent nested #ifdef.
31299
31300 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
31301
31302         Sync from coreutils.
31303         Use "file name" when talking about file names, instead of "filename"
31304         or "path", as per the GNU coding standards.
31305         * lib/mkdir-p.c: Renamed from makepath.c.
31306         (make_dir_parents): Renamed from make_path.  All callers changed.
31307         * lib/mkdir-p.h: Likewise.  All includers changed.
31308         * lib/filenamecat.c: Renamed from path-concat.c.
31309         (file_name_concat): Renamed from path_concat.  All callers changed.
31310         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
31311         * lib/filenamecat.h: Likewise.  All includers changed.
31312         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
31313         in comments or local variable names.
31314         * lib/basename.c: Likewise.
31315         * lib/canonicalize.c, canonicalize.h: Likewise.
31316         * lib/dirname.c, dirname.h: Likewise.
31317         * lib/euidaccess.c: Likewise.
31318         * lib/exclude.c: Likewise
31319         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
31320         * lib/fsusage.c, fsuage.h: Likewise.
31321         * lib/fts.c, fts_.h: Likewise.
31322         * lib/getcwd.c: Likewise.
31323         * lib/getloadavg.c: Likewise.
31324         * lib/mkstemp.c: Likewise.
31325         * lib/mountlist.c, mountlist.h: Likewise.
31326         * lib/openat.c, openat.h: Likewise.
31327         * lib/readlink-stub.c: Likewise.
31328         * lib/readutmp.c, readutmp.h: Likewise.
31329         * lib/rename.c: Likewise.
31330         * lib/rmdir.c: Likewise.
31331         * lib/same.c: Likewise.
31332         * lib/savedir.c: Likewise.
31333         * lib/stripslash.c: Likewise.
31334         * lib/tempname.c: Likewise.
31335         * lib/xreadlink.c: Likewise.
31336         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
31337         All uses changed.
31338         * lib/exclude.h: Likewise.
31339
31340         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
31341         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
31342         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
31343         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
31344         * lib/pathmax.h: Include <limits.h> unconditionally, since other
31345         files have been getting away with it for years (MORE/BSD 4.3
31346         is extinct now).
31347         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
31348         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
31349
31350         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
31351         Define to 256, not 255, as per modern POSIX.
31352
31353 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
31354
31355         Sync from coreutils.
31356         Use "file name" when talking about file names, instead of "filename"
31357         or "path", as per the GNU coding standards.
31358         * MODULES.html.sh: mkdir-p renamed from makepath.
31359         filenamecat renamed from path-concat.
31360         * modules/filenamecat: Renamed from modules/path-concat.
31361         (Files): filenamecat.h and filenamecat.c renamed from
31362         path-concat.h and path-concat.c.
31363         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
31364         (Include): filenamecat.h, not path-concat.h.
31365         * modules/mkdir-p: Renamed from modules/makepath.
31366         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
31367         makepath.c.
31368         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
31369         (Include): mkdir-p.h, not makepath.h.
31370
31371 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
31372
31373         Sync from coreutils.
31374         * m4/mkdir-p.m4: Renamed from makepath.m4.
31375         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
31376         Rename files from makepath.c to mkdir-p.c, and from
31377         makepath.h to mkdir-p.h.
31378         * m4/filenamecat.m4: Renamed from path-concat.m4.
31379         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
31380         Rename files from path-concat.c to filenamecat.c,
31381         and from path-concat.h to filenamecat.h.
31382         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
31383         "file name" in local variables or comments.
31384         * m4/rename.m4: Likewise.
31385
31386 2005-06-01  Bruno Haible  <bruno@clisp.org>
31387
31388         * modules/csharpexec: New file.
31389         * MODULES.html.sh (C#): New section.
31390
31391 2005-06-01  Bruno Haible  <bruno@clisp.org>
31392
31393         * m4/csharp.m4: New file, from GNU gettext.
31394         * m4/csharpexec.m4: New file, from GNU gettext.
31395
31396 2005-06-01  Bruno Haible  <bruno@clisp.org>
31397
31398         * lib/csharpexec.h: New file, from GNU gettext.
31399         * lib/csharpexec.c: New file, from GNU gettext.
31400         * lib/csharpexec.sh.in: New file, from GNU gettext.
31401
31402 2005-05-31  Derek Price  <derek@ximbiot.com>
31403             Paul Eggert  <eggert@cs.ucla.edu>
31404
31405         Sync from cvs.
31406         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
31407
31408 2005-05-31  Derek Price  <derek@ximbiot.com>
31409             Paul Eggert  <eggert@cs.ucla.edu>
31410
31411         Sync from cvs.
31412         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
31413
31414 2005-05-29  Derek Price  <derek@ximbiot.com>
31415
31416         * config/srclist.txt (glob_.h, glob.c): Add these files.
31417
31418 2005-05-29  Derek Price  <derek@ximbiot.com>
31419
31420         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
31421         * modules/glob: New file.
31422         * modules/getlogin_r: Add link to POSIX spec in description.
31423
31424 2005-05-29  Derek Price  <derek@ximbiot.com>
31425             Paul Eggert  <eggert@cs.ucla.edu>
31426
31427         * m4/glob.m4: New file.
31428
31429 2005-05-29  Derek Price  <derek@ximbiot.com>
31430             Paul Eggert  <eggert@cs.ucla.edu>
31431
31432         * lib/glob_.h, lib/glob.c: New files.
31433
31434 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
31435
31436         * modules/fts (Files): Remove m4/inttypes-pri.m4.
31437         * modules/fts-lgpl (Depends-on): Remove gettext.
31438
31439 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
31440
31441         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
31442         and don't require gt_INTTYPES_PRI.
31443
31444 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
31445
31446         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
31447
31448         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
31449         the configuration hassle isn't worth it.
31450         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
31451         (LONGEST_MODIFIER, PRIuMAX): Remove.
31452
31453 2005-05-27  Bruno Haible  <bruno@clisp.org>
31454
31455         * lib/getlogin_r.h: Remove second include of <stddef.h>.
31456
31457 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
31458
31459         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
31460         _POSIX_PTHREAD_SEMANTICS for Solaris.
31461
31462 2005-05-25  Derek Price  <derek@ximbiot.com>
31463
31464         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
31465
31466 2005-05-25  Derek Price  <derek@ximbiot.com>
31467             Paul Eggert  <eggert@cs.ucla.edu>
31468
31469         * modules/getlogin_r, m4/getlogin_r.m4: New files.
31470         * lib/getlogin_r.c, getlogin_r.h: New files.
31471
31472 2005-05-25  Bruno Haible  <bruno@clisp.org>
31473             Derek Price  <derek@ximbiot.com>
31474
31475         * lib/getlogin_r.h: Simplify API documentation.
31476
31477 2005-05-23  Derek Price  <derek@ximbiot.com>
31478
31479         * modules/minmax (Files): Add m4/minmax.m4.
31480         (configure.ac): Add gl_MINMAX.
31481
31482 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
31483
31484         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
31485         so that unistd-safer.h (GPL'ed code) need not be included.
31486
31487 2005-05-22  Bruno Haible  <bruno@clisp.org>
31488
31489         * m4/minmax.m4: New file.
31490         Based on a patch by Derek Price <derek@ximbiot.com>.
31491
31492 2005-05-22  Bruno Haible  <bruno@clisp.org>
31493
31494         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
31495         (INT64_MIN): Fix definition.
31496         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
31497
31498         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
31499         NEED_SIGNED_INT_TYPES.
31500
31501         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
31502         HAVE_SYSTEM_INTTYPES.
31503
31504 2005-05-22  Bruno Haible  <bruno@clisp.org>
31505
31506         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
31507         Also include <sys/param.h> if it defines MIN, MAX.
31508         Based on a patch by Derek Price <derek@ximbiot.com>.
31509
31510 2005-05-21  Jim Meyering  <jim@meyering.net>
31511
31512         * modules/fts (Files): Add m4/inttypes-pri.m4.
31513         (Depends-on): Add lstat and remove gettext.  Alphabetize.
31514
31515 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
31516
31517         New fts module.
31518         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
31519         (setup_dir, free_dir): New functions.
31520         (enter_dir, leave_dir): Define trivial
31521         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
31522         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
31523         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
31524         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
31525         Move to fts-cycle.c.
31526         (fts_open): Use setup_dir.
31527         (fts_close): Use free_dir.
31528         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
31529         This adds a label and some gotos, but the alternatives were messier.
31530         Check for memory allocation failure when entering a dir.
31531         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
31532         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
31533         (FTS): New member fts_cycle, that is a union that contains the
31534         old active_dir_ht and cycle_state.  All uses changed to mention
31535         fts_cycle.ht and fts_cycle.state.
31536         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
31537         fts.c, with the following changes:
31538         (setup_dir, free_dir): New functions.
31539         (enter_dir): Now returns bool.  Return true if successful, false
31540         if memory exhausted.  All callers changed.
31541         Do not bother partly cleaning up on
31542         memory allocation failure; that is free_dir's job.
31543         However, free ad if hash_insert fails, to avoid memory leak.
31544         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
31545         fts->fts_options to see which union member to use.
31546
31547 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
31548
31549         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
31550         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
31551
31552 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
31553
31554         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
31555
31556 2005-05-20  Jim Meyering  <jim@meyering.net>
31557
31558         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
31559         Now a macro, to pacify GCC.
31560
31561 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
31562
31563         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
31564         of -1.
31565
31566 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
31567
31568         * lib/chown.c (rpl_chown): Return -1 on failure.
31569
31570 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
31571
31572         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
31573         Don't check for stddef.h.
31574         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
31575         don't use its results.
31576         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
31577         since we include them unconditionally.  Don't require
31578         AM_STDBOOL_H, since stdbool is a prerequisite.
31579         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
31580         since we assume C89 or better.
31581         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
31582         as we don't use their results.
31583         Don't check for fchdir, memmove, memset, strrchr, as we use
31584         them unconditionally.
31585         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
31586         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
31587
31588 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
31589
31590         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
31591         Include <stddef.h> unconditionally, since we assume C89 now.
31592         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
31593         * lib/fts.c: Include fts_.h first, to check interface.
31594         Do not include intprops.h; no longer needed.
31595         Include cycle-check.h and hash.h, since fts_.h no longer does.
31596         Remove unnecessary casts of closedir to void.
31597         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
31598         decide whether to decrement nlinks.
31599         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
31600         (FTS): Use struct hash_table * instead of Hash_table, so that
31601         we no longer need to include hash.h here.
31602
31603 2005-05-18  Jim Meyering  <jim@meyering.net>
31604
31605         * modules/dirfd (License): Change to LGPL.  Most of the code
31606         is already in the public domain.
31607
31608 2005-05-18  Jim Meyering  <jim@meyering.net>
31609
31610         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
31611         Reported by Yoann Vandoorselaere.
31612
31613 2005-05-17  Jim Meyering  <jim@meyering.net>
31614
31615         * m4/fts.m4: New file, from coreutils.
31616
31617 2005-05-17  Jim Meyering  <jim@meyering.net>
31618
31619         * lib/fts.c, lib/fts_.h: New files, from coreutils.
31620
31621 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
31622
31623         Sync from coreutils.
31624         * m4/unlinkdir.m4: New file.
31625
31626 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
31627
31628         Sync from coreutils.
31629         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
31630         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
31631         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
31632         White space changes only.
31633         * lib/makepath.c (make_path): Port to hosts where leading "//" is
31634         special.
31635         * lib/yesno.c: Include getline.h, not ctype.h.
31636         (yesno): Don't remove leading white space; POSIX doesn't allow it.
31637         Use getline to remove arbitrary restriction on response length.
31638
31639 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
31640
31641         * config/srclist-update: Spell out "Street" in FSF postal
31642         mail address; this is the style the FSF seems to prefer.
31643
31644         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
31645         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
31646         this updates FSF postal mail address.
31647
31648         Sync from coreutils.
31649         * modules/unlinkdir: New file.
31650         * modules/yesno (Depends-on): Add getline.
31651         * MODULES.html.sh (File system functions): Add unlinkdir.
31652
31653 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
31654
31655         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
31656         lib/strsep.h:
31657         Change the initial comment to refer to GPL, not LGPL.
31658         gnulib-tool will change it to LGPL as needed.
31659
31660         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
31661         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
31662         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
31663         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
31664         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
31665         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
31666         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
31667         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
31668         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
31669         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
31670         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
31671         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
31672         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
31673         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
31674         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
31675         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
31676         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
31677         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
31678         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
31679         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
31680         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
31681         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
31682         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
31683         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
31684         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
31685         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
31686         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
31687         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
31688         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
31689         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
31690         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
31691         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
31692         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
31693         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
31694         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
31695         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
31696         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
31697         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
31698         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
31699         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
31700         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
31701         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
31702         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
31703         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
31704         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
31705         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
31706         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
31707         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
31708         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
31709         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
31710         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
31711         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
31712         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
31713         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
31714         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
31715         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
31716         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
31717         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
31718         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
31719         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
31720         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
31721         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
31722         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
31723         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
31724         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
31725         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
31726         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
31727         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
31728         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
31729         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
31730         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
31731         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
31732         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
31733         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
31734         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
31735         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
31736         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
31737         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
31738         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
31739         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
31740         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
31741         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
31742         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
31743         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
31744         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
31745         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
31746         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
31747         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
31748         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
31749         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
31750         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
31751         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
31752         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
31753         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
31754         lib/yesno.c, lib/yesno.h:
31755         Update FSF postal mail address.
31756
31757 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
31758
31759         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
31760         tests/test-memmem.c, tests/test-stpncpy.c:
31761         Update FSF postal mail address.
31762
31763 2005-05-13  Bruno Haible  <bruno@clisp.org>
31764
31765         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
31766         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
31767         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
31768         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
31769         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
31770         Add support for 64-bit integers in the MSVC compiler.
31771
31772 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
31773
31774         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
31775
31776 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
31777
31778         * gnulib-tool (func_import): Sort and uniquify recommended includes.
31779
31780 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
31781
31782         * doc/getdate.texi (General date syntax): Don't say that date
31783         date --iso-8601=ns generates acceptable dates; it doesn't yet.
31784         Problem reported by Nic Ferrier.
31785
31786 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
31787
31788         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
31789         specified in ai_socktype. Fix invalid ai_protocol
31790         check. ai_protocol is usually set to 0 or depending on
31791         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
31792         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
31793         ai_socktype / ai_protocol in the returned addrinfo structure.
31794
31795 2005-05-10  Simon Josefsson  <jas@extundo.com>
31796
31797         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
31798         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
31799
31800 2005-05-10  Karl Berry  <karl@gnu.org>
31801
31802         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
31803         (from http://www.gnu.org/licenses).
31804         * doc/COPYING.LIB: also rename to COPYING.LESSER.
31805         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
31806         fdl.texi suffices.
31807
31808 2005-05-10  Karl Berry  <karl@gnu.org>
31809
31810         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
31811         (COPYING.DOC): remove.
31812
31813         * config/srclist-update: new FSF address.
31814
31815 2005-05-10  Derek Price  <derek@ximbiot.com>
31816
31817         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
31818         possible.
31819
31820 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
31821             Bruno Haible  <bruno@clisp.org>
31822
31823         * modules/inet_ntop: New file.
31824         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
31825         inet_ntop.
31826
31827 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
31828             Bruno Haible  <bruno@clisp.org>
31829
31830         * m4/inet_ntop.m4: New file.
31831
31832 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
31833             Bruno Haible  <bruno@clisp.org>
31834
31835         * lib/inet_ntop.h: New file.
31836         * lib/inet_ntop.c: New file, from glibc with modifications.
31837
31838 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
31839
31840         * modules/time_r (License): Change to LGPL.
31841         * modules/extensions (License): Change to LGPL.  Actually,
31842         the license is more permissive than that, but currently gnulib-tool
31843         doesn't know how to handle more-permissive licenses.
31844
31845         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
31846         Problem reported by Dave Love.
31847
31848 2005-05-08  Jim Meyering  <jim@meyering.net>
31849
31850         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
31851         blank.
31852
31853 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
31854
31855         * modules/argmatch (Depends-on): Add stdbool.
31856         * modules/backupfile (Depends-on): Likewise.
31857         * modules/chdir-long (Depends-on): Likewise.
31858         * modules/closeout (Depends-on): Likewise.
31859         * modules/cycle-check (Depends-on): Likewise.
31860         * modules/dirname (Depends-on): Likewise.
31861         * modules/fnmatch (Depends-on): Likewise.
31862         * modules/fsusage (Depends-on): Likewise.
31863         * modules/fwriteerror (Depends-on): Likewise.
31864         * modules/getcwd (Depends-on): Likewise.
31865         * modules/getloadavg (Depends-on): Likewise.
31866         * modules/hard-locale (Depends-on): Likewise.
31867         * modules/makepath (Depends-on): Likewise.
31868         * modules/mountlist (Depends-on): Likewise.
31869         * modules/nanosleep (Depends-on): Likewise.
31870         * modules/posixtm (Depends-on): Likewise.
31871         * modules/quotearg (Depends-on): Likewise.
31872         * modules/readtokens (Depends-on): Likewise.
31873         * modules/readtokens0 (Depends-on): Likewise.
31874         * modules/readutmp (Depends-on): Likewise.
31875         * modules/save-cwd (Depends-on): Likewise.
31876         * modules/strftime (Depends-on): Likewise.
31877         * modules/userspec (Depends-on): Likewise.
31878         * modules/utimecmp (Depends-on): Likewise.
31879         * modules/xgetcwd (Depends-on): Likewise.
31880         * modules/xnanosleep (Depends-on): Likewise.
31881         * modules/xstrtod (Depends-on): Likewise.
31882         * modules/yesno (Depends-on): Likewise.
31883
31884 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
31885
31886         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
31887         needless checks.
31888
31889 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
31890
31891         Merge from coreutils.  Among other things,
31892         add bulletproofing for cases where stdin, stdout, or stderr are closed.
31893         * lib/fd-safer.c: New file.
31894         * lib/fcntl-safer.h, open-safer.c: Remove.
31895         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
31896         * lib/dup-safer.c: Include unistd-safer.h first.
31897         Don't include errno.h.
31898         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
31899         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
31900         * lib/file-type.c: Rely on file-type.h change.
31901         * lib/getloadavg.c: Include unistd-safer.h.
31902         (getloadavg): Use safer open.
31903         * lib/getusershell.c: Include "stdio-safer.h".
31904         (getusershell): Use safer fopen.
31905         * lib/long-options.c (long_options): Use NULL rather than 0.
31906         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
31907         'free'.
31908         * lib/modechange.c: Likewise.
31909         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
31910         (MODE_DONE): New constant.
31911         (struct mode_change): Remove 'next' member.
31912         (make_node_op_equals): New function; like the old one of the
31913         same name, except it allocates an array.
31914         (mode_compile, mode_create_from_ref): Use it.
31915         (mode_compile): Allocate result as an array, not a linked list.
31916         Parse octal string ourself, so that we catch mistakes like "+0".
31917         (mode_adjust): Arg is an array, not a linked list.
31918         * lib/modechange.c: Include stat-macros.h, xalloc.h.
31919         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
31920         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
31921         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
31922         Remove.  This is now stat-macros.h's job.
31923         (talloc): Remove.  All callers replaced by xalloc, so that
31924         our invokers don't have to worry about reporting memory failures.
31925         (make_node_op_equals): Remove.
31926         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
31927         New constants.
31928         (struct mode_change): Moved here from modechange.h.
31929         (mode_append_entry): Remove.
31930         (mode_compile): Remove MASKED_OPS arg, since it encouraged
31931         apps to have incorrect behavior.  Use simpler algorithm for head
31932         and tail.  Don't futz with umask; that's now the job of mode_adjust.
31933         Detect more invalid usages rather than having somewhat-random behavior.
31934         Don't insert an "a=" action, as that leads to incorrect behavior.
31935         (mode_compile, mode_create_from_ref): Return NULL on error instead
31936         of an enum, since now there's only one way to have an error.  All
31937         callers changed.
31938         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
31939         at the correct time.  Simplify calculation of "+u" and its ilk.
31940         Don't mishandle "+X".
31941         (mode_free): Remove "register" and localize decls.
31942         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
31943         (struct mode_change): Move to modechange.c; callers don't
31944         need to see this stuff.
31945         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
31946         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
31947         (mode_change, mode_adjust): Reflect the new signatures noted above.
31948         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
31949         that might redefine system include files.
31950         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
31951         (my_usleep): Use NULL rather than (void *) 0.
31952         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
31953         Use siginterrupt to specify that system calls should be interrupted.
31954         (rpl_nanosleep): Move initialization of suspended closer to call of
31955         my_usleep.
31956         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
31957         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
31958         (desirable_utmp_entry): New function.
31959         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
31960         using x2nrealloc, to simplify logic.
31961         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
31962         size calculation.  Do not assume utmp file is a regular file.
31963         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
31964         (READ_UTMP_CHECK_PIDS): New constant.
31965         * lib/save-cwd.c: Include unistd-safer.h.
31966         (save_cwd): Use fd_safer.
31967         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
31968         [!_LIBC] Include "stat-macros.h" instead.
31969         * lib/unistd-safer.h (fd_safer): New decl.
31970
31971 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
31972
31973         * modules/getloadavg (Depends-on): Add unistd-safer.
31974         * modules/getusershell (Depends-on): Add stdio-safer.
31975         * modules/lstat (Depends-on): Remove xalloc.
31976         * modules/mkstemp (Depends-on): Add stat-macros.
31977         * modules/modechange (Depends-on): Remove xstrtol.
31978         Add stat-macros, xalloc.
31979         * modules/save-cwd (Depends-on): Add unistd-safer.
31980         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
31981         * modules/unistd-safer (Files): Add lib/fd-safer.c
31982         (Makefile.am): Remove lib_SOURCES.
31983
31984         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
31985         Remove fcntl-safer; unistd-safer supersedes it.
31986
31987 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
31988
31989         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
31990         AC_HEADER_STAT.
31991         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
31992         (gl_PREREQ_CHOWN): Remove.
31993         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
31994         it.  Don't require AC_HEADER_STAT.
31995         (gl_PREREQ_LSTAT): Remove.
31996         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
31997         Don't require AC_HEADER_STAT.
31998         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
31999         (gl_PREREQ_RMDIR): Remove.
32000         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
32001         mention stat-macros.h or AC_HEADER_STAT, since we'll make
32002         the stat-macros module a prerequisite.
32003         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
32004         * m4/filemode.m4 (gl_FILEMODE): Likewise.
32005         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
32006         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
32007         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
32008         variable names.
32009         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
32010         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
32011         variable prefixes.
32012         * m4/fcntl-safer.m4: Remove.
32013         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
32014         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
32015         Invoke gl_PREREQ_FD_SAFER.
32016         (gl_PREREQ_FD_SAFER): New macro.
32017         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
32018         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
32019         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
32020         Remove duplicate call to AC_LIBOBJ(readutmp).
32021         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
32022
32023         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
32024         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
32025
32026 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
32027
32028         * MODULES.html.sh (Misc): Add byteswap.
32029
32030 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
32031
32032         * modules/getcwd (Depends-on): Add extensions.
32033         * modules/openat (Depends-on): Likewise.
32034
32035 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
32036
32037         * modules/byteswap: New file.
32038
32039 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
32040
32041         * m4/byteswap.m4: New file.
32042
32043 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
32044
32045         * lib/byteswap_.h: New file.
32046
32047 2005-04-25  Karl Berry  <karl@gnu.org>
32048
32049         * m4/gettext.m4: Update from GNU gettext 0.14.4.
32050
32051 2005-04-25  Albert Chin  <china@thewrittenword.com>
32052
32053         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
32054         Toolkit C bug.
32055
32056 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
32057
32058         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
32059         (func_ln_if_changed) Remove forcibly for no error message
32060         in case file does not exist.
32061
32062 2005-04-19  Simon Josefsson  <jas@extundo.com>
32063
32064         * gnulib-tool (Options): Make --symlink mean --symbolic.
32065
32066 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
32067
32068         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
32069
32070 2005-04-16  Simon Josefsson  <jas@extundo.com>
32071
32072         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
32073
32074 2005-04-15  Simon Josefsson  <jas@extundo.com>
32075
32076         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
32077
32078 2005-04-15  Simon Josefsson  <jas@extundo.com>
32079
32080         * gnulib-tool: Rename --symlink to --symbolic.
32081
32082 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
32083
32084         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
32085         symbolic links to files instead of copying/moving.  Add --aux-dir,
32086         specifying directory relative --dir where auxiliary build tools
32087         are placed.
32088
32089 2005-04-14  Bruno Haible  <bruno@clisp.org>
32090
32091         * modules/allocsa (License): Change to LGPL.
32092         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
32093
32094 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
32095
32096         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
32097         that "UTC +1 second" continues to work.  Problem reported
32098         by Dmitry V. Levin.
32099         (relunit_snumber): New rule.
32100         (relunit): Use it.
32101
32102 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
32103
32104         * lib/getdate.y (universal_time_zone_table): New constant.
32105         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
32106         universal_time_zone_table.
32107         (lookup_zone): Prefer universal_time_zone_table to
32108         local_time_zone_table, so that "GMT" time stamps are allowed in
32109         London during the summer.  Problem reported by Ian Abbott.
32110
32111 2005-04-12  Jim Meyering  <jim@meyering.net>
32112
32113         * lib/human.c (humblock): Set *options even when returning due to
32114         xstrtoumax conversion failure.  Thanks to a used-uninitialized
32115         warning from gcc-4.
32116
32117 2005-04-09  Jim Meyering  <jim@meyering.net>
32118
32119         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
32120         -Wuninitialized: initialize tm0.tm_year.
32121
32122 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
32123
32124         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
32125         count, since there's no maximum.  All uses changed.
32126         Add member dsts_seen.
32127         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
32128         not being INT_MAX.
32129         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
32130         Use pc_rels_seen to decide whther a date is absolute.
32131
32132         * lib/getdate.y (number): Don't overwrite year.
32133         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
32134         check.
32135
32136 2005-04-02  Simon Josefsson  <jas@extundo.com>
32137
32138         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
32139         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
32140
32141 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
32142
32143         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
32144         where no absolute path name can be longer than PATH_MAX.
32145
32146 2005-03-27  Jim Meyering  <jim@meyering.net>
32147
32148         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
32149
32150 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
32151
32152         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
32153         "one's complement" -> "ones' complement" in comment, as per Knuth.
32154         "value of type" -> "type or expression" in comment.
32155         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
32156
32157 2005-03-26  Jim Meyering  <jim@meyering.net>
32158
32159         Comment nits.
32160         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
32161         Correct typos: s/or/of/.
32162
32163 2005-03-26  Jim Meyering  <jim@meyering.net>
32164
32165         * modules/check-include-files: Move to ../ and rename to...
32166         * check-module: ...this.
32167
32168 2005-03-25  Jim Meyering  <jim@meyering.net>
32169
32170         * modules/xvasprintf (Files): Add xalloc.h.
32171
32172 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
32173
32174         * modules/gettext (Files): config/config.rpath ->
32175         build-aux/config.rpath
32176         * modules/iconv (Files): Likewise.
32177         Problem reported by Oskar Liljeblad.
32178
32179 2005-03-23  Jim Meyering  <jim@meyering.net>
32180
32181         * modules/check-include-files: New script to check for
32182         missing dependencies, multiple includes, etc.
32183
32184         * modules/c-strtold (Depends-on): Add xalloc.
32185         * modules/c-strtod (Depends-on): Add xalloc.
32186         * modules/hash (Depends-on): Add xalloc.
32187         (Files): Remove lib/xalloc.h.
32188
32189         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
32190         * modules/userspec (Files): Add lib/inttostr.h.
32191
32192 2005-03-23  Jim Meyering  <jim@meyering.net>
32193
32194         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
32195
32196 2005-03-22  Jim Meyering  <jim@meyering.net>
32197
32198         * modules/stat-macros: New module.
32199         * modules/canonicalize, modules/euidaccess, modules/file-type,
32200         * modules/filemode, modules/lchown, modules/makepath,
32201         * modules/rmdir, modules/stat: Depend on new stat-macros module
32202         rather than listing lib/stat-macros.h manually.
32203         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
32204
32205 2005-03-22  Jim Meyering  <jim@meyering.net>
32206
32207         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
32208
32209 2005-03-22  Bruno Haible  <bruno@clisp.org>
32210
32211         * config/srclist.txt: Replace target directory 'config' with
32212         'build-aux'.
32213         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
32214         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
32215         ../build-aux/.
32216
32217 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
32218
32219         * modules/chdir-long (Depends-on): Add mempcpy.
32220
32221         * modules/acl, modules/backupfile, modules/c-strtod,
32222         modules/c-strtold, modules/canon-host, modules/canonicalize,
32223         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
32224         modules/exclude, modules/exitfail, modules/file-type,
32225         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
32226         modules/getdate, modules/getline, modules/getpagesize,
32227         modules/getpass, modules/getugroups, modules/group-member,
32228         modules/hard-locale, modules/hash, modules/human, modules/idcache,
32229         modules/inttostr, modules/long-options, modules/makepath,
32230         modules/md5, modules/memcasecmp, modules/memcoll,
32231         modules/modechange, modules/mountlist, modules/path-concat,
32232         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
32233         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
32234         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
32235         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
32236         modules/strftime, modules/strndup, modules/strverscmp,
32237         modules/timespec, modules/unlocked-io, modules/userspec,
32238         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
32239         modules/yesno:
32240         Remove lib_SOURCES line from Makefile.am section, as this is now
32241         done automatically by the corresponding Autoconf macro.
32242
32243 2005-03-21  Jim Meyering  <jim@meyering.net>
32244
32245         Changes imported from coreutils.
32246
32247         * lib/cycle-check.c: Don't include xalloc.h.
32248
32249         * lib/path-concat.c: Don't include assert.h.
32250         (path_concat): Remove assertion that would have triggered
32251         for ABASE starting with more than one slash.
32252         Reported by Andreas Schwab.
32253
32254         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
32255         properly when ABASE is an absolute file name.
32256         Correct the description of this function.
32257         Include <assert.h>.
32258         Add an assertion and a test driver.
32259         This fixes a bug introduced on 2004-07-02.
32260         Andreas Schwab reported the resulting failure of cp --parents:
32261         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
32262
32263 2005-03-21  Jim Meyering  <jim@meyering.net>
32264
32265         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
32266         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
32267
32268 2005-03-21  Jim Meyering  <jim@meyering.net>
32269         and  Paul Eggert  <eggert@cs.ucla.edu>
32270
32271         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
32272         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
32273         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
32274         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
32275         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
32276         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
32277         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
32278         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
32279         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
32280         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
32281         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
32282         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
32283         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
32284         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
32285         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
32286         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
32287         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
32288         for these modules.
32289
32290 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
32291
32292         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
32293         (which shouldn't happen), generate nothing instead of returning 0
32294         immediately, so that nstrftime (NULL, ...) doesn't return 0.
32295
32296 2005-03-16  Bruno Haible  <bruno@clisp.org>
32297
32298         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
32299         HAVE_LONGLONG_64BIT.
32300
32301 2005-03-16  Bruno Haible  <bruno@clisp.org>
32302
32303         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
32304         HAVE_LONGLONG_64BIT.
32305
32306 2005-03-16  Bruno Haible  <bruno@clisp.org>
32307
32308         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
32309         HAVE_LONGLONG_64BIT.
32310
32311 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
32312
32313         * lib/strftime.c (my_strftime): Prepend space to format so that we can
32314         reliably distinguish strftime failure from empty output on POSIX
32315         hosts.
32316
32317 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
32318
32319         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
32320         (iconv_string): Don't guess a size-zero buffer, as that might cause
32321         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
32322         result would be 'too large', where 'too large' is (heuristically)
32323         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
32324         overflow concerns.  This will prevent some unwanted malloc failures
32325         when the inputs are very large.
32326
32327 2005-03-15  Karl Berry  <karl@gnu.org>
32328
32329         * config/srclist.txt (config.rpath): from gettext.
32330         * config/config.rpath: update.
32331
32332 2005-03-15  Bruno Haible  <bruno@clisp.org>
32333
32334         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
32335         to 'negate'.
32336
32337         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
32338         variable.
32339
32340         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
32341         results.
32342
32343 2005-03-14  Simon Josefsson  <jas@extundo.com>
32344
32345         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
32346         <fx@gnu.org>.
32347
32348 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
32349
32350         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
32351         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
32352         intprops.h.
32353         * lib/strtol.c: Likewise.
32354
32355 2005-03-14  Jim Meyering  <jim@meyering.net>
32356
32357         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
32358         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
32359         to be nonzero so that we (and caller) can detect the difference
32360         between a valid zero-length expansion and an error return, even
32361         when the underlying strftime fails before writing anything into
32362         that location.
32363
32364 2005-03-14  Bruno Haible  <bruno@clisp.org>
32365
32366         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
32367         Update from GNU gettext 0.14.3.
32368
32369 2005-03-10  Jim Meyering  <jim@meyering.net>
32370
32371         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
32372
32373 2005-03-10  Jim Meyering  <jim@meyering.net>
32374
32375         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
32376         so that this module works on systems without fchdir.
32377
32378 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
32379
32380         Factor int-properties macros into a single file, except for
32381         glibc-related files.
32382         * lib/intprops.h: New file.
32383         * lib/getloadavg.c: Include it instead of limits.h.
32384         (INT_STRLEN_BOUND): Remove.
32385         * lib/human.c: Include intprops.h.
32386         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
32387         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
32388         302/1000.
32389         * lib/inttostr.h: Include intprops.h instead of limits.h.
32390         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
32391         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
32392         for consistency with intprops.h.
32393         (time_t_is_integer, twos_complement_arithmetic): Use them.
32394         * lib/sig2str.h: Include <signal.h>, intprops.h.
32395         (INT_STRLEN_BOUND): Remove.
32396         * lib/strftime.c (TYPE_SIGNED): Remove.
32397         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
32398         * lib/strtol.c: Adjust comments to match intprops.h.
32399         * lib/userspec.c: Include intprops.h.
32400         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
32401         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
32402         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
32403         instead of rolling our own expressions.
32404         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
32405
32406         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
32407         instead of int.
32408         (my_strftime): Do not mishandle years close to INT_MAX, by doing
32409         the right thing even if adding 1900 would overflow.  Similarly
32410         for tm_mon + 1 and tm_yday + 1.
32411         Make %Y always equivalent to %C%y, and similarly for %G and %g.
32412         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
32413         (DO_SIGNED_NUMBER): New macro.
32414         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
32415
32416 2005-03-07  Bruno Haible  <bruno@clisp.org>
32417
32418         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
32419
32420 2005-03-07  Bruno Haible  <bruno@clisp.org>
32421
32422         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
32423
32424 2005-03-04  Derek R. Price  <derek@ximbiot.com>
32425
32426         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
32427         (func_import): Only replace files via --import when they have actually
32428         changed.
32429
32430 2005-03-03  Derek R. Price  <derek@ximbiot.com>
32431
32432         * m4/mmap-anon.m4: New file.
32433         * m4/pagealign_alloc.m4: New file.
32434
32435 2005-03-03  Derek R. Price  <derek@ximbiot.com>
32436             Bruno Haible  <bruno@clisp.org>
32437
32438         * modules/pagealign_alloc: New file.
32439         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
32440
32441 2005-03-03  Derek R. Price  <derek@ximbiot.com>
32442             Bruno Haible  <bruno@clisp.org>
32443
32444         * lib/pagealign_alloc.h: New file.
32445         * lib/pagealign_alloc.c: New file.
32446
32447 2005-03-03  Bruno Haible  <bruno@clisp.org>
32448
32449         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
32450         Use an all-permissive copyright notice, recommended by RMS.
32451
32452 2005-03-02  Bruno Haible  <bruno@clisp.org>
32453
32454         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
32455         of AIX, the replacement has to be done only after <string.h> is
32456         included, therefore not in config.h. stpncpy.h does the replacement,
32457         and stpncpy.c uses it.
32458
32459 2005-03-02  Bruno Haible  <bruno@clisp.org>
32460
32461         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
32462         stpncpy.c uses it.
32463
32464 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
32465
32466         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
32467         The workaround isn't strictly needed for POSIX conformance, and
32468         it's too much of a pain to configure and maintain.  We'll ask
32469         people to fix their kernels instead.
32470         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
32471         (NANOSLEEP_BUG_WORKAROUND): Remove.
32472         (xnanosleep): Remove the workaround.
32473
32474 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
32475
32476         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
32477         Reported by Derek Price.
32478         (Include): Add "timespec.h".
32479
32480         * modules/xnanosleep (Depends-on): Remove gethrxtime.
32481
32482 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
32483
32484         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
32485         to detect nanosleep bug.
32486
32487 2005-03-01  Bruno Haible  <bruno@clisp.org>
32488
32489         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
32490
32491 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
32492
32493         * modules/gethrxtime: New file.
32494         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
32495         (Depends-on): Add gethrxtime.
32496         (configure.ac): Add gl_XNANOSLEEP.
32497         (Makefile.am): Remove lib_SOURCES line.
32498
32499 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
32500
32501         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
32502         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
32503
32504 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
32505
32506         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
32507         * lib/timespec.h (gettime): Return void, since it always
32508         succeeds now.  All uses changed.
32509         * lib/gettime.c (gettime) Likewise.
32510         [HAVE_NANOTIME]: Prefer nanotime.
32511         Assume gettimeofday succeeds, as POSIX requires.
32512         Assime time () succeeds, since other code already does.
32513         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
32514         (timespec_subtract): Remove.
32515         (NANOSLEEP_BUG_WORKAROUND): New constant.
32516         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
32517         things considerably.  Use it only on GNU/Linux hosts, since the
32518         workaround shouldn't be needed elsewhere.
32519
32520 2005-02-24  Bruno Haible  <bruno@clisp.org>
32521
32522         * modules/gettext (Files): Add m4/glibc2.m4.
32523
32524 2005-02-24  Bruno Haible  <bruno@clisp.org>
32525
32526         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
32527         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
32528         * m4/progtest.m4:
32529         Update from GNU gettext 0.14.2.
32530         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
32531
32532 2005-02-24  Bruno Haible  <bruno@clisp.org>
32533
32534         * lib/localcharset.c: Update from GNU gettext 0.14.2.
32535         * lib/config.charset: Update from GNU gettext 0.14.2.
32536
32537 2005-02-24  Bruno Haible  <bruno@clisp.org>
32538
32539         * lib/gettext.h: Update from GNU gettext 0.14.2.
32540
32541 2005-02-23  Simon Josefsson  <jas@extundo.com>
32542
32543         * m4/iconvme.m4: New file.
32544
32545 2005-02-23  Jim Meyering  <jim@meyering.net>
32546
32547         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
32548         change.
32549         Thanks to Bruno Haible for catching it.
32550
32551 2005-02-22  Simon Josefsson  <jas@extundo.com>
32552
32553         * modules/iconvme: New file.
32554
32555         * MODULES.html.sh: Add iconvme.
32556
32557 2005-02-22  Simon Josefsson  <jas@extundo.com>
32558
32559         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
32560
32561 2005-02-22  Simon Josefsson  <jas@extundo.com>
32562
32563         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
32564
32565 2005-02-22  Jim Meyering  <jim@meyering.net>
32566
32567         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
32568         s/ifndef/ifdef/.
32569
32570 2005-02-20  Neil Conway  <neilc@samurai.com>
32571
32572         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
32573         returned by OSX/Darwin if the specified buffer is not large
32574         enough for the hostname.
32575
32576 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
32577
32578         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
32579         pass it to _help, otherwise the latter coredumps trying to
32580         dereference state.root_argp.
32581
32582 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
32583
32584         * modules/chdir-long (Depends-on): Add memrchr.
32585         * modules/memrchr (Files): Add lib/memrchr.h.
32586         (Include): "memrchr.h".
32587
32588 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
32589
32590         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
32591
32592 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
32593
32594         * lib/memrchr.h: New file.
32595         * lib/chdir-long.c: Include it.
32596         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
32597         Don't bother including stddef.h.
32598
32599 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
32600
32601         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
32602         inclusion.
32603         Include <sys/types.h>, for dev_t.
32604         (ME_DUMMY, ME_REMOTE): Move from here....
32605         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
32606         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
32607         Dmitry V. Levin.
32608         Include mountlist.h first, to test the interface.
32609
32610 2005-01-29  Bruno Haible  <bruno@clisp.org>
32611
32612         * lib/progname.c (program_name): Initialize.
32613         Needed when linking statically on MacOS X.
32614
32615 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
32616
32617         Sync from coreutils.
32618         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
32619         (Depends-on): Add c-strtod.
32620         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
32621
32622 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
32623
32624         Sync from coreutils.
32625         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
32626
32627         Remove files that are specific to coreutils.
32628         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
32629
32630 2005-01-28  Bruno Haible  <bruno@clisp.org>
32631
32632         * modules/javacomp: New file.
32633         * MODULES.html.sh (Java): Add javacomp.
32634
32635 2005-01-28  Bruno Haible  <bruno@clisp.org>
32636
32637         * m4/javacomp.m4: New file, from GNU gettext.
32638
32639 2005-01-28  Bruno Haible  <bruno@clisp.org>
32640
32641         * lib/javacomp.sh.in: New file, from GNU gettext.
32642         * lib/javacomp.h: New file, from GNU gettext.
32643         * lib/javacomp.c: New file, from GNU gettext.
32644
32645 2005-01-26  Simon Josefsson  <jas@extundo.com>
32646
32647         * lib/gai_strerror.c: Use GPL in header.
32648
32649 2005-01-26  Bruno Haible  <bruno@clisp.org>
32650
32651         * modules/javaexec: New file.
32652         * MODULES.html.sh (Java): Add javaexec.
32653
32654 2005-01-26  Bruno Haible  <bruno@clisp.org>
32655
32656         * m4/javaexec.m4: New file, from GNU gettext.
32657
32658 2005-01-26  Bruno Haible  <bruno@clisp.org>
32659
32660         * lib/javaexec.sh.in: New file, from GNU gettext.
32661         * lib/javaexec.h: New file, from GNU gettext.
32662         * lib/javaexec.c: New file, from GNU gettext.
32663
32664 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
32665
32666         * modules/lchown (Depends-on): Remove lchown.h
32667
32668 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
32669
32670         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
32671         must be defined if the header file was not found, in order
32672         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
32673
32674 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
32675
32676         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
32677         initializers for struct pentry_state.
32678         (__argp_error): Check return value of __asprintf
32679         (__argp_failure): Translate error message
32680
32681         * lib/argp-parse.c: Removed braces around the expansion of N_()
32682
32683 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
32684
32685         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
32686         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
32687         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
32688         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
32689         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
32690         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
32691         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
32692         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
32693         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
32694         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
32695         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
32696         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
32697         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
32698         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
32699         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
32700         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
32701         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
32702         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
32703         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
32704         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
32705         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
32706         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
32707         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
32708         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
32709         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
32710         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
32711         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
32712         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
32713         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
32714         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
32715         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
32716         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
32717         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
32718         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
32719         xstrtol.m4, xstrtoumax.m4, yesno.m4:
32720         Use an all-permissive copyright notice, recommended by RMS.
32721
32722 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
32723
32724         * modules/chdir-long (Depends-on): Remove mempcpy.
32725
32726 2005-01-21  Jim Meyering  <jim@meyering.net>
32727
32728         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
32729         same value as for Solaris 9.
32730
32731         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
32732         component length.  This included changing the parameter to be
32733         of type `char *' rather than `char const *'.
32734         * lib/chdir-long.h (chdir_long): Update prototype.
32735
32736         * lib/openat.c (fdopendir, fstatat): New functions.
32737         * lib/openat.h: Include headers required for use of DIR and struct
32738         stat.
32739         [AT_SYMLINK_NOFOLLOW]: Define.
32740         (fdopendir, fstatat): Add prototypes.
32741
32742 2005-01-21  Bruno Haible  <bruno@clisp.org>
32743
32744         * modules/classpath: New file.
32745         * MODULES.html.sh (Java): Add classpath.
32746
32747 2005-01-21  Bruno Haible  <bruno@clisp.org>
32748
32749         * lib/classpath.h: New file, from GNU gettext.
32750         * lib/classpath.c: New file, from GNU gettext.
32751
32752 2005-01-20  Simon Josefsson  <jas@extundo.com>
32753
32754         * modules/version-etc-fsf: New file.
32755
32756 2005-01-20  Simon Josefsson  <jas@extundo.com>
32757
32758         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
32759         * lib/version-etc.c: Remove version_etc_copyright.
32760         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
32761         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
32762
32763 2005-01-20  Simon Josefsson  <jas@extundo.com>
32764
32765         * lib/base64.h (isbase64): Add.
32766
32767         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
32768         using a unsigned prototype, don't inline.
32769         (base64_decode): Use it.
32770
32771 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
32772
32773         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
32774         it.
32775
32776 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
32777
32778         * lib/save-cwd.c (save_cwd): Remove code to support the case
32779         where fchdir is missing or flaky.
32780
32781 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
32782
32783         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
32784
32785 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
32786
32787         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
32788         AC_LIBSOURCES now does this.
32789         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
32790         with new ullong_max module.
32791
32792 2005-01-19  Bruno Haible  <bruno@clisp.org>
32793
32794         * modules/sh-quote: New file.
32795         * MODULES.html.sh (Executing programs): Add sh-quote.
32796
32797 2005-01-19  Bruno Haible  <bruno@clisp.org>
32798
32799         * lib/sh-quote.h: New file, from GNU gettext.
32800         * lib/sh-quote.c: New file, from GNU gettext.
32801
32802 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
32803
32804         Merge from coreutils.
32805         * m4/ullong_max.m4: New file.
32806         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
32807         (gl_MACROS): Assume localeconv exists.
32808
32809 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
32810
32811         Merge changes from coreutils, as described below in several
32812         changelogs dated today.
32813
32814         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
32815         (O_DIRECTORY): Remove; not needed here, since "." must be
32816         a directory.  All uses removed.
32817         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
32818         universal on Suns, and we also need to test for IRIX.
32819         Revamp code to use 'if' rather than '#if'.
32820         Avoid unnecessary comparison of cwd->desc to 0.
32821
32822         * lib/utimens.c (futimens): Robustify the previous patch, by checking
32823         for known valid error numbers rather than observed invalid ones.
32824
32825 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
32826
32827         * modules/ullong_max: New file.
32828
32829         * modules/chdir-long, modules/openat: New files.
32830         * modules/save-cwd (Depends-on): Depend on chdir-long.
32831         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
32832
32833 2005-01-18  Jim Meyering  <jim@meyering.net>
32834
32835         Merge from coreutils.
32836         * m4/chdir-long.m4, m4/openat.m4: New files.
32837         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
32838         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
32839         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
32840         is sane and DOES follow symlinks.  Besides, testing 20 different
32841         systems found no broken chown implementations.
32842         Prompted by a change in rsync's copy of this macro.
32843         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
32844
32845         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
32846
32847         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
32848         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
32849         NULL-means-set-to-current-time semantics.
32850         Remove temporary file immediately, rather than waiting
32851         for configure's at-exit trap code to do it.
32852
32853 2005-01-18  Jim Meyering  <jim@meyering.net>
32854
32855         * lib/version-etc.c (version_etc_copyright): Update copyright date.
32856
32857         * lib/utimens.c (futimens): Account for the fact that futimes
32858         can also fail with errno == ENOSYS or errno == ENOENT.
32859         Patch from Dmitry V. Levin.
32860
32861         Change the name of the robust chdir function from chdir to chdir_long.
32862         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
32863         (restore_cwd): Use chdir_long, not chdir.
32864         * lib/chdir-long.c: Renamed from chdir.c.
32865         * lib/chdir-long.h: Renamed from chdir.h.
32866         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
32867         Hurd.
32868
32869 2005-01-18  Bruno Haible  <bruno@clisp.org>
32870
32871         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
32872         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
32873         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
32874         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
32875         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
32876         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
32877         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
32878         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
32879         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
32880         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
32881         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
32882         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
32883         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
32884         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
32885         Use an all-permissive copyright notice, recommended by RMS.
32886
32887 2005-01-18  Bob Proulx  <bob@proulx.com>
32888
32889         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
32890         simplify offsetof() macro construct to avoid compile failure with
32891         native HP-UX 11.0 ANSI C compiler.
32892
32893 2005-01-17  Bruno Haible  <bruno@clisp.org>
32894
32895         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
32896         redundant because stpncpy.m4 takes care of it.
32897
32898 2005-01-17  Bruno Haible  <bruno@clisp.org>
32899
32900         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
32901
32902 2005-01-17  Bruno Haible  <bruno@clisp.org>
32903
32904         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
32905         used.
32906
32907 2005-01-17  Bruno Haible  <bruno@clisp.org>
32908
32909         * lib/fwriteerror.h (fwriteerror): Change specification to include
32910         fclose.
32911         * lib/fwriteerror.c: Include <stdbool.h>.
32912         (fwriteerror): At the end, close the file stream. Record whether
32913         stdout was already closed.
32914
32915 2005-01-17  Bruno Haible  <bruno@clisp.org>
32916
32917         * lib/execute.c (environ): Declare if needed.
32918         * lib/pipe.c (environ): Likewise.
32919         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
32920
32921 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
32922
32923         * modules/argp: Depend on vsnprintf
32924
32925 2005-01-10  Jim Meyering  <jim@meyering.net>
32926
32927         * modules/closeout (Depends-on): Add atexit.
32928
32929 2005-01-06  Bruno Haible  <bruno@clisp.org>
32930
32931         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
32932
32933 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
32934
32935         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
32936         definitions to be after all include files, to avoid collisions.
32937         Problem reported by Bob Proulx.
32938
32939 2005-01-04  Jim Meyering  <jim@meyering.net>
32940
32941         Changes imported from coreutils.
32942         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
32943         as the mkstemp template, use a temporary directory and an
32944         8.3-friendly template to avoid trouble on systems like DJGPP.
32945         Reported by Juan M. Guerrero via Stepan Kasal.
32946         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
32947         close. Remove the temporary directory right away, rather than waiting
32948         for configure's at-exit trap code to do it.
32949         Suggestion from Stepan Kasal.
32950
32951 2005-01-01  Simon Josefsson  <jas@extundo.com>
32952
32953         * gnulib-tool: Print #include directives when --import'ing.
32954
32955 2004-12-28  Simon Josefsson  <jas@extundo.com>
32956
32957         * tests/test-base64.c: Include required header files.  Remove
32958         unused variables.
32959
32960 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
32961
32962         * modules/error (Depends-on): Remove gettext.
32963
32964 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
32965
32966         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
32967         not needed.  This removes a dependency on the gettext module.
32968         [defined _LIBC]: Do not include <libintl.h>; not needed.
32969
32970 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
32971
32972         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
32973         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
32974
32975 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
32976
32977         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
32978         HAVE_DECL_STRTOLD.
32979
32980 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
32981
32982         * modules/getdate (Depends-on): Remove alloca-opt.
32983
32984 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
32985
32986         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
32987
32988 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
32989
32990         * lib/argp-parse.c: Include <stddef.h>.
32991         (alignof, alignto): New macros.
32992         (parser_init): Don't assume that void * is aligned sufficiently
32993         for struct option.
32994
32995         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
32996         need to extend the stack.
32997         (YYINITDEPTH): New macro, so that the initial stack isn't overly
32998         large.
32999
33000 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
33001
33002         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
33003
33004 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
33005
33006         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
33007         (2004-10-24) change.  Apparently this was a false alarm.
33008
33009         * modules/getdate: Depend on alloca-opt, not alloca.
33010
33011 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
33012
33013         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
33014         Remove now-obsolete comment about AIX.
33015         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
33016         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
33017         (YYMAXDEPTH): New macro.
33018
33019 2004-12-18  Simon Josefsson  <jas@extundo.com>
33020
33021         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
33022
33023 2004-12-18  Bruno Haible  <bruno@clisp.org>
33024
33025         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
33026
33027 2004-12-18  Bruno Haible  <bruno@clisp.org>
33028
33029         * lib/fatal-signal.c (fatal_signals): Make non-const.
33030         (init_fatal_signals): New function.
33031         (uninstall_handlers, install_handlers): Ignore signals that were set to
33032         SIG_IGN.
33033         (at_fatal_signal): Call init_fatal_signals.
33034         (init_fatal_signal_set): Likewise. Ignore signals that were set to
33035         SIG_IGN.
33036         Reported by Paul Eggert.
33037
33038 2004-12-18  Bruno Haible  <bruno@clisp.org>
33039
33040         * doc/alloca.texi: New file.
33041         * doc/alloca-opt.texi: New file.
33042
33043 2004-12-17  Jim Meyering  <jim@meyering.net>
33044
33045         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
33046         Otherwise, install-sh could exit with improper exit status when
33047         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
33048
33049 2004-12-16  Simon Josefsson  <jas@extundo.com>
33050
33051         * tests/test-base64.c: Add license.
33052
33053 2004-12-15  Stepan Kasal  <address@hidden>
33054
33055         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
33056
33057 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
33058
33059         * modules/getcwd (Files): Add m4/d-ino.m4.
33060         Suggested by Mark D. Baushke.
33061
33062 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
33063
33064         * lib/getdate.y (textint): New member "negative".
33065         (time_zone_hhmm): New function.
33066         Expect 14 shift-reduce conflicts, not 13.
33067         (o_colon_minutes): New rule.
33068         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
33069         (yylex): Set the "negative" member of signed numbers.
33070
33071 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
33072
33073         * doc/getdate.texi (Time of day items, Time zone items):
33074         Describe new formats +00:00, UTC+00:00.
33075
33076 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
33077
33078         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
33079         spurious "-l"s.  Problem reported by Stepan Kasal.
33080
33081 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
33082
33083         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
33084         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
33085
33086 2004-12-04  Simon Josefsson  <jas@extundo.com>
33087
33088         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
33089         Vandoorselaere <yoann@prelude-ids.org>.
33090
33091 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
33092
33093         Changes imported from coreutils.
33094         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
33095         exist.
33096         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
33097
33098 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
33099
33100         Changes imported from coreutils.
33101         * lib/hard-locale.c: Assume <locale.h> exists.
33102         Include "strdup.h".
33103         (GLIBC_VERSION): New macro.
33104         (hard_locale): Assume setlocale exists.
33105         Rewrite to avoid #ifdef.
33106         Use strdup rather than malloc + strcpy.
33107         * lib/human.c: Assume <locale.h> exists.
33108         (human_readable): Assume localeconv exists.
33109
33110 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
33111
33112         * modules/hard-locale (Depends-on): Add strdup.
33113
33114 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
33115
33116         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
33117         convert T2, not T.  (Imported from libc.)
33118
33119 2004-11-30  Simon Josefsson  <jas@extundo.com>
33120
33121         * modules/restrict (License): Change to LGPL.
33122
33123 2004-11-30  Simon Josefsson  <jas@extundo.com>
33124
33125         * m4/restrict.m4: Add copyright and copying conditions.
33126
33127 2004-11-30  Simon Josefsson  <jas@extundo.com>
33128
33129         * m4/base64.m4: New file.
33130
33131 2004-11-30  Simon Josefsson  <jas@extundo.com>
33132
33133         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
33134         base64.
33135
33136         * tests/test-base64.c: New file.
33137
33138         * modules/base64: New file.
33139
33140 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
33141
33142         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
33143         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
33144
33145         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
33146
33147 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
33148
33149         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
33150         (__getcwd.c): Don't restore errno; glibc doesn't.
33151         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
33152         first, falling back to our code only if its results look suspicious.
33153         Ensure that the resulting buffer is only as large as necessary.
33154
33155         * lib/readutmp.c: Include readutmp.h first.
33156         Include <errno.h>, since readutmp.h no longer does that.
33157         * lib/readutmp.h: Don't include <errno.h>,
33158         <sys/param.h>, <time.h>; not needed to establish interface.
33159         (errno): Remove decl.
33160         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
33161         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
33162         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
33163
33164 2004-11-28  Simon Josefsson  <jas@extundo.com>
33165
33166         * lib/base64.h, base64.c: New file.
33167
33168 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
33169
33170         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
33171
33172 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
33173
33174         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
33175         (Depends-on): Remove pathmax, same.  Add mempcpy.
33176         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
33177         (Makefile.am): Append getcwd.h to lib_SOURCES.
33178         (Include): Add getcwd.h.
33179         (Maintainer): Change from Jim Meyering to "all, glibc",
33180         since getdate now uses intended-for-glibc code.
33181         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
33182         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
33183
33184 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
33185
33186         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
33187         HP's ANSI C compiler.
33188         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
33189         Declaring int functions causes warnings on some modern systems and
33190         shouldn't be needed to compile on ancient ones.
33191         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
33192         defined.
33193
33194         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
33195         with the following changes.
33196         (__set_errno): Parenthesize properly.
33197         Include <stdbool.h>.
33198         (MIN, MAX, MATCHING_INO): New macros.
33199         (__getcwd): Define with prototype, not K&R form.
33200         Use heuristics to allocate default buffer on stack if possible.
33201         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
33202         behavior, and to avoid the PATH_MAX limit when computing
33203         ../../../../...
33204         Use MATCHING_INO to compare inode number to file.
33205         Check for arithmetic overflow in size calculations.
33206         Fix bug in reallocation of dot array that caused getcwd to fail
33207         on directories nested deeper than 75.
33208         Be more careful about saving errno on error.
33209         Do not use realloc; use only free+malloc, as this is a bit
33210         more flexible and avoids a needless copy operation.
33211         Do not inspect st_dev and st_ino for symbolic links; POSIX
33212         doesn't specify the latter.
33213         Check for closedir errors.
33214         Avoid needless casts.
33215         Use "#ifdef weak_alias" around weak_alias, to be like other
33216         glibc code.
33217         The following changes to getcwd.c have effect only when used in
33218         gnulib; they have no effect inside glibc proper.
33219         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
33220         as alloca isn't used.
33221         (alloca, __alloca): Likewise.
33222         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
33223         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
33224         unconditionally, as gnulib assumes C89 or better.
33225         Do not include <sys/param.h>.
33226         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
33227         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
33228         better.
33229         (NULL) [!defined NULL]: Remove; we assume C89 or better.
33230         Include <dirent.h> in a way that is compatible with modern Autoconf.
33231         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
33232         New macros, if not already defined.
33233         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
33234         Use "_LIBC", not "defined _LIBC", for consistency.
33235         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
33236         a mempcpy module.
33237         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
33238         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
33239         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
33240         credit only to Jim Meyering and adjust the copyright dates.
33241         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
33242         <stdlib.h>, <unistd.h>, "pathmax.h".
33243         Instead, include "xgetcwd.h" (first) and "getcwd.h".
33244         (INITIAL_BUFFER_SIZE): Remove.
33245         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
33246
33247 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
33248
33249         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
33250         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
33251         Use the _ONCE methods, for efficiency.
33252         Check for fcntl.h.  In test program, include <errno.h>
33253         and <fcntl.h> if available.  Remove old K&R cruft from
33254         test program.  Check for common errors in GNU/Linux,
33255         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
33256         don't do AC_LIBOBJ, as that's getcwd.m4's job.
33257         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
33258         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
33259         name accordingly.
33260         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
33261         accommodate new getcwd.c.
33262         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
33263         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
33264         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
33265         that's all we need now.
33266
33267 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
33268
33269         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
33270         argp-parse.c depends on getopt internals, that means we should
33271         always use our getopt, to be on the safe side.
33272         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
33273         order not to spoil the result of an eventual previous invocation
33274         of gl_GETOPT_SUBSTITUTE.
33275
33276 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
33277
33278         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
33279         redefinition warnings. To avoid them, include the defines
33280         in `#if !defined __need_getopt ... #endif'. The only place
33281         where __getopt_argv_const is used is in definitions
33282         of getopt_long and getopt_long_only below, which are as well
33283         protected by `#ifndef __need_getopt'.
33284         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
33285         __need_getopt after including <stdio.h> and <unistd.h> These
33286         headers might have defined it.
33287
33288 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
33289
33290         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
33291
33292 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
33293
33294         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
33295         (futimens): New function, which uses futimes if available.
33296         (futimens, utimens): Support timespec==NULL, with same semantics
33297         as utime and utimens.
33298         * lib/utimens.h (futimens): New decl.
33299
33300 2004-11-23  Jim Meyering  <jim@meyering.net>
33301
33302         * lib/getopt_.h: Remove trailing blanks.
33303
33304 2004-11-23  Jim Meyering  <jim@meyering.net>
33305
33306         * lib/__fpending.c: Add comment.
33307
33308 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
33309
33310         * modules/canonicalize (Depends-on): Add xreadlink.
33311         Problem reported by James Youngman.
33312
33313 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
33314
33315         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
33316         New macros.
33317         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
33318         optopt): Use them instead of invoking ## directly; otherwise, the
33319         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
33320
33321 2004-11-19  Bruno Haible  <bruno@clisp.org>
33322
33323         * lib/strtok_r.c: Move comments from here...
33324         * lib/strtok_r.h: ... to here.
33325
33326 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
33327
33328         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
33329         implementations that mishandle size_t overflow.
33330
33331 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
33332
33333         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
33334         might fail.  Problem reported by Yoann Vandoorselaere.
33335         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
33336         implementations that mishandle size_t overflow.
33337
33338 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
33339
33340         * modules/canon-host (Depends-on): Add strdup.
33341
33342 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
33343
33344         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
33345
33346 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
33347
33348         * lib/canon-host.c: Include "strdup.h".
33349         (canon_host): Use getaddrinfo if available, so that IPv6 works.
33350         Use strdup instead of malloc/strcpy to duplicate strings.
33351
33352         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
33353         (human_space_before_unit): New constant.
33354         * lib/human.c (human_readable): Support it.
33355
33356         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
33357         (xgetcwd): Set errno correctly when failing.
33358         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
33359         the failure is actually due to a PATH_MAX problem.
33360
33361         Further getopt changes to make it more likely that glibc will
33362         buy the changes back.
33363         * lib/getopt.c (POSIXLY_CORRECT): New constant.
33364         (getopt): Use it, so to preserve glibc semantic
33365         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
33366         when compiling for libc.
33367         * lib/getopt_.h (__getopt_argv_const): Bring it back.
33368         (getopt_long, getopt_long_only): Use it.
33369
33370         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
33371         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
33372         (getopt): Argv is now char * const *, as per standard.
33373         (_getopt_internal_r, _getopt_internal): Argv is now char **,
33374         not char *__getopt_argv_const *.
33375         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
33376         _getopt_long_only_r): Likewise.
33377         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
33378         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
33379         _getopt_long_r, _getopt_long_only_r): Likewise.
33380         * lib/getopt_.h (__getopt_argv_const): Remove.
33381         (getopt): Argv is now char * const *, as per standard.
33382
33383         * lib/getdate.y (tORDINAL): New token.
33384         (day, relunit): Allow it for relative times.
33385         (relative_time_table): Use tORDINAL for ordinals.
33386
33387 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
33388
33389         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
33390         Document that "second" isn't allowed as an ordinal number.
33391
33392 2004-11-16  Jim Meyering  <jim@meyering.net>
33393
33394         * modules/closeout (Depends-on): Add fpending.
33395
33396 2004-11-15  Jim Meyering  <jim@meyering.net>
33397
33398         * lib/closeout.c: Include "__fpending.h" once again.
33399         Include <stdbool.h>.
33400         (close_stdout): Don't fail just because stdout was closed initially,
33401         since some programs don't write to stdout in the normal course of
33402         operation (other than --version and --help), and we don't want this
33403         function to make e.g. `touch file >&-' fail.
33404         But do fail if it was closed and someone has tried to write to it.
33405         E.g., `printf foo >&-' must fail.
33406
33407 2004-11-13  Jim Meyering  <jim@meyering.net>
33408
33409         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
33410
33411 2004-11-12  Simon Josefsson  <jas@extundo.com>
33412
33413         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
33414         small doc fix is still pending.
33415
33416 2004-11-11  Simon Josefsson  <jas@extundo.com>
33417
33418         * modules/strtok_r: New file.
33419
33420         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
33421         strtok_r.
33422
33423 2004-11-11  Simon Josefsson  <jas@extundo.com>
33424
33425         * m4/strtok_r.m4: New file.
33426
33427         * m4/getopt.m4: Replace opterr.
33428
33429 2004-11-11  Simon Josefsson  <jas@extundo.com>
33430
33431         * lib/strtok_r.h, strtok_r.c: New file.
33432
33433 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
33434
33435         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
33436         of replacing opterr, getopt, etc.  This should handle the
33437         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
33438
33439 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
33440
33441         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
33442         we can stop lying to compilers about the constness of argv when we
33443         are compiled outside glibc.
33444         (getopt, getopt_long, getopt_long_only): Use it.
33445         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
33446         _getopt_internal, getopt): Likewise.
33447         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
33448         _getopt_long_only_r): Likewise.
33449         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
33450         _getopt_long_r, _getopt_long_only_r): Likewise.
33451
33452         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
33453         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
33454         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
33455         the other external symbols.
33456         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
33457         declaration, since the above renaming now works around collisions.
33458
33459 2004-11-11  Jim Meyering  <jim@meyering.net>
33460
33461         * lib/linebreak.c: Remove trailing blanks.
33462         * lib/alloca_.h: Likewise.
33463         * lib/acosl.c: Likewise.
33464         * lib/euidaccess.c: Likewise.
33465         * lib/allocsa.h: Likewise.
33466
33467 2004-11-10  Simon Josefsson  <jas@extundo.com>
33468
33469         * m4/getaddrinfo.m4: New file.
33470
33471 2004-11-10  Simon Josefsson  <jas@extundo.com>
33472
33473         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
33474
33475 2004-11-10  Simon Josefsson  <jas@extundo.com>
33476
33477         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
33478         getaddrinfo.
33479
33480         * modules/getaddrinfo: New file.
33481
33482 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
33483
33484         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
33485
33486 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
33487
33488         * lib/mktime.c (SHR): New macro, which is a portable
33489         substitute for >> that should work even on Crays.
33490         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
33491         Problem reported by Mark D. Baushke in
33492         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
33493         * lib/getdate.y (SHR): Likewise.
33494         (tm_diff): Use it.
33495         * lib/strftime.c (SHR): Likewise.
33496         (tm_diff): Use it.
33497         * lib/quotearg.c (struct quoting_options): Use unsigned int for
33498         quote_these_too, so that right shifts are well defined.  All uses
33499         changed.
33500
33501 2004-11-10  Jim Meyering  <jim@meyering.net>
33502
33503         Ensure that no close failure goes unreported.
33504         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
33505         return early when it seems there's nothing to flush.
33506         Don't include __fpending.h.
33507
33508 2004-11-10  Jim Meyering  <jim@meyering.net>
33509
33510         * modules/closeout (Depends-on): Remove fpending.
33511
33512 2004-11-10  Jim Meyering  <jim@meyering.net>
33513
33514         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
33515
33516 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
33517
33518         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
33519         gl_FUNC_STRFTIME.
33520         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
33521         and AC_REQUIRE when possible, to avoid duplicate checks.
33522         Check for <wchar.h>.
33523
33524 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
33525
33526         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
33527
33528 2004-11-09  Bruno Haible  <bruno@clisp.org>
33529
33530         * m4/sockpfaf.m4: New file.
33531
33532 2004-11-05  Bruno Haible  <bruno@clisp.org>
33533
33534         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
33535         Reported by Mark D. Baushke <mdb@cvshome.org>.
33536
33537 2004-11-04  Bruno Haible  <bruno@clisp.org>
33538
33539         2004-09-11  Bruno Haible  <bruno@clisp.org>
33540                 * allocsa.valgrind: New file.
33541         2004-02-06  Bruno Haible  <bruno@clisp.org>
33542                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
33543                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
33544                 Reported by Christopher Seip <chris.seip@hp.com>.
33545
33546 2004-11-04  Bruno Haible  <bruno@clisp.org>
33547
33548         * modules/allocsa (Files): Add lib/allocsa.valgrind.
33549         (Makefile.am): Distribute it.
33550
33551 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
33552
33553         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
33554         with errno == ERANGE if the buffer is too small.
33555         Problem reported by Mark D. Baushke.
33556
33557 2004-11-03  Albert Chin  <china@thewrittenword.com>
33558             Paul Eggert  <eggert@cs.ucla.edu>
33559
33560         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
33561         equivalent, substitute $ac_type for equivalent type rather than
33562         blindly using uint32_t *always* which won't work if uint32_t is not
33563         available.  Define _UINT32_T to work around typedef of uint32_t if
33564         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
33565         2.5.1.
33566
33567 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
33568
33569         * m4/jm-macros.m4: Sync from coreutils.
33570         (gl_MACROS): Check for mbrlen, for pathchk.
33571         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
33572
33573 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
33574
33575         * lib/xreadlink.c (MAXSIZE): New macro.
33576         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
33577         size does not exceed MAXSIZE.  Avoid cast.
33578         As suggested by Mark D. Baushke in
33579         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
33580         if readlink fails with buffer size just under MAXSIZE, try again
33581         with MAXSIZE.
33582
33583 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
33584
33585         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
33586
33587 2004-11-02  Derek R. Price  <derek@ximbiot.com>
33588         and  Paul Eggert  <eggert@cs.ucla.edu>
33589
33590         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
33591         (get_date): Overparenthesize to avoid GCC warning.
33592
33593 2004-11-02  Bruno Haible  <bruno@clisp.org>
33594
33595         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
33596         returns void.
33597
33598 2004-11-02  Bruno Haible  <bruno@clisp.org>
33599
33600         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
33601         function returns void.
33602
33603 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
33604
33605         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
33606         fflush_unlocked, flockfile, funlockfile, funlockfile,
33607         fputs_unlocked, putc_unlocked.
33608
33609 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
33610
33611         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
33612         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
33613         already declared.
33614
33615 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
33616
33617         * modules/getdate (Files): Add doc/getdate.texi.
33618         (Depends-on): Add setenv, xalloc.
33619
33620 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
33621
33622         * lib/getdate.y: Add support for TZ="foo" within a date string.
33623         Fix some bugs near time_t boundaries.  Reject dates with
33624         out-of-range components, e.g., "Sept 31".
33625         Include <stdlib.h>, "setenv.h", "xalloc.h".
33626         (ISDIGIT_LOCALE): Remove; unused.
33627         Note that the TZ and time functions used here are not reentrant.
33628         (mktime_ok, get_tz): New functions.
33629         (TZBUFSIZE): New constant.
33630         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
33631         This requires that we sometimes generate our own TZ="XXX..." setting.
33632
33633 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
33634
33635         * doc/getdate.texi: New file, from coreutils with modifications for
33636         the new TZ parsing.
33637
33638 2004-10-27  Derek R. Price  <derek@ximbiot.com>
33639
33640         * lib/mktime.c (not_equal_tm): Remove redundant check.
33641
33642 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
33643
33644         * modules/regex (lib_SOURCES): Add regex.c.
33645         Reported by James Youngman in
33646         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
33647
33648 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
33649
33650         * lib/getdate.y: Use Bison 1.875 features, and some minor
33651         code cleanups.  This change does not affect semantics.
33652         Don't include <stdlib.h>; no longer needed.
33653         Don't include unlocked-io.h; only the "#if TEST" code uses
33654         stdio, and performance isn't crucial there.
33655         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
33656         Bison 1.875 features as described below.
33657         All uses of "PC." replaced by "pc->".
33658         (YYSTYPE): Add a forward declaration.
33659         (yylex, yyerror): Use full prototypes in forward decls.
33660         Use "%pure-parser" rather than obsolescent "%pure_parser".
33661         Use %parse-param and %lex-param instead of obsolescent
33662         YYPARSE_PARAM and YYLEX_PARAM.
33663         (meridian_table, month_and_day_table, time_units_table,
33664         relative_time_table, time_zone_table, military_table,
33665         lookup_zone, lookup_word, get_date):
33666         Use NULL instead of 0 where appropriate.
33667         (to_hour): Avoid abort (), to avoid a dependency on
33668         stdlib.h.
33669         (yyerror, yylex): Now accepts parser_control * arg.
33670         (main) [TEST]: Use '\0' rather than 0 for char.
33671
33672 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
33673
33674         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
33675
33676 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
33677
33678         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
33679         It's now the caller's responsibility to handle the case where
33680         !HAVE_GETPAGESIZE && !defined getpagesize.
33681
33682         * lib/mktime.c (leapyear): Arg is long int, not int.
33683
33684 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
33685
33686         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
33687
33688 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
33689
33690         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
33691         missing.  Problem reported by James Youngman.
33692
33693 2004-10-16  Simon Josefsson  <jas@extundo.com>
33694
33695         * gnulib-tool: Fix comments.  Fix parse problem.
33696         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
33697
33698 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
33699
33700         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
33701         implementation of getopt_long.  Problem reported by Alexander Taler in:
33702         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
33703
33704 2004-10-15  Bruno Haible  <bruno@clisp.org>
33705
33706         * gnulib-tool: Untabify. Initialize supplied_libname.
33707         (func_usage): More homogenous output.
33708         (func_modules_transitive_closure, func_modules_to_filelist,
33709         func_emit_lib_Makefile_am): New functions.
33710         (func_import): New function, extracted from big case statement. Use
33711         func_get_license, func_modules_transitive_closure,
33712         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
33713         opt_lgpl. Don't use test -a, as it's not portable.
33714         (func_create_testdir): Use func_modules_transitive_closure,
33715         func_modules_to_filelist, func_emit_lib_Makefile_am.
33716
33717 2004-10-15  Bruno Haible  <bruno@clisp.org>
33718
33719         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
33720
33721 2004-10-15  Bruno Haible  <bruno@clisp.org>
33722
33723         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
33724         the portions belonging to each module.
33725         Suggested by Derek Robert Price <derek@ximbiot.com>.
33726
33727 2004-10-12  Simon Josefsson  <jas@extundo.com>
33728
33729         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
33730         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
33731         to real functions.
33732
33733 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
33734
33735         * modules/vsnprintf: New file.
33736
33737 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
33738
33739         * m4/vsnprintf.m4: New file.
33740
33741 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
33742
33743         * lib/vsnprintf.h: New file.
33744         * lib/vsnprintf.c: New file.
33745
33746 2004-10-11  Bruno Haible  <bruno@clisp.org>
33747
33748         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
33749         vsnprintf.
33750
33751 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
33752
33753         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
33754
33755 2004-10-07  Bruno Haible  <bruno@clisp.org>
33756
33757         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
33758         fits into the provided buffer.
33759
33760 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
33761
33762         * lib/diacrit.c, diacrit.h: Add GPL notice.
33763
33764         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
33765         notice.
33766         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
33767         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
33768         This avoids a potential constant-folding bug.
33769
33770 2004-10-05  Bruno Haible  <bruno@clisp.org>
33771
33772         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
33773         for the declaration of strsep.
33774
33775 2004-10-05  Bruno Haible  <bruno@clisp.org>
33776
33777         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
33778
33779 2004-10-04  Simon Josefsson  <jas@extundo.com>
33780
33781         * modules/memmem: New file.
33782         * tests/test-memmem.c: New file.
33783         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
33784
33785 2004-10-04  Simon Josefsson  <jas@extundo.com>
33786
33787         * m4/memmem.m4: New file.
33788
33789 2004-10-04  Simon Josefsson  <jas@extundo.com>
33790
33791         * lib/memmem.h: New file.
33792         * lib/memmem.c: New file, taken from glibc.
33793
33794 2004-10-04  Simon Josefsson  <jas@extundo.com>
33795
33796         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
33797         '#ifdef USE_UNLOCKED_IO'.
33798
33799 2004-10-04  Simon Josefsson  <jas@extundo.com>
33800
33801         * config/srclist.txt: Add memmem from glibc.
33802
33803 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
33804
33805         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
33806
33807         * modules/argmatch, modules/argp, modules/closeout, modules/error,
33808         modules/exclude, modules/getdate, modules/getline,
33809         modules/getndelim2, modules/getpass, modules/getpass-gnu,
33810         modules/getusershell, modules/linebuffer, modules/md5,
33811         modules/mountlist, modules/posixtm, modules/readtokens,
33812         modules/readutmp, modules/regex, modules/sha1,
33813         modules/version-etc, modules/yesno:
33814         Remove dependency on unlocked-io.
33815
33816 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
33817
33818         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
33819
33820         * m4/unlocked-io.m4: Add copyright notice.
33821         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
33822
33823 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
33824
33825         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
33826         * lib/xmalloc.c (xmemdup): Likewise.
33827         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
33828         XFREE): Remove these long-obsolescent macros.
33829         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
33830         * lib/xstrdup.c: Remove.
33831
33832         * lib/regex.c (re_comp): Cast gettext return value to char *,
33833         Problem reported by Martin Neitzel via Mark D. Baushke.
33834
33835 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
33836
33837         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
33838         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
33839         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
33840         regex.c, sha1.c, version-etc.c, yesno.c:
33841         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
33842         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
33843         the includer's responsibility.
33844
33845         Sync from coreutils.
33846
33847         * lib/modechange.c (mode_compile): Don't decrement a pointer that
33848         points to the start of a string, as the C Standard says the
33849         resulting behavior is undefined.
33850
33851         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
33852         simple -> simple_backups, numbered_existing ->
33853         numbered_existing_backups, numbered -> numbered_backups
33854         to avoid shadowing problems.  All uses changed.
33855         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
33856         * lib/backupfile.c (check_extension, numbered_backup):
33857         Rename locals to avoid shadowing 'basename'.
33858         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
33859         once.
33860
33861         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
33862         * lib/.cvsignore: Add getopt.h.
33863
33864 2004-10-04  Bruno Haible  <bruno@clisp.org>
33865
33866         * modules/README: New file.
33867         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
33868         not a module.
33869
33870 2004-10-02  Jim Meyering  <jim@meyering.net>
33871
33872         * lib/dirfd.h, getpagesize.h: Add copyright notice.
33873
33874 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
33875
33876         * modules/strsep: New file.
33877
33878 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
33879
33880         * m4/strsep.m4: New file.
33881
33882 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
33883
33884         * lib/strsep.h: New file.
33885         * lib/strsep.c: New file.
33886
33887 2004-10-01  Simon Josefsson  <jas@extundo.com>
33888
33889         * lib/snprintf.c (snprintf): Handle size==0.
33890
33891 2004-10-01  Simon Josefsson  <jas@extundo.com>
33892             Bruno Haible  <bruno@clisp.org>
33893
33894         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
33895         (snprintf): Declare 'args'.
33896
33897 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
33898
33899         * lib/snprintf.c: Remove comments as to why each header is needed.
33900
33901 2004-10-01  Bruno Haible  <bruno@clisp.org>
33902
33903         * MODULES.html.sh: Add strsep.
33904
33905 2004-09-30  Simon Josefsson  <jas@extundo.com>
33906
33907         * modules/snprintf: New file.
33908
33909 2004-09-30  Simon Josefsson  <jas@extundo.com>
33910
33911         * m4/snprintf.m4: New file.
33912
33913 2004-09-30  Simon Josefsson  <jas@extundo.com>
33914
33915         * lib/snprintf.h, lib/snprintf.c: New files.
33916
33917 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
33918
33919         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
33920         (hol_entry_help): Never translate an empty string.
33921         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
33922         * lib/argp.h (OPTION_NO_TRANS): New option.
33923
33924 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
33925
33926         * modules/argp (Maintainer): Replace Simon Josefsson
33927         by Sergey Poznyakoff.
33928
33929 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
33930
33931         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
33932         changes merged back into glibc.
33933
33934 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
33935
33936         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
33937
33938 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
33939
33940         * lib/xvasprintf.c: Include xalloc.h.
33941         (xvasprintf): Use xalloc_die, not xmalloc_die.
33942
33943 2004-09-29  Bruno Haible  <bruno@clisp.org>
33944
33945         * modules/alloca-opt: New file, derived from modules/alloca.
33946         * modules/allocsa: Depend on alloca-opt instead of alloca.
33947         * modules/setenv: Likewise.
33948         * modules/vasnprintf: Likewise.
33949         * MODULES.html.sh: Add alloca-opt.
33950
33951 2004-09-28  Simon Josefsson  <jas@extundo.com>
33952
33953         * gnulib-tool: New parameter --lgpl, to asseert that modules are
33954         LGPL, and to replace license template from GPL to LGPL.
33955
33956 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
33957
33958         * modules/dummy: Change license to LGPL.
33959
33960 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
33961
33962         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
33963
33964 2004-09-24  Simon Josefsson  <jas@extundo.com>
33965
33966         * modules/minmax (License): Change from GPL to LGPL.
33967
33968 2004-09-23  Simon Josefsson  <jas@extundo.com>
33969
33970         * gnulib-tool (--import): Typo.
33971
33972 2004-09-23  Simon Josefsson  <jas@extundo.com>
33973
33974         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
33975
33976 2004-09-22  Bruno Haible  <bruno@clisp.org>
33977
33978         * modules/*: Add 'License' field.
33979         * gnulib-tool: Accept --extract-license option.
33980         (func_get_license): New function.
33981
33982 2004-09-21  Bruno Haible  <bruno@clisp.org>
33983
33984         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
33985         Reported by Simon Josefsson.
33986
33987 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
33988
33989         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
33990         gl_AC_TYPE_LONG_LONG.
33991
33992 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
33993
33994         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
33995
33996 2004-09-18  Simon Josefsson  <jas@extundo.com>
33997         and  Paul Eggert  <eggert@cs.ucla.edu>
33998
33999         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
34000         calls with autoreconf.  Define GL_LIB.
34001
34002 2004-09-14  Karl Berry  <karl@gnu.org>
34003
34004         * config/srclist.txt: unsync setenv.c, sigh.
34005
34006 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
34007
34008         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
34009         Problem reported by Bruno Haible in:
34010         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
34011
34012 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
34013
34014         * config/srclist.txt: Comment out argp-pvh.c.
34015
34016 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
34017
34018         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
34019         in case some system header has #define'd it.  Problem reported by
34020         Soeren D. Schulze in
34021         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
34022
34023 2004-09-09  Karl Berry  <karl@gnu.org>
34024
34025         * regex.[ch]: delete from the root.  These were supposed to be
34026                 synced with emacs cvs, but this has not happened for about
34027                 a year, and anyway nothing else uses emacs regex.[ch].
34028                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
34029                 lib/regex[.ch] is untouched.
34030
34031 2004-09-09  Bruno Haible  <bruno@clisp.org>
34032
34033         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
34034
34035 2004-09-09  Bruno Haible  <bruno@clisp.org>
34036
34037         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
34038         modifications.
34039         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
34040
34041 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
34042
34043         * modules/xvasprintf: New file.
34044         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
34045
34046 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
34047
34048         * lib/xvasprintf.h: New file.
34049         * lib/xvasprintf.c: New file.
34050         * lib/xasprintf.c: New file.
34051
34052 2004-09-08  Bruno Haible  <bruno@clisp.org>
34053
34054         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
34055
34056 2004-09-08  Bruno Haible  <bruno@clisp.org>
34057
34058         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
34059         length is > INT_MAX.
34060         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
34061         more.
34062
34063 2004-09-08  Bruno Haible  <bruno@clisp.org>
34064
34065         * lib/stdint_.h: New file, taken from GNU clisp.
34066
34067 2004-09-08  Bruno Haible  <bruno@clisp.org>
34068             Oskar Liljeblad  <oskar@osk.mine.nu>
34069
34070         * modules/stdint: New file.
34071         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
34072
34073 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
34074
34075         Import from coreutils.
34076         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
34077         strings on unbounded length.  alloca's performance benefits aren't
34078         that important here.
34079         (V_STRDUP): Remove.
34080         (parse_with_separator): New function, with most of the internals
34081         of the old parse_user_spec.  Allow user to omit both user and group,
34082         for compatibility with FreeBSD.
34083         Clone only the user name, not the entire spec.
34084         Do not set *uid, *gid unless entirely successful.
34085         Avoid memory leak in some failing cases.
34086         Fix regression for USER.GROUP reported by Dmitry V. Levin in
34087         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
34088         (parse_user_spec): Rewrite to use parse_with_separator.
34089
34090 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
34091
34092         * modules/userspec: Don't depend on alloca.
34093
34094 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
34095
34096         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
34097
34098 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
34099
34100         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
34101         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
34102         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
34103
34104 2004-08-16  Simon Josefsson  <jas@extundo.com>
34105
34106         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
34107         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
34108         Add --dry-run for --import.
34109         Let user provided command line parameters override configure.ac
34110         settings.
34111
34112 2004-08-12  Simon Josefsson  <jas@extundo.com>
34113
34114         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
34115         as discussed with Paul Eggert in threads rooted at
34116         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
34117         and
34118         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
34119         Before, the test was empty, and relied on ELIDE_CODE in source
34120         code.)
34121         (gl_PREREQ_GETOPT): New macro.
34122         (gl_GETOPT): Use them.
34123
34124 2004-08-12  Simon Josefsson  <jas@extundo.com>
34125
34126         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
34127         * lib/getopt_.h: Renamed from getopt.h.
34128
34129 2004-08-12  Simon Josefsson  <jas@extundo.com>
34130
34131         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
34132         Change default library name from libfoo to libgnu.
34133         Now, if you have a configure.ac that says:
34134                 gl_SOURCE_BASE(gl)
34135                 gl_M4_BASE(gl/m4)
34136                 gl_MODULES(error getopt etcetera)
34137                 gl_INIT
34138         you can import all you need by running:
34139                 ../gnulib/gnulib-tool --import
34140
34141         * modules/getopt (Files): Rename getopt.h to getopt_.h.
34142         (Makefile.am): Rewrite, use logic from argz.
34143         (Include): Use <getopt.h> instead of "getopt.h".
34144
34145 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
34146
34147         * modules/argp (Files): Add m4/unlocked-io.m4.
34148         (Depends-on): Add extensions.
34149
34150 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
34151
34152         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
34153         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
34154         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
34155         Check for program_invocation_name, program_invocation_short_name,
34156         flockfile, funlockfile, features.h, _getopt_long_only_r.
34157
34158 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
34159
34160         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
34161         its complicated substitute.
34162         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
34163         and program_invocation_name.
34164         (__argp_basename) [!_LIBC]: Remove; the only use was
34165         replaced by its body.
34166         (__argp_short_program_name): Change condition from
34167         !defined __argp_short_program_name to
34168         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
34169         to match argp-namefrob.h.
34170         (__argp_failure): Don't assume strerror_r returns char *.
34171         * lib/argp-parse.c (N_): Define unconditionally.
34172         (argp_default_options): Fill out initializers with 0 to avoid
34173         gcc warnings.
34174
34175 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
34176
34177         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
34178         getopt1.c.
34179
34180 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
34181
34182         Merge from coreutils.
34183
34184         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
34185
34186         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
34187         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
34188
34189 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
34190
34191         Merge from coreutils.
34192
34193         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
34194         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
34195         for Reliant Unix 5.43.
34196
34197         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
34198         (union fooround): Use uintmax_t, not long int.
34199         The rest is a merge from libc:
34200         [defined _LIBC]: Include <shlib-compat.h>.
34201         (_obstack) [defined _LIBC]: Remove after 2.3.4.
34202
34203         * lib/settime.c (settime): Recode to avoid warning with
34204         Sun Forte C 6U2.
34205
34206         * lib/strverscmp.c: Convert to UTF-8.
34207
34208 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
34209
34210         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
34211         m4/uintmax_t.m4.
34212
34213 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
34214
34215         * modules/xalloc-die: New file.
34216         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
34217
34218         * modules/md5 (Files): Add m4/uint32_t.m4.
34219         * modules/sha1: Renamed from modules/sha.
34220         (Files):
34221         Rename lib/sha.h to lib/sha1.h.
34222         Rename lib/sha.c to lib/sha1.c.
34223         Rename m4/sha.m4 to m4/sha1.m4.
34224         (lib_SOURCES): Likewise.
34225         (configure.ac): Rename gl_SHA to gl_SHA1.
34226         (Include): sha.h -> sha1.h.
34227
34228 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
34229
34230         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
34231         * m4/sha1.m4: Renamed from sha.m4.
34232         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
34233
34234 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
34235
34236         * lib/obstack.h (obstack_empty_p):
34237         Don't assume that chunk->contents is suitably aligned.
34238         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
34239         Likewise. Problem reported by Benno in
34240         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
34241
34242         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
34243         readable.  This could be improved further but it'd take some work.
34244
34245 2004-08-08  Simon Josefsson  <jas@extundo.com>
34246
34247         * modules/xgethostname (Depends-on): Remove exit and error (not
34248         used).
34249
34250         * modules/getpass-gnu: Add getpass.h.
34251         (Depends-on): Add stdbool.
34252         * modules/getpass: Add getpass.h.
34253
34254 2004-08-08  Simon Josefsson  <jas@extundo.com>
34255
34256         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
34257         Check getpass declaration.
34258
34259 2004-08-08  Simon Josefsson  <jas@extundo.com>
34260
34261         * lib/xgethostname.c: Don't include error.h (not used).
34262
34263         * lib/getpass.h: Add.
34264         * lib/getpass.c: Include getpass.h first.
34265
34266 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
34267
34268         * lib/xalloc-die.c: New file.
34269         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
34270         All uses removed.
34271         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
34272         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
34273         xalloc-die.c.
34274         (_, N_, xalloc_die): Move to xalloc-die.c.
34275         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
34276         so that we needn't mess with xalloc_msg_memory_exhausted.
34277
34278         * lib/sha1.h: Renamed from sha.h.
34279         (SHA1_H): Renamed from _SHA_H.
34280         (sha1_ctx): Renamed from sha_ctx.
34281         (sha1_init_ctx): Renamed from sha_init_ctx.
34282         (sha1_process_block): Renamed from sha_process_block.
34283         (sha1_process_bytes): Renamed from sha_process_bytes.
34284         (sha1_finish_ctx): Renamed from sha_finish_ctx.
34285         (sha1_read_ctx): Renamed from sha_read_ctx.
34286         (sha1_stream): Renamed from sha_stream.
34287         (sha1_buffer): Renamed from sha_buffer.
34288         * lib/sha1.c: Likewise; renamed from sha.c.
34289         Do not include <sys/types.h>.
34290         Include <stddef.h> rather than <stdlib.h>.
34291
34292 2004-08-08  Bruno Haible  <bruno@clisp.org>
34293
34294         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
34295         FILESYSTEM_PREFIX_LEN.
34296         * lib/progreloc.c: Likewise.
34297         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
34298
34299 2004-08-06  Simon Josefsson  <jas@extundo.com>
34300
34301         * modules/progname (Depends-on): Don't depend on stdbool.
34302
34303 2004-08-06  Simon Josefsson  <jas@extundo.com>
34304
34305         * modules/getsubopt: New file.
34306         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
34307         getsubopt.
34308
34309 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
34310
34311         More merge from coreutils.
34312
34313         * m4/utimens.m4, m4/utimecmp.m4: New files.
34314         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
34315         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
34316         prereq.m4, sha.m4: Import changes from coreutils.
34317
34318 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
34319
34320         More merge from coreutils.
34321         * modules/raise, modules/readtokens0, modules/utimens:
34322         * modules/utimecmp, module/xnanosleep: New files.
34323         * modules/strftime: Add lib/strftime.h.
34324         Change include from <time.h> to "strftime.h".
34325         * modules/yesno: Add lib/yesno.h.
34326         * modules/backupfile: Remove lib/addext.c.
34327         * modules/euidaccess: Add stat-macros.h.
34328         * modules/canonicalize, modules/euidaccess,
34329         modules/filemode, modules/lchown, modules/makepath,
34330         modules/rmdir, modules/stat: Likewise.
34331
34332 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
34333
34334         Merge from tar.
34335         * lib/argp-help.c (make_hol, hol_append): Don't assume that
34336         SIZE_MAX is a valid preprocessor constant.
34337         (__argp_basename): Change from "#ifndef _LIBC"
34338         to "#ifndef __argp_short_program_name", so that
34339         we don't compile these functions for tar.
34340
34341         More merges from coreutils.
34342         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
34343         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
34344         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
34345         * lib/addext.c: Remove; no longer needed.
34346         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
34347         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
34348         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
34349         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
34350         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
34351         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
34352         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
34353         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
34354         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
34355         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
34356         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
34357         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
34358         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
34359         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
34360         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
34361         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
34362         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
34363         Import changes from coreutils.
34364
34365 2004-08-05  Simon Josefsson  <jas@extundo.com>
34366
34367         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
34368
34369 2004-08-05  Simon Josefsson  <jas@extundo.com>
34370
34371         * m4/getsubopt.m4: New file.
34372
34373 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
34374
34375         Merge from coreutils.
34376
34377         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
34378         * m4/getcwd-path-max.m4: New files.
34379
34380         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
34381         FILESYSTEM_PREFIX_LEN ->
34382         FILE_SYSTEM_PREFIX_LEN.
34383         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
34384         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
34385         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
34386         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
34387
34388         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
34389         prerequisite modules now handle the DOS stuff.
34390         Don't check for unistd.h.
34391
34392 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
34393
34394         Merge from coreutils.
34395
34396         * lib/.gdb-history: Remove; this doesn't belong here.
34397
34398         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
34399         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
34400         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
34401         * lib/getcwd.c: New files.
34402
34403         * lib/dirname.h: Include <stdbool.h>.
34404         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
34405         for consistency with POSIX terminology.  All uses changed.
34406         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
34407         (strip_trailing_slashes): Use bool for booleans.
34408         * lib/stripslash.c (strip_trailing_slashes): Likewise.
34409
34410         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
34411         sometimes returns a positive errno value even when it succeeds.
34412         (print_errno_message) [!LIBC]: Fall back on strerror if
34413         __strerror_r fails.
34414
34415         * lib/path-concat.c (mempcpy): Don't define if a system header defines
34416         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
34417         (longest_relative_suffix): New function.
34418         (path_concat): Use it.  Assume first argument is not NULL.
34419         Port to DOS.  Omit redundant separators.
34420         Report an error instead of returning NULL.
34421         Use mempcpy instead of memcpy.
34422         (xpath_concat): Remove: not declared or used.
34423
34424         * lib/same.h: Include <stdbool.h>
34425         (same_name): Return bool, not int.
34426         * lib/same.c (same_name): Likewise.
34427         (errno): Don't declare; we assume C89 or better now.
34428
34429         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
34430         if not already defined.
34431
34432         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
34433         * lib/dup-safer.c (errno): Likewise.
34434
34435 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
34436
34437         Merge from coreutils.
34438         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
34439         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
34440         * modules/path-concat: Don't depend on strdup.
34441
34442 2004-08-03  Simon Josefsson  <jas@extundo.com>
34443
34444         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
34445         * lib/progname.h: Don't include stdbool.h.
34446
34447 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
34448
34449         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
34450         * MODULES.html.sh (func_all_modules): Remove fatal.
34451
34452 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
34453
34454         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
34455
34456 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
34457
34458         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
34459         working.
34460
34461 2004-08-02  Simon Josefsson  <jas@extundo.com>
34462
34463         * lib/getsubopt.h: New file, with comments from Bruno Haible.
34464         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
34465         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
34466
34467 2004-08-01  Simon Josefsson  <jas@extundo.com>
34468
34469         * lib/xgetdomainname.c: Include stdlib.h, for free().
34470
34471 2004-07-19  Bruno Haible  <bruno@clisp.org>
34472
34473         * MODULES.html.sh (func_all_modules): Add dummy.
34474
34475 2004-07-16  Simon Josefsson  <jas@extundo.com>
34476
34477         * modules/dummy: New file.
34478
34479 2004-07-16  Simon Josefsson  <jas@extundo.com>
34480
34481         * lib/dummy.c: New file.
34482
34483 2004-07-16  Bruno Haible  <bruno@clisp.org>
34484
34485         * lib/backupfile.h: Add extern "C" for C++.
34486         * lib/closeout.h: Likewise.
34487         * lib/copy-file.h: Likewise.
34488         * lib/findprog.h: Likewise.
34489         * lib/full-write.h: Likewise.
34490         * lib/pathname.h: Likewise.
34491         * lib/progname.h: Likewise.
34492         * lib/stpcpy.h: Likewise.
34493         * lib/stpncpy.h: Likewise.
34494         * lib/strcase.h: Likewise.
34495         * lib/strstr.h: Likewise.
34496         * lib/xalloc.h: Likewise.
34497
34498         * lib/mbswidth.h: Add extern "C" for C++.
34499         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
34500
34501 2004-07-13  Robert Millan  <robertmh@gnu.org>
34502
34503         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
34504
34505 2004-07-09  Simon Josefsson  <jas@extundo.com>
34506
34507         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
34508         failed without this.)
34509
34510 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
34511
34512         * modules/chown (Files): Add lib/fchown-stub.c, since
34513         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
34514
34515 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
34516
34517         * lib/fchown-stub.c: New file.
34518
34519 2004-06-24  Jim Meyering  <jim@meyering.net>
34520
34521         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
34522
34523 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
34524
34525         * modules/argz: Omit "#include".
34526
34527         * MODULES.html.sh (func_all_modules): Add calloc, to match
34528         2004-06-01 addition of calloc module.
34529
34530 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
34531
34532         * m4/argz.m4: New file, which is autoupdated from libtool.
34533
34534 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
34535
34536         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
34537         libtool.
34538
34539 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
34540
34541         * config/srclist-update: Don't insist on "USA." before the
34542         close-comment, as libtool omits the period and puts the */ on a
34543         separate line.
34544         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
34545         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
34546
34547 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
34548
34549         * modules/argz: New file.
34550         * MODULES.html.sh (func_all_modules): Add argz.
34551
34552 2004-06-12  Jim Meyering  <jim@meyering.net>
34553         and  Paul Eggert  <eggert@cs.ucla.edu>
34554
34555         * modules/hash (Files): Add lib/xalloc.h.
34556         * modules/pipe (Depends-on): Add wait-process.
34557         * modules/stat (Depends-on): Add xalloc.
34558         * modules/userspec (Files): Add lib/userspec.h.
34559         * modules/xstrto
34560
34561         Upgrade from gettext-0.13.
34562         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
34563         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
34564         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
34565
34566 2004-06-10  Jim Meyering  <jim@meyering.net>
34567
34568         * lib/calloc.c: New file.
34569
34570 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
34571
34572         * lib/getdate.y (yylex): Allow space between sign and number.
34573         Problem reported by Dan Jacobson.
34574
34575 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
34576
34577         Merge from coreutils CVS.
34578
34579         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
34580         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
34581         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
34582         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
34583         xstrtol.m4: Fix copyright date and/or serial number.
34584
34585         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
34586         See if we need an fchown replacement.
34587         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
34588         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
34589         and use the replacement function if we detect either defect.
34590
34591         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
34592         gl_UTIMECMP.
34593
34594 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
34595         and  Jim Meyering  <jim@meyering.net>
34596
34597         Merge from coreutils CVS.
34598
34599         * lib/stat-macros.h: New file, with contents from file-type.h
34600         and coreutils' system.h.
34601         * lib/file-type.c: Include "stat-macros.h".
34602         * lib/file-type.h (file_type): Move all macro definitions to new file,
34603         stat-macros.h.
34604
34605         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
34606         Wrap old code with this conditional.
34607         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
34608         function that does not dereference symlinks.
34609         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
34610
34611         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
34612         dependency problems.
34613         (xreadlink): Accept new arg SIZE, for efficiency.
34614         All decls and uses changed.
34615         * lib/xreadlink.h: Include <stddef.h>, for size_t.
34616
34617         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
34618         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
34619
34620         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
34621         sysexits.h.
34622
34623 2004-06-01  Jim Meyering  <jim@meyering.net>
34624
34625         * m4/calloc.m4: New file.
34626
34627 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
34628
34629         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
34630         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
34631         Also, fix a typo in a diagnostic.
34632
34633 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
34634
34635         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
34636         or AC_FUNC_REALLOC.
34637
34638 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
34639
34640         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
34641         macros to be defined.
34642         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
34643         the allocator returns NULL because the requested size is zero.
34644
34645 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
34646
34647         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
34648         var.  Add comment explaining why libc still defines it.  This
34649         merges the following patch from glibc:
34650         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
34651
34652 2004-05-20  Andreas Schwab  <schwab@suse.de>
34653
34654         * m4/free.m4: Replace free if it not known to work, not the other
34655         way round.
34656
34657 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
34658
34659         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
34660         present in glibc since revision 1.1 of this file.
34661         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
34662         obstack_alignment_mask, obstack_alloc, obstack_base,
34663         obstack_blank, obstack_blank_fast, obstack_chunk_size,
34664         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
34665         obstack_grow0, obstack_init, obstack_int_grow,
34666         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
34667         obstack_next_free, obstack_object_size, obstack_ptr_grow,
34668         obstack_ptr_grow_fast, obstack_room): Remove declarations of
34669         nonexistent functions.
34670
34671 2004-05-18  Karl Berry  <karl@gnu.org>
34672
34673         * config/srclist.txt: break link for vasnprintf.c.
34674
34675 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
34676
34677         Port obstack to the AS/400, where pointers are 16 bytes wide and
34678         you cannot cast an integer to a valid pointer.  This patch is
34679         currently waiting to be integrated into glibc; see
34680         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
34681
34682         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
34683         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
34684         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
34685         (struct obstack): temp member is now a union of a pointer and
34686         an integer, instead of an integer.  All integer uses changed.
34687         This does not affect the physical layout of struct obstack,
34688         except on hosts (like the AS/400) where the size or alignment of
34689         void * is greater than that of ptrdiff_t.
34690         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
34691         __STDC__)]: Store temporary in pointer member of union, not
34692         integer member.
34693         * lib/obstack.c: Include <stddef.h>, for offsetof.
34694         (struct fooalign): Remove; it doesn't need a name.
34695         (union fooround): Change double to long double, and add void *.
34696         (DEFAULT_ALIGNMENT): Use offsetof to compute.
34697         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
34698         not a macro.  Hence the values are always int; so remove all
34699         casts-to-int in uses.
34700
34701 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
34702
34703         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
34704         we can get this patch merged into glibc.
34705
34706 2004-05-17  Derek R. Price  <derek@ximbiot.com>
34707             Paul Eggert  <eggert@cs.ucla.edu>
34708
34709         * m4/argp: Depend on alloca.
34710
34711 2004-05-17  Derek R. Price  <derek@ximbiot.com>
34712             Paul Eggert  <eggert@cs.ucla.edu>
34713
34714         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
34715         freecoding.
34716
34717 2004-05-17  Bruno Haible  <bruno@clisp.org>
34718
34719         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
34720         precision that consists of a '.' followed by an empty digit string.
34721         Patch by Tor Lillqvist <tml@iki.fi>.
34722
34723 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
34724
34725         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
34726         for backward compatibility with older code.  We need our own
34727         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
34728         it under some other name, and our alloca.h will define it.
34729
34730 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
34731             Derek Price  <derek@ximbiot.com>
34732
34733         * lib/alloca.c: Include <alloca.h>, to get our interface.
34734         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
34735         include <alloca.h> first.  Use C89 prototype for alloca; this
34736         requires including <stddef.h> for size_t.  Use extern "C" if C++.
34737         Use #elif for simplicity, since we can assume C89 now.
34738         Don't try to source the system alloca.h since it will not be found
34739         and to prevent recursively including its replacement.
34740         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
34741         * lib/regex.c: Likewise.
34742
34743 2004-05-16  Derek Price  <derek@ximbiot.com>
34744             Paul Eggert  <eggert@cs.ucla.edu>
34745
34746         getline cleanup.  This changes the getndelim2 API: both order of
34747         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
34748         no delimiter).
34749
34750         * lib/getline.c: Don't include stddef.h or stdio.h, since our
34751         interface does that.
34752         (getline): Always use getdelim, so that we don't have two
34753         copies of this code.
34754         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
34755         if available.
34756         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
34757         (GETNDELIM2_MAXIMUM): New macro.
34758         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
34759         instead of the old practice of delim2==0.  All callers changed.
34760         Return -1 on overflow, instead of returning junk.
34761         Do not set *linesize unless allocation succeeds.
34762         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
34763         that we include sys/types.h.
34764         * lib/getnline.h: Likewise.
34765         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
34766         (getndelim2): Reorder arguments.
34767         * lib/getnline.c (getnline, getndelim):
34768         Don't discard the NMAX argument.
34769         (getnline): Invoke getndelim, to avoid code duplication.
34770         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
34771         of (size_t) -1 by callers of the getnline family.
34772
34773 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
34774
34775         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
34776         Check for gettimeofday.
34777         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
34778         Check for settimeofday, stime.
34779
34780 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
34781
34782         * lib/nanosleep.c (suspended): Change its type from int to
34783         sig_atomic_t volatile.
34784         (first_call): Make it private to rpl_nanosleep, and have it
34785         be zero initially as that's a bit faster.
34786         (my_usleep): Round up fractional times instead of truncating them,
34787         as this is the usual meaning for 'sleep'.
34788
34789         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
34790         doesn't work.
34791         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
34792         (ENOSYS): Define if not defined.
34793         (settime): Fall back on stime if it exists and settimeofday fails.
34794         But don't bother with fallbacks if a method fails with errno == EPERM.
34795
34796 2004-05-11  Jim Meyering  <jim@meyering.net>
34797
34798         Prior to this change, the save_cwd caller required read access to the
34799         current directory on most systems (ones with the fchdir function).
34800
34801         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
34802         fails, try write-only, and finally, resort to using xgetcwd.
34803
34804 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
34805
34806         * lib/obstack.c, obstack.h: Import changes from libc.
34807
34808 2004-04-28  Bruno Haible  <bruno@clisp.org>
34809
34810         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
34811         also implicitly appends .exe to executables.
34812         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
34813         accepts Windows pathnames.
34814         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
34815         Treat Cygwin like Windows, since it now accepts Windows pathnames.
34816         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
34817         Treat Cygwin like Windows, since it now accepts Windows pathnames.
34818         Reported by Derek Robert Price <derek@ximbiot.com>.
34819
34820 2004-04-21  Karl Berry  <karl@gnu.org>
34821
34822         * config/srclist.txt (localcharset.c): break sync.
34823
34824 2004-04-20  Paul Eggert  <eggert@twinsun.com>
34825
34826         * m4/host-os.m4: Add a copyright notice.
34827
34828 2004-04-20  Jim Meyering  <jim@meyering.net>
34829
34830         Change UTILS_ to gl_ in AC_DEFINE'd names.
34831         Change utils_- and jm_-prefixed variables, too.
34832         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
34833         UTILS_FUNC_MKDIR_TRAILING_SLASH.
34834         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
34835
34836         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
34837         Don't emit trailing blanks.
34838         Also rename jm_-prefixed variables to have gl_ prefix.
34839
34840         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
34841         Also rename jm_-prefixed variables to have gl_ prefix.
34842
34843         * m4/jm-macros.m4: Reflect the renamings.
34844         * m4/prereq.m4: Likewise.
34845
34846 2004-04-20  Jim Meyering  <jim@meyering.net>
34847
34848         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
34849         memory.
34850
34851 2004-04-20  Jim Meyering  <jim@meyering.net>
34852             Bruno Haible  <bruno@clisp.org>
34853
34854         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
34855         memory when realloc fails.
34856
34857 2004-04-19  Jim Meyering  <jim@meyering.net>
34858
34859         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
34860         now that readutmp.c may call `free (0)'.
34861
34862 2004-04-19  Bruno Haible  <bruno@clisp.org>
34863
34864         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
34865         * m4/inttypes_h.m4: Likewise.
34866         * m4/stdint_h.m4: Likewise.
34867         * m4/intmax_t.m4: Likewise.
34868         * m4/uintmax_t.m4: Likewise.
34869
34870 2004-04-18  Jim Meyering  <jim@meyering.net>
34871
34872         * m4/prereq.m4: Don't forbid jm_ prefix.
34873
34874         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
34875         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
34876         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
34877         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
34878         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
34879         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
34880         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
34881         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
34882         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
34883         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
34884         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
34885         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
34886         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
34887         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
34888         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
34889         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
34890         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
34891         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
34892         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
34893
34894 2004-04-18  Jim Meyering  <jim@meyering.net>
34895
34896         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
34897         failure, don't leak memory and do call END_UTMP_ENT.
34898
34899 2004-04-16  Jim Meyering  <jim@meyering.net>
34900
34901         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
34902         coreutils' stat program.
34903         (gl_PREREQ): Don't require jm_PREREQ_STAT.
34904
34905 2004-04-11  Paul Eggert  <eggert@twinsun.com>
34906
34907         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
34908         C89.
34909         (CHAR_BIT): Remove, since we assume C89.
34910         Include <stdint.h> if available, as per current Autoconf CVS advice.
34911
34912 2004-03-31  Jim Meyering  <jim@meyering.net>
34913
34914         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
34915         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
34916         * m4/xalloc.m4: Likewise.
34917
34918 2004-03-30  Paul Eggert  <eggert@twinsun.com>
34919
34920         Merge from coreutils.
34921
34922         * m4/inttostr.m4: New file.
34923         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
34924         Require AM_STDBOOL_H and gl_TIMESPEC instead.
34925         Require gl_CLOCK_TIME.
34926         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
34927
34928 2004-03-30  Paul Eggert  <eggert@twinsun.com>
34929
34930         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
34931         not bool, to be more consistent with Unix conventions.
34932         Suggested by Bruno Haible.
34933
34934         Merge from coreutils.
34935
34936         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
34937         * lib/umaxtostr.c: New files.
34938
34939         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
34940         the usual <time.h> dance.
34941         (get_date): Change signature to support fractional time stamps.
34942         All callers changed.
34943         * lib/getdate.y: Include "getdate.h" first, as we can now
34944         assume C89 and don't need to worry about 'const'.
34945         Similarly, include "unlocked-io.h" near start, not in middle.
34946         Include <limits.h>.
34947         (textint.value): Use long int rather than int.
34948         (textint.digits): Use size_t rather than int.
34949         (BILLION, LOG10_BILLION): New constants.
34950         (parser_control): New member rel_ns.  Members day_ordinal,
34951         time_zone, month, day, hour, minutes, rel_year, rel_month,
34952         rel_day, rel_hour, rel_minutes, rel_seconds
34953         are now long int, not int.  Member seconds is now struct timespec,
34954         not int.  New member timespec_seen.  Members dates_seen, days_seen,
34955         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
34956         not int.
34957         (%union.intval): Now long int, not int.
34958         New member timespec.
34959         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
34960         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
34961         (spec): Now is a timespec or an item list.
34962         (timespec, items): New nonterminals.
34963         (time, rel, relunit, number, get_date):
34964         Add support for fractional seconds.
34965         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
34966         (gmtime, localtime, mktime): Remove decls; not needed with C89.
34967         (to_hour): First arg is now long int, not int.
34968         (to_year): Returns long int, not int.
34969         Don't treat year -70 like 70.
34970         (tm_diff): Returns long int, not int.
34971         (lookup_word): Use bool instead of int when appropriate.
34972         (yylex): Use size_t for count, not int.
34973         Detect overflow when parsing large integer constants.
34974         Add support for fractions.
34975         (get_date): Make pointers 'const' if possible.
34976         Use more-portable code to detect integer overflow.
34977         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
34978         Don't use ctime; it's not reliable if the year has >4 digits.
34979
34980         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
34981         This is for compatibility with BSD.
34982
34983         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
34984         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
34985         From coreutils' system.h.
34986
34987         * lib/userspec.c: Don't include "posixver.h".
34988         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
34989         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
34990         compatible extension.  Simplify code by removing a boolean int
34991         that was always nonzero if a string was nonnull.
34992
34993 2004-03-30  Jim Meyering  <jim@meyering.net>
34994
34995         Merge from coreutils.
34996
34997         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
34998         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
34999         on some systems one must include <grp.h> before it.
35000         Reported by Christian Krackowizer.
35001
35002 2004-03-30  Jim Meyering  <jim@meyering.net>
35003
35004         Merge from coreutils.
35005
35006         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
35007
35008         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
35009         an empty input stream.
35010
35011         * lib/readtokens.c: Include <stdbool.h>.
35012         (readtoken): Use `size_t' rather than int/long.
35013         All callers adjusted.
35014         Use `bool' rather than `int' where appropriate.
35015         Use memset rather than an explicit loop.
35016         Use x2nrealloc rather than xrealloc.
35017         Allow the use of `\0' as a delimiter.
35018         (readtokens): Likewise.
35019         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
35020
35021 2004-03-30  Jim Meyering  <jim@meyering.net>
35022
35023         * m4/realloc.m4: Remove file, since now it does no more than
35024         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
35025         the `configure.ac' section of module/realloc.
35026         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
35027
35028 2004-03-30  Bruno Haible  <bruno@clisp.org>
35029
35030         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
35031         nonnull.
35032
35033 2004-03-29  Paul Eggert  <eggert@twinsun.com>
35034
35035         Merge changes to getloadavg.c from coreutils and Emacs.
35036
35037         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
35038         Define to an expression, not to the empty string.
35039         Include cloexec.h and xalloc.h.
35040         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
35041         Use set_cloexec_flag rather than rolling our own.
35042         * lib/cloexec.c, lib/cloexec.h: New files.
35043
35044 2004-03-29  Paul Eggert  <eggert@twinsun.com>
35045
35046         * m4/cloexec.m4: New file.
35047
35048 2004-03-18  Paul Eggert  <eggert@twinsun.com>
35049
35050         * lib/getopt.h: Sync with libc CVS.
35051
35052 2004-03-18  Paul Eggert  <eggert@twinsun.com>
35053             Bruno Haible  <bruno@clisp.org>
35054
35055         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
35056         mbswidth.
35057
35058 2004-03-18  Paul Eggert  <eggert@twinsun.com>
35059             Bruno Haible  <bruno@clisp.org>
35060
35061         * lib/mbswidth.h: Include <wchar.h> only if
35062         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
35063         <wchar.h>.
35064         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
35065
35066 2004-03-09  Paul Eggert  <eggert@twinsun.com>
35067
35068         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
35069         Sync with libc CVS.
35070         * lib/getopt_int.h: New file, also synced from libc.
35071
35072 2004-03-09  Paul Eggert  <eggert@twinsun.com>
35073
35074         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
35075         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
35076         Bring back getopt.c, getopt.h, getopt1.c.
35077
35078 2004-03-07  Paul Eggert  <eggert@twinsun.com>
35079
35080         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
35081         All uses changed.  Check for sa_sigaction member; this fixes
35082         a bug first reported by Jason Andrade in
35083         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
35084
35085 2004-03-07  Paul Eggert  <eggert@twinsun.com>
35086
35087         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
35088         '#if' expressions.  Unlike the code it replaces, it does not
35089         depend on (defined _SC_PAGESIZE).  However, it does depend on
35090         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
35091         first reported by Jason Andrade in
35092         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
35093
35094 2004-02-25  Simon Josefsson  <jas@extundo.com>
35095
35096         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
35097
35098 2004-02-25  Simon Josefsson  <jas@extundo.com>
35099
35100         * lib/strdup.h: New file.
35101         * lib/strdup.c: Include it.
35102         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
35103         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
35104
35105 2004-02-23  Karl Berry  <karl@gnu.org>
35106
35107         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
35108         (from fencepost.gnu.org:/gd/gnuorg).
35109
35110 2004-02-23  Karl Berry  <karl@gnu.org>
35111
35112         * config/srclistvars.sh (GNUORG) [karl]: redefine.
35113         * config/srclist.txt: add maintain/standards documents.
35114
35115 2004-02-18  Bruno Haible  <bruno@clisp.org>
35116
35117         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
35118         Reported by Derek Robert Price <derek@ximbiot.com>.
35119
35120 2004-02-16  Karl Berry  <karl@gnu.org>
35121
35122         * config/mkinstalldirs, install-sh: update from automake.
35123
35124 2004-02-06  Karl Berry  <karl@gnu.org>
35125
35126         * m4/po.m4: update from gettext 0.14.1.
35127
35128 2004-02-06  Karl Berry  <karl@gnu.org>
35129
35130         * lib/config.charset: update from gettext 0.14.1.
35131
35132 2004-02-05  Paul Eggert  <eggert@twinsun.com>
35133
35134         Add comments and code, prompted by suggestions from Bruno Haible
35135         for sh-quote.
35136         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
35137         describing the enum quoting_style values.
35138         * lib/quotearg.c (quotearg_alloc): New function.
35139         (quotearg_buffer_restyled): Treat lone { and } as special.
35140         Treat = as special.  Work around bug with older shells
35141         that "see" a '\' that is really the 2nd byte of a multibyte char.
35142         Quote empty string with shell_quoting_style.
35143
35144 2004-02-03  Bruno Haible  <bruno@clisp.org>
35145
35146         * m4/pipe.m4: New file, from GNU gettext.
35147
35148 2004-02-03  Bruno Haible  <bruno@clisp.org>
35149
35150         * lib/pipe.h: New file, from GNU gettext.
35151         * lib/pipe.c: New file, from GNU gettext.
35152
35153 2004-01-27  Bruno Haible  <bruno@clisp.org>
35154
35155         * m4/execute.m4: New file, from GNU gettext.
35156
35157 2004-01-27  Bruno Haible  <bruno@clisp.org>
35158
35159         * lib/execute.h: New file, from GNU gettext.
35160         * lib/execute.c: New file, from GNU gettext.
35161         * lib/w32spawn.h: New file, from GNU gettext.
35162
35163 2004-01-24  Paul Eggert  <eggert@twinsun.com>
35164
35165         Merge from diffutils.
35166
35167         * lib/file-type.c (file_type): Add typed memory objects.
35168         * lib/file-type.h (S_TYPEISTMO): New macro.
35169
35170         * lib/c-stack.h (c_stack_action): Remove argv argument.
35171         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
35172         (die): Don't calculate message unless segv_action returns.
35173         (get_stack_location, min_address_from_argv, max_address_from_argv,
35174         volatile stack_base, volatile_stack_size): Remove.
35175         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
35176         that every segmentation violation is a stack overflow.  (Ouch!)
35177         See Debian bug 136249 (still outstanding) for more info about why
35178         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
35179
35180 2004-01-24  Paul Eggert  <eggert@twinsun.com>
35181
35182         Exit-status fix from coreutils.
35183
35184         Use exit_failure consistently in place of EXIT_FAILURE,
35185         so that program exit statuses are consistent on failure.
35186
35187         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
35188         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
35189         * lib/argmatch.h: Comment fix to match the above.
35190         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
35191         Now a macro referring to exit_failure, instead of a separate
35192         variable.  Include "exitfail.h" to get it.
35193         * lib/xstrtol.h: Include "exitfail.h".
35194         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
35195
35196         * lib/long-options.c (parse_long_options): Use prototype
35197         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
35198         for clarity.
35199
35200 2004-01-21  Jim Meyering  <jim@meyering.net>
35201
35202         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
35203         so as not to conflict with a different-sized __mktime_internal
35204         function in GNU libc.
35205         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
35206         Problem building statically-linked `ls' reported by Michael Brunnbauer.
35207
35208 2004-01-20  Karl Berry  <karl@gnu.org>
35209
35210         * config/config.guess: update from config.
35211
35212         * config/srclistvars.sh: GNUWWWLICENSES for karl.
35213
35214 2004-01-20  Bruno Haible  <bruno@clisp.org>
35215
35216         Safer stack allocation.
35217         * lib/setenv.c: Include allocsa.h.
35218         (alloca): Remove fallback definition.
35219         (freea): Remove macro.
35220         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
35221         instead of freea.
35222
35223 2004-01-20  Bruno Haible  <bruno@clisp.org>
35224
35225         * m4/eealloc.m4: New file, from GNU gettext.
35226
35227 2004-01-20  Bruno Haible  <bruno@clisp.org>
35228
35229         * m4/allocsa.m4: New file, from GNU gettext.
35230
35231 2004-01-20  Bruno Haible  <bruno@clisp.org>
35232
35233         * lib/xallocsa.h: New file, from GNU gettext.
35234         * lib/xallocsa.c: New file, from GNU gettext.
35235
35236 2004-01-20  Bruno Haible  <bruno@clisp.org>
35237
35238         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
35239
35240 2004-01-20  Bruno Haible  <bruno@clisp.org>
35241
35242         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
35243         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
35244         specially.
35245
35246 2004-01-20  Bruno Haible  <bruno@clisp.org>
35247
35248         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
35249         patch.
35250
35251 2004-01-20  Bruno Haible  <bruno@clisp.org>
35252
35253         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
35254
35255 2004-01-20  Bruno Haible  <bruno@clisp.org>
35256
35257         * lib/eealloc.h: New file.
35258
35259 2004-01-20  Bruno Haible  <bruno@clisp.org>
35260
35261         * lib/binary-io.h: Avoid warnings on Cygwin.
35262
35263 2004-01-20  Bruno Haible  <bruno@clisp.org>
35264
35265         * lib/allocsa.h: New file, from GNU gettext.
35266         * lib/allocsa.c: New file, from GNU gettext.
35267
35268 2004-01-18  Karl Berry  <karl@gnu.org>
35269
35270         * doc/gpl.texi, doc/lgpl.texi: new files.
35271
35272 2004-01-18  Karl Berry  <karl@gnu.org>
35273
35274         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
35275         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
35276
35277 2004-01-15  Paul Eggert  <eggert@twinsun.com>
35278
35279         Merge from coreutils.
35280
35281         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
35282         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
35283         (gl_DEFAULT_POSIX2_VERSION): Move
35284         the documentation from 'configure' into 'config.hin',
35285         so that 'configure --help' isn't burdened by it and
35286         we don't have to worry about its formatting there.
35287         Reword the documentation so that it's more succinct
35288         and can be run together into a single paragraph.
35289         * m4/same.m4 (gl_SAME): Check for pathconf.
35290
35291 2004-01-15  Paul Eggert  <eggert@twinsun.com>
35292
35293         Merge from coreutils.
35294
35295         * lib/posixver.c: Include posixver.h.
35296
35297         * lib/same.c: Include <stdbool.h>, <limits.h>.
35298         (_POSIX_NAME_MAX): Define if not defined.
35299         (MIN): New macro.
35300         (same_name): If file names are silently truncated, report
35301         that the file names are the same if they are the same after
35302         the silent truncation.
35303
35304         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
35305         conversion function.
35306         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
35307         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
35308         longer needed.
35309
35310 2004-01-15  Jim Meyering  <jim@meyering.net>
35311
35312         Merge from coreutils.
35313
35314         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
35315         if no library is required.
35316         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
35317         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
35318         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
35319         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
35320         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
35321         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
35322         value, $ac_cv_search_crypt, if it's "none required".
35323         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
35324         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
35325         not gl_FUNC_GETLOADAVG.
35326         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
35327         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
35328
35329 2004-01-15  Jim Meyering  <jim@meyering.net>
35330
35331         Merge from coreutils.
35332
35333         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
35334         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
35335         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
35336
35337         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
35338         optional configure-time default.
35339
35340         * lib/version-etc.c (version_etc_copyright): Update copyright date.
35341
35342         * lib/xreadlink.c (xreadlink): Correct outdated comment.
35343
35344 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
35345
35346         Merge from coreutils.
35347
35348         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
35349         value, $ac_cv_search_nanosleep, if it's "none required".
35350
35351 2004-01-14  Paul Eggert  <eggert@twinsun.com>
35352
35353         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
35354         with like-named macro in fnmatch.c.
35355         (EXT): Use an internal constant instead.
35356
35357         Merge fnmatch patches from glibc.
35358         * lib/fnmatch.c (mbsinit): Remove define.
35359         Add libc_hidden_ver (__fnmatch, fnmatch).
35360         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
35361         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
35362
35363 2004-01-14  Karl Berry  <karl@gnu.org>
35364
35365         * config/install-sh: update from automake.
35366
35367 2004-01-13  Karl Berry  <karl@gnu.org>
35368
35369         * config/install-sh: update from automake.
35370
35371 2004-01-09  Karl Berry  <karl@gnu.org>
35372
35373         * config/install-sh: update from automake.
35374
35375 2004-01-05  Karl Berry  <karl@gnu.org>
35376
35377         * config/config.{sub,guess}: update from config.
35378
35379 2003-12-31  Karl Berry  <karl@gnu.org>
35380
35381         * config/depcomp: update from automake.
35382
35383 2003-12-14  Karl Berry  <karl@gnu.org>
35384
35385         * lib/config.charset: update from gettext-runtime.
35386
35387 2003-12-03  Paul Eggert  <eggert@twinsun.com>
35388
35389         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
35390         Bug reported by Alfred M. Szmidt.
35391
35392 2003-12-03  Bruno Haible  <bruno@clisp.org>
35393
35394         * m4/gettext.m4: Upgrade from gettext-0.13.
35395         * m4/po.m4: Upgrade from gettext-0.13.
35396         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
35397         * m4/intmax.m4: New file, from gettext-0.13.
35398         * m4/printf-posix.m4: New file, from gettext-0.13.
35399
35400 2003-11-29  Karl Berry  <karl@gnu.org>
35401
35402         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
35403
35404 2003-11-25  Paul Eggert  <eggert@twinsun.com>
35405             Bruno Haible  <bruno@clisp.org>
35406
35407         * lib/printf-parse.h: Don't include sys/types.h.
35408         (ARG_NONE): New macro.
35409         (char_directive): Change type of *arg_index fields to size_t.
35410         * lib/printf-parse.c: Don't include sys/types.h.
35411         (SSIZE_MAX): Remove macro.
35412         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
35413         Remove unnecessary overflow check.
35414         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
35415         fields.
35416
35417 2003-11-25  Bruno Haible  <bruno@clisp.org>
35418
35419         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
35420
35421 2003-11-25  Bruno Haible  <bruno@clisp.org>
35422
35423         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
35424         gt_TYPE_SSIZE_T.
35425
35426 2003-11-24  Paul Eggert  <eggert@twinsun.com>
35427
35428         * modules/alloca: Remove dependency on xalloc.
35429
35430 2003-11-24  Paul Eggert  <eggert@twinsun.com>
35431
35432         * lib/alloca.c: Remove dependency on xalloc module.
35433         (xalloc_die): Remove.
35434         (memory_full) [!defined emacs]: New macro.
35435         [!defined emacs]: Don't include xalloc.h.
35436         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
35437         address arithmetic overflows.  Change datatypes a bit to avoid
35438         unnecessary casts.
35439
35440 2003-11-22  Jim Meyering  <jim@meyering.net>
35441
35442         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
35443         s/size/size_t/.
35444
35445 2003-11-21  Karl Berry  <karl@gnu.org>
35446
35447         * config/config.{sub,guess}: update from config.
35448
35449 2003-11-18  Karl Berry  <karl@gnu.org>
35450
35451         * config/config.{sub,guess}: update from config.
35452
35453         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
35454
35455 2003-11-17  Paul Eggert  <eggert@twinsun.com>
35456
35457         * README: Mention that S+T cannot overflow if S is the size of
35458         an existing object and T is sufficiently small.
35459
35460 2003-11-17  Jim Meyering  <jim@meyering.net>
35461
35462         On systems without utime and without a utimes function capable of
35463         dealing with a NULL struct utimbuf* argument, this utime replacement
35464         could -- in unusual circumstances -- leak a file descriptor.
35465         * lib/utime.c: Include <unistd.h> and <errno.h>.
35466         (utime_null): Be sure to close `fd' and to preserve errno.
35467         Reported by Geoff Collyer via Arnold Robbins.
35468
35469 2003-11-17  Bruno Haible  <bruno@clisp.org>
35470
35471         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
35472         (Depends-on): Add xsize.
35473
35474 2003-11-17  Bruno Haible  <bruno@clisp.org>
35475
35476         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
35477
35478 2003-11-17  Bruno Haible  <bruno@clisp.org>
35479
35480         * lib/vasnprintf.c (alloca): Remove fallback definition.
35481         (freea): Remove definition.
35482         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
35483         Reported by Paul Eggert.
35484
35485 2003-11-16  Paul Eggert  <eggert@twinsun.com>
35486             Bruno Haible  <bruno@clisp.org>
35487
35488         Protect against address arithmetic overflow.
35489         * lib/printf-args.h: Include stddef.h.
35490         (arguments): Change type of field 'count' to size_t.
35491         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
35492         'unsigned int' where appropriate.
35493         * lib/printf-parse.h: Include sys/types.h.
35494         (char_directive): Change type of *arg_index fields to ssize_t.
35495         (char_directives): Change type of fields 'count', max_*_length to
35496         size_t.
35497         * lib/printf-parse.c: Include sys/types.h and xsize.h.
35498         (SSIZE_MAX): Define fallback value.
35499         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
35500         instead of 'int' where appropriate. Check a_allocated, d_allocated
35501         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
35502         * lib/vasnprintf.c: Include xsize.h.
35503         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
35504         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
35505         overflow. Avoid wraparound when converting a width or precision from
35506         decimal to binary.
35507
35508 2003-11-16  Bruno Haible  <bruno@clisp.org>
35509
35510         Update from GNU gettext.
35511         * lib/printf-parse.c: Generalize to it can be compiled for wide
35512         strings.
35513         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
35514         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
35515         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
35516         SNPRINTF): New macros.
35517         Don't include <alloca.h> if the file is used inside libintl.
35518         (local_wcslen): New function, for Solaris 2.5.1.
35519         (VASNPRINTF): Use it instead of wcslen.
35520
35521 2003-11-16  Bruno Haible  <bruno@clisp.org>
35522
35523         * lib/xsize.h (xmax): New function.
35524         (xsum, xsum3, xsum4): Declare as "pure" functions.
35525
35526 2003-11-12  Paul Eggert  <eggert@twinsun.com>
35527
35528         * modules/xalloc (Files): Undo latest change, since xalloc.h
35529         no longer needs SIZE_MAX or PTRDIFF_MAX.
35530
35531 2003-11-12  Paul Eggert  <eggert@twinsun.com>
35532
35533         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
35534         gl_PTRDIFF_MAX.
35535
35536 2003-11-12  Paul Eggert  <eggert@twinsun.com>
35537
35538         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
35539         "return", to pacify some unknown compiler.  Problem reported
35540         by Joerg Schilling.
35541
35542 2003-11-12  Paul Eggert  <eggert@twinsun.com>
35543
35544         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
35545         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
35546         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
35547         heuristic is just as accurate as far as we know, and it removes a
35548         dependency on size_max.m4 and ptrdiff_max.m4.
35549
35550 2003-11-11  Bruno Haible  <bruno@clisp.org>
35551
35552         * modules/xsize (Files): Add m4/size_max.m4.
35553         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
35554
35555 2003-11-11  Bruno Haible  <bruno@clisp.org>
35556
35557         * m4/size_max.m4: New file.
35558         * m4/ptrdiff_max.m4: New file.
35559         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
35560         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
35561         (gl_XALLOC): Invoke it.
35562
35563 2003-11-11  Bruno Haible  <bruno@clisp.org>
35564
35565         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
35566         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
35567         defined.
35568
35569 2003-11-10  Paul Eggert  <eggert@twinsun.com>
35570
35571         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
35572         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
35573         rejected some allocations of exactly SIZE_MAX - 2 bytes.
35574         From Bruno Haible.
35575         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
35576         not (size_t) -1, since it's defined here.
35577
35578 2003-11-09  Karl Berry  <karl@gnu.org>
35579
35580         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
35581
35582 2003-11-06  Paul Eggert  <eggert@twinsun.com>
35583
35584         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
35585         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
35586         Reject sizes of exactly SIZE_MAX bytes.
35587         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
35588         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
35589
35590 2003-11-05  Bruno Haible  <bruno@clisp.org>
35591
35592         * lib/xsize.h: Include limits.h, to avoid a possible collision with
35593         SIZE_MAX defined in <limits.h> on Solaris.
35594
35595 2003-11-04  Jim Meyering  <jim@meyering.net>
35596
35597         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
35598         variable names, rather than @VAR@.
35599         * modules/poll: Likewise.
35600
35601 2003-11-04  Bruno Haible  <bruno@clisp.org>
35602
35603         * modules/xsize: New file.
35604         * modules/linebreak: Depend on xsize.
35605         * MODULES.html.sh (func_all_modules): Add xsize.
35606
35607 2003-11-04  Bruno Haible  <bruno@clisp.org>
35608
35609         * m4/xsize.m4: New file.
35610
35611 2003-11-04  Bruno Haible  <bruno@clisp.org>
35612
35613         * lib/xsize.h: New file.
35614         * lib/linebreak.c: Include xsize.h.
35615         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
35616         argument for overflow.
35617         Suggested by Paul Eggert.
35618
35619 2003-11-03  Karl Berry  <karl@gnu.org>
35620
35621         * config/config.{guess,sub}: update from config.
35622
35623 2003-11-03  Jim Meyering  <jim@meyering.net>
35624
35625         * modules/userspec (lib_SOURCES): Add userspec.h.
35626         (Include): Add "userspec.h".
35627         Improve description.
35628
35629 2003-11-03  Jim Meyering  <jim@meyering.net>
35630
35631         * lib/userspec.c: Include "userspec.h".
35632         * lib/userspec.h: New file.
35633
35634 2003-11-03  Bruno Haible  <bruno@clisp.org>
35635
35636         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
35637
35638 2003-11-03  Bruno Haible  <bruno@clisp.org>
35639
35640         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
35641         available, to avoid (extremely rare) race condition.
35642         Suggested by Paul Eggert.
35643
35644 2003-11-02  Karl Berry  <karl@gnu.org>
35645
35646         * config/srclist.txt (vasprintf.c): sync broken, sigh.
35647
35648 2003-10-31  Paul Eggert  <eggert@twinsun.com>
35649
35650         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
35651         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
35652         (read_filesystem_list): Set and use me_type_malloced.
35653         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
35654         whatever the type happens to be), for brevity and consistency.
35655         Check for size calculation overflow on Alphas running OSF/1.
35656
35657 2003-10-31  Jim Meyering  <jim@meyering.net>
35658
35659         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
35660
35661         * lib/linebuffer.c: Include <string.h> for declaration of memset.
35662
35663 2003-10-30  Paul Eggert  <eggert@twinsun.com>
35664             Bruno Haible  <bruno@clisp.org>
35665
35666         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
35667         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
35668
35669 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
35670
35671         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
35672         netbsd*-gnu*.  Suggested by Robert Millan.
35673
35674 2003-10-29  Paul Eggert  <eggert@twinsun.com>
35675
35676         * modules/group-member: Depend on stdbool.
35677
35678 2003-10-29  Paul Eggert  <eggert@twinsun.com>
35679
35680         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
35681
35682 2003-10-29  Paul Eggert  <eggert@twinsun.com>
35683
35684         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
35685         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
35686         after the 'gnu' in these cases.  This fixes some bugs in the
35687         previous change, and is based on suggestions by Robert Millan.
35688
35689 2003-10-29  Paul Eggert  <eggert@twinsun.com>
35690
35691         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
35692         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
35693         no longer needed.
35694         * lib/quotearg.c (quotearg_n_options): Use it.
35695         * lib/group-member.c: Include <stdbool.h>.
35696         (free_group_info): Arg is now const *; don't free arg.
35697         (get_group_info): Now returns bool and accepts struct group_info *,
35698         rather than returning a malloc'ed struct group_info *.
35699         All uses changed.  Check for overflow in internal size calculation.
35700
35701         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
35702         rather than xmalloc/xrealloc.
35703         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
35704         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
35705         conformance bug: the old code used a pointer after freeing the
35706         storage that it addressed.
35707         * lib/hash.c (hash_initialize): Simplify the code by using
35708         xalloc_oversized rather than doing it by hand.
35709         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
35710         the buffer preserved.  Use free and xmalloc instead.
35711         * lib/quotearg.c (quotearg_n_options): Likewise.
35712         Use a simpler test for size overflow.  Don't use xalloc_oversized
35713         because unsigned int might be wider than size_t (!); this suggests
35714         that we should switch from unsigned int to size_t for slot numbers.
35715
35716 2003-10-28  Paul Eggert  <eggert@twinsun.com>
35717
35718         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
35719         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
35720         NetBSD kernels.  Requested by Richard Stallman.
35721
35722 2003-10-27  Paul Eggert  <eggert@twinsun.com>
35723
35724         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
35725         to allocate the returned structure.  Do not allocate a subarray,
35726         as x2nrealloc will do that.
35727         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
35728         instead of xnrealloc.
35729         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
35730
35731 2003-10-27  Bruno Haible  <bruno@clisp.org>
35732
35733         * lib/stdbool_.h: Better support for BeOS.
35734
35735 2003-10-26  Paul Eggert  <eggert@twinsun.com>
35736
35737         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
35738         now uses inline.
35739
35740 2003-10-26  Paul Eggert  <eggert@twinsun.com>
35741
35742         * lib/xalloc.h (xalloc_oversized): New static inline function, for
35743         callers that want to do their own size-overflow checking.  Include
35744         <stdbool.h>, since xalloc_oversized returns bool.
35745         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
35746         to use xalloc_oversized.
35747
35748         Add two functions x2realloc, x2nrealloc, for programs that grow
35749         arrays dynamically by doubling their sizes.
35750         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
35751         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
35752         New functions.
35753
35754         Port to C99 semantics for 'inline' of external functions.
35755         Bug reported by Bruno Haible.
35756         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
35757         with the old contents of xnmalloc.
35758         (xnmalloc, xmalloc): Use it.
35759         (xnrealloc_inline): New static inline function,
35760         with the old contents of xnrealloc.
35761         (xnrealloc, xrealloc): Use it.
35762
35763         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
35764         that.
35765
35766 2003-10-26  Karl Berry  <karl@gnu.org>
35767
35768         * config/srclist.txt (COPYING.DOC): no longer available from
35769         /gd/gnuorg; don't know where the ultimate source is.
35770
35771 2003-10-25  Paul Eggert  <eggert@twinsun.com>
35772
35773         Fix several address-calculation bugs in the hash modules,
35774         plus some minor code cleanup.
35775
35776         * lib/hash.h: Include <stdbool.h>, for bool.
35777         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
35778         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
35779         hash_get_n_entries, hash_get_max_bucket_length,
35780         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
35781         hash_rehash): Use size_t rather than unsigned.
35782         * lib/hash.c (struct hash_table, hash_get_n_buckets,
35783         hash_get_n_buckets_used, hash_get_n_entries,
35784         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
35785         hash_get_entries, hash_do_for_each, hash_string, is_prime,
35786         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
35787         Likewise.
35788         (SIZE_MAX): Define if not defined.
35789         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
35790         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
35791         hash_print):
35792         Use const * when possible.
35793         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
35794         (check_tuning): Fix bug: if tuning parameters were very close to
35795         0 or 1, rounding errors could have caused subscript violations.
35796         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
35797         (hash_initialize): Add 'fail:' label
35798         to free table and return NULL, and use it to simplify code.
35799         Use calloc rather than clearing the storage ourself.
35800         (hash_initialize, hash_rehash): Check for arithmetic overflow in
35801         buffer size calculations.
35802         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
35803         Include <stddef.h>, for size_t.
35804         * lib/hash-pjw.c (hash_pjw): Likewise.
35805         Switch to method described by Bruno Haible.
35806         Include <limits.h>, for CHAR_BIT.
35807         (SIZE_BITS): New macro.
35808
35809 2003-10-23  Paul Eggert  <eggert@twinsun.com>
35810
35811         * m4/getline.m4 (AM_FUNC_GETLINE):
35812         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
35813         hosts.  Problem reported by Derek Robert Price in
35814         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
35815         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
35816         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
35817
35818 2003-10-21  Paul Eggert  <eggert@twinsun.com>
35819
35820         * lib/getndelim2.c (getndelim2): When size calculation overflows,
35821         ceiling the allocation at NMAX bytes rather than silently
35822         discarding input bytes before NMAX is reached.  This makes
35823         a difference only if NMAX exceeds SIZE_MAX / 2.
35824
35825         * lib/obstack.c: Merge from glibc.
35826         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
35827         Add libc_hidden_def (_obstack_newchunk).
35828         (_obstack_free) [! defined _LIBC]: Remove.
35829         [defined _LIBC]: Make a strong alias from obstack_free, rather than
35830         a clone of the function body.
35831         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
35832         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
35833
35834         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
35835         glibc.
35836         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
35837         arg to memcpy.
35838
35839         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
35840         (obstack_ptr_grow_fast, obstack_int_grow_fast):
35841         Don't use lvalue casts, as GCC plans to remove support for them
35842         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
35843         was also present in the non-GCC version, indicating that this
35844         code had always been buggy and had never been widely used.
35845         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
35846         Use the fast variant of each macro, rather than copying the
35847         definiens of the fast variant; that way, we'll be more likely to
35848         catch future bugs in the fast variants.
35849
35850 2003-10-20  Bruno Haible  <bruno@clisp.org>
35851
35852         * modules/wait-process: New file.
35853         * MODULES.html.sh (func_all_modules): Add wait-process.
35854
35855 2003-10-20  Bruno Haible  <bruno@clisp.org>
35856
35857         * m4/wait-process.m4: New file.
35858
35859 2003-10-20  Bruno Haible  <bruno@clisp.org>
35860
35861         * lib/wait-process.h: New file, from GNU gettext.
35862         * lib/wait-process.c: New file, from GNU gettext.
35863
35864 2003-10-19  Jim Meyering  <jim@meyering.net>
35865
35866         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
35867         HPUX 10.20.
35868
35869 2003-10-18  Karl Berry  <karl@gnu.org>
35870
35871         * config/config.guess: update from config.
35872
35873 2003-10-16  Paul Eggert  <eggert@twinsun.com>
35874
35875         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
35876         (getgroups): First arg is int, not size_t.
35877         Don't let 'free' mangle errno.
35878
35879 2003-10-16  Paul Eggert  <eggert@twinsun.com>
35880
35881         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
35882
35883 2003-10-16  Karl Berry  <karl@gnu.org>
35884
35885         * config/config.{guess,sub}: update from config.
35886
35887 2003-10-16  Jim Meyering  <jim@meyering.net>
35888
35889         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
35890         memcpy.
35891
35892 2003-10-15  Paul Eggert  <eggert@twinsun.com>
35893
35894         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
35895         (SIZE_MAX): Remove.
35896         (new_exclude, add_exclude_file): Initial size no longer needs to
35897         be a power of 2.
35898         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
35899         our own address arithmetic overflow checking.
35900
35901         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
35902         (fnmatch): Do not alloca more than 2000 wide characters;
35903         instead, use malloc for large buffers.
35904         Check for address arithmetic overflow, and return -1
35905         with errno set to ENOMEM in that case.
35906         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
35907         (NEW_PATTERN): Do not alloca more than 8000 bytes;
35908         instead, return -1.  Check for address arithmetic overflow.
35909
35910 2003-10-14  Paul Eggert  <eggert@twinsun.com>
35911
35912         Handle invalid suffixes and overflow independently, so that
35913         callers can treat them independently as needed.  Fix some bugs in
35914         suffix handling, e.g., "100k@" was not diagnosed as an invalid
35915         suffix for a human-readable blocksize.  The major caller-visible
35916         change is the addition of a new
35917         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
35918         that both overflow and suffix chars were found.
35919
35920         * lib/human.c (humblock): Don't check separately for invalid suffix
35921         char; that is xstrtoumax's job (now that its bug is fixed).
35922         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
35923         INTMAX_MAX]: New macros.
35924         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
35925         TYPE_MAXIMUM): New macros.
35926         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
35927         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
35928         if overflow occurs, as it's what __strtol does and it's more useful
35929         in practice.
35930         (__xstrtol): If __strtol reports some error other than ERANGE,
35931         reflect it to the caller as LONGINT_INVALID.  If it reports
35932         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
35933         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
35934         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
35935         value.
35936         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
35937         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
35938         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
35939         [defined UINTMAX_MAX]: New macros.
35940
35941 2003-10-14  Bruno Haible  <bruno@clisp.org>
35942
35943         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
35944
35945 2003-10-14  Bruno Haible  <bruno@clisp.org>
35946
35947         * m4/sig_atomic_t: New file, from GNU gettext.
35948         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
35949
35950 2003-10-14  Bruno Haible  <bruno@clisp.org>
35951
35952         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
35953         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
35954         Also use volatile where needed.
35955
35956 2003-10-12  Paul Eggert  <eggert@twinsun.com>
35957
35958         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
35959         Change maintainer from Bruno Haible to 'all'.
35960
35961 2003-10-12  Paul Eggert  <eggert@twinsun.com>
35962
35963         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
35964
35965 2003-10-12  Paul Eggert  <eggert@twinsun.com>
35966
35967         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
35968         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
35969         and define in terms of the other primitives.
35970         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
35971         (SIZE_MAX): Define if not already defined.
35972         (array_size_overflow): New function.
35973         (xalloc_die): Abort instead of exiting if 'error' returns.
35974         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
35975         (xmalloc, xrealloc): Use them.
35976         (xcalloc): Check for address arithmetic overflow.
35977         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
35978         a bit faster than strcpy.
35979
35980 2003-10-10  Simon Josefsson  <jas@extundo.com>
35981
35982         * modules/argp (Depends-on): Add restrict and strcase.
35983
35984 2003-10-10  Simon Josefsson  <jas@extundo.com>
35985
35986         * m4/argp.m4: Add AC_C_INLINE.
35987
35988 2003-10-08  Paul Eggert  <eggert@twinsun.com>
35989
35990         Merge getpass from libc, plus a few fixes.
35991
35992         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
35993         Include <stdbool.h>.
35994         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
35995         __fsetlocking to empty.
35996         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
35997         do include <bits/libc-lock.h>.
35998         Do not include <fcntl.h>; not needed.
35999         [_LIBC]: Include <wchar.h>.
36000         (NOTCANCEL_MODE): New macro.
36001         (flockfile, funlockfile) [_LIBC]: New macros.
36002         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
36003         [!_LIBC]: New macros.
36004         (call_fclose): New function.
36005         (getpass): Use it.  Save tty stream separately; this simplifies the
36006         code and makes it more reliable if stdin happens to equal stdout.
36007         Invoke __fsetlocking on tty.
36008         Handle thread cancellation if needed.
36009         Namespace cleanup (use __tcgetattr, __getline).
36010         Use bool for Booleans.
36011         [USE_IN_LIBIO]: Handle wide streams.
36012         [!_LIBC]: Unconditionally do the fseek, since we don't know what
36013         stream might go where.
36014
36015         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
36016         doesn't have to include <stdio.h> before us.
36017         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
36018         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
36019         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
36020         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
36021         if not declared, so that we can use getpass.c code from libc without
36022         rewriting it.
36023         (flockfile, ftrylockfile, funlockfile): New macros.
36024
36025 2003-10-08  Paul Eggert  <eggert@twinsun.com>
36026
36027         * modules/getpass: Depend on stdbool.
36028
36029 2003-10-08  Paul Eggert  <eggert@twinsun.com>
36030
36031         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
36032
36033 2003-10-07  Karl Berry  <karl@gnu.org>
36034
36035         * config/config.{guess,sub}: update from config.
36036
36037 2003-10-06  Jim Meyering  <jim@meyering.net>
36038             Bruno Haible  <bruno@clisp.org>
36039
36040         This lets translators provide better translations for the
36041         "Written by ..." part of --version output.
36042         * lib/version-etc.h: Include stdarg.h.
36043         (version_etc_copyright): Declare as readonly.
36044         (version_etc): Make this function variadic with a NULL-terminated list
36045         of author name strings.
36046         (version_etc_va): New declaration.
36047         * lib/version-etc.c: Include stdarg.h, stdlib.h.
36048         (version_etc_copyright): Declare as readonly.
36049         (version_etc_va): New function. Provide a different translatable string
36050         for each possible number of authors < 10. Abbreviate when there are 10
36051         authors or more.
36052         (version_etc): Make this function variadic. Call version_etc_va.
36053         Suggestion from Gary V. Vaughan.
36054
36055         * lib/long-options.h (parse_long_options): Change prototype: the
36056         authors string is moved to the end and becomes variadic.
36057         * lib/long-options.c: Include stdarg.h.
36058         (parse_long_options): Make this function variadic, too.
36059         Call version_etc_va, not version_etc.
36060
36061 2003-10-06  Bruno Haible  <bruno@clisp.org>
36062
36063         * modules/version-etc-2: Remove file.
36064         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
36065
36066 2003-10-06  Bruno Haible  <bruno@clisp.org>
36067
36068         * modules/fatal-signal: New file.
36069         * MODULES.html.sh (func_all_modules): Add fatal-signal.
36070
36071 2003-10-06  Bruno Haible  <bruno@clisp.org>
36072
36073         * m4/fatal-signal.m4: New file.
36074         * m4/signalblocking.m4: New file, from GNU gettext.
36075
36076 2003-10-06  Bruno Haible  <bruno@clisp.org>
36077
36078         * lib/version-etc-2.h: Remove file.
36079         * lib/version-etc-2.c: Remove file.
36080
36081 2003-10-06  Bruno Haible  <bruno@clisp.org>
36082
36083         * lib/fatal-signal.h: New file, from GNU gettext.
36084         * lib/fatal-signal.c: New file, from GNU gettext.
36085
36086 2003-10-05  Paul Eggert  <eggert@twinsun.com>
36087
36088         * README: Rework advice for preventing empty .o files.
36089         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
36090         not <sys/types.h>.
36091
36092 2003-10-04  Karl Berry  <karl@gnu.org>
36093
36094         * lib/argp*: update from libc.
36095
36096 2003-10-04  Karl Berry  <karl@gnu.org>
36097
36098         * config/config.{guess,sub}: update from config.
36099
36100 2003-10-02  Bruno Haible  <bruno@clisp.org>
36101
36102         * modules/lchown (Include): Add lchown.h.
36103         * modules/time_r (Include): Use "..." syntax.
36104         * modules/xgetdomainname (Include): Add xgetdomainname.h.
36105
36106 2003-10-01  Simon Josefsson  <jas@extundo.com>
36107
36108         * MODULES.html.sh (func_all_modules): Move gethostname from section
36109         'based on' to section 'lacking' POSIX:2001.
36110
36111 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
36112
36113         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
36114         to output mode on the same stream.
36115
36116 2003-09-29  Paul Eggert  <eggert@twinsun.com>
36117
36118         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
36119         Fix arg typo in previous patch.
36120
36121 2003-09-28  Jim Meyering  <jim@meyering.net>
36122
36123         * lib/error.c: Correct cpp indentation.
36124
36125 2003-09-27  Paul Eggert  <eggert@twinsun.com>
36126
36127         * modules/free: New file.
36128
36129 2003-09-27  Paul Eggert  <eggert@twinsun.com>
36130
36131         * m4/free.m4: New file.
36132
36133 2003-09-27  Paul Eggert  <eggert@twinsun.com>
36134
36135         * lib/minmax.h (MIN, MAX)
36136         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
36137         Omit the special code that used __typeof__, since we worry that
36138         it could be more trouble than it's worth.  See:
36139         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
36140         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
36141
36142         * lib/free.c: New file.
36143
36144 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
36145
36146         Trivial fixes to Makefile.am parts of module listings.
36147         * modules/strstr: Append strstr.h to lib_SOURCES.
36148         * modules/strcase: Likewise, for strcase.h.
36149
36150 2003-09-27  Karl Berry  <karl@gnu.org>
36151
36152         * config/mkinstalldirs: update from automake.
36153
36154 2003-09-26  Paul Eggert  <eggert@twinsun.com>
36155
36156         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
36157         (error_tail): Do not loop, reallocating temporary buffer, since
36158         the output cannot contain more wide characters than the input
36159         contains bytes, the size must be big enough already.  This avoids
36160         one potential size overflow calculation.  Check for size overflow
36161         when calculating temporary buffer size.  Free temporary buffer
36162         when done, if it was allocated with malloc; this plugs a memory
36163         leak.  Remove casts from void * to pointers, that are no longer
36164         needed now that we're assuming C89 or better.
36165
36166         Merge error changes from glibc.
36167
36168         * lib/error.c, error.h: Update copyright notice header to match glibc.
36169         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
36170         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
36171         Disable cancellation while printing error.
36172         * lib/error.h: Prepend __ to parameter names.
36173
36174 2003-09-26  Jim Meyering  <jim@meyering.net>
36175
36176         * lib/error.c (error_tail): Move some declarations
36177         into inner scope where the local variables are used.
36178
36179 2003-09-26  Bruno Haible  <bruno@clisp.org>
36180
36181         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
36182         stpncpy().
36183         Don't define stpncpy through config.h; it's now done through stpncpy.h.
36184
36185 2003-09-26  Bruno Haible  <bruno@clisp.org>
36186
36187         * lib/stpncpy.h (gnu_stpncpy): New declaration.
36188         (stpncpy): Define as alias for gnu_stpncpy.
36189         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
36190
36191 2003-09-25  Simon Josefsson  <jas@extundo.com>
36192
36193         * lib/xgetdomainname.h: New file.
36194         * lib/xgetdomainname.c: New file.
36195
36196 2003-09-25  Simon Josefsson  <jas@extundo.com>
36197             Bruno Haible  <bruno@clisp.org>
36198
36199         * modules/getdomainname: New file.
36200         * modules/xgetdomainname: New file.
36201         * MODULES.html.sh (func_all_modules): Add getdomainname,
36202         xgetdomainname.
36203
36204 2003-09-25  Simon Josefsson  <jas@extundo.com>
36205             Bruno Haible  <bruno@clisp.org>
36206
36207         * m4/getdomainname.m4: New file.
36208
36209 2003-09-25  Simon Josefsson  <jas@extundo.com>
36210             Bruno Haible  <bruno@clisp.org>
36211
36212         * lib/getdomainname.h: New file.
36213         * lib/getdomainname.c: New file.
36214
36215 2003-09-25  Karl Berry  <karl@gnu.org>
36216
36217         * lib/argp-fmtstream.c, argp-help.c: update from libc.
36218
36219 2003-09-25  Karl Berry  <karl@gnu.org>
36220
36221         * config/install-sh: update from automake.
36222
36223 2003-09-25  Bruno Haible  <bruno@clisp.org>
36224
36225         * modules/version-etc-2: New file, from modules/version-etc with
36226         modifications.
36227         * MODULES.html.sh (func_all_modules): Add version-etc-2.
36228
36229 2003-09-25  Bruno Haible  <bruno@clisp.org>
36230
36231         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
36232         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
36233
36234 2003-09-24  Simon Josefsson  <jas@extundo.com>
36235
36236         * modules/xgethostname: Add xgethostname.h.
36237
36238 2003-09-24  Paul Eggert  <eggert@twinsun.com>
36239
36240         * lib/linebuffer.c (freebuffer): Don't free the argument, just
36241         the buffer associated with the argument.  Bug reported by
36242         Simon Josefsson.
36243
36244 2003-09-24  Paul Eggert  <eggert@twinsun.com>
36245
36246         * README: Document assumptions that 'int' is at least 32 bits
36247         wide, that integer arithmetic is 2's complement without overflow,
36248         that there are no holes in integer values, that adding sizes of
36249         two nonoverlapping objects can't overflow, and that all-bits-zero
36250         yields scalar zero.  Fix spelling and capitalization typos.
36251
36252 2003-09-19  Karl Berry  <karl@gnu.org>
36253
36254         * lib/argp.h: update from libc.
36255
36256 2003-09-17  Paul Eggert  <eggert@twinsun.com>
36257
36258         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
36259         to avoid spurious warnings like "AC_RUN_IFELSE was called before
36260         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
36261
36262 2003-09-17  Paul Eggert  <eggert@twinsun.com>
36263
36264         * gnulib-tool: Use "test -h", not "test -L", for portability
36265         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
36266         (tags_regexp): Remove, since \| doesn't conform to POSIX.
36267         (sed_extract_prog): Issue s commands one-by-one, rather than
36268         using \| in one s command.
36269
36270 2003-09-16  Paul Eggert  <eggert@twinsun.com>
36271
36272         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
36273         input error, instead of returning NULL the next time we are called
36274         (and therefore losing track of errno).
36275
36276 2003-09-16  Bruno Haible  <bruno@clisp.org>
36277
36278         * gnulib-tool (func_create_testdir): Warn about duplicated
36279         dependencies.
36280
36281 2003-09-15  Paul Eggert  <eggert@twinsun.com>
36282
36283         * modules/argmatch, modules/fatal, modules/obstack,
36284         modules/xalloc, modules/xgethostname: Sort dependencies by
36285         importance, not alphabetically.
36286
36287 2003-09-15  Paul Eggert  <eggert@twinsun.com>
36288
36289         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
36290         fails, so that the caller gets the proper errno.
36291
36292         * lib/readutmp.c (read_utmp): Likewise.
36293         Check for fstat error.  Close stream and free storage
36294         when failing.
36295
36296 2003-09-14  Karl Berry  <karl@gnu.org>
36297
36298         * config/srclist.txt (strdup.c): disable for c89 changes.
36299
36300 2003-09-14  Jim Meyering  <jim@meyering.net>
36301
36302         * lib/getloadavg.c: Correct cpp indentation.
36303         * lib/strdup.c: Likewise.
36304         * lib/vasnprintf.c: Likewise.
36305
36306 2003-09-14  Bruno Haible  <bruno@clisp.org>
36307
36308         * modules/fwriteerror: New file.
36309         * MODULES.html.sh (func_all_modules): Add fwriteerror.
36310
36311 2003-09-14  Bruno Haible  <bruno@clisp.org>
36312
36313         * lib/fwriteerror.h: New file.
36314         * lib/fwriteerror.c: New file.
36315
36316 2003-09-12  Paul Eggert  <eggert@twinsun.com>
36317
36318         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
36319         modules/xgethostname, modules/xalloc: Depend on exit.
36320
36321 2003-09-12  Paul Eggert  <eggert@twinsun.com>
36322
36323         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
36324
36325         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
36326         and AC_MINIX, too, so that their extensions are available.
36327
36328         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
36329         This macro has been superseded by gl_BACKUPFILE.
36330
36331         More patches to assume C89 or better.
36332
36333         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
36334
36335         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
36336         unconditionally.
36337         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
36338         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
36339         Include <string.h>, <stdlib.h> unconditionally.
36340         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
36341         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
36342         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
36343         headers or for string.h.
36344         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
36345         or strtoul.
36346
36347         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
36348         headers.
36349         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
36350         * m4/userspec.m4 (gl_USERSPEC): Likewise.
36351         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
36352         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
36353         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
36354         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
36355         memcpy, memset.
36356         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
36357         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
36358         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
36359         strtol.
36360         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
36361         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
36362         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
36363         strtoul.
36364
36365 2003-09-12  Paul Eggert  <eggert@twinsun.com>
36366
36367         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
36368         * lib/obstack.c [!defined _LIBC]: Likewise.
36369         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
36370         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
36371         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
36372
36373         More changes to assume C89 or better.
36374
36375         * lib/error.c (error_tail): Assume vprintf.
36376
36377         * lib/argmatch.c (getenv): Remove decl.
36378         * lib/progreloc.c (get_full_program_name): Define via prototype.
36379         * lib/setenv.c (clearenv): Likewise.
36380         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
36381         needed.
36382         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
36383         (malloc, memcpy): Remove decls.
36384         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
36385         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
36386         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
36387         (memcpy): Remove macro.
36388         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
36389         (__P): Remove.  All uses removed.
36390         (PTR): Remove.  All uses changed to void *.
36391         (CHAR_BIT, NULL): Remove.
36392         (spaces, zeros, memset_space, memset_zero)
36393         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
36394         Remove.
36395         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
36396         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
36397         Define with prototype.
36398         Remove now-unnecessary prototype decl.
36399         (extra_args_spec): Assume ANSI C.  All uses changed.
36400         (extra_args_spec_iso): Remove.
36401         (my_strftime, emacs_strftimeu): Define via prototype.
36402         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
36403         unconditionally.
36404         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
36405         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
36406         (strtoul, strtol): Remove decls.
36407         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
36408         LONG_MAX): Remove.
36409         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
36410         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
36411         (LOCALE_PARAM_PROTO): New macro.
36412         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
36413         (INTERNAL (strtol), strtol): Define with a prototype.
36414         (PARAMS): Remove.  All uses removed.
36415         * lib/tempname.c: Include <string.h> unconditionally.
36416         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
36417         * lib/xgethostname.c (main): Define with a prototype.
36418         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
36419         Include <stdlib.h> unconditionally.
36420         (calloc, malloc, realloc, free): Remove decls.
36421         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
36422         Include <stdlib.h> unconditionally.  Sort include file names.
36423         (strtod): Remove.
36424         (xstrtod): Define with a prototype.
36425         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
36426         (strtol, strtoul): Remove decls.
36427
36428 2003-09-11  Paul Eggert  <eggert@twinsun.com>
36429
36430         More patches to assume C89 or better.
36431         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
36432         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
36433         string.h, memchr, STDC_HEADERS.
36434
36435 2003-09-11  Paul Eggert  <eggert@twinsun.com>
36436
36437         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
36438         Include <stdlib.h>, <string.h> unconditionally.
36439         Remove now-unnecessary cast to char *.
36440         * lib/strnlen.c: Include <string.h> unconditionally.
36441         * lib/yesno.c (yesno): Define with a prototype.
36442
36443 2003-09-11  Bruno Haible  <bruno@clisp.org>
36444
36445         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
36446
36447 2003-09-10  Jim Meyering  <jim@meyering.net>
36448
36449         * lib/error.c: Correct indentation of cpp directives.
36450
36451 2003-09-10  Bruno Haible  <bruno@clisp.org>
36452
36453         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
36454         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
36455         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
36456         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
36457         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
36458         <stdlib.h> and <string.h> checks.
36459         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
36460         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
36461
36462 2003-09-10  Bruno Haible  <bruno@clisp.org>
36463
36464         * lib/strcspn.c: Include <string.h> unconditionally.
36465         * lib/strpbrk.c: Include <string.h> unconditionally.
36466         * lib/strstr.c: Include <string.h> unconditionally.
36467         * lib/unicodeio.c: Include <string.h> unconditionally.
36468         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
36469         * lib/unsetenv.c: Likewise.
36470         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
36471         * lib/yesno.c: Include <stdlib.h> unconditionally.
36472         (rpmatch): Add prototype.
36473
36474 2003-09-09  Paul Eggert  <eggert@twinsun.com>
36475
36476         More patches to assume C89 or better.
36477         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
36478         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
36479         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
36480         or for string.h.
36481         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
36482         stdlib.h.
36483         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
36484         C headers.
36485         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
36486         string.h.
36487         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
36488         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
36489         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
36490         or for string.h.
36491         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
36492         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
36493         C headers.
36494         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
36495         memcpy.
36496         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
36497         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
36498         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
36499         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
36500         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
36501         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
36502         string.h, free.
36503         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
36504         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
36505         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
36506         C headers, or for string.h.
36507         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
36508         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
36509         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
36510         headers, memory.h, stdlib.h, string.h, strings.h.
36511         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
36512         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
36513         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
36514         strchr.
36515         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
36516         headers, memory.h, string.h.
36517         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
36518         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
36519         free.
36520         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
36521         headers.
36522         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
36523         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
36524         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
36525         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
36526         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
36527
36528 2003-09-09  Paul Eggert  <eggert@twinsun.com>
36529
36530         More K&R removal.
36531
36532         * lib/acosl.c (main): Use a prototype.
36533         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
36534         tanl.c: Likewise.
36535
36536         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
36537
36538         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
36539         (getopt, etopt_long, getopt_long_only, _getopt_internal)
36540         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
36541         with a prototype.
36542         * lib/getopt.c (const): Remove macro.
36543         Include <string.h> unconditionally.
36544         (my_index): Remove; all uses changed to strchr.
36545         (strlen): Remove decl.
36546         (exchange): Remove forward decl; no longer needed.
36547         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
36548         Define with prototype.
36549         * lib/getopt1.c (const): Remove macro.
36550         (getopt_long, getopt_long_only, main): Define with prototype.
36551
36552         * lib/getugroups.c: Include <string.h> unconditionally.
36553
36554         * lib/getusershell.c: Include <stdlib.h> unconditionally.
36555         (getusershell, setusershell, endusershell, readname, main):
36556         Define with prototypes.
36557
36558         * lib/group-member.c: Include group-member.h first.
36559         Include <stdlib.h> unconditionally.
36560
36561         * lib/hard-locale.c: Include hard-locale.h first.
36562         Include <stdlib.h>, <string.h> unconditionally.
36563
36564         * lib/hash.c (free, malloc): Remove decls.
36565         Include <stdlib.h> unconditionally.
36566
36567         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
36568         (getenv): Do not declare.
36569
36570         * lib/idcache.c: Include <string.h> unconditionally.
36571
36572         * lib/long-options.c: Include long-options.h first, to test interface.
36573         Include <stdlib.h> unconditionally.
36574
36575         * lib/makepath.c: Include makepath.h first, to test interface.
36576         Include <stdlib.h> and <string.h> unconditionally.
36577
36578         * lib/linebuffer.c: Include <stdlib.h>.
36579         (free): Remove decl.
36580
36581         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
36582         stddef.h. rpl_malloc returns void *, not char *.
36583         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
36584         prototype.
36585
36586         * lib/md5.h: Include <limits.h> unconditionally.
36587         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
36588         (__P): Remove; all uses removed.
36589         * lib/md5.c: Include "md5.h" first.
36590         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
36591         md5_buffer, md5_process_bytes, md5_process_block):
36592         Define with prototypes.
36593         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
36594         * lib/sha.c: Include "sha.h" first.
36595         Include <stdlib.h>, <string.h> unconditionally.
36596
36597         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
36598         * lib/memcmp.c (__ptr_t): Likewise.
36599         * lib/memrchr.c (__ptr_t): Likewise.
36600         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
36601         Include <string.h> unconditionally.
36602         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
36603         * lib/memchr.c: Include <stdlib.h> unconditionally.
36604         * lib/memchr.c (LONG_MAX): Remove.
36605         * lib/memrchr.c (LONG_MAX): Likewise.
36606         * lib/memchr.c (__memchr): Define via a prototype.
36607         * lib/memrchr.c (__memrchr): Likewise.
36608         * lib/memcmp.c (__P): Remove, and remove all uses.
36609         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
36610         Remove forward decls; no longer needed.
36611         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
36612         Use types required by C89 in prototype.
36613
36614         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
36615         * lib/savedir.c: Likewise.
36616         * lib/mkdir.c (free): Remove decl.
36617         * lib/rmdir.c (rmdir): Define with a prototype.
36618         * lib/savedir.c: Include savedir.h first, to test interface.
36619
36620         * lib/mktime.c (STDC_HEADERS): Remove.
36621         Include <stdlib.h>, <string.h> unconditionally.
36622
36623         * lib/modechange.c: Include <stdlib.h> unconditionally.
36624         (malloc): Remove decl.
36625
36626         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
36627         (free): Remove decl.
36628
36629         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
36630         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
36631         (This type really should be intptr_t, but that's a C99ism.)
36632         (_obstack_memcpy): Remove: all uses changed to memcpy.
36633         Include <string.h> unconditionally.
36634         (struct obstack): Assume __STDC__ for types of members
36635         chunkfun, freefun, extra_arg.
36636         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
36637         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
36638         obstack_begin, obstack_specify_allocation,
36639         obstack_specify_allocation_with_arg, obstack_chunkfun,
36640         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
36641         Remove unprototyped decls and the macros that use them.
36642         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
36643         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
36644         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
36645         (defined __STDC__ && __STDC__)]:
36646         Remove nonprototyped code.
36647         Include <stdlib.h> unconditionally.
36648         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
36649         _obstack_allocated_p, _obstack_free, obstack_free,
36650         _obstack_memory_used, print_and_abort):
36651         Define using prototypes.
36652         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
36653         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
36654         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
36655         obstack_next_free, obstack_object_size, obstack_room) [0]:
36656         Remove unused, unprototyped code.
36657
36658         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
36659
36660         * lib/physmem.c (physmem_total, physmem_available, main): Define
36661         with prototypes.
36662
36663         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
36664         (main): Define with a prototype.
36665
36666         * lib/posixver.c (getenv): Remove decl.
36667
36668         * lib/putenv.c (malloc): Returns void *, not char *.
36669         Include <string.h> unconditionally.
36670         (strchr, memcpy, NULL): Do not define.
36671
36672         * lib/readtokens.c: Include readtokens.h first, to test interface.
36673         Include <stdlib.h>, <string.h> unconditionally.
36674         (init_tokenbuffer): Define with a prototype.
36675
36676         * lib/regex.c (PARAMS): Remove.  All uses removed.
36677         All uses of _RE_ARGS removed, too.
36678         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
36679         unconditionally.
36680         (bzero): Assume memset exists.
36681         (memcmp, memcpy, NULL): Remove.
36682         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
36683         char, or assignments to local vars of type signed char.
36684         (init_syntax_once, PREFIX(extract_number_and_incr),
36685         PREFIX(print_partial_compiled_pattern),
36686         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
36687         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
36688         PREFIX(regex_grow_registers), PREFIX(regex_compile),
36689         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
36690         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
36691         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
36692         wcs_compile_range, byte_compile_range, truncate_wchar,
36693         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
36694         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
36695         count_mbs_length, wcs_re_match_2_internal,
36696         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
36697         PREFIX(alt_match_null_string_p),
36698         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
36699         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
36700         regfree, PREFIX(extract_number)): Define with prototype.  Remove
36701         now-unnecessary declaration, if any.
36702         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
36703         regcomp, regexec):
36704         Remove now-unnecessary casts among pointer types.
36705         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
36706
36707         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
36708         (free): Remove decl.
36709
36710         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
36711
36712         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
36713         (free): Remove decl.
36714
36715         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
36716         * lib/xgetcwd.c: Likewise.
36717
36718         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
36719         (free): Remove decl.
36720
36721         * lib/strchrnul.c (strchrnul): Define with a prototype.
36722         Fix bug: c_in was not converted to char before searching.
36723
36724         The following changes are not K&R related:
36725
36726         * lib/group-member.h: Include <sys/types.h>, so that this file is
36727         self-contained.
36728         * lib/makepath.h: Likewise.
36729
36730         * lib/getusershell.c (readname, default_index, line_size, readname):
36731         Use size_t, not int, for sizes.
36732         (readname): If the size overflows, report an error instead of
36733         looping forever.
36734
36735 2003-09-09  Paul Eggert  <eggert@twinsun.com>
36736
36737         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
36738         libc.
36739
36740 2003-09-09  Paul Eggert  <eggert@twinsun.com>
36741
36742         * README: New section: portability guidelines.
36743
36744 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
36745
36746         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
36747         C89 spec.
36748
36749 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
36750
36751         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
36752
36753 2003-09-08  Paul Eggert  <eggert@twinsun.com>
36754
36755         Assume C89 or better; remove K&R cruft.
36756         A few of these changes were first proposed by Derek Robert Price
36757         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
36758
36759         * lib/addext.c: Include <string.h> unconditionally.
36760         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
36761         Don't declare getenv or malloc.
36762
36763         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
36764         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
36765         (NULL): Remove.
36766         (find_stack_direction, alloca): Use prototypes.
36767
36768         * lib/atexit.c (atexit): Define using a prototype.
36769
36770         * lib/basename.c, dirname.c, stripslash.c:
36771         Include <string.h> unconditionally.
36772
36773         * lib/bcopy.c: Include <stddef.h>.
36774         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
36775
36776         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
36777
36778         * lib/error.h (error, error_at_line, error_print_progname)
36779         [! (defined (__STDC__) && __STDC__)]: Remove decls.
36780         * lib/error.c: Include error.h first, to check interface.
36781         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
36782         (VA_START): Remove; all uses changeed to va_start.
36783         (exit, strerror): Remove decls.
36784         (error_print_progname): Prototype uncondionally.
36785         Don't include <errno.h>; no longer needed.
36786         (private_strerror): Remove.
36787         (error_tail): Always define.
36788         (error, error_at_line): Assume C89 or better; always use prototypes.
36789         * lib/fatal.c: Include "fatal.h" first, to test interface.
36790         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
36791         (VA_START): Remove; all uses changed to va_start.
36792         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
36793         this case.
36794         (exit): Remove decl.
36795         (fatal): Prototype unconditionally.  Assume va_start works.
36796         Abort at end, to pacify gcc.
36797
36798         * lib/euidaccess.c (main): Define with a prototype.
36799
36800         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
36801
36802         * lib/exitfail.c: Include <stdlib.h> unconditionally.
36803
36804         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
36805         prototypes.
36806         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
36807         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
36808         (getenv): Remove decl.
36809         (fnmatch): Define using a prototype.
36810         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
36811         (FCT): Define using a prototype.
36812
36813         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
36814
36815         * lib/gethostname.c: Include <stddef.h>.
36816         (gethostname): Define with prototype.  Length is size_t, not int.
36817
36818 2003-09-08  Paul Eggert  <eggert@twinsun.com>
36819
36820         Assume C89 or better; remove K&R cruft.
36821         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
36822         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
36823         string.h, getenv, malloc.
36824         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
36825         headers.
36826         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
36827         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
36828         do not check for strerror.
36829         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
36830         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
36831         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
36832         do not check for doprnt or vprintf.
36833         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
36834         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
36835
36836 2003-09-08  Paul Eggert  <eggert@twinsun.com>
36837
36838         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
36839         getversion.c should have been removed then, but was accidentally
36840         preserved.
36841
36842         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
36843         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
36844
36845 2003-09-08  Karl Berry  <karl@gnu.org>
36846
36847         * config/config.sub, config.guess, srclistvars.sh: update from savannah
36848                 config, forget about prep.
36849
36850         * config/depcomp, missing: update from automake.
36851
36852 2003-09-07  Paul Eggert  <eggert@twinsun.com>
36853
36854         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
36855         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
36856
36857 2003-09-07  Paul Eggert  <eggert@twinsun.com>
36858
36859         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
36860         copy_tm_result.  Bug reported by Simon Josefsson in
36861         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
36862
36863 2003-09-06  Paul Eggert  <eggert@twinsun.com>
36864
36865         * m4/time_r.m4: New file.
36866         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
36867         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
36868         is. Check for timegm declaration.
36869         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
36870         Do not check for gmtime_r.
36871         Replace mktime if __mktime_internal does not exist and if mktime
36872         hasn't been replaced already.
36873
36874 2003-09-06  Paul Eggert  <eggert@twinsun.com>
36875
36876         * lib/time_r.c, lib/time_r.h: New files.
36877
36878         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
36879         __localtime_r.
36880         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
36881         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
36882
36883         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
36884         __gmtime_r.
36885         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
36886         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
36887         Include <time_r.h>.
36888
36889         * lib/timegm.c: Switch to glibc implementation, with the following
36890         changes:
36891         [defined HAVE_CONFIG_H]: Include <config.h>.
36892         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
36893         (__mktime_internal) [!defined _LIBC]: New decl.
36894         (__gmtime_r) [!defined _LIBC]: New macro and function.
36895         (timegm): Use a prototype, since gnulib assumes C89.
36896         Do not bother declaring tmp to be const, as it's not really usefu.
36897         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
36898         (timegm): Declare only if HAVE_DECL_TIMEGM.
36899
36900 2003-09-06  Paul Eggert  <eggert@twinsun.com>
36901
36902         * MODULES.html.sh (func_all_modules): Add time_r.
36903         * modules/time_r: New file.
36904         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
36905         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
36906
36907 2003-09-03  Paul Eggert  <eggert@twinsun.com>
36908
36909         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
36910         Bug reported by Lute Kamstra in
36911         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
36912
36913         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
36914         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
36915         course with correspondingly smaller numbers for tomorrow and
36916         yesterday.  From Tadayoshi Funaba.  Originally installed into
36917         sh-utils on 1999-08-07, but the patch got lost (I guess during the
36918         coreutils merge?).
36919
36920 2003-08-31  Simon Josefsson  <jas@extundo.com>
36921
36922         * modules/timegm: New file.
36923         * MODULES.html.sh (func_all_modules): Add timegm.
36924
36925 2003-08-31  Simon Josefsson  <jas@extundo.com>
36926
36927         * m4/timegm.m4: New file.
36928
36929 2003-08-31  Simon Josefsson  <jas@extundo.com>
36930
36931         * lib/timegm.h: New file.
36932         * lib/timegm.c: New file.  Based on
36933         wget-1.8.2/src/http.c:mktime_from_utc.
36934
36935 2003-08-31  Karl Berry  <karl@gnu.org>
36936
36937         * lib/argp.h: update from libc.
36938
36939 2003-08-28  Bruno Haible  <bruno@clisp.org>
36940
36941         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
36942         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
36943         followed by '#define fnmatch fnmatch_posix' gives an error.
36944
36945 2003-08-28  Bruno Haible  <bruno@clisp.org>
36946
36947         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
36948         warning on QNX, which defines O_BINARY to 000000.
36949
36950 2003-08-27  Jim Meyering  <jim@meyering.net>
36951
36952         * m4/mkstemp.m4: Require that the system mkstemp be able to create
36953         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
36954         would fail after 32.  Reported by Danny Levinson.  Details here:
36955         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
36956
36957 2003-08-24  Bruno Haible  <bruno@clisp.org>
36958
36959         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
36960         MSVC7 <stdio.h> is included later.
36961
36962 2003-08-22  Simon Josefsson  <jas@extundo.com>
36963
36964         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
36965
36966 2003-08-20  Karl Berry  <karl@gnu.org>
36967
36968         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
36969
36970 2003-08-20  Bruno Haible  <bruno@clisp.org>
36971
36972         * modules/progname: New file.
36973         * MODULES.html.sh (func_all_modules): Add progname.
36974
36975 2003-08-20  Bruno Haible  <bruno@clisp.org>
36976
36977         * lib/progname.h: New file, from GNU gettext.
36978         * lib/progname.c: New file, from GNU gettext.
36979         * lib/progreloc.c: New file, from GNU gettext.
36980
36981 2003-08-19  Jim Meyering  <jim@meyering.net>
36982
36983         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
36984         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
36985
36986 2003-08-19  Bruno Haible  <bruno@clisp.org>
36987
36988         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
36989         more.
36990
36991 2003-08-19  Bruno Haible  <bruno@clisp.org>
36992
36993         * lib/xstrdup.c: Assume <string.h> exists.
36994
36995 2003-08-18  Paul Eggert  <eggert@twinsun.com>
36996
36997         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
36998         in makefile rules.
36999
37000 2003-08-18  Jim Meyering  <jim@meyering.net>
37001
37002         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
37003         * m4/lib-ld.m4: Likewise.
37004
37005 2003-08-18  Jim Meyering  <jim@meyering.net>
37006
37007         * lib/setenv.h: Indent nested cpp directive.
37008         * lib/vasnprintf.c: Remove trailing blanks.
37009
37010 2003-08-17  Simon Josefsson  <jas@extundo.com>
37011
37012         * modules/xstrndup: New file.
37013         * MODULES.html.sh (func_all_modules): Add xstrndup.
37014
37015 2003-08-17  Simon Josefsson  <jas@extundo.com>
37016
37017         * modules/argp: Fix autoconf macro name. Add more dependencies.
37018
37019 2003-08-17  Simon Josefsson  <jas@extundo.com>
37020
37021         * m4/xstrndup.m4: New file.
37022
37023 2003-08-17  Simon Josefsson  <jas@extundo.com>
37024
37025         * m4/argp.m4: New file.
37026
37027 2003-08-17  Simon Josefsson  <jas@extundo.com>
37028             Bruno Haible  <bruno@clisp.org>
37029
37030         * lib/xstrndup.h: New file.
37031         * lib/xstrndup.c: New file.
37032
37033 2003-08-17  Bruno Haible  <bruno@clisp.org>
37034
37035         * modules/strndup (Files, Include): Add lib/strndup.h.
37036
37037 2003-08-17  Bruno Haible  <bruno@clisp.org>
37038
37039         * modules/euidaccess (Files): Add lib/euidaccess.h.
37040
37041 2003-08-17  Bruno Haible  <bruno@clisp.org>
37042
37043         * lib/strndup.h: New file.
37044
37045 2003-08-17  Bruno Haible  <bruno@clisp.org>
37046
37047         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
37048         like AC_GNU_SOURCE.
37049         * modules/extensions (configure.ac): Comment out the invocation of
37050         gl_USE_SYSTEM_EXTENSIONS.
37051
37052 2003-08-16  Paul Eggert  <eggert@twinsun.com>
37053
37054         Merges from coreutils, etc.
37055         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
37056         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
37057         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
37058         fixing a typo.
37059         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
37060         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
37061
37062 2003-08-16  Paul Eggert  <eggert@twinsun.com>
37063
37064         Document merge from coreutils.
37065         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
37066         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
37067         * modules/utime: Add m4/utimes-null.m4.
37068
37069 2003-08-16  Paul Eggert  <eggert@twinsun.com>
37070
37071         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
37072         space, undoing this 2003-08-12 change:
37073         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
37074
37075 2003-08-16  Paul Eggert  <eggert@twinsun.com>
37076
37077         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
37078         strtoul.c from libc, undoing this 2003-08-12 change:
37079         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
37080
37081 2003-08-16  Jim Meyering  <jim@meyering.net>
37082
37083         Merges from coreutils.
37084         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
37085         prefix.  Adjust cache variables similarly.  Create 500 rather than
37086         just 300 files, to exercise bug on Darwin6.5, too.
37087         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
37088         $missing_dir.
37089         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
37090         AM_SYS_POSIX_TERMIOS.
37091         Reported by mkc@mathdogs.com.
37092         Also change use of $am_cv_sys_posix_termios
37093         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
37094         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
37095         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
37096         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
37097         in /proc/mounts until it finds one with matching device number.  This
37098         is unnecessary when the FILE argument *is* a mount point.  No stat call
37099         is necessary in that case.  So, disable the statvfs-testing code on
37100         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
37101         as RedHat bug# 84846.
37102         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
37103         to 1MB, so as not to render systems with no stack size limit (e.g.,
37104         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
37105         Include <unistd.h>.  On some systems,
37106         it is required for the definition of _SC_PAGESIZE.
37107
37108 2003-08-16  Jim Meyering  <jim@meyering.net>
37109
37110         Merge from coreutils.
37111         * lib/xstrtoimax.c: #else #if -> #elif.
37112         * lib/xstrtoumax.c: Likewise.
37113
37114 2003-08-16  Jim Meyering  <jim@meyering.net>
37115
37116         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
37117         * m4/utimes.m4: Removed.
37118         * m4/utimes-null.m4: Renamed from utimes.m4.
37119
37120         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
37121         to 1MB, so as not to render systems with no stack size limit (e.g.,
37122         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
37123         Include <unistd.h>.  On some systems,
37124         it is required for the definition of _SC_PAGESIZE.
37125
37126 2003-08-16  Jim Meyering  <jim@meyering.net>
37127         and Paul Eggert  <eggert@cs.ucla.edu>
37128
37129         Merges from coreutils, etc.
37130
37131         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
37132         using the latest version from cvs.  This avoids problems with #line
37133         directives using a vendor (Sun) compiler.
37134         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
37135         Don't set GETGROUPS_LIB here; now it's
37136         done via getgroups.m4's wrapper function.
37137         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
37138         rather than just in sh-util/configure.in, so that the
37139         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
37140         same.
37141         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
37142         AC_FUNC_GETLOADAVG where to find getloadavg.c.
37143         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
37144         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
37145         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
37146         Remove code that is now done by the newly-required macros.
37147         Append $(EXEEXT) to DF_PROG.
37148         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
37149         Do not invoke or require the following here,
37150         since prereq.m4 or some gnulib .m4 now does this for us:
37151         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
37152         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
37153         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
37154         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
37155         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
37156         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
37157         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
37158         AC_FUNC_OBSTACK.
37159         Do not replace the following functions, as this is now the job
37160         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
37161         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
37162         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
37163         atexit getpass, strdup, getpagesize.
37164         Replace 'raise'.
37165         Do not check for the following functions, as this is now the job
37166         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
37167         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
37168         setregid.
37169         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
37170         Check for sys/sysctl.h.
37171         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
37172         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
37173         of checking for ssize_t ourselves.
37174
37175         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
37176         Require every macro that gnulib/modules/* suggests for us.
37177         (jm_PREREQ_ADDEXT): New macro.
37178         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
37179         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
37180
37181         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
37182         (gl_PHYSMEM): Use it.
37183         Also check for `table' function.
37184         Check for new headers and functions.
37185         Add check for sys/sysmp.h.
37186         With suggestions from Kaveh Ghazi.
37187         Ignore headers that are present but cannot be compiled.  This
37188         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
37189         C 5.4.
37190
37191 2003-08-15  Paul Eggert  <eggert@twinsun.com>
37192
37193         Document merge from coreutils.
37194         * modules/userspec: Depend on posixver.
37195         * modules/strftime: Depend on tzset.
37196
37197 2003-08-15  Paul Eggert  <eggert@twinsun.com>
37198
37199         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
37200         rather than tab, after '#' in shell-script copyright notices.
37201         Suggested by Bruno Haible.
37202
37203 2003-08-15  Paul Eggert  <eggert@twinsun.com>
37204
37205         * config/srclist-update: Use three spaces, rather than tab, after '#'
37206         in shell-script copyright notices.  Suggested by Bruno Haible.
37207         Remove unnecessary parenthesization in regular expression.
37208
37209 2003-08-15  Jim Meyering  <jim@meyering.net>
37210
37211         Merge from coreutils.
37212         * lib/xgethostname.c: Include <stdlib.h>.
37213         (xghostname): Don't exit for anything other than memory-related
37214         failure; just return NULL.
37215         * lib/userspec.c: Include "posixver.h".
37216         (parse_user_spec): Accept `.' as a separator only
37217         in pre-POSIX-200112 mode.
37218         * lib/strtoimax.c: Use #elif rather than #else #if.
37219         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
37220         Remove function, now that we can rely on a working tzset function.
37221         [!_LIBC]: Ensure that the required autoconf test has been run.
37222         [!defined _NL_CURRENT && HAVE_STRFTIME]:
37223         Use underlying_strftime for %r.
37224         * lib/sha.c: Merge in some clean-up and optimization changes from
37225         glibc.
37226         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
37227         Ensure that it is a multiple of 64.
37228         Rearrange loop exit tests so as to avoid performing an
37229         additional fread after encountering an error or EOF.
37230         * lib/realloc.c: Update copyright date.
37231
37232 2003-08-15  Jim Meyering  <jim@meyering.net>
37233         and Paul Eggert  <eggert@twinsun.com>
37234
37235         Merge from coreutils.
37236         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
37237         member but strut utmpx does not.  Needed for AIX 4.3.3.
37238         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
37239
37240 2003-08-15  Jim Meyering  <jim@meyering.net>
37241         and Paul Eggert  <eggert@cs.ucla.edu>
37242
37243         Merges from coreutils, etc.
37244         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
37245         Require gl_FUNC_TZSET_CLOBBER.
37246         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
37247         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
37248         members.
37249
37250 2003-08-14  Paul Eggert  <eggert@twinsun.com>
37251
37252         Help the merge from coreutils.
37253         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
37254         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
37255         * m4/tzset.m4: Use it too.
37256
37257 2003-08-14  Paul Eggert  <eggert@twinsun.com>
37258
37259         * modules/tzset: New file.
37260
37261 2003-08-14  Jim Meyering  <jim@meyering.net>
37262
37263         Merges from coreutils.
37264         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
37265         variable names, rather than @FNMATCH_H@.
37266         * modules/alloca: Likewise for $(ALLOCA_H).
37267
37268         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
37269         the three copies of the literal target, `fnmatch.h'.
37270         * modules/alloca (alloca.h): Likewise.
37271
37272 2003-08-14  Jim Meyering  <jim@meyering.net>
37273
37274         Merge from coreutils.
37275         * m4/tzset.m4: New file.
37276         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
37277         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
37278         otherwise, AIX 5.1 systems would end up using the latter.
37279         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
37280         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
37281         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
37282         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
37283
37284 2003-08-14  Jim Meyering  <jim@meyering.net>
37285
37286         Merge from coreutils.
37287         * lib/obstack.h: Whitespace changes.
37288         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
37289         and xcalloc return values.
37290         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
37291         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
37292         hang on OSF/1 5.1 for DIR on both local and remote file systems.
37293         Reported by (and fix confirmed by) Nelson H. F. Beebe.
37294         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
37295         error from mntctl.
37296         Use mntctl's return value to drive the entry-processing loop, since
37297         we can't rely on the value of the vmt_length member in the last
37298         entry.  On some systems doing so could result in exhausting
37299         virtual memory.  Based in part on a patch from Mike Jetzer.
37300
37301 2003-08-14  Jim Meyering  <jim@meyering.net>
37302         and Paul Eggert  <eggert@twinsun.com>
37303
37304         Merges from coreutils, plus other fixes.
37305         * lib/physmem.c: Merge in portability changes from gcc/libiberty
37306         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
37307         for credits and details.  Thanks to Kaveh Ghazi for helping
37308         to keep these files in sync.
37309         (ARRAY_SIZE): Define it.
37310         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
37311         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
37312         (memcasecmp): Don't assume size_t fits in unsigned int.
37313         Remove casts and duplicate code.
37314         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
37315         (memcpy): Remove definition.
37316         Merge in some clean-up and optimization changes from glibc.
37317         [BLOCKSIZE]: Move definition to top of file.
37318         Ensure that it is a multiple of 64.
37319         Rearrange loop exit tests so as to avoid performing an
37320         additional fread after encountering an error or EOF.
37321         * lib/md5.h (md5_uintptr): Define.
37322         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
37323         return to the initial working directory.  Preserve errno
37324         for caller.
37325         * lib/idcache.c: Include "xalloc.h".
37326         (xmalloc, xrealloc): Remove decls.
37327         (getuser): Remove casts no longer required in C89.
37328         * lib/human.c: Include stdio.h, for sprintf.
37329         * lib/group-member.c: Include "xalloc.h".
37330         (xmalloc, xrealloc): Remove decls.
37331         (get_group_info): Remove casts no longer required in C89.
37332         * lib/getusershell.c (readname): Remove casts no longer required in
37333         C89.
37334         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
37335         * lib/getline.c: Whitespace fix, from coreutils.
37336
37337 2003-08-13  Paul Eggert  <eggert@twinsun.com>
37338
37339         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
37340         Check for isascii.
37341
37342         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
37343         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
37344         Undo previous (whitespace-only) change.
37345
37346 2003-08-13  Paul Eggert  <eggert@twinsun.com>
37347
37348         * lib/exclude.c: Include <ctype.h>
37349         (IN_CTYPE_DOMAIN): New macro.
37350         (is_space): New fn.
37351         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
37352         and empty lines.
37353
37354         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
37355         Undo previous (whitespace-only) change.
37356
37357 2003-08-13  Paul Eggert  <eggert@twinsun.com>
37358
37359         * config/srclist-update: Change update back to the old behavior,
37360         leaving whitespace alone.  Use one 'sed' command rather than a
37361         pipeline.
37362         (fixlicense): Now a variable, not a function.
37363         (remove_trailing_blanks): Remove.
37364         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
37365         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
37366         Undo previous (whitespace-only) change.
37367
37368 2003-08-12  Paul Eggert  <eggert@twinsun.com>
37369
37370         Merge from coreutils.
37371         * modules/euidaccess: Add lib_SOURCES, include for new
37372         file euidaccess.h
37373
37374 2003-08-12  Paul Eggert  <eggert@twinsun.com>
37375
37376         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
37377         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
37378         Normalize leading white space and remove trailing white space.
37379
37380         Merge from coreutils
37381         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
37382
37383         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
37384         0.12.1.  These files are now being upgraded automatically by
37385         ../config/srclist-update.
37386
37387 2003-08-12  Paul Eggert  <eggert@twinsun.com>
37388
37389         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
37390         Normalize leading white space and remove trailing white space.
37391         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
37392         notice, as per ../config/srclist-update.
37393
37394         Merge from coreutils.
37395         * lib/euidaccess.h: New file.
37396         * lib/euidaccess.c: Include it.
37397         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
37398         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
37399         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
37400
37401 2003-08-12  Paul Eggert  <eggert@twinsun.com>
37402
37403         * config/srclist-update: Add copyright notice.
37404         (remove_id_lines, remove_trailing_blanks): New constants.
37405         (fixfile): Use them to normalize spacing a bit in copied files.
37406         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
37407         Normalize leading white space and remove trailing white space.
37408
37409         * config/texinfo.tex: Sync with texinfo.
37410
37411         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
37412         strtoul.c from libc, to merge coreutils whitespace changes.
37413
37414         * config/srclist.txt: Get the following m4 files from gettext:
37415         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
37416         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
37417         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
37418         wint_t.m4.
37419
37420 2003-08-12  Karl Berry  <karl@gnu.org>
37421
37422         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
37423         been made.
37424
37425 2003-08-11  Paul Eggert  <eggert@twinsun.com>
37426
37427         * modules/gnu-source, m4/gnu-source.m4:
37428         Remove; we're assuming Autoconf 2.54 or later now.
37429         Suggested by Bruno Haible.
37430         * MODULES.html.sh (func_all_modules): Remove gnu-source.
37431
37432 2003-08-11  Bruno Haible  <bruno@clisp.org>
37433
37434         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
37435
37436 2003-08-11  Bruno Haible  <bruno@clisp.org>
37437
37438         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
37439         (vasnprintf): Use it instead of wcslen.
37440
37441 2003-08-11  Bruno Haible  <bruno@clisp.org>
37442
37443         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
37444         value to ensure that _Bool promotes to int. Use #define for _Bool when
37445         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
37446
37447 2003-08-10  Karl Berry  <karl@gnu.org>
37448
37449         * lib/regex.h: update from libc (whitespace fix).
37450
37451 2003-08-09  Paul Eggert  <eggert@twinsun.com>
37452
37453         Merge some files from coreutils.  These changes were
37454         originally made by Jim Meyering.
37455         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
37456         many older Unixes require this.
37457         * lib/alloca.c (alloca): Remove cast to argument of free;
37458         no longer needed in C89.
37459         * lib/alloca_.h, regex.h: Fix white space to match
37460         what GNU indent does.
37461
37462 2003-08-09  Paul Eggert  <eggert@twinsun.com>
37463
37464         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
37465         apparently Emacs's Unicode mode got confused before my 2003-08-05
37466         checkin.
37467
37468 2003-08-08  Paul Eggert  <eggert@twinsun.com>
37469
37470         * m4/extensions.m4: New file.
37471         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
37472         Require gl_USE_SYSTEM_EXTENSIONS.
37473         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
37474         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
37475
37476 2003-08-08  Paul Eggert  <eggert@twinsun.com>
37477
37478         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
37479         * modules/extensions, modules/gnu-source: New files.
37480         * modules/timespec, modules/unlocked-io: Depend on extensions.
37481
37482 2003-08-07  Paul Eggert  <eggert@twinsun.com>
37483
37484         * modules/restrict: New file.
37485         * MODULES.html.sh (func_all_modules): Add restrict.
37486         * modules/regex: Depend on restrict.
37487
37488 2003-08-07  Paul Eggert  <eggert@twinsun.com>
37489
37490         * m4/restrict.m4: New file.
37491         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
37492
37493 2003-08-07  Bruno Haible  <bruno@clisp.org>
37494
37495         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
37496         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
37497
37498 2003-08-07  Bruno Haible  <bruno@clisp.org>
37499
37500         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
37501         makes the module 'getndelim2' compatible with the module 'getline'.
37502
37503 2003-08-05  Paul Eggert  <eggert@twinsun.com>
37504
37505         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
37506         byte with "\201" to avoid glitches when editing that source file
37507         with multi-gnome-terminal.
37508
37509 2003-08-05  Paul Eggert  <eggert@twinsun.com>
37510
37511         * lib/bumpalloc.h: Remove.
37512
37513 2003-08-05  Paul Eggert  <eggert@twinsun.com>
37514
37515         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
37516         * modules/bumpalloc: Remove.
37517
37518 2003-08-04  Paul Eggert  <eggert@twinsun.com>
37519
37520         * lib/getloadavg.c: Change copyright notice and spacing to conform to
37521         GNU coding style.
37522
37523         Merge from coreutils.
37524         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
37525         1. From glibc.
37526         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
37527         from Karl Berry, implemented by Jim Meyering.
37528         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
37529         from Dmitry V. Levin.
37530         Remove anachronistic cast of xrealloc.
37531         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
37532         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
37533         type. Otherwise, it wouldn't compile with at least /bin/cc on
37534         ymp-cray-unicos9.0.2.X.
37535         Combine two mostly-identical uses of alloca into one.
37536         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
37537
37538 2003-08-04  Dave Love  <d.love@dl.ac.uk>
37539
37540         [From Emacs.]
37541
37542         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
37543         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
37544         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
37545         obsolete NLIST_NAME_UNION.
37546         [__GNU__]: Undef BSD and FSCALE.
37547         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
37548
37549 2003-08-03  Paul Eggert  <eggert@twinsun.com>
37550
37551         * lib/stdbool_.h (_Bool): Make it signed char, instead of
37552         an enum type, so that it's guaranteed to promote to int.  See:
37553         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
37554
37555 2003-08-03  Karl Berry  <karl@gnu.org>
37556
37557         * config/depcomp: update from automake.
37558
37559 2003-07-31  Paul Eggert  <eggert@twinsun.com>
37560
37561         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
37562         (strerror): Don't assume that a printable int fits in 14 bytes.
37563
37564 2003-07-31  Bruno Haible  <bruno@clisp.org>
37565
37566         * modules/getpass-gnu: New file.
37567         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
37568
37569 2003-07-31  Bruno Haible  <bruno@clisp.org>
37570
37571         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
37572
37573 2003-07-24  Karl Berry  <karl@gnu.org>
37574
37575         * config/missing: update from automake.
37576
37577 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
37578             Bruno Haible  <bruno@clisp.org>
37579
37580         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
37581         * lib/getline.c (getline, getdelim): Likewise.
37582         Remove _GNU_SOURCE define; now it's defined in config.h through
37583         m4/getline.m4.
37584
37585 2003-07-23  Karl Berry  <karl@gnu.org>
37586
37587         * config/config.sub: update from prep.
37588
37589 2003-07-22  Paul Eggert  <eggert@twinsun.com>
37590
37591         * modules/xalloc (Depends-on): Add exitfail.
37592         * modules/xmemcoll: Likewise.
37593
37594 2003-07-22  Paul Eggert  <eggert@twinsun.com>
37595
37596         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
37597         over-parenthesization in macros.
37598
37599         Sync with coreutils.
37600
37601         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
37602         required by C99.
37603
37604         Use `exit_failure' for xalloc and xmemcoll instead of their own
37605         private exit-failure variables.
37606         * lib/xalloc.h (xalloc_exit_failure): Remove.
37607         * lib/xmalloc.c: Likewise.  Include exitfail.h.
37608         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
37609         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
37610         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
37611         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
37612
37613 2003-07-20  Jim Meyering  <jim@meyering.net>
37614
37615         * modules/closeout (Depends-on): Add exitfail.
37616         Suggestion from Bruno Haible.
37617
37618 2003-07-19  Karl Berry  <karl@gnu.org>
37619
37620         * config/config.sub: update from prep.
37621
37622 2003-07-18  Paul Eggert  <eggert@twinsun.com>
37623
37624         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
37625         Remove.
37626         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
37627         to test that it can stand by itself.  Include "exitfail.h".
37628         Clients should set exit_failure instead.
37629         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
37630
37631 2003-07-18  Bruno Haible  <bruno@clisp.org>
37632
37633         * modules/getndelim2: New file.
37634         * modules/getline: Share files with module getndelim2.
37635         * modules/getnline: Depend on getndelim2 instead of sharing files with
37636         it. Add getnline.c to lib_SOURCES.
37637         * MODULES.html.sh (func_all_modules): Add getndelim2.
37638
37639 2003-07-18  Bruno Haible  <bruno@clisp.org>
37640
37641         * m4/getndelim2.m4: New file.
37642         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
37643         invoke gl_PREREQ_GETNDELIM2.
37644         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
37645         gl_PREREQ_GETNDELIM2.
37646         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
37647         gl_GETNDELIM2.
37648
37649 2003-07-18  Bruno Haible  <bruno@clisp.org>
37650
37651         * lib/getndelim2.h: New file.
37652         * lib/getndelim2.c: Make into a module of its own. Include config.h,
37653         getndelim2.h.
37654         (getndelim2): Make non-static. Change return type to ssize_t.
37655         * lib/getline.h: Change argument names.
37656         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
37657         * lib/getnline.c: Include getndelim2.h.
37658
37659 2003-07-18  Andreas Schwab  <schwab@suse.de>
37660
37661         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
37662
37663 2003-07-17  Karl Berry  <karl@gnu.org>
37664
37665         * config/config.sub: update from prep.
37666
37667 2003-07-17  Bruno Haible  <bruno@clisp.org>
37668
37669         * modules/getnline: New file.
37670         * modules/getline: Add lib/getndelim2.c to source file list.
37671         * MODULES.html.sh (func_all_modules): Add getnline.
37672
37673 2003-07-17  Bruno Haible  <bruno@clisp.org>
37674
37675         * m4/getnline.m4: New file.
37676
37677 2003-07-17  Bruno Haible  <bruno@clisp.org>
37678
37679         * m4/Makefile.am.in: Remove file.
37680         * m4/Makefile.am: Remove file.
37681         * m4/Makefile.in: Remove file.
37682
37683 2003-07-17  Bruno Haible  <bruno@clisp.org>
37684
37685         * lib/getnline.h: New file.
37686         * lib/getnline.c: New file.
37687         * lib/getndelim2.c: New file, extracted from getline.c.
37688         (getndelim2): Renamed from getdelim2, with added nmax argument.
37689         * lib/getline.c: Include getndelim2.c.
37690         (getdelim2): Moved out to getndelim2.c.
37691         (getline, getdelim): Update.
37692
37693 2003-07-17  Bruno Haible  <bruno@clisp.org>
37694
37695         * lib/Makefile.am: Remove file.
37696         * lib/Makefile.in: Remove file.
37697
37698 2003-07-17  Bruno Haible  <bruno@clisp.org>
37699
37700         * configure.in: Remove file.
37701         * Makefile.in: Remove file.
37702
37703 2003-07-17  Bruno Haible  <bruno@clisp.org>
37704
37705         * MODULES.html.sh: Put the </BODY> right before </HTML>.
37706
37707 2003-07-16  Karl Berry  <karl@gnu.org>
37708
37709         * config/srclist-update: was running fixlicense twice, which caused
37710                 texinfo.tex to be nullified for some reason.  Simplify,
37711                 $gplsrc is no longer needed as far as I can see?
37712
37713 2003-07-16  Jim Meyering  <jim@meyering.net>
37714
37715         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
37716
37717 2003-07-15  Paul Eggert  <eggert@twinsun.com>
37718
37719         * config/srclist.txt: Get the following files from gettext-runtime/intl
37720         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
37721         ref-del.sin.  From Bruno Haible.
37722         * config/srclist-update (fixfile): Change grep pattern again, since the
37723         previous fix didn't work (there was another trailing $).  Use
37724         '[$]' to escape the $s.
37725
37726 2003-07-15  Karl Berry  <karl@gnu.org>
37727
37728         * lib/vasnprintf.c: update from gettext.
37729
37730 2003-07-15  Karl Berry  <karl@gnu.org>
37731
37732         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
37733         gets expanded when surrounded by '$'.
37734
37735 2003-07-15  Jim Meyering  <jim@meyering.net>
37736
37737         * modules/save-cwd: Don't depend on error.  From Derek Price.
37738
37739 2003-07-15  Jim Meyering  <jim@meyering.net>
37740
37741         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
37742
37743 2003-07-14  Simon Josefsson  <jas@extundo.com>
37744
37745         * modules/mempcpy: New file.
37746         * MODULES.html.sh (func_all_modules): Add mempcpy.
37747
37748 2003-07-14  Simon Josefsson  <jas@extundo.com>
37749
37750         * m4/mempcpy.m4: New file.
37751
37752 2003-07-14  Simon Josefsson  <jas@extundo.com>
37753
37754         * lib/mempcpy.h: New file.
37755         * lib/mempcpy.c: New file.
37756
37757 2003-07-14  Paul Eggert  <eggert@twinsun.com>
37758
37759         * modules/getdate, modules/posixtm: Depend on mktime.
37760
37761 2003-07-14  Paul Eggert  <eggert@twinsun.com>
37762
37763         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
37764         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
37765         unicodeio.c, unicodeio.h, unlocked-io.h:
37766         Switch from LGPL to GPL.
37767
37768 2003-07-14  Paul Eggert  <eggert@twinsun.com>
37769
37770         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
37771         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
37772         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
37773         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
37774         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
37775         updated automatically by ../config/srclist-update.  This changes
37776         their license from LPGL to GPL.
37777
37778 2003-07-14  Paul Eggert  <eggert@twinsun.com>
37779
37780         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
37781         assumed to refer to the root of the most recent stable gettext version.
37782         * config/srclistvars.sh: Add defaults for eggert.
37783         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
37784         Match "This program" as well as "The program".  This is needed
37785         for gettext.
37786
37787 2003-07-14  Jim Meyering  <jim@meyering.net>
37788
37789         Don't emit diagnostics.  Let callers do that.
37790         * lib/save-cwd.c: Don't include "error.h".
37791         (save_cwd): Don't call error.  Ensure that errno is valid
37792         when returning nonzero.
37793
37794         * lib/save-cwd.h (restore_cwd): Update prototype.
37795         * lib/save-cwd.c (restore_cwd): Remove two parameters.
37796         Simplify.  Don't call error upon failure.  Let callers do that.
37797         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
37798         when auditing is enabled.  But don't bother updating the #if.
37799
37800 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
37801
37802         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
37803         it breaks C++ compilation.
37804         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
37805
37806 2003-07-10  Simon Josefsson  <jas@extundo.com>
37807
37808         * modules/strchrnul (Makefile.am): Add strchrnul.h.
37809
37810 2003-07-10  Jim Meyering  <jim@meyering.net>
37811
37812         * m4/clock_time.m4: Remove trailing blank.
37813         * m4/intmax_t.m4: Likewise.
37814
37815 2003-07-10  Jim Meyering  <jim@meyering.net>
37816
37817         * lib/vasnprintf.c: Remove trailing blanks.
37818         Make cpp indentation consistent.
37819
37820 2003-07-09  Paul Eggert  <eggert@twinsun.com>
37821
37822         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
37823         posixver.c, strftime.c, strnlen.c, strverscmp.c:
37824         Switch from LGPL to GPL.
37825
37826 2003-07-09  Paul Eggert  <eggert@twinsun.com>
37827
37828         * config/srclist.txt: Sort sublists.  Add
37829         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
37830         that differ from gnulib for one reason or another; we'd like this list
37831         to be smaller but for now let's document what we have.
37832
37833 2003-07-08  Paul Eggert  <eggert@twinsun.com>
37834
37835         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
37836         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
37837         and sweeter "eval x=$x".
37838         * config/srclist.txt: Get lib/argp* from glibc.
37839
37840 2003-07-07  Paul Eggert  <eggert@twinsun.com>
37841
37842         * lib/mktime.c: Fix some boundary cases and remove need for floating
37843         point.
37844
37845         Issue a compile-time diagnostic if time_t is floating point, or if
37846         two's complement arithmetic is not in effect, or if arithmetic
37847         right shift does not propagate the sign.  These assumptions were
37848         all in the original code but they weren't checked.
37849
37850         (TIME_T_MIDPOINT, verify): New macros.
37851         (__isleap): Remove; it has integer overflow problems.
37852         (leapyear): New function, without those problems.
37853         (ydhms_tm_diff): Remove; splitting into two parts.
37854         (ydhms_diff): New function, containing the arithmetic part of
37855         the old ydhms_tm_diff function.  Issue a compile-time
37856         diagnostic if we are not using C99 integer division.
37857         Avoid casts when possible.
37858         (guess_time_tm): New function, containing the checking part of
37859         the old ydhms_tm_diff function.  Return the new value, rather than
37860         the difference between it and the old.  Accept a new argument T
37861         so that *T specifies the old value.  Check for overflow in the result.
37862
37863         (__mktime_internal): Use a time_t offset, not a long int offset.
37864         This undoes the 2003-06-04 change, which is no longer needed now
37865         that we have better overflow checking.
37866         (localtime_offset): Likewise.
37867
37868         (__mktime_internal): Avoid harmful overflow on hosts where time_t
37869         and long are 64-bit but int is only 32-bit.
37870         (ydhms_diff): Use long int to store year1 and yday1.
37871         Issue a compile-time diagnostic if long int is not wide enough.
37872
37873         (__mktime_internal): Use long int to store adjusted year and yday.
37874         Use plain C rather than preprocessor commands, if that doesn't
37875         affect efficiency.
37876         Check for overflow (and try to repair) after each probe
37877         rather than checking only at the very end.  This avoids some bugs
37878         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
37879         does not equal GMT offset at maximum time).
37880         Use integer to check for overflow rather than floating point; this
37881         is more portable to non-IEEE hosts, and is a tad faster.
37882         When we detect that we are oscillating between two values,
37883         don't check whether tm_isdst has the requested value, since
37884         we already know the answer.  When tm_isdst has the wrong value,
37885         use a different heuristic to find the right one, based on the
37886         extreme values actually observed in practice in tz2003a,
37887         rather than the (overly optimistic) "previous 3 calendar quarters".
37888
37889         (not_equal_tm, print_tm, check_result): Use "const T" rather than
37890         "T const" to accommodate glibc style.
37891         (check_result): Use less-confusing report format.  "long" -> "long int.
37892         (main): Likewise.
37893         Don't loop if the iteration overflows time_t.
37894         Allow a negative step in the iteration.
37895
37896 2003-07-06  Karl Berry  <karl@gnu.org>
37897
37898         * config/depcomp: update from automake.
37899         * config/config.sub: update from prep.
37900
37901 2003-07-03  Karl Berry  <karl@gnu.org>
37902
37903         * config/config.guess: update from prep.
37904
37905 2003-07-01  Paul Eggert  <eggert@twinsun.com>
37906
37907         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
37908         xreadlink.c now includes it unconditionally.
37909
37910 2003-07-01  Paul Eggert  <eggert@twinsun.com>
37911
37912         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
37913         having it depend on HAVE_SYS_TYPES_H.
37914
37915 2003-07-01  Bruno Haible  <bruno@clisp.org>
37916
37917         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
37918         <sys/types.h> should be sufficient.
37919         Reported by Paul Eggert.
37920
37921 2003-06-26  Karl Berry  <karl@gnu.org>
37922
37923         * config/depcomp: update from automake.
37924
37925 2003-06-26  Bruno Haible  <bruno@clisp.org>
37926
37927         * modules/human: Depend on module stdbool.
37928
37929 2003-06-25  Bruno Haible  <bruno@clisp.org>
37930
37931         * modules/readlink: New file.
37932         * modules/xreadlink: Depend on it.
37933         * MODULES.html.sh (func_all_modules): Add readlink.
37934
37935 2003-06-25  Bruno Haible  <bruno@clisp.org>
37936
37937         * m4/readlink.m4: New file.
37938
37939 2003-06-25  Bruno Haible  <bruno@clisp.org>
37940
37941         * lib/readlink.c: New file.
37942
37943 2003-06-22  Karl Berry  <karl@gnu.org>
37944
37945         * config/srclist.txt: update mkinstalldirs from automake.
37946         * config/mkinstalldirs: update.
37947
37948 2003-06-22  Bruno Haible  <bruno@clisp.org>
37949
37950         Portability to mingw32.
37951         * m4/ssize_t.m4: New file, from GNU gettext.
37952         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
37953         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
37954
37955 2003-06-22  Bruno Haible  <bruno@clisp.org>
37956
37957         * modules/safe-read: Add m4/ssize_t.m4.
37958         * modules/xreadlink: Add m4/ssize_t.m4.
37959
37960 2003-06-20  Bruno Haible  <bruno@clisp.org>
37961
37962         Assume C89, so PARAMS isn't needed.
37963         * lib/unicodeio.h (PARAMS): Remove.
37964         * lib/unicodeio.c: Don't use PARAMS.
37965
37966 2003-06-18  Karl Berry  <karl@gnu.org>
37967
37968         * config/config.{guess,sub}: update from prep.
37969
37970 2003-06-18  Jim Meyering  <jim@meyering.net>
37971
37972         Merge changes from coreutils.
37973         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
37974         Remove explicit declarations of xmalloc and realloc.
37975         Include xalloc.h.
37976         (read_utmp): Remove anachronistic cast of xmalloc.
37977
37978 2003-06-17  Paul Eggert  <eggert@twinsun.com>
37979
37980         Assume C89, so PARAMS isn't needed.
37981         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
37982         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
37983         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
37984         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
37985         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
37986         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
37987         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
37988         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
37989         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
37990         lib/xstrtod.h, lib/xstrtol.h: Likewise.
37991         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
37992         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
37993         no longer needed. Anyway, config.h should always be included before any
37994         other file.
37995
37996 2003-06-11  Simon Josefsson  <jas@extundo.com>
37997
37998         * modules/sysexits: New file.
37999         * MODULES.html.sh (func_all_modules): Add sysexits.
38000
38001 2003-06-11  Simon Josefsson  <jas@extundo.com>
38002
38003         * lib/sysexit_.h: New file.
38004
38005 2003-06-11  Derek Price  <derek@ximbiot.com>
38006
38007         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
38008         necessary.
38009
38010 2003-06-11  Bruno Haible  <bruno@clisp.org>
38011
38012         * m4/sysexits.m4: New file.
38013
38014 2003-06-10  Simon Josefsson  <jas@extundo.com>
38015
38016         * lib/argp.h: New file, from glibc.
38017         * lib/argp-ba.c: New file, from glibc.
38018         * lib/argp-eexst.c: New file, from glibc.
38019         * lib/argp-fmtstream.c: New file, from glibc.
38020         * lib/argp-fmtstream.h: New file, from glibc.
38021         * lib/argp-fs-xinl.c: New file, from glibc.
38022         * lib/argp-help.c: New file, from glibc.
38023         * lib/argp-namefrob.h: New file, from glibc.
38024         * lib/argp-parse.c: New file, from glibc.
38025         * lib/argp-pv.c: New file, from glibc.
38026         * lib/argp-pvh.c: New file, from glibc.
38027         * lib/argp-xinl.c: New file, from glibc.
38028
38029 2003-06-10  Simon Josefsson  <jas@extundo.com>
38030
38031         * modules/strchrnul: New file.
38032
38033 2003-06-10  Simon Josefsson  <jas@extundo.com>
38034
38035         * modules/argp: New file.
38036
38037 2003-06-10  Simon Josefsson  <jas@extundo.com>
38038
38039         * m4/strchrnul.m4: New file.
38040
38041 2003-06-10  Simon Josefsson  <jas@extundo.com>
38042
38043         * lib/strchrnul.h: New file.
38044         * lib/strchrnul.c: New file.
38045
38046 2003-06-10  Bruno Haible  <bruno@clisp.org>
38047
38048         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
38049
38050 2003-06-07  Karl Berry  <karl@gnu.org>
38051
38052         * config/config.{guess,sub}: update from prep.
38053
38054 2003-06-07  Jim Meyering  <jim@meyering.net>
38055
38056         * modules/strtod: Use $(...) notation, not @...@ for
38057         AC_REPLACE'd variables.
38058         * modules/localcharset: Likewise.
38059
38060 2003-06-07  Jim Meyering  <jim@meyering.net>
38061
38062         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
38063         in place of my name in the copyright comment.
38064         Remove definition and uses of __P.
38065
38066         From coreutils.
38067         * lib/stat.c: Don't declare xmalloc explicitly.
38068         Instead, include "xalloc.h".
38069         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
38070         xrealloc, and xcalloc return values.
38071         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
38072         Improve comment.
38073         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
38074
38075 2003-06-07  Bruno Haible  <bruno@clisp.org>
38076
38077         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
38078         avoid AC_CONFIG_LINKS.
38079         * modules/fnmatch (Makefile.am): Use explicit creation rule for
38080         fnmatch.h, to avoid AC_CONFIG_LINKS.
38081         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
38082
38083 2003-06-07  Bruno Haible  <bruno@clisp.org>
38084
38085         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
38086         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
38087         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
38088         directory.
38089         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
38090         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
38091         directory.
38092
38093 2003-06-06  Jim Meyering  <jim@meyering.net>
38094
38095         Merge from coreutils.
38096         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
38097         Consolidate declarations and initializations of *_base* locals.
38098
38099         Merge from coreutils.
38100         This avoids a core dump on systems without GNU putenv,
38101         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
38102         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
38103         (unsetenv): New static function, from GNU libc.
38104         (rpl_putenv): Use it.
38105
38106         * lib/modechange.c: Remove trailing blanks.
38107
38108         Merge from coreutils.
38109         * lib/fsusage.c: Remove declaration of statfs.
38110         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
38111
38112         * lib/posixtm.c: Include <stdbool.h> unconditionally.
38113
38114 2003-06-06  Jim Meyering  <jim@meyering.net>
38115
38116         * lib/stdbool_.h: Renamed from stdbool.h.in.
38117
38118 2003-06-06  Jim Meyering  <jim@meyering.net>
38119             Bruno Haible  <bruno@clisp.org>
38120
38121         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
38122         Adjust Makefile.am snippet not to redirect directly to target.
38123         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
38124
38125 2003-06-05  Paul Eggert  <eggert@twinsun.com>
38126
38127         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
38128         mismatch, look in future quarters as well as past.  This fixes a
38129         bug when processing fall-backwards gaps immediately after a long
38130         period of daylight-saving time.
38131
38132         * lib/mktime.c: Assume freestanding C89 or better.
38133         (HAVE_LIMITS_H): Remove.  Assume it's 1.
38134         (__P): Remove; not used.
38135         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
38136         (mktime, not_equal_tm, print_tm, check_result,
38137         main): Use prototypes.  Use const * where appropriate.
38138         (main): Fix typo in testing code that uncovered by above changes.
38139         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
38140
38141 2003-06-04  Paul Eggert  <eggert@twinsun.com>
38142
38143         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
38144         locale.h, localeconv.  This merges changes from coreutils.
38145
38146         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
38147         It can be removed after the next Autoconf is released.
38148         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
38149         needed.
38150
38151 2003-06-04  Paul Eggert  <eggert@twinsun.com>
38152
38153         * lib/mktime.c: Fix Debian bug 177940
38154         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
38155         (localtime_offset): Now long int, not time_t, because we want it
38156         to be guaranteed to be signed.  All uses changed.
38157         (__mktime_internal): If overflow would occur when adding offset,
38158         don't add it.
38159
38160         Merge 'human' changes from coreutils.  Rewrite to support
38161         locale-specific notations like thousands separators.
38162         * lib/human.c: Simplify authorship notice.
38163         Include human.h immediately after config.h.
38164         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
38165         <limits.h>: Do not include, since human.h does.
38166         (SIZE_MAX, UINTMAX_MAX): New macros.
38167         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
38168         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
38169         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
38170         (power_letter): Renamed from suffixes.
38171         (generate_suffix_backwards): Remove.
38172         (adjust_value): Now takes int style (because of human.h changes)
38173         and long double value (for greater precision on some platforms).
38174         (group_number): New function.
38175         (human_readable): Use it.  Use integer options, not enum.
38176         Put the options before the sizes in the arg list.
38177         Support all the new options.
38178         The old human_readable function has been removed;
38179         use inttostr.h instead.
38180         (human_readable, default_block_size, humblock):
38181         Use uintmax_t, not int, for block sizes.
38182         (human_readable_inexact, block_size_types): Remove.
38183         (block_size_opts): New constant.
38184         (human_options): Renamed from human_block_size, with new signature
38185         that allows block sizes up to UINTMAX_MAX.  All callers changed.
38186         * lib/human.h: Add copyright and authorship notice.
38187         Include <limits.h> and <stdbool.h> unconditionally.
38188         (PARAMS): Remove.  All uses removed.
38189         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
38190         (enum human_inexact_style): Remove tag; now a nameless enum.
38191         (human_floor, human_ceiling, human_round_to_even): Now have
38192         values 2, 0, 1 rather than -1, 1, 0.
38193         (human_group_digits, human_suppress_point_zero, human_autoscale,
38194         human_base_1024, human_SI, human_B): New constants.
38195         (human_readable_inexact, human_block_size): Remove.
38196         (human_readable): Size args are now uintmax_t, not int.
38197         (human_options): New decl.
38198
38199         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
38200         unnecessary now that we assume C89 or better.  This change
38201         imported from coreutils.
38202
38203         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
38204         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
38205         in the 2003-05-30 sync from glibc.
38206
38207         .h files should stand alone, but we shouldn't include <sys/types.h>
38208         if we can get away with just <stddef.h>.
38209
38210         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
38211         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
38212         rather than <sys/types.h>, as we merely need size_t.
38213         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
38214         to get size_t.
38215         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
38216         Include <stdio.h>, to get FILE.
38217         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
38218         memcasecmp.h has included <stddef.h> and all we need is size_t.
38219         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
38220         our interface, instead of including <sys/types.h>
38221
38222 2003-06-04  Paul Eggert  <eggert@twinsun.com>
38223
38224         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
38225         now, as glibc mktime is buggy on non-glibc systems.
38226
38227 2003-06-03  Karl Berry  <karl@gnu.org>
38228
38229         * config/config.sub: update from prep.
38230
38231 2003-06-02  Paul Eggert  <eggert@twinsun.com>
38232
38233         [from coreutils]
38234         Fix some minor time-related bugs with POSIX time arguments.
38235         Some valid time stamps were being rejected (notably -1, and
38236         time stamps before 1900 on 64-bit hosts).  And some invalid
38237         time stamps were being accepted, e.g. September 31.
38238
38239         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
38240         that we can return (time_t) -1 successfully.
38241         * lib/posixtm.c: Likewise.
38242         [HAVE_STDBOOL_H]: Include <stdbool.h>.
38243         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
38244         (t): Remove static var.
38245         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
38246         of static var.  All uses changed.
38247         (year): Do not reject years before 1900; they can occur with
38248         64-bit time_t.
38249         (posix_time_parse): Do not check for out-of-range components;
38250         that is now the caller's responsibility, since our checks were
38251         only approximations.
38252         (posixtime): Use mktime to check for out-of-range components,
38253         since it knows them exactly.
38254         If mktime returns (time_t) -1, check whether an error actually occurred
38255         by invoking localtime on -1.
38256         (main) [TEST_POSIXTIME]: Check for input data errors, and report
38257         posixtime failures better.
38258         Improve the test data (in comments only).
38259
38260 2003-06-02  Karl Berry  <karl@gnu.org>
38261
38262         * config/mkinstalldirs (version): new variable.
38263         (--version): new option.
38264         (usage): improve message.
38265
38266 2003-05-30  Karl Berry  <karl@gnu.org>
38267
38268         * lib/mktime.c: update from libc.
38269
38270 2003-05-30  Bruno Haible  <bruno@clisp.org>
38271
38272         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
38273         * config/config.rpath: Upgrade to gettext-0.12.1.
38274
38275 2003-05-30  Bruno Haible  <bruno@clisp.org>
38276
38277         * m4/gettext.m4: Upgrade to gettext-0.12.1.
38278         * m4/nls.m4: New file, from gettext-0.12.1.
38279         * m4/po.m4: New file, from gettext-0.12.1.
38280         * m4/progtest.m4: Upgrade to gettext-0.12.1.
38281
38282 2003-05-30  Bruno Haible  <bruno@clisp.org>
38283
38284         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
38285         * lib/localcharset.h: Likewise.
38286         * lib/localcharset.c: Likewise.
38287
38288 2003-05-29  Karl Berry  <karl@gnu.org>
38289
38290         * config/config.rpath: update from gettext.
38291
38292 2003-05-28  Paul Eggert  <eggert@twinsun.com>
38293
38294         Assume the headers required for C89 freestanding compilers.
38295         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
38296         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
38297         * m4/human.m4 (gl_HUMAN): Likewise.
38298         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
38299         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
38300         * m4/userspec.m4 (gl_USERSPEC): Likewise.
38301         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
38302         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
38303         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
38304
38305 2003-05-28  Paul Eggert  <eggert@twinsun.com>
38306
38307         Assume the headers required for C89 freestanding compilers.
38308         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
38309         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
38310         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
38311         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
38312         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
38313         define, since <limits.h> is guaranteed to do that.
38314         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
38315         * lib/exclude.c: Include <stdbool.h> unconditionally.
38316         * lib/tempname.c: Include <stddef.h> unconditionally.
38317         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
38318         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
38319         <stddef.h> does that.
38320         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
38321         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
38322         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
38323         needed.
38324         * lib/xstrtol.c: Likewise.
38325         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
38326         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
38327
38328         * lib/addext.c (addext): Use assignment rather than cast, to avoid
38329         warnings on some platforms.
38330
38331         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
38332         arbitrarily.
38333
38334 2003-05-26  Jim Meyering  <jim@meyering.net>
38335
38336         Merge in a change from coreutils:
38337         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
38338         that is guaranteed to be `no'.  Use `no_such_member' to indicate
38339         that condition, rather than `-1' which is slightly misleading.
38340         Change the name of the cache variable to have the gl_ prefix.
38341         Prompted by a patch from Richard Dawe for DJGPP.
38342
38343 2003-05-24  Karl Berry  <karl@gnu.org>
38344
38345         * config/config.guess: update from prep.
38346
38347 2003-05-22  Karl Berry  <karl@gnu.org>
38348
38349         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
38350
38351 2003-05-20  Karl Berry  <karl@gnu.org>
38352
38353         * config/config.guess: update from prep.
38354
38355 2003-05-18  Karl Berry  <karl@gnu.org>
38356
38357         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
38358         might actually be set by the user.
38359
38360         * config/depcomp, install-sh, mdate-sh: update from automake.
38361
38362 2003-05-17  Bruno Haible  <bruno@clisp.org>
38363
38364         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
38365         invalid expansion for AC_EGREP_CPP.
38366         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
38367         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
38368         Suggested by Akim Demaille <akim@epita.fr> in
38369         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
38370
38371 2003-05-12  Jim Meyering  <jim@meyering.net>
38372
38373         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
38374         the space-padded-by-default conversion specifiers, %e, %k, %l.
38375
38376 2003-05-12  Bruno Haible  <bruno@clisp.org>
38377
38378         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
38379         the string is longer than 4 KB.
38380
38381 2003-05-11  Karl Berry  <karl@gnu.org>
38382
38383         * config/config.{guess,sub}: update from prep.
38384
38385 2003-05-09  Bruno Haible  <bruno@clisp.org>
38386
38387         * modules/error: Add m4/strerror_r.m4 to file list.
38388
38389 2003-05-03  Bruno Haible  <bruno@clisp.org>
38390
38391         Upgrade to Unicode-4.0.
38392         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
38393         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
38394         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
38395         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
38396         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
38397         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
38398         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
38399         Change width of U+E0100..U+E01EF from 1 to 0.
38400
38401 2003-04-25  Jim Meyering  <jim@meyering.net>
38402
38403         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
38404         of type size_t, not int.
38405
38406 2003-04-25  Bruno Haible  <bruno@clisp.org>
38407
38408         * lib/copy-file.c: Include <stddef.h>, for size_t.
38409
38410 2003-04-21  Paul Eggert  <eggert@twinsun.com>
38411
38412         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
38413         code which expansion is under static control.  Patch imported from
38414         Akim Demaille's patch to Bison; see
38415         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
38416
38417 2003-04-14  Bruno Haible  <bruno@clisp.org>
38418
38419         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
38420
38421 2003-04-11  Jim Meyering  <jim@meyering.net>
38422
38423         Merge changes from Coreutils.
38424
38425         2003-03-22  Jim Meyering  <jim@meyering.net>
38426
38427         * lib/strftime.c (widen): Cast alloca return value to proper type.
38428
38429         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
38430
38431         From GNU libc.
38432         * lib/strftime.c (my_strftime): Handle very large width
38433         specifications for numeric values correctly.  Improve checks for
38434         overflow.
38435
38436         2003-01-19  Jim Meyering  <jim@meyering.net>
38437
38438         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
38439         definitions.
38440         (nl_get_alt_digit) [! defined my_strftime]: Define.
38441         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
38442         _nl_get_alt_digit and _nl_get_walt_digit.
38443
38444         * lib/strftime.c (my_strftime): Merge in locale-related changes from
38445         libc. These changes have no effect outside of _LIBC.
38446
38447 2003-04-10  Bruno Haible  <bruno@clisp.org>
38448
38449         * modules/findprog: New file.
38450         * MODULES.html.sh (func_all_modules): Add it.
38451
38452 2003-04-10  Bruno Haible  <bruno@clisp.org>
38453
38454         * m4/findprog.m4: New file.
38455         * m4/eaccess.m4: New file.
38456
38457 2003-04-10  Bruno Haible  <bruno@clisp.org>
38458
38459         * lib/findprog.h: New file, from GNU gettext.
38460         * lib/findprog.c: New file, from GNU gettext.
38461
38462 2003-04-05  Jim Meyering  <jim@meyering.net>
38463
38464         Merge changes from Coreutils.
38465
38466         * lib/exclude.h (PARAMS): Remove definition and uses.
38467         * lib/exclude.c: Remove uses of `PARAMS'.
38468
38469         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
38470         Add test-cases for DOS filenames. Declare program_name.
38471         (main): Set up program_name.  Patch by Rich Dawe.
38472
38473         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
38474         error from mntctl.
38475         Use mntctl's return value to drive the entry-processing loop, since
38476         we can't rely on the value of the vmt_length member in the last
38477         entry.  On some systems doing so could result in exhausting
38478         virtual memory.  Based in part on a patch from Mike Jetzer.
38479
38480 2003-04-04  Bruno Haible  <bruno@clisp.org>
38481
38482         * modules/linebreak: New file.
38483         * MODULES.html.sh (func_all_modules): Add it.
38484
38485 2003-04-04  Bruno Haible  <bruno@clisp.org>
38486
38487         * m4/linebreak.m4: New file.
38488
38489 2003-04-04  Bruno Haible  <bruno@clisp.org>
38490
38491         * lib/linebreak.h: New file, from GNU gettext.
38492         * lib/linebreak.c: New file, from GNU gettext with slight
38493         modifications.
38494         * lib/lbrkprop.h: New file, from GNU gettext.
38495
38496 2003-04-03  Bruno Haible  <bruno@clisp.org>
38497
38498         * modules/utf8-ucs4: New file.
38499         * modules/utf16-ucs4: New file.
38500         * modules/ucs4-utf8: New file.
38501         * modules/ucs4-utf16: New file.
38502         * MODULES.html.sh (func_all_modules): Add them.
38503
38504 2003-04-03  Bruno Haible  <bruno@clisp.org>
38505
38506         * m4/utf-ucs4.m4: New file.
38507         * m4/ucs4-utf.m4: New file.
38508
38509 2003-04-03  Bruno Haible  <bruno@clisp.org>
38510
38511         * lib/utf8-ucs4.h: New file, from GNU gettext.
38512         * lib/utf16-ucs4.h: New file, from GNU gettext.
38513         * lib/ucs4-utf8.h: New file, from GNU gettext.
38514         * lib/ucs4-utf16.h: New file, from GNU gettext.
38515
38516 2003-04-02  Bruno Haible  <bruno@clisp.org>
38517
38518         * modules/binary-io: New file.
38519         * MODULES.html.sh (func_all_modules): Add it.
38520
38521 2003-04-02  Bruno Haible  <bruno@clisp.org>
38522
38523         * lib/binary-io.h: New file, from GNU gettext.
38524
38525 2003-04-01  Bruno Haible  <bruno@clisp.org>
38526
38527         * modules/pathname: New file.
38528         * MODULES.html.sh (func_all_modules): Add it.
38529
38530 2003-04-01  Bruno Haible  <bruno@clisp.org>
38531
38532         * lib/pathname.h: New file, from GNU gettext.
38533         * lib/concatpath.c: New file, from GNU gettext.
38534
38535 2003-03-30  Bruno Haible  <bruno@clisp.org>
38536
38537         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
38538
38539 2003-03-30  Bruno Haible  <bruno@clisp.org>
38540
38541         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
38542         function chown() doesn't exist.
38543
38544 2003-03-28  Bruno Haible  <bruno@clisp.org>
38545
38546         * modules/copy-file: New file.
38547         * MODULES.html.sh (func_all_modules): Add it.
38548
38549 2003-03-28  Bruno Haible  <bruno@clisp.org>
38550
38551         * m4/copy-file.m4: New file.
38552
38553 2003-03-28  Bruno Haible  <bruno@clisp.org>
38554
38555         * lib/copy-file.h: New file, from GNU gettext.
38556         * lib/copy-file.c: New file, from GNU gettext.
38557
38558 2003-03-18  Jim Meyering  <jim@meyering.net>
38559
38560         * lib/quote.c (quote_n): Fix typo in comment.
38561
38562 2003-03-18  Bruno Haible  <bruno@clisp.org>
38563
38564         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
38565         checking.
38566         * m4/onceonly_2_57.m4: Likewise.
38567
38568 2003-03-17  Bruno Haible  <bruno@clisp.org>
38569
38570         * m4/onceonly.m4: Require autoconf 2.54 or newer.
38571         (m4_quote): Remove macro.
38572         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
38573
38574 2003-03-14  Jim Meyering  <jim@meyering.net>
38575
38576         Merge changes from Coreutils.
38577         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
38578         to be const, in order to avoid warnings.
38579         (obstack_room): Likewise.
38580         (obstack_empty_p): Likewise.
38581
38582 2003-03-14  Bruno Haible  <bruno@clisp.org>
38583
38584         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
38585         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
38586
38587 2003-03-13  Paul Eggert  <eggert@twinsun.com>
38588
38589         Merge changes from Bison.
38590         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
38591         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
38592         when compiling Bison 1.875's `bitset bset = obstack_alloc
38593         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
38594         * lib/hash.c: Include <stdbool.h> unconditionally.
38595
38596 2003-03-13  Paul Eggert  <eggert@twinsun.com>
38597
38598         * m4/onceonly.m4 (m4_quote): New macro.
38599         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
38600         Quote AC_FOREACH variable-expansions properly.
38601
38602 2003-03-13  Paul Eggert  <eggert@twinsun.com>
38603
38604         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
38605
38606 2003-03-09  Paul Eggert  <eggert@twinsun.com>
38607
38608         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
38609         Reported by Bruce Becker; see:
38610         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
38611
38612 2003-03-03  Paul Eggert  <eggert@twinsun.com>
38613             Bruno Haible  <bruno@clisp.org>
38614
38615         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
38616         Reported by John Hughes, see
38617         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
38618
38619 2003-02-20  Bruno Haible  <bruno@clisp.org>
38620
38621         * MODULES.html.sh (func_all_modules): Add poll.
38622
38623 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
38624
38625         * modules/poll: New file.
38626
38627 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
38628
38629         * lib/poll_.h: New file.
38630         * lib/poll.c: New file.
38631
38632 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
38633
38634         * m4/poll.m4: New file.
38635
38636 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
38637
38638         * modules/mathl: New file.
38639
38640 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
38641
38642         * lib/mathl.h: New file.
38643         * lib/acosl.c: New file.
38644         * lib/asinl.c: New file.
38645         * lib/atanl.c: New file.
38646         * lib/ceill.c: New file.
38647         * lib/cosl.c: New file.
38648         * lib/expl.c: New file.
38649         * lib/floorl.c: New file.
38650         * lib/frexpl.c: New file.
38651         * lib/ldexpl.c: New file.
38652         * lib/logl.c: New file.
38653         * lib/sincosl.c: New file.
38654         * lib/sinl.c: New file.
38655         * lib/sqrtl.c: New file.
38656         * lib/tanl.c: New file.
38657         * lib/trigl.c: New file.
38658         * lib/trigl.h: New file.
38659
38660 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
38661
38662         * m4/mathl.m4: New file.
38663
38664 2003-02-18  Bruno Haible  <bruno@clisp.org>
38665
38666         * MODULES.html.sh (func_all_modules): Add mathl.
38667
38668 2003-02-17  Bruno Haible  <bruno@clisp.org>
38669
38670         * modules/mkdtemp: New module.
38671         * MODULES.html.sh (func_all_modules): Add it.
38672
38673 2003-02-17  Bruno Haible  <bruno@clisp.org>
38674
38675         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
38676
38677 2003-02-17  Bruno Haible  <bruno@clisp.org>
38678
38679         * lib/mkdtemp.h: New file, from GNU gettext.
38680         * lib/mkdtemp.c: New file, from GNU gettext.
38681
38682 2003-02-02  Jim Meyering  <jim@meyering.net>
38683
38684         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
38685         e.g. glibc-2.2.93.
38686
38687 2003-01-31  Bruno Haible  <bruno@clisp.org>
38688
38689         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
38690         'rpl_rename'.
38691         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
38692         'rpl_strnlen'.
38693         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
38694         'rpl_strtod'.
38695         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
38696         'rpl_utime'.
38697
38698 2003-01-31  Bruno Haible  <bruno@clisp.org>
38699
38700         * lib/rename.c: #undef rename before defining rpl_rename.
38701         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
38702
38703 2003-01-30  Bruno Haible  <bruno@clisp.org>
38704
38705         * modules/vasnprintf, modules/vasprintf: New modules.
38706         * MODULES.html.sh (func_all_modules): Add them.
38707
38708 2003-01-30  Bruno Haible  <bruno@clisp.org>
38709
38710         * m4/signed.m4: New file, from GNU gettext.
38711         * m4/longdouble.m4: New file, from GNU gettext.
38712         * m4/wchar_t.m4: New file, from GNU gettext.
38713         * m4/wint_t.m4: New file, from GNU gettext.
38714         * m4/vasnprintf.m4: New file.
38715         * m4/vasprintf.m4: New file.
38716
38717 2003-01-30  Bruno Haible  <bruno@clisp.org>
38718
38719         * lib/printf-args.h: New file, from GNU gettext.
38720         * lib/printf-args.c: New file, from GNU gettext.
38721         * lib/printf-parse.h: New file, from GNU gettext.
38722         * lib/printf-parse.c: New file, from GNU gettext.
38723         * lib/vasnprintf.h: New file, from GNU gettext.
38724         * lib/vasnprintf.c: New file, from GNU gettext.
38725         * lib/asnprintf.c: New file, from GNU gettext.
38726         * lib/vasprintf.h: New file, from GNU gettext with modifications.
38727         * lib/vasprintf.c: New file, from GNU gettext.
38728         * lib/asprintf.c: New file, from GNU gettext.
38729
38730 2003-01-29  Bruno Haible  <bruno@clisp.org>
38731
38732         * modules/stpncpy: New module.
38733         * MODULES.html.sh (func_all_modules): Add it.
38734
38735 2003-01-29  Bruno Haible  <bruno@clisp.org>
38736
38737         * m4/stpncpy.m4: New file.
38738
38739 2003-01-29  Bruno Haible  <bruno@clisp.org>
38740
38741         * lib/stpncpy.h: New file, from GNU gettext with modifications.
38742         * lib/stpncpy.c: New file, from GNU gettext with modifications.
38743
38744 2003-01-28  Bruno Haible  <bruno@clisp.org>
38745
38746         * modules/c-ctype: New module.
38747         * MODULES.html.sh (func_all_modules): Add it.
38748
38749 2003-01-28  Bruno Haible  <bruno@clisp.org>
38750
38751         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
38752         Paul Eggert.
38753         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
38754         Paul Eggert.
38755
38756 2003-01-27  Bruno Haible  <bruno@clisp.org>
38757
38758         * modules/xsetenv: New module.
38759         * MODULES.html.sh (func_all_modules): Add it.
38760
38761 2003-01-27  Bruno Haible  <bruno@clisp.org>
38762
38763         * lib/xsetenv.h: New file, from GNU gettext.
38764         * lib/xsetenv.c: New file, from GNU gettext.
38765
38766 2003-01-23  Jim Meyering  <jim@meyering.net>
38767
38768         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
38769         from working on systems without dirfd (at least Irix and OSF1/Tru64).
38770
38771 2003-01-23  Bruno Haible  <bruno@clisp.org>
38772
38773         * modules/minmax: New module.
38774         * MODULES.html.sh (func_all_modules): Add it.
38775
38776 2003-01-23  Bruno Haible  <bruno@clisp.org>
38777
38778         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
38779         Eggert.
38780
38781 2003-01-22  Bruno Haible  <bruno@clisp.org>
38782
38783         * modules/exit: New module.
38784         * MODULES.html.sh (func_all_modules): Add it.
38785
38786 2003-01-22  Bruno Haible  <bruno@clisp.org>
38787
38788         * lib/exit.h: New file, from GNU gettext.
38789
38790 2003-01-19  Bruno Haible  <bruno@clisp.org>
38791
38792         * gnulib-tool: Recognize option --extract-maintainer.
38793         (func_get_maintainer): New function.
38794         * modules/*: Add Maintainer entry.
38795
38796 2003-01-16  Jim Meyering  <jim@meyering.net>
38797
38798         * m4/regex.m4: The `regex' struct is both input and output.
38799         Initialize it before each use.  Patch by Tim Waugh.
38800
38801 2003-01-16  Bruno Haible  <bruno@clisp.org>
38802
38803         * MODULES.html.sh: Add a table of contents. Add the module name as
38804         leftmost column. Add hyperlinks.
38805
38806 2003-01-15  Bruno Haible  <bruno@clisp.org>
38807
38808         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
38809
38810 2003-01-15  Bruno Haible  <bruno@clisp.org>
38811
38812         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
38813         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
38814         suffix.
38815
38816 2003-01-15  Bruno Haible  <bruno@clisp.org>
38817
38818         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
38819
38820 2003-01-15  Bruno Haible  <bruno@clisp.org>
38821
38822         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
38823         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
38824
38825 2003-01-14  Jim Meyering  <jim@meyering.net>
38826
38827         * lib/same.c (same_name): Tweak a comment.
38828
38829 2003-01-14  Bruno Haible  <bruno@clisp.org>
38830
38831         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
38832         when a string comparison is sufficient.
38833
38834 2003-01-14  Bruno Haible  <bruno@clisp.org>
38835
38836         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
38837         'unsigned int'.
38838
38839 2003-01-14  Bruno Haible  <bruno@clisp.org>
38840
38841         * lib/hash-pjw.c: Add comment about low quality of this function.
38842
38843 2003-01-13  Bruno Haible  <bruno@clisp.org>
38844
38845         * modules/stpcpy: Distribute lib/stpcpy.h.
38846         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
38847
38848 2003-01-13  Bruno Haible  <bruno@clisp.org>
38849
38850         * modules/*: Add a description.
38851         * modules/strpbrk: Fix Makefile.am snippet.
38852         * modules/strtoimax: Fix dependencies.
38853         * modules/strtoumax: Likewise.
38854
38855 2003-01-13  Bruno Haible  <bruno@clisp.org>
38856
38857         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
38858         * modules/alloca (Makefile.am): All object files depend on alloca.h.
38859         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
38860
38861 2003-01-13  Bruno Haible  <bruno@clisp.org>
38862
38863         * gnulib-tool (func_create_testdir): Store config/* files in the main
38864         directory.
38865         * config.rpath: Move to ...
38866         * config/config.rpath: ... here.
38867         * modules/gettext: Contains config/config.rpath, not config.rpath.
38868         * modules/iconv: Likewise.
38869
38870 2003-01-12  Paul Eggert  <eggert@twinsun.com>
38871
38872         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
38873         to avoid collisions with libcurses and libreadline.
38874
38875         * m4/getstr.m4: Remove.
38876         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
38877
38878 2003-01-12  Paul Eggert  <eggert@twinsun.com>
38879
38880         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
38881         to avoid collisions with libcurses and libreadline.
38882
38883         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
38884         * lib/getstr.h, getstr.c: Remove.
38885         * lib/getline.c: Include "getline.h", to check interface.
38886         Move body of old getstr.c here: this defines MIN_CHUNK and
38887         declares getdelim2, which is renamed from getstr.
38888         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
38889
38890         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
38891         All uses changed.
38892         * lib/linebuffer.h: Likewise.
38893         (readline): Remove backward-compatibility macro.
38894
38895 2003-01-12  Paul Eggert  <eggert@twinsun.com>
38896
38897         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
38898         to avoid collisions with libcurses and libreadline.
38899         * getstr: Remove.
38900         * MODULES.html.sh: Remove getstr.
38901         * modules/getline: Depend on unlocked-io, not getstr.
38902
38903 2003-01-12  Jim Meyering  <jim@meyering.net>
38904
38905         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
38906
38907 2003-01-10  Bruno Haible  <bruno@clisp.org>
38908
38909         * modules/alloca: Change Makefile.am requirements. Simplify Include
38910         requirements. Add lib/alloca_.h to file list.
38911
38912 2003-01-10  Bruno Haible  <bruno@clisp.org>
38913
38914         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
38915
38916 2003-01-10  Bruno Haible  <bruno@clisp.org>
38917
38918         * lib/alloca_.h: New file.
38919         * lib/getdate.y: Unconditionally include alloca.h.
38920         * lib/makepath.c: Likewise.
38921         * lib/setenv.c: Likewise.
38922         * lib/userspec.c: Likewise.
38923
38924 2003-01-09  Karl Berry  <karl@gnu.org>
38925
38926         * MODULES.html.sh: include `dirname $0` in PATH, to find
38927         gnulib-tool.
38928
38929 2003-01-09  Bruno Haible  <bruno@clisp.org>
38930
38931         * modules/stdbool: Change configure.ac, Makefile.am requirements.
38932         Simplify Include requirements. Add lib/stdbool.h.in to file list.
38933
38934 2003-01-09  Bruno Haible  <bruno@clisp.org>
38935
38936         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
38937
38938 2003-01-09  Bruno Haible  <bruno@clisp.org>
38939
38940         * lib/stdbool.h.in: New file.
38941
38942 2003-01-09  Bruno Haible  <bruno@clisp.org>
38943
38944         * gnulib-tool (func_all_modules): Ignore files ending in ~.
38945         * MODULES.html.sh: Likewise.
38946
38947 2003-01-08  Jim Meyering  <jim@meyering.net>
38948
38949         * lib/full-write.c: Undefine and define-away `const' after inclusion
38950         of errno.h, not before.  Suggestion from Bruno Haible.
38951
38952 2003-01-08  Bruno Haible  <bruno@clisp.org>
38953
38954         * modules/full-read: Depend on full-write.
38955
38956 2003-01-08  Bruno Haible  <bruno@clisp.org>
38957
38958         * lib/safe-read.c: Include specification header first, to ensure its
38959         selfcontainedness.
38960         * lib/full-write.c: Likewise.
38961
38962 2003-01-07  Jim Meyering  <jim@meyering.net>
38963
38964         * lib/full-write.c: Rework so that it may serve to define full_read,
38965         too.
38966         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
38967
38968 2003-01-07  Bruno Haible  <bruno@clisp.org>
38969
38970         * lib/strtoimax.c: Include <stdint.h> as an alternative to
38971         <inttypes.h>.
38972         * lib/xstrtol.h: Likewise.
38973         * lib/xstrtoimax.c: Likewise.
38974         * lib/xstrtoumax.c: Likewise.
38975         * lib/human.h: Likewise.
38976
38977         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
38978         on systems that have <inttypes.h> but not <stdint.h>.
38979
38980 2003-01-07  Bruno Haible  <bruno@clisp.org>
38981
38982         * MODULES.html.sh: Add copyright notice.
38983         (missed_files): Omit CVS directory entries.
38984         (func_module): Make it work with sed-3.02.
38985         * MODULES.txt: Remove file.
38986
38987 2003-01-06  Jim Meyering  <jim@meyering.net>
38988
38989         * lib/version-etc.c: Update year in translatable copyright string.
38990
38991 2003-01-03  Karl Berry  <karl@gnu.org>
38992
38993         * config/config.{guess,sub}: update from prep.
38994
38995 2003-01-02  Karl Berry  <karl@gnu.org>
38996
38997         * doc/COPYING.DOC: belatedly updated to 1.2.
38998
38999 2003-01-01  Karl Berry  <karl@gnu.org>
39000
39001         * gnulib-tool (func_verify_module): report module name $module in
39002         error message, not $1.
39003         * gnulib-tool (create-testdir): don't complain if destdir couldn't
39004         be created, only if it doesn't exist.
39005         * gnulib-tool (last_checkin_date): don't expand the $Date here.
39006
39007 2002-12-31  Paul Eggert  <eggert@twinsun.com>
39008
39009         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
39010
39011 2002-12-31  Paul Eggert  <eggert@twinsun.com>
39012
39013         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
39014         memcmp if strcoll doesn't work.
39015
39016 2002-12-31  Bruno Haible  <bruno@clisp.org>
39017
39018         * lib/utime.c (utime_null): No need to call ftruncate if the file was
39019         nonempty.
39020
39021 2002-12-31  Bruno Haible  <bruno@clisp.org>
39022
39023         * lib/memcoll.c (STRCOLL): New macro.
39024         (memcoll): Use it.
39025
39026 2002-12-31  Bruno Haible  <bruno@clisp.org>
39027
39028         * lib/localcharset.h: New file.
39029         * lib/localcharset.c: Include it.
39030         * lib/unicodeio.c: Likewise.
39031
39032 2002-12-31  Bruno Haible  <bruno@clisp.org>
39033
39034         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
39035         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
39036
39037 2002-12-31  Bruno Haible  <bruno@clisp.org>
39038
39039         * lib/getline.h: Include <stddef.h>, for size_t.
39040
39041         * lib/unicodeio.h: Include <stddef.h>, for size_t.
39042         * lib/unicodeio.c: Don't include <stddef.h>.
39043
39044 2002-12-31  Bruno Haible  <bruno@clisp.org>
39045
39046         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
39047         HAVE_TM_ZONE.
39048
39049 2002-12-24  Karl Berry  <karl@gnu.org>
39050
39051         * config/config.guess: update from prep.
39052
39053 2002-12-24  Bruno Haible  <bruno@clisp.org>
39054
39055         General infrasructure.
39056         * m4/README: Rewritten.
39057         * m4/onceonly.m4: New file.
39058         * m4/onceonly_2_57.m4: New file.
39059
39060         Module atexit.
39061         * m4/atexit.m4: New file.
39062
39063         Module strtod.
39064         * m4/strtod.m4: New file.
39065
39066         Module strtol.
39067         * m4/strtol.m4: New file.
39068
39069         Module strtoul.
39070         * m4/strtoul.m4: New file.
39071
39072         Module memchr.
39073         * m4/memchr.m4: New file.
39074
39075         Module memcmp.
39076         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
39077         (jm_FUNC_MEMCMP): Invoke it.
39078
39079         Module memcpy.
39080         * m4/memcpy.m4: New file.
39081
39082         Module memmove.
39083         * m4/memmove.m4: New file.
39084
39085         Module memset.
39086         * m4/memset.m4: New file.
39087
39088         Module strcspn.
39089         * m4/strcspn.m4: New file.
39090
39091         Module strpbrk.
39092         * m4/strpbrk.m4: New file.
39093
39094         Module strstr.
39095         * m4/strstr.m4: New file.
39096
39097         Module strerror.
39098         * m4/strerror.m4: New file.
39099
39100         Module mktime.
39101         * m4/mktime.m4: Renamed from jm-mktime.m4.
39102         (gl_PREREQ_MKTIME): New macro.
39103         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
39104
39105         Module malloc.
39106         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
39107         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
39108         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
39109
39110         Module realloc.
39111         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
39112         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
39113         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
39114
39115         Module strftime.
39116         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
39117         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
39118         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
39119         gl_TM_GMTOFF.
39120         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
39121
39122         Module xalloc.
39123         * m4/xalloc.m4: New file.
39124
39125         Module alloca.
39126         * m4/alloca.m4: New file.
39127
39128         Module putenv.
39129         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
39130         (jm_FUNC_PUTENV): Invoke it.
39131
39132         Module setenv.
39133         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
39134         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
39135         when invoked twice.
39136         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
39137         gt_FUNC_SETENV.
39138
39139         Module memrchr.
39140         * m4/memrchr.m4: New file.
39141
39142         Module stpcpy.
39143         * m4/stpcpy.m4: New file.
39144
39145         Module strcase.
39146         * m4/strcase.m4: New file.
39147
39148         Module strdup.
39149         * m4/strdup.m4: New file.
39150
39151         Module strnlen.
39152         * m4/strnlen.m4: New file.
39153
39154         Module strndup.
39155         * m4/strndup.m4: New file.
39156
39157         Module xstrtod.
39158         * m4/xstrtod.m4: New file.
39159
39160         Module xstrtol.
39161         * m4/xstrtol.m4: New file.
39162
39163         Module getdate.
39164         * m4/getdate.m4: New file.
39165
39166         Module unlocked-io.
39167         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
39168         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
39169         * m4/jm-glibc-io.m4n: Remove file.
39170
39171         Module long-options.
39172         * m4/long-options.m4: New file.
39173
39174         Module md5.
39175         * m4/md5.m4: New file.
39176
39177         Module sha.
39178         * m4/sha.m4: New file.
39179
39180         Module getstr.
39181         * m4/getstr.m4: New file.
39182
39183         Module getline.
39184         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
39185         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
39186         <sys/types.h>, for size_t. Use the function name gnu_getline, not
39187         simply getline. Infoke gl_PREREQ_GETLINE.
39188
39189         Module obstack.
39190         * m4/obstack.m4: New file.
39191
39192         Module hash.
39193         * m4/hash.m4: New file.
39194
39195         Module readtokens.
39196         * m4/readtokens.m4: New file.
39197
39198         Module strverscmp.
39199         * m4/strverscmp.m4: New file.
39200
39201         Module stdbool.
39202         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
39203         OSF/1.
39204
39205         Module strtoll.
39206         * m4/strtoll.m4: New file.
39207
39208         Module strtoull.
39209         * m4/strtoull.m4: New file.
39210
39211         Module strtoimax.
39212         * m4/strtoimax.m4: New file.
39213
39214         Module strtoumax.
39215         * m4/strtoumax.m4: New file.
39216
39217         Module xstrtoimax.
39218         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
39219         jm_AC_PREREQ_XSTRTOIMAX.
39220         Moved the strtol prerequisites to strtol.m4.
39221         Moved the strtoll prerequisites to strtoll.m4.
39222         Moved the strtoimax prerequisites to strtoimax.m4.
39223
39224         Module xstrtoumax.
39225         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
39226         jm_AC_PREREQ_XSTRTOUMAX.
39227         Moved the strtoul prerequisites to strtoul.m4.
39228         Moved the strtoull prerequisites to strtoull.m4.
39229         Moved the strtoumax prerequisites to strtoumax.m4.
39230
39231         Module chown.
39232         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
39233         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
39234
39235         Module dup2.
39236         * m4/dup2.m4: New file.
39237
39238         Module ftruncate.
39239         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
39240         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
39241
39242         Module getgroups.
39243         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
39244         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
39245
39246         Module gettimeofday.
39247         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
39248         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
39249         gl_PREREQ_GETTIMEOFDAY.
39250
39251         Module mkdir.
39252         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
39253         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
39254
39255         Module mkstemp.
39256         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
39257         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
39258         jm_AC_TYPE_UINTMAX_T.
39259         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
39260
39261         Module stat.
39262         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
39263         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
39264
39265         Module lstat.
39266         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
39267         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
39268
39269         Module timespec.
39270         * m4/timespec.m4 (gl_TIMESPEC): New macro.
39271         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
39272         * m4/st_mtim.m4: Indentation.
39273
39274         Module nanosleep.
39275         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
39276         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
39277         gl_PREREQ_NANOSLEEP.
39278
39279         Module regex.
39280         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
39281         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
39282         (gl_REGEX): New macro.
39283
39284         Module rename.
39285         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
39286         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
39287
39288         Module rmdir.
39289         * m4/rmdir.m4: New file.
39290
39291         Module utime.
39292         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
39293         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
39294         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
39295
39296         Module dirname.
39297         * m4/dirname.m4: New file.
39298
39299         Module getopt.
39300         * m4/getopt.m4: New file.
39301
39302         Module unistd-safer.
39303         * m4/unistd-safer.m4: New file.
39304
39305         Module fnmatch.
39306         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
39307         declaration.
39308         (gl_PREREQ_FNMATCH_EXTRA): New macro.
39309         (gl_FUNC_FNMATCH_POSIX): New macro.
39310         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
39311         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
39312         simply fnmatch.
39313
39314         Module exclude.
39315         * m4/exclude.m4: New file.
39316
39317         Module human.
39318         * m4/human.m4: New file.
39319
39320         Module acl.
39321         * m4/acl.m4: Nop.
39322
39323         Module backupfile.
39324         * m4/backupfile.m4: New file.
39325         * m4/d-ino.m4: Indentation.
39326
39327         Module fsusage.
39328         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
39329         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
39330         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
39331
39332         Module dirfd.
39333         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
39334         requirements.
39335
39336         Module euidaccess.
39337         * m4/euidaccess.m4: New file.
39338
39339         Module file-type.
39340         * m4/file-type.m4: New file.
39341
39342         Module fileblocks.
39343         * m4/fileblocks.m4: New file.
39344
39345         Module filemode.
39346         * m4/filemode.m4: New file.
39347
39348         Module isdir.
39349         * m4/isdir.m4: New file.
39350
39351         Module lchown.
39352         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
39353         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
39354
39355         Module makepath.
39356         * m4/makepath.m4: New file.
39357
39358         Module modechange.
39359         * m4/modechange.m4: New file.
39360
39361         Module mountlist.
39362         * m4/mountlist.m4: New file.
39363         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
39364         Indentation.
39365
39366         Module path-concat.
39367         * m4/path-concat.m4: New file.
39368
39369         Module pathmax.
39370         * m4/pathmax.m4: New file.
39371
39372         Module same.
39373         * m4/same.m4: New file.
39374
39375         Module save-cwd.
39376         * m4/save-cwd.m4: New file.
39377
39378         Module savedir.
39379         * m4/savedir.m4: New file.
39380
39381         Module xgetcwd.
39382         * m4/xgetcwd.m4: New file.
39383         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
39384
39385         Module xreadlink.
39386         * m4/xreadlink.m4: New file.
39387
39388         Module safe-read.
39389         * m4/safe-read.m4: New file.
39390
39391         Module safe-write.
39392         * m4/safe-write.m4: New file.
39393
39394         Module closeout.
39395         * m4/closeout.m4: New file.
39396
39397         Module stdio-safer.
39398         * m4/stdio-safer.m4: New file.
39399
39400         Module getpass.
39401         * m4/getpass.m4: New file.
39402
39403         Module getugroups.
39404         * m4/getugroups.m4: New file.
39405
39406         Module group-member.
39407         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
39408         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
39409
39410         Module idcache.
39411         * m4/idcache.m4: New file.
39412
39413         Module userspec.
39414         * m4/userspec.m4: New file.
39415
39416         Module gettime.
39417         * m4/clock_time.m4: New file.
39418         * m4/gettime.m4: New file.
39419
39420         Module settime.
39421         * m4/settime.m4: New file.
39422
39423         Module posixtm.
39424         * m4/posixtm.m4: New file.
39425
39426         Module gethostname.
39427         * m4/gethostname.m4: New file.
39428
39429         Module canon-host.
39430         * m4/canon-host.m4: New file.
39431
39432         Module gettext.
39433         * m4/codeset.m4: New file, from gettext-0.11.5.
39434         * m4/gettext.m4: New file, from gettext-0.11.5.
39435         * m4/glibc21.m4: New file, from gettext-0.11.5.
39436         * m4/iconv.m4: New file, from gettext-0.11.5.
39437         * m4/intdiv0.m4: New file, from gettext-0.11.5.
39438         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
39439         * m4/inttypes.m4: New file, from gettext-0.11.5.
39440         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
39441         * m4/isc-posix.m4: New file, from gettext-0.11.5.
39442         * m4/lcmessage.m4: New file, from gettext-0.11.5.
39443         * m4/lib-ld.m4: New file, from gettext-0.11.5.
39444         * m4/lib-link.m4: New file, from gettext-0.11.5.
39445         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
39446         * m4/progtest.m4: New file, from gettext-0.11.5.
39447         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
39448         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
39449         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
39450
39451         Module localcharset.
39452         * m4/localcharset.m4: New file.
39453
39454         Module hard-locale.
39455         * m4/hard-locale.m4: New file.
39456
39457         Module mbswidth.
39458         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
39459         onceonly macros.
39460         * m4/mbrtowc.m4: Add comment.
39461
39462         Module memcasecmp.
39463         * m4/memcasecmp.m4: New file.
39464
39465         Module memcoll.
39466         * m4/memcoll.m4: New file.
39467
39468         Module unicodeio.
39469         * m4/unicodeio.m4: New file.
39470
39471         Module rpmatch.
39472         * m4/rpmatch.m4: New file.
39473
39474         Module yesno.
39475         * m4/yesno.m4: New file.
39476
39477         Module exitfail.
39478         * m4/exitfail.m4: New file.
39479
39480         Module c-stack.
39481         * m4/c-stack.m4 (gl_C_STACK): New macro.
39482         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
39483
39484         Module error.
39485         * m4/error.m4 (gl_ERROR): New macro.
39486         (jm_PREREQ_ERROR): Use onceonly macros.
39487
39488         Module fatal.
39489         * m4/fatal.m4: New file.
39490
39491         Module getloadavg.
39492         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
39493         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
39494
39495         Module getpagesize.
39496         * m4/getpagesize.m4: New file.
39497
39498         Module getusershell.
39499         * m4/getusershell.m4: New file.
39500
39501         Module physmem.
39502         * m4/physmem.m4: New file.
39503
39504         Module posixver.
39505         * m4/posixver.m4: New file.
39506
39507         Module quotearg.
39508         * m4/quotearg.m4: New file.
39509
39510         Module quote.
39511         * m4/quote.m4: New file.
39512
39513         Module readutmp.
39514         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
39515
39516         Module sig2str.
39517         * m4/sig2str.m4: New file.
39518
39519         Other.
39520         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
39521         ulonglong.m4.
39522         * m4/intmax_t.m4: New file.
39523         * m4/d-type.m4: Indentation.
39524         * m4/jm-macros.m4: Update.
39525         * m4/prereq.m4 (jm_PREREQ): Update.
39526         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
39527         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
39528         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
39529         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
39530         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
39531         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
39532         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
39533         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
39534         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
39535         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
39536         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
39537         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
39538         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
39539         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
39540         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
39541         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
39542         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
39543         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
39544         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
39545
39546 2002-12-24  Bruno Haible  <bruno@clisp.org>
39547
39548         * MODULES.txt: Update according to m4/ changes.
39549
39550         Module gettext.
39551         * config.rpath: New file, from gettext-0.11.5.
39552
39553         * modules/*: New module descriptions.
39554         * gnulib-tool: New file.
39555         * MODULES.html.sh: New file.
39556
39557 2002-12-21  Karl Berry  <karl@gnu.org>
39558
39559         * doc/fdl.texi: update to version 1.2.
39560
39561 2002-12-19  Karl Berry  <karl@gnu.org>
39562
39563         * config/config.guess: update from prep.
39564
39565 2002-12-18  Bruno Haible  <bruno@clisp.org>
39566
39567         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
39568         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
39569
39570 2002-12-17  Bruno Haible  <bruno@clisp.org>
39571
39572         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
39573         stdlib.h, string.h.
39574
39575 2002-12-17  Bruno Haible  <bruno@clisp.org>
39576
39577         * lib/canon-host.c (strdup): Remove unused declaration.
39578
39579         * lib/fsusage.c: Include full_read.h.
39580         (get_fs_usage): Use full_read instead of safe_read.
39581
39582         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
39583
39584 2002-12-12  Karl Berry  <karl@gnu.org>
39585
39586         * config/config.guess: update from prep.
39587
39588 2002-12-11  Bruno Haible  <bruno@clisp.org>
39589
39590         * m4/setenv.m4: New file, from gettext-0.11.5.
39591
39592 2002-12-11  Bruno Haible  <bruno@clisp.org>
39593
39594         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
39595         not unsetenv().
39596         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
39597         modifications:
39598
39599         2002-12-11  Bruno Haible  <bruno@clisp.org>
39600
39601                 * setenv.c (alloca): Fall back to malloc.
39602                 (freea): New macro.
39603                 (setenv): Use freea() to free memory allocated with alloca().
39604
39605         2002-11-13  Bruno Haible  <bruno@clisp.org>
39606
39607                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
39608                 function declarations.
39609                 * unsetenv.c (unsetenv): Likewise.
39610
39611         2002-03-04  Bruno Haible  <bruno@clisp.org>
39612
39613                 Portability to AIX 4.3.3.
39614                 * unsetenv.c: New file, extracted from setenv.c.
39615                 * setenv.c: Move the unsetenv() function to unsetenv.c.
39616
39617         2001-12-20  Bruno Haible  <bruno@clisp.org>
39618
39619                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
39620                 use malloc instead. For SunOS 4.
39621
39622         2001-12-11  Bruno Haible  <bruno@clisp.org>
39623
39624                 * setenv.c: Declare alloca.
39625                 (compar_fn_t): New typedef.
39626                 (KNOWN_VALUE, STORE_VALUE): Use it.
39627
39628         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
39629         setenv.h.
39630
39631 2002-12-10  Paul Eggert  <eggert@twinsun.com>
39632
39633         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
39634         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
39635         Choose values that are less likely to collide with system fnmatch
39636         options.
39637         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
39638         defined (e.g., a pure POSIX system).
39639         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
39640         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
39641
39642 2002-12-06  Paul Eggert  <eggert@twinsun.com>
39643
39644         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
39645         a pain in practice to deal with generated m4 files.  This change
39646         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
39647
39648         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
39649         and jm-glibc-io.m4, as they are no longer a special case.
39650         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
39651         kludge and the auto-generation stuff.  Check only whether the
39652         functions are declared, not whether they exist, since older hosts
39653         that don't declare the functions can't use the optimization anyway.
39654
39655 2002-12-06  Jim Meyering  <jim@meyering.net>
39656
39657         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
39658
39659         Merge in changes from libc's misc/error.c, in preparation
39660         for the merge of gnulib's changes back into libc.
39661
39662         * lib/error.c (_): Define only if not already defined.
39663         Move definition to follow all #include directives.
39664         Include unlocked-io.h only if !_LIBC.
39665         [_LIBC]: Include <libio/libioP.h>.
39666         [USE_IN_LIBIO]: Include <libio/iolibio.h>
39667         (fflush): Tweak definition to use INTUSE.
39668         (putc): Define.
39669
39670 2002-12-05  Paul Eggert  <eggert@twinsun.com>
39671
39672         * lib/alloca.c [defined emacs]: Include "lisp.h".
39673         (xalloc_die) [defined emacs]: New macro.
39674         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
39675         [! defined emacs]: Include <xalloc.h>.
39676         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
39677         (pointer): Typedef to POINTER_TYPE *.
39678         (malloc): Remove decl; we now always use xmalloc.
39679         (alloca): Use old-style definition, since Emacs needs this.
39680         Check for arithmetic overflow when computing combined size.
39681
39682 2002-12-04  Paul Eggert  <eggert@twinsun.com>
39683
39684         Do not generate unlocked-io.h automatically, since it's easier to
39685         maintain it by hand.
39686
39687         * lib/unlocked-io.h: New file, from GNU diffutils,
39688         but with proper copyright notice and attribution.
39689         * lib/gen-uio: Remove.
39690         * lib/Makefile.am: Add copyright notice.
39691         (libfetish_a_SOURCES): Add unlocked-io.h.
39692         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
39693         (DISTCLEANFILES, io_functions): Remove macros.
39694         (EXTRA_DIST): Remove gen_uio.
39695         (unlocked-io.h): Remove rule.
39696
39697 2002-12-04  Jim Meyering  <jim@meyering.net>
39698
39699         Reflect the fact that stat.c and lstat.c are no longer generated.
39700         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
39701         (DISTCLEANFILES): Likewise.
39702         (EXTRA_DIST): Likewise.
39703         (all_local): Don't depend on stat.c or lstat.c.
39704         (stat.c, lstat.c): Remove rules.
39705         (EXTRA_DIST): Remove xstat.in.
39706
39707         * lib/xstat.in: Remove file.  Contents moved into stat.c.
39708         * lib/stat.c: New file.  Contents mostly from xstat.in.
39709         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
39710         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
39711
39712         * lib/safe-read.c: Rework so that it may serve to define safe_write,
39713         too.
39714         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
39715
39716 2002-12-03  Jim Meyering  <jim@meyering.net>
39717
39718         * lib/safe-read.c, safe-write.c: Change variable names and comments,
39719         but not semantics, to minimize the differences between these two files.
39720         (safe_read): Change comment to mention SAFE_READ_ERROR.
39721
39722         * lib/safe-read.c (IS_EINTR): Define.
39723         (safe_read): Use IS_EINTR in place of in-function cpp directives.
39724
39725 2002-12-02  Jim Meyering  <jim@meyering.net>
39726
39727         * lib/safe-read.c (EINTR): Define.
39728         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
39729         (INT_MAX): Provide fallback.
39730         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
39731
39732         * lib/safe-read.h (SAFE_READ_ERROR): Define.
39733
39734 2002-12-02  Bruno Haible  <bruno@clisp.org>
39735
39736         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
39737         Define, taken from safe-read.c.
39738         (INT_MAX): Provide fallback.
39739         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
39740         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
39741
39742         * lib/safe-read.c (EINTR): Remove definition.
39743         (safe_read): Don't use EINTR if it is absent.
39744
39745 2002-12-01  Jim Meyering  <jim@meyering.net>
39746
39747         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
39748         zero.
39749         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
39750
39751 2002-11-27  Paul Eggert  <eggert@twinsun.com>
39752
39753         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
39754         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
39755         with `if (! (value < limit)) abort ();', for readability.
39756
39757 2002-11-26  Karl Berry  <karl@gnu.org>
39758
39759         * lib/strdup.c: copy from libc again, with jim's ok.
39760         * lib/.cppi-disable: re-add strdup.c
39761
39762 2002-11-25  Karl Berry  <karl@gnu.org>
39763
39764         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
39765         instead of "strtol.c".
39766
39767 2002-11-25  Karl Berry  <karl@gnu.org>
39768
39769         * config/install-sh: update from automake for variable quoting, $0 in
39770         error msgs, etc.
39771
39772         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
39773         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
39774         entry.
39775
39776 2002-11-25  Jim Meyering  <jim@meyering.net>
39777
39778         * lib/mktime.c: Sync from libc, now that it has the latest fix.
39779
39780 2002-11-24  Karl Berry  <karl@gnu.org>
39781
39782         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
39783         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
39784
39785 2002-11-24  Jim Meyering  <jim@meyering.net>
39786
39787         Update from coreutils:
39788
39789         * lib/mktime.c: Merge in changes from libc.
39790
39791         Avoid a link-time failure on some Linux systems.
39792         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
39793         (otherwise).
39794         (__mon_yday): Declare with the STATIC attribute.
39795         (__mktime_internal): Likewise.
39796         Based on a report from Greg Schafer.
39797
39798 2002-11-23  Jim Meyering  <jim@meyering.net>
39799
39800         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
39801         Use `unsigned', not `int', as type of index.
39802
39803         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
39804
39805         * lib/fsusage.c: Remove unneeded parentheses around operands of
39806         `defined'.
39807
39808 2002-11-22  Paul Eggert  <eggert@twinsun.com>
39809
39810         * lib/quotearg.h: Allow multiple inclusion by surrounding with
39811         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
39812         so that we can be included first.
39813         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
39814         * lib/quotearg.c: Include quotearg.h immediately after config.h.
39815         No need to include stddef.h or sys/types.h any more.
39816         Surround local include files with "", not "<>".
39817         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
39818         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
39819         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
39820         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
39821         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
39822         (ISPRINT): Remove; no longer needed now that we assume C89.
39823
39824         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
39825         Preserve errno.
39826
39827         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
39828         quotearg_char): Use SIZE_MAX rather than
39829         (size_t) -1 when we are talking about "infinity".
39830
39831         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
39832
39833 2002-11-22  Paul Eggert  <eggert@twinsun.com>
39834
39835         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
39836         hint that one should use `if (! x) abort ();' rather than `assert
39837         (x);', and anyway it's one less thing to worry about configuring.
39838         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
39839         hash_rehash, hash_insert): Use abort rather than assert.
39840
39841 2002-11-22  Bruno Haible  <bruno@clisp.org>
39842
39843         * lib/safe-read.h: Assume C89. Add comments.
39844         (safe_read): Change return type to size_t.
39845         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
39846         byte counts > SSIZE_MAX correctly.
39847         * lib/safe-write.h: New file.
39848         * lib/safe-write.c: New file.
39849         * lib/full-read.h: New file.
39850         * lib/full-read.c: New file.
39851         * lib/full-write.h: Assume C89. Add comments.
39852         * lib/full-write.c: Include safe-write.h.
39853         (full_write): Rewritten to use safe_write.
39854         Suggested by Jim Meyering and Paul Eggert.
39855
39856 2002-11-21  Jim Meyering  <jim@meyering.net>
39857
39858         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
39859
39860         Merge in changes from the coreutils.
39861
39862         2002-09-25  Paul Eggert  <eggert@twinsun.com>
39863         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
39864         <stdint.h>.
39865         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
39866         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
39867         int.  Work more efficiently if X is the same width as uintmax_t.
39868         Do not compare X to -1, to avoid bogus compiler warning.
39869         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
39870         Don't assume that f_frsize and f_bsize are the same type.
39871
39872         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
39873         warning on FreeBSD.
39874
39875         * lib/makepath.c (make_path): Restore umask *before* creating the final
39876         component.
39877         (make_path): Minor reformatting.
39878
39879         * lib/xmalloc.c: Adjust to work with new autoconf macros,
39880         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
39881         HAVE_MALLOC/HAVE_REALLOC.
39882
39883         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
39884         dummy ones.  At least on GNU/Linux systems, `auto' means something
39885         else.
39886         From Michael Stone.
39887
39888 2002-11-21  Bruno Haible  <bruno@clisp.org>
39889
39890         Remove case insensitive option matching.
39891         * lib/argmatch.h (argcasematch): Remove declaration.
39892         (ARGCASEMATCH): Remove macro.
39893         (__xargmatch_internal): Remove case_sensitive argument.
39894         (XARGMATCH): Update.
39895         (XARGCASEMATCH): Remove macro.
39896         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
39897         case_sensitive argument.
39898         (argcasematch): Remove function.
39899         (__xargmatch_internal): Remove case_sensitive argument.
39900         (main): Use XARGMATCH instead of XARGCASEMATCH.
39901
39902         * lib/xmalloc.c: Change compile-time error message. Add comment about
39903         required autoconf version.
39904
39905 2002-11-20  Paul Eggert  <eggert@twinsun.com>
39906
39907         Merge argmatch cleanups from Bison.  Assume C89.
39908
39909         * lib/argmatch.c: Include config.h here, not in argmatch.h.
39910         Include stdlib.h, for EXIT_FAILURE.
39911         Always include <string.h>, since we assume C89.
39912         (EXIT_FAILURE): Remove pre-C89 bug workaround.
39913         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
39914         Include <stddef.h> instead, since it's all we need for size_t.
39915         (PARAMS): Remove.  All uses removed.
39916         (ARRAY_CARDINALITY): Do not bother to #undef.
39917         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
39918         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
39919         Remove unnecessary parentheses.
39920         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
39921         Insert necessary parentheses.
39922         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
39923         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
39924
39925 2002-11-19  Bruno Haible  <bruno@clisp.org>
39926
39927         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
39928         * lib/mbswidth.h: Include <stddef.h>, for size_t.
39929
39930         * lib/mbswidth.h (PARAMS): Remove macro.
39931         (mbswidth, mbsnwidth): Use ANSI C function declarations.
39932         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
39933
39934         * lib/gcd.h (PARAMS): Remove macro.
39935         (gcd): Use ANSI C function declarations.
39936         * lib/gcd.c (gcd): Likewise.
39937
39938 2002-11-15  Bruno Haible  <bruno@clisp.org>
39939
39940         * lib/strcspn.c: Include <stddef.h>.
39941         (strcspn): Use ANSI C function declaration. Change return type to
39942         size_t. Use NULL.
39943         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
39944         (strpbrk): Use NULL.
39945         * lib/strpbrk.h (PARAMS): Remove macro.
39946         (strpbrk): Use ANSI C function declaration.
39947         * lib/strstr.c: Don't include <sys/types.h>.
39948         * lib/strstr.h (PARAMS): Remove macro.
39949         (strstr): Use ANSI C function declarations.
39950
39951 2002-11-14  Karl Berry  <karl@gnu.org>
39952
39953         * config/mkinstalldirs: `do' on separate line, instead of
39954         `for var; do'.
39955
39956 2002-11-06  Bruno Haible  <bruno@clisp.org>
39957
39958         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
39959         * lib/gcd.c (gcd): Likewise.
39960
39961 2002-11-05  Bruno Haible  <bruno@clisp.org>
39962
39963         * lib/gcd.h: New file, from gettext-0.11.5.
39964         * lib/gcd.c: New file, from gettext-0.11.5.
39965
39966 2002-11-05  Bruno Haible  <bruno@clisp.org>
39967
39968         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
39969         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
39970         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
39971         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
39972
39973         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
39974         <libintl.h>.
39975         * lib/makepath.c: Include gettext.h instead of <locale.h> and
39976         <libintl.h>.
39977
39978         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
39979         * lib/human.c: Include gettext.h instead of <libintl.h>.
39980         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
39981         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
39982         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
39983         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
39984         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
39985         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
39986         (textdomain): Remove definition.
39987         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
39988
39989         * lib/long-options.c: Remove include of <libintl.h> and definition of
39990         _.
39991         * lib/same.c: Remove include of <libintl.h> and definition of _.
39992
39993 2002-11-04  Owen Taylor  <otaylor@redhat.com>
39994
39995         * lib/config.charset: A few additions for Solaris.
39996
39997 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
39998
39999         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
40000         * lib/localcharset.c (locale_charset): Declare as extern "C".
40001
40002 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
40003
40004         * lib/config.charset: msdos in uk_UA uses CP1125.
40005
40006 2002-11-04  Bruno Haible  <bruno@clisp.org>
40007
40008         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
40009         * lib/strcase.h: New file, from GNU gettext-0.11.5.
40010         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
40011         * lib/strstr.h: New file, from GNU gettext-0.11.5.
40012         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
40013
40014 2002-11-04  Bruno Haible  <bruno@clisp.org>
40015
40016         * lib/localcharset.c (locale_charset): Don't return an empty string.
40017
40018 2002-11-04  Bruno Haible  <bruno@clisp.org>
40019
40020         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
40021         aliases.
40022
40023 2002-11-04  Bruno Haible  <bruno@clisp.org>
40024
40025         * lib/config.charset: Update for newest glibc. Add canonical names
40026         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
40027
40028 2002-11-04  Bruno Haible  <bruno@clisp.org>
40029
40030         * lib/config.charset: Add support for NetBSD.
40031
40032 2002-11-04  Bruno Haible  <bruno@clisp.org>
40033
40034         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
40035
40036 2002-11-01  Bruno Haible  <bruno@clisp.org>
40037
40038         * configure.in: Add AC_CONFIG_AUX_DIR call.
40039         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
40040         test/Makefile.
40041         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
40042
40043 2002-09-28  Karl Berry  <karl@gnu.org>
40044
40045         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
40046         installed automake until the next release, since changes have been
40047         made.
40048
40049 2002-09-25  Karl Berry  <karl@gnu.org>
40050
40051         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
40052         * lib/getopt*: copy from libc/posix.
40053         * lib/gettext.h: copy from gettext.
40054         * lib/.cppi-disable: add strdup.c, gettext.h.
40055
40056 2002-09-25  Karl Berry  <karl@gnu.org>
40057
40058         * config/srclist.txt: enable gettext.h check.
40059         * config/config.{guess,sub}: update from prep.
40060         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
40061                 from automake 1.6.3.
40062         See srclist*.
40063
40064 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
40065
40066         * regex.c (PATFETCH): Remove the translating fetch.
40067         (PATFETCH_RAW): Rename to PATFETCH.
40068         (set_image_of_range): New fun.
40069         (SET_RANGE_TABLE_WORK_AREA): Use it.
40070         (regex_compile): Don't translate the pattern chars so eagerly.
40071         Only do it when inserting an `exactn' bytecode or when handling
40072         a char-range.
40073         (mutually_exclusive_p): Avoid empty statement.
40074
40075 2002-07-06  Jim Meyering  <meyering@lucent.com>
40076
40077         * m4/README: Don't mention Makefile.am.in.
40078         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
40079
40080 2002-07-01  Jim Meyering  <meyering@lucent.com>
40081
40082         * lib/c-stack.c: Include sys/time.h.
40083         From Volker Borchert.
40084
40085 2002-06-26  Paul Eggert  <eggert@twinsun.com>
40086
40087         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
40088
40089 2002-06-26  Paul Eggert  <eggert@twinsun.com>
40090
40091         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
40092         New macro.  Use it uniformly instead of
40093         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
40094         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
40095         reported by Vin Shelton.
40096
40097 2002-06-22  Paul Eggert  <eggert@twinsun.com>
40098
40099         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
40100         Do not assume SA_SIGINFO behavior.
40101         Bug reported by Jim Meyering on NetBSD 1.5.2.
40102
40103 2002-06-22  Jim Meyering  <meyering@lucent.com>
40104
40105         * m4/c-stack.m4: New file, from diffutils-2.8.2.
40106         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
40107
40108         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
40109         now that configure.ac uses AC_GNU_SOURCE.
40110         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
40111         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
40112
40113         Update to latest tools.  Suggestions from Paul Eggert.
40114         * m4/stdbool.m4: New file, from diffutils-2.8.2.
40115         * m4/gnu-source.m4: Update from diffutils-2.8.2.
40116         * m4/fnmatch.m4: Likewise.
40117         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
40118         to AC_HEADER_STDBOOL
40119
40120 2002-06-22  Jim Meyering  <meyering@lucent.com>
40121
40122         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
40123         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
40124
40125 2002-06-22  Jim Meyering  <meyering@lucent.com>
40126
40127         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
40128
40129         * lib/exitfail.c, exitfail.h: Likewise.
40130         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
40131
40132         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
40133         of fnmatch.h.
40134         (EXTRA_DIST): Add fnmatch_loop.c.
40135         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
40136
40137         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
40138         * lib/fnmatch.c: Update from diffutils-2.8.2.
40139         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
40140         * lib/fnmatch.h: Remove file.
40141
40142 2002-06-21  Jim Meyering  <meyering@lucent.com>
40143
40144         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
40145         * m4/mbrtowc.m4: Likewise.
40146
40147         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
40148         * m4/mbswidth.m4: Reflect name change:
40149         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
40150         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
40151
40152         * m4/lib-link.m4: Update from gettext-0.11.2.
40153         * m4/gettext.m4: Likewise.
40154
40155         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
40156         From Alfred M. Szmidt.
40157
40158 2002-06-18  Paul Eggert  <eggert@twinsun.com>
40159
40160         * lib/file-type.h: Report an error if neither S_ISREG nor
40161         S_IFREG is defined, instead of using a test specific to glibc
40162         2.2.  This should be safe, since POSIX requires S_ISREG and
40163         Unix Version 7 had S_IFREG.  We don't need to check for
40164         <sys/types.h> since we don't use any symbols that it defines.
40165
40166 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
40167
40168         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
40169         $@-t, so that each temporary file name is unique and valid in the first
40170         8 characters, for operation under DOS.
40171
40172 2002-06-15  Paul Eggert  <eggert@twinsun.com>
40173
40174         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
40175
40176 2002-06-15  Jim Meyering  <meyering@lucent.com>
40177
40178         Work even with DJGPP 2.03, which lacks support for symlinks.
40179         From Richard Dawe.
40180         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
40181         is defined.
40182         * lib/lchown.c (S_ISLNK): Likewise.
40183
40184 2002-06-15  Jim Meyering  <meyering@lucent.com>
40185
40186         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
40187         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
40188         have been included before this file.
40189
40190 2002-06-14  Jim Meyering  <meyering@lucent.com>
40191
40192         * lib/file-type.h: Use the version from diffutils-2.8.2.
40193         * lib/file-type.c: Likewise.
40194
40195 2002-06-07  Jim Meyering  <meyering@lucent.com>
40196
40197         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
40198         They're needed at least for NetBSD 1.5.2.
40199         ($statxfs_includes): Include those same headers.
40200         ($statxfs_includes): Include sys/vfs.h if available.
40201         ($statxfs_includes): Likewise for sys/statvfs.h.
40202         Check for the following members in both structs statfs and statvfs:
40203         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
40204
40205 2002-06-01  Jim Meyering  <meyering@lucent.com>
40206
40207         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
40208         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
40209
40210 2002-05-28  Jim Meyering  <meyering@lucent.com>
40211
40212         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
40213         Reported by Volker Borchert.
40214
40215 2002-05-27  Jim Meyering  <meyering@lucent.com>
40216
40217         Fix a problem seen only on nonconforming systems whereby ls.c's
40218         use of localtime, and then of gettimeofday would cause trouble:
40219         the localtime call used to initialize rpl_gettimeofday's save
40220         mechanism would clobber ls's current local time information so
40221         that in any long listing the first file would always be listed
40222         with date 1970-01-01.  Analysis by Volker Borchert.
40223
40224         * lib/gettimeofday.c (localtime): Undefine.
40225         (rpl_localtime): New function.
40226
40227 2002-05-27  Jim Meyering  <meyering@lucent.com>
40228
40229         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
40230         localtime.
40231
40232         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
40233         use the replacement function; it wouldn't resolve at link time.
40234         Reported by Volker Borchert.
40235
40236 2002-05-22  Jim Meyering  <meyering@lucent.com>
40237
40238         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
40239         file-type.h.
40240         * lib/file-type.h: New file.
40241         * lib/file-type.c (file_type): New file/function.  Extracted from
40242         diffutils.
40243
40244 2002-04-30  Jim Meyering  <meyering@lucent.com>
40245
40246         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
40247
40248 2002-04-29  Paul Eggert  <eggert@twinsun.com>
40249
40250         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
40251
40252 2002-04-29  Paul Eggert  <eggert@twinsun.com>
40253
40254         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
40255         Do not check for alloca.h (no longer used) or stdbool.h (was never
40256         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
40257
40258 2002-04-29  Paul Eggert  <eggert@twinsun.com>
40259
40260         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
40261
40262 2002-04-29  Jim Meyering  <meyering@lucent.com>
40263
40264         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
40265         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
40266         Use AC_FUNC_STRNLEN here instead.
40267
40268         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
40269         With autoconf-2.53a, it's part of AC_PROG_CC.
40270
40271 2002-04-28  Paul Eggert  <eggert@twinsun.com>
40272
40273         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
40274         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
40275
40276 2002-04-28  Paul Eggert  <eggert@twinsun.com>
40277
40278         * lib/sig2str.h, lib/sig2str.c: New files.
40279         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
40280
40281 2002-04-28  Paul Eggert  <eggert@twinsun.com>
40282
40283         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
40284         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
40285         of 127, since 64 is the largest conceivable number for ancient
40286         nonstandard hosts.
40287         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
40288
40289 2002-04-28  Jim Meyering  <meyering@lucent.com>
40290
40291         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
40292
40293 2002-04-24  Jim Meyering  <meyering@lucent.com>
40294
40295         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
40296         (jm_PREREQ): Use it.
40297
40298         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
40299         mach/mach.h fcntl.h.
40300         Check for this function: setlocale.
40301
40302 2002-04-24  Jim Meyering  <meyering@lucent.com>
40303
40304         * lib/gettext.h: New file, from Gettext.
40305         * lib/Makefile.am (INCLUDES): Remove -I../intl.
40306         (libfetish_a_SOURCES): Add gettext.h.
40307
40308 2002-04-16  Jim Meyering  <meyering@lucent.com>
40309
40310         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
40311         ut_pid, ut_id, ut_exit.
40312
40313 2002-04-16  Jim Meyering  <meyering@lucent.com>
40314
40315         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
40316         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
40317         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
40318
40319 2002-04-12  Jim Meyering  <meyering@lucent.com>
40320
40321         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
40322         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
40323         existence of the getmntinfo function.  Needed for Darwin 5.3.
40324
40325         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
40326         This is necessary at least on Darwin 5.3.
40327
40328         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
40329         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
40330         strnlen.o in the library, and that makes some versions of ranlib
40331         object.
40332
40333 2002-04-12  Jim Meyering  <meyering@lucent.com>
40334
40335         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
40336
40337 2002-04-09  Jim Meyering  <meyering@lucent.com>
40338
40339         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
40340         to be more precise.  Rather than saying we're checking whether the
40341         function `works', say what we're testing.
40342         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
40343         Reported by Bruno Haible.
40344
40345 2002-03-10  Jim Meyering  <meyering@lucent.com>
40346
40347         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
40348         Suggestion from Santiago Vila.
40349
40350 2002-03-08  Jim Meyering  <meyering@lucent.com>
40351
40352         * lib/rename.c: Mention that this wrapper is needed also on
40353         mips-dec-ultrix4.4 systems.
40354
40355 2002-03-02  Jim Meyering  <meyering@lucent.com>
40356
40357         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
40358         not HAVE_CLOCK_SETTIME.
40359
40360 2002-02-27  Paul Eggert  <eggert@twinsun.com>
40361
40362         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
40363         Check for clock_settime.
40364
40365 2002-02-27  Paul Eggert  <eggert@twinsun.com>
40366
40367         * lib/nanosleep.h: Rename to....
40368         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
40369
40370         * lib/gettime.c: New file.
40371         * lib/settime.c: New file.
40372         * lib/stime.c: Remove.
40373
40374         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
40375         timespec.h.  Remove nanosleep.h.
40376
40377 2002-02-25  Paul Eggert  <eggert@twinsun.com>
40378
40379         * m4/acl.m4: New file.
40380         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
40381         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
40382
40383 2002-02-25  Paul Eggert  <eggert@twinsun.com>
40384
40385         * lib/acl.c, lib/acl.h: New files.
40386         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
40387
40388 2002-02-24  Jim Meyering  <meyering@lucent.com>
40389
40390         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
40391         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
40392         cause trouble.  Reported by Nelson Beebe.
40393
40394 2002-02-23  Paul Eggert  <eggert@twinsun.com>
40395
40396         * lib/path-concat.c (xpath_concat): Reorder code to pacify
40397         compilers that don't know that xalloc_die never returns.
40398
40399 2002-02-20  Jim Meyering  <meyering@lucent.com>
40400
40401         * lib/getdate.c: Regenerate using bison-1.33.
40402
40403 2002-02-17  Jim Meyering  <meyering@lucent.com>
40404
40405         * config/config.guess (main): Don't use `head -1'; it's no longer
40406         portable. Use `sed 1q' instead.
40407
40408 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
40409
40410         * m4/codeset.m4: Upgrade to gettext-0.11.
40411         * m4/gettext.m4: Upgrade to gettext-0.11.
40412         * m4/glibc21.m4: Upgrade to gettext-0.11.
40413         * m4/iconv.m4: Upgrade to gettext-0.11.
40414         * m4/isc-posix.m4: Upgrade to gettext-0.11.
40415         * m4/lcmessage.m4: Upgrade to gettext-0.11.
40416         * m4/lib-ld.m4: New file, from gettext-0.11.
40417         * m4/lib-link.m4: New file, from gettext-0.11.
40418         * m4/lib-prefix.m4: New file, from gettext-0.11.
40419         * m4/progtest.m4: Upgrade to gettext-0.11.
40420
40421 2002-02-15  Paul Eggert  <eggert@twinsun.com>
40422
40423         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
40424         (jm_PREREQ): Use it.
40425
40426 2002-02-15  Paul Eggert  <eggert@twinsun.com>
40427
40428         * lib/posixver.c, lib/posixver.h: New files.
40429         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
40430
40431 2002-02-02  Paul Eggert  <eggert@twinsun.com>
40432             Bruno Haible  <bruno@clisp.org>
40433
40434         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
40435         (fwrite_success_callback): New declaration.
40436         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
40437         print_unicode_char. Call failure callback instead of error.
40438         (fwrite_success_callback): New function.
40439         (exit_failure_callback): New function.
40440         (fallback_failure_callback): New function.
40441         (print_unicode_char): Call unicode_to_mb.
40442
40443 2002-01-26  Jim Meyering  <meyering@lucent.com>
40444
40445         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
40446         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
40447
40448 2002-01-26  Jim Meyering  <meyering@lucent.com>
40449
40450         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
40451
40452 2002-01-22  Paul Eggert  <eggert@twinsun.com>
40453
40454         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
40455
40456 2002-01-22  Jim Meyering  <meyering@lucent.com>
40457
40458         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
40459         Otherwise, some versions of automake would omit the rule that makes
40460         Makefile from Makefile.in.
40461
40462 2002-01-21  Paul Eggert  <eggert@twinsun.com>
40463
40464         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
40465         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
40466         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
40467         (memcoll): Set errno to zero if there is no error.
40468
40469         * lib/quotearg.c (quotearg_buffer_restyled):
40470         Fix bug with quoting buffers containing NUL when backslashing escapes.
40471         This bug was exposed by the other changes in this patch.
40472         (quotearg_n_options): New arg ARGSIZE.
40473         All callers changed.
40474         (quoting_options_from_style): New function.
40475         (quotearg_n_style): Use it.
40476         (quotearg_n_style_mem): New function.
40477
40478         * lib/quotearg.h (quotearg_n_style_mem): New function.
40479
40480 2002-01-19  Jim Meyering  <meyering@lucent.com>
40481
40482         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
40483         Remove useless quotes: DF_PROG="df".
40484         * m4/strnlen.m4: New file.
40485
40486 2002-01-16  Paul Eggert  <eggert@twinsun.com>
40487
40488         * lib/backupfile.c (ISDIGIT): Comment fix.
40489         * lib/getdate.y (ISDIGIT): Likewise.
40490         * lib/posixtm.c (ISDIGIT, year): Likewise.
40491         * lib/strverscmp.c (ISDIGIT): Likewise.
40492         * lib/userspec.c (ISDIGIT): Likewise.
40493
40494 2002-01-16  Jim Meyering  <meyering@lucent.com>
40495
40496         * lib/getdate.y: Add three semicolons, each just before a closing
40497         brace. Bison (as of version 1.31) no longer papers over that mistake.
40498
40499 2002-01-05  Jim Meyering  <meyering@lucent.com>
40500
40501         * lib/version-etc.c (version_etc_copyright): Update copyright year.
40502
40503 2001-12-19  Paul Eggert  <eggert@twinsun.com>
40504
40505         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
40506         not silently exit merely because the output buffer happens to
40507         have nothing pending.
40508
40509 2001-12-18  Paul Eggert  <eggert@twinsun.com>
40510
40511         See the big note in ../ChangeLog.
40512         * lib/human.c (suffixes): Prefer K to k for 1024.
40513         (generate_suffix_backwards): New function.
40514         (human_readable_inexact): Use it.
40515         * lib/xstrtol.c (__xstrtol): If there is no number but there
40516         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
40517         Accept 'K' as well as 'k'.
40518
40519 2001-12-15  Jim Meyering  <meyering@lucent.com>
40520
40521         * lib/regex.h (__restrict_arr): Update from libc.
40522
40523         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
40524         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
40525         (STREQ): Define.
40526
40527 2001-12-14  Jim Meyering  <meyering@lucent.com>
40528
40529         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
40530         Suggestion from Bruno Haible.
40531
40532 2001-12-10  Jim Meyering  <meyering@lucent.com>
40533
40534         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
40535         xrealloc, Instead, include "xalloc.h".
40536         (initbuffer): Don't cast xmalloc return value to char*.
40537         (readline): Reword comment.
40538         Don't cast xrealloc return value to char*
40539         Return NULL, not 0.
40540
40541 2001-12-09  Jim Meyering  <meyering@lucent.com>
40542
40543         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
40544         about `signed and unsigned type in conditional expression'.
40545         * lib/posixtm.c (posix_time_parse): Likewise.
40546
40547         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
40548
40549         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
40550         to avoid a pedantic warning.
40551
40552         * lib/getstr.c: Don't include assert.h.
40553         (getstr): Remove warning-evoking assertions.
40554         Return -1 if offset parameter is out of bounds.
40555         Change the type of a local from int to size_t.
40556
40557         * lib/strftime.c (my_strftime_localtime_r): Include this function
40558         definition in the `#if ! HAVE_TM_GMTOFF' block.
40559
40560         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
40561         Include xalloc.h instead.
40562
40563 2001-12-02  Jim Meyering  <meyering@lucent.com>
40564
40565         * lib/tempname.c: Don't declare getenv, thus reverting the change of
40566         2001-11-18.  It's no longer necessary, now that stdlib.h is always
40567         included.
40568
40569         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
40570         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
40571
40572 2001-11-30  Akim Demaille  <akim@epita.fr>
40573
40574         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
40575         before being defined.
40576
40577 2001-11-27  Paul Eggert  <eggert@twinsun.com>
40578
40579         * lib/quotearg.h (quotearg_n, quotearg_n_style):
40580         First arg is int, not unsigned.
40581         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
40582         (SIZE_MAX, UINT_MAX): New macros.
40583         (quotearg_n_options): Abort if N is negative.
40584         Avoid overflow check on hosts where size_t is 64 bits and int
40585         is 32 bits, as overflow is impossible there.
40586         Fix off-by-one typo that caused unnecessary reallocation.
40587
40588 2001-11-27  Jim Meyering  <meyering@lucent.com>
40589
40590         * lib/tempname.c: Merge with version from libc.
40591         * lib/regex.c: Likewise.
40592
40593         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
40594         systems for which STDC_HEADERS is 0, it was not included, resulting in
40595         a warning about an integer-to-pointer conversion problem with getenv.
40596         Reported by Volker Borchert.
40597
40598 2001-11-26  Jim Meyering  <meyering@lucent.com>
40599
40600         * lib/gtod.h: Remove file.
40601         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
40602         * lib/gettimeofday.c: Don't include gtod.h.
40603         (GTOD_init): Remove function.
40604         (rpl_gettimeofday): Do its job here instead, rather than aborting.
40605         Suggestion from Volker Borchert.
40606
40607 2001-11-23  Jim Meyering  <meyering@lucent.com>
40608
40609         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
40610         it.
40611         * lib/hash.c (struct hash_table): Define it here instead.
40612
40613 2001-11-22  Jim Meyering  <meyering@lucent.com>
40614
40615         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
40616
40617 2001-11-20  Jim Meyering  <meyering@lucent.com>
40618
40619         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
40620         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
40621
40622 2001-11-19  Jim Meyering  <meyering@lucent.com>
40623
40624         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
40625         directory.  Use "conftestXXXXXX" as the template.
40626         Suggestion from Paul Eggert.
40627
40628         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
40629         immediately, so the test doesn't mistakenly hit the max-open-files
40630         limit.
40631
40632 2001-11-18  Paul Eggert  <eggert@twinsun.com>
40633
40634         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
40635         (TEMPORARIES): New macro.
40636         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
40637         removes an artificial limitation (e.g. HP-UX 10.20, where
40638         TMP_MAX is 17576).
40639
40640 2001-11-18  Jim Meyering  <meyering@lucent.com>
40641
40642         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
40643
40644 2001-11-18  Jim Meyering  <meyering@lucent.com>
40645
40646         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
40647         on SunOS 4.
40648
40649         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
40650         files will be created before anything else.
40651
40652 2001-11-17  Paul Eggert  <eggert@twinsun.com>
40653
40654         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
40655         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
40656
40657 2001-11-17  Jim Meyering  <meyering@lucent.com>
40658
40659         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
40660         Prompted by a report from Bob Proulx.
40661
40662         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
40663         Instead, require UTILS_FUNC_MKSTEMP.
40664
40665 2001-11-17  Jim Meyering  <meyering@lucent.com>
40666
40667         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
40668         Now, that's done as part of AC_FUNC_STRTOD.
40669
40670 2001-11-17  Jim Meyering  <meyering@lucent.com>
40671
40672         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
40673         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
40674         rather than group writable.  Patch by Juan F. Codagnone.
40675
40676         * lib/readtokens.c: Remove explicit declarations of xmalloc and
40677         xrealloc, Instead, include "xalloc.h".
40678
40679         * lib/mountlist.c: Include unlocked-io.h after all system headers.
40680         Remove explicit declarations of xmalloc, xrealloc,
40681         and xstrdup.  Instead, include "xalloc.h".
40682
40683         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
40684         unlocked-io.h.
40685         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
40686         Likewise.
40687         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
40688
40689         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
40690         Reported by Padraig Brady.
40691
40692         * lib/mkstemp.c: #undef mkstemp.
40693         Include config.h.
40694         (rpl_mkstemp): Rename from mkstemp.
40695         Protoize.
40696
40697 2001-11-16  Jim Meyering  <meyering@lucent.com>
40698
40699         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
40700         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
40701         determine the amount of total physical memory, use pstat_getstatic.
40702         HPUX-11 doesn't define _SC_PHYS_PAGES.
40703         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
40704         If sysconf couldn't be used to determine the amount of available
40705         physical memory, use both pstat_getstatic and pstat_getdynamic.
40706         Based on a patch from Bob Proulx.
40707
40708 2001-11-10  Jim Meyering  <meyering@lucent.com>
40709
40710         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
40711         (jm_PREREQ): Use it.
40712
40713 2001-11-09  Jim Meyering  <meyering@lucent.com>
40714
40715         * m4/jm-macros.m4: Require autoconf-2.52f.
40716         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
40717         Use these AC_-prefixed names, not the AM_-prefixed ones.
40718
40719         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
40720
40721 2001-11-05  Jim Meyering  <meyering@lucent.com>
40722
40723         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
40724
40725 2001-11-04  Jim Meyering  <meyering@lucent.com>
40726
40727         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
40728         $DEFS.
40729
40730 2001-11-03  Jim Meyering  <meyering@lucent.com>
40731
40732         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
40733         of AC_DEFUN.
40734
40735         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
40736         know the name of the variable in the macro definition.
40737
40738 2001-11-03  Jim Meyering  <meyering@lucent.com>
40739
40740         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
40741         in argmatch_to_argument call.
40742
40743         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
40744         argument.
40745
40746         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
40747         e.g., a fault due to an attempt to free a NULL pointer.
40748
40749 2001-11-01  Jim Meyering  <meyering@lucent.com>
40750
40751         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
40752         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
40753
40754 2001-11-01  Jim Meyering  <meyering@lucent.com>
40755
40756         * lib/dirfd.c, lib/dirfd.h: New files.
40757         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
40758
40759         * lib/hash.c (hash_print) [TESTING]: Clean up.
40760
40761 2001-10-22  Paul Eggert  <eggert@twinsun.com>
40762
40763         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
40764         to avoid a warning if -Wall.
40765
40766 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
40767
40768         * README: New file
40769         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
40770         (per RMS's instructions, this is now the canonical source)
40771         * lgpl/, gpl/: New directories.
40772
40773 2001-10-21  Paul Eggert  <eggert@twinsun.com>
40774
40775         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
40776
40777 2001-10-21  Jim Meyering  <meyering@lucent.com>
40778
40779         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
40780         this code would end up calling gettext even in packages built
40781         with --disable-nls.
40782         * lib/getopt.c (_): Likewise.
40783         * lib/regex.c (_): Likewise.
40784
40785 2001-10-20  Paul Eggert  <eggert@twinsun.com>
40786
40787         * m4/error.m4 (jm_PREREQ_ERROR):
40788         Do not invoke AC_CHECK_FUNCS with strerror_r, as
40789         AC_FUNC_STRERROR_R does that.
40790         Check for strerror declaration.
40791
40792         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
40793         are supposed to have them these days.
40794         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
40795         Merge changes from latest Autoconf CVS.
40796         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
40797         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
40798         POSIX decided to standardize on the int flavor of strerror_r.
40799
40800 2001-10-20  Paul Eggert  <eggert@twinsun.com>
40801
40802         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
40803         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
40804         Use strerror_r that is only a macro, even if it is not a function.
40805         (strerror): Check for HAVE_DECL_STRERROR before declaring.
40806         (private_strerror): Use prototypes, not old-style function definition.
40807         (print_errno_message): New function.
40808         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
40809         char*-flavored one.
40810         (error_tail, error, error_at_line): Use it.
40811
40812 2001-10-11  Jim Meyering  <meyering@lucent.com>
40813
40814         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
40815         and quote_n (1, ... to avoid clobbering a buffer.
40816
40817 2001-10-05  Jim Meyering  <meyering@lucent.com>
40818
40819         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
40820         hash-pjw.h.
40821         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
40822         * lib/hash-pjw.h: New file.
40823
40824 2001-09-30  Jim Meyering  <meyering@lucent.com>
40825
40826         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
40827         `struct fsstat' has the `f_fstypename' member.
40828         Use that to define FS_TYPE, which is now used to make
40829         the getfsstat link test tighter.
40830
40831 2001-09-30  Jim Meyering  <meyering@lucent.com>
40832
40833         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
40834         Include <sys/ucred.h>, for Apple Darwin.
40835         Include sys/mount.h and sys/fs_types.h only if available.
40836         (FS_TYPE): Define.
40837         (read_filesystem_list): Use FS_TYPE.
40838
40839 2001-09-29  Paul Eggert  <eggert@twinsun.com>
40840
40841         * lib/exclude.c (excluded_filename): 0 -> false, since it's
40842         a boolean context.
40843
40844 2001-09-29  Jim Meyering  <meyering@lucent.com>
40845
40846         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
40847         [one-argument getmntent function]): Include stdio.h before mntent.h.
40848         SunOS 4.1.x needs it for the declaration of `FILE'.
40849         Patch by Volker Borchert.
40850
40851         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
40852         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
40853         sys/fs_types.h, and make the link-test for getfsstat guard #include
40854         directives with appropriate #if HAVE_*_H tests so that we can
40855         detect getfsstat on Apple Darwin1.3.7 systems.
40856         Reported by Nelson Beebe.
40857         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
40858
40859 2001-09-28  Paul Eggert  <eggert@twinsun.com>
40860
40861         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
40862         #defines strtoimax.  Also treat the other strto* functions
40863         like strtoimax.
40864
40865         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
40866         Check for strtoul and strtoumax,
40867         as those declarations are made even in the signed case.
40868         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
40869         Likewise, for strtol and strtoimax.
40870
40871 2001-09-28  Paul Eggert  <eggert@twinsun.com>
40872
40873         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
40874         #defines strtoimax.  Also treat the other strto* functions
40875         like strtoimax.
40876
40877         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
40878         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
40879         (strtoimax, strtoumax): Do not declare if already defined as a macro.
40880
40881 2001-09-26  Jim Meyering  <meyering@lucent.com>
40882
40883         Most macros in unlocked-io.h had the wrong number of arguments.
40884         * lib/gen-uio: New script.
40885         (USE_UNLOCKED_IO): Define to 1 if not already defined.
40886         * lib/unlocked-io.hin: Remove file.
40887         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
40888         rather than trying to embed it here.
40889         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
40890         Reported by Padraig Brady.
40891
40892 2001-09-25  Volker Borchert  <bt@teknon.de>
40893
40894         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
40895         `result'.
40896
40897 2001-09-24  Jim Meyering  <meyering@lucent.com>
40898
40899         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
40900
40901 2001-09-23  Jim Meyering  <meyering@lucent.com>
40902
40903         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
40904         instead of the mere test for existence of mntent.h.  The latter
40905         would get a false-positive on AIX 3.4 systems.
40906         In the outer getmntent if-block, don't die if neither of the getmntent
40907         tests succeeds.  Instead, just fall through and continue with the
40908         remaining tests.
40909
40910 2001-09-23  Jim Meyering  <meyering@lucent.com>
40911
40912         * lib/mountlist.c: Remove useless parentheses in #if directives.
40913         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
40914         the deprecated MOUNTED symbol is no longer defined in mntent.h.
40915
40916 2001-09-22  Jim Meyering  <meyering@lucent.com>
40917
40918         * m4/gettext.m4: New file.  From gettext.
40919         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
40920         * m4/progtest.m4: Likewise
40921         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
40922         * m4/glibc21.m4: Likewise.
40923
40924         * m4/libintl.m4: Remove.  No longer used.
40925
40926 2001-09-22  Jim Meyering  <meyering@lucent.com>
40927
40928         * lib/localcharset.c: Update from latest gettext.
40929         * lib/config.charset: Likewise.
40930
40931 2001-09-20  Jim Meyering  <meyering@lucent.com>
40932
40933         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
40934         strtoimax.
40935         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
40936         strtoumax.
40937
40938 2001-09-20  Jim Meyering  <meyering@lucent.com>
40939
40940         * lib/xstrtol.c (strtoimax): Guard declaration with
40941         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
40942         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
40943         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
40944         (strtoumax): Likewise, for completeness (it wasn't necessary).
40945
40946 2001-09-17  Paul Eggert  <eggert@twinsun.com>
40947
40948         * lib/strtoimax.c (HAVE_LONG_LONG):
40949         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
40950         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
40951         to work around bug in IBM C compiler.
40952
40953 2001-09-17  Jim Meyering  <meyering@lucent.com>
40954
40955         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
40956         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
40957         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
40958         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
40959         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
40960         whenever the right hand side need not be expanded by the shell.
40961
40962 2001-09-16  Paul Eggert  <eggert@twinsun.com>
40963
40964         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
40965         library.  It's not correct, as some older glibcs are buggy.
40966         fnmatch wasn't fixed until glibc 2.2.
40967
40968         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
40969         special shell magic here.
40970
40971 2001-09-16  Jim Meyering  <meyering@lucent.com>
40972
40973         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
40974         * m4/jm-macros.m4: Require it.
40975
40976 2001-09-16  Jim Meyering  <meyering@lucent.com>
40977
40978         * lib/mkdir.c: New file.
40979
40980 2001-09-15  Jim Meyering  <meyering@lucent.com>
40981
40982         * m4/jm-macros.m4: Check for help2man.
40983
40984 2001-09-11  Jim Meyering  <meyering@lucent.com>
40985
40986         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
40987         The body, by Paul Eggert, was moved here from configure.in.
40988         * m4/jm-macros.m4: Require UTILS_HOST_OS.
40989
40990 2001-09-04  Paul Eggert  <eggert@twinsun.com>
40991
40992         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
40993         (jm_PREREQ): Use it.
40994
40995 2001-09-04  Paul Eggert  <eggert@twinsun.com>
40996
40997         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
40998         Use ssize_t, not int, to store result of readlink.
40999         Check for ssize_t overflow as well as size_t overflow,
41000         as POSIX says the result of readlink is implementation-defined
41001         when ssize_t overflows.
41002         Remove unnecessary cast to char*.
41003         Use free+malloc instead of realloc, as the storage doesn't need
41004         to be preserved and it's clearer and can be more efficient that way.
41005         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
41006         * lib/xreadlink.h (xreadlink): Update prototype.
41007
41008 2001-09-04  Paul Eggert  <eggert@twinsun.com>
41009
41010         * lib/xgetcwd.c: Revert some of the previous change; intead,
41011         fix the HAVE_GETCWD_NULL code to behave more like the
41012         !HAVE_GETCWD_NULL code used to.
41013
41014         Include "xalloc.h".
41015         (xgetcwd): Do not return NULL when memory is exhausted; instead,
41016         invoke xalloc_die.
41017
41018 2001-09-03  Paul Eggert  <eggert@twinsun.com>
41019
41020         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
41021         sys/param.h, as pathmax.h includes them.
41022
41023 2001-09-03  Paul Eggert  <eggert@twinsun.com>
41024
41025         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
41026         (jm_PREREQ_XGETCWD): New macro.
41027
41028         * m4/getcwd.m4: New file.
41029
41030 2001-09-03  Paul Eggert  <eggert@twinsun.com>
41031
41032         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
41033         like the HAVE_GETCWD_NULL code.
41034         Include pathmax.h if not HAVE_GETCWD.
41035         Do not include xalloc.h.
41036         (INITIAL_BUFFER_SIZE): New symbol.
41037         Do not use xmalloc / xrealloc, since the caller is responsible for
41038         handling errors.  Preserve errno around `free' during failure.
41039         Do not overrun buffer when using getwd.
41040
41041 2001-09-03  Paul Eggert  <eggert@twinsun.com>
41042
41043         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
41044         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
41045         getcwd (NULL, 0).
41046
41047 2001-09-03  Paul Eggert  <eggert@twinsun.com>
41048
41049         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
41050         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
41051         spotted by Jim Meyering.
41052
41053 2001-09-03  Jim Meyering  <meyering@lucent.com>
41054
41055         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
41056         failure.
41057
41058 2001-09-02  Jim Meyering  <meyering@lucent.com>
41059
41060         * lib/error.c: Update from GNU libc.
41061
41062 2001-09-01  Jim Meyering  <meyering@lucent.com>
41063
41064         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
41065         Used by df.
41066
41067 2001-09-01  Jim Meyering  <meyering@lucent.com>
41068
41069         * lib/xreadlink.c: New file.
41070         * lib/xreadlink.h: New file.
41071         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
41072         xreadlink.h.
41073
41074         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
41075         doesn't conflict with sparc Solaris 7's definition in
41076         /usr/include/sys/int_types.h.
41077
41078         * lib/exclude.c: Use `""', not `<>' to #include non-system header
41079         files.
41080         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
41081         and strncasecmp as r-values.  Unixware didn't have declarations.
41082
41083 2001-08-31  Paul Eggert  <eggert@twinsun.com>
41084
41085         * lib/xstrtol.h: Add copyright notice.
41086         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
41087         LONGINT_INVALID_SUFFIX_CHAR.
41088
41089 2001-08-31  Paul Eggert  <eggert@twinsun.com>
41090
41091         * lib/xstrtol.c (strtoimax): New decl.
41092
41093 2001-08-31  Paul Eggert  <eggert@twinsun.com>
41094
41095         * lib/xgetcwd.c: Don't include pathmax.h.
41096         Include stdlib.h and unistd.h if available.
41097         Include xalloc.h.
41098         (xmalloc, xstrdup, free): Remove decls.
41099         (xgetcwd): Don't assume sizes fit in unsigned.
41100         Check for overflow when computing sizes.
41101         Simplify reallocation code.
41102
41103 2001-08-31  Paul Eggert  <eggert@twinsun.com>
41104
41105         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
41106         a directory's st_size can have an arbitrary value, so the old
41107         usage could waste an arbitrary amount of memory.  All uses
41108         changed.
41109         * lib/savedir.h: Update prototype.
41110
41111 2001-08-31  Paul Eggert  <eggert@twinsun.com>
41112
41113         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
41114
41115         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
41116         old strtoimax.c.
41117
41118         Also, make the following further changes to make this file's
41119         configuration more similar to that of strtol.c:
41120         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
41121         (strtoumax, uintmax_t, strtoull, strtol): Remove.
41122         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
41123         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
41124         changed to signed values.
41125
41126         And make the following changes as well:
41127         Fix copyright notice, as 1999 was missing.
41128         (verify): New macro.
41129         (strtoimax): Check sizes at compile-time, not run-time.
41130         Prefer strtol to strtoll if both work.
41131         (main): Remove; it was not that useful and was a pain to maintain.
41132
41133         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
41134
41135 2001-08-31  Jim Meyering  <meyering@lucent.com>
41136
41137         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
41138         Use an initial, malloc'd, buffer of length 128 rather than
41139         a statically allocated one of length 1024.
41140
41141 2001-08-30  Paul Eggert  <eggert@twinsun.com>
41142
41143         Simplify code, partly by assuming autoconf 2.52 semantics.
41144
41145         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
41146
41147         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
41148         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
41149         All uses removed.
41150         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
41151         Move AC_REQUIRE to next-to-top level, to avoid confusion.
41152         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
41153         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
41154         jm_AC_HEADER_INTTYPES_H.
41155         * m4/jm-macros.m4 (jm_MACROS): Likewise.
41156
41157         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
41158
41159         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
41160         Quote first arg of AC_DEFUN.
41161         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
41162         since they are needed to parse the include file even if we need
41163         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
41164         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
41165         but with opposite signedness.
41166
41167 2001-08-30  Paul Eggert  <eggert@twinsun.com>
41168
41169         Merge 'exclude' changes from tar 1.13.22.
41170         This fixes one or two unlikely storage allocation overflow bugs,
41171         but doesn't change user-visible behavior otherwise.
41172
41173 2001-08-30  Paul Eggert  <eggert@twinsun.com>
41174
41175         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
41176         (jm_PREREQ_EXCLUDE): New macro.
41177
41178 2001-08-30  Paul Eggert  <eggert@twinsun.com>
41179
41180         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
41181         tm to be declared.
41182
41183 2001-08-30  Paul Eggert  <eggert@twinsun.com>
41184
41185         * lib/hash.c: Remove '2001' from copyright notice.
41186
41187 2001-08-30  Paul Eggert  <eggert@twinsun.com>
41188
41189         * lib/full-write.h: New file.
41190         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
41191         * lib/full-write.c: Correct credits, as cccp.c no longer
41192         exists and anyway it was so heavily changed from the old cccp
41193         code as to be unrecognizable.  Include full-write.h.
41194         (full_write) Return size_t, with short writes meaning failure.
41195         All callers changed.  This fixes a bug with large buffers
41196         on 64-bit hosts.
41197         * lib/utime.c: Include full-write.h.
41198
41199 2001-08-30  Paul Eggert  <eggert@twinsun.com>
41200
41201         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
41202         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
41203         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
41204         Include if available.
41205         (<xalloc.h>): Include
41206         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
41207         (verify): New macro.  Use it to verify that EXCLUDE macros do not
41208         collide with FNM macros.
41209         (struct patopts): New struct.
41210         (struct exclude): Use it, as exclude patterns now come with options.
41211         (new_exclude): Support above changes.
41212         (new_exclude, add_exclude_file):
41213         Initial size must now be a power of two to simplify overflow checking.
41214         (free_exclude, fnmatch_no_wildcards): New function.
41215         (excluded_filename): No longer requires options arg, as the options
41216         are determined by add_exclude.  Now returns bool, not int.
41217         (excluded_filename, add_exclude):
41218         Add support for the fancy new exclusion options.
41219         (add_exclude, add_exclude_file): Now takes int options arg.
41220         Check for arithmetic overflow when computing sizes.
41221         (add_exclude_file): xrealloc might modify errno, so don't
41222         realloc until after errno might be used.
41223
41224         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
41225         New macros.
41226         (free_exclude): New decl.
41227         (add_exclude, add_exclude_file): Now takes int options arg.
41228         (excluded_filename): No longer requires options arg, as the options
41229         are determined by add_exclude.  Now returns bool, not int.
41230
41231 2001-08-30  Paul Eggert  <eggert@twinsun.com>
41232
41233         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
41234
41235 2001-08-27  Jim Meyering  <meyering@lucent.com>
41236
41237         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
41238
41239         * lib/version-etc.c (N_): Remove definition.
41240         Revert most of last change.
41241         Instead, simply don't mark the `Copyright...' string for translation.
41242         Based on advice from Paul Eggert.
41243
41244         * lib/strtoxmax.c: Tweak comment.
41245
41246 2001-08-26  Jim Meyering  <meyering@lucent.com>
41247
41248         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
41249
41250         * m4/xstrtoimax.m4: New file.
41251         * m4/xstrtoumax.m4: Add comments explaining why we
41252         AC_REPLACE_FUNCS(strtol).
41253
41254 2001-08-26  Jim Meyering  <meyering@lucent.com>
41255
41256         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
41257         of copyright with `%s' so translators don't get an untranslated
41258         message in 2002.
41259         (COPYRIGHT_YEAR): Define.
41260         (version_etc): Use fprintf rather than fputs.
41261         Suggestion from Ulrich Drepper.
41262
41263         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
41264
41265         * lib/strtoll.c: New file, from GNU libc.
41266         * lib/xstrtoimax.c: New file.
41267
41268         * lib/xstrtol.h: Add xstrtoimax.
41269         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
41270         * lib/strtoimax.c: New file.  Likewise, but first define
41271         STRTOUXMAX_SIGNED.
41272
41273         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
41274         ...
41275         * lib/strtoxmax.c: ... then renamed to this.
41276
41277 2001-08-18  Paul Eggert  <eggert@twinsun.com>
41278
41279         * m4/inttypes.m4: Add AC_PREREQ(2.13).
41280         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
41281         (jm_AC_TYPE_INTMAX_T): New macro.
41282         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
41283
41284         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
41285
41286         * m4/longlong.m4: Renamed from ulonglong.m4.
41287         * m4/inttypes.m4: Renamed from inttypes_h.m4.
41288         * m4/uintmax_t.m4: Removed.
41289
41290 2001-08-13  Paul Eggert  <eggert@twinsun.com>
41291
41292         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
41293         Port to Solaris 8, where 'sed' requires a space after the 'r'
41294         command, and where sh dislikes "$/".  Clean up the spacing a bit.
41295         Redirect output to $tmp just once.
41296
41297 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
41298
41299         * lib/addext.c (<errno.h>): Include.
41300         (errno): Declare if not defined.
41301         (addext): Work correctly when pathconf returns -1 and leaves
41302         errno alone because there is no limit.  Also, work even if
41303         pathconf returns a value greater than SIZE_MAX.
41304
41305 2001-08-12  Jim Meyering  <meyering@lucent.com>
41306
41307         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
41308         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
41309         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
41310         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
41311         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
41312         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
41313         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
41314         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
41315         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
41316         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
41317         utime.m4, utimes.m4, xstrtoumax.m4:
41318         Quote the first argument in each use of AC_DEFUN.
41319
41320 2001-08-12  Jim Meyering  <meyering@lucent.com>
41321
41322         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
41323         Simply `return getcwd (NULL, 0);'.
41324         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
41325         Use 1300 as initial value for length, not PATH_MAX.
41326
41327         * lib/pathmax.h: Clean up cpp syntax.
41328
41329 2001-08-12  Jim Meyering  <meyering@lucent.com>
41330
41331         * lib/gettimeofday.c: New file.
41332         * lib/gtod.h: New file.
41333         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
41334
41335 2001-08-05  Jim Meyering  <meyering@lucent.com>
41336
41337         * m4/jm-macros.m4: Require autoconf-2.52.
41338
41339 2001-08-04  Jim Meyering  <meyering@lucent.com>
41340
41341         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
41342         stmt, to get in sync with glibc.
41343
41344 2001-08-03  Paul Eggert  <eggert@twinsun.com>
41345
41346         The following changes are from gettext 0.10.39 as maintained by
41347         Bruno Haible.
41348
41349         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
41350         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
41351         with inverted sense.  All uses changed.
41352
41353         * lib/mbswidth.c: Don't include <limits.h>.
41354         Include <stdlib.h> and <string.h> unconditionally.
41355         (iswcntrl, mbsinit, ISCNTRL): New macros.
41356         (mbsnwidth): Use K&R style function declarations.
41357         Don't bother checking for MB_LEN_MAX == 1, since the compiler
41358         can optimize it when MB_CUR_MAX == 1.
41359         The width of control characters is zero, not 1.
41360
41361 2001-08-03  Paul Eggert  <eggert@twinsun.com>
41362
41363         The following changes are from gettext 0.10.39 as maintained by
41364         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
41365
41366         * m4/codeset.m4: Upgrade to serial AM1.
41367         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
41368         all uses changed.  Quote first arg of AC_DEFUN.
41369         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
41370
41371         * m4/iconv.m4: Upgrade to serial AM2.
41372         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
41373         Add --with-libconv-prefix.
41374         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
41375         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
41376         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
41377         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
41378         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
41379
41380         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
41381         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
41382         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
41383         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
41384         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
41385         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
41386         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
41387         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
41388         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
41389
41390         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
41391         string.h any more.
41392
41393         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
41394         not the default value.
41395
41396         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
41397         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
41398         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
41399         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
41400         Also check for iswcntrl, used for wcwidth fallback.
41401         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
41402         to Autoconf 2.13.
41403
41404 2001-08-03  Jim Meyering  <meyering@lucent.com>
41405
41406         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
41407         as it was in the original.  Reported by Paul Eggert.
41408
41409 2001-07-16  Jim Meyering  <meyering@lucent.com>
41410
41411         * m4/gettimeofday.m4: New file.
41412         Prompted by a report from Bernhard Baehr.
41413
41414 2001-07-15  Jim Meyering  <meyering@lucent.com>
41415
41416         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
41417         stuff. Now it's in ../Makefile.cfg.
41418
41419 2001-07-15  Jim Meyering  <meyering@lucent.com>
41420
41421         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
41422         (BUILT_SOURCES): Add unlocked-io.h.
41423         (io_functions): Define.
41424         (unlocked-io.h): New rule.
41425         (DISTCLEANFILES): Add unlocked-io.h.
41426         (all-local): Depend on unlocked-io.h, to ensure it is created.
41427
41428         * lib/unlocked-io.hin: New file
41429
41430         * lib/regex.c: Update from glibc.
41431
41432 2001-07-05  Jim Meyering  <meyering@lucent.com>
41433
41434         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
41435         recommendation.
41436         (libfetish_a_SOURCES): Put all .h files here instead.
41437         Remove a thus-exposed (better checks in automake) duplicate and
41438         two unnecessary .h files.
41439
41440 2001-07-04  Jim Meyering  <meyering@lucent.com>
41441
41442         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
41443         that generates jm-glibc-io.m4 so that it doesn't trigger any make
41444         distcheck failure.
41445
41446 2001-07-02  Jim Meyering  <meyering@lucent.com>
41447
41448         The following changes were prompted by suggestions from Bruno Haible.
41449
41450         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
41451         is now generated.
41452         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
41453         definition of EXTRA_DIST.
41454         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
41455         ensure that the generated file is created/updated whenever the list
41456         of $(unlocked_functions) is changed.
41457         (jm-glibc-io.m4): New rule.
41458         (unlocked-io.h): New rule -- currently unused.
41459
41460 2001-06-24  Jim Meyering  <meyering@lucent.com>
41461
41462         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
41463         unmatched right bracket, rather than kludging it with an extra,
41464         falsely-matching quote in a comment.  Patch by Akim Demaille.
41465
41466 2001-06-11  Jim Meyering  <meyering@lucent.com>
41467
41468         * lib/regex.c: Update from GNU libc.
41469
41470 2001-05-27  Jim Meyering  <meyering@lucent.com>
41471
41472         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
41473         Check for ut_type in struct utmp.
41474
41475 2001-05-27  Jim Meyering  <meyering@lucent.com>
41476
41477         * lib/readutmp.h (UT_TYPE): Define.
41478
41479 2001-05-24  Jim Meyering  <meyering@lucent.com>
41480
41481         * lib/argmatch.c: Include "quote.h".
41482         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
41483         quote function.  Reported by Göran Uddeborg.
41484
41485 2001-05-22  Jim Meyering  <meyering@lucent.com>
41486
41487         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
41488         now that we use the package-supplied version unconditionally.
41489         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
41490
41491 2001-05-21  Jim Meyering  <meyering@lucent.com>
41492
41493         * m4/regex.m4: Change a couple backticks to single quotes to avoid
41494         shell syntax errors.
41495
41496 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
41497
41498         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
41499
41500 2001-05-20  Paul Eggert  <eggert@twinsun.com>
41501
41502         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
41503         Don't bother to check library strftime, since
41504         we'll be using our own my_strftime function anyway.
41505         Define my_strftime instead of strftime.
41506
41507 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
41508
41509         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
41510         which is not yet declared.
41511
41512 2001-05-15  Jim Meyering  <meyering@lucent.com>
41513
41514         * m4/regex.m4: Use proper quoting so brackets appear in the test
41515         program.
41516         Reported by, and with help from, Bruno Haible.
41517
41518 2001-05-13  Jim Meyering  <meyering@lucent.com>
41519
41520         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
41521         undefined.
41522
41523 2001-05-11  Paul Eggert  <eggert@twinsun.com>
41524
41525         dirname code cleanup.  base_name now behaves more compatibly
41526         with POSIX basename when given file names that have trailing
41527         slashes, and similarly for dir_name.  Add new primitives
41528         base_len and dir_len.  Put the directory-name-related decls
41529         into dirname.h.
41530
41531         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
41532         * lib/backupfile.c (base_name): Likewise.
41533         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
41534         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
41535         * lib/makepath.c (strip_trailing_slashes): Likewise.
41536         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
41537         ISSLASH): Likewise.
41538         * lib/rename.c (strip_trailing_slashes): Likewise.
41539         * lib/same.c (base_name): Likewise.
41540         * lib/stripslash.c (ISSLASH): Likewise.
41541
41542         * lib/addext.c: Include <dirname.h> after size_t is defined.
41543         * lib/backupfile.c: Likewise.
41544
41545         * lib/addext.c (addext): Use base_len to trim redundant
41546         trailing slashes instead of doing it ourselves.
41547         But do not trim the last slash if it is not redundant.
41548
41549         * lib/backupfile.c (find_backup_file_name,
41550         max_backup_version): Use base_len instead of rolling it ourselves.
41551         Handle the case of "" and (on DOS) "C:" correctly.
41552
41553         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
41554         needed. Include <string.h>, <dirname.h>.
41555         (base_name): Allow file names ending in slashes, other than names
41556         that are all slashes.  In this case, return the basename followed
41557         by the slashes.  This is more general, and can be used in places
41558         where the original base_name purposely had an assertion failure.
41559         (base_len): New function.
41560
41561         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
41562         Do not include <assert.h>; no longer needed.
41563         Include xalloc.h.
41564         (memrchr): Remove decl.
41565         (dir_name_r): Remove.
41566         (dir_len): Renamed from dirlen.  All callers changed.
41567         Rewrite in terms of base_name, for simplicity and consistency.
41568         (dir_name): Never return NULL.  All callers changed.
41569         Do not include <stdlib.h> in test program; no longer needed.
41570         return 0; is fine for test program.
41571
41572         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
41573         New macros.
41574         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
41575
41576         * lib/path-concat.c (path_concat): Use base_len to compute
41577         base length, not strlen; this means we cannot rely on memcpy
41578         to null-terminate.
41579
41580         * lib/same.c (STREQ): Remove.
41581         (same_name): Handle the case where the basename ends in trailing '/'.
41582
41583         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
41584         a slash was stripped.  Do not strip the last slash after a
41585         file system prefix.
41586
41587 2001-05-11  Paul Eggert  <eggert@twinsun.com>
41588
41589         * lib/Makefile.am (libfetish_a_SOURCES):
41590         Add strftime.c, since we now compile it on all hosts.
41591
41592         * lib/strftime.c (my_strftime):
41593         Define to nstrftime if emacs, but only if my_strftime is not defined.
41594         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
41595         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
41596         Add one more extra argument: a nanoseconds value.
41597         All uses changed.
41598         (ns): New macro.
41599         (my_strftime function): Add %N format.
41600         (emacs_strftimeu): Renamed from emacs_strftime,
41601         with extra ut argument.
41602
41603 2001-05-09  Paul Eggert  <eggert@twinsun.com>
41604
41605         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
41606
41607 2001-04-21  Jim Meyering  <meyering@lucent.com>
41608
41609         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
41610         doesn't interfere.
41611
41612 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
41613
41614         * m4/ftruncate.m4: Check for chsize.
41615         Link with ftruncate.o unconditionally if ftruncate is missing.
41616         This was required when cross-compiling to i586-mingw32msvc.
41617
41618 2001-04-08  Jim Meyering  <meyering@lucent.com>
41619
41620         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
41621         recomputed; that's necessary when the offset spans a DST transition.
41622         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
41623
41624 2001-04-02  Jim Meyering  <meyering@lucent.com>
41625
41626         * lib/regex.h, regex.c: Update from GNU libc.
41627
41628 2001-03-24  Jim Meyering  <meyering@lucent.com>
41629
41630         * m4/jm-macros.m4: Require autoconf-2.49d.
41631
41632 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
41633
41634         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
41635
41636 2001-03-19  Paul Eggert  <eggert@twinsun.com>
41637
41638         * lib/version-etc.c (version_etc_copyright): Update to 2001.
41639
41640 2001-03-17  Jim Meyering  <meyering@lucent.com>
41641
41642         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
41643         now that the version in autoconf is equivalent.
41644         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
41645
41646         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
41647         Suggestion from Akim Demaille.
41648
41649         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
41650         (jm_PREREQ_TEMPNAME): New function.
41651
41652 2001-03-16  Paul Eggert  <eggert@twinsun.com>
41653
41654         * lib/tempname.c (uint64_t): Define to uintmax_t if
41655         not defined, and if UINT64_MAX is not defined.
41656         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
41657         Reported by John David Anglin.
41658
41659 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
41660
41661         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
41662         resolve alias if codeset is empty.
41663         * lib/config.charset (BeOS): Use wildcard syntax.
41664
41665 2001-03-13  Jim Meyering  <meyering@lucent.com>
41666
41667         * lib/path-concat.c (path_concat)
41668         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
41669         concatenating e.g., `C:' and `foo'.
41670         From Bruno Haible.
41671
41672 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
41673
41674         * lib/localcharset.c (locale_charset): Don't use
41675         setlocale(LC_CTYPE,NULL). Don't return NULL.
41676         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
41677
41678 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
41679
41680         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
41681         support for DOS/DJGPP.
41682
41683 2001-03-01  Paul Eggert  <eggert@twinsun.com>
41684
41685         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
41686         lacks mkstemp.  Compile our own tempname.c if we compile our own
41687         mkstemp.c, as mkstemp relies on tempname.
41688
41689 2001-03-01  Jim Meyering  <meyering@lucent.com>
41690
41691         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
41692         AH_VERBATIM really does output its argument verbatim.
41693
41694 2001-02-28  Paul Eggert  <eggert@twinsun.com>
41695
41696         * lib/Makefile.am (libfetish_a_SOURCES):
41697         Add dup-safer.c, fopen-safer.c.
41698         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
41699
41700         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
41701         * lib/unistd-safer.h: New files.
41702
41703 2001-02-25  Paul Eggert  <eggert@twinsun.com>
41704
41705         The mkstemp replacement is taken from glibc 2.2.2, with some
41706         portability fixes for use outside glibc, as follows:
41707
41708         * lib/tempname.c (struct_stat64): New macro.
41709         (direxists, __gen_tempname): Use it.
41710         This avoids a portability problem with Solaris 8.
41711
41712         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
41713         (<stddef.h>, <stdint.h>, <string.h>):
41714         Include only if STDC_HEADERS || _LIBC.
41715         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
41716         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
41717         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
41718         (__set_errno): Define this macro if <errno.h> doesn't.
41719         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
41720         Define these macros if <stdio.h> doesn't.
41721         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
41722         Define these macros if <sys/stat.h>
41723         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
41724         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
41725         __xstat64): Define if not _LIBC.
41726         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
41727         (__gen_tempname): Invoke gettimeofday only if
41728         HAVE_GETTIMEOFDAY || _LIBC;
41729         otherwise, fall back on plain "time".
41730         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
41731
41732         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
41733
41734         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
41735
41736 2001-02-18  Paul Eggert  <eggert@twinsun.com>
41737
41738         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
41739
41740 2001-02-17  Paul Eggert  <eggert@twinsun.com>
41741
41742         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
41743         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
41744         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
41745         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
41746
41747 2001-02-17  Paul Eggert  <eggert@twinsun.com>
41748
41749         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
41750         Remove workaround macros for hosts that have mbrtowc but not
41751         mbstate_t, as we now insist on proper declarations for both
41752         before using mbrtowc.
41753
41754 2001-02-17  Jim Meyering  <meyering@lucent.com>
41755
41756         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
41757         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
41758         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
41759         UnixWare 7.1.1.
41760
41761         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
41762         rather than AC_CACHE_VAL.
41763
41764 2001-02-17  Jim Meyering  <meyering@lucent.com>
41765
41766         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
41767         around included file name.
41768
41769         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
41770
41771         * lib/strftime.c: Update from GNU libc (the only changes were to
41772         comments).
41773
41774 2001-02-17  Jim Meyering  <meyering@lucent.com>
41775
41776         * lib/regex.c: Update from libc.
41777
41778 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
41779
41780         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
41781         clash.
41782
41783 2001-02-16  Paul Eggert  <eggert@twinsun.com>
41784
41785         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
41786         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
41787         Reported by Mark Hounschell via Paul Eggert.
41788
41789 2001-02-07  Jim Meyering  <meyering@lucent.com>
41790
41791         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
41792
41793 2001-02-05  Jim Meyering  <meyering@lucent.com>
41794
41795         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
41796         it includes the patch required for `large file' support with at least
41797         HP-UX's 10.20 /bin/cc.
41798
41799 2001-02-03  Jim Meyering  <meyering@lucent.com>
41800
41801         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
41802         AS_IF, now that it works once again (mysteriously).
41803         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
41804
41805 2001-01-30  Jim Meyering  <meyering@lucent.com>
41806
41807         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
41808         * m4/chown.m4: Rename conftestchown to conftest.chown.
41809         * m4/rename.m4: s/conftestdir/conftest.d1/ and
41810         s/conftestdir2/conftest.d2/.
41811         * m4/utimes.m4: s/conftestdata/conftest.data/
41812         Inspired by Pavel Roskin's change in autoconf.
41813
41814 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
41815
41816         * lib/config.charset: Update for FreeBSD 4.2.
41817
41818 2001-01-27  Jim Meyering  <meyering@lucent.com>
41819
41820         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
41821         a use of AS_IF.
41822         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
41823
41824 2001-01-26  Jim Meyering  <meyering@lucent.com>
41825
41826         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
41827         quotearg.c includes it.
41828
41829 2001-01-26  Jim Meyering  <meyering@lucent.com>
41830
41831         * lib/quotearg.c: Include stddef.h.
41832         * lib/quote.c: Include stddef.h.
41833         Reported by Axel Kittenberger.
41834
41835         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
41836         line in double quotes so that it evokes a better diagnostic.
41837         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
41838         Reported by Axel Kittenberger.
41839
41840 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
41841
41842         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
41843         as if it was a `charset'.
41844
41845 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
41846
41847         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
41848         has const.
41849
41850 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
41851
41852         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
41853         to avoid a warning.  Add back 'const' to inptr.
41854
41855 2001-01-20  Jim Meyering  <meyering@lucent.com>
41856
41857         Be sure that headers are checked before used in code compiled
41858         for the type checks.
41859         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
41860         In place of that, invoke jm_CHECK_ALL_TYPES.
41861         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
41862         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
41863         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
41864         The check for ssize_t was mistakenly run before the test for unistd.h.
41865
41866         The configure-time check for stdbool.h was missing.
41867         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
41868         (jm_PREREQ_HASH): New function.
41869
41870 2001-01-17  Jim Meyering  <meyering@lucent.com>
41871
41872         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
41873         for autoconf-2.49c.
41874         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
41875
41876 2001-01-16  Jim Meyering  <meyering@lucent.com>
41877
41878         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
41879         From Bruno Haible.
41880
41881 2001-01-14  Jim Meyering  <meyering@lucent.com>
41882
41883         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
41884         foo and bar.  Create conftestdir/ in the script, not in the C code.
41885         Remove directories in the script, not in the C code.
41886         Remove conftestdir{,2} before trying to create the directory.
41887         Make the entire configure script fail if the mkdir fails.
41888
41889 2001-01-14  Jim Meyering  <meyering@lucent.com>
41890
41891         * lib/rename.c: New file.  From Volker Borchert.
41892         Include stdlib.h, string.h or strings.h, and xalloc.h.
41893         Use strip_trailing_slashes rather than open-coding it.
41894
41895 2001-01-03  Paul Eggert  <eggert@twinsun.com>
41896
41897         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
41898
41899 2001-01-03  Jim Meyering  <meyering@lucent.com>
41900
41901         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
41902         of local `inptr' to avoid warning with some system declarations of
41903         iconv.
41904
41905 2001-01-02  Volker Borchert  <bt@teknon.de>
41906
41907         * m4/rename.m4: New file.
41908         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
41909
41910 2001-01-01  Jim Meyering  <meyering@lucent.com>
41911
41912         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
41913         even on systems with utmpx.h.  It's necessary for the declaration of
41914         utmp's ut_user member.  Reported by Andreas Jaeger.
41915
41916         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
41917         available. They are required for the declarations of getgrgid and
41918         getpwuid resp.
41919         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
41920         Reported by Andreas Jaeger.
41921
41922 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
41923
41924         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
41925         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
41926         so `make install' also works in VPATH builds.
41927
41928 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
41929
41930         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
41931         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
41932         can be used in subdirectories.
41933
41934 2000-12-29  Paul Eggert  <eggert@twinsun.com>
41935
41936         * lib/modechange.c: Do not assume that mode_t uses the
41937         traditional octal encoding.  E.g. "chmod 1 FOO" should set
41938         the other-execute bit of FOO even if S_IXOTH != 1.
41939
41940         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
41941         WOTH, XOTH, ALLM): New macros.
41942         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
41943          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
41944         Use them.
41945         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
41946         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
41947         (mode_compile):
41948         No need to use uintmax_t; unsigned long is long enough.
41949         Don't bother to get suffix since we don't use it.
41950
41951 2000-12-26  Jim Meyering  <meyering@lucent.com>
41952
41953         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
41954         better with autoheader.
41955
41956 2000-12-24  Jim Meyering  <meyering@lucent.com>
41957
41958         * lib/hash.c (is_prime): Return explicit boolean values.
41959         (hash_get_first): Return NULL to appease Irix5.6's 89.
41960         Reported by Nelson Beebe.
41961
41962 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
41963
41964         * lib/localcharset.c (locale_charset): Add support for Win32.
41965
41966 2000-12-18  Paul Eggert  <eggert@twinsun.com>
41967
41968         * lib/physmem.h, lib/physmem.c: New files.
41969
41970         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
41971         (noinst_HEADERS): Add physmem.h.
41972
41973         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
41974         't' for compatibility with Solaris 8 sort.
41975
41976 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
41977
41978         * lib/config.charset: Add support for BeOS.
41979
41980 2000-12-17  Jim Meyering  <meyering@lucent.com>
41981
41982         * m4/dos.m4 (jm_AC_DOS): New file and macro.
41983         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
41984
41985 2000-12-16  Jim Meyering  <meyering@lucent.com>
41986
41987         This bug had a serious impact on chown: `chown N:M FILE' (for integer
41988         N and M) would have treated it like `chown N:N FILE'.
41989
41990         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
41991
41992 2000-12-16  Jim Meyering  <meyering@lucent.com>
41993
41994         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
41995         SHELLS_FILE to a file name that's useful on djgpp systems.
41996         Include stdlib.h.
41997         (ADDITIONAL_DEFAULT_SHELLS): Define.
41998         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
41999         Based mostly on a patch from Prashant TR.
42000
42001 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
42002
42003         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
42004         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
42005         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
42006
42007 2000-12-08  Andreas Schwab  <schwab@suse.de>
42008
42009         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
42010         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
42011
42012 2000-12-07  Jim Meyering  <meyering@lucent.com>
42013
42014         * lib/stripslash.c (ISSLASH): Define.
42015         (strip_trailing_slashes): Use ISSLASH rather than comparing against
42016         `/'.
42017         From Prashant TR.
42018
42019         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
42020         (dir_name_r): Declare this function as static.
42021         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
42022         manifest itself on a name containing a mix of slashes and
42023         backslashes.
42024         Make this function work with names starting with a DOS-style
42025         drive letter and colon prefix.
42026         (dir_name): Append `.' if necessary.
42027         Based mostly on patches from Prashant TR and Eli Zaretskii.
42028
42029         * lib/dirname.h (dir_name_r): Remove prototype.
42030
42031 2000-12-06  Paul Eggert  <eggert@twinsun.com>
42032
42033         * m4/off_t-format.m4: Remove this file.
42034         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
42035
42036 2000-12-06  Jim Meyering  <meyering@lucent.com>
42037
42038         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
42039         replacement strtoull, we may well need the replacement strtoul, too.
42040         Check for declarations of strtoul and strtoull.
42041         Check for strtol.  Mainly as a cue to cause automake to include
42042         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
42043         Check for limits.h -- strtol.c needs it.
42044
42045 2000-12-05  Jim Meyering  <meyering@lucent.com>
42046
42047         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
42048
42049 2000-12-04  Jim Meyering  <meyering@lucent.com>
42050
42051         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
42052         Also include memory.h, stdlib.h, unistd.h if appropriate.
42053         Reported by Andreas Jaeger (conflicting declaration of malloc).
42054
42055 2000-12-02  Jim Meyering  <meyering@lucent.com>
42056
42057         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
42058         * m4/jm-macros.m4 (jm_MACROS): require it.
42059
42060 2000-12-02  Jim Meyering  <meyering@lucent.com>
42061
42062         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
42063
42064 2000-12-01  Paul Eggert  <eggert@twinsun.com>
42065
42066         * lib/memrchr.c: Include <config.h> before any system include file.
42067
42068 2000-11-30  Jim Meyering  <meyering@lucent.com>
42069
42070         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
42071
42072 2000-11-30  Jim Meyering  <meyering@lucent.com>
42073
42074         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
42075
42076 2000-11-29  Paul Eggert  <eggert@twinsun.com>
42077
42078         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
42079
42080 2000-11-26  Jim Meyering  <meyering@lucent.com>
42081
42082         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
42083
42084 2000-11-22  Paul Eggert  <eggert@twinsun.com>
42085
42086         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
42087         size of (size_t) -1; it's not portable.
42088
42089 2000-11-17  Jim Meyering  <meyering@lucent.com>
42090
42091         * lib/strstr.c: Update from GNU libc.
42092
42093 2000-11-17  Akim Demaille  <akim@epita.fr>
42094
42095         * lib/obstack.h: Formatting changes.
42096         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
42097         prevent type checking.
42098         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
42099         cast the value to (void *): assigning a `foo *' to a `void *'
42100         variable is valid.
42101         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
42102
42103 2000-11-16  Jim Meyering  <meyering@lucent.com>
42104
42105         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
42106
42107 2000-11-11  Jim Meyering  <meyering@lucent.com>
42108
42109         * lib/error.c: Add a couple #includes, merging from GNU libc version.
42110
42111 2000-11-10  Jim Meyering  <meyering@lucent.com>
42112
42113         * lib/obstack.h: Update from GNU libc.
42114         * lib/obstack.c: Likewise.
42115
42116 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
42117
42118         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
42119
42120 2000-11-06  Paul Eggert  <eggert@twinsun.com>
42121
42122         * lib/getusershell.c (setusershell): Use rewind rather than
42123         fseek/fseeko, to avoid configuration hassles with fseeko.
42124         Don't bother opening SHELLS_FILE if shellstream is NULL;
42125         it's not necessary.
42126
42127 2000-11-05  Jim Meyering  <meyering@lucent.com>
42128
42129         * lib/makepath.h (make_dir): Declare.
42130         * lib/makepath.c (make_dir): Remove `static' attribute.
42131         Tweak a comment.
42132
42133 2000-11-04  Jim Meyering  <meyering@lucent.com>
42134
42135         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
42136
42137 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
42138
42139         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
42140         last one in a bucket, advance to the next bucket.
42141
42142 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
42143
42144         * lib/fnmatch.c: Do not comment out all the code if we are using
42145         the GNU C library, because in some cases we are replacing buggy
42146         code in the GNU C library itself.
42147
42148 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
42149
42150         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
42151         (regex_compile): Catch bogus \(\1\).
42152
42153 2000-10-30  Paul Eggert  <eggert@twinsun.com>
42154
42155         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
42156         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
42157         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
42158
42159 2000-10-30  Paul Eggert  <eggert@twinsun.com>
42160
42161         * lib/error.h, getline.h, modechange.h:
42162         Remove "2000" from Copyright line, as the file hasn't been
42163         changed this year other than in the copyright notice.
42164
42165         * lib/xalloc.h: Add "2000" to Copyright line, as this file
42166         was changed this year.
42167
42168 2000-10-29  Jim Meyering  <meyering@lucent.com>
42169
42170         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
42171         renaming.
42172         * m4/ls-mntd-fs.m4: Likewise
42173
42174 2000-10-29  Jim Meyering  <meyering@lucent.com>
42175
42176         * lib/xstat.in: Fix grammar in comment.
42177
42178 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
42179
42180         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
42181         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
42182         doesn't define __restrict_arr.
42183
42184 2000-10-28  Jim Meyering  <meyering@lucent.com>
42185
42186         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
42187         (jm_PREREQ_MEMCHR): New function.
42188
42189 2000-10-28  Jim Meyering  <meyering@lucent.com>
42190
42191         * lib/memchr.c: Update from libc.
42192         Adjust for portability:
42193         [HAVE_STDLIB_H]: Include stdlib.h.
42194         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
42195         Undef __memchr, too.
42196         [!weak_alias]: Define __memchr to memchr.
42197
42198         * lib/regex.c: Update from libc.
42199         * lib/regex.h: Likewise.
42200         * lib/getopt1.c: Likewise.
42201         * lib/memcmp.c: Likewise.
42202
42203         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
42204         Avoid using fseek, when possible -- it's broken by design.
42205         Patch by Ulrich Drepper.
42206
42207 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
42208
42209         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
42210         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
42211         Giving in to popular pressure to shut up the compiler with casts.
42212
42213 2000-10-26  Jim Meyering  <meyering@lucent.com>
42214
42215         * lib/strftime.c: Update from libc.
42216
42217 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
42218
42219         * regex.c: More `unsigned char' -> `re_char' changes.
42220         Also change several `int' into `re_wchar_t'.
42221         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
42222         (PUSH_FAILURE_POINTER): Don't cast any more.
42223         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
42224         We want GCC to complain, since this piece of code makes
42225         re_match non-reentrant, which *should* be fixed.
42226         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
42227         (EXTEND_BUFFER): Use RETALLOC.
42228         (SET_LIST_BIT): Don't cast.
42229         (re_wchar_t): New type.
42230         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
42231         that those two functions will always properly return.
42232         (IMMEDIATE_QUIT_CHECK): Cast to void.
42233         (analyse_first): Use recursion rather than an explicit stack.
42234         (re_compile_fastmap): Can't fail anymore.
42235         (re_search_2): Don't check re_compile_fastmap for failure.
42236         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
42237         Now also sets the new value (passed in a new argument).
42238         (re_match_2_internal): Use it.
42239         Also, use a new var `reg' of type size_t when looping through regs
42240         rather than reuse the inappropriate `mcnt'.
42241
42242 2000-10-25  Jim Meyering  <meyering@lucent.com>
42243
42244         * lib/obstack.c: Update from libc.
42245
42246 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
42247
42248         * regex.c (regex_compile): Change the way of handling a range from
42249         a char less than 256 to a char not less than 256.
42250
42251 2000-10-24  Andrew Innes  <andrewi@gnu.org>
42252
42253         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
42254         NT-Emacs only.
42255         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
42256         so that re_search functions only quit when callers expect them to.
42257
42258 2000-10-23  Jim Meyering  <meyering@lucent.com>
42259
42260         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
42261         wrong.  That set_locale call must not have any side effects.
42262         From Paul Eggert.
42263
42264 2000-10-22  Jim Meyering  <meyering@lucent.com>
42265
42266         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
42267         [CYCLIC]: Remove now-unused definition.
42268
42269         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
42270         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
42271         Suggestion from Ulrich Drepper.
42272
42273 2000-10-21  Jim Meyering  <meyering@lucent.com>
42274
42275         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
42276         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
42277         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
42278
42279 2000-10-21  Jim Meyering  <meyering@lucent.com>
42280
42281         * lib/dirname.c (memrchr): Declare if necessary.
42282         (dir_name): Remove the restriction that there be no
42283         trailing slashes.  Now, this code skips past them, effectively
42284         ignoring them.
42285         [TEST_DIRNAME] (main): New unit tests.
42286
42287         * lib/memrchr.c: New file from GNU libc.
42288         Undef __memrchr, too.
42289         [!weak_alias]: Define __memrchr to memrchr.
42290         Guard weak_alias use with `#ifdef weak_alias'.
42291
42292 2000-10-21  Jim Meyering  <meyering@lucent.com>
42293
42294         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
42295         (dir_name): Use dir_name_r.
42296         * lib/dirname.h (dir_name_r): Declare it.
42297
42298 2000-10-17  Jim Meyering  <meyering@lucent.com>
42299
42300         * lib/quote.h (PARAMS): Define and use.
42301         Reported by Akim Demaille.
42302
42303         * lib/getopt.c: Update from libc.
42304
42305 2000-10-16  Jim Meyering  <meyering@lucent.com>
42306
42307         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
42308         setlocale.
42309         From Jan Fedak.
42310
42311 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
42312
42313         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
42314
42315 2000-09-25  Jim Meyering  <meyering@lucent.com>
42316
42317         * lib/md5.h (rol): Define (from GnuPG).
42318
42319         * lib/sha.c: Give credit (GnuPG) where due.
42320         (M): Use rol rather than open-coding it.
42321         Add a FIXME comment.
42322
42323 2000-09-21  Jim Meyering  <meyering@lucent.com>
42324
42325         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
42326         Reported by Michael Stone.
42327
42328 2000-09-20  Jim Meyering  <meyering@lucent.com>
42329
42330         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
42331         (noinst_HEADERS): Add sha.h.
42332         Based on code from Scott G. Miller and from GnuPG.
42333
42334 2000-09-18  Jim Meyering  <meyering@lucent.com>
42335
42336         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
42337         LIBS. Otherwise, everyone ends up linking with -lelf for some
42338         configurations.
42339         Reported by Mike Stone.
42340
42341 2000-09-15  Jim Meyering  <meyering@lucent.com>
42342
42343         * lib/regex.c: Update from libc.
42344
42345 2000-09-10  Jim Meyering  <meyering@lucent.com>
42346
42347         * lib/getopt.c (_getopt_internal): Update from glibc.
42348
42349 2000-09-09  Jim Meyering  <meyering@lucent.com>
42350
42351         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
42352         think it should be used as a general replacement for isascii.
42353         * lib/fnmatch.c: Likewise.
42354         * lib/mbswidth.c: Likewise
42355         * lib/regex.c: Likewise.
42356
42357         Don't use atoi.
42358         * lib/userspec.c: Include sys/param.h and limits.h.
42359         Include xstrtol.h.
42360         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
42361         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
42362         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
42363         UID, GID.  Check range.
42364
42365 2000-09-06  Jim Meyering  <meyering@lucent.com>
42366
42367         * lib/getopt.c (_getopt_internal): Update from glibc.
42368
42369 2000-08-30  Jim Meyering  <meyering@lucent.com>
42370
42371         * lib/strftime.c: Merge in changes from GNU libc.
42372
42373 2000-08-26  Jim Meyering  <meyering@lucent.com>
42374
42375         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
42376         * m4/fpending.m4: New file.
42377
42378 2000-08-26  Jim Meyering  <meyering@lucent.com>
42379
42380         * lib/closeout.c: Include "__fpending.h".
42381         (close_stdout_status): Return right away if there's nothing to flush.
42382
42383         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
42384         * lib/__fpending.c: New file.
42385         * lib/__fpending.h: New file.
42386
42387 2000-08-20  Jim Meyering  <meyering@lucent.com>
42388
42389         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
42390         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
42391         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
42392
42393 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
42394
42395         Improve fileutils installation on systems where running
42396         programs (like install) can't be unlinked.
42397         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
42398         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
42399
42400 2000-08-07  Paul Eggert  <eggert@twinsun.com>
42401
42402         Standardize on "memory exhausted" instead of "Memory exhausted"
42403         or "virtual memory exhausted".
42404         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
42405         "virtual memory exhausted".
42406         * lib/same.c (same_name): Invoke xalloc_die instead of printing
42407         our own message.
42408         * lib/userspec.c (parse_user_spec): Likewise.
42409         * lib/bumpalloc.h: comment fix
42410         * lib/same.c, userspec.c: Include xalloc.h.
42411
42412         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
42413         not char *const and pointing to a constant array.
42414         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
42415         (xrealloc): Comment fix.
42416
42417         * lib/userspec.c (parse_user_spec):
42418         Don't translate a message until just before returning,
42419         to avoid unnecessary translation.
42420
42421 2000-08-07  Jim Meyering  <meyering@lucent.com>
42422
42423         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
42424         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
42425         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
42426         getgroups.c, gethostname.c, getopt.h, group-member.c,
42427         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
42428         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
42429         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
42430         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
42431         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
42432         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
42433         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
42434         yesno.c: Back out Copyright date changes for each file with no change
42435         this year.  This eases coordination with other programs using the same
42436         source code modules.  From Paul Eggert.
42437
42438 2000-08-06  Paul Eggert  <eggert@twinsun.com>
42439
42440         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
42441         not char, for compatibility with glibc 2.1.3 strftime.c.
42442
42443 2000-08-03  Greg McGary  <greg@mcgary.org>
42444
42445         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
42446         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
42447         (EXTEND_BUFFER): Use them.
42448
42449 2000-08-01  Jim Meyering  <meyering@lucent.com>
42450
42451         * lib/dirname.c (ISSLASH): Define.
42452         (BACKSLASH_IS_PATH_SEPARATOR): Define.
42453         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
42454         both `\' and `/' may be use as path separators.
42455         Based on a patch from Prashant TR.
42456
42457 2000-07-31  Paul Eggert  <eggert@twinsun.com>
42458
42459         * lib/quotearg.c (quotearg_n_options): Don't make the initial
42460         slot vector a constant, since it might get modified.
42461
42462 2000-07-31  Jim Meyering  <meyering@lucent.com>
42463
42464         * lib/xmalloc.c: Use `virtual memory exhausted', not
42465         `Memory exhausted'.
42466         * lib/obstack.c (print_and_abort): Likewise.
42467
42468 2000-07-30  Paul Eggert  <eggert@twinsun.com>
42469
42470         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
42471         buffer, so that the caller can always quote one small
42472         component of a "memory exhausted" message in slot 0.
42473         From a suggestion by Jim Meyering.
42474
42475 2000-07-30  Jim Meyering  <meyering@lucent.com>
42476
42477         * lib/makepath.c (make_path): Quote the other instance, too.
42478
42479         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
42480         (STATIC_BUF_SIZE): Define.
42481         (quotearg_n_options): Use only statically allocated storage when
42482         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
42483         than STATIC_BUF_SIZE.
42484
42485 2000-07-29  Jim Meyering  <meyering@lucent.com>
42486
42487         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
42488         * lib/dirname.c (dir_name): Likewise.
42489
42490         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
42491         `/'.
42492
42493         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
42494         (dir_name): Assert that there are no trailing slashes.
42495
42496 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
42497
42498         * lib/mbswidth.h (mbswidth): Add a flags argument.
42499         (mbswidth): New declaration.
42500         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
42501         * lib/mbswidth.c (mbswidth): Add a flags argument.
42502         (mbsnwidth): New function.
42503
42504 2000-07-24  Jim Meyering  <meyering@lucent.com>
42505
42506         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
42507
42508 2000-07-23  Paul Eggert  <eggert@twinsun.com>
42509
42510         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
42511
42512 2000-07-23  Paul Eggert  <eggert@twinsun.com>
42513
42514         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
42515         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
42516         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
42517         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
42518         invoke multibyte primitives.
42519
42520 2000-07-23  Paul Eggert  <eggert@twinsun.com>
42521
42522         * lib/quotearg.c:
42523         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
42524         so that mbstate_t is always defined.
42525
42526         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
42527         be 1 in at least one GCC installation, and this configuration
42528         error is likely to be common.  Ignoring MB_LEN_MAX hurts
42529         performance on hosts that have mbrtowc but have only unibyte
42530         locales, but I assume these hosts are rare.
42531
42532 2000-07-23  Paul Eggert  <eggert@twinsun.com>
42533
42534         * lib/mbswidth.c (_XOPEN_SOURCE):
42535         Don't define; this causes problems on Solaris 7.
42536         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
42537
42538 2000-07-23  Jim Meyering  <meyering@lucent.com>
42539
42540         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
42541         too: getgrgid, getpwuid, getuid.
42542
42543 2000-07-23  Jim Meyering  <meyering@lucent.com>
42544
42545         * lib/basename.c (base_name): Add an assertion.
42546
42547 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
42548
42549         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
42550         shadow its mbsinit function.
42551
42552 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
42553
42554         * lib/mbswidth.h: New file.
42555         * lib/mbswidth.c: New file.
42556         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
42557         (noinst_HEADERS): Add mbswidth.h.
42558
42559 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
42560
42561         * lib/config.charset: Add support for FreeBSD. Improve support for
42562         HP-UX and IRIX 6.
42563
42564 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
42565
42566         * m4/mbswidth.m4: New file.
42567         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
42568
42569 2000-07-15  Jim Meyering  <meyering@lucent.com>
42570
42571         * lib/makepath.c: Include quote.h.
42572         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
42573         corresponding argument in a `quote (...)' call.
42574         Give better diagnostics.
42575
42576         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
42577         (noinst_HEADERS): Add quote.h.
42578
42579         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
42580         from tar's src/misc.c.
42581         * lib/quote.h: New file.  Prototypes for same.
42582
42583 2000-07-14  Paul Eggert  <eggert@twinsun.com>
42584
42585         From a suggestion by Bruno Haible.
42586         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
42587         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
42588         to decide whether to define the BeOS workaround macro;
42589         this adjusts to the change to AC_MBSTATE_T.
42590
42591 2000-07-14  Jim Meyering  <meyering@lucent.com>
42592
42593         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
42594         jm_AC_TYPE_UINTMAX_T.
42595
42596 2000-07-13  Paul Eggert  <eggert@twinsun.com>
42597
42598         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
42599
42600         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
42601         quotearg_buffer_restyled): Add support for
42602         clocale_quoting_style.  Undo previous change to
42603         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
42604         and "{RIGHT QUOTATION MARK}" msgids.
42605
42606 2000-07-10  Paul Eggert  <eggert@twinsun.com>
42607
42608         From a suggestion by Bruno Haible.
42609         * m4/mbstate_t.m4 (AC_MBSTATE_T):
42610         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
42611         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
42612         and mbstate_t, to a single-part test that simply defines mbstate_t.
42613         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
42614         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
42615
42616 2000-07-10  Jim Meyering  <meyering@lucent.com>
42617
42618         * m4/strerror_r.m4: Mirror the correction made in autoconf.
42619
42620         * m4/gnu-source.m4: Output to confdefs.h directly.
42621         Suggestion from Akim Demaille.
42622
42623 2000-07-09  Paul Eggert  <eggert@twinsun.com>
42624
42625         The old behavior of quoting `like this' doesn't look good with
42626         newer, ISO-style fonts.  See:
42627         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
42628
42629         Instead, quote "like this" by default.  Let the translator
42630         tailor the locale-specific quoting behavior by providing
42631         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
42632
42633         * lib/quotearg.c (N_): New macro.
42634         (gettext_default): New function.
42635         (quotearg_buffer_restyled): Use
42636         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
42637         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
42638
42639 2000-07-09  Jim Meyering  <meyering@lucent.com>
42640
42641         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
42642         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
42643
42644         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
42645         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
42646
42647 2000-07-09  Jim Meyering  <meyering@lucent.com>
42648
42649         * lib/Most files: Update copyright dates to include 2000.
42650
42651 2000-07-08  Jim Meyering  <meyering@lucent.com>
42652
42653         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
42654         if not defined.
42655         (xgethostname): Remove now-unnecessary #ifdef.
42656         Move declaration of `err' into loop where it's used.
42657
42658 2000-07-05  Paul Eggert  <eggert@twinsun.com>
42659         and Bruno Haible  <haible@clisp.cons.org>
42660
42661         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
42662         only if the test for an object-type mbstate_t fails.  This
42663         prevents us from mistakenly reporting that mbstate_t is a
42664         system object type after we "#define mbstate_t int" to work
42665         around its lack.
42666
42667 2000-07-05  Paul Eggert  <eggert@twinsun.com>
42668         and Bruno Haible  <haible@clisp.cons.org>
42669
42670         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
42671
42672 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
42673
42674         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
42675         to strerror_r.
42676         Include <ctype.h> for use of isalpha.
42677
42678 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
42679
42680         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
42681         by allocating a larger buffer. Test the gethostname return value for
42682         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
42683         returns an error and ENAMETOOLONG isn't defined.
42684
42685 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
42686
42687         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
42688         dimension.
42689
42690 2000-07-04  Jim Meyering  <meyering@lucent.com>
42691
42692         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
42693         of the deprecated AC_CHECKING.
42694
42695 2000-07-04  Jim Meyering  <meyering@lucent.com>
42696
42697         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
42698         Reported by Bruno Haible.
42699
42700 2000-07-04  Jim Meyering  <meyering@lucent.com>
42701
42702         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
42703         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
42704         lacks mbrtowc.
42705
42706 2000-07-03  Paul Eggert  <eggert@twinsun.com>
42707
42708         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
42709         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
42710
42711 2000-07-03  Paul Eggert  <eggert@twinsun.com>
42712         and Bruno Haible  <haible@clisp.cons.org>
42713
42714         * lib/quotearg.c (mbrtowc):
42715         Assign to *pwc, and return 1 only if result is nonzero.
42716         (iswprint): Use ISPRINT when substituting our own mbrtowc.
42717
42718 2000-07-03  Jim Meyering  <meyering@lucent.com>
42719
42720         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
42721
42722 2000-07-03  Jim Meyering  <meyering@lucent.com>
42723
42724         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
42725         This is necessary to get a definition of e.g., UTMP_FILE on
42726         HP-UX 10.20.
42727         From Bob Proulx.
42728
42729 2000-07-02  Jim Meyering  <meyering@lucent.com>
42730
42731         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
42732
42733         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
42734         AC_LIBOBJ(function_name).
42735         * m4/chown.m4: Likewise.
42736         * m4/fnmatch.m4: Likewise.
42737         * m4/ftruncate.m4: Likewise.
42738         * m4/getgroups.m4: Likewise.
42739         * m4/getline.m4: Likewise.
42740         * m4/group-member.m4: Likewise.
42741         * m4/jm-macros.m4: Likewise.
42742         * m4/lstat.m4: Likewise.
42743         * m4/malloc.m4: Likewise.
42744         * m4/memcmp.m4: Likewise.
42745         * m4/nanosleep.m4: Likewise.
42746         * m4/putenv.m4: Likewise.
42747         * m4/realloc.m4: Likewise.
42748         * m4/regex.m4: Likewise.
42749         * m4/stat.m4: Likewise.
42750         * m4/strftime.m4: Likewise.
42751
42752 2000-07-02  Jim Meyering  <meyering@lucent.com>
42753
42754         * lib/quotearg.c (mbstate_t): Don't define here.
42755
42756 2000-07-02  Jim Meyering  <meyering@lucent.com>
42757
42758         * lib/nanosleep.c (SIGCONT): Define if not already defined.
42759
42760 2000-07-01  Jim Meyering  <meyering@lucent.com>
42761
42762         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
42763
42764 2000-07-01  Jim Meyering  <meyering@lucent.com>
42765
42766         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
42767         problem.
42768
42769 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
42770
42771         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
42772         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
42773
42774 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
42775
42776         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
42777         per change in ../m4/ls-mntd-fs.m4.
42778         (read_filesystem_list): Ignore symbolic links.
42779
42780 2000-06-29  Jim Meyering  <meyering@lucent.com>
42781
42782         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
42783         for declaration of strcmp.
42784
42785         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
42786
42787         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
42788         Avoid warning by casting result to `char *' to remove `const'.
42789
42790 2000-06-28  Jim Meyering  <meyering@lucent.com>
42791
42792         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
42793         included by quotearg.c, for which we perform this test.  From
42794         Bruno Haible.
42795
42796 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
42797
42798         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
42799         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
42800         <utmpx.h> exists, put readutmp.o into LIBOBJS.
42801
42802 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
42803
42804         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
42805
42806 2000-06-26  Paul Eggert  <eggert@twinsun.com>
42807
42808         savedir now sets errno on failure and invokes xmalloc to get memory.
42809         Fix a couple of other minor bugs while we're at it.
42810
42811         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
42812         (NAMLEN): Remove macro.
42813         (malloc, realloc): Remove decls.
42814         (stpcpy): Likewise.
42815         ("xalloc.h"): Include.
42816         (NAME_SIZE_DEFAULT): New macro.
42817         (savedir): Use xmalloc / xrealloc to allocate memory.
42818         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
42819         Skip "" directory entries.
42820         Use strlen to calculate directory entry length, since the old method
42821         is rarely used these days and isn't worth supporting.
42822         Don't use a pointer after freeing it.
42823         Check for integer overflow when calculating allocation size.
42824         Use memcpy to copy entries, instead of stpcpy.
42825         Set errno properly when returning NULL.
42826         Check for readdir error.
42827
42828 2000-06-26  Jim Meyering  <meyering@lucent.com>
42829
42830         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
42831
42832 2000-06-25  Jim Meyering  <meyering@lucent.com>
42833
42834         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
42835         Linux header bug when _XOPEN_SOURCE is defined to 500.
42836
42837 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
42838
42839         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
42840         deficiency.
42841
42842 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
42843
42844         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
42845         Include xalloc.h.
42846         Don't include <stdlib.h>.  Don't declare malloc, realloc.
42847
42848 2000-06-24  Jim Meyering  <meyering@lucent.com>
42849
42850         * m4/strerror_r.m4: Revive this file -- to try out an experimental
42851         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
42852         for which strerror does return char*, but which lacks a conveniently
42853         accessible declaration of the function.  If the compile-test says
42854         strerror_r doesn't work, then resort to a `run'-test that works on
42855         BeOS and segfaults on DEC Unix.
42856
42857 2000-06-24  Jim Meyering  <meyering@lucent.com>
42858
42859         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
42860
42861 2000-06-23  Paul Eggert  <eggert@twinsun.com>
42862
42863         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
42864         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
42865
42866 2000-06-23  Paul Eggert  <eggert@twinsun.com>
42867
42868         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
42869         (mbrtowc, mbstate_t): Define substitutes if
42870         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
42871         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
42872         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
42873
42874 2000-06-23  Jim Meyering  <meyering@lucent.com>
42875
42876         * m4/afs.m4: Add missing AC_MSG_RESULT.
42877         Reported by Bruno Haible.
42878
42879         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
42880         Suggestion from Bruno Haible.
42881
42882 2000-06-23  Jim Meyering  <meyering@lucent.com>
42883
42884         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
42885
42886 2000-06-21  Jim Meyering  <meyering@lucent.com>
42887
42888         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
42889
42890 2000-06-21  Jim Meyering  <meyering@lucent.com>
42891
42892         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
42893         (noinst_HEADERS): Add getstr.h.
42894
42895         * lib/getline.c (getstr): Move into a separate file.
42896         * lib/getstr.c (getstr): New file, extracted from getline.c, with
42897         the following changes: new parameter, delim2; both delim[12]
42898         parameters have type `int', not `char'.  The latter would lose
42899         with 8-bit delimiters.
42900         * lib/getstr.h: New file.
42901
42902 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
42903
42904         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
42905         than 1024, return a memory chunk of least possible size, instead
42906         of size PATH_MAX + 2. In the loop, increment the size proportionally.
42907         Use free/xmalloc instead of xrealloc to avoid copying for very long
42908         paths.
42909
42910 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
42911
42912         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
42913         the empty string.
42914
42915 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
42916
42917         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
42918         address, not strdup.  Include <stdlib.h> and don't declare free().
42919
42920 2000-06-19  Jim Meyering  <meyering@lucent.com>
42921
42922         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
42923
42924 2000-06-18  Jim Meyering  <meyering@lucent.com>
42925
42926         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
42927
42928         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
42929         `checking whether...' message to be consistent with that of the
42930         lstat test.
42931
42932 2000-06-18  Jim Meyering  <meyering@lucent.com>
42933
42934         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
42935         Besides, these days every porting target provides a mkdir function.
42936
42937         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
42938         needed. (this snippet comes from src/system.h).
42939
42940 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
42941
42942         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
42943
42944 2000-06-15  Paul Eggert  <eggert@twinsun.com>
42945
42946         * lib/human.c (adjust_value): New function.
42947         (human_readable_inexact): Apply rounding style even when
42948         printing approximate values.
42949
42950 2000-06-14  Paul Eggert  <eggert@twinsun.com>
42951
42952         * lib/human.c (human_readable_inexact): Allow an input block
42953         size that is not a multiple of the output block size, and vice versa.
42954         Reported by Piergiorgio Sartor.
42955
42956 2000-06-14  Paul Eggert  <eggert@twinsun.com>
42957
42958         * lib/getdate.y (get_date): Apply relative times after time
42959         zone indicator, not before.  Reported by Todd A. Jacobs.
42960
42961 2000-06-13  Jim Meyering  <meyering@lucent.com>
42962
42963         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
42964
42965         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
42966
42967 2000-06-12  Paul Eggert  <eggert@twinsun.com>
42968
42969         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
42970
42971 2000-06-12  Jim Meyering  <meyering@lucent.com>
42972
42973         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
42974         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
42975         optional argument.
42976         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
42977         the optional argument, `lib'.
42978
42979 2000-06-08  Jim Meyering  <meyering@lucent.com>
42980
42981         * m4/largefile.m4: Remove file (now that it's part of autoconf).
42982
42983 2000-06-04  Paul Eggert  <eggert@twinsun.com>
42984
42985         Rewrite largefile configuration so that we don't need to run
42986         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
42987         AC_CANONICAL_HOST in configure.in -- jmm]
42988
42989         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
42990         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
42991         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
42992         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
42993         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
42994         All uses changed.
42995         Instead of inspecting the output of getconf, try to compile the
42996         test program without and with the macro definition.
42997         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
42998         for getconf.  Instead, check for the needed flags by compiling
42999         test programs.
43000
43001 2000-06-04  Paul Eggert  <eggert@twinsun.com>
43002
43003         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
43004
43005 2000-06-04  Jim Meyering  <meyering@lucent.com>
43006
43007         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
43008         SunOS 4.1.4 for which gid_t is an unsigned type.
43009
43010 2000-06-03  Jim Meyering  <meyering@lucent.com>
43011
43012         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
43013         now that autoconf requires that.
43014
43015         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
43016         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
43017         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
43018
43019 2000-06-03  Jim Meyering  <meyering@lucent.com>
43020
43021         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
43022
43023 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
43024
43025         * m4/glibc21.m4: New file.
43026         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
43027
43028 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
43029
43030         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
43031         newer, don't install charset.alias.
43032         * lib/config.charset: Change the Linux/glibc rules so they become empty
43033         on glibc-2.1 or newer.
43034
43035 2000-06-02  Jim Meyering  <meyering@lucent.com>
43036
43037         * lib/mountlist.c: Back out last change.  Instead, do this...
43038         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
43039         me_dummy member using the same `ignore'-testing code.
43040         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
43041         fs_type strings.
43042         From Mark D. Roth.
43043
43044 2000-05-29  Jim Meyering  <meyering@lucent.com>
43045
43046         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
43047         mounts with the `ignore' attribute.  Based on a patch from
43048         Mark D. Roth.
43049
43050 2000-05-28  Jim Meyering  <meyering@lucent.com>
43051
43052         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
43053         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
43054         * m4/stat.m4: Likewise.
43055         * m4/lstat.m4: Likewise.
43056         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
43057
43058         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
43059         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
43060
43061 2000-05-26  Jim Meyering  <meyering@lucent.com>
43062
43063         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
43064
43065 2000-05-24  Jim Meyering  <meyering@lucent.com>
43066
43067         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
43068         autoconf requires that.
43069         * m4/lib-check.m4: Likewise.
43070         * m4/jm-macros.m4: Likewise.
43071         * m4/strftime.m4: Likewise.
43072
43073         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
43074         AC_CHECK_DECLS, now that autoconf requires that.
43075
43076 2000-05-22  Jim Meyering  <meyering@lucent.com>
43077
43078         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
43079         * m4/lstat.m4: Likewise.
43080
43081 2000-05-22  Jim Meyering  <meyering@lucent.com>
43082
43083         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
43084
43085 2000-05-20  Jim Meyering  <meyering@lucent.com>
43086
43087         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
43088         (jm_PREREQ): Use it.
43089
43090 2000-05-18  Jim Meyering  <meyering@lucent.com>
43091
43092         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
43093         back, too, since it may have been modified by allocate_entry.
43094         (hash_delete): Rewrite to use neither the assignment operator
43095         nor the comma operator in an if-expression.
43096
43097 2000-05-15  Paul Eggert  <eggert@twinsun.com>
43098
43099         * lib/closeout.c:
43100         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
43101         Remove; no longer needed.
43102         "quotearg.h": Add include.
43103         (file_name): Do not bother to explicitly initialize to NULL; it's less
43104         efficient on some hosts.
43105         (close_stdout_status): Remove test as to whether stdout was already
43106         closed; it breaks for the case "echo x | sort >&-".
43107         Quote file name colons.
43108         Do not assume that _("write error") lacks format strings.
43109
43110 2000-05-15  Jim Meyering  <meyering@lucent.com>
43111
43112         * lib/version-etc.c (version_etc_copyright): Update the copyright
43113         string used in all --version output.
43114
43115 2000-05-14  Jim Meyering  <meyering@lucent.com>
43116
43117         * lib/closeout.c (close_stdout_set_file_name): New function.
43118         (close_stdout_status): Use new file-scoped global.
43119         Return right away if fstat says the stdout file descriptor is invalid.
43120         * lib/closeout.h (close_stdout_set_file_name): Declare.
43121
43122 2000-05-10  Jim Meyering  <meyering@lucent.com>
43123
43124         * lib/closeout.c [default_exit_status]: New file-scoped variable.
43125         (close_stdout_set_status): New function.
43126         * lib/closeout.h (close_stdout_set_status): Declare.
43127
43128 2000-05-09  Jim Meyering  <meyering@lucent.com>
43129
43130         * m4/gettext.m4: Rename this...
43131         * m4/libintl.m4: ...to this.
43132
43133 2000-05-08  Jim Meyering  <meyering@lucent.com>
43134
43135         * lib/long-options.c: Don't include closeout.h.
43136         (parse_long_options): Don't call close_stdout for --version.
43137
43138 2000-05-06  Paul Eggert  <eggert@twinsun.com>
43139
43140         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
43141         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
43142         2.1.3 bug.  This avoids a clash when files like regex.c define
43143         _GNU_SOURCE.
43144
43145 2000-05-06  Jim Meyering  <meyering@lucent.com>
43146
43147         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
43148         (AC_REPLACE_FUNCS): Add strnlen.
43149
43150         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
43151         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
43152
43153         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
43154         AC_SEARCH_LIBS call for nanosleep.
43155         (LIB_NANOSLEEP): Set and AC_SUBST.
43156
43157 2000-05-06  Jim Meyering  <meyering@lucent.com>
43158
43159         * lib/strnlen.c: Undefine __strnlen and strnlen.
43160         [!weak_alias]: Define __strnlen to strnlen.
43161
43162         * lib/atexit.c: New file, from libiberty.
43163
43164 2000-05-06  Jim Meyering  <meyering@lucent.com>
43165
43166         * lib/closeout.c (close_stdout_status): Also check for errors on the
43167         stderr stream.
43168
43169 2000-05-05  Jim Meyering  <meyering@lucent.com>
43170
43171         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
43172         AC_SEARCH_LIBS call for clock_gettime.
43173         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
43174
43175         * m4/search-libs.m4: Update from autoconf.
43176
43177         su doesn't work on Solaris 2.6.
43178         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
43179         <shadow.h>.  Reported by Dragos Harabor.
43180
43181 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
43182
43183         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
43184         memcpy instead of xmalloc, xrealloc, path_concat.
43185         (locale_charset): Treat empty environment variables as absent.
43186         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
43187
43188 2000-05-04  Jim Meyering  <meyering@lucent.com>
43189
43190         * lib/getopt.c: Update from glibc.
43191         * lib/obstack.c: Likewise.
43192         * lib/obstack.h: Likewise.
43193         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
43194         file
43195
43196         * lib/regex.h: Likewise.
43197         * lib/strndup.c: Likewise.
43198         * lib/strnlen.c: New file, from glibc.
43199
43200 2000-05-03  Jim Meyering  <meyering@lucent.com>
43201
43202         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
43203
43204 2000-05-02  Paul Eggert  <eggert@twinsun.com>
43205
43206         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
43207         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
43208         compile-time test, rather than inspecting host and OS, to
43209         decide whether to define _LARGEFILE_SOURCE.
43210
43211 2000-05-01  Jim Meyering  <meyering@lucent.com>
43212
43213         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
43214
43215         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
43216         Based on a patch from Bruno Haible.
43217
43218 2000-05-01  Jim Meyering  <meyering@lucent.com>
43219
43220         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
43221
43222 2000-04-29  Jim Meyering  <meyering@lucent.com>
43223
43224         * lib/path-concat.c: Declare strdup only if it's not defined.
43225         * lib/canon-host.c: Likewise.
43226
43227 2000-04-28  Jim Meyering  <meyering@lucent.com>
43228
43229         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
43230         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
43231         is included first, then limits.h is included by locale.h by libintl.h.
43232         From John David Anglin.
43233
43234 2000-04-25  Jim Meyering  <meyering@lucent.com>
43235
43236         * lib/makepath.c (S_IRWXUGO): Define.
43237         (make_path): Always perform explicit chmod if MODE specifies any
43238         of the `special' permission bits.  Prompted by a bug report against
43239         install from Mate Wierdl and Joost van Baal.
43240
43241 2000-04-18  Jim Meyering  <meyering@lucent.com>
43242
43243         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
43244         (jm_PREREQ): Use it.
43245
43246 2000-04-18  Jim Meyering  <meyering@lucent.com>
43247
43248         * lib/README: New file.
43249
43250         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
43251         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
43252
43253 2000-04-17  Jim Meyering  <meyering@lucent.com>
43254
43255         Get it right :-)
43256         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
43257         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
43258         Suggestion from Akim Demaille.
43259
43260 2000-04-17  Jim Meyering  <meyering@lucent.com>
43261
43262         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
43263         the definition of it to rpl_strftime also defined-away the system's
43264         declaration.
43265
43266 2000-04-15  Jim Meyering  <meyering@lucent.com>
43267
43268         Use `C' to denote so-called `contiguous' files, the same way
43269         that tar does.
43270         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
43271         (ftypelet): Use S_ISCTG.
43272         From Michael Deutschmann.
43273
43274 2000-04-14  Jim Meyering  <meyering@lucent.com>
43275
43276         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
43277         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
43278         clobbered.
43279
43280 2000-04-14  Jim Meyering  <meyering@lucent.com>
43281
43282         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
43283
43284 2000-04-13  Jim Meyering  <meyering@lucent.com>
43285
43286         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
43287         AH_VERBATIM to insert required #ifndef into config.h.in.
43288         Suggestion from Akim Demaille.
43289
43290 2000-04-12  Jim Meyering  <meyering@lucent.com>
43291
43292         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
43293         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
43294         Christian Krackowizer.
43295
43296         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
43297         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
43298         (AC_SYS_LARGEFILE): Require.
43299         (AM_C_PROTOTYPES): Require.
43300
43301 2000-04-08  Jim Meyering  <meyering@lucent.com>
43302
43303         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
43304         names don't conflict.  Reported by Eli Zaretskii.
43305
43306 2000-04-07  Jim Meyering  <meyering@lucent.com>
43307
43308         * lib/putenv.c: Move inclusion of errno.h so it follows that of
43309         sys/types.h, to work around system header problems on AIX 3.2.5.
43310         From Bruno Haible.
43311
43312 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
43313
43314         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
43315         bug.  Deal with the different error behavior of Irix iconv.
43316
43317 2000-04-05  Paul Eggert  <eggert@twinsun.com>
43318
43319         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
43320         IRIX if the installer said otherwise.
43321
43322 2000-04-05  Jim Meyering  <meyering@lucent.com>
43323
43324         Portability tweaks required for ultrix4.3.
43325         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
43326         (jm_CHECK_DECLS): Add getutent to the list of functions.
43327         (_jm_DECL_HEADERS): Add utmpx.h.
43328         From John David Anglin.
43329
43330         * m4/strftime.m4: Back out the 2000-04-02 change.
43331         Instead of that change, simply undefine putenv in the test program.
43332
43333 2000-04-05  Jim Meyering  <meyering@lucent.com>
43334
43335         Portability tweaks required for ultrix4.3.
43336         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
43337         getutent.
43338         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
43339         * lib/canon-host.c: Declare strdup.
43340         * lib/path-concat.c: Likewise.
43341         From John David Anglin.
43342
43343 2000-04-04  Jim Meyering  <meyering@lucent.com>
43344
43345         Be more DOS 8.3-friendly.
43346         * lib/ref-add.sin: Renamed from ref-add.sed.in.
43347         * lib/ref-del.sin: Renamed from ref-del.sed.in.
43348         * lib/Makefile.am: Reflect renaming.
43349         Reported by Eli Zaretskii.
43350
43351         Use a temporary file name that won't clash with `charset.alias'
43352         in the DOS 8.3 name space.
43353         * lib/Makefile.am (charset_tmp): Define.
43354         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
43355         (uninstall-local): Likewise.
43356         Reported by Eli Zaretskii.
43357
43358 2000-04-03  Jim Meyering  <meyering@lucent.com>
43359
43360         * m4/gettext.m4: Fix typo in comment.
43361
43362         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
43363         textutils/configure.in).  Suggestion from Paul Eggert.
43364         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
43365
43366 2000-04-02  Paul Eggert  <eggert@twinsun.com>
43367
43368         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
43369         variable in the shell rather than using putenv, which isn't
43370         portable.  This avoids the configure-time inter-test dependency
43371         on the potentially-renamed putenv function.
43372
43373 2000-03-30  Paul Eggert  <eggert@twinsun.com>
43374
43375         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
43376         before checking struct stat.st_blksize, so that
43377         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
43378
43379 2000-03-29  Paul Eggert  <eggert@twinsun.com>
43380
43381         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
43382         since strftime.c uses HAVE_STRFTIME to decide whether to use
43383         the underlying strftime.
43384
43385 2000-03-29  Paul Eggert  <eggert@twinsun.com>
43386
43387         * lib/time/strftime.c (my_strftime): Make sure we call the system
43388         strftime, not ourselves, when invoking the underlying strftime.
43389
43390 2000-03-24  Jim Meyering  <meyering@lucent.com>
43391
43392         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
43393         (charset_alias): Define.
43394         (install-exec-local): Factor out common code.
43395         (uninstall-local): Split lines longer than 80.
43396         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
43397         (SUFFIXES): Define.
43398         (.sed.in.sed): New rule.  Don't redirect directly to $@.
43399         (CLEANFILES): Add ref-add.sed and ref-del.sed.
43400
43401 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
43402
43403         * lib/config.charset: Output a line containing "Packages using this
43404         file".
43405         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
43406         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
43407         ref-del.sed): New rules.
43408
43409 2000-03-17  Jim Meyering  <meyering@lucent.com>
43410
43411         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
43412         Otherwise, include <strings.h>
43413
43414 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
43415
43416         * lib/unicodeio.c (utf8_wctomb): New function.
43417         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
43418         format instead of in UCS-4 with platform dependent endianness.
43419
43420 2000-03-10  Jim Meyering  <meyering@lucent.com>
43421
43422         * m4/lib-check.m4: Look for getspnam in -lgen, too.
43423         From Marco Franzen.
43424
43425 2000-03-07  Paul Eggert  <eggert@twinsun.com>
43426
43427         * lib/savedir.c (savedir): Work even if directory size is
43428         negative; this can happen with some screwy NFS configurations.
43429
43430 2000-03-06  Jim Meyering  <meyering@lucent.com>
43431
43432         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
43433         if it's NULL (because we ran out of memory).  From Bruno Haible.
43434
43435 2000-03-05  Jim Meyering  <meyering@lucent.com>
43436
43437         * lib/localcharset.c ("path-concat.h"): Include.
43438         (get_charset_aliases): Use path_concat instead of ANSI string
43439         concatenation.
43440
43441         * lib/unicodeio.h (PARAMS): Define.
43442         Use it to guard prototype.
43443
43444 2000-03-04  Jim Meyering  <meyering@lucent.com>
43445
43446         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
43447         for lib/localcharset.c.
43448
43449 2000-03-04  Jim Meyering  <meyering@lucent.com>
43450
43451         * lib/Makefile.am (install-exec-local): Create $(libdir) before
43452         installing into it.
43453         (uninstall-local): Uncomment this rule so `make distcheck' works
43454         once again.
43455
43456         * lib/unicodeio.c (<errno.h>): Include it.
43457         (errno): Declare if not defined.
43458
43459         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
43460
43461         * lib/config.charset: New version, incorporating remarks from a linux
43462         i18n mailing list.  From Bruno Haible.
43463
43464 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
43465
43466         * m4/codeset.m4: New file.
43467         * m4/iconv.m4: New file.
43468         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
43469
43470 2000-03-03  Jim Meyering  <meyering@lucent.com>
43471
43472         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
43473
43474 2000-03-02  Jim Meyering  <meyering@lucent.com>
43475
43476         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
43477         the messages come out on separate lines.
43478
43479         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
43480         rather than jm_CHECK_DECLARATIONS.
43481         * m4/decl.m4: Remove now-unused file.
43482
43483         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
43484         geteuid.
43485
43486 2000-03-02  Jim Meyering  <meyering@lucent.com>
43487
43488         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
43489
43490 2000-03-01  Jim Meyering  <meyering@lucent.com>
43491
43492         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
43493         * lib/unicodeio.c: Likewise.
43494
43495 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
43496
43497         * lib/config.charset: New file.
43498         * lib/localcharset.c: New file.
43499         * lib/unicodeio.h, lib/unicodeio.c: New files.
43500         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
43501         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
43502         (noinst_HEADERS): Add unicodeio.h.
43503         (all-local, install-exec-local, charset.alias): New targets.
43504
43505 2000-02-28  Paul Eggert  <eggert@twinsun.com>
43506
43507         * lib/quotearg.c (ALERT_CHAR): New macro.
43508         (quotearg_buffer_restyled): Use it.
43509
43510 2000-02-27  Jim Meyering  <meyering@lucent.com>
43511
43512         * m4/check-decl.m4: Add getenv to the list.
43513
43514 2000-02-27  Jim Meyering  <meyering@lucent.com>
43515
43516         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
43517         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
43518
43519         * lib/backupfile.c: Guard inclusion of stdlib.h with
43520         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
43521         Declare malloc if needed.
43522
43523         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
43524         `#ifndef HAVE_DECL..'
43525         now that autoconf always defines the HAVE_DECL_ symbols.
43526         * lib/human.c: Likewise.
43527         * lib/same.c: Likewise.
43528         * lib/strtoumax.c: Likewise.
43529
43530         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
43531         declaration check was not run.
43532         * lib/hash.c: Likewise.
43533         * lib/human.c: Likewise.
43534         * lib/same.c: Likewise.
43535         * lib/strtoumax.c: Likewise.
43536
43537         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
43538         `.', then first look up the entire `.'-containing string as a login
43539         name.
43540
43541 2000-02-23  Jim Meyering  <meyering@lucent.com>
43542
43543         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
43544         in place of my hack.
43545
43546 2000-02-18  Paul Eggert  <eggert@twinsun.com>
43547
43548         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
43549         (textint): New typedef.
43550         (parser_control): Member year changed from int to textint.
43551         All uses changed.
43552         (YYSTYPE): Removed; replaced by %union with int and textint members.
43553         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
43554         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
43555         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
43556         (tSNUMBER, tUNUMBER): Now of type <textintval>.
43557         (date, number, to_year): Use width of number in digits, not its value,
43558         to determine whether it's a 2-digit year, or a 2-digit time.
43559         (yylex): Store number of digits of numeric tokens.
43560         Reported by John Kendall.
43561
43562         (parser_control): Changed from struct parser_control to typedef (for
43563         consistency).  All uses changed.
43564
43565         (tID): Removed; not used.
43566         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
43567
43568 2000-02-14  Paul Eggert  <eggert@twinsun.com>
43569
43570         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
43571         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
43572
43573 2000-02-12  Jim Meyering  <meyering@lucent.com>
43574
43575         * lib/userspec.c (ISDIGIT): Define it.
43576         (isdigit): Remove definition.
43577         (is_number): Use ISDIGIT, not isdigit.
43578         <libintl.h>: Include.
43579         (_ and N_): Define.
43580         (parse_user_spec): Mark translatable strings.
43581
43582 2000-02-10  Jim Meyering  <meyering@lucent.com>
43583
43584         With these changes, nanosleep.[ch] are finally enough like the other
43585         lib/* replacement files to compile on a few more losing systems.
43586
43587         * lib/nanosleep.h: Don't include config.h.
43588         Remove prototype from declaration of nanosleep.
43589         (PARAMS): Remove now-unneeded definition.
43590         * lib/nanosleep.c: #undef nanosleep.
43591         (rpl_nanosleep): Rename from nanosleep.
43592
43593 2000-02-10  Jim Meyering  <meyering@lucent.com>
43594
43595         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
43596         gnu_nanosleep to rpl_nanosleep.
43597
43598 2000-02-09  Jim Meyering  <meyering@lucent.com>
43599
43600         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
43601         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
43602
43603 2000-02-08  Akim Demaille  <akim@epita.fr>
43604
43605         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
43606         `[' and `]' and remove uses of `changequote'.
43607         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
43608         (AC_SYS_LARGEFILE): Likewise.
43609         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
43610         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
43611         of changequote.
43612         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
43613         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
43614         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
43615         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
43616
43617 2000-02-05  Jim Meyering  <meyering@lucent.com>
43618
43619         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
43620         Remove explicit use of AC_HEADER_TIME.  It is required by
43621         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
43622         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
43623         in autoconf whereby the expansion of the latter ended up preceding
43624         the expansion of its prerequisite, AC_HEADER_TIME.
43625         Reported by Volker Borchert.
43626
43627 2000-02-03  Jim Meyering  <meyering@lucent.com>
43628
43629         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
43630
43631 2000-02-03  Jim Meyering  <meyering@lucent.com>
43632
43633         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
43634         rather than with `#if HAVE_UTMPNAME'.
43635
43636 2000-02-02  Jim Meyering  <meyering@lucent.com>
43637
43638         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
43639         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
43640         Reported by Eli Zaretskii.
43641
43642 2000-02-01  Jim Meyering  <meyering@lucent.com>
43643
43644         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
43645
43646 2000-01-31  Jim Meyering  <meyering@lucent.com>
43647
43648         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
43649         functions.  Add the time.h and sys/time.h headers along with the
43650         AC_REQUIRE'ment of AC_HEADER_TIME.
43651
43652 2000-01-31  Jim Meyering  <meyering@lucent.com>
43653
43654         * lib/nanosleep.h (nanosleep): Guard declaration with
43655         `#if ! HAVE_DECL_NANOSLEEP'.
43656         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
43657         the declaration in that vendor's sys/timers.h.
43658         Reported by Christian Krackowizer.
43659
43660         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
43661         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
43662         (ISPRINT): Likewise.
43663         Reported by Tom Tromey.
43664
43665 2000-01-30  Jim Meyering  <meyering@lucent.com>
43666
43667         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
43668
43669         * m4/prereq.m4 (utmp_includes): Define.
43670         Check for ut_user and ut_name members in both struct utmpx
43671         and struct utmp.
43672
43673 2000-01-30  Jim Meyering  <meyering@lucent.com>
43674
43675         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
43676         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
43677         header files where only utmpx.ut_user is declared.
43678
43679         * lib/readutmp.h (UT_USER): Define.
43680
43681 2000-01-29  Jim Meyering  <meyering@lucent.com>
43682
43683         * m4/lib-check.m4: New file containing library-related checks from
43684         fileutils and sh-utils (textutils had none).
43685
43686 2000-01-28  Jim Meyering  <meyering@lucent.com>
43687
43688         * m4/perl.m4: Change format of warning message to look more like that
43689         from the missing script.  Suggestion from François Pinard.
43690
43691 2000-01-25  Jim Meyering  <meyering@lucent.com>
43692
43693         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
43694         well as time.h in the compile check.
43695         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
43696         Fix typo in cross-compiling case: s/yes/no/.
43697
43698 2000-01-23  Jim Meyering  <meyering@lucent.com>
43699
43700         * m4/jm-macros.m4: Move df-related tests here from
43701         fileutils/configure.in
43702
43703         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
43704         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
43705
43706         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
43707         s/space/ac_fsusage_space/.
43708         (jm_FILE_SYSTEM_USAGE): Take two parameters.
43709
43710         * m4/ftruncate.m4: New file (derived from part of
43711         fileutils/configure.in).
43712         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
43713         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
43714
43715         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
43716         AC_SUBST these here, rather than just in sh-util/configure.in, so
43717         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
43718         all the same.
43719         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
43720         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
43721         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
43722         (AC_SUBST(POW_LIBM)): Likewise.
43723         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
43724
43725 2000-01-23  Jim Meyering  <meyering@lucent.com>
43726
43727         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
43728         obstack.c.
43729
43730 2000-01-22  Jim Meyering  <meyering@lucent.com>
43731
43732         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
43733
43734         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
43735
43736         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
43737         configure.in
43738         (AC_CHECK_HEADERS): Likewise for sh-utils.
43739         (AC_CHECK_HEADERS): Likewise for textutils.
43740         Merge the three lists of headers.
43741
43742         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
43743         from fileutils' configure.in.
43744
43745         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
43746         code. Moved tests into their own function (_jm_DECL_HEADERS) in
43747         check-decl.m4.
43748
43749         * m4/check-decl.m4: Use #if rather than #ifdef.
43750         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
43751         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
43752         (_jm_DECL_HEADERS): Define new function.
43753         (jm_CHECK_DECLARATIONS): Require it.
43754
43755 2000-01-22  Jim Meyering  <meyering@lucent.com>
43756
43757         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
43758         [! HAVE_DECL_STRTOULL]: Declare strtoull.
43759         Required for some AIX systems.  Reported by Christian Krackowizer.
43760         [TESTING] (main): New function.
43761
43762         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
43763         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
43764         letters.
43765
43766         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
43767         iswprint.
43768
43769         * lib/strverscmp.c (ISDIGIT): Define.
43770         (strverscmp): Use ISDIGIT, not isdigit.
43771
43772 2000-01-19  Jim Meyering  <meyering@lucent.com>
43773
43774         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
43775         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
43776         defines `struct timespec' in <sys/time.h>
43777
43778         * m4/c-bs-a.m4: Remove uses of changequote altogether.
43779         Thanks to Akim for explaining.
43780
43781 2000-01-17  Paul Eggert  <eggert@twinsun.com>
43782
43783         * lib/nanosleep.c (nanosleep):
43784         Don't use SA_INTERRUPT to decide whether to call sigaction, as
43785         POSIX.1 doesn't require SA_INTERRUPT and some systems
43786         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
43787         it's been part of POSIX.1 since day 1 (in 1988).
43788
43789 2000-01-17  Jim Meyering  <meyering@lucent.com>
43790
43791         * lib/interlock: Remove unused file.  Reported by François Pinard.
43792
43793 2000-01-16  Paul Eggert  <eggert@twinsun.com>
43794
43795         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
43796         alert, backslash, formfeed, and vertical tab unnecessarily in
43797         shell quoting style.
43798
43799 2000-01-16  Jim Meyering  <meyering@lucent.com>
43800
43801         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
43802         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
43803         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
43804         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
43805
43806 2000-01-16  Jim Meyering  <meyering@lucent.com>
43807
43808         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
43809         because the latter didn't work.
43810
43811 2000-01-15  Jim Meyering  <meyering@lucent.com>
43812
43813         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
43814         (AC_REPLACE_FUNCS): Add memcpy and memset.
43815         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
43816         Add strpbrk.
43817         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
43818
43819 2000-01-12  Jim Meyering  <meyering@lucent.com>
43820
43821         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
43822         (jm_PREREQ): Use it.
43823         (jm_PREREQ_READUTMP): New macro.
43824         (jm_PREREQ): Use it.
43825
43826 2000-01-11  Paul Eggert  <eggert@twinsun.com>
43827
43828         Quote multibyte characters correctly.
43829         * m4/c-bs-a.m4: New file.
43830         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
43831         (jm_PREREQ): Use it.
43832
43833 2000-01-11  Paul Eggert  <eggert@twinsun.com>
43834
43835         * m4/uintmax_t.m4: Port to autoconf 2.13.
43836
43837 2000-01-08  Jim Meyering  <meyering@ascend.com>
43838
43839         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
43840         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
43841
43842 2000-01-04  Jim Meyering  <meyering@ascend.com>
43843
43844         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
43845         jm_STRUCT_DIRENT_D_TYPE.
43846         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
43847         jm_STRUCT_DIRENT_D_INO.
43848         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
43849         jm_STRUCT_UTIMBUF.
43850         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
43851         renamings.
43852         * m4/utime.m4: Likewise.
43853
43854         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
43855         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
43856
43857 2000-01-03  Paul Eggert  <eggert@twinsun.com>
43858
43859         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
43860         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
43861
43862 2000-01-02  Jim Meyering  <meyering@ascend.com>
43863
43864         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
43865         remember if this is necessary.
43866
43867 1999-12-26  Jim Meyering  <meyering@ascend.com>
43868
43869         * m4/jm-macros.m4: Use it here.
43870         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
43871
43872 1999-12-23  Jim Meyering  <meyering@ascend.com>
43873
43874         * m4/jm-macros.m4: Check for clock_gettime (moved from
43875         fileutils/configure.in)
43876         Check for gettimeofday.
43877
43878 1999-12-20  Jim Meyering  <meyering@ascend.com>
43879
43880         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
43881         autoconf-2.14a-1999-12-20.
43882
43883 1999-12-19  Jim Meyering  <meyering@ascend.com>
43884
43885         * m4/lstat-slash.m4: New file.
43886         * m4/jm-macros.m4: Use the new macro:
43887         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
43888
43889 1999-12-07  Jim Meyering  <meyering@ascend.com>
43890
43891         * m4/perl.m4: Require that File::Compare be available, too.
43892         Too many systems seem to lack it.
43893
43894         * m4/strftime.m4: Add checks for most of the cpp macros tested in
43895         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
43896
43897 1999-11-18  Paul Eggert  <eggert@twinsun.com>
43898
43899         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
43900         problem with the QNX 4.25 shell, which doesn't propagate exit
43901         status of failed commands inside shell assignments.
43902
43903 1999-11-17  Jim Meyering  <meyering@ascend.com>
43904
43905         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
43906
43907 1999-11-07  Jim Meyering  <meyering@ascend.com>
43908
43909         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
43910
43911 1999-11-06  Jim Meyering  <meyering@ascend.com>
43912
43913         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
43914         * m4/jm-macros.m4 (jm_MACROS): Use it here.
43915
43916 1999-11-05  Jim Meyering  <meyering@ascend.com>
43917
43918         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
43919         configure.in of textutils, fileutils, and sh-utils into this one
43920         (shared between those packages) file.
43921         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
43922         AC_STRUCT_ST_BLKSIZE.
43923
43924 1999-11-03  Jim Meyering  <meyering@ascend.com>
43925
43926         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
43927         of AC_CHECK_TYPE checks includes unistd.h.
43928         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
43929         Suggestion from Akim Demaille.
43930
43931 1999-10-30  Jim Meyering  <meyering@ascend.com>
43932
43933         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
43934         m4-quoted string.
43935         * m4/ls-mntd-fs.m4: Likewise.
43936         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
43937         * m4/jm-winsz1.m4: Likewise.
43938
43939         * m4/const.m4: Remove file, since the fix made it into the experimental
43940         version of autoconf.
43941         * m4/mktime.m4: Likewise.
43942
43943         * m4/check-type.m4: Remove file, now that the latest version of
43944         AC_CHECK_TYPE takes a third arg to specify additional #includes.
43945
43946         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
43947         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
43948         AC_CHECK_TYPE.
43949
43950 1999-10-04  Jim Meyering  <meyering@ascend.com>
43951
43952         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
43953
43954 1999-09-22  Paul Eggert  <eggert@twinsun.com>
43955
43956         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
43957         2.95.1 bug with HP-UX 10.20.
43958
43959 1999-09-17  Jim Meyering  <meyering@ascend.com>
43960
43961         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
43962         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
43963         due to missing strdup (against sh-utils-2.0).
43964
43965 1999-08-29  Jim Meyering  <meyering@ascend.com>
43966
43967         * m4/jm-macros.m4: Require jm_BISON.
43968         * m4/bison.m4: New file.
43969
43970 1999-08-17  Paul Eggert  <eggert@twinsun.com>
43971
43972         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
43973         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
43974
43975 1999-08-05  Jim Meyering  <meyering@ascend.com>
43976
43977         * m4/getline.m4: Rename test file from conftestdata to conftest.data
43978         to avoid conflicts with `conftest' on 8+3 filesystems.
43979         Suggestion from Eli Zaretskii.
43980
43981 1999-08-04  Jim Meyering  <meyering@ascend.com>
43982
43983         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
43984         fileutils and sh-utils (textutils's getline test was inadequate).
43985         (AM_FUNC_GETLINE): Run this test.
43986         (AC_CHECK_FUNCS): Check for getdelim.
43987         Reported by Bob Proulx.
43988
43989 1999-08-02  Jim Meyering  <meyering@ascend.com>
43990
43991         * m4/jm-macros.m4: Add a comment.
43992
43993 1999-08-01  Paul Eggert  <eggert@twinsun.com>
43994
43995         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
43996         <inttypes.h> defines strtoumax as a macro (and not as a
43997         function).
43998
43999 1999-08-01  Paul Eggert  <eggert@twinsun.com>
44000
44001         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
44002         that we can shift, multiply and divide unsigned long long
44003         values; Ultrix cc can't do it.
44004
44005 1999-08-01  Paul Eggert  <eggert@twinsun.com>
44006
44007         * m4/mktime.m4: New file, which is a preview of what should appear
44008         in the next public autoconf release.
44009
44010 1999-08-01  Paul Eggert  <eggert@twinsun.com>
44011
44012         * m4/lfs.m4: Remove this file.
44013         * m4/largefile.m4: New file.  It contains the old contents of
44014         lfs.m4, except that all names with prefix AC_LFS have been
44015         changed to use the prefix AC_SYS_LARGEFILE instead, to be
44016         compatible with future autoconf versions.  Also, some minor m4
44017         quoting problems have been fixed.
44018
44019 1999-08-01  Paul Eggert  <eggert@twinsun.com>
44020
44021         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
44022         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
44023         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
44024         and simplify the shell code.
44025
44026 1999-08-01  Jim Meyering  <meyering@ascend.com>
44027
44028         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
44029         m4.
44030
44031 1999-07-20  Jim Meyering  <meyering@ascend.com>
44032
44033         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
44034
44035 1999-07-15  Jim Meyering  <meyering@ascend.com>
44036
44037         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
44038
44039 1999-05-22  Jim Meyering  <meyering@ascend.com>
44040
44041         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
44042
44043 1999-05-20  Jim Meyering  <meyering@ascend.com>
44044
44045         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
44046         Add a colon after each `then' in case $4 is empty.
44047
44048 1999-05-16  Jim Meyering  <meyering@ascend.com>
44049
44050         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
44051
44052 1999-05-10  Jim Meyering  <meyering@ascend.com>
44053
44054         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
44055
44056         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
44057         AC_FUNC_MKTIME.
44058
44059 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
44060
44061         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
44062
44063 1999-05-04  Paul Eggert  <eggert@twinsun.com>
44064
44065         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
44066         not CPPFLAGS, so that linking works correctly in IRIX.
44067
44068 1999-04-30  Paul Eggert  <eggert@twinsun.com>
44069
44070         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
44071
44072 1999-04-20  Paul Eggert  <eggert@twinsun.com>
44073
44074         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
44075         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
44076         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
44077         jm_AC_TYPE_UNSIGNED_LONG_LONG.
44078         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
44079
44080         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
44081
44082 1999-04-20  Jim Meyering  <meyering@ascend.com>
44083
44084         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
44085         AC_REPLACE xstroull if necessary.  From Paul Eggert.
44086         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
44087
44088 1999-04-18  Jim Meyering  <meyering@ascend.com>
44089
44090         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
44091         * m4/jm-macros.m4: Use it.
44092
44093 1999-04-06  Jim Meyering  <meyering@ascend.com>
44094
44095         * m4/strftime.m4: Remove test for %f.
44096
44097 1999-03-29  Jim Meyering  <meyering@ascend.com>
44098
44099         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
44100         superset of the AC_TYPE_* checks in the textutils, fileutils,
44101         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
44102         AC_TYPE_PID_T.
44103
44104 1999-03-28  Jim Meyering  <meyering@ascend.com>
44105
44106         * m4/jm-macros.m4: Define GNU_PACKAGE here.
44107         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
44108         replaced e.g., in the *.sh files of the sh-utils.
44109
44110 1999-03-20  Jim Meyering  <meyering@ascend.com>
44111
44112         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
44113         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
44114         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
44115
44116 1999-03-19  Jim Meyering  <meyering@ascend.com>
44117
44118         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
44119
44120 1999-03-12  Jim Meyering  <meyering@ascend.com>
44121
44122         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
44123
44124 1999-03-07  Jim Meyering  <meyering@ascend.com>
44125
44126         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
44127         declared.
44128
44129 1999-02-17  Jim Meyering  <meyering@ascend.com>
44130
44131         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
44132         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
44133
44134 1999-02-07  Jim Meyering  <meyering@ascend.com>
44135
44136         * m4/group-member.m4: New file -- extracted from sh-utils'
44137         configure.in.
44138
44139         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
44140         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
44141
44142 1999-02-06  Jim Meyering  <meyering@ascend.com>
44143
44144         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
44145         * m4/fnmatch.m4: Likewise.
44146         * m4/getgroups.m4: Likewise.
44147         * m4/lstat.m4: Likewise.
44148         * m4/malloc.m4: Likewise.
44149         * m4/putenv.m4: Likewise.
44150         * m4/realloc.m4: Likewise.
44151         * m4/regex.m4: Likewise.
44152         * m4/stat.m4: Likewise.
44153         * m4/strftime.m4: Likewise.
44154         Suggestion from Alain Magloire.
44155
44156         * m4/chown.m4: Use `.$ac_objext', not `.o'.
44157         * m4/fnmatch.m4: Likewise.
44158         * m4/getgroups.m4: Likewise.
44159         * m4/getline.m4: Likewise.
44160         * m4/lstat.m4: Likewise.
44161         * m4/malloc.m4: Likewise.
44162         * m4/memcmp.m4: Likewise.
44163         * m4/putenv.m4: Likewise.
44164         * m4/realloc.m4: Likewise.
44165         * m4/regex.m4: Likewise.
44166         * m4/stat.m4: Likewise.
44167         * m4/strftime.m4: Likewise.
44168         Suggestion from Alain Magloire.
44169
44170         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
44171         an argument.
44172
44173         * m4/regex.m4: Add a run-time Test for proper operation of
44174         re_compile_pattern.
44175
44176 1999-01-31  Jim Meyering  <meyering@ascend.com>
44177
44178         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
44179
44180 1999-01-30  Jim Meyering  <meyering@ascend.com>
44181
44182         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
44183
44184         * m4/jm-mktime.m4: Make this a wrapper around the official
44185         AM_FUNC_MKTIME rather than my private copy, now that the official one
44186         is up to date.
44187         * m4/mktime.m4: Remove file.
44188
44189         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
44190         * m4/uptime.m4: Likewise.
44191         * m4/uintmax_t.m4: Likewise.
44192
44193 1999-01-28  Jim Meyering  <meyering@ascend.com>
44194
44195         * m4/jm-macros.m4: Use jm_AFS.
44196         * m4/afs.m4: New file (from fileutils' configure.in).
44197
44198         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
44199         * m4/chown.m4: Likewise.
44200         * m4/d-ino.m4: Likewise.
44201         * m4/d-type.m4: Likewise.
44202         * m4/fnmatch.m4: Likewise.
44203         * m4/getgroups.m4: Likewise.
44204         * m4/gettext.m4: Likewise.
44205         * m4/jm-mktime.m4: Likewise.
44206         * m4/jm-winsz2.m4: Likewise.
44207         * m4/lcmessage.m4: Likewise.
44208         * m4/ls-mntd-fs.m4: Likewise.
44209         * m4/malloc.m4: Likewise.
44210         * m4/memcmp.m4: Likewise.
44211         * m4/putenv.m4: Likewise.
44212         * m4/realloc.m4: Likewise.
44213         * m4/st_mtim.m4: Likewise.
44214         * m4/strftime.m4: Likewise.
44215
44216 1999-01-16  Jim Meyering  <meyering@ascend.com>
44217
44218         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
44219         (ARGMATCH_DIE_DECL): Define.
44220
44221 1999-01-12  Jim Meyering  <meyering@ascend.com>
44222
44223         * m4/Makefile.am.in: Rewrite to avoid using fmt.
44224         Reported by Lars Hecking.
44225
44226 1999-01-10  Jim Meyering  <meyering@ascend.com>
44227
44228         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
44229         gross kludge.
44230         * m4/inttypes_h.m4: Likewise.
44231         * m4/lstat.m4: Likewise.
44232         * m4/malloc.m4: Likewise.
44233         * m4/readdir.m4: Likewise.
44234         * m4/realloc.m4: Likewise.
44235         * m4/st_dm_mode.m4: Likewise.
44236         * m4/stat.m4: Likewise.
44237         * m4/utimbuf.m4: Likewise.
44238         * m4/utimes.m4: Likewise.
44239
44240         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
44241         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
44242         comments in config.h.in are meaningful.
44243
44244         * m4/jm-macros.m4: Require autoconf-2.13 here.
44245
44246         * m4/regex.m4: By default, don't use the included regex.c on systems
44247         with glibc 2.  Suggestion from Uli Drepper.
44248
44249 1999-01-02  Jim Meyering  <meyering@ascend.com>
44250
44251         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
44252
44253 1998-12-18  Jim Meyering  <meyering@ascend.com>
44254
44255         * m4/Makefile.am.in (Makefile.am): Simplify rule.
44256         Based on a suggestion from Lars Hecking.
44257
44258 1998-11-16  Paul Eggert  <eggert@twinsun.com>
44259
44260         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
44261
44262 1998-11-16  Jim Meyering  <meyering@ascend.com>
44263
44264         * m4/lfs.m4: Double-quote the `uname...` expression.
44265
44266 1998-11-14  Jim Meyering  <meyering@ascend.com>
44267
44268         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
44269         * m4/stat.m4: Likewise.
44270
44271 1998-11-03  Jim Meyering  <meyering@ascend.com>
44272
44273         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
44274         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
44275
44276 1998-10-18  Jim Meyering  <meyering@ascend.com>
44277
44278         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
44279
44280 1998-10-17  Jim Meyering  <meyering@ascend.com>
44281
44282         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
44283         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
44284         calls for those previously hard-coded headers.  Instead, take a new
44285         parameter.
44286         (jm_CHECK_DECLARATIONS): Reflect interface change.
44287         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
44288         (jm_CHECK_DECL_LOCALTIME_R): New macro.
44289
44290         * m4/mktime.m4: Test for spring-forward gap before long-running test.
44291
44292 1998-10-14  Jim Meyering  <meyering@ascend.com>
44293
44294         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
44295         instead of "TZ=America/Vancouver".  From Paul Eggert.
44296
44297 1998-10-11  Jim Meyering  <meyering@ascend.com>
44298
44299         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
44300         This adds a test for a recently added compatibility fix for mktime.c.
44301         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
44302
44303 1998-09-27  Jim Meyering  <meyering@ascend.com>
44304
44305         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
44306
44307         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
44308         ../configure.in, including a change from Gordon Matzigkeit to allow
44309         cross-compiling for the Hurd.
44310
44311         * m4/glibc.m4: New file/macro to test for the GNU C Library
44312         versions 1 and 2.  From Gordon Matzigkeit.
44313         Indent.
44314
44315 1998-09-21  Jim Meyering  <meyering@ascend.com>
44316
44317         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
44318
44319 1998-08-18  Paul Eggert  <eggert@twinsun.com>
44320
44321         Port nanosecond-resolution times to UnixWare 2.1.2 and
44322         pedantic Solaris 2.6.
44323
44324         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
44325         AC_STRUCT_ST_MTIM.
44326         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
44327         Generate name of ns member, instead of just 1 or undef.
44328         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
44329
44330 1998-08-15  Jim Meyering  <meyering@ascend.com>
44331
44332         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
44333         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
44334         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
44335         instead of jm_TYPE_SSIZE_T.
44336
44337 1998-08-12  Jim Meyering  <meyering@ascend.com>
44338
44339         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
44340
44341 1998-08-02  Jim Meyering  <meyering@ascend.com>
44342
44343         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
44344         in acconfig.h manually.
44345
44346 1998-07-31  Paul Eggert  <eggert@twinsun.com>
44347
44348         * m4/st_mtim.m4: New file.
44349
44350 1998-07-28  Jim Meyering  <meyering@ascend.com>
44351
44352         * m4/utimes.m4: Undef stat.
44353
44354 1998-07-25  Jim Meyering  <meyering@ascend.com>
44355
44356         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
44357         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
44358
44359 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
44360
44361         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
44362         uid and gid actually remain unchanged.
44363
44364 1998-07-07  Jim Meyering  <meyering@ascend.com>
44365
44366         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
44367
44368 1998-07-04  Jim Meyering  <meyering@ascend.com>
44369
44370         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
44371         to prove that this macro can be used in packages without regex.c.
44372
44373 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
44374
44375         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
44376         is to be used.
44377
44378 1998-07-03  Jim Meyering  <meyering@ascend.com>
44379
44380         * m4/gettext.m4: Add -lintl if it's found to be necessary.
44381
44382         * m4/gettext.m4: New file -- from gettext-0.10.35.
44383         * m4/lcmessage.m4: Likewise.
44384         * m4/progtest.m4: Likewise.
44385
44386         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
44387         * m4/jm-macros.m4: Require the new macro.
44388
44389 1998-06-29  Jim Meyering  <meyering@ascend.com>
44390
44391         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
44392         for the definition of NGROUPS (used in a system header included
44393         by sys/mount.h).
44394
44395 1998-06-28  Jim Meyering  <meyering@ascend.com>
44396
44397         * m4/ls-mntd-fs.m4: New file.
44398         * m4/fstypename.m4: New file.
44399
44400         * m4/jm-macros.m4: Require the new macro.
44401         * m4/jm-glibc-io.m4: New file.
44402
44403 1998-05-19  Jim Meyering  <meyering@ascend.com>
44404
44405         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
44406         * m4/lchown.m4: New file.
44407
44408         * m4/Makefile.am.in: New file.
44409         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
44410
44411 1998-05-14  Jim Meyering  <meyering@ascend.com>
44412
44413         * m4/Makefile.am (EXTRA_DIST): Add them.
44414         * m4/jm-macros.m4: New file.
44415         * m4/utimbuf.m4: New file.
44416
44417 1998-05-12  Jim Meyering  <meyering@ascend.com>
44418
44419         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
44420
44421 1998-05-11  Jim Meyering  <meyering@ascend.com>
44422
44423         * m4/isc-posix.m4: New file.
44424
44425 1998-05-10  Jim Meyering  <meyering@ascend.com>
44426
44427         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
44428
44429 1998-05-09  Jim Meyering  <meyering@ascend.com>
44430
44431         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
44432         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
44433         with automake.
44434
44435         * m4/ssize_t.m4: New file.
44436         * m4/mktime.m4: Remove file -- the new automake has this now.
44437
44438 1998-04-26  Jim Meyering  <meyering@ascend.com>
44439
44440         * m4/assert.m4: New file.
44441         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
44442
44443 1998-04-05  Jim Meyering  <meyering@ascend.com>
44444
44445         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
44446         (jm_PREREQ): Use it here.
44447
44448 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
44449
44450         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
44451         in acconfig.h.
44452
44453 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
44454
44455         * m4/prereq.m4: New file.
44456         * m4/error.m4: New file.
44457         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
44458
44459 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
44460
44461         * m4/getline.m4: Don't set am_cv_func_working_getline before the
44462         cache-check for the same variable -- that defeated the purpose of
44463         the test; the test program was never run.  This was a problem only
44464         on systems with losing getline functions -- HP-UX 10.20 is one.
44465         Reported by Bjorn Helgaas.
44466
44467 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
44468
44469         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
44470
44471 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
44472
44473         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
44474
44475         * m4/const.m4: New file.  Use an initializer in this declaration
44476         typedef int charset[2]; const charset x;
44477         Reported by Bob Glickstein.
44478
44479 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
44480
44481         * m4/chown.m4: Fix reversed types on -1 args to chown.
44482         From Kaveh Ghazi.
44483
44484 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
44485
44486         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
44487         Add lseek and memchr.
44488
44489         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
44490         T.E.Dickey <dickey@clark.net> said that some older preprocessors
44491         have a 20-character limit on names.
44492
44493 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
44494
44495         * m4/inttypes_h.m4: New file.
44496         * m4/uintmax_t.m4: New file.
44497         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
44498
44499
44500         -----
44501
44502         Local Variables:
44503         coding: utf-8
44504         End:
44505
44506         Copyright (C) 1997-2008 Free Software Foundation, Inc.
44507
44508         Copying and distribution of this file, with or without
44509         modification, are permitted provided the copyright notice
44510         and this notice are preserved.