1 2008-10-16 Paul Eggert <eggert@cs.ucla.edu>
3 open-safer.c: avoid 'signed and unsigned in conditional...' warning
4 * lib/open-safer.c (open_safer): Use an "if/else" statement in place
5 of the ternary operator. Reported by Reuben Thomas <rrt@sc3d.org>.
7 2008-10-16 Jim Meyering <meyering@redhat.com>
9 openat-die.c: avoid 'no previous prototype' warning
10 * lib/openat-die.c: Include "openat.h".
11 Reported by Reuben Thomas <rrt@sc3d.org>.
13 2008-10-16 Simon Josefsson <simon@josefsson.org>
15 * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
16 * lib/netdb.in.h: Fix typo.
17 Reported by Bruno Haible <bruno@clisp.org>
19 * lib/netdb.in.h: Include sys/socket.h for platforms without
20 netdb.h, to get structures like hostent on MinGW.
21 * modules/netdb (Depends-on): Add sys_socket.
23 2008-10-15 Simon Josefsson <simon@josefsson.org>
25 * modules/netdb, modules/netdb-tests: New file.
26 * m4/netdb_h.m4: New file.
27 * lib/netdb.in.h: Add, currently just an empty file pending
29 * tests/test-netdb.c: New file.
30 * doc/posix-headers/netdb.texi: Mention that we replace it if
32 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
35 2008-10-15 Simon Josefsson <simon@josefsson.org>
37 * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
40 2008-10-13 Bruno Haible <bruno@clisp.org>
42 * lib/glthread/cond.c (glthread_cond_wait_func,
43 glthread_cond_timedwait_func): Add a comment.
45 2008-10-13 Yoann Vandoorselaere <yoann@prelude-ids.org>
47 * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
48 * tests/test-select.c: Likewise,
50 2008-10-13 Bruno Haible <bruno@clisp.org>
52 * lib/glthread/cond.c (glthread_cond_wait_func,
53 glthread_cond_timedwait_func): Fix variable name.
54 Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
56 2008-10-13 Paolo Bonzini <bonzini@gnu.org>
58 fix getaddrinfo emulation for systems with struct sockaddr.sa_len
59 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
60 struct sockaddr.sa_len.
61 * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
63 2008-10-13 Simon Josefsson <simon@josefsson.org>
65 * build-aux/pmccabe2html: Add css and css_url parameters.
67 2008-10-12 Bruno Haible <bruno@clisp.org>
69 * tests/test-sameacls.c (main) [AIX]: Clear type argument before
71 Reported by Rainer Tammer <tammer@tammer.net>.
73 2008-10-12 Bruno Haible <bruno@clisp.org>
75 Use msvcrt aware primitives for creation/termination of Win32 threads.
76 * lib/glthread/thread.c: Include <process.h>.
77 (glthread_create_func): Use _beginthreadex instead of CreateThread.
78 (wrapper_func): Update signature.
79 (gl_thread_exit_func): Use _endthreadex instead of EndThread.
81 2008-10-11 Yoann Vandoorselaere <yoann@prelude-ids.org>
82 Bruno Haible <bruno@clisp.org>
84 Provide a Win32 implementation of the 'cond' module.
85 * lib/glthread/cond.h [USE_WIN32]: New implementation.
86 * lib/glthread/cond.c (glthread_cond_init_func,
87 glthread_cond_wait_func, glthread_cond_timedwait_func,
88 glthread_cond_signal_func, glthread_cond_broadcast_func,
89 glthread_cond_destroy_func) [USE_WIN32]: New functions.
90 * modules/cond (Dependencies): Add gettimeofday.
92 2008-10-11 Bruno Haible <bruno@clisp.org>
94 Make sleep work on older versions of mingw.
95 * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
96 only whether it exists.
97 * doc/posix-functions/sleep.texi: Mention the problem with older
100 2008-10-11 Bruno Haible <bruno@clisp.org>
102 New module 'shutdown'.
103 * modules/shutdown: New file.
104 * lib/sys_socket.in.h (shutdown): New declaration.
105 * lib/winsock.c (shutdown): New function.
106 * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
108 * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
109 * doc/posix-functions/shutdown.texi: Document the new module.
111 2008-10-11 Jim Meyering <meyering@redhat.com>
113 * lib/fclose.c: Fix typo in comment: s/close/fclose/.
115 2008-10-11 Bruno Haible <bruno@clisp.org>
118 * modules/fclose: New file.
119 * lib/stdio.in.h (fclose): New declaration.
120 * lib/fclose.c: New file.
121 * m4/fclose.m4: New file.
122 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
124 * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
125 * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
127 * modules/close (Depends-on): fclose.
128 * doc/posix-functions/fclose.texi: Mention the problem on Windows.
130 2008-10-11 Bruno Haible <bruno@clisp.org>
132 * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
133 set errno and don't call _close.
135 2008-10-10 Bruno Haible <bruno@clisp.org>
137 * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
138 ACL, not afterwards. Fixes test failure on Cygwin.
140 2008-10-09 Ben Pfaff <blp@gnu.org>
142 * build-aux/announce-gen: Fix gnulib version related part of usage
143 message. Die with a useful error message if no tarballs are
146 2008-10-10 Jim Meyering <meyering@redhat.com>
148 bootstrap: use git's --depth=N option only if it's supported
149 * build-aux/bootstrap: Work with git-1.4.4.4, which does not
150 recognize the --depth option. Reported by Pádraig Brady.
152 2008-10-09 Bruno Haible <bruno@clisp.org>
155 * modules/ioctl: New file.
156 * lib/sys_socket.in.h (ioctl): Remove declaration.
157 * lib/winsock.c: Include <sys/ioctl.h>.
158 (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
159 * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
160 gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
161 * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
162 * doc/posix-functions/ioctl.texi: Mention the new module.
164 2008-10-09 Bruno Haible <bruno@clisp.org>
166 New module 'sys_ioctl'.
167 * lib/sys_ioctl.in.h: New file.
168 * m4/sys_ioctl_h.m4: New file.
169 * modules/sys_ioctl: New file.
170 * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
172 2008-10-09 Bruno Haible <bruno@clisp.org>
174 * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
175 * lib/winsock.c: Include <stdarg.h>.
176 (rpl_ioctl): Change to second argument 'int' and then varargs.
178 2008-10-09 Bruno Haible <bruno@clisp.org>
180 * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
181 when the sys_socket module is present and the system has <winsock2.h>.
183 2008-10-09 Bruno Haible <bruno@clisp.org>
185 * doc/posix-functions/close.texi: Mention module 'close' instead of
188 2008-10-09 Bruno Haible <bruno@clisp.org>
190 * doc/glibc-headers/sys_ioctl.texi: New file.
191 * doc/gnulib.texi: Include it.
193 2008-10-09 Paolo Bonzini <bonzini@gnu.org>
194 Bruno Haible <bruno@clisp.org>
196 Combine the two replacements of 'close'.
197 * lib/sys_socket.in.h (close): Define to a reminder to include
199 (_gl_close_fd_maybe_socket): New declaration.
200 (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
201 * lib/winsock.c (close): Remove undefinition.
202 (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
203 needed for the gnulib module 'close'.
204 * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
205 define to an error symbol or to a warning, if suitable.
206 * lib/close.c: Include <sys/socket.h>.
207 (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
208 * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
209 UNISTD_H_HAVE_WINSOCK2_H.
210 (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
211 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
212 UNISTD_H_HAVE_WINSOCK2_H.
213 * modules/sys_socket (Files): Add m4/unistd_h.m4.
214 (configure.ac): Set a module indicator.
215 (Makefile.am): Substitute GNULIB_CLOSE.
216 * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
217 * modules/poll-tests (Depends-on): Add close.
218 * modules/select-tests (Depends-on): Likewise.
220 2008-10-09 Paolo Bonzini <bonzini@gnu.org>
221 Bruno Haible <bruno@clisp.org>
224 * modules/close: New file.
225 * lib/unistd.in.h (close): Move declaration out of the
226 FCHDIR_REPLACEMENT scope.
227 (_gl_unregister_fd): New declaration.
228 * lib/close.c: New file.
229 * lib/fchdir.c (rpl_close): Remove function.
230 * m4/close.m4: New file.
231 * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
233 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
235 * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
237 * modules/fchdir (Depends-on): Add close.
239 2008-10-09 Paolo Bonzini <bonzini@gnu.org>
240 Bruno Haible <bruno@clisp.org>
242 * lib/fcntl.in.h (open): Simplify conditionals.
243 (_gl_register_fd): New declaration.
244 * lib/fchdir.c (rpl_open): Remove function.
245 * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
247 (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
248 * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
251 2008-10-09 Jim Meyering <meyering@redhat.com>
253 GNUmakefile: use the more name-space-friendly "_version"
254 * top/GNUmakefile (_dummy): Update.
255 (_version): Rename from "version".
257 2008-10-09 Paolo Bonzini <bonzini@gnu.org>
258 Bruno Haible <bruno@clisp.org>
260 * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
262 (_gl_register_fd): New function, extracted from rpl_open.
263 (rpl_close, rpl_closedir): Use _gl_unregister_fd.
264 (rpl_open, rpl_opendir): Use _gl_register_fd.
266 2008-10-09 Paolo Bonzini <bonzini@gnu.org>
268 Fix organization of 'open' replacement.
269 * m4/open.m4 (gl_REPLACE_OPEN): New macro.
270 (gl_FUNC_OPEN): Use it.
271 (gl_PREREQ_OPEN): Add a : to make the body non-empty.
273 2008-10-08 Bruno Haible <bruno@clisp.org>
275 * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
277 2008-10-08 Simon Josefsson <simon@josefsson.org>
279 * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock). The file is
280 AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
283 2008-10-08 Eric Blake <ebb9@byu.net>
285 GNUmakefile: add 'make version' target
286 * top/GNUmakefile (_curr-ver): Split version update rules...
287 (version): ...into a target.
289 2008-10-07 Bruno Haible <bruno@clisp.org>
291 Use a more portable replacement expression for -0.0L.
292 * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
293 instead of -0.0L. Fix m4 quotation.
295 * tests/test-signbit.c: Include <float.h>.
296 (minus_zero): New variable.
297 (test_signbitl): Use minus_zero instead of -zero.
298 * modules/signbit-tests (Depends-on): Add float.
300 * tests/test-ceill.c: Include <float.h>.
301 (zero): Remove variable.
302 (minus_zero): New variable.
303 (main): Use minus_zero instead of -zero.
304 * modules/ceill-tests (Depends-on): Add float.
306 * tests/test-floorl.c: Include <float.h>.
307 (zero): Remove variable.
308 (minus_zero): New variable.
309 (main): Use minus_zero instead of -zero.
310 * modules/floorl-tests (Depends-on): Add float.
312 * tests/test-roundl.c: Include <float.h>.
313 (zero): Remove variable.
314 (minus_zero): New variable.
315 (main): Use minus_zero instead of -zero.
316 * modules/roundl-tests (Depends-on): Add float.
318 * tests/test-truncl.c: Include <float.h>.
319 (zero): Remove variable.
320 (minus_zero): New variable.
321 (main): Use minus_zero instead of -zero.
322 * modules/truncl-tests (Depends-on): Add float.
324 * tests/test-frexpl.c (zero): Remove variable.
325 (minus_zero): New variable.
326 (main): Use minus_zero instead of -zero.
327 * modules/frexpl-tests (Depends-on): Add float.
329 * tests/test-isnan.c (zerol): Remove variable.
330 (minus_zerol): New variable.
331 (test_long_double): Use minus_zerol instead of -zerol.
332 * modules/isnan-tests (Depends-on): Add float.
334 * tests/test-isnanl.h (zero): Remove variable.
335 (minus_zero): New variable.
336 (main): Use minus_zero instead of -zero.
337 * modules/isnanl-nolibm-tests (Depends-on): Add float.
338 * modules/isnanl-tests (Depends-on): Add float.
340 * tests/test-ldexpl.c (zero): Remove variable.
341 (minus_zero): New variable.
342 (main): Use minus_zero instead of -zero.
343 * modules/ldexpl-tests (Depends-on): Add float.
345 * tests/test-snprintf-posix.h (zerol): Remove variable.
346 (minus_zerol): New variable.
347 (test_function): Use minus_zerol instead of -zerol.
348 * modules/snprintf-posix-tests (Depends-on): Add float.
349 * modules/vsnprintf-posix-tests (Depends-on): Add float.
351 * tests/test-sprintf-posix.h (zerol): Remove variable.
352 (minus_zerol): New variable.
353 (test_function): Use minus_zerol instead of -zerol.
354 * modules/sprintf-posix-tests (Depends-on): Add float.
355 * modules/vsprintf-posix-tests (Depends-on): Add float.
357 * tests/test-vasnprintf-posix.c (zerol): Remove variable.
358 (minus_zerol): New variable.
359 (test_function): Use minus_zerol instead of -zerol.
360 * modules/vasnprintf-posix-tests (Depends-on): Add float.
362 * tests/test-vasprintf-posix.c (zerol): Remove variable.
363 (minus_zerol): New variable.
364 (test_function): Use minus_zerol instead of -zerol.
365 * modules/vasprintf-posix-tests (Depends-on): Add float.
367 2008-10-07 Simon Josefsson <simon@josefsson.org>
369 * MODULES.html.sh (Support for building documentation): Mention
370 pmccabe2html. Sort entries.
372 Add pmccabe2html module, from gnupdf.
373 * build-aux/pmccabe.css: New file.
374 * build-aux/pmccabe2html: New file.
375 * m4/pmccabe2html.m4: New file.
376 * modules/pmccabe2html: New file.
378 2008-10-07 Richard W.M. Jones <rjones@redhat.com>
381 * MODULES.html.sh: Add to list of modules.
382 * lib/flock.c: flock implementation for Windows and Unix systems
384 * doc/glibc-functions/flock.texi: Update documentation.
385 * lib/sys_file.in.h: <sys/file.h> header file.
386 * m4/flock.m4: M4 macros.
387 * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
388 * modules/flock: flock module.
389 * modules/flock-tests: flock tests module.
390 * modules/sys_file: sys/file.h module.
391 * tests/test-flock.c: test suite for flock.
393 2008-10-06 Jim Meyering <meyering@redhat.com>
395 bootstrap: check for LT_INIT more portably still ;-)
396 * build-aux/bootstrap: Don't rely on \>, since it's not portable.
397 Spotted by Bruno Haible.
399 2008-10-06 Eric Blake <ebb9@byu.net>
401 test-signbit: avoid tripping Irix cc bug on -0.0L
402 * tests/test-signbit.c (minus_zerol): Delete, and replace with
403 '-zerol'. This may break on HP-UX/hppa, but at least makes the
404 entire testsuite consistent and avoids an Irix 6.2 bug.
406 2008-10-05 Bruno Haible <bruno@clisp.org>
407 Jim Meyering <jim@meyering.net>
409 Add an option for ignoring EPIPE during close_stdout.
410 * lib/closeout.h: Include <stdbool.h>.
411 (close_stdout_set_ignore_EPIPE): New declaration.
412 * lib/closeout.c: Include <stdbool.h>.
413 (ignore_EPIPE): New variable.
414 (close_stdout_set_ignore_EPIPE): New function.
415 (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
416 * lib/close-stream.c (close_stream): Mention the possible EPIPE
418 * modules/closeout (Depends-on): Add stdbool.
420 2008-10-05 Bruno Haible <bruno@clisp.org>
422 * modules/accept: New file.
423 * modules/bind: New file.
424 * modules/connect: New file.
425 * modules/getpeername: New file.
426 * modules/getsockname: New file.
427 * modules/getsockopt: New file.
428 * modules/listen: New file.
429 * modules/recv: New file.
430 * modules/recvfrom: New file.
431 * modules/send: New file.
432 * modules/sendto: New file.
433 * modules/setsockopt: New file.
434 * modules/socket: New file.
435 * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
436 (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
437 listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
438 the particular module is requested. Add a link warning when the
439 particular module is not requested.
440 * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
441 rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
442 rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
443 the particular module is requested.
444 * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
445 gl_SYS_SOCKET_H_DEFAULTS): New macros.
446 (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
447 * modules/sys_socket (Depends-on): Add link-warning.
448 (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
449 GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
450 GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
451 GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
453 * doc/posix-functions/accept.texi: Mention the new module 'accept'.
454 * doc/posix-functions/bind.texi: Mention the new module 'bind'.
455 * doc/posix-functions/connect.texi: Mention the new module 'connect'.
456 * doc/posix-functions/getpeername.texi: Mention the new module
458 * doc/posix-functions/getsockname.texi: Mention the new module
460 * doc/posix-functions/getsockopt.texi: Mention the new module
462 * doc/posix-functions/listen.texi: Mention the new module 'listen'.
463 * doc/posix-functions/recv.texi: Mention the new module 'recv'.
464 * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
465 * doc/posix-functions/send.texi: Mention the new module 'send'.
466 * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
467 * doc/posix-functions/setsockopt.texi: Mention the new module
469 * doc/posix-functions/socket.texi: Mention the new module 'socket'.
470 * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
471 listen, connect, accept.
472 * modules/select-tests (Depends-on): Likewise.
474 2008-10-05 Bruno Haible <bruno@clisp.org>
476 * lib/winsock.c (strerror): Remove unused #undef.
477 (rpl_close): Remove unused local variable.
479 * modules/sys_socket (Depends-on); Add errno.
481 2008-10-05 Bruno Haible <bruno@clisp.org>
483 * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
484 (select): Add a link warning when the 'select' module is not used.
485 * modules/sys_select (Depends-on): Add link-warning.
486 (Makefile.am): Substitute the definition of GL_LINK_WARNING.
487 Suggested by Paolo Bonzini.
489 2008-10-05 Jim Meyering <meyering@redhat.com>
491 bootstrap: check for LT_INIT more portably
492 * build-aux/bootstrap: Avoid using grep -E, since it's not
493 portable enough. Suggestion from Bruno Haible.
495 2008-10-05 Bruno Haible <bruno@clisp.org>
497 * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
498 as being fixed by gnulib.
500 2008-10-05 Bruno Haible <bruno@clisp.org>
502 * modules/select-tests: New file, mostly copied from
503 modules/sys_select-tests.
504 * tests/test-select.c: New file, mostly copied from
505 tests/test-sys_select.c.
506 * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
507 * modules/sys_select-tests (Depends-on): Remove all dependencies.
508 (Makefile.am): Remove test_sys_select_LDADD.
510 * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
511 to an undefined symbol, for an error message.
512 * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
513 (gl_SYS_SELECT_H_DEFAULTS): New macro.
514 (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
515 winsock-select.c here.
516 * modules/sys_select (Files): Remove lib/winsock-select.c.
517 (Depends-on): Remove alloca.
518 (Makefile.am): Substitute GNULIB_SELECT.
519 * modules/select: New file.
520 * doc/posix-functions/select.texi: Update.
522 2008-10-05 Bruno Haible <bruno@clisp.org>
524 * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
525 * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
526 * lib/spawn_faction_addopen.c (__sysconf): Likewise.
527 * modules/posix_spawn_file_actions_addclose (Depends-on): Add
529 * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
530 * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
532 2008-10-05 Bruno Haible <bruno@clisp.org>
534 * modules/getdtablesize-tests: New file.
535 * tests/test-getdtablesize.c: New file.
537 New module 'getdtablesize'.
538 * lib/unistd.in.h (getdtablesize): New declaration.
539 * lib/getdtablesize.c: New file.
540 * m4/getdtablesize.m4: New file.
541 * modules/getdtablesize: New file.
542 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
543 GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
544 * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
546 * doc/glibc-functions/getdtablesize.texi: Mention the new module.
548 2008-10-05 Bruno Haible <bruno@clisp.org>
550 * modules/sched (Makefile.am): Fix typo.
551 Reported by Simon Josefsson.
553 2008-10-05 Jim Meyering <meyering@redhat.com>
555 bootstrap: check for LT_INIT, too
556 * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
557 are deprecated. Suggestion from Ralf Wildenhues.
559 2008-10-05 Bruno Haible <bruno@clisp.org>
561 * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
562 overriding them by ours.
563 (POSIX_SPAWN_USEVFORK): Use the next free bit position.
565 2008-10-05 Jim Meyering <meyering@redhat.com>
567 bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
568 * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
569 obsolete AM_PROG_LIBTOOL. Spotted by Debarshi Ray <rishi@gnu.org>.
571 2008-10-04 Bruno Haible <bruno@clisp.org>
573 * modules/dup2 (License): Change to LGPLv2+.
574 * modules/sleep (License): Likewise.
575 * modules/perror (License): Likewise.
576 * modules/fopen (License): Change to LGPLv2+, with approval by Eric
578 * modules/signal (License): Likewise.
579 * modules/sigprocmask (License): Likewise.
580 * modules/raise (License): Change to LGPLv2+, with approval by Jim
583 2008-10-04 Bruno Haible <bruno@clisp.org>
585 * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
586 Reported by Rainer Tammer <tammer@tammer.net>.
588 2008-10-03 Paolo Bonzini <bonzini@gnu.org>
589 Bruno Haible <bruno@clisp.org>
591 * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
592 * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
593 * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
595 2008-10-03 Kamil Dudka <kdudka@redhat.com>
597 filevercmp: new module
598 * lib/filevercmp.h: New function filevercmp comparing version strings.
599 * lib/filevercmp.c: Implementation of filevercmp function.
600 * modules/filevercmp: Module metadata.
601 * tests/test-filevercmp.c: Unit test for new module.
602 * modules/filevercmp-tests: Unit test metadata.
603 * MODULES.html.sh: Add filevercmp module.
605 2008-10-03 Bruno Haible <bruno@clisp.org>
607 * lib/c-ctype.h: Add comment.
608 Reported by Jim Meyering.
610 2008-10-02 Bruno Haible <bruno@clisp.org>
612 * modules/posix_spawn-internal (Depends-on): Add 'open'.
614 2008-10-02 Paolo Bonzini <bonzini@gnu.org>
616 * build-aux/bootstrap: Allow renaming bootstrap, and change the
617 name of bootstrap.conf accordingly.
619 2008-10-02 Paolo Bonzini <bonzini@gnu.org>
621 * build-aux/bootstrap: Install git-merge-changelog configuration
622 items into .gitconfig if needed.
624 2008-10-02 Paolo Bonzini <bonzini@gnu.org>
626 * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
627 git repository, and initialize/update it accordingly.
629 2008-10-02 Richard W.M. Jones <rjones@redhat.com>
631 * modules/fsync-tests: New file.
632 * tests/test-fsync.c: New file.
635 * lib/fsync.c: New file.
636 * m4/fsync.m4: New file.
637 * modules/fsync: New file.
638 * lib/unistd.in.h (fsync): New declaration.
639 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
640 GNULIB_FSYNC and HAVE_FSYNC.
641 * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
642 * MODULES.html.sh (posix_functions): Add fsync.
643 * doc/posix-functions/fsync.texi: Mention the new module.
645 2008-10-02 Jim Meyering <meyering@redhat.com>
647 fts.c: sync with similar code from coreutils' remove.c
648 * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
649 Guard also with "#if defined __linux__", since for now at least,
650 this code is Linux-kernel-specific.
652 2008-10-02 Jim Meyering <meyering@redhat.com>
655 * lib/fts.c: Remove unnecessary "defined" in cpp directive.
656 Include <sys/vfs.h>, not <sys/statfs.h>.
658 * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
659 Include <sys/vfs.h>, not <sys/statfs.h>.
661 2008-10-01 Bruno Haible <bruno@clisp.org>
663 Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
664 * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
665 (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
666 * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
667 * doc/posix-functions/posix_spawnp.texi: Likewise.
668 * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
669 whether posix_spawn actually works.
670 * m4/pipe.m4 (gl_PIPE): Likewise.
671 * modules/execute (Files): Add m4/posix_spawn.m4.
672 * modules/pipe (Files): Add m4/posix_spawn.m4.
673 Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
675 2008-10-01 Jim Meyering <meyering@redhat.com>
677 remove trailing spaces
679 * lib/poll.c (poll): Likewise.
680 * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
681 * lib/winsock.c (rpl_close): Likewise.
682 * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
683 * modules/yield: Likewise.
684 * tests/test-poll.c (connect_to_socket, poll1): Likewise.
685 * tests/test-sys_select.c (connect_to_socket): Likewise.
687 fts.c: adjust a new interface to be more generally useful
688 * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
689 (fts_build): Adjust caller.
691 2008-09-30 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
693 * modules/cond-tests: New file.
694 * tests/test-cond.c: New file.
696 2008-09-30 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
697 Bruno Haible <bruno@clisp.org>
699 * modules/cond (Dependencies): Add errno, time.
700 * lib/glthread/cond.h: Include <time.h>.
701 (gl_cond_define, gl_cond_define_initialized): Use the same definition
704 2008-09-30 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
705 Bruno Haible <bruno@clisp.org>
707 * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
709 2008-09-30 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
710 Bruno Haible <bruno@clisp.org>
712 * modules/tls-tests (Depends-on): Add thread, yield.
713 (configure.ac): Remove all checks.
714 (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
715 * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
716 gl_thread_self): Remove definitions. Include glthread/thread.h and
717 glthread/yield.h instead.
718 (test_tls): Pass an additional NULL argument to gl_thread_join.
720 2008-09-30 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
721 Bruno Haible <bruno@clisp.org>
723 * modules/lock-tests (Depends-on): Add thread, yield.
724 (configure.ac): Remove all checks.
725 (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
726 * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
727 gl_thread_self): Remove definitions. Include glthread/thread.h and
728 glthread/yield.h instead.
729 (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
730 additional NULL argument to gl_thread_join.
732 2008-09-30 Bruno Haible <bruno@clisp.org>
734 Fix the Win32 implementation of the 'thread' module.
735 * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
737 (gl_thread_self): Invoke gl_thread_self_func.
738 (gl_thread_self_func): New declaration.
739 * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
740 (do_init_self_key, init_self_key): New functions.
741 (struct gl_thread_struct): Renamed from 'struct thread_extra'.
743 (running_threads, running_lock): Remove variables.
744 (get_current_thread_handle): New function.
745 (gl_thread_self_func, wrapper_func, glthread_create_func,
746 glthread_join_func, gl_thread_exit_func): Largely rewritten and
749 2008-09-30 Bruno Haible <bruno@clisp.org>
751 * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
754 2008-09-30 Jim Meyering <meyering@redhat.com>
756 fts.m4: correct the test for statfs.f_type
757 * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
758 when checking for statfs.f_type.
760 2008-09-15 Simon Josefsson <simon@josefsson.org>
762 tests: avoid some compiler warnings
763 * tests/test-memchr.c (main): Pass NULL indirectly.
764 * tests/test-getdate.c (main): Remove unused variable 'ret'.
766 2008-09-29 Ondřej Vašík <ovasik@redhat.com>
768 getdate.y: disallow countable dayshifts like "4 yesterday ago"
769 * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
770 exactly specified dayshifts.
771 (dayshift): New rule.
773 (relative_time_table) [tomorrow, yesterday, today, now]:
774 Use tDAY_SHIFT in place of tDAY_UNIT.
775 * tests/test-getdate.c: Add tests for now-disallowed countable
776 dayshifts, e.g., "4 yesterday ago".
778 2008-09-29 Bruno Haible <bruno@clisp.org>
780 * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
781 * tests/test-posix_spawn1.in.sh: Renamed from
782 tests/test-posix_spawn.in.sh.
783 * tests/test-posix_spawn2.c: New file.
784 * tests/test-posix_spawn2.in.sh: New file.
785 * modules/posix_spawnp-tests (Files): Update.
786 (Makefile.am): Update. Add test-posix_spawn2 to the tests.
788 2008-09-29 Bruno Haible <bruno@clisp.org>
790 Propagate effects of putenv/setenv/unsetenv to child processes.
791 * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
792 * lib/pipe.c (create_pipe): Likewise.
794 2008-09-29 Bruno Haible <bruno@clisp.org>
796 Enable use of shell scripts as executables in mingw.
797 * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
798 run the program as a shell script.
799 * lib/pipe.c (create_pipe): Likewise.
800 * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
803 2008-09-29 Eric Blake <ebb9@byu.net>
805 * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
807 2008-08-24 Paolo Bonzini <bonzini@gnu.org>
809 * doc/posix-functions/accept.texi: Update mingw problems.
810 * doc/posix-functions/bind.texi: Update mingw problems.
811 * doc/posix-functions/close.texi: Update mingw problems.
812 * doc/posix-functions/connect.texi: Update mingw problems.
813 * doc/posix-functions/getpeername.texi: Update mingw problems.
814 * doc/posix-functions/getsockname.texi: Update mingw problems.
815 * doc/posix-functions/getsockopt.texi: Update mingw problems.
816 * doc/posix-functions/ioctl.texi: Update mingw problems.
817 * doc/posix-functions/listen.texi: Update mingw problems.
818 * doc/posix-functions/recv.texi: Update mingw problems.
819 * doc/posix-functions/recvfrom.texi: Update mingw problems.
820 * doc/posix-functions/select.texi: Update mingw problems.
821 * doc/posix-functions/send.texi: Update mingw problems.
822 * doc/posix-functions/sendto.texi: Update mingw problems.
823 * doc/posix-functions/setsockopt.texi: Update mingw problems.
824 * doc/posix-functions/socket.texi: Update mingw problems.
826 2008-09-29 Paolo Bonzini <bonzini@gnu.org>
827 Bruno Haible <bruno@clisp.org>
829 * lib/sys_select.in.h: Include sys/time.h.
830 * m4/sys_select.h.m4: Test that struct timeval is fully defined.
831 * modules/sys_select: Depend on sys_time.
832 * tests/test-sys_select.c: Test that sys/select.h defines struct
835 2008-09-29 Bruno Haible <bruno@clisp.org>
837 * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
838 * lib/sys_select.in.h: Likewise.
840 2008-09-29 Bruno Haible <bruno@clisp.org>
842 * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
844 2008-09-29 Bruno Haible <bruno@clisp.org>
846 * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
847 Set LIBSOCKET instead of augmenting LIBS.
848 * modules/sockets (Link): New section.
849 * modules/sockets-tests (test_sockets_LDADD): New variable.
850 * modules/sys_select-tests (test_sys_select_LDADD): New variable.
851 * modules/poll-tests (test_poll_LDADD): New variable.
852 * NEWS: Document the change.
854 2008-09-29 Bruno Haible <bruno@clisp.org>
856 * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
857 * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
858 ARPA_INET_H directly.
859 * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
861 2008-09-28 Bruno Haible <bruno@clisp.org>
863 * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
864 from gl_HEADER_SYS_SOCKET.
865 (gl_HEADER_SYS_SOCKET): Invoke it.
866 * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
868 2008-09-28 Bruno Haible <bruno@clisp.org>
870 * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
871 * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
874 2008-09-28 Bruno Haible <bruno@clisp.org>
876 Override open more carefully.
877 * lib/open.c (orig_open): New function.
878 (rpl_open): Use orig_open instead of open.
879 * lib/fcntl.in.h: Add special invocation convention.
880 * m4/open.m4 (gl_PREREQ_OPEN): New macro.
881 (gl_FUNC_OPEN): Invoke it.
883 Override freopen more carefully.
884 * lib/freopen.c (orig_freopen): New function.
885 (rpl_freopen): Use orig_freopen instead of freopen.
886 * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
887 (gl_FUNC_FREOPEN): Invoke it.
889 Override fopen more carefully.
890 * lib/fopen.c (orig_fopen): New function.
891 (rpl_fopen): Use orig_fopen instead of fopen.
892 * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
893 (gl_FUNC_FOPEN): Invoke it.
894 Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
896 2008-09-28 Bruno Haible <bruno@clisp.org>
898 * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
901 2008-09-28 Bruno Haible <bruno@clisp.org>
903 * tests/test-sigaction.c (handler, main): Disable the check whether
904 SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
905 glibc systems with LinuxThreads.
907 2008-09-28 Bruno Haible <bruno@clisp.org>
909 * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
911 * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
913 * lib/fcntl.in.h (open): Likewise.
914 Reported by Rainer Tammer <tammer@tammer.net>.
916 2008-09-28 Bruno Haible <bruno@clisp.org>
918 * modules/posix_spawnp-tests: New file.
919 * tests/test-posix_spawn.c: New file.
920 * tests/test-posix_spawn.in.sh: New file.
922 New module 'posix_spawnp'.
923 * modules/posix_spawnp: New file.
924 * lib/spawnp.c: New file, from GNU libc with modifications.
925 * doc/posix-functions/posix_spawnp.texi: Mention the new module.
927 New module 'posix_spawn'.
928 * modules/posix_spawn: New file.
929 * lib/spawn.c: New file, from GNU libc with modifications.
930 * doc/posix-functions/posix_spawn.texi: Mention the new module.
932 New module 'posix_spawnattr_destroy'.
933 * modules/posix_spawnattr_destroy: New file.
934 * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
935 * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
938 New module 'posix_spawnattr_setsigmask'.
939 * modules/posix_spawnattr_setsigmask: New file.
940 * lib/spawnattr_setsigmask.c: New file, from GNU libc with
942 * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
945 New module 'posix_spawnattr_getsigmask'.
946 * modules/posix_spawnattr_getsigmask: New file.
947 * lib/spawnattr_getsigmask.c: New file, from GNU libc with
949 * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
952 New module 'posix_spawnattr_setsigdefault'.
953 * modules/posix_spawnattr_setsigdefault: New file.
954 * lib/spawnattr_setdefault.c: New file, from GNU libc with
956 * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
959 New module 'posix_spawnattr_getsigdefault'.
960 * modules/posix_spawnattr_getsigdefault: New file.
961 * lib/spawnattr_getdefault.c: New file, from GNU libc with
963 * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
966 New module 'posix_spawnattr_setschedpolicy'.
967 * modules/posix_spawnattr_setschedpolicy: New file.
968 * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
970 * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
973 New module 'posix_spawnattr_getschedpolicy'.
974 * modules/posix_spawnattr_getschedpolicy: New file.
975 * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
977 * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
980 New module 'posix_spawnattr_setschedparam'.
981 * modules/posix_spawnattr_setschedparam: New file.
982 * lib/spawnattr_setschedparam.c: New file, from GNU libc with
984 * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
987 New module 'posix_spawnattr_getschedparam'.
988 * modules/posix_spawnattr_getschedparam: New file.
989 * lib/spawnattr_getschedparam.c: New file, from GNU libc with
991 * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
994 New module 'posix_spawnattr_setpgroup'.
995 * modules/posix_spawnattr_setpgroup: New file.
996 * lib/spawnattr_setpgroup.c: New file, from GNU libc with
998 * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
1001 New module 'posix_spawnattr_getpgroup'.
1002 * modules/posix_spawnattr_getpgroup: New file.
1003 * lib/spawnattr_getpgroup.c: New file, from GNU libc with
1005 * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
1008 New module 'posix_spawnattr_setflags'.
1009 * modules/posix_spawnattr_setflags: New file.
1010 * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
1011 * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
1014 New module 'posix_spawnattr_getflags'.
1015 * modules/posix_spawnattr_getflags: New file.
1016 * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
1017 * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
1020 New module 'posix_spawnattr_init'.
1021 * modules/posix_spawnattr_init: New file.
1022 * lib/spawnattr_init.c: New file, from GNU libc with modifications.
1023 * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
1026 New module 'posix_spawn_file_actions_destroy'.
1027 * modules/posix_spawn_file_actions_destroy: New file.
1028 * lib/spawn_faction_destroy.c: New file, from GNU libc with
1030 * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
1033 New module 'posix_spawn_file_actions_addopen'.
1034 * modules/posix_spawn_file_actions_addopen: New file.
1035 * lib/spawn_faction_addopen.c: New file, from GNU libc with
1037 * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
1040 New module 'posix_spawn_file_actions_adddup2'.
1041 * modules/posix_spawn_file_actions_adddup2: New file.
1042 * lib/spawn_faction_adddup2.c: New file, from GNU libc with
1044 * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
1047 New module 'posix_spawn_file_actions_addclose'.
1048 * modules/posix_spawn_file_actions_addclose: New file.
1049 * lib/spawn_faction_addclose.c: New file, from GNU libc with
1051 * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
1054 New module 'posix_spawn_file_actions_init'.
1055 * modules/posix_spawn_file_actions_init: New file.
1056 * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
1057 * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
1060 New module 'posix_spawn-internal'.
1061 * modules/posix_spawn-internal: New file.
1062 * lib/spawn_int.h: New file, from GNU libc with modifications.
1063 * lib/spawni.c: New file, from GNU libc with modifications.
1064 * m4/posix_spawn.m4: New file.
1067 * modules/spawn: New file.
1068 * lib/spawn.in.h: New file, from GNU libc with modifications.
1069 * m4/spawn_h.m4: New file.
1070 * doc/posix-headers/spawn.texi: Mention the new module.
1072 2008-09-28 Bruno Haible <bruno@clisp.org>
1074 * modules/sched-tests: New file.
1075 * tests/test-sched.c: New file.
1078 * modules/sched: New file.
1079 * lib/sched.in.h: New file.
1080 * m4/sched_h.m4: New file.
1081 * doc/posix-headers/sched.texi: Mention the new module.
1083 2008-09-27 Eric Blake <ebb9@byu.net>
1085 Fix previous patch, and tweak references to $0.
1086 * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
1087 (func_version, func_gnulib_dir): Don't call this program
1089 (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
1090 with using $0 in function.
1091 * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
1092 (func_fatal_error): Reuse the name the user invoked us with.
1094 2008-09-27 Bruno Haible <bruno@clisp.org>
1096 * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
1097 (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
1098 (gl_ICONV_H): Not here.
1099 * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
1100 instead of assigning ICONV_H directly.
1102 * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
1103 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
1106 2008-09-27 Bruno Haible <bruno@clisp.org>
1108 * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
1109 * modules/arpa_inet (Depends-on): Add link-warning.
1110 (Makefile.am): Insert the definition of GL_LINK-WARNING.
1111 * modules/unistd (Makefile.am): Likewise.
1113 2008-09-26 Bruno Haible <bruno@clisp.org>
1115 * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
1117 (func_version): Essentially copied from gnulib-tool.
1118 (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
1119 func_readlink): Copied from gnulib-tool.
1121 2008-09-26 Bruno Haible <bruno@clisp.org>
1123 * gnulib-tool (func_version): Change directory to $gnulib_dir before
1124 invoking git-version-gen.
1126 2008-09-26 Bruno Haible <bruno@clisp.org>
1128 * posix-modules: Update to directory names changed on 2008-01-19.
1129 Remove commas in output before splitting into words. No more need to
1130 avoid 'ftruncate' since 2007-02-19.
1132 2008-09-26 Bruno Haible <bruno@clisp.org>
1134 * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
1136 2008-09-26 Bruno Haible <bruno@clisp.org>
1138 * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
1139 * modules/fwriteerror (Depends-on): Add errno.
1141 2008-09-26 Bruno Haible <bruno@clisp.org>
1143 * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
1144 * tests/test-vc-list-files-cvs.sh: Likewise.
1146 2008-09-26 Bruno Haible <bruno@clisp.org>
1148 * doc/posix-headers/sys_resource.texi: Reorder items.
1150 2008-09-26 Jim Meyering <meyering@redhat.com>
1152 fts: tweak inode comparison function
1153 * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
1154 inode numbers, as documented.
1156 fts: sort dirent entries on inode number before traversing
1157 This avoids a quadratic, seek-related performance penalty when
1158 operating on a directory containing many entries (measurable at 10k;
1159 3.5 hours at 2 million entries with a cold cache) on certain types
1160 of file systems, including ext3 and ext4, but not tmpfs.
1161 * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
1162 (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
1163 (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
1164 (fs_handles_readdir_ordered_dirents_efficiently): New function.
1165 (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
1166 (fts_build): Set the stat.st_ino member from D_INO.
1167 If it is likely to be useful, sort dirent entries on inode number.
1169 * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
1170 and the struct statfs.f_type member.
1171 * modules/fts (Depends-on): Add d-ino.
1173 2008-09-26 Bruno Haible <bruno@clisp.org>
1175 * modules/sigpipe-die (Depends-on): Add sigpipe.
1177 * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
1178 putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
1179 and GNULIB_STDIO_H_SIGPIPE are set.
1180 * lib/stdio-write.c: New file.
1181 * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
1182 GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
1183 GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
1184 REPLACE_STDIO_WRITE_FUNCS.
1185 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
1186 GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
1187 GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
1188 GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
1189 * modules/stdio (Files): Add lib/stdio-write.c.
1190 (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
1191 GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
1192 GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
1193 GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
1194 * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
1195 REPLACE_FPRINTF_POSIX.
1196 * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
1197 REPLACE_PRINTF_POSIX.
1198 * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
1199 REPLACE_VFPRINTF_POSIX.
1200 * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
1201 REPLACE_VPRINTF_POSIX.
1202 * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
1204 * doc/posix-functions/fputc.texi: Likewise.
1205 * doc/posix-functions/fputs.texi: Likewise.
1206 * doc/posix-functions/fwrite.texi: Likewise.
1207 * doc/posix-functions/printf.texi: Likewise.
1208 * doc/posix-functions/putc.texi: Likewise.
1209 * doc/posix-functions/putchar.texi: Likewise.
1210 * doc/posix-functions/puts.texi: Likewise.
1211 * doc/posix-functions/vfprintf.texi: Likewise.
1212 * doc/posix-functions/vprintf.texi: Likewise.
1214 * modules/safe-write (Depends-on): Add write.
1216 * modules/sigpipe-tests: New file.
1217 * tests/test-sigpipe.c: New file.
1218 * tests/test-sigpipe.sh: New file.
1220 * modules/write: New file.
1221 * lib/unistd.in.h: Include <sys/types.h>.
1222 (write): New declaration.
1223 * lib/write.c: New file.
1224 * m4/write.m4: New file.
1225 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
1226 GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
1227 * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
1228 GNULIB_WRITE, REPLACE_WRITE.
1229 * doc/posix-functions/write.texi: Mention the write, sigpipe modules
1230 and the SIGPIPE issue.
1232 * lib/signal.in.h (SIGPIPE): Define to a replacement value.
1233 (raise): New declaration.
1234 * lib/sigprocmask.c (SIGPIPE_handler): New variable.
1235 (ext_signal): New function.
1236 (rpl_raise): New function.
1237 * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
1238 GNULIB_SIGNAL_H_SIGPIPE.
1239 * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
1240 * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
1242 * modules/sigpipe: New file.
1243 * m4/sigpipe.m4: New file.
1245 2008-09-25 Derek Price <derek@ximbiot.com>
1246 Bruno Haible <bruno@clisp.org>
1248 * gnulib-tool (func_import): Report all license incompatibilities, not
1251 2008-09-25 Bruno Haible <bruno@clisp.org>
1253 * gnulib-tool (func_import): When computing the edits, consider not
1254 only the Makefile.ams that exist but also those that will be generated.
1256 2008-09-25 Simon Josefsson <simon@josefsson.org>
1258 * modules/sys_select-tests (Depends-on): Remove sys_select itself,
1259 fixes gnulib-tool --test warning about duplicate dependency.
1261 2008-09-25 Bruno Haible <bruno@clisp.org>
1263 * gnulib-tool: Don't ask the user to perform edits in the generated
1265 (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
1266 apply to the Makefile.am being generated.
1267 (func_emit_tests_Makefile_am): Execute edits that apply to the
1268 Makefile.am being generated.
1269 (func_import): Setup list of Makefile.am edits before emitting the
1270 Makefile.ams, not at the end.
1271 (func_create_testdir): Update.
1272 Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
1274 2008-09-25 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
1276 * gnulib-tool (func_import): Store the --tests-base option in the
1277 comment in gnulib-cache.m4.
1279 2008-09-24 Paolo Bonzini <bonzini@gnu.org>
1281 * NEWS: Document increased portability that sys_select now provides.
1283 * lib/sys_select.in.h: Install select wrapper.
1284 * lib/sys_socket.in.h: Use more descriptive name when there is no
1286 * lib/winsock-select.c: New.
1287 * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
1288 Require gl_HEADER_SYS_SOCKET.
1289 * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
1290 * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
1291 * tests/test-sys_select.c: Add functional tests.
1293 2008-09-24 Eric Blake <ebb9@byu.net>
1295 open, fopen: close fd leak in last patch
1296 * lib/open.c (rpl_open): Close fd before returning error.
1297 * lib/fopen.c (rpl_fopen): Close fd before returning error.
1298 * doc/posix-functions/open.texi (open): Document that Irix also
1300 * doc/posix-functions/fopen.texi (fopen): Likewise.
1301 Reported by Paolo Bonzini.
1303 2008-09-24 Bruno Haible <bruno@clisp.org>
1305 Ensure that a filename ending in a slash cannot be used to access a
1307 * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
1308 to check whether it's really a directory.
1309 * lib/fopen.c: Include fcntl.h, unistd.h.
1310 (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
1312 * modules/fopen (Depends-on): Add unistd.
1313 * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
1314 * tests/test-fopen.c (main): Likewise.
1315 * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
1316 * doc/posix-functions/fopen.texi: Likewise.
1317 Reported by Eric Blake.
1319 2008-09-23 Eric Blake <ebb9@byu.net>
1321 c-stack: avoid compiler optimizations when provoking overflow
1322 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
1323 recursion harder to optimize, to ensure a stack overflow occurs.
1324 * tests/test-c-stack.c (recurse): Likewise.
1325 Borrowed from libsigsegv.
1327 c-stack: work around Irix sigaltstack bug
1328 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
1329 whether sigaltstack uses wrong end of stack_t (copied in part from
1331 * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
1332 Irix bug, without requiring an over-allocation.
1333 * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
1336 fopen: document mingw bug on directories
1337 * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
1338 not allowing a stream visiting a directory, even though reading
1339 from such a stream is not portable.
1341 2008-09-23 Paolo Bonzini <bonzini@gnu.org>
1343 * lib/poll.c: Rewrite.
1344 * modules/poll: Depend on alloca.
1346 2008-09-23 Paolo Bonzini <bonzini@gnu.org>
1348 * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
1349 instead define prototypes for a full set of wrappers. Ensure
1350 that Cygwin does not use the compatibility code, which is only
1352 * lib/winsock.c: New.
1353 * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
1354 * modules/sys_socket: Add lib/winsock.c.
1356 * modules/poll-tests: Add errno and perror.
1357 * tests/test-poll.c: Use ioctl, not ioctlsocket.
1359 2008-09-23 Paolo Bonzini <bonzini@gnu.org>
1361 * tests/test-poll.c: Downgrade minimum needed Winsock version.
1363 2008-09-23 Bruno Haible <bruno@clisp.org>
1365 * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
1366 * doc/glibc-functions/*: Likewise.
1368 2008-09-23 Simon Josefsson <simon@josefsson.org>
1370 * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
1373 2008-09-22 Eric Blake <ebb9@byu.net>
1374 Bruno Haible <bruno@clisp.org>
1376 vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
1377 * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
1378 supply %A but mishandle pseudo-NaN.
1379 Reported by Simon Josefsson.
1381 2008-09-21 Bruno Haible <bruno@clisp.org>
1383 * tests/test-lock.c (main): Tweak skip message.
1384 * tests/test-tls.c (main): Likewise.
1386 2008-09-21 Bruno Haible <bruno@clisp.org>
1388 * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
1389 whether 'struct sigaction' has sa_sigaction here...
1390 (gl_PREREQ_SIG_HANDLER_H): ... not here.
1391 (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
1393 2008-09-21 Bruno Haible <bruno@clisp.org>
1395 * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
1397 (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
1398 strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
1400 (Support for obsolete systems lacking POSIX:2001): New section.
1401 (String handling <string.h>): Move strdup to the new section.
1402 Suggested by Simon Josefsson and Paolo Bonzini.
1404 2008-09-21 Bruno Haible <bruno@clisp.org>
1406 * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
1407 exponents in %e and %g results on 'long double'. Needed for mingw's
1408 improved *printf functions.
1409 * tests/test-vasprintf-posix.c (test_function): Likewise.
1410 * tests/test-snprintf-posix.h (test_function): Likewise.
1411 * tests/test-sprintf-posix.h (test_function): Likewise.
1412 Reported by Eric Blake.
1414 2008-09-21 Bruno Haible <bruno@clisp.org>
1416 * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
1417 * tests/test-sprintf-posix.h (test_function): Likewise.
1419 2008-09-21 Bruno Haible <bruno@clisp.org>
1421 * modules/getpass (Depends-on): Add strdup-posix.
1423 New module 'strdup-posix'.
1424 * modules/strdup-posix: New file.
1425 * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
1426 * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
1427 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
1429 * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
1430 * doc/posix-functions/strdup.texi: Mention module strdup-posix.
1431 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
1434 * modules/strdup (Depends-on): Remove malloc-posix.
1436 2008-09-20 Bruno Haible <bruno@clisp.org>
1438 * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
1441 2008-09-20 Bruno Haible <bruno@clisp.org>
1443 Ensure that wint_t gets defined on IRIX 5.3.
1444 * lib/wchar.in.h (wint_t): Define if not defined by the system.
1445 * lib/wctype.in.h (wint_t): Likewise.
1446 (__wctype_wint_t): Remove type.
1447 (isw*): Use wint_t instead of __wctype_wint_t.
1448 * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
1449 * modules/wchar (Files): Add m4/wint_t.m4.
1450 (Makefile.am): Substitute HAVE_WINT_T.
1451 * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
1452 * tests/test-wctype.c: Check that wint_t is defined.
1453 * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
1454 * doc/posix-headers/wctype.texi: Likewise.
1455 Reported by Tom G. Christensen <tgc@jupiterrise.com>.
1457 2008-09-18 Bruno Haible <bruno@clisp.org>
1459 * gnulib-tool (func_exit): Update comment.
1461 2008-09-18 Simon Josefsson <simon@josefsson.org>
1463 * modules/getaddrinfo (Depends-on): Remove strdup, this module
1464 assumes strdup exists and does not depend on strdup to return
1465 ENOMEM on out of memory conditions.
1467 2008-09-18 Bruno Haible <bruno@clisp.org>
1469 * lib/vasnprintf.c (VASNPRINTF): When printing ±0.0L in
1470 NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
1471 digits for the exponent.
1473 2008-09-18 Jim Meyering <meyering@redhat.com>
1474 Bruno Haible <bruno@clisp.org>
1476 * lib/vasnprintf.c (decimal_point_char): Define also if
1477 NEED_PRINTF_INFINITE_LONG_DOUBLE.
1479 2008-09-16 Bruno Haible <bruno@clisp.org>
1480 and Eric Blake <ebb9@byu.net>
1482 vasnprintf: support Irix 5.3
1483 * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
1484 that mishandle long double infinity.
1485 Reported by Tom G. Christensen.
1487 2008-09-16 Bruno Haible <bruno@clisp.org>
1489 * doc/glibc-functions/scandir.texi: Mention the function is missing on
1491 * doc/glibc-functions/alphasort.texi: Likewise.
1492 Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
1494 2008-09-16 Jim Meyering <meyering@redhat.com>
1496 posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
1497 * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
1498 a umask modification leak out of a subshell. Otherwise, the
1499 opensolaris /bin/sh would be accepted and thus cause unwarranted
1500 failures in the coreutils test suite.
1502 2008-09-16 Paolo Bonzini <bonzini@gnu.org>
1504 * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
1507 2008-09-16 Jim Meyering <meyering@redhat.com>
1509 avoid spurious test failure when library is built without ACL support
1510 * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
1511 * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
1512 * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
1513 * tests/test-copy-acl.sh: Likewise.
1515 2008-09-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1517 * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
1518 based on character occurrence counts.
1520 2008-09-15 Eric Blake <ebb9@byu.net>
1522 tests: avoid some compiler warnings
1523 * tests/test-memchr.c (main): Pass NULL indirectly.
1524 * tests/test-closein.c (main): Avoid unused variable.
1526 2008-09-15 Bruno Haible <bruno@clisp.org>
1528 * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
1529 are missing on OpenBSD 4.0 individually.
1530 Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
1532 2008-09-15 Bruno Haible <bruno@clisp.org>
1534 * doc/posix-headers/errno.texi: Mention the Cygwin problem.
1535 * doc/posix-functions/strerror.texi: Mention also Cygwin.
1536 * doc/posix-functions/perror.texi: Likewise.
1537 * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
1539 Reported by Eric Blake.
1541 * lib/errno.in.h: Use replacement values >= 2000.
1542 Reported by Eric Blake.
1544 2008-09-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1546 * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
1547 (EARLY_ABORT): Return true when the edit_count has grown too beyond the
1549 (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
1550 compareseq was aborted.
1552 2008-09-14 Bruno Haible <bruno@clisp.org>
1554 * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
1556 (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
1557 (fstrcmp_bounded): Simplify result computation accordingly.
1559 2008-09-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1561 * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
1562 (fstrcmp): Define in terms of fstrcmp_bounded.
1563 * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
1564 lower_bound argument.
1565 Return quickly if the result is certainly < lower_bound.
1566 * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
1568 2008-09-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1570 * lib/diffseq.h (EARLY_ABORT): New macro.
1571 (compareseq): Change return type to bool. Return true when EARLY_ABORT
1574 2008-09-14 Bruno Haible <bruno@clisp.org>
1576 * modules/perror-tests: New file.
1577 * tests/test-perror.sh: New file.
1578 * tests/test-perror.c: New file.
1580 New module 'perror'.
1581 * lib/stdio.in.h (perror): New declaration.
1582 * lib/perror.c: New file.
1583 * m4/perror.m4: New file.
1584 * modules/perror: New file.
1585 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
1586 * doc/posix-functions/perror.texi: Mention the perror module.
1587 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
1589 * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
1592 2008-09-14 Bruno Haible <bruno@clisp.org>
1594 * modules/stdio (Makefile.am): Reorder to match the order in
1596 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
1598 2008-09-13 Bruno Haible <bruno@clisp.org>
1600 * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
1602 2008-09-13 Bruno Haible <bruno@clisp.org>
1604 Extend strerror to cover the added errno values.
1605 * lib/strerror.c: Include errno.h and winsock2.h if it exists.
1606 (rpl_strerror): Provide error messages for the added errno values and
1607 for the WSA* values.
1608 * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
1609 (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
1611 (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
1612 * modules/strerror (Depends-on): Add errno.
1613 * doc/posix-functions/strerror.texi: Document the change.
1614 * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
1617 2008-09-13 Bruno Haible <bruno@clisp.org>
1619 * modules/EOVERFLOW: Remove file.
1620 * m4/eoverflow.m4: Remove file.
1621 * modules/EOVERFLOW-tests: Remove file.
1622 * tests/test-EOVERFLOW.c: Remove file.
1623 * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
1624 * modules/ftell (Depends-on): Likewise.
1625 * modules/getdelim (Depends-on): Likewise.
1626 * modules/getugroups (Depends-on): Likewise.
1627 * modules/poll (Depends-on): Likewise.
1628 * modules/snprintf (Depends-on): Likewise.
1629 * modules/sprintf-posix (Depends-on): Likewise.
1630 * modules/vasnprintf (Depends-on): Likewise.
1631 * modules/vasprintf (Depends-on): Likewise.
1632 * modules/vfprintf-posix (Depends-on): Likewise.
1633 * modules/vsnprintf (Depends-on): Likewise.
1634 * modules/vsprintf-posix (Depends-on): Likewise.
1635 * modules/xvasprintf (Depends-on): Likewise.
1636 * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
1637 * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
1638 * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
1639 * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
1640 * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
1641 * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
1642 * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
1643 * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
1644 * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
1645 * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
1646 * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
1647 * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
1648 * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
1649 * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
1650 * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
1651 * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
1652 * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
1653 * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
1654 * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
1655 * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
1656 * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
1657 * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
1658 * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
1659 * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
1660 * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
1661 * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
1662 * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
1663 * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
1664 * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
1665 * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
1666 * MODULES.html.sh: Remove EOVERFLOW.
1667 * NEWS: Mention the change.
1669 2008-09-13 Bruno Haible <bruno@clisp.org>
1671 * modules/errno-tests: New file.
1672 * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
1674 * lib/errno.in.h: New file.
1675 * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
1676 * modules/errno: New file.
1677 * doc/posix-headers/errno.texi: Update documentation.
1678 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
1680 2008-09-13 Bruno Haible <bruno@clisp.org>
1682 * tests/test-poll.c: Use #if for native Windows, rather than testing
1685 2008-09-13 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
1686 Bruno Haible <bruno@clisp.org>
1688 * lib/glob.c: Don't include <pwd.h> on native Windows.
1689 (WINDOWS32): New macro.
1690 (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
1692 2008-09-13 Bruno Haible <bruno@clisp.org>
1694 * lib/glthread/cond.h [USE_SOLARIS_THREADS]
1695 (ETIMEDOUT): Remove macro.
1696 (glthread_cond_timedwait_multithreaded): New declaration.
1697 (glthread_cond_timedwait): Use it.
1698 * lib/glthread/cond.c [USE_SOLARIS_THREADS]
1699 (glthread_cond_timedwait_multithreaded): New function.
1701 2008-09-12 Paolo Bonzini <bonzini@gnu.org>
1703 * modules/poll-tests: Do not check for io.h.
1704 * tests/test-poll.c: Check for __MSVCRT__ instead.
1706 2008-09-12 Paolo Bonzini <bonzini@gnu.org>
1708 * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
1709 * modules/poll-tests: Add inet_pton, stdbool, sockets.
1710 * tests/test-poll.c: Use them. Use _pipe on Windows.
1712 2008-09-12 Paolo Bonzini <bonzini@gnu.org>
1714 * modules/poll-tests: New.
1715 * tests/test-poll.c: New.
1717 2008-09-12 Eric Blake <ebb9@byu.net>
1719 frexp: test for NetBSD failure on -0.0
1720 * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
1721 not all, bugs from NetBSD 3.0 have been fixed.
1722 * doc/posix-functions/frexp.texi (frexp): Document bug.
1723 Reported by Thomas Klausner.
1725 signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
1726 * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
1728 Reported by Jonathan C. Patschke <jp@centtech.com>.
1730 2008-09-11 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
1732 * lib/glthread/cond.h: Use dummy implementation also if
1735 2008-09-11 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
1737 * modules/fnmatch-posix (License): Change to LGPLv2+.
1738 * modules/fnmatch-gnu (License): Likewise.
1740 2008-09-11 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
1742 * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
1744 2008-09-11 Jim Meyering <meyering@redhat.com>
1746 * users.txt: Add gtk-vnc.
1748 2008-09-08 Simon Josefsson <simon@josefsson.org>
1750 * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
1753 * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
1754 required for 16-bit and 8-bit rotates.
1755 * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
1756 rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
1757 UINT8_MAX instead of hard-coded constants.
1758 Suggested by Paul Eggert.
1760 2008-09-07 Bruno Haible <bruno@clisp.org>
1762 * tests/test-striconveh.c (main): Check behaviour when converting from
1765 Make striconveh work better with stateful encodings.
1766 * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
1767 that iconv does not increment the inptr when returning -1/EINVAL.
1769 2008-09-07 Bruno Haible <bruno@clisp.org>
1771 * build-aux/config.rpath: Update according to libtool-2.2.6.
1772 * build-aux/config.libpath: Likewise.
1774 2008-09-06 Bruno Haible <bruno@clisp.org>
1776 * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
1777 * lib/freadptr.c (freadptr): Likewise.
1778 * lib/freadseek.c (freadptrinc): Likewise.
1779 Reported by Simon Josefsson.
1781 2008-09-06 Bruno Haible <bruno@clisp.org>
1783 * modules/freadptr (License): Change to LGPLv2+.
1784 * modules/freadseek (License): Likewise.
1785 Suggested by Eric Blake.
1787 * modules/memchr2 (License): Change to LGPLv2+.
1788 Approved by Eric Blake.
1790 2008-09-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1791 Bruno Haible <bruno@clisp.org>
1793 Make gnulib-tool work with native 'sed' on AIX.
1794 * gnulib-tool (sed_noop): New variable.
1795 (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
1796 func_add_or_update, func_create_testdir): Use it to initialize sed
1798 Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
1800 2008-09-04 Albert Chin <bug-gnulib@mlists.thewrittenword.com>
1801 Bruno Haible <bruno@clisp.org>
1803 * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
1804 also works after #include directives.
1806 2008-09-04 Ondřej Vašík <ovasik@redhat.com>
1808 getdate.y: reject an out-of-range timezone value
1809 * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
1810 the range [-24...+24]. When specified with only one or two digits,
1811 * tests/test-getdate.c: Tests for the fix.
1812 * doc/getdate.texi: Document this change.
1814 2008-09-03 Bruno Haible <bruno@clisp.org>
1816 * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
1818 2008-09-02 Simon Josefsson <simon@josefsson.org>
1820 * lib/bitrotate.h (rotl64, rotr64): Add. Suggested by Bruce Korb
1821 <bruce.korb@gmail.com> with ideas from Ben Pfaff
1822 <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
1823 Blake <ebb9@byu.net>.
1825 * tests/test-bitrotate.c: Add more test vectors.
1827 2008-09-02 Eric Blake <ebb9@byu.net>
1829 vasnprintf-posix: handle large precision via %.*d
1830 * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
1831 when handling it ourselves.
1832 * tests/test-vasnprintf-posix.c (test_function): Add test.
1833 * tests/test-snprintf-posix.h (test_function): Likewise.
1834 * tests/test-sprintf-posix.h (test_function): Likewise.
1835 * tests/test-vasprintf-posix.c (test_function): Likewise.
1836 Reported by Alain Guibert.
1838 2008-09-01 Eric Blake <ebb9@byu.net>
1840 c-stack: make configure-time check more robust
1841 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
1842 successful sigaction call.
1843 Reported by Tom G. Christensen.
1845 2008-09-01 Bruno Haible <bruno@clisp.org>
1847 New module 'findprog-lgpl'.
1848 * modules/findprog-lgpl: New file.
1849 * lib/findprog-lgpl.c: New file.
1850 * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
1851 also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
1852 to decide whether to use strdup or xstrdup, concatenated_filename or
1853 xconcatenated_filename.
1855 2008-09-01 Bruno Haible <bruno@clisp.org>
1857 Split module 'concat-filename' into 'concat-filename' (LGPL) and
1858 'xconcat-filename' (GPL).
1859 * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
1860 (License): Change to LGPLv2+.
1861 * modules/xconcat-filename: New file.
1862 * lib/concat-filename.h (concatenated_filename): Change specification.
1863 (xconcatenated_filename): New declaration.
1864 * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
1865 (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
1867 * lib/xconcat-filename.c: New file.
1868 * NEWS: Mention the change.
1869 * lib/findprog.c: Include concat-filename.h, not filename.h.
1870 (find_in_path): Use xconcatenated_filename instead of
1871 concatenated_filename.
1872 * lib/javacomp.c: Include concat-filename.h, not filename.h.
1873 (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
1874 is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
1875 is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
1876 is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
1877 instead of concatenated_filename.
1878 * lib/javaexec.c: Include concat-filename.h, not filename.h.
1879 (execute_java_class): Use xconcatenated_filename instead of
1880 concatenated_filename.
1881 * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
1882 * modules/javacomp (Depends-on): Likewise.
1883 * modules/javaexec (Depends-on): Likewise.
1885 2008-09-01 Bruno Haible <bruno@clisp.org>
1887 Split module 'filename' into 'filename' and 'concat-filename'.
1888 * modules/filename: Keep only lib/filename.h.
1889 (License): Change to LGPLv2+.
1890 * modules/concat-filename: New file, extracted from modules/filename.
1891 * lib/filename.h (concatenated_filename): Remove declaration.
1892 * lib/concat-filename.h: New file, extracted from lib/filename.h.
1893 * lib/concat-filename.c: Include concat-filename.h.
1894 * NEWS: Mention the change.
1896 2008-09-01 Simon Josefsson <simon@josefsson.org>
1898 * lib/bitrotate.h (rotl8, rotr8): Add.
1900 * modules/bitrotate (configure.ac): Need
1901 AC_REQUIRE([AC_C_INLINE]).
1902 (Description): Mention stdint.h. Reported by Bruno Haible
1905 * lib/bitrotate.h (rotr16, rotl16): Fix mask value. Reported by
1906 Paolo Bonzini <bonzini@gnu.org>.
1908 2008-08-31 Bruno Haible <bruno@clisp.org>
1910 Assume Solaris specific bi-arch conventions on Solaris systems.
1911 * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
1912 mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
1913 * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
1914 work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
1915 like acl_libdirstem.
1916 (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
1918 * NEWS: Mention the change.
1919 Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
1921 2008-08-31 Jim Meyering <meyering@redhat.com>
1923 * lib/strftime.h: Add comments describing the two added arguments.
1925 remove duplicate #include directives
1926 * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
1927 * lib/putenv.c: Remove duplicate #include <stdlib.h>.
1929 2008-08-31 Bruno Haible <bruno@clisp.org>
1931 New module 'sigpipe-die'.
1932 * modules/sigpipe-die: New file.
1933 * lib/sigpipe-die.h: New file.
1934 * lib/sigpipe-die.c: New file.
1935 * MODULES.html.sh (Signal handling): Add sigpipe-die.
1937 2008-08-31 Bruno Haible <bruno@clisp.org>
1939 Don't override previously installed signal handlers.
1940 * lib/fatal-signal.c (saved_sigactions): New variable.
1941 (uninstall_handlers): Reset the signal to the saved handler, not
1942 to SIG_DFL (except when ignored).
1943 (install_handlers): Save the previous handlers.
1945 2008-08-30 Bruno Haible <bruno@clisp.org>
1947 * gnulib-tool (func_reset_sigpipe): New function.
1948 (func_get_automake_snippet, func_modules_transitive_closure,
1949 func_import): Invoke it before a join command that reads from stdin,
1950 to avoid "echo: write error: Broken pipe" error messages on stderr.
1951 Reported by Sam Steingold <sds@gnu.org>.
1953 2008-08-30 Bruno Haible <bruno@clisp.org>
1955 * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
1956 Code copied from m4/open.m4.
1957 * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
1958 access and the filename ends in a slash. Code copied from lib/open.c.
1959 * doc/posix-functions/fopen.texi: Document bug with trailing slash.
1960 * tests/test-fopen.c (main): Check against bug with trailing slash.
1962 2008-08-29 Bruno Haible <bruno@clisp.org>
1964 Avoid some "gcc -pedantic" warnings.
1965 * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
1966 * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
1967 * lib/dirent.in.h: Likewise.
1968 * lib/fcntl.in.h: Likewise.
1969 * lib/float.in.h: Likewise.
1970 * lib/iconv.in.h: Likewise.
1971 * lib/inttypes.in.h: Likewise.
1972 * lib/locale.in.h: Likewise.
1973 * lib/math.in.h: Likewise.
1974 * lib/netinet_in.in.h: Likewise.
1975 * lib/search.in.h: Likewise.
1976 * lib/signal.in.h: Likewise.
1977 * lib/stdarg.in.h: Likewise.
1978 * lib/stdint.in.h: Likewise.
1979 * lib/stdio.in.h: Likewise.
1980 * lib/stdlib.in.h: Likewise.
1981 * lib/string.in.h: Likewise.
1982 * lib/strings.in.h: Likewise.
1983 * lib/sys_select.in.h: Likewise.
1984 * lib/sys_socket.in.h: Likewise.
1985 * lib/sys_stat.in.h: Likewise.
1986 * lib/sys_time.in.h: Likewise.
1987 * lib/sysexits.in.h: Likewise.
1988 * lib/time.in.h: Likewise.
1989 * lib/unistd.in.h: Likewise.
1990 * lib/wchar.in.h: Likewise.
1991 * lib/wctype.in.h: Likewise.
1992 * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
1993 * modules/fchdir (Makefile.am): Likewise.
1994 * modules/fcntl (Makefile.am): Likewise.
1995 * modules/float (Makefile.am): Likewise.
1996 * modules/iconv_open (Makefile.am): Likewise.
1997 * modules/inttypes (Makefile.am): Likewise.
1998 * modules/locale (Makefile.am): Likewise.
1999 * modules/math (Makefile.am): Likewise.
2000 * modules/netinet_in (Makefile.am): Likewise.
2001 * modules/search (Makefile.am): Likewise.
2002 * modules/signal (Makefile.am): Likewise.
2003 * modules/stdarg (Makefile.am): Likewise.
2004 * modules/stdint (Makefile.am): Likewise.
2005 * modules/stdio (Makefile.am): Likewise.
2006 * modules/stdlib (Makefile.am): Likewise.
2007 * modules/string (Makefile.am): Likewise.
2008 * modules/strings (Makefile.am): Likewise.
2009 * modules/sys_select (Makefile.am): Likewise.
2010 * modules/sys_socket (Makefile.am): Likewise.
2011 * modules/sys_stat (Makefile.am): Likewise.
2012 * modules/sys_time (Makefile.am): Likewise.
2013 * modules/sysexits (Makefile.am): Likewise.
2014 * modules/time (Makefile.am): Likewise.
2015 * modules/unistd (Makefile.am): Likewise.
2016 * modules/wchar (Makefile.am): Likewise.
2017 * modules/wctype (Makefile.am): Likewise.
2018 Reported by Reuben Thomas <rrt@sc3d.org>.
2020 2008-08-29 Bruno Haible <bruno@clisp.org>
2022 * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
2025 2008-08-29 Simon Josefsson <simon@josefsson.org>
2027 * MODULES.html.sh (Misc): Add bitrotate.
2029 * modules/bitrotate: New file.
2031 * lib/bitrotate.h: New file.
2033 * modules/bitrotate-tests: New file.
2035 * tests/test-bitrotate.c: New file.
2037 * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
2038 on the bitrotate module.
2040 * lib/arctwo.c: Use new bitrotate module.
2042 2008-08-29 Jim Meyering <meyering@redhat.com>
2044 bootstrap: merge changes from coreutils
2045 * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
2046 of copied files. Remove a kludge, now that this is fixed.
2047 * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
2048 * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
2049 * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
2051 2008-08-29 Bruno Haible <bruno@clisp.org>
2053 * MODULES.html.sh: Remove --cvs-urls option.
2055 2008-08-28 Jose E. Marchesi <jemarch@gnu.org> (tiny change)
2057 maint.mk: adjust to file name change
2058 * top/maint.mk: s/Makefile.cfg/cfg.mk/.
2060 2008-08-28 Jim Meyering <meyering@redhat.com>
2062 * modules/getndelim2 (License): Relicense to LGPLv2+.
2063 Approved by Richard Stallman for the version of 1995, and by
2064 Paul Eggert, Bruno Haible, Eric Blake for their contributions.
2066 2008-08-27 Paolo Bonzini <bonzini@gnu.org>
2068 * lib/getdelim.c (flockfile, funlockfile): Make all of them
2069 dummy if one is not available. Do not touch them if
2070 USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
2071 (getc_maybe_unlocked): New.
2072 * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
2074 2008-08-26 Eric Blake <ebb9@byu.net>
2076 doc/INSTALL: resync from autoconf
2077 * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
2078 (INSTALL_PRELUDE): Delete; this is done more efficiently by
2080 * install.texi [!autoconf]: ...here. Resync from autoconf.
2081 * INSTALL: Regenerate.
2082 * INSTALL.ISO: New file.
2083 * INSTALL.UTF-8: Likewise.
2085 2008-08-26 Jim Meyering <meyering@redhat.com>
2087 GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
2088 * top/GNUmakefile (_is-dist-target, _is-install-target): Make
2089 these definitions conditional, so that they may be overridden, too.
2091 2008-08-26 Bruno Haible <bruno@clisp.org>
2093 Generate INSTALL file variants with prettier quotes.
2094 * doc/Makefile (INSTALL_PRELUDE): New macro.
2096 (INSTALL.ISO, INSTALL.UTF-8): New rules.
2098 2008-08-26 Bruno Haible <bruno@clisp.org>
2100 Run makeinfo in an English locale.
2101 * doc/Makefile (MAKEINFO): New variable.
2103 2008-08-26 Bruno Haible <bruno@clisp.org>
2105 * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
2106 Suggested by Eric Blake.
2108 2008-08-25 Bruno Haible <bruno@clisp.org>
2110 * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
2112 2008-08-25 Eric Blake <ebb9@byu.net>
2114 c-stack: test that stack overflow can be caught
2115 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
2116 that platform allows handling stack overflow; at least OS/2 EMX
2117 has sigaltstack, but crashes before transferring control to
2118 handler on stack overflow.
2119 * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
2120 check for HAVE_STACK_OVERFLOW_HANDLING.
2121 Reported by Elbert Pol.
2123 2008-08-25 Bruno Haible <bruno@clisp.org>
2125 * doc/posix-functions/strftime.texi: Fix description of strftime
2128 2008-08-24 Bruno Haible <bruno@clisp.org>
2130 * tests/uniwidth/test-uc_width2.c: New file.
2131 * tests/uniwidth/test-uc_width2.sh: New file.
2132 * modules/uniwidth/width-tests (Files): Add the new files.
2133 (TESTS): Add uniwidth/test-uc_width2.sh.
2134 (TESTS_ENVIRONMENT): New variable.
2135 (check_PROGRAMS): Add test-uc_width2.
2136 (test_uc_width2_SOURCES): New variable.
2138 Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
2139 * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
2141 Reported by Alexander V. Lukyanov <lav@netis.ru>.
2143 2008-08-22 Eric Blake <ebb9@byu.net>
2145 test-lock, test-tls: mention why a test is skipped
2146 * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
2148 * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
2150 count-one-bits: relax license
2151 * modules/count-one-bits (License): Relicense to LGPLv2+.
2152 Suggested by Ludovic Courtès, approved by Ben Pfaff.
2154 2008-08-22 Andreas Schwab <schwab@suse.de>
2156 * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
2157 Remove spurious space in assignment.
2159 2008-08-21 Simon Josefsson <simon@josefsson.org>
2161 * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC. Reported by
2162 Paul Eggert <eggert@CS.UCLA.EDU>.
2164 2008-08-20 Paolo Bonzini <bonzini@gnu.org>
2166 * modules/gettext: Add m4/threadlib.m4.
2168 2008-08-19 Eric Blake <ebb9@byu.net>
2170 test-c-stack: fix compilation failure on FreeBSD 5.0
2171 * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
2172 headers before <sys/resource.h>.
2173 * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
2175 Reported by Nelson H. F. Beebe.
2177 strverscmp: migrate from "strverscmp.h" to <string.h>
2178 * modules/string (Makefile.am): Add new hooks.
2179 * modules/strverscmp (Files): Remove strverscmp.h.
2180 (Depends-on): Add string.
2181 (configure.ac): Add indicator.
2182 (Include): Mention new header.
2183 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
2185 * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
2187 * lib/strverscmp.h: Delete.
2188 * lib/string.in.h (strverscmp): Provide declaration, when needed.
2189 * tests/test-strverscmp.c (includes): Adjust client.
2190 * lib/check-version.c (includes): Likewise.
2191 * NEWS: Document the change.
2193 strverscmp: add unit test
2194 * modules/strverscmp-tests: New file.
2195 * tests/test-strverscmp.c: Likewise.
2197 2008-08-19 Simon Josefsson <simon@josefsson.org>
2199 * lib/gc-gnulib.c: Indentation cleanup. Add some comments
2200 regarding Windows crypto stuff, from Mono.
2202 2008-08-19 Adam Strzelecki <ono@java.pl> (tiny change)
2204 * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT. Try to use Intel CSP
2205 if present, for intel RND. Return error on failures.
2207 2008-08-18 Ben Pfaff <blp@gnu.org>
2209 gitlog-to-changelog: give better diagnostic for failed pipe-open
2210 * build-aux/gitlog-to-changelog: Improve error message: suggest
2211 that the version of Git may be too old.
2213 2008-08-18 Simon Josefsson <simon@josefsson.org>
2215 * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity. Use
2216 ISO 8601 format. Suggested by Greg Troxel <gdt@ir.bbn.com>.
2218 2008-08-18 Bruno Haible <bruno@clisp.org>
2220 * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
2223 2008-08-18 Bruno Haible <bruno@clisp.org>
2225 * lib/glthread/threadlib.c: Include <pthread.h>.
2227 2008-08-18 Bruno Haible <bruno@clisp.org>
2229 * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
2230 glthread_recursive_lock_* macros.
2231 * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
2234 2008-08-18 Bruno Haible <bruno@clisp.org>
2236 * lib/glthread/thread.c: Avoid forcing a context switch right after
2239 2008-08-17 Bruno Haible <bruno@clisp.org>
2241 * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
2242 * lib/glthread/thread.h: Provide Win32 specific implementation.
2243 * modules/thread (Files): Add lib/glthread/thread.c.
2244 (Depends-on): Add lock.
2245 (Makefile.am): Add glthread/thread.c to lib_SOURCES.
2247 2008-08-17 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
2250 * modules/yield: New file.
2251 * lib/glthread/yield.h: New file.
2252 * m4/yield.m4: New file.
2253 * MODULES.html.sh (Multithreading): Add yield.
2255 2008-08-17 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
2257 New module 'thread'.
2258 * modules/thread: New file.
2259 * lib/glthread/thread.h: New file.
2260 * m4/thread.m4: New file.
2261 * MODULES.html.sh (Multithreading): Add thread.
2263 2008-08-17 Bruno Haible <bruno@clisp.org>
2265 * lib/glthread/lock.h: Include <stdlib.h> always.
2266 * lib/glthread/tls.h: Likewise.
2267 * lib/glthread/cond.h: Likewise.
2269 2008-08-17 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
2272 * modules/cond: New file.
2273 * lib/glthread/cond.h: New file.
2274 * lib/glthread/cond.c: New file.
2275 * m4/cond.m4: New file.
2276 * MODULES.html.sh (Multithreading): Add cond.
2278 2008-08-16 Eric Blake <ebb9@byu.net>
2280 c-stack: fix regression on Irix 5.3 from 2008-06-21
2281 * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
2283 * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
2284 (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
2285 * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
2286 * modules/signal (Makefile.am): Use the value.
2287 * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
2288 && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
2289 * doc/posix-headers/signal.texi (signal.h): Document this
2291 * doc/posix-functions/sigaction.texi (sigaction): Likewise.
2292 Reported by Tom G. Christensen.
2294 2008-08-17 Bruno Haible <bruno@clisp.org>
2296 New module 'threadlib'.
2297 * modules/threadlib: New file.
2298 * lib/glthread/threadlib.c: New file, extracted from
2299 lib/glthread/lock.c.
2300 * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
2302 * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
2303 gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
2304 * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
2306 (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
2307 (gl_DISABLE_THREADS): Remove macro.
2308 * modules/lock (Files): Remove build-aux/config.rpath.
2309 (Depends-on): Remove havelib. Add threadlib.
2310 (configure.ac-early): Remove section.
2311 * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
2312 * modules/tls (Depends-on): Remove lock. Add threadlib.
2313 (Link): New section, copied from threadlib.
2314 * MODULES.html.sh (Multithreading): Add threadlib.
2316 2008-08-14 Bruno Haible <bruno@clisp.org>
2318 * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
2319 glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
2320 glthread_rwlock_unlock, glthread_rwlock_destroy,
2321 glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
2322 glthread_recursive_lock_destroy): Define as macros always.
2323 * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
2325 (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
2326 (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
2327 (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
2328 (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
2329 (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
2330 (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
2331 (glthread_recursive_lock_lock_func): Renamed from
2332 glthread_recursive_lock_lock.
2333 (glthread_recursive_lock_unlock_func): Renamed from
2334 glthread_recursive_lock_unlock.
2335 (glthread_recursive_lock_destroy_func): Renamed from
2336 glthread_recursive_lock_destroy.
2338 2008-08-14 Bruno Haible <bruno@clisp.org>
2340 * lib/glthread/lock.h: Renamed from lib/lock.h.
2341 * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
2342 * lib/glthread/tls.h: Renamed from lib/tls.h.
2343 * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
2344 * lib/fstrcmp.c: Update includes.
2345 * lib/strsignal.c: Update includes.
2346 * modules/lock (Files, Makefile.am): Update.
2347 (Include): Change to "glthread/lock.h".
2348 * modules/tls (Files, Makefile.am): Update.
2349 (Include): Change to "glthread/tls.h".
2350 * tests/test-lock.c: Update includes.
2351 * tests/test-tls.c: Update includes.
2352 * NEWS: Mention the renamed header files.
2354 2008-08-11 Jim Meyering <meyering@redhat.com>
2356 * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
2358 2008-08-11 Eric Blake <ebb9@byu.net>
2360 test-c-stack: avoid C99-ism
2361 * tests/test-c-stack.c (main): Fix whitespace, move declaration
2363 Reported by Alain Guibert.
2365 2008-08-10 Jim Meyering <meyering@redhat.com>
2367 ensure that return value of uinttostr et al are not ignored
2368 * lib/inttostr.h (__GNUC_PREREQ): Define.
2369 (__attribute_warn_unused_result__): Define.
2370 (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
2372 2008-08-07 Paolo Bonzini <bonzini@gnu.org>
2374 * lib/lock.c (glthread_recursive_lock_init_multithreaded)
2375 [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
2377 2008-08-07 Jim Meyering <meyering@redhat.com>
2379 * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
2381 * modules/mkstemp (License): Relicense under LGPLv2+.
2382 * modules/tempname (License): Likewise.
2384 2008-08-06 Bruno Haible <bruno@clisp.org>
2386 * lib/poll.c (poll): Further micro-optimization.
2388 2008-08-06 Jim Meyering <meyering@redhat.com>
2390 inet_pton.c: use locale-independent tolower
2391 * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
2392 (inet_pton6): Use c_tolower rather than tolower.
2393 * modules/inet_pton (Depends-on): Add c-ctype.
2395 2008-08-06 Paolo Bonzini <bonzini@gnu.org>
2397 * lib/poll.c (poll): Avoid division when timeout is 0, cache
2398 _SC_OPEN_MAX, avoid repeated access to errno. Check for nfd < 0.
2400 2008-08-06 Jim Meyering <meyering@redhat.com>
2402 * modules/inet_pton (License): Relicense under LGPLv2+.
2404 2008-08-03 Bruno Haible <bruno@clisp.org>
2406 Additional non-aborting API for lock and tls.
2407 * lib/lock.h: Include <errno.h>.
2408 (glthread_lock_init): New macro/function.
2409 (gl_lock_init): Define as wrapper around glthread_lock_init.
2410 (glthread_lock_lock): New macro/function.
2411 (gl_lock_lock): Define as wrapper around glthread_lock_lock.
2412 (glthread_lock_unlock): New macro/function.
2413 (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
2414 (glthread_lock_destroy): New macro/function.
2415 (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
2416 (glthread_rwlock_init): New macro/function.
2417 (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
2418 (glthread_rwlock_rdlock): New macro/function.
2419 (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
2420 (glthread_rwlock_wrlock): New macro/function.
2421 (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
2422 (glthread_rwlock_unlock): New macro/function.
2423 (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
2424 (glthread_rwlock_destroy): New macro/function.
2425 (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
2426 (glthread_recursive_lock_init): New macro/function.
2427 (gl_recursive_lock_init): Define as wrapper around
2428 glthread_recursive_lock_init.
2429 (glthread_recursive_lock_lock): New macro/function.
2430 (gl_recursive_lock_lock): Define as wrapper around
2431 glthread_recursive_lock_lock.
2432 (glthread_recursive_lock_unlock): New macro/function.
2433 (gl_recursive_lock_unlock): Define as wrapper around
2434 glthread_recursive_lock_unlock.
2435 (glthread_recursive_lock_destroy): New macro/function.
2436 (gl_recursive_lock_destroy): Define as wrapper around
2437 glthread_recursive_lock_destroy.
2438 (glthread_once): New macro/function.
2439 (gl_once): Define as wrapper around glthread_once.
2440 Update function declarations.
2441 * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
2442 glthread_rwlock_init. Return error code.
2443 (glthread_rwlock_rdlock_multithreaded): Renamed from
2444 glthread_rwlock_rdlock. Return error code.
2445 (glthread_rwlock_wrlock_multithreaded): Renamed from
2446 glthread_rwlock_wrlock. Return error code.
2447 (glthread_rwlock_unlock_multithreaded): Renamed from
2448 glthread_rwlock_unlock. Return error code.
2449 (glthread_rwlock_destroy_multithreaded): Renamed from
2450 glthread_rwlock_destroy. Return error code.
2451 (glthread_recursive_lock_init_multithreaded): Renamed from
2452 glthread_recursive_lock_init. Return error code.
2453 (glthread_recursive_lock_lock_multithreaded): Renamed from
2454 glthread_recursive_lock_lock. Return error code.
2455 (glthread_recursive_lock_unlock_multithreaded): Renamed from
2456 glthread_recursive_lock_unlock. Return error code.
2457 (glthread_recursive_lock_destroy_multithreaded): Renamed from
2458 glthread_recursive_lock_destroy. Return error code.
2459 (glthread_once_call): Make static.
2460 (glthread_once_multithreaded): Renamed from glthread_once.
2461 * lib/tls.h: Include <errno.h>.
2462 (glthread_tls_key_init): New macro/function.
2463 (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
2464 (glthread_tls_set): New macro/function.
2465 (gl_tls_set): Define as wrapper around glthread_tls_set.
2466 (glthread_tls_key_destroy): New macro/function.
2467 (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
2468 Update function declarations.
2469 * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
2471 Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
2473 2008-08-04 Eric Blake <ebb9@byu.net>
2475 gnumakefile: use space, not TAB, outside of targets
2476 * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
2478 2008-08-02 Jim Meyering <meyering@redhat.com>
2480 getdate.y: avoid locale-dependent date parsing failure
2481 In Turkish locales, getdate would fail to recognize keywords
2482 containing a lowercase "i". The solution is not to rely on
2483 locale-sensitive case-conversion.
2484 * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
2485 (lookup_word): Use c_toupper in place of toupper.
2486 (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
2487 Reported by Vefa Bicakci <bicave@superonline.com> in
2488 <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
2489 * modules/getdate (Depends-on): Add c-ctype.
2491 2008-08-02 Bruno Haible <bruno@clisp.org>
2493 * gnulib-tool (func_import): When updating or creating a .gitignore
2494 file, prepend each added line with a slash, and ignore leading slashes
2495 from the existing lines.
2496 Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
2498 2008-08-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2500 Portability fix for GNU make 3.79.1.
2501 * top/GNUmakefile: Avoid 'else COND', which older GNU make
2502 versions do not understand.
2504 2008-08-01 Bruno Haible <bruno@clisp.org>
2506 Work around bug of HP-UX 10.20 cc with -0.0 literal.
2507 * tests/test-isnanf.h (zero): New variable.
2508 (main): Avoid literal -0.0f.
2509 * tests/test-isnand.h (zero): New variable.
2510 (main): Avoid literal -0.0.
2511 * tests/test-isnanl.h (zero): New variable.
2512 (main): Avoid literal -0.0L.
2513 * tests/test-isnan.c (zerof, zerod, zerol): New variables.
2514 (test_float, test_double, test_long_double): Avoid literals -0.0f,
2516 * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
2517 (test_signbitd): Avoid literal -0.0.
2518 (test_signbitl): Avoid literal -0.0L.
2519 * tests/test-ceilf1.c (zero): New variable.
2520 (main): Avoid literal -0.0f.
2521 * tests/test-ceill.c (zero): New variable.
2522 (main): Avoid literal -0.0L.
2523 * tests/test-floorf1.c (zero): New variable.
2524 (main): Avoid literal -0.0f.
2525 * tests/test-floorl.c (zero): New variable.
2526 (main): Avoid literal -0.0L.
2527 * tests/test-roundf1.c (zero): New variable.
2528 (main): Avoid literal -0.0f.
2529 * tests/test-round1.c (zero): New variable.
2530 (main): Avoid literal -0.0.
2531 * tests/test-roundl.c (zero): New variable.
2532 (main): Avoid literal -0.0L.
2533 * tests/test-truncf1.c (zero): New variable.
2534 (main): Avoid literal -0.0f.
2535 * tests/test-trunc1.c (zero): New variable.
2536 (main): Avoid literal -0.0.
2537 * tests/test-truncl.c (zero): New variable.
2538 (main): Avoid literal -0.0L.
2539 * tests/test-frexp.c (zero): New variable.
2540 (main): Avoid literal -0.0.
2541 * tests/test-frexpl.c (zero): New variable.
2542 (main): Avoid literal -0.0L.
2543 * tests/test-ldexpl.c (zero): New variable.
2544 (main): Avoid literal -0.0L.
2545 * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
2546 (zerod, zerol): New variables.
2547 (test_function): Avoid literals -0.0, -0.0L.
2548 * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
2549 (zerod, zerol): New variables.
2550 (test_function): Avoid literals -0.0, -0.0L.
2551 * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
2552 (zerod, zerol): New variables.
2553 (test_function): Avoid literals -0.0, -0.0L.
2554 * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
2555 (zerod, zerol): New variables.
2556 (test_function): Avoid literals -0.0, -0.0L.
2557 * tests/test-strtod.c (zero): New variable.
2558 (main): Avoid literal -0.0.
2559 Reported by Jonathan C. Patschke <jp@centtech.com>.
2561 2008-07-31 Jim Meyering <meyering@redhat.com>
2563 sha256.h: correct definition of SHA224_DIGEST_SIZE
2564 * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
2565 Reported by Paulie Pena IV <paulie4@gmail.com>.
2566 Define as 224 / 8, rather than as a literal.
2567 (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
2568 * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
2569 (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
2571 2008-07-31 Bruno Haible <bruno@clisp.org>
2573 * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
2574 on HP-UX 10.20 with "cc -Ae". Fix second conditional.
2575 Reported by Jonathan Patschke <jp@centtech.com>.
2577 2008-07-31 Bruno Haible <bruno@clisp.org>
2579 * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
2580 Reported by Paolo Bonzini <bonzini@gnu.org>.
2582 2008-07-30 Eric Blake <ebb9@byu.net>
2584 test-strtod: allow compilation without -lm
2585 * tests/test-strtod.c (main): Avoid link dependence on fabs.
2586 Reported by Dennis Clarke <blastwave@gmail.com>.
2588 2008-07-28 Jim Meyering <meyering@redhat.com>
2590 bootstrap: work also when there are no .po files in po/
2591 * build-aux/bootstrap (update_po_files): Complete the change
2592 that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
2594 2008-07-27 Jim Meyering <meyering@redhat.com>
2596 * users.txt: Add zile.
2598 2008-07-26 Ben Pfaff <blp@gnu.org>
2600 Add missing dependencies on new m4/exponent[fdl].m4 files.
2601 * modules/isnanf-nolibm: Add m4/exponentf.m4.
2602 * modules/isnand-nolibm: Add m4/exponentd.m4.
2603 * modules/isnanl-nolibm: Add m4/exponentl.m4.
2604 * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
2605 m4/isnan[fdl].m4, because the macros actually used moved.
2606 Reported by Jim Meyering.
2608 2008-07-14 Ben Pfaff <blp@gnu.org>
2611 * lib/isinf.c: New file.
2612 * lib/math.in.h: Define isinf macro if we have decided to replace
2614 * m4/isinf.m4: New file.
2615 * m4/math_h.m4: Initialize and substitute variables for isinf
2617 * modules/isinf: New file.
2618 * modules/isinf-tests: New file.
2619 * modules/math: Add substitutions for new module.
2620 * tests/test-isinf.c: New file.
2621 * doc/posix-functions/isinf.texi: Mention new module.
2622 * MODULES.html.sh: Mention new module.
2624 2008-07-14 Ben Pfaff <blp@gnu.org>
2626 Factor out some macros for use by additional modules.
2627 * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
2629 * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
2631 * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
2633 * m4/exponentf.m4: New file.
2634 * m4/exponentd.m4: New file.
2635 * m4/exponentl.m4: New file.
2636 * modules/isnanf: Use new file m4/exponentf.m4.
2637 * modules/isnand: Use new file m4/exponentd.m4.
2638 * modules/isnanl: Use new file m4/exponentl.m4.
2640 2008-07-23 Ulrich Drepper <drepper@redhat.com>
2642 mktime.c: normalize tp->tm_isdst value to -1/0/1.
2643 * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
2644 Reported by Michael Ringe <Michael.Ringe@gmx.de> in
2645 <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
2647 * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
2648 readlink on platforms without PATH_MAX.
2650 2008-07-21 Eric Blake <ebb9@byu.net>
2652 Warn, not fail, on stale version.
2653 * top/GNUmakefile (_curr-ver): Tone down previous patch.
2655 Don't allow installation with stale devel version number.
2656 * top/GNUmakefile (_is-install-target): New macro.
2657 (_curr-ver): Forbid installation with stale version number.
2659 2008-07-20 Bruno Haible <bruno@clisp.org>
2661 * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
2663 * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
2665 2008-07-20 Bruno Haible <bruno@clisp.org>
2667 * lib/c-stack.h (c_stack_action): Add documentation.
2668 * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
2670 2008-07-20 Bruno Haible <bruno@clisp.org>
2672 * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
2673 * modules/readlink (License): Likewise.
2675 2008-07-17 Eric Blake <ebb9@byu.net>
2677 * modules/c-stack (Link): Fix typo.
2679 Make c-stack use libsigsegv, when available.
2680 * modules/c-stack (Depends-on): Add libsigsegv.
2681 * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
2683 * lib/c-stack.c (SIGSTKSZ): Define fallback.
2684 (segv_handler, overflow_handler, c_stack_action)
2685 [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
2686 implementation when libsigsegv is available, but only when using
2687 the library is necessary.
2688 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
2689 comment, explaining why XSI check fails on Linux.
2690 (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
2691 * tests/test-c-stack2.sh: Tweak skip message.
2692 * NEWS: Document new link-time requirements.
2694 2008-07-16 Eric Blake <ebb9@byu.net>
2696 c-stack: Expose false positives when not using libsigsegv.
2697 * modules/c-stack-tests (Files): Expand test.
2698 * tests/test-c-stack.c (main): Add means to conditionally trigger
2699 non-overflow SIGSEGV.
2700 * tests/test-c-stack2.sh: New file.
2702 2008-07-14 Bruno Haible <bruno@clisp.org>
2704 * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
2705 Reported by Eric Blake.
2707 2008-07-14 Sam Steingold <sds@gnu.org>
2708 Bruno Haible <bruno@clisp.org>
2710 New module libsigsegv.
2711 * modules/libsigsegv: New file.
2712 * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
2714 * MODULES.html.sh (Signal handling): New section.
2716 2008-07-14 Bruno Haible <bruno@clisp.org>
2718 * modules/unictype/ctype-* (Description): Add the word "function".
2719 Improves the resulting doc in MODULES.html.
2721 2008-07-12 Ben Pfaff <blp@gnu.org>
2723 Add longlong module.
2724 * modules/longlong: New file.
2726 2008-07-12 Bruno Haible <bruno@clisp.org>
2728 * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
2731 2008-07-10 Ben Pfaff <blp@gnu.org>
2734 * doc/posix-functions/isnan.texi: Mention new module.
2735 * lib/math.in.h: Define isnan macro if we have decided to replace
2737 * m4/isnan.m4: New file.
2738 * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
2739 macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
2741 (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
2743 * m4/math_h.m4: Initialize and substitute variables for isnan
2745 * modules/isnan: New file.
2746 * modules/isnan-tests: New file.
2747 * modules/math: Add substitutions for new module.
2748 * tests/test-isnan.c: New file.
2749 * MODULES.html.sh: Mention new module.
2751 2008-07-10 Ben Pfaff <blp@gnu.org>
2754 * lib/isnanf.m4: New file.
2755 * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
2756 (gl_HAVE_ISNANF_IN_LIBM): New macro.
2757 (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
2758 gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
2759 * modules/isnanf: New file.
2760 * modules/isnanf-tests: New file.
2761 * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
2763 * tests/test-isnanf-nolibm.c: factored most of its contents into
2764 new file tests/test-isnanf.h.
2765 * tests/test-isnanf.h: New file.
2766 * tests/test-isnanf.c: New file.
2767 * MODULES.html.sh: Mention new module.
2768 * doc/glibc-functions/isnanf.texi: Mention new module.
2770 2008-07-10 Ben Pfaff <blp@gnu.org>
2773 * lib/isnand.h: New file.
2774 * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
2775 (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
2776 gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
2778 (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
2779 gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
2780 (gl_HAVE_ISNAND_IN_LIBM): New macro.
2781 * modules/isnand: New file.
2782 * modules/isnand-tests: New file.
2783 * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
2785 * tests/test-isnand-nolibm.c: factored most of its contents into
2786 new file tests/test-isnand.h.
2787 * tests/test-isnand.h: New file.
2788 * tests/test-isnand.c: New file.
2789 * MODULES.html.sh: Mention new module.
2791 2008-07-10 Ben Pfaff <blp@gnu.org>
2793 * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
2794 * lib/isnand.h: Rename lib/isnand-nolibm.h.
2795 * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
2796 * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
2797 * modules/isnanf-nolibm: Update references to renamed files.
2798 * modules/isnand-nolibm: Likewise.
2799 * modules/isnanf-nolibm-tests: Likewise.
2800 * modules/isnand-nolibm-tests: Likewise.
2801 * lib/frexp.c: Likewise.
2802 * lib/isfinite.c: Likewise.
2803 * lib/signbitd.c: Likewise.
2804 * lib/signbitf.c: Likewise.
2805 * lib/vasnprintf.c: Likewise.
2806 * tests/test-ceilf1.c: Likewise.
2807 * tests/test-ceilf2.c: Likewise.
2808 * tests/test-floorf1.c: Likewise.
2809 * tests/test-floorf2.c: Likewise.
2810 * tests/test-frexp.c: Likewise.
2811 * tests/test-round1.c: Likewise.
2812 * tests/test-round2.c: Likewise.
2813 * tests/test-roundf1.c: Likewise.
2814 * tests/test-strtod.c: Likewise.
2815 * tests/test-trunc1.c: Likewise.
2816 * tests/test-trunc2.c: Likewise.
2817 * tests/test-truncf1.c: Likewise.
2818 * tests/test-truncf2.c: Likewise.
2819 * NEWS: Mention the renamed header files.
2821 2008-07-11 Jim Meyering <meyering@redhat.com>
2823 vc-list-files: make the last-resort awk code more portable
2824 * build-aux/vc-list-files: Don't rely on awk's "sub" command.
2825 /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
2826 does not support it.
2828 2008-07-10 Eric Blake <ebb9@byu.net>
2830 Work with tar's bootstrap.
2831 * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
2832 where LIBSOURCES_DIR contains .#bootmp but must not be treated as
2835 2008-07-09 Jim Meyering <meyering@redhat.com>
2837 posix-shell.m4: fix typo that made this test malfunction
2838 * m4/posix-shell.m4: Remove capitalization in variable name.
2840 2008-07-08 Bruno Haible <bruno@clisp.org>
2842 * m4/onceonly.m4: Update comments.
2843 Reported by Ben Pfaff <blp@cs.stanford.edu>.
2845 2008-07-04 Jim Meyering <meyering@redhat.com>
2847 * users.txt: Add vc-dwim.
2848 (bison, coreutils): Use the gitweb URL.
2850 2008-07-03 Jim Meyering <meyering@redhat.com>
2852 * users.txt: Add libffcall. From Sam Steingold.
2854 2008-07-03 Ondřej Vašík <ovasik@redhat.com>
2856 getdate.y: do not ignore TZ with relative day, month or year offset
2857 * lib/getdate.y (get_date): Move the tz-handling block to follow the
2858 relative-date-handling, since otherwise, the latter would clobber the
2859 sole output (an updated Start value) of the tz-handling block.
2860 * tests/test-getdate.c: Tests for the fix
2862 2008-07-03 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2864 Recognize 'foo_LIBRARIES += libgnu.a'.
2865 * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
2866 makefile snippet has already specified an installation location,
2869 2008-07-02 Ondřej Vašík <ovasik@redhat.com>
2871 getdate.y: factor out common actions
2872 * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
2873 Use them in place of open-coded actions.
2875 2008-07-01 Simon Josefsson <simon@josefsson.org>
2877 Add self-test for getdate module.
2878 * modules/getdate-tests: New file.
2879 * tests/test-getdate.c: New file.
2881 2008-06-29 Bruno Haible <bruno@clisp.org>
2883 * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
2885 Reported by Sylvain Beucler <beuc@beuc.net>.
2887 2008-06-29 Bruno Haible <bruno@clisp.org>
2889 * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
2890 * m4/gnulib-tool.m4: Update to match current gnulib-tool.
2892 2008-06-29 Bruno Haible <bruno@clisp.org>
2894 * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
2896 Reported by Sylvain Beucler <beuc@beuc.net>.
2898 2008-06-26 Jim Meyering <meyering@redhat.com>
2900 make several modules depend on the "open" module
2901 This provides slightly increased consistency when opening-for-write
2902 the name of a non-directory spelled with a trailing slash.
2903 * modules/chdir-safer: Likewise.
2904 * modules/chown: Likewise.
2905 * modules/clean-temp: Likewise.
2906 * modules/copy-file: Likewise.
2907 * modules/fchdir: Likewise.
2908 * modules/fcntl-safer: Likewise.
2909 * modules/pipe: Likewise.
2910 * modules/utime: Likewise.
2911 Prompted by Eric Blake and Bruno Haible.
2913 2008-06-24 Andreas Schwab <schwab@suse.de>
2915 * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
2916 literals can be used as initializers for global variables.
2918 2008-06-23 Eric Blake <ebb9@byu.net>
2920 Make gnulib-cache.m4 easier to diff.
2921 * gnulib-tool (func_import): Allow newlines when reading cached
2922 gl_MODULES, and generate newlines when creating gnulib-cache.m4.
2924 2008-06-23 Bruno Haible <bruno@clisp.org>
2926 * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
2927 (gl_PREREQ_SIGPROCMASK): Don't invoke it.
2928 * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
2929 m4/signalblocking.m4.
2930 (gl_PREREQ_SIGACTION): Don't invoke it.
2931 * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
2932 gl_PREREQ_SIG_HANDLER_H.
2933 * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
2934 Don't check for sigaction here.
2936 2008-06-23 Bruno Haible <bruno@clisp.org>
2938 * lib/fatal-signal.c (fatal_signal_handler): Update comment.
2939 (install_handlers): Don't set the SA_RESETHAND flag.
2941 2008-06-23 Bruno Haible <bruno@clisp.org>
2943 * m4/sigaction.m4: Comment fixes.
2944 * lib/signal.in.h: Likewise.
2946 2008-06-23 Eric Blake <ebb9@byu.net>
2949 * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
2951 Avoid SA_ namespace.
2952 * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
2953 Reported by Ralf Wildenhues.
2955 Avoid test failure due to SA_RESTORER.
2956 * tests/test-sigaction.c (SA_MASK): New macro.
2957 (main): Avoid failing due to extension flags being set.
2958 Reported by Jim Meyering.
2960 Revert use of sig-handler.h in sigprocmask.c.
2961 * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
2962 it requires the existence of struct sigaction.
2963 * lib/sigprocmask.c (handler_t): Restore typedef.
2964 (rpl_signal, old_handlers): Use local type.
2966 2008-06-22 Bruno Haible <bruno@clisp.org>
2968 * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
2970 Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
2972 2008-06-22 Bruno Haible <bruno@clisp.org>
2974 * doc/posix-functions/siginterrupt.texi: Move note.
2976 * lib/signal.in.h (SA_RESTART): New macro.
2977 * lib/sigaction.c: Update comment.
2979 * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
2981 * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
2982 (gl_PREREQ_SIGPROCMASK): Invoke it.
2983 * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
2985 * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
2987 * lib/sigprocmask.c: Update a comment.
2989 2008-06-21 Eric Blake <ebb9@byu.net>
2991 Use sigaction module rather than signal().
2992 * modules/c-stack (Depends-on): Add sigaction.
2993 * modules/fatal-signal (Depends-on): Likewise.
2994 * modules/nanosleep (Depends-on): Likewise.
2995 * modules/sigprocmask (Files): Add sig-handler.h.
2996 * modules/sigaction (Files): Likewise.
2997 * lib/sig-handler.h (get_handler): New file, suggested by Paul
2999 * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
3000 (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
3001 * lib/fatal-signal.c (uninstall_handlers, install_handlers)
3002 (init_fatal_signals): Likewise.
3003 * lib/nanosleep.c (rpl_nanosleep): Likewise.
3004 (siginterrupt): Delete fallback.
3005 * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
3007 * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
3010 New module sigaction, for mingw.
3011 * modules/sigaction: New module...
3012 * modules/sigaction-tests: ...and its test.
3013 * m4/sigaction.m4: New file.
3014 * lib/sigaction.c: Likewise.
3015 * tests/test-sigaction.c: Likewise.
3016 * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
3017 * modules/signal (Makefile.am): Likewise.
3018 * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
3020 * doc/posix-headers/signal.texi (signal.h): Mention provided
3022 * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
3023 that sigaction is preferable.
3024 * doc/posix-functions/sigaction.texi (sigaction): Mention new
3026 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
3029 Improve robustness of sigprocmask by overriding signal.
3030 * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
3032 * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
3033 (SIGKILL, SIGSTOP): Provide fallbacks.
3034 (rpl_signal): Implement.
3035 (old_handlers, blocked_set): Mark volatile, since sigprocmask and
3036 signal can be called inside handlers.
3038 Fix nanosleep module on mingw.
3039 * modules/nanosleep (Depends-on): Add sys_select.
3040 * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
3042 Fix licensing of sigprocmask.
3043 * modules/raise (License): Relicense as LGPL.
3045 2008-06-21 Bruno Haible <bruno@clisp.org>
3047 * lib/propername.c (proper_name_utf8): Don't use the transliterated
3048 result if it contains question marks.
3049 Reported by Michael Geng <linux@michaelgeng.de>.
3051 2008-06-19 Bruno Haible <bruno@clisp.org>
3054 * doc/gnulib.texi: Include updated-stamp.texi.
3055 * doc/Makefile (GNULIB_TEXI_FILES): New variable.
3056 (updated-stamp.texi): New rule.
3057 (gnulib.info): Depend on it.
3058 * doc/.gitignore: Add updated-stamp.texi.
3059 Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
3061 2008-06-19 Bruno Haible <bruno@clisp.org>
3063 * doc/Makefile (gnulib.info): Update and simplify dependencies.
3064 Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
3066 2008-06-19 Eric Blake <ebb9@byu.net>
3068 Fix VPATH 'make dist' with GNU make and non-VCS tarball.
3069 * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
3070 Reported by Stepan Kasal.
3072 2008-06-18 Bruno Haible <bruno@clisp.org>
3074 * lib/fatal-signal.c (init_fatal_signals): Add comment.
3075 Reported by Eric Blake.
3077 2008-06-18 Eric Blake <ebb9@byu.net>
3079 Work around cygwin 1.5.25 strsignal bug.
3080 * tests/test-strsignal.c: Allow for const char *.
3081 * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
3083 2008-06-18 Simon Josefsson <simon@josefsson.org>
3085 * users.txt: Update URL to article and add author/date
3088 2008-06-17 Bruno Haible <bruno@clisp.org>
3090 New macro gl_DISABLE_THREADS.
3091 * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
3092 if the user did not pass --enable-threads or --disable-threads option.
3093 (gl_DISABLE_THREADS): New macro.
3094 Reported by Eric Blake <ebb9@byu.net>.
3096 2008-06-17 Bruno Haible <bruno@clisp.org>
3098 * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
3099 when the macro ignores it.
3100 Based on a patch by Eric Blake <ebb9@byu.net>.
3102 2008-06-17 Bruno Haible <bruno@clisp.org>
3104 * modules/tls (License): Change to LGPLv2+.
3105 Reported by Eric Blake.
3107 2008-06-17 Eric Blake <ebb9@byu.net>
3109 Simplify c-stack prerequisites.
3110 * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
3111 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
3112 no longer requires <ucontext.h> to exist. Optimize setrlimit
3114 (gl_PREREQ_C_STACK): Remove check for unused getcontext and
3117 Move c-stack test into testsuite.
3118 * modules/c-stack-tests: New file.
3119 * lib/c-stack.c [DEBUG]: Move test program...
3120 * tests/test-c-stack.c: ...into this new file. Skip rather than
3121 fail test if sigaltstack is lacking.
3122 * tests/test-c-stack.sh: New driver file.
3124 2008-06-16 Eric Blake <ebb9@byu.net>
3126 Use raise module consistently.
3127 * modules/fatal-signal (Depends-on): Add raise.
3128 * modules/sigprocmask (Depends-on): Likewise.
3129 * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
3130 * lib/sigprocmask.c (sigprocmask): Likewise.
3131 * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
3132 * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
3134 Fix compliance bug in sigpending.
3135 * lib/sigprocmask.c (sigpending): Return pending array via
3136 parameter, not return value.
3138 2008-06-14 Eric Blake <ebb9@byu.net>
3140 Improve obstack-printf test code.
3141 * tests/test-obstack-printf.c (test_function): Fix comment, and
3142 simplify usage of obstack_* in macros. Add a test for coverage.
3143 Reported by Bruno Haible.
3145 2008-06-14 Bruno Haible <bruno@clisp.org>
3147 * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
3148 array size as a constant, not as a const variable.
3149 * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
3150 AC_USE_SYSTEM_EXTENSIONS.
3151 * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
3152 Test whether the obstack_printf function actually exists.
3153 * modules/obstack-printf (Depends-on): Add extensions.
3154 (Include): Remove obstack.h.
3155 * modules/obstack-printf-posix (Depends-on): Add extensions.
3156 (Include): Remove obstack.h.
3158 2008-06-13 Eric Blake <ebb9@byu.net>
3160 Add obstack-printf and obstack-printf-posix modules.
3161 * modules/obstack-printf: New file.
3162 * modules/obstack-printf-posix: Likewise.
3163 * MODULES.html.sh (Misc): Mention them.
3164 * doc/glibc-functions/obstack_printf.texi (obstack_printf):
3166 * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
3168 * modules/stdio (Makefile.am): Accomodate new modules.
3169 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
3170 * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
3172 * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
3174 * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
3175 (gl_REPLACE_OBSTACK_PRINTF): New macros
3176 * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
3177 * tests/test-obstack-printf.c: New file.
3178 * modules/obstack-printf-tests: Likewise.
3179 * modules/obstack-printf-posix-tests: Likewise.
3181 2008-06-11 Bruno Haible <bruno@clisp.org>
3183 * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
3184 * lib/open.c: Include errno.h.
3185 (open): Fail when attempting to write to a file that has a trailing
3187 * tests/test-open.c (main): Test against trailing slash bug.
3188 * doc/posix-functions/open.texi: Mention the trailing slash bug.
3190 2008-06-10 Bruno Haible <bruno@clisp.org>
3192 * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
3193 for $? to work inside the trap command, with various /bin/sh-s.
3194 * tests/test-vc-list-files-cvs.sh: Likewise.
3196 2008-06-10 Bruno Haible <bruno@clisp.org>
3198 * lib/acl-internal.h: Don't include gettext.h here.
3199 * lib/set-mode-acl.c: Include gettext.h here.
3200 * lib/copy-acl.c: Likewise.
3202 2008-06-10 Bruno Haible <bruno@clisp.org>
3204 * lib/wait-process.h (wait_subprocess): Add termsigp argument.
3205 * lib/wait-process.c (wait_subprocess): Likewise.
3206 * lib/execute.h (execute): Add termsigp argument.
3207 * lib/execute.c (execute): Likewise.
3208 * lib/csharpcomp.c (compile_csharp_using_pnet,
3209 compile_csharp_using_mono, compile_csharp_using_sscli): Update.
3210 * lib/csharpexec.c (execute_csharp_using_pnet,
3211 execute_csharp_using_mono, execute_csharp_using_sscli): Update.
3212 * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
3213 compile_using_javac, compile_using_jikes, is_envjavac_gcj,
3214 is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
3215 is_jikes_present): Update.
3216 * lib/javaexec.c (execute_java_class): Update.
3217 * lib/javaversion.c (execute_and_read_line): Update.
3218 * NEWS: Document the changes.
3219 Reported by Eric Blake.
3221 2008-06-10 Eric Blake <ebb9@byu.net>
3223 Add missing include.
3224 * tests/test-strstr.c (includes): Add <signal.h>.
3225 * tests/test-strcasestr.c (includes): Likewise.
3226 * tests/test-memmem.c (includes): Likewise.
3228 2008-06-10 Bruno Haible <bruno@clisp.org>
3230 * lib/wait-process.c (wait_subprocess): Add an assertion.
3232 2008-06-10 Bruno Haible <bruno@clisp.org>
3234 * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
3236 2008-06-10 Bruno Haible <bruno@clisp.org>
3238 * tests/test-memmem.c (main): Reset SIGALRM to default handling before
3240 * tests/test-strcasestr.c (main): Likewise.
3241 * tests/test-strstr.c (main): Likewise.
3243 2008-06-09 Bruno Haible <bruno@clisp.org>
3245 Work around the Solaris 10 ACE ACLs ABI change.
3246 * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
3247 declare if ACL_NO_TRIVIAL is present.
3248 (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
3249 NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
3250 NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
3251 * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
3252 define if ACL_NO_TRIVIAL is present.
3253 (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
3254 and use the current ABI.
3255 (file_has_acl): Use same #if condition as elsewhere.
3256 * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
3257 in use, and use the current ABI.
3258 * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
3259 Reported by Jim Meyering.
3261 2008-06-09 Eric Blake <ebb9@byu.net>
3263 Work around environments that (stupidly) ignore SIGALRM.
3264 * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
3265 before using alarm().
3266 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
3267 * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
3268 Reported by Ian Beckwith <ianb@erislabs.net>.
3270 Produce autobuild blurb earlier in log.
3271 * modules/autobuild (configure.ac-early): Move AB_INIT here.
3273 2008-06-09 Jim Meyering <meyering@redhat.com>
3274 and Ondřej Vašík <ovasik@redhat.com>
3276 utimens.c: correct kernel bug work-around
3277 Ondřej Vašík found that the invalid return value of 280 indicates
3278 failure, not success, and the kernel bug we're trying to work
3279 around affects not just the utimensat call, but also the fallback
3281 * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
3283 [HAVE_FUTIMENS]: Use the same work-around, here.
3285 2008-06-09 Jim Meyering <meyering@redhat.com>
3287 add more guards around definition of ACE_-related code
3288 * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
3289 ALLOW and ACE_OWNER are also defined.
3291 2008-06-08 Bruno Haible <bruno@clisp.org>
3293 * lib/acl-internal.h: Add me as co-author.
3294 * lib/file-has-acl.c: Likewise.
3295 * lib/set-mode-acl.c: Likewise.
3296 * lib/copy-acl.c: Likewise.
3298 2008-06-08 Bruno Haible <bruno@clisp.org>
3300 Add support for AIX ACLs.
3301 * lib/acl-internal.h (acl_nontrivial): New declaration.
3302 * lib/file-has-acl.c (acl_nontrivial): New function.
3303 (file_has_acl): Add implementation using AIX 4 ACL API.
3304 * lib/set-mode-acl.c (qset_acl): Likewise.
3305 * lib/copy-acl.c (qcopy_acl): Likewise.
3307 2008-06-08 Bruno Haible <bruno@clisp.org>
3309 Add support for HP-UX ACLs.
3310 * lib/acl-internal.h (acl_nontrivial): New declaration.
3311 * lib/file-has-acl.c (acl_nontrivial): New function.
3312 (file_has_acl): Add implementation using HP-UX 11 ACL API.
3313 * lib/set-mode-acl.c (qset_acl): Likewise.
3314 * lib/copy-acl.c (qcopy_acl): Likewise.
3316 2008-06-08 Bruno Haible <bruno@clisp.org>
3318 Add support for Cygwin ACLs.
3319 * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
3320 * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
3321 the chmod_or_fchmod call.
3322 * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
3324 2008-06-08 Bruno Haible <bruno@clisp.org>
3326 Fix bug with setuid modes in Solaris 10+ code.
3327 * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
3328 succeeded, when the mode contains some special bits.
3330 2008-06-08 Bruno Haible <bruno@clisp.org>
3332 Add support for Solaris 7..10 ACLs.
3333 * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
3335 * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
3337 (file_has_acl): Add implementation using Solaris 7..10 ACL API.
3338 * lib/set-mode-acl.c (qset_acl): Likewise.
3339 * lib/copy-acl.c (qcopy_acl): Likewise.
3341 2008-06-08 Bruno Haible <bruno@clisp.org>
3343 * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
3345 * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
3346 (acl_access_nontrivial): Remove MacOS X case.
3347 (file_has_acl): Use acl_extended_nontrivial.
3348 * lib/copy-acl.c (qcopy_acl): Likewise.
3350 2008-06-08 Bruno Haible <bruno@clisp.org>
3352 * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
3354 2008-06-08 Jim Meyering <meyering@redhat.com>
3356 * modules/acl (Maintainer): Add Bruno Haible.
3358 2008-06-07 Bruno Haible <bruno@clisp.org>
3360 Improve support for Tru64 ACLs.
3361 * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
3364 2008-06-07 Bruno Haible <bruno@clisp.org>
3366 Add support for MacOS X ACLs.
3367 * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
3368 ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
3369 * lib/set-mode-acl.c (qset_acl): Likewise.
3370 * lib/copy-acl.c (qcopy_acl): Likewise.
3372 2008-06-07 Bruno Haible <bruno@clisp.org>
3374 Fix memory leak introduced on 2008-05-22.
3375 * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
3378 2008-06-07 Bruno Haible <bruno@clisp.org>
3380 * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
3381 to construct an empty ACL.
3383 2008-06-07 Bruno Haible <bruno@clisp.org>
3385 * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
3387 * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
3389 2008-06-07 Bruno Haible <bruno@clisp.org>
3391 * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
3392 * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
3394 2008-06-07 Bruno Haible <bruno@clisp.org>
3396 * doc/posix-functions/_setjmp.texi: Explain the use of this function
3397 regardless of POSIX.
3398 * doc/posix-functions/_longjmp.texi: Likewise.
3399 * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
3400 SystemV platform in this case.
3402 2008-06-06 Eric Blake <ebb9@byu.net>
3404 Document abort() bugs.
3405 * doc/posix-functions/abort.texi (abort): Mention anomalies.
3407 * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
3408 * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
3410 * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
3411 siglongjmp, but only as a macro.
3412 * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
3414 * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
3416 Tweak documentation to cover cygwin argz bugs.
3417 * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
3418 argz bug fix; no code change needed since no cygwin releases
3419 occurred between the last fix and the bug being tested.
3420 * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
3421 module and recently fixed cygwin bugs.
3422 * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
3423 * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
3424 * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
3425 * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
3426 * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
3428 * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
3429 * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
3430 * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
3431 * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
3432 * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
3433 * doc/glibc-functions/argz_stringify.texi (argz_stringify):
3436 Avoid gcc warning on cygwin.
3437 * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
3438 !ACL_NO_TRIVIAL]: Avoid unused variable.
3440 2008-06-05 Eric Blake <ebb9@byu.net>
3442 Be tolerant of UNKNOWN version in gnulib-tool test dir.
3443 * top/GNUmakefile (_dummy): Warn rather than reconfigure if
3444 git-version-gen fails to come up with a version.
3445 Reported by Simon Josefsson.
3447 2008-06-05 Jim Meyering <meyering@redhat.com>
3448 Paul Eggert <eggert@cs.ucla.edu>
3450 utimens.c: work around a probable Linux kernel bug
3451 * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
3452 appears to be a kernel bug that causes utimensat to return 280
3453 instead of 0, indicating success.
3455 2008-06-04 Bruno Haible <bruno@clisp.org>
3457 * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
3460 2008-06-04 Bruno Haible <bruno@clisp.org>
3462 * lib/acl-internal.h (acl_access_nontrivial): New declaration.
3463 * lib/file-has-acl.c (acl_access_nontrivial): New function.
3464 (file_has_acl): Use it. Save errno afterwards.
3465 * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
3467 2008-06-03 Bruno Haible <bruno@clisp.org>
3469 * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
3470 draft code. Simplify #ifs.
3471 * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
3472 Put Solaris code after POSIX-draft code. Fix comments regarding
3473 Solaris 10, HP-UX. Mention Cygwin.
3474 * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
3476 2008-06-03 Eric Blake <ebb9@byu.net>
3478 Provide fallback for older kernels.
3479 * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
3480 Provide runtime fallback if kernel lacks support.
3481 Reported by Mike Frysinger.
3483 2008-06-02 Bruno Haible <bruno@clisp.org>
3485 * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
3488 2008-06-02 Bruno Haible <bruno@clisp.org>
3490 * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
3491 * lib/copy-acl.c (qcopy_acl): Update comment.
3493 2008-06-02 Bruno Haible <bruno@clisp.org>
3495 * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
3498 2008-06-02 Bruno Haible <bruno@clisp.org>
3500 * tests/test-file-has-acl.sh: Use different code for Cygwin.
3501 * tests/test-set-mode-acl.sh: Likewise.
3502 * tests/test-copy-acl.sh: Likewise.
3503 * tests/test-copy-file.sh: Likewise.
3505 2008-06-02 Bruno Haible <bruno@clisp.org>
3507 * tests/test-file-has-acl.sh: Remove unused code.
3509 2008-06-01 Bruno Haible <bruno@clisp.org>
3511 * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
3512 (copy_acl): Just a wrapper around qcopy_acl that emits the error
3514 * lib/set-mode-acl.c (qset_acl): Document return value precisely.
3516 2008-06-01 Bruno Haible <bruno@clisp.org>
3518 * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
3519 tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
3520 needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
3522 * modules/acl-tests (configure.ac): Remove tests now contained in
3525 2008-06-02 Jim Meyering <meyering@redhat.com>
3527 announce-gen: use a better key-server host name
3528 * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
3529 it may be more consistently reliable. Suggested by Werner Koch
3530 in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
3532 2008-06-01 Bruno Haible <bruno@clisp.org>
3534 * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
3535 Reported by Voroskoi Andras <voroskoi@gmail.com>.
3537 2008-06-01 Voroskoi Andras <voroskoi@gmail.com> (tiny change)
3539 * lib/stdio-impl.h [__DragonFly__]: Fix typo.
3541 2008-06-01 Bruno Haible <bruno@clisp.org>
3544 * tests/test-file-has-acl.sh: New file.
3545 * tests/test-file-has-acl.c: New file.
3546 * tests/test-set-mode-acl.sh: New file.
3547 * tests/test-set-mode-acl.c: New file.
3548 * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
3549 * tests/test-copy-acl.c: New file.
3550 * modules/acl-tests: New file, based on modules/copy-file-tests.
3551 * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
3552 (Depends-on): Add acl-tests.
3553 (configure.ac): Remove checks.
3554 (Makefile.am): Don't create test-sameacls program here any more.
3556 2008-06-01 Bruno Haible <bruno@clisp.org>
3558 * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
3559 * tests/test-sameacls.c: Include progname.h.
3560 (main): Invoke set_program_name. Portability fixes for MacOS X,
3563 2008-06-01 Bruno Haible <bruno@clisp.org>
3565 * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
3567 Reported by VOROSKOI Andras <voroskoi@gmail.com>.
3569 2008-06-01 Bruno Haible <bruno@clisp.org>
3571 * modules/rpmatch (Depends-on): Add strdup.
3573 2008-06-01 Bruno Haible <bruno@clisp.org>
3575 * lib/pipe.c: Include unistd-safer.h.
3576 (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
3577 * modules/pipe (Depends-on): Add unistd-safer.
3579 2008-05-30 Simon Josefsson <simon@josefsson.org>
3581 * modules/autobuild (configure.ac): Call AB_INIT.
3583 2008-05-30 Simon Josefsson <simon@josefsson.org>
3585 * tests/test-getaddrinfo.c: Don't print debug messages by default.
3586 Suggested by Bruno Haible <bruno@clisp.org>.
3588 2008-05-30 Simon Josefsson <simon@josefsson.org>
3590 * tests/test-base64.c: Cast size_t to unsigned long when invoking
3591 printf. Use %lu instead of %d. Reported by Bruno Haible
3594 2008-05-29 Eric Blake <ebb9@byu.net>
3596 Prefer new POSIX 200x interfaces over futimesat.
3597 * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
3598 * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
3600 [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
3602 2008-05-28 Bruno Haible <bruno@clisp.org>
3604 * modules/stpcpy (License): Change to LGPLv2+.
3605 Requested by David Lutterkort <dlutter@redhat.com>.
3607 2008-05-27 Bruno Haible <bruno@clisp.org>
3609 * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
3611 Reported by Jose E. Marchesi <jemarch@gnu.org>.
3613 2008-05-27 Bruno Haible <bruno@clisp.org>
3615 * modules/iconv_open (Link): New section, from module 'iconv'.
3616 * modules/striconv (Link): Likewise.
3617 * modules/striconveh (Link): Likewise.
3618 * modules/xstriconv (Link): Likewise.
3619 * modules/unicodeio (Link): Likewise.
3620 * modules/propername (Link): Likewise.
3621 Reported by Jim Meyering.
3623 2008-05-26 Jim Meyering <meyering@redhat.com>
3625 sha256: do not artificially restrict buffer length to be < 2^32
3626 * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
3628 * lib/sha256.c (sha256_conclude_ctx): Change type of a local
3631 avoid unaligned access errors, e.g., on sparc
3632 * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
3633 direct access through a possibly-unaligned uint64* pointer.
3634 * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
3635 direct access through a possibly-unaligned uint32* pointer.
3636 Prompted by this patch from Tom "spot" Callaway:
3637 http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
3639 sha512.c: fix typo in comment
3640 * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
3642 2008-05-25 Bruno Haible <bruno@clisp.org>
3644 * lib/set-mode-acl.c: Renamed from lib/acl.c.
3645 * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
3646 (Makefile.am): Update lib_SOURCES.
3648 2008-05-25 Bruno Haible <bruno@clisp.org>
3650 * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
3652 2008-05-25 Jim Meyering <meyering@redhat.com>
3654 useless-if-before-free: freed expr may have white-space differences
3655 * build-aux/useless-if-before-free: Recognize cases in which the
3656 freed expression differs from the tested one in embedded white
3657 space, e.g., if (p[i + 1]) free(p[i+1]). Correct thinko in prev:
3658 $1 was used, so we can't make any regexp shy. Improved tests now
3661 useless-if-before-free: accept white space in the expression.
3662 * build-aux/useless-if-before-free: For now, any white space
3663 in the expression must be identical in the free argument.
3665 useless-if-before-free: efficiency tweak
3666 * build-aux/useless-if-before-free: Make the expression-matching
3668 Make the *outer* regexp shy, not the expr-matching one.
3670 update code-in-comment to accept cast of free arg
3671 * build-aux/useless-if-before-free: Update regexp.
3673 2008-05-25 Bruno Haible <bruno@clisp.org>
3675 * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
3676 * modules/copy-file-tests (Files, Makefile.am): Update.
3677 * tests/test-copy-file.c (func_test_copy): Update.
3679 2008-05-24 Andreas Färber <andreas.faerber@web.de> (tiny change)
3681 * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
3683 2008-05-23 Bruno Haible <bruno@clisp.org>
3685 Improve support for ACLs on OSF/1.
3686 * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
3687 Remove fallback for unknown flavors of ACLs.
3689 2008-05-22 Bruno Haible <bruno@clisp.org>
3691 Add support for ACLs on OSF/1.
3692 * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
3694 (acl_free_text): New macro fallback.
3695 * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
3697 * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
3698 acl_free_text function. Require AC_C_INLINE.
3700 2008-05-22 Bruno Haible <bruno@clisp.org>
3702 Make copy_acl work on MacOS X 10.5.
3703 * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
3704 (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
3705 * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
3706 If MODE_INSIDE_ACL, don't assume that every system has the same text
3707 representation for ACLs as FreeBSD.
3708 * lib/copy-acl.c (copy_acl): Add support for platforms with
3710 * lib/file-has-acl.c (file_has_acl): Likewise.
3711 * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
3712 FreeBSD, MacOS X, or IRIX, respectively.
3714 2008-05-22 Bruno Haible <bruno@clisp.org>
3716 * lib/acl.h: Don't include <sys/acl.h>.
3717 (GETACLCNT): Move fallback to lib/acl-internal.h.
3718 * lib/acl-internal.h: Include <sys/acl.h> here.
3719 (GETACLCNT): New macro fallback, moved here from lib/acl.h.
3721 2008-05-22 Bruno Haible <bruno@clisp.org>
3723 Split off copy_acl function to separate file.
3724 * lib/copy-acl.c: New file, extracted from lib/acl.c.
3725 * lib/acl.c (copy_acl): Moved function to separate file.
3726 * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
3727 * modules/acl (Files): Add lib/copy-acl.c.
3728 (Makefiles.am): Augment lib_SOURCES.
3730 2008-05-22 Bruno Haible <bruno@clisp.org>
3732 * modules/copy-file-tests: New file.
3733 * tests/test-copy-file.sh: New file.
3734 * tests/test-copy-file.c: New file.
3735 * tests/test-copy-file-sameacls.c: New file.
3737 2008-05-22 Eric Blake <ebb9@byu.net>
3740 * tests/test-memcmp.c (main): Pass NULL indirectly.
3742 2008-05-21 Bruno Haible <bruno@clisp.org>
3744 Add reference doc about ACLs.
3745 * doc/acl-resources.txt: New file.
3746 * doc/acl-cygwin.txt: New file.
3748 2008-05-21 Bruno Haible <bruno@clisp.org>
3750 Avoid one more warning from gcc.
3751 * lib/vasnprintf.c (IF_LINT): Update comments.
3752 (VASNPRINTF): Use it also for the 'prefix' array initializer.
3754 2008-05-21 Jim Meyering <meyering@redhat.com>
3756 avoid a warning from gcc
3757 * lib/vasnprintf.c (IF_LINT): Define.
3758 (scale10_round_decimal_long_double):
3759 Use it to avoid a "may be used uninitialized" warning.
3760 (scale10_round_decimal_double): Likewise.
3762 2008-05-21 Simon Josefsson <simon@josefsson.org>
3764 * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
3767 2008-05-20 Bruno Haible <bruno@clisp.org>
3769 * tests/test-memcmp.c (main): Test also the sign of the result. Test
3770 against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
3772 2008-05-20 Simon Josefsson <simon@josefsson.org>
3774 * modules/memcmp-tests: New file.
3775 * tests/test-memcmp.c: New file.
3777 2008-05-19 Bruno Haible <bruno@clisp.org>
3779 * modules/propername (Notice, configure.ac): Put quoted "..." into
3781 * lib/propername.h: Update comments accordingly.
3782 Reported by Eric Blake.
3784 2008-05-19 Martin Lambers <marlam@marlam.de> (tiny change)
3786 * modules/getpass-gnu (Depends-on): Add fseeko.
3788 2008-05-19 Simon Josefsson <simon@josefsson.org>
3790 * modules/base64-tests: New file.
3792 2008-05-19 Bo Borgerson <gigabo@gmail.com>
3794 * lib/base64.c (base64_decode_ctx): If a decode context structure
3795 was passed in use it to ignore newlines. If a context structure
3796 was _not_ passed in, continue to treat newlines as garbage (this
3797 is the historical behavior). Formerly base64_decode.
3798 (base64_decode_alloc_ctx): Formerly base64_decode_alloc. Now
3799 takes a decode context structure.
3800 * lib/base64.h (base64_decode): Macro for four-argument calls.
3801 (base64_decode_alloc): Likewise.
3802 * lib/base64.c (base64_decode_ctx): If a decode context structure
3803 was passed in use it to ignore newlines. If a context structure
3804 was _not_ passed in, continue to treat newlines as garbage (this
3805 is the historical behavior). Formerly base64_decode.
3806 (base64_decode_alloc_ctx): Formerly base64_decode_alloc. Now
3807 takes a decode context structure.
3808 * lib/base64.h (base64_decode): Macro for four-argument calls.
3809 (base64_decode_alloc): Likewise.
3811 2008-05-19 Jim Meyering <meyering@redhat.com>
3813 avoid a warning from gcc
3814 * lib/trim.c (IF_LINT): Define.
3815 (trim2): Use it to avoid a "may be used uninitialized" warning.
3818 * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
3820 2008-05-19 Bruno Haible <bruno@clisp.org>
3822 * doc/glibc-functions/getpass.texi: Document limits of other
3825 2008-05-19 Simon Josefsson <simon@josefsson.org>
3826 Bruno Haible <bruno@clisp.org>
3828 * doc/glibc-functions/getpass.texi: Document gnulib implementation.
3830 2008-05-18 Bruno Haible <bruno@clisp.org>
3832 * modules/propername: New file, from GNU gettext.
3833 * lib/propername.h: New file, from GNU gettext.
3834 * lib/propername.c: New file, from GNU gettext.
3835 * MODULES.html.sh (Internationalization functions): Add propername.
3837 2008-05-16 Jim Meyering <meyering@redhat.com>
3838 Bruno Haible <bruno@clisp.org>
3840 Avoid some warnings from "gcc -Wshadow".
3841 * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
3843 2008-05-15 Eric Blake <ebb9@byu.net>
3845 Extend previous patch to cygwin 1.7.0.
3846 * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
3847 fast implementation in cygwin >= 1.7.0.
3848 * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
3849 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
3851 2008-05-15 Bruno Haible <bruno@clisp.org>
3853 * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
3854 implementation in glibc >= 2.9.
3855 * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
3856 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
3858 2008-05-15 Bruno Haible <bruno@clisp.org>
3860 * MODULES.html.sh (Internationalization functions): Remove linebreak.
3861 (Unicode string functions): Add unilbrk/*.
3862 Reported by Karl Berry.
3864 2008-05-15 Eric Blake <ebb9@byu.net>
3866 Fix violation of <stdbool.h> replacement in regex.
3867 * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
3868 * lib/regexec.c (re_search_internal): Likewise.
3869 Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
3871 2008-05-15 Jim Meyering <meyering@redhat.com>
3873 avoid distracting test output when git or cvs is not found
3874 * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
3875 * tests/test-vc-list-files-git.sh: Likewise.
3877 2008-05-15 Eric Blake <ebb9@byu.net>
3879 Glibc finally accepted the memmem speedup code, bugzilla #5514.
3880 * doc/glibc-functions/memmem.texi (memmem): Mention last broken
3882 * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
3883 * doc/posix-functions/strstr.texi (strstr): Likewise.
3884 * lib/str-two-way.h (MAX): Sychronize with glibc.
3886 2008-05-15 Paolo Bonzini <bonzini@gnu.org>
3888 * lib/regcomp.c (optimize_utf8): Add a note on why we test
3890 (calc_first): Initialize constraint field.
3891 (duplicate_node_closure): Use it instead of special casing ANCHORS.
3893 (duplicate_node): Merge constraint field for all node types.
3894 (calc_eclosure_iter): Look at constraint field for all node types.
3895 * lib/regex_internal.c (create_cd_newstate): Don't look at
3898 2008-05-14 Bruno Haible <bruno@clisp.org>
3900 Help GCC to do better code generation.
3901 * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
3902 * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
3903 * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
3904 (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
3905 Declare with attribute 'malloc' if supported.
3907 2008-05-14 Lasse Collin <lasse.collin@tukaani.org>
3909 use "echo STR|wc -c" rather than unportable "expr length STR"
3910 * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
3911 OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
3913 2008-05-14 Jim Meyering <meyering@redhat.com>
3915 use dd ibs=$n count=1 ... rather than less-portable head -c$n
3916 * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
3917 by Solaris 10's /bin/head or by the one from HP-UX 11.x.
3918 Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
3921 2008-05-14 Eric Blake <ebb9@byu.net>
3923 Avoid quadratic growth in gl_LIBSOURCES.
3924 * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
3925 Suggested by Bruno Haible.
3928 * modules/xmemdup0-tests: New file.
3929 * tests/test-xmemdup0.c: Likewise.
3931 2008-05-13 Eric Blake <ebb9@byu.net>
3933 Split xmemdup0 into its own module.
3934 * modules/xmemdup0: New file.
3935 * lib/xmemdup0.h: Likewise.
3936 * lib/xmemdup0.c: Likewise.
3937 * MODULES.html.sh (Memory management functions): Add xmemdup0.
3938 * lib/xalloc.h (xmemdup0): Remove.
3939 * lib/xmalloc.c (xmemdup0): Likewise.
3941 2008-05-13 Eric Blake <ebb9@byu.net>
3942 Bruno Haible <bruno@clisp.org>
3944 Reduce number of forks required during autoconf.
3945 * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
3946 and gl_LIBSOURCES_DIR.
3947 (func_emit_initmacro_end): Use them here in a single m4_syscmd...
3948 (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
3950 <m4_foreach_w>: Move...
3951 * m4/gnulib-common.m4 (m4_foreach_w): ...here.
3953 2008-05-13 Eric Blake <ebb9@byu.net>
3955 * gnulib-tool: Fix various comment typos.
3957 2008-05-12 Bruno Haible <bruno@clisp.org>
3959 Tailor the linebreaking algorithm.
3960 * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
3962 2008-05-12 Bruno Haible <bruno@clisp.org>
3964 Update to Unicode 5.0.0.
3965 * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
3966 LBP_JV, LBP_JT. Redistribute values.
3967 (unilbrk_table): Change size.
3968 * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
3969 Unicode TR#14 rev. 22.
3970 * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
3971 LBP_JV, LBP_JT. Redistribute values.
3972 (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
3973 (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
3975 * lib/unilbrk/lbrkprop1.h: Regenerated.
3976 * lib/unilbrk/lbrkprop2.h: Regenerated.
3977 * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
3978 Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
3979 * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
3981 * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
3983 * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
3985 * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
3986 * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
3987 * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
3988 * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
3989 * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
3990 * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
3992 2008-05-11 Bruno Haible <bruno@clisp.org>
3994 * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
3996 2008-05-11 Bruno Haible <bruno@clisp.org>
3998 * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
3999 * modules/unilbrk/gen-lbrk: New file.
4001 2008-05-11 Bruno Haible <bruno@clisp.org>
4003 * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
4004 * m4/sha512.m4 (gl_SHA512): Likewise.
4006 2008-05-11 Jim Meyering <meyering@redhat.com>
4008 New modules: crypto/sha256, crypto/sha512 (from coreutils)
4009 * modules/crypto/sha256: New file.
4010 * modules/crypto/sha512: Likewise.
4011 * lib/sha256.c: Likewise.
4012 * lib/sha256.h: Likewise.
4013 * lib/sha512.c: Likewise.
4014 * lib/sha512.h: Likewise.
4015 * lib/u64.h: Likewise.
4016 * m4/sha256.m4: Likewise.
4017 * m4/sha512.m4: Likewise.
4018 * MODULES.html.sh (Cryptographic computations (low-level)): List them.
4020 2008-05-10 Bruno Haible <bruno@clisp.org>
4022 * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
4023 (Input/Output <stdio.h>): Add xprintf.
4024 (Signal handling <signal.h>): Add strsignal.
4025 (Cryptographic computations (high-level)): Add crypto/gc-camellia.
4026 (Core language properties): Add func.
4027 (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
4028 (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
4030 (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
4031 (Input/output): New section.
4032 (File system functions): Add openat-die, stat-macros.
4033 (Networking functions): Add sockets.
4034 (Unicode string functions): Add unictype/*.
4035 (Support for building libraries and executables): Add gperf.
4036 (Support for building documentation): Add agpl-3.0.
4037 (Misc): Add nocrash.
4039 2008-05-10 Bruno Haible <bruno@clisp.org>
4041 * modules/unictype/gen-ctype: New file.
4043 2008-05-10 Jim Meyering <meyering@redhat.com>
4045 Make chdir-safer.c more efficient on a system with no symlinks.
4046 * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
4047 also if ELOOP is zero. Suggested by Bruno Haible.
4049 Make chdir-safer.c slightly safer.
4050 * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
4051 not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
4053 Avoid compile failure on systems without ELOOP (like mingw).
4054 * lib/chdir-safer.c (ELOOP): Define if not already defined.
4055 Reported by Bruno Haible.
4057 2008-05-10 Bruno Haible <bruno@clisp.org>
4059 * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
4060 (is_utf8_encoding): Use a case-insensitive comparison.
4061 * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
4064 2008-05-10 Bruno Haible <bruno@clisp.org>
4066 * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
4067 (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
4068 * lib/unilbrk/ulc-common.h (iconv_string_length,
4069 iconv_string_keeping_offsets): Remove declarations.
4070 * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
4071 Don't include <iconv.h>, streq.h, xsize.h.
4072 (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
4074 * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
4075 <iconv.h>, streq.h, xsize.h.
4076 (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
4078 * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
4079 * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
4080 uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
4081 * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
4083 2008-05-10 Bruno Haible <bruno@clisp.org>
4085 * modules/unilbrk/ulc-width-linebreaks-tests: New file.
4086 * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
4088 * modules/unilbrk/u32-width-linebreaks-tests: New file.
4089 * tests/unilbrk/test-u32-width-linebreaks.c: New file.
4091 * modules/unilbrk/u16-width-linebreaks-tests: New file.
4092 * tests/unilbrk/test-u16-width-linebreaks.c: New file.
4094 * modules/unilbrk/u8-width-linebreaks-tests: New file.
4095 * tests/unilbrk/test-u8-width-linebreaks.c: New file.
4097 * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
4098 * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
4100 * modules/unilbrk/u32-possible-linebreaks-tests: New file.
4101 * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
4103 * modules/unilbrk/u16-possible-linebreaks-tests: New file.
4104 * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
4106 * modules/unilbrk/u8-possible-linebreaks-tests: New file.
4107 * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
4109 2008-05-10 Bruno Haible <bruno@clisp.org>
4111 Split up 'linebreak' module.
4112 * lib/unilbrk.h: New file, based on lib/linebreak.h.
4113 * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
4114 * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
4116 * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
4117 * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
4118 * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
4120 * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
4122 * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
4124 * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
4125 * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
4126 * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
4128 * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
4130 * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
4132 * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
4134 * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
4136 * modules/unilbrk/base: New file.
4137 * modules/unilbrk/tables: New file.
4138 * modules/unilbrk/u8-possible-linebreaks: New file.
4139 * modules/unilbrk/u16-possible-linebreaks: New file.
4140 * modules/unilbrk/u32-possible-linebreaks: New file.
4141 * modules/unilbrk/ulc-common: New file.
4142 * modules/unilbrk/ulc-possible-linebreaks: New file.
4143 * modules/unilbrk/u8-width-linebreaks: New file.
4144 * modules/unilbrk/u16-width-linebreaks: New file.
4145 * modules/unilbrk/u32-width-linebreaks: New file.
4146 * modules/unilbrk/ulc-width-linebreaks: New file.
4147 * lib/linebreak.h: Remove file.
4148 * lib/linebreak.c: Remove file.
4149 * m4/linebreak.m4: Remove file.
4150 * modules/linebreak: Remove file.
4151 * NEWS: Mention the changes.
4153 2008-05-09 Eric Blake <ebb9@byu.net>
4156 * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
4158 * lib/xmalloc.c (xmemdup0): New C implementation.
4160 2008-05-08 Bruno Haible <bruno@clisp.org>
4162 * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
4164 2008-05-07 Eric Blake <ebb9@byu.net>
4166 Support cross-compilation of <wctype.h>.
4167 * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
4170 2008-05-06 Soren Hansen <soren@ubuntu.com> (tiny change)
4172 * build-aux/vc-list-files: Add support for bzr.
4174 2008-05-03 Jim Meyering <meyering@redhat.com>
4176 avoid failed assertion with tight malloc
4177 * tests/test-getndelim2.c: Correct an off-by-one assertion.
4179 2008-05-03 Simon Josefsson <simon@josefsson.org>
4181 * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
4182 are needed from arpa/inet.h.
4183 * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
4184 Reported by Bruno Haible.
4186 2008-05-02 Jim Meyering <meyering@redhat.com>
4188 avoid compilation error on FreeBSD 6
4189 * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
4191 2008-05-01 Jim Meyering <meyering@redhat.com>
4193 useless-if-before-free: correct --help's exit status description
4194 * build-aux/useless-if-before-free (usage): Like grep, exit 0
4195 for one or more matches, etc. Reported by Bruno Haible.
4197 vc-list-files: make the stand-alone gnulib test work
4198 * modules/vc-list-files-tests (configure.ac):
4199 Define and AC_SUBST abs_aux_dir.
4200 (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
4201 $(abs_top_srcdir) to each script and having each of them
4202 duplicate the work of setting PATH, set PATH here, using
4203 the new variable, abs_aux_dir instead.
4204 * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
4205 * tests/test-vc-list-files-git.sh: Likewise.
4206 Reported by Bruno Haible.
4208 2008-05-01 Bruno Haible <bruno@clisp.org>
4210 * lib/getndelim2.c (getndelim2): Fix newsize computation during
4211 reallocation. Rename 'done' to 'found_delimiter'.
4213 2008-05-01 Jim Meyering <meyering@redhat.com>
4215 vc-list-files: accommodate /bin/sh like the one from Solaris 10
4216 * build-aux/vc-list-files: Use `...`, not $(...).
4218 2008-04-30 Jim Meyering <meyering@redhat.com>
4220 add tests for vc-list-files
4221 * modules/vc-list-files-tests: New module.
4222 * tests/test-vc-list-files-cvs.sh: New file.
4223 * tests/test-vc-list-files-git.sh: New file.
4225 avoid a warning from gcc
4226 * lib/getndelim2.c (IF_LINT): Define.
4227 (getndelim2): Use it to avoid a "may be used uninitialized" warning.
4229 vc-list-files: work properly with build-aux/cvsu, too
4230 * build-aux/vc-list-files: Hoist the "./"-removing code to apply
4231 to all cvs-based clauses.
4233 vc-list-files: work properly in the CVS+awk case, too
4234 * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
4236 vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
4237 * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
4238 take more than one file argument, so . Add quotes, just in case $dir
4239 ever contains a shell meta-character. Prompted by Soren Hansen in
4240 <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
4242 2008-04-29 Eric Blake <ebb9@byu.net>
4244 Optimize getndelim2 to use block operations when possible.
4245 * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
4246 freadseek, and memchr2.
4247 * lib/getndelim2.c (getndelim2): Use them for block reads.
4249 2008-04-29 Bruno Haible <bruno@clisp.org>
4251 * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
4252 * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
4253 * modules/inet_ntop (Depends-on): Add extensions.
4254 * modules/inet_pton (Depends-on): Likewise.
4255 Reported by Simon Josefsson.
4257 2008-04-29 Jim Meyering <meyering@redhat.com>
4259 When the is more than one match in a block, match all of them.
4260 * build-aux/useless-if-before-free: Iterate through each block
4261 until there are no more matches.
4263 Fix broken useless-if-before-free script.
4264 * build-aux/useless-if-before-free: Fix typo: missing "?" after
4265 the expression to match cast of argument to free-like function.
4267 2008-04-29 Eric Blake <ebb9@byu.net>
4270 * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
4272 2008-04-29 Jim Meyering <meyering@redhat.com>
4274 Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
4275 * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
4276 by gnulib to exist and to declare e.g., inet_ntop.
4277 Don't include "inet_ntop.h", now removed.
4279 * m4/arpa_inet_h.m4: Remove trailing blanks.
4281 2008-04-29 Eric Blake <ebb9@byu.net>
4283 Silence valgrind on safe reads beyond potential array bounds.
4284 * lib/rawmemchr.valgrind: New file.
4285 * lib/strchrnul.valgrind: Likewise.
4286 * modules/rawmemchr (Files): Distribute new file.
4287 * modules/strchrnul (Files): Likewise.
4288 Suggested by Bruno Haible.
4290 2008-04-29 Bruno Haible <bruno@clisp.org>
4292 * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
4293 (inet_ntop, inet_pton): Change portability warning's wording.
4294 * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
4295 Invoke gl_CHECK_NEXT_HEADERS.
4296 (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
4297 * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
4299 * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
4300 * modules/arpa_inet (Description): No longer only for systems that
4302 (Depends-on): Add include_next.
4303 (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
4306 2008-04-29 Jim Meyering <meyering@redhat.com>
4308 * modules/mkdir (License): Re-license as LGPLv2+.
4310 2008-04-29 Bruno Haible <bruno@clisp.org>
4312 * modules/rawmemchr (Maintainer): Set to Eric.
4313 * modules/strchrnul (Maintainer): Likewise.
4315 2008-04-29 Simon Josefsson <simon@josefsson.org>
4317 * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
4318 HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
4320 * modules/arpa_inet (arpa/inet.h): Use them.
4322 2008-04-28 Eric Blake <ebb9@byu.net>
4325 * modules/getndelim2-tests: New file.
4326 * tests/test-getndelim2.c: Likewise.
4327 * lib/getndelim2.c (getndelim2): Never return 0. Lock the
4329 * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
4331 * MODULES.html.sh: Document new module.
4333 2008-04-20 Bruno Haible <bruno@clisp.org>
4335 * lib/c-stack.c (die): Use raise.
4336 * modules/c-stack (Depends-on): Add raise.
4338 2008-04-28 Bruno Haible <bruno@clisp.org>
4340 Expect rpmatch to be declared.
4341 * lib/yesno.c (rpmatch): Remove declaration.
4344 * lib/stdlib.in.h (rpmatch): New declaration.
4345 * lib/rpmatch.c: Include <stdlib.h> first.
4346 * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
4347 gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
4348 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
4350 * modules/rpmatch (Depends-on): Add stdlib, extensions.
4351 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
4352 (Include): Set to <stdlib.h>.
4353 * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
4355 * NEWS: Document the change.
4357 2008-04-28 Bruno Haible <bruno@clisp.org>
4359 Change rpmatch to use nl_langinfo when appropriate.
4360 * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
4362 (localized_pattern): New function/macro.
4363 (try): Remove match, nomatch arguments. Copy the pattern into safe
4364 memory before caching it.
4365 (rpmatch): Use localized_pattern. Add translator comments.
4366 * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
4367 Suggested by Eric Blake.
4368 * modules/rpmatch (Depends-on): Add stdbool.
4370 2008-04-28 Eric Blake <ebb9@byu.net>
4372 Add rawmemchr module, matching glibc.
4373 * modules/string (Makefile.am): New indicator.
4374 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
4375 * lib/string.in.h (rawmemchr): Declare when appropriate.
4376 * modules/rawmemchr: New file.
4377 * m4/rawmemchr.m4: Likewise.
4378 * lib/rawmemchr.c: Likewise.
4379 * modules/rawmemchr-tests: Likewise.
4380 * tests/test-rawmemchr.c: Likewise.
4381 * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
4383 * modules/strchrnul (Depends-on): Add rawmemchr.
4384 * lib/strchrnul.c (strchrnul): Optimize a corner case.
4387 * tests/test-strchrnul.c: Reindent.
4388 * lib/strchrnul.c: Likewise.
4390 Optimize and test strchrnul.
4391 * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
4392 * modules/strchrnul-tests: New file.
4393 * tests/test-strchrnul.c: Likewise.
4395 Remove intprops dependency.
4396 * modules/memchr (Depends-on): Remove intprops.
4397 * modules/memrchr (Depends-on): Likewise.
4398 * modules/memchr2 (Depends-on): Likewise.
4399 * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
4400 * lib/memrchr.c (__memrchr): Likewise.
4401 * lib/memrchr2.c (memchr2): Likewise.
4402 Reported by Simon Josefsson.
4404 2008-04-28 Simon Josefsson <simon@josefsson.org>
4406 * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
4407 Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
4409 2008-04-28 Simon Josefsson <simon@josefsson.org>
4411 * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
4413 * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
4415 * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
4417 * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
4419 [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
4421 * m4/inet_pton.m4: Don't check for header files.
4423 * m4/inet_ntop.m4: Don't check for header files.
4425 2008-04-28 Simon Josefsson <simon@josefsson.org>
4427 * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
4428 * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
4429 trigger for cygwin).
4430 Reported by Bruno Haible <bruno@clisp.org>.
4432 2008-04-28 Bruno Haible <bruno@clisp.org>
4434 * doc/posix-functions/strdup.texi: Mention mingw problem.
4436 2008-04-27 Bruno Haible <bruno@clisp.org>
4438 * modules/stat-time-tests (Depends-on): Add sleep.
4439 * tests/test-stat-time.c (force_unlink): New function.
4441 (test_mtime): Remove the ctime related tests.
4442 (test_ctime): New function, containing the ctime related tests.
4443 (main): Call test_ctime, except on native Windows platforms.
4445 2008-04-27 Bruno Haible <bruno@clisp.org>
4447 * lib/rpmatch.c (rpmatch): Add some comments.
4448 Reported by James Youngman <jay@gnu.org>.
4450 2008-04-27 Bruno Haible <bruno@clisp.org>
4452 * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
4455 2008-04-27 Bruno Haible <bruno@clisp.org>
4457 Make test-yesno.sh work on mingw.
4458 * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
4459 * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
4460 (main): Set stdin to binary mode.
4461 * modules/yesno-tests (Depends-on): Add binary-io.
4463 2008-04-27 Bruno Haible <bruno@clisp.org>
4465 Fix 'isfinite' on x86, x86_64, ia64 platforms.
4466 * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
4467 argument that lie outside the IEEE 854 domain.
4468 * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
4469 (gl_ISFINITE): Use it.
4470 * doc/posix-functions/isfinite.texi: Document the fixed bugs.
4472 2008-04-27 Bruno Haible <bruno@clisp.org>
4474 Allow local renaming in config.h.
4475 * lib/memrchr.c (memrchr): Don't undefine outside libc.
4477 2008-04-27 Bruno Haible <bruno@clisp.org>
4479 * lib/memchr.c (__memchr): Change type of 'i'.
4480 * lib/memchr2.c (memchr2): Likewise.
4482 2008-04-26 Eric Blake <ebb9@byu.net>
4483 and Bruno Haible <bruno@clisp.org>
4485 Optimize and test memrchr.
4486 * modules/memrchr (Depends-on): Add intprops.
4487 * lib/memrchr.c (__memrchr): Avoid false positives in loop.
4488 * modules/memrchr-tests: New file.
4489 * tests/test-memrchr.c: New file.
4491 2008-04-26 Bruno Haible <bruno@clisp.org>
4493 Add tentative support for DragonFly BSD.
4494 * lib/stdio-impl.h: Add macros for DragonFly BSD.
4495 * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
4497 * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
4498 restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
4499 * lib/fpurge.c (fpurge): Likewise.
4500 * lib/freadable.c (freaadable): Likewise.
4501 * lib/freadahead.c (freadahead): Likewise.
4502 * lib/freading.c (freading): Likewise.
4503 * lib/freadptr.c (freadptr): Likewise.
4504 * lib/freadseek.c (freadptrinc): Likewise.
4505 * lib/fseeko.c (fseeko): Likewise.
4506 * lib/fseterr.c (fseterr): Likewise.
4507 * lib/fwritable.c (fwritable): Likewise.
4508 * lib/fwriting.c (fwriting): Likewise.
4510 2008-04-26 Bruno Haible <bruno@clisp.org>
4512 * lib/stdio-impl.h: New file.
4513 * lib/fbufmode.c: Include stdio-impl.h.
4514 (fbufmode): Use fp_, remove redundant #defines.
4515 * lib/fflush.c: Include stdio-impl.h.
4516 (clear_ungetc_buffer): Remove redundant #defines.
4517 * lib/fpurge.c: Include stdio-impl.h.
4518 (fpurge): Remove redundant #defines.
4519 * lib/freadable.c: Include stdio-impl.h.
4520 (freadable): Remove redundant #defines.
4521 * lib/freadahead.c: Include stdio-impl.h.
4522 (freadahead): Remove redundant #defines.
4523 * lib/freading.c: Include stdio-impl.h.
4524 (freading): Remove redundant #defines.
4525 * lib/freadptr.c: Include stdio-impl.h.
4526 (freadptr): Remove redundant #defines.
4527 * lib/freadseek.c: Include stdio-impl.h.
4528 (freadptrinc): Remove redundant #defines.
4529 * lib/fseeko.c: Include stdio-impl.h.
4530 (rpl_fseeko): Remove redundant #defines.
4531 * lib/fseterr.c: Include stdio-impl.h.
4532 (fseterr): Remove redundant #defines.
4533 * lib/fwritable.c: Include stdio-impl.h.
4534 (fwritable: Remove redundant #defines.
4535 * lib/fwriting.c: Include stdio-impl.h.
4536 (fwriting): Remove redundant #defines.
4537 * modules/fbufmode (Files): Add lib/stdio-impl.h.
4538 * modules/fflush (Files): Likewise.
4539 * modules/fpurge (Files): Likewise.
4540 * modules/freadable (Files): Likewise.
4541 * modules/freadahead (Files): Likewise.
4542 * modules/freading (Files): Likewise.
4543 * modules/freadptr (Files): Likewise.
4544 * modules/freadseek (Files): Likewise.
4545 * modules/fseeko (Files): Likewise.
4546 * modules/fseterr (Files): Likewise.
4547 * modules/fwritable (Files): Likewise.
4548 * modules/fwriting (Files): Likewise.
4550 2008-04-26 Bruno Haible <bruno@clisp.org>
4552 * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
4553 restore_seek_optimization, update_fpos_cache): New functions, extracted
4555 (rpl_fflush): Use them.
4556 * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
4557 (gl_REPLACE_FFLUSH): Use it.
4559 2008-04-26 Bruno Haible <bruno@clisp.org>
4561 * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
4563 * tests/test-xstrtoimax.sh: Likewise.
4564 * tests/test-xstrtoumax.sh: Likewise.
4565 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
4567 2008-04-26 Bruno Haible <bruno@clisp.org>
4569 * modules/memchr-tests: New file.
4570 * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
4572 2008-04-26 Eric Blake <ebb9@byu.net>
4573 Bruno Haible <bruno@clisp.org>
4575 * lib/memchr.c: Include intprops.h.
4576 (__memchr): Optimize parallel detection of matching bytes. Rename local
4577 variables. Add explanatory comments.
4579 2008-04-26 Bruno Haible <bruno@clisp.org>
4581 Fix module 'memchr', broken since 2000-10-28.
4582 * lib/memchr.c: Outside glibc, define memchr, not __memchr.
4584 2008-04-26 Bruno Haible <bruno@clisp.org>
4586 * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
4589 2008-04-25 Eric Blake <ebb9@byu.net>
4591 Use native fstatat on cygwin 1.7.0.
4592 * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
4595 2008-04-23 Eric Blake <ebb9@byu.net>
4597 Improve memchr2 performance.
4598 * lib/memchr2.c (memchr2): Further optimize parallel detection of
4600 * modules/memchr2 (Depends-on): Use intprops.h.
4602 2008-04-23 Simon Josefsson <simon@josefsson.org>
4604 * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
4605 an inline function instead of a CPP macro. Patch by Ben Pfaff
4606 <blp@cs.stanford.edu>.
4608 2008-04-23 Simon Josefsson <simon@josefsson.org>
4610 * lib/arpa_inet.in.h: New file.
4612 * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
4613 (Makefile.am): Sed in substitute header file.
4615 * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
4616 gl_ARPA_INET_MODULE_INDICATOR. Use them.
4618 * modules/inet_ntop (configure.ac): Use
4619 gl_ARPA_INET_MODULE_INDICATOR.
4621 * modules/inet_pton (configure.ac): Use
4622 gl_ARPA_INET_MODULE_INDICATOR.
4624 2008-04-22 Jim Meyering <meyering@redhat.com>
4626 * modules/verify (License): Re-license as LGPLv2+.
4628 2008-04-22 Simon Josefsson <simon@josefsson.org>
4630 * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
4631 parameter to void* as per POSIX standard (MinGW uses char*).
4633 2008-04-21 Bruno Haible <bruno@clisp.org>
4635 * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
4636 iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
4637 Define to replacements if REPLACE_ISWCNTRL is 1.
4638 * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
4639 If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
4640 * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
4641 * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
4643 * doc/posix-functions/iswalpha.texi: Likewise.
4644 * doc/posix-functions/iswblank.texi: Likewise.
4645 * doc/posix-functions/iswcntrl.texi: Likewise.
4646 * doc/posix-functions/iswdigit.texi: Likewise.
4647 * doc/posix-functions/iswgraph.texi: Likewise.
4648 * doc/posix-functions/iswlower.texi: Likewise.
4649 * doc/posix-functions/iswprint.texi: Likewise.
4650 * doc/posix-functions/iswpunct.texi: Likewise.
4651 * doc/posix-functions/iswspace.texi: Likewise.
4652 * doc/posix-functions/iswupper.texi: Likewise.
4653 * doc/posix-functions/iswxdigit.texi: Likewise.
4654 Reported by Alain Guibert.
4656 2008-04-21 Bruno Haible <bruno@clisp.org>
4658 * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
4659 Patch by Alain Guibert.
4661 2008-04-21 Bruno Haible <bruno@clisp.org>
4663 Fix test failures on mingw.
4664 * tests/test-xstrtol.c (print_no_progname): New function.
4665 (main): Install it in error_print_progname hook.
4666 * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
4667 * tests/test-xstrtoimax.sh: Likewise.
4668 * tests/test-xstrtoumax.sh: Likewise.
4670 2008-04-21 Bruno Haible <bruno@clisp.org>
4672 Fix test failure on mingw.
4673 * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
4675 2008-04-21 Bruno Haible <bruno@clisp.org>
4677 * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
4678 Actually assign a value.
4680 2008-04-20 Bruno Haible <bruno@clisp.org>
4682 Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
4684 * lib/canonicalize.c (canonicalize_file_name): Elide if the
4685 'canonicalize-lgpl' module is also used.
4686 * lib/canonicalize-lgpl.c: Undo last change.
4687 * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
4689 2008-04-20 Bruno Haible <bruno@clisp.org>
4691 * lib/mkdir.c (mkdir): Undefine after the includes, not right after
4692 config.h. Provide _mkdir based fallback for mingw.
4693 * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
4694 if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
4695 * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
4696 gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
4697 rather than defining mkdir in config.h.
4698 * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
4699 (gl_SYS_STAT_H_DEFAULTS): New macro.
4700 (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
4702 * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
4703 HAVE_DECL_MKDIR and HAVE_IO_H.
4705 2008-04-20 Bruno Haible <bruno@clisp.org>
4707 * lib/isapipe.c: Port to native Windows platforms.
4709 2008-04-20 Bruno Haible <bruno@clisp.org>
4711 * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
4713 2008-04-21 Eric Blake <ebb9@byu.net>
4715 Work around preprocessors that don't handle UINTMAX_MAX.
4716 * lib/memchr2.c (memchr2): Avoid embedded #if.
4717 Reported by Alain Guibert, fix suggested by Bruno Haible.
4719 2008-04-21 Simon Josefsson <simon@josefsson.org>
4721 * doc/posix-functions/strftime.texi (strftime): Explain better
4722 Windows incompatibility. Suggested by Micah Cowan
4725 2008-04-20 Bruno Haible <bruno@clisp.org>
4727 * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
4730 2008-04-20 Bruno Haible <bruno@clisp.org>
4732 Fix test failure on platforms with non-GNU iconv.
4733 * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
4734 (U_TO_U8): Use it, rather than u16_to_u8.
4735 * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
4736 units at the end of the input string.
4737 * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
4739 2008-04-20 Bruno Haible <bruno@clisp.org>
4741 * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
4742 when the resulting length is 0.
4743 * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
4745 2008-04-20 Bruno Haible <bruno@clisp.org>
4747 * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
4749 * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
4751 2008-04-20 Bruno Haible <bruno@clisp.org>
4753 * tests/test-tsearch.c (main): Don't use initstate if it is missing.
4754 * modules/tsearch-tests (configure.ac): Test for initstate function.
4756 2008-04-20 Bruno Haible <bruno@clisp.org>
4758 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
4759 for nlink_t if missing.
4760 * tests/test-sys_stat.c: Check the existence of the nlink_t type.
4762 2008-04-19 Bruno Haible <bruno@clisp.org>
4764 Work around snprintf bug on Linux libc5.
4765 * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
4766 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
4768 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
4769 * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
4771 * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
4772 * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
4773 * modules/snprintf (Files): Add m4/printf.m4.
4774 * modules/vsnprintf (Files): Likewise.
4775 * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
4776 * doc/posix-functions/vsnprintf.texi: Likewise.
4778 2008-04-19 Bruno Haible <bruno@clisp.org>
4780 * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
4781 from 0.0058 to less than 10^-7.
4783 2008-04-19 Bruno Haible <bruno@clisp.org>
4785 Fix rounding when a precision is given.
4786 * lib/vasnprintf.c (is_borderline): New function.
4787 (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
4789 * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
4791 * tests/test-vasprintf-posix.c (test_function): Likewise.
4792 * tests/test-snprintf-posix.h (test_function): Likewise.
4793 * tests/test-sprintf-posix.h (test_function): Likewise.
4794 * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
4795 * tests/test-printf-posix.h (test_function): Likewise.
4796 * tests/test-printf-posix.output: Update.
4797 Reported by John Darrington <john@darrington.wattle.id.au> via
4798 Ben Pfaff <blp@cs.stanford.edu>.
4800 2008-04-18 Simon Josefsson <simon@josefsson.org>
4802 * doc/posix-functions/strftime.texi (strftime): Clarify platform.
4803 Suggested by Bruno Haible <bruno@clisp.org>.
4805 2008-04-17 Bruno Haible <bruno@clisp.org>
4807 * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
4808 gl_recursive_lock_destroy): Provide no-op definitions for the dummy
4810 Patch by Bruce Merry <bmerry@gmail.com>.
4812 2008-04-17 Simon Josefsson <simon@josefsson.org>
4814 * doc/posix-functions/strftime.texi (strftime): Mention that %e
4815 doesn't work under Windows.
4817 2008-04-16 Bruno Haible <bruno@clisp.org>
4819 * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
4821 (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
4822 SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
4823 SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
4824 SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
4825 SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
4826 SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
4827 SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
4829 (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
4830 Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
4831 Northern Sotho, Uighur.
4833 2008-04-16 Bruno Haible <bruno@clisp.org>
4835 * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
4836 (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
4837 (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
4838 Reported by Daniel Bergström <daniel@octocode.com>.
4840 2007-12-25 KJK::Hyperion <hackbunny@reactos.com>
4841 Bruno Haible <bruno@clisp.org>
4843 * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
4845 (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
4846 New functions, mostly extracted from gl_locale_name_default.
4847 (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
4849 2008-04-16 Eric Blake <ebb9@byu.net>
4851 Adjust strtod detection to catch glibc 2.7 bug.
4852 * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
4853 Reported by John Gatewood Ham.
4855 2008-04-16 Bruno Haible <bruno@clisp.org>
4857 Add tentative support for Linux libc5.
4858 * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
4859 * lib/fpurge.c (fpurge): Likewise.
4860 * lib/freadable.c (freadable): Likewise.
4861 * lib/freadahead.c (freadahead): Likewise.
4862 * lib/freading.c (freading): Likewise.
4863 * lib/freadptr.c (freadptr): Likewise.
4864 * lib/freadseek.c (freadptrinc): Likewise.
4865 * lib/fseeko.c (rpl_fseeko): Likewise.
4866 * lib/fseterr.c (fseterr): Likewise.
4867 * lib/fwritable.c (fwritable): Likewise.
4868 * lib/fwriting.c (fwriting): Likewise.
4869 Reported by Alain Guibert <alguibert+bts@free.fr>.
4871 2008-04-15 Bruno Haible <bruno@clisp.org>
4873 * modules/mathl (configure.ac): Define module indicator.
4875 2008-04-15 Bruno Haible <bruno@clisp.org>
4877 * lib/logl.c (logl): Remove unused variables.
4879 2008-04-15 Bruno Haible <bruno@clisp.org>
4881 * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
4884 2008-04-15 Bruno Haible <bruno@clisp.org>
4886 * lib/trim.c (trim2): Fix argument of isspace() macro.
4888 2008-04-15 Paolo Bonzini <bonzini@gnu.org>
4890 * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
4892 * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
4894 2008-04-14 Bruno Haible <bruno@clisp.org>
4896 * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
4897 AC_LANG_PROGRAM argument.
4898 * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
4899 * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
4900 * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
4901 * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
4902 * m4/math_h.m4 (gl_MATH_H): Likewise.
4903 * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
4904 * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
4905 * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
4906 * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
4907 * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
4908 * m4/regex.m4 (gl_REGEX): Likewise.
4909 * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
4910 * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
4911 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
4912 * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
4913 * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
4914 * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
4915 * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
4916 * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
4918 2008-04-14 Jim Meyering <meyering@redhat.com>
4920 test-strtod: fix typos: s/abs/fabs/
4921 * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
4923 2008-04-13 Bruno Haible <bruno@clisp.org>
4925 Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
4926 * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
4927 module is also used and while not building the reloc-wrapper.
4929 2008-04-13 Bruno Haible <bruno@clisp.org>
4931 * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
4933 2008-04-13 Bruno Haible <bruno@clisp.org>
4935 Fix AIX compilation failure introduced on 2008-04-02.
4936 * tests/test-frexp.c (exp): Undefine before redefining.
4937 * tests/test-frexpl.c (exp): Likewise.
4939 2008-04-13 Bruno Haible <bruno@clisp.org>
4941 Work around a HP-UX stdio bug.
4942 * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
4943 * tests/test-ftello.c (main): Likewise.
4944 * doc/posix-functions/ftell.texi: Mention HP-UX bug.
4945 * doc/posix-functions/ftello.texi: Likewise.
4947 2008-04-13 Bruno Haible <bruno@clisp.org>
4949 Make test-signbit pass on HP-UX/hppa.
4950 * tests/test-signbit.c (minus_zerol): New variable.
4951 (test_signbitl): Use it.
4953 2008-04-13 Bruno Haible <bruno@clisp.org>
4955 Make truncl work on OSF/1 4.0.
4956 * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
4957 Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
4958 * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
4959 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
4961 * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
4963 * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
4965 2008-04-13 Bruno Haible <bruno@clisp.org>
4967 * lib/unictype.h: Remove trailing comma from enumeration definitions.
4969 2008-04-13 Bruno Haible <bruno@clisp.org>
4971 * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
4972 expression, so as to avoid HP-UX 11 cc compiler bug.
4974 2008-04-13 Bruno Haible <bruno@clisp.org>
4976 * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
4978 2008-04-13 Bruno Haible <bruno@clisp.org>
4980 * lib/git-merge-changelog.c: Remove empty declaration outside of
4983 2008-04-13 Bruno Haible <bruno@clisp.org>
4985 * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
4987 2008-04-13 Bruno Haible <bruno@clisp.org>
4989 * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
4990 * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
4991 * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
4992 also if it exists but lacks definitions of the SHUT_* macros.
4993 * modules/sys_socket (Description): Update.
4994 Reported by Elbert Pol <e.pol@chello.nl>.
4996 2008-04-13 Bruno Haible <bruno@clisp.org>
4998 * lib/localcharset.c (OS2): Don't redefine if already defined.
4999 Reported by Elbert Pol <e.pol@chello.nl>.
5001 2008-04-13 Bruno Haible <bruno@clisp.org>
5003 * lib/binary-io.h [__EMX__]: Include <io.h>.
5004 Reported by Elbert Pol <e.pol@chello.nl>.
5006 2008-04-12 Bruno Haible <bruno@clisp.org>
5008 * lib/fpucw.h: Enable the definitions also for x86_64.
5009 Needed for NetBSD/x86_64.
5010 Reported by Thomas Klausner <tk@giga.or.at>.
5012 2008-04-12 Bruno Haible <bruno@clisp.org>
5014 * tests/test-strtod.c: Include isnand.h.
5015 (main): Use isnand instead of isnan.
5016 Reported by Jim Meyering.
5018 2008-04-12 Bruno Haible <bruno@clisp.org>
5020 * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
5021 Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
5023 2008-04-12 Jim Meyering <meyering@redhat.com>
5025 * m4/math_h.m4 (gl_MATH_H): Fix typos.
5027 2008-04-12 Bruno Haible <bruno@clisp.org>
5029 * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
5030 Reported by Elbert Pol <e.pol@chello.nl>.
5032 2008-04-12 Eric Blake <ebb9@byu.net>
5034 Work around Solaris 10 math.h bug.
5035 * m4/math_h.m4 (gl_MATH_H): Check for bug.
5036 (gl_MATH_H_DEFAULTS): Set up default.
5037 * modules/math (Makefile.am): Replace new indicators.
5038 * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
5039 * tests/test-math.c (main): Test this.
5040 * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
5041 * doc/posix-headers/math.texi (math.h): Mention bug.
5042 Reported by Nelson H. F. Beebe and Jim Meyering.
5044 2008-04-11 Bruno Haible <bruno@clisp.org>
5046 Adapt to future versions of Apple GCC.
5047 * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
5048 Reported by Peter O'Gorman <peter@pogma.com>.
5050 2008-04-11 Bruno Haible <bruno@clisp.org>
5052 * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
5054 2008-04-11 Bruno Haible <bruno@clisp.org>
5056 * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
5058 * modules/getaddrinfo-tests (Makefile.am): Define
5059 test_getaddrinfo_LDADD.
5061 2008-04-11 Bruno Haible <bruno@clisp.org>
5063 * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
5064 (init): Fix syntax error.
5065 * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
5068 2008-04-11 Bruno Haible <bruno@clisp.org>
5070 * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
5071 * modules/glob (Depends-on): Add stdbool.
5073 2008-04-11 Bruno Haible <bruno@clisp.org>
5075 * lib/trim.c: Include <string.h>.
5077 2008-04-11 Eric Blake <ebb9@byu.net>
5079 Avoid compile failure on OS/2.
5080 * lib/regex_internal.h (internal_function): Disable optimization
5081 on OS/2 (__EMX__), where it caused compiler error.
5082 Reported by Elbert Pol.
5084 2008-04-11 Bruno Haible <bruno@clisp.org>
5086 Flush the standard error stream before aborting. Needed on mingw.
5087 * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
5088 * tests/test-array_list.c (ASSERT): Likewise.
5089 * tests/test-array_oset.c (ASSERT): Likewise.
5090 * tests/test-avltree_list.c (ASSERT): Likewise.
5091 * tests/test-avltree_oset.c (ASSERT): Likewise.
5092 * tests/test-avltreehash_list.c (ASSERT): Likewise.
5093 * tests/test-binary-io.c (ASSERT): Likewise.
5094 * tests/test-byteswap.c (ASSERT): Likewise.
5095 * tests/test-c-ctype.c (ASSERT): Likewise.
5096 * tests/test-c-strcasecmp.c (ASSERT): Likewise.
5097 * tests/test-c-strcasestr.c (ASSERT): Likewise.
5098 * tests/test-c-strncasecmp.c (ASSERT): Likewise.
5099 * tests/test-c-strstr.c (ASSERT): Likewise.
5100 * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
5101 * tests/test-canonicalize.c (ASSERT): Likewise.
5102 * tests/test-carray_list.c (ASSERT): Likewise.
5103 * tests/test-ceilf1.c (ASSERT): Likewise.
5104 * tests/test-ceilf2.c (ASSERT): Likewise.
5105 * tests/test-ceill.c (ASSERT): Likewise.
5106 * tests/test-count-one-bits.c (ASSERT): Likewise.
5107 * tests/test-fbufmode.c (ASSERT): Likewise.
5108 * tests/test-fflush2.c (ASSERT): Likewise.
5109 * tests/test-floorf1.c (ASSERT): Likewise.
5110 * tests/test-floorf2.c (ASSERT): Likewise.
5111 * tests/test-floorl.c (ASSERT): Likewise.
5112 * tests/test-fopen.c (ASSERT): Likewise.
5113 * tests/test-fpending.c (ASSERT): Likewise.
5114 * tests/test-fprintf-posix.c (ASSERT): Likewise.
5115 * tests/test-fpurge.c (ASSERT): Likewise.
5116 * tests/test-freadable.c (ASSERT): Likewise.
5117 * tests/test-freadahead.c (ASSERT): Likewise.
5118 * tests/test-freading.c (ASSERT): Likewise.
5119 * tests/test-freadptr.c (ASSERT): Likewise.
5120 * tests/test-freadptr2.c (ASSERT): Likewise.
5121 * tests/test-freadseek.c (ASSERT): Likewise.
5122 * tests/test-freopen.c (ASSERT): Likewise.
5123 * tests/test-frexp.c (ASSERT): Likewise.
5124 * tests/test-frexpl.c (ASSERT): Likewise.
5125 * tests/test-fseek.c (ASSERT): Likewise.
5126 * tests/test-fseeko.c (ASSERT): Likewise.
5127 * tests/test-fstrcmp.c (ASSERT): Likewise.
5128 * tests/test-ftell.c (ASSERT): Likewise.
5129 * tests/test-ftello.c (ASSERT): Likewise.
5130 * tests/test-func.c (ASSERT): Likewise.
5131 * tests/test-fwritable.c (ASSERT): Likewise.
5132 * tests/test-fwriting.c (ASSERT): Likewise.
5133 * tests/test-getdelim.c (ASSERT): Likewise.
5134 * tests/test-getline.c (ASSERT): Likewise.
5135 * tests/test-i-ring.c (ASSERT): Likewise.
5136 * tests/test-iconv-utf.c (ASSERT): Likewise.
5137 * tests/test-iconv.c (ASSERT): Likewise.
5138 * tests/test-isfinite.c (ASSERT): Likewise.
5139 * tests/test-isnand.c (ASSERT): Likewise.
5140 * tests/test-isnanf.c (ASSERT): Likewise.
5141 * tests/test-isnanl.h (ASSERT): Likewise.
5142 * tests/test-ldexpl.c (ASSERT): Likewise.
5143 * tests/test-linked_list.c (ASSERT): Likewise.
5144 * tests/test-linkedhash_list.c (ASSERT): Likewise.
5145 * tests/test-localename.c (ASSERT): Likewise.
5146 * tests/test-lseek.c (ASSERT): Likewise.
5147 * tests/test-mbscasecmp.c (ASSERT): Likewise.
5148 * tests/test-mbscasestr1.c (ASSERT): Likewise.
5149 * tests/test-mbscasestr2.c (ASSERT): Likewise.
5150 * tests/test-mbscasestr3.c (ASSERT): Likewise.
5151 * tests/test-mbscasestr4.c (ASSERT): Likewise.
5152 * tests/test-mbschr.c (ASSERT): Likewise.
5153 * tests/test-mbscspn.c (ASSERT): Likewise.
5154 * tests/test-mbsncasecmp.c (ASSERT): Likewise.
5155 * tests/test-mbspbrk.c (ASSERT): Likewise.
5156 * tests/test-mbspcasecmp.c (ASSERT): Likewise.
5157 * tests/test-mbsrchr.c (ASSERT): Likewise.
5158 * tests/test-mbsspn.c (ASSERT): Likewise.
5159 * tests/test-mbsstr1.c (ASSERT): Likewise.
5160 * tests/test-mbsstr2.c (ASSERT): Likewise.
5161 * tests/test-mbsstr3.c (ASSERT): Likewise.
5162 * tests/test-memchr2.c (ASSERT): Likewise.
5163 * tests/test-memmem.c (ASSERT): Likewise.
5164 * tests/test-open.c (ASSERT): Likewise.
5165 * tests/test-printf-frexp.c (ASSERT): Likewise.
5166 * tests/test-printf-frexpl.c (ASSERT): Likewise.
5167 * tests/test-printf-posix.c (ASSERT): Likewise.
5168 * tests/test-quotearg.c (ASSERT): Likewise.
5169 * tests/test-rbtree_list.c (ASSERT): Likewise.
5170 * tests/test-rbtree_oset.c (ASSERT): Likewise.
5171 * tests/test-rbtreehash_list.c (ASSERT): Likewise.
5172 * tests/test-round1.c (ASSERT): Likewise.
5173 * tests/test-roundf1.c (ASSERT): Likewise.
5174 * tests/test-roundl.c (ASSERT): Likewise.
5175 * tests/test-signbit.c (ASSERT): Likewise.
5176 * tests/test-sleep.c (ASSERT): Likewise.
5177 * tests/test-snprintf-posix.c (ASSERT): Likewise.
5178 * tests/test-snprintf.c (ASSERT): Likewise.
5179 * tests/test-sprintf-posix.c (ASSERT): Likewise.
5180 * tests/test-stat-time.c (ASSERT): Likewise.
5181 * tests/test-strcasestr.c (ASSERT): Likewise.
5182 * tests/test-strerror.c (ASSERT): Likewise.
5183 * tests/test-striconv.c (ASSERT): Likewise.
5184 * tests/test-striconveh.c (ASSERT): Likewise.
5185 * tests/test-striconveha.c (ASSERT): Likewise.
5186 * tests/test-strsignal.c (ASSERT): Likewise.
5187 * tests/test-strstr.c (ASSERT): Likewise.
5188 * tests/test-strtod.c (ASSERT): Likewise.
5189 * tests/test-trunc1.c (ASSERT): Likewise.
5190 * tests/test-trunc2.c (ASSERT): Likewise.
5191 * tests/test-truncf1.c (ASSERT): Likewise.
5192 * tests/test-truncf2.c (ASSERT): Likewise.
5193 * tests/test-truncl.c (ASSERT): Likewise.
5194 * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
5195 * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
5196 * tests/test-vasnprintf.c (ASSERT): Likewise.
5197 * tests/test-vasprintf-posix.c (ASSERT): Likewise.
5198 * tests/test-vasprintf.c (ASSERT): Likewise.
5199 * tests/test-vfprintf-posix.c (ASSERT): Likewise.
5200 * tests/test-vprintf-posix.c (ASSERT): Likewise.
5201 * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
5202 * tests/test-vsnprintf.c (ASSERT): Likewise.
5203 * tests/test-vsprintf-posix.c (ASSERT): Likewise.
5204 * tests/test-wcwidth.c (ASSERT): Likewise.
5205 * tests/test-xfprintf-posix.c (ASSERT): Likewise.
5206 * tests/test-xprintf-posix.c (ASSERT): Likewise.
5207 * tests/test-xvasprintf.c (ASSERT): Likewise.
5208 * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
5209 * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
5210 * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
5211 * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
5212 * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
5213 * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
5214 * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
5215 * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
5216 * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
5217 * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
5218 * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
5219 * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
5220 * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
5221 * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
5222 * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
5223 * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
5224 * tests/unictype/test-block_list.c (ASSERT): Likewise.
5225 * tests/unictype/test-block_of.c (ASSERT): Likewise.
5226 * tests/unictype/test-block_test.c (ASSERT): Likewise.
5227 * tests/unictype/test-categ_and.c (ASSERT): Likewise.
5228 * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
5229 * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
5230 * tests/unictype/test-categ_name.c (ASSERT): Likewise.
5231 * tests/unictype/test-categ_none.c (ASSERT): Likewise.
5232 * tests/unictype/test-categ_of.c (ASSERT): Likewise.
5233 * tests/unictype/test-categ_or.c (ASSERT): Likewise.
5234 * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
5235 * tests/unictype/test-combining.c (ASSERT): Likewise.
5236 * tests/unictype/test-decdigit.c (ASSERT): Likewise.
5237 * tests/unictype/test-digit.c (ASSERT): Likewise.
5238 * tests/unictype/test-mirror.c (ASSERT): Likewise.
5239 * tests/unictype/test-numeric.c (ASSERT): Likewise.
5240 * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
5241 * tests/unictype/test-pr_test.c (ASSERT): Likewise.
5242 * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
5243 * tests/unictype/test-scripts.c (ASSERT): Likewise.
5244 * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
5245 * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
5246 * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
5247 * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
5248 * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
5249 * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
5250 * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
5251 * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
5252 * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
5253 * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
5254 * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
5255 * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
5256 * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
5257 * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
5258 * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
5259 * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
5260 * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
5261 * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
5262 * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
5263 * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
5264 * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
5265 * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
5266 * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
5267 * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
5268 * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
5269 * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
5270 * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
5271 * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
5272 * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
5273 * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
5274 * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
5275 * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
5276 * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
5277 * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
5278 * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
5279 * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
5280 * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
5281 Reported by Eric Blake.
5283 2008-04-11 Bruno Haible <bruno@clisp.org>
5285 * lib/wchar.in.h: Tweak comment.
5287 2008-04-11 Bruno Haible <bruno@clisp.org>
5289 Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
5290 * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
5292 * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
5294 2008-04-11 Bruno Haible <bruno@clisp.org>
5296 * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
5298 2008-04-11 Simon Josefsson <simon@josefsson.org>
5300 * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
5301 of attempting to use non-existing /dev/*random. Based on patch
5302 from Adam Strzelecki <ono@java.pl> in
5303 <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
5305 2008-04-08 Bruno Haible <bruno@clisp.org>
5307 Add tentative support for emx+gcc.
5308 * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
5309 * lib/fpurge.c (fpurge): Likewise.
5310 * lib/freadable.c (freadable): Likewise.
5311 * lib/freadahead.c (freadahead): Likewise.
5312 * lib/freading.c (freading): Likewise.
5313 * lib/freadptr.c (freadptr): Likewise.
5314 * lib/freadseek.c (freadptrinc): Likewise.
5315 * lib/fseeko.c (rpl_fseeko): Likewise.
5316 * lib/fseterr.c (fseterr): Likewise.
5317 * lib/fwritable.c (fwritable): Likewise.
5318 * lib/fwriting.c (fwriting): Likewise.
5319 * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
5321 2008-04-09 Eric Blake <ebb9@byu.net>
5323 Avoid some autoconf warnings.
5324 * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
5325 * m4/acl.m4 (gl_FUNC_ACL): Likewise.
5326 * m4/afs.m4 (gl_AFS): Likewise.
5327 * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
5328 * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
5329 * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
5330 * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
5331 (gl_INTEGER_TYPE_SUFFIX): Likewise.
5332 * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
5333 (AC_CHECK_DECLS_ONCE): Likewise.
5335 * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
5336 gnulib-tool requires autoconf 2.59 or better.
5337 * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
5339 2008-04-08 Eric Blake <ebb9@byu.net>
5341 Use 'git describe --match' if present (added in git 1.5.5).
5342 * build-aux/git-version-gen: Limit result to tags that match 'v*'
5345 2008-04-08 Bruno Haible <bruno@clisp.org>
5347 Add tentative support for OpenServer.
5348 * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
5350 * lib/fpurge.c (fpurge): Likewise.
5351 * lib/freadable.c (freadable): Likewise.
5352 * lib/freadahead.c (freadahead): Likewise.
5353 * lib/freading.c (freading): Likewise.
5354 * lib/freadptr.c (freadptr): Likewise.
5355 * lib/freadseek.c (freadptrinc): Likewise.
5356 * lib/fseeko.c (rpl_fseeko): Likewise.
5357 * lib/fseterr.c (fseterr): Likewise.
5358 * lib/fwritable.c (fwritable): Likewise.
5359 * lib/fwriting.c (fwriting): Likewise.
5360 Reported by Roger Cornelius <rac@tenzing.org> and
5361 Brian K. White <brian@aljex.com>.
5363 2008-04-06 Jim Meyering <meyering@redhat.com>
5365 * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
5367 2008-04-06 Bruno Haible <bruno@clisp.org>
5369 Avoid possible error with non-ASCII bytes in UTF-8 locales.
5370 * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
5371 * tests/test-printf-posix.sh: Likewise.
5372 * tests/test-vfprintf-posix.sh: Likewise.
5373 * tests/test-vprintf-posix.sh: Likewise.
5374 * tests/test-xprintf-posix.sh: Likewise.
5376 2008-04-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5378 * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
5379 hide error from 'ls', needed on OS/2.
5380 Report by Elbert Pol <elbert.pol@gmail.com>.
5382 2008-04-04 Eric Blake <ebb9@byu.net>
5384 Make test-fseeko.c failures meaningful.
5385 * tests/test-fseeko.c: Print line number on failure.
5386 * tests/test-fseek.c: Likewise.
5387 Reported by Nelson H. F. Beebe.
5389 Improve strtod bug detection check.
5390 * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
5391 required for Solaris 10.
5392 Reported by Bob Friesenhahn and Nelson H. F. Beebe.
5394 2008-04-04 Bruno Haible <bruno@clisp.org>
5396 * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
5399 2008-04-03 Eric Blake <ebb9@byu.net>
5401 Ensure sane .version contents.
5402 * top/GNUmakefile (_dummy): Also delete .version when rebuilding
5404 * build-aux/git-version-gen: Improve documentation.
5406 Make GNU make output nicer.
5407 * top/GNUmakefile [!_have-Makefile]: Add dependency on
5408 MAKECMDGOALS to enforce message for all command line targets. Set
5409 srcdir for use in maint.mk.
5411 Another maintainer tweak.
5412 * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
5413 a target that regenerates version.
5415 2008-04-03 Jim Meyering <meyering@redhat.com>
5417 vc-list-files: don't cause coreutils "make po-check" failure
5418 * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
5420 2008-04-03 Eric Blake <ebb9@byu.net>
5422 Allow VPATH usage of vc-list-files.
5423 * build-aux/vc-list-files (scriptversion): Add timestamp.
5424 (options): Add --help, --version, -C.
5425 (CVS): Support installed cvsu.
5427 2008-04-02 Bruno Haible <bruno@clisp.org>
5429 Avoid some "statement with no effect" warnings from gcc.
5430 * tests/test-wctype.c (main): Explicitly ignore unused values.
5431 Reported by Jim Meyering.
5433 2008-04-02 Jim Meyering <meyering@redhat.com>
5435 Avoid some warnings from "gcc -Wshadow".
5436 * tests/test-frexp.c (exp): Define to a different identifier.
5437 * tests/test-frexpl.c (exp): Likewise.
5439 2008-04-03 Jim Meyering <meyering@redhat.com>
5441 bootstrap: remove dangling *.[ch] symlinks from lib
5442 * build-aux/bootstrap [dangling symlink removal]: Move find's
5443 -depth option to precede all others, to avoid a warning.
5444 Remove *.[ch] files too, and from "$source_base" (usually lib/).
5446 2008-04-02 Bruno Haible <bruno@clisp.org>
5448 Avoid some warnings from "gcc -Wshadow".
5449 * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
5450 * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
5451 * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
5452 * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
5453 Reported by Jim Meyering.
5455 2008-04-01 Bruno Haible <bruno@clisp.org>
5457 Fix test to work on IRIX 6.5 with cc.
5458 * tests/test-math.c (numeric_equal): New function.
5461 2008-04-01 Bruno Haible <bruno@clisp.org>
5463 * doc/posix-headers/math.texi: Refine documentation of NAN problem.
5465 2008-04-01 Bruno Haible <bruno@clisp.org>
5467 * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
5468 (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
5469 * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
5470 (Depends-on): Remove math.
5472 * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
5473 (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
5474 * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
5475 (Depends-on): Remove math.
5477 * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
5478 (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
5479 * modules/snprintf-posix-tests (Files): Add tests/nan.h.
5480 (Depends-on): Remove math.
5481 * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
5482 (Depends-on): Remove math.
5484 * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
5485 (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
5486 * modules/sprintf-posix-tests (Files): Add tests/nan.h.
5487 (Depends-on): Remove math.
5488 * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
5489 (Depends-on): Remove math.
5491 * tests/test-round1.c: Include nan.h.
5492 (main): Use NaNd instead of NAN.
5493 * modules/round-tests (Files): Add tests/nan.h.
5495 * tests/test-trunc1.c: Include nan.h.
5496 (main): Use NaNd instead of NAN.
5497 * modules/trunc-tests (Files): Add tests/nan.h.
5499 * tests/test-roundf1.c: Include nan.h.
5500 (main): Use NaNf instead of NAN.
5501 * modules/roundf-tests (Files): Add tests/nan.h.
5503 * tests/test-truncf1.c: Include nan.h.
5504 (main): Use NaNf instead of NAN.
5505 * modules/truncf-tests (Files): Add tests/nan.h.
5507 * tests/test-ceilf1.c: Include nan.h.
5508 (main): Use NaNf instead of NAN.
5509 * modules/ceilf-tests (Files): Add tests/nan.h.
5511 * tests/test-floorf1.c: Include nan.h.
5512 (main): Use NaNf instead of NAN.
5513 * modules/floorf-tests (Files): Add tests/nan.h.
5515 * tests/test-isnanf.c: Include nan.h instead of <math.h>.
5516 (main): Use NaNf instead of NAN.
5517 * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
5519 * tests/test-isnand.c: Include nan.h instead of <math.h>.
5520 (main): Use NaNd instead of NAN.
5521 * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
5523 * tests/test-frexp.c: Include nan.h.
5524 (main): Use NaNd instead of NAN.
5525 * modules/frexp-tests (Files): Add tests/nan.h.
5527 * lib/isnan.c: Don't include <math.h>.
5528 (FUNC): Don't use NAN macro.
5529 * modules/isnand-nolibm (Depends-on): Remove math.
5530 * modules/isnanf-nolibm (Depends-on): Remove math.
5531 * modules/isnanl (Depends-on): Remove math.
5532 * modules/isnanl-nolibm (Depends-on): Remove math.
5534 * tests/nan.h: New file.
5536 2008-04-01 Eric Blake <ebb9@byu.net>
5539 * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
5540 values to be the right type.
5542 For now, cater to gnulib strtod inaccuracies.
5543 * tests/test-strtod.c (main): Allow 1-ulp error on expected
5544 fractional results. While not as nice from a QoI perspective, it
5545 is a quicker patch than correctly implementing decimal to binary
5548 2008-03-31 Eric Blake <ebb9@byu.net>
5550 Guarantee a definition of NAN.
5551 * lib/math.in.h (NAN): Define if missing.
5552 * tests/test-math.c (main): Test it.
5553 * doc/posix-headers/math.texi (math.h): Document this.
5554 * lib/isnan.c (rpl_isnand): Use it.
5555 * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
5556 * tests/test-floorf1.c (NaN): Likewise.
5557 * tests/test-frexp.c (NaN): Likewise.
5558 * tests/test-isnand.c (NaN): Likewise.
5559 * tests/test-isnanf.c (NaN): Likewise.
5560 * tests/test-round1.c (NaN): Likewise.
5561 * tests/test-roundf1.c (NaN): Likewise.
5562 * tests/test-snprintf-posix.h (NaN): Likewise.
5563 * tests/test-sprintf-posix.h (NaN): Likewise.
5564 * tests/test-trunc1.c (NaN): Likewise.
5565 * tests/test-truncf1.c (NaN): Likewise.
5566 * tests/test-vasnprintf-posix.c (NaN): Likewise.
5567 * tests/test-vasprintf-posix.c (NaN): Likewise.
5568 * modules/isnand-nolibm (Depends-on): Add math.
5569 * modules/isnanf-nolibm (Depends-on): Likewise.
5570 * modules/isnanl (Depends-on): Likewise.
5571 * modules/isnanl-nolibm (Depends-on): Likewise.
5572 * modules/snprintf-posix-tests (Depends-on): Likewise.
5573 * modules/sprintf-posix-tests (Depends-on): Likewise.
5574 * modules/vsnprintf-posix-tests (Depends-on): Likewise.
5575 * modules/vsprintf-posix-tests (Depends-on): Likewise.
5576 * modules/vasnprintf-posix-tests (Depends-on): Likewise.
5577 * modules/vasprintf-posix-tests (Depends-on): Likewise.
5579 2008-03-31 Bruno Haible <bruno@clisp.org>
5581 * tests/test-strtod.c (main): Update results for OSF/1 platforms.
5582 * doc/posix-functions/strtod.texi: Likewise.
5584 2008-03-31 Bruno Haible <bruno@clisp.org>
5586 * tests/test-strtod.c (main): Don't use C99 syntax.
5588 2008-03-31 Bruno Haible <bruno@clisp.org>
5590 * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
5591 Reported by Eric Blake.
5593 2008-03-31 Jim Meyering <meyering@redhat.com>
5595 Don't compare actual signbit return values.
5596 * tests/test-strtod.c (main): Rather, compare only their
5597 zero/non-zero nature.
5599 2008-03-31 Eric Blake <ebb9@byu.net>
5601 More strtod documentation.
5602 * doc/posix-functions/strtod.texi (strtod): Interpret more test
5603 failures as distinct bugs.
5605 2008-03-30 Paul Eggert <eggert@cs.ucla.edu>
5607 * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
5608 Problem reported by Erik Benada in
5609 <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
5611 2008-03-30 Bruno Haible <bruno@clisp.org>
5613 * tests/test-strtod.c: Add comments about which assertion fails on which
5615 * doc/posix-functions/strtod.texi: Add info about many more platforms.
5617 2008-03-30 Eric Blake <ebb9@byu.net>
5619 Test signbit behavior on zeros.
5620 * tests/test-signbit.c (test_signbitf): Add tests for zero.
5621 (test_signbitd, test_signbitl): Likewise.
5623 More strtod touchups.
5624 * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
5625 sign of negative underflow, for now. Use .5, not .1.
5626 * doc/posix-functions/strtod.texi (strtod): Mention these
5628 Reported by Jim Meyering.
5630 2008-03-30 Bruno Haible <bruno@clisp.org>
5632 * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
5633 from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
5635 2008-03-30 Bruno Haible <bruno@clisp.org>
5637 Avoid failure when attempting to return empty iconv results on some
5639 * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
5640 allocation, don't report ENOMEM when the resulting string is empty.
5642 2008-03-30 Bruno Haible <bruno@clisp.org>
5645 * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
5646 Don't consider the width for tmp_length. Check count against tmp_length
5647 before doing the padding. Ensure enough allocation during padding.
5649 2008-03-30 Eric Blake <ebb9@byu.net>
5652 * lib/strtod.c (strtod): Avoid compiler warnings.
5653 Reported by Jim Meyering.
5655 2008-03-30 Bruno Haible <bruno@clisp.org>
5657 * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
5658 * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
5659 * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
5660 * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
5661 * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
5662 * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
5663 * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
5664 * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
5666 * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
5667 * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
5668 * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
5669 * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
5670 * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
5671 * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
5672 * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
5673 * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
5675 * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
5676 * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
5677 * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
5678 * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
5679 * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
5680 * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
5681 * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
5682 * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
5684 * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
5685 * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
5687 * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
5688 * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
5690 * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
5691 * modules/xvasprintf (Depends-on): Add EOVERFLOW.
5693 * lib/vsprintf.c (EOVERFLOW): Remove fallback.
5694 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
5695 * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
5697 * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
5698 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
5699 * modules/vsnprintf (Depends-on): Add EOVERFLOW.
5701 * lib/vfprintf.c (EOVERFLOW): Remove fallback.
5702 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
5703 * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
5705 * lib/vasprintf.c (EOVERFLOW): Remove fallback.
5706 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
5707 * modules/vasprintf (Depends-on): Add EOVERFLOW.
5709 * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
5710 * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
5711 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
5712 * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
5713 (Depends-on): Add EOVERFLOW.
5714 * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
5715 (Depends-on): Add EOVERFLOW.
5716 * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
5717 (Depends-on): Add EOVERFLOW.
5718 * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
5719 (Depends-on): Add EOVERFLOW.
5720 * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
5721 (Depends-on): Add EOVERFLOW.
5722 * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
5723 (Depends-on): Add EOVERFLOW.
5724 * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
5725 (Depends-on): Add EOVERFLOW.
5726 * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
5727 (Depends-on): Add EOVERFLOW.
5729 * lib/sprintf.c (EOVERFLOW): Remove fallback.
5730 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
5731 * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
5733 * lib/snprintf.c (EOVERFLOW): Remove fallback.
5734 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
5735 * modules/snprintf (Depends-on): Add EOVERFLOW.
5737 * lib/poll.c (EOVERFLOW): Remove fallback.
5738 * modules/poll (Depends-on): Add EOVERFLOW.
5740 * lib/getugroups.c (EOVERFLOW): Remove fallback.
5741 * modules/getugroups (Depends-on): Add EOVERFLOW.
5743 * lib/getdelim.c (EOVERFLOW): Remove fallback.
5744 * modules/getdelim (Depends-on): Add EOVERFLOW.
5746 * lib/ftell.c (EOVERFLOW): Remove fallback.
5747 * modules/ftell (Depends-on): Add EOVERFLOW.
5749 * lib/fprintf.c (EOVERFLOW): Remove fallback.
5750 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
5751 * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
5753 * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
5755 * modules/EOVERFLOW-tests: New file.
5756 * tests/test-EOVERFLOW.c: New file.
5758 * modules/EOVERFLOW: New file.
5759 * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
5761 2008-03-30 Bruno Haible <bruno@clisp.org>
5763 Fix bug introduced on 2007-06-10.
5764 * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
5765 spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
5767 2008-03-30 Bruno Haible <bruno@clisp.org>
5769 Improve freadseek's efficiency after ungetc.
5770 * lib/freadseek.c: Include freadahead.h.
5771 (freadptrinc): New function, extracted from freadseek.
5772 (freadseek): Use it in a loop. Use freadahead to determine the number
5774 * modules/freadseek (Depends-on): Add freadahead.
5775 (configure.ac): Require AC_C_INLINE.
5777 2008-03-30 Bruno Haible <bruno@clisp.org>
5779 * lib/freadseek.c (freadseek): Don't ignore the return value of
5782 2008-03-29 Eric Blake <ebb9@byu.net>
5784 Add hex float support.
5785 * modules/strtod (Depends-on): Add c-ctype.
5786 (Link): Mention POW_LIB.
5787 * lib/strtod.c (strtod): Recognize hex floats. Don't allow
5788 whitespace between 'e' and exponent.
5789 * tests/test-strtod.c (main): Enable hex float tests.
5790 * doc/posix-functions/strtod.texi (strtod): Document what gnulib
5793 Document various strtod bugs, with some fixes.
5794 * doc/posix-functions/strtod.texi (strtod): Document bugs with
5795 "-0x", "inf", "nan", and hex constants.
5796 * doc/posix-functions/atof.texi (atof): Likewise.
5797 * modules/stdlib (Makefile.am): Support strtod.
5798 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
5799 * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
5800 detect additional strtod bugs.
5801 * lib/stdlib.in.h (rpl_strtod): Add declarations.
5802 * lib/strtod.c (strtod): Return -0.0 on negative underflow. Use
5803 bool where appropriate. Parse 'inf' and 'nan'.
5804 * tests/test-strtod.c: New file.
5805 * modules/strtod (Depends-on): Add stdbool, stdlib.
5806 (configure.ac): Turn on module indicator.
5807 * modules/strtod-tests: New module.
5809 2008-03-29 Eric Blake <ebb9@byu.net>
5812 * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
5813 * modules/ftell-tests (Depends-on): Add binary-io.
5814 * modules/ftello-tests (Depends-on): Likewise.
5815 * tests/test-ftell.c (main): Enhance test to cover behavior after
5816 ungetc. Enforce binary mode.
5817 * tests/test-ftello.c (main): Likewise.
5819 Pass test-freadseek on cygwin.
5820 * modules/freadseek (Depends-on): Use freadptr, not freadahead.
5821 * lib/freadseek.c (freadseek): Don't increment beyond bounds of
5824 * tests/test-fflush2.c (main): Fix typo.
5826 2008-03-29 Bruno Haible <bruno@clisp.org>
5828 * tests/test-fflush2.c (main): Temporarily disable the contents of
5830 * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
5831 Reported by Eric Blake.
5833 2008-03-28 Simon Josefsson <simon@josefsson.org>
5835 * lib/gc.h (enum Gc_hash): Add GC_SHA224.
5836 (GC_SHA224_DIGEST_SIZE): Add.
5838 * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
5839 (gc_hash_digest_length): Likewise.
5840 (gc_hash_buffer): Likewise.
5842 2008-03-25 Bruno Haible <bruno@clisp.org>
5844 * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
5845 detail which gettext release to use.
5846 Reported by Simon Josefsson.
5848 2008-03-26 Jim Meyering <meyering@redhat.com>
5850 gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
5851 * modules/gnumakefile (clean-GNUmakefile): Also, use
5852 test ... && ... || : syntax rather than if-then ... fi.
5854 gnumakefile: Don't double-quote-expand $(VPATH) value.
5855 * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
5857 2008-03-24 Eric Blake <ebb9@byu.net>
5859 Alter GNUmakefile to install into top directory.
5860 * modules/maintainer-makefile: Split, and add dependency...
5861 * modules/gnumakefile: to this new module.
5862 * build-aux/GNUmakefile: Move...
5863 * top/GNUmakefile: ...here.
5864 * build-aux/maint.mk: Move...
5865 * top/maint.mk: ...here.
5866 * MODULES.html.sh (Support for maintaining...): Document new
5869 2008-03-23 Bruno Haible <bruno@clisp.org>
5871 * gnulib-tool: New options --vc-files, --no-vc-files.
5872 (func_usage): Document them.
5873 (vc_files): New variable.
5874 (func_import): Consider vc_files.
5875 (func_create_testdir): Set vc_files to empty.
5876 Suggested by Jim Meyering and Karl Berry.
5878 2008-03-23 Bruno Haible <bruno@clisp.org>
5880 Fix regex compilation error on HP-UX 11.
5881 * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
5882 * modules/regex (Files): Add m4/mbstate_t.m4.
5883 Reported by Ton Voon <ton.voon@altinity.com>.
5885 2008-03-23 Bruno Haible <bruno@clisp.org>
5887 * doc/gnulib-tool.texi (gettextize and autopoint): New section.
5889 2008-03-23 Eric Blake <ebb9@byu.net>
5890 Bruno Haible <bruno@clisp.org>
5892 Install files from top/ in the destination directory.
5893 * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
5894 augmentation also for the files from top/.
5895 (func_import, func_create_testdir): Rewrite file names:
5896 top/filename -> filename.
5898 2008-03-23 Bruno Haible <bruno@clisp.org>
5900 Tweak "gnulib --version" output.
5901 * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
5903 2008-03-23 Bruno Haible <bruno@clisp.org>
5905 Tweak "gnulib --version" output.
5906 * gnulib-tool (func_version): Use date of last commit to ChangeLog,
5907 rather than contents of ChangeLog, when possible.
5909 2008-03-21 Eric Blake <ebb9@byu.net>
5911 More --version tweaks.
5912 * gnulib-tool (func_version): Obey GNU Coding Standards. Output
5913 date of last ChangeLog entry.
5915 2008-03-21 Jim Meyering <meyering@redhat.com>
5917 * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
5919 2008-03-20 Eric Blake <ebb9@byu.net>
5922 * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
5924 2008-03-20 Simon Josefsson <simon@josefsson.org>
5926 * build-aux/GNUmakefile: Make git-version-gen optional. Add
5927 _build-aux variable. Suggested by Eric Blake <ebb9@byu.net>.
5929 2008-03-20 Eric Blake <ebb9@byu.net>
5931 Sync GNUmakefile with coreutils.
5932 * build-aux/GNUmakefile (have-Makefile): Rename...
5933 (_have-Makefile): ...to this, for namespace consideration.
5934 (GNUmakefile.cfg): Include, if present.
5935 (_autoreconf): Define a default.
5936 (_is-dist-target): New rule for rebuilds to pick up intra-release
5938 (maint-cfg.mk): Rename...
5939 (cfg.mk): ...to this.
5941 2008-03-18 Jim Meyering <meyering@redhat.com>
5943 New script and module: mktempd
5944 * MODULES.html.sh (maint+release support): Add mktempd.
5945 * build-aux/mktempd: New file.
5946 * modules/mktempd: New file.
5948 2008-03-15 Jim Meyering <meyering@redhat.com>
5951 * lib/sha1.c, lib/md5.c: 63 != ~63.
5952 Reported by Andreas Schwab.
5954 sha1.c, md5.c: Hoist a redundant expression.
5955 * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
5956 "ctx->buflen" only once, before calling *_process_block.
5957 * lib/md5.c (md5_process_bytes): Likewise.
5959 2008-03-14 Eric Blake <ebb9@byu.net>
5961 Bump copyright year in files generated by gnulib-tool.
5962 * gnulib-tool (func_emit_copyright_notice): Extract copyright from
5963 gnulib-tool, rather than hard-coding it.
5965 Fix 'gnulib-tool --version' output to work with git.
5966 * gnulib-tool (func_gnulib_dir): New function, extracted from...
5968 (func_version): Use it to invoke git-version-gen, rather than
5969 relying on CVS keyword expansion. Modernize wording.
5970 (cvsdatestamp, last_checkin_date, version): Kill unused
5973 2008-03-12 Jim Meyering <meyering@redhat.com>
5975 Recognize optional cast of the argument to free.
5976 * build-aux/useless-if-before-free: Update regexps.
5978 * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
5980 2008-03-11 Bruno Haible <bruno@clisp.org>
5982 Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
5983 by a single package.
5984 * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
5985 (AC_LIB_LINKFLAGS_BODY): Use the information stored by
5986 AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
5987 Reported by Sam Steingold <sds@gnu.org>.
5989 2008-03-12 Sergey Poznyakoff <gray@gnu.org.ua>
5991 * build-aux/bootstrap (version_controlled_file): Adapt for SVN
5994 2008-03-11 Bruno Haible <bruno@clisp.org>
5996 Avoid conflicts between local macro definitions.
5997 * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
5998 AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
6000 2008-03-10 Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>
6001 Bruno Haible <bruno@clisp.org>
6003 Make va_copy work with some version of xlc on AIX 5.1.
6004 * lib/stdarg.in.h: New file.
6005 * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
6006 On AIX, use a <stdarg.h> file substitute.
6007 * modules/stdarg (Files): Add lib/stdarg.in.h.
6008 (Depends-on): Add include_next.
6009 (Makefile.am): Build a stdarg.h substitute if requested.
6010 * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
6012 2008-03-10 Bruno Haible <bruno@clisp.org>
6014 * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
6015 * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
6016 Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
6018 2008-03-10 Bruno Haible <bruno@clisp.org>
6020 * modules/stdlib (Depends-on): Add include_next, remove
6023 2008-03-09 Bruno Haible <bruno@clisp.org>
6025 * lib/freadahead.h (freadahead): Document more precisely.
6026 * lib/freadahead.c (freadahead): When an ungetc is in effect, return
6027 the sum of both buffer sizes.
6028 * tests/test-freadahead.c (main): Also test behaviour after ungetc.
6029 * NEWS: Document the change.
6031 2008-03-09 Bruno Haible <bruno@clisp.org>
6033 Extend freadptr to return also the buffer size.
6034 * lib/freadptr.h (freadptr): Add sizep argument.
6035 * lib/freadptr.c: Include freadptr.h, not freadahead.h.
6036 (freadptr): Add sizep argument. Determine buffer size like freadahead
6038 * tests/test-freadptr.c: Don't include freadahead.h.
6039 (main): Adapt for new calling convention of freadptr.
6040 * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
6041 * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
6042 * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
6043 tests/test-freadptr2.sh.
6044 (Depends): Remove freadahead.
6045 (TESTS): Add test-freadptr2.sh.
6046 (check_PROGRAMS): Add test-freadptr2.
6048 2008-03-09 Bruno Haible <bruno@clisp.org>
6050 * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
6051 Report and solution by Simon Josefsson.
6053 2008-03-06 Bruno Haible <bruno@clisp.org>
6055 Make fflush after ungetc work on BSD platforms.
6056 * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
6057 * tests/test-fflush2.c: New file.
6058 * tests/test-fflush2.sh: New file.
6059 * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
6060 tests/test-fflush2.c.
6061 (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
6062 * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
6064 2008-03-06 Eric Blake <ebb9@byu.net>
6066 Likewise for ftello.
6067 * modules/ftello (Dependencies): Add extensions.
6068 * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
6070 2008-03-06 Bruno Haible <bruno@clisp.org>
6072 * modules/fseeko (Dependencies): Add extensions.
6073 * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
6074 Needed on glibc systems.
6076 2008-03-06 Bruno Haible <bruno@clisp.org>
6078 * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
6080 Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
6082 2008-03-06 Bruno Haible <bruno@clisp.org>
6084 * users.txt: Add libgnupdf.
6086 2008-03-06 Thien-Thi Nguyen <ttn@gnuvola.org> (tiny change)
6088 * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
6089 (Header File Substitutes, Function Substitutes,
6090 Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
6091 (Build robot for gnulib): Fix typo.
6093 2008-03-06 Bruno Haible <bruno@clisp.org>
6095 * doc/gnulib-tool.texi (VCS Issues): Small updates.
6096 Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
6098 2008-03-06 Bruno Haible <bruno@clisp.org>
6100 * doc/func.texi: New file, extracted from doc/gnulib.texi.
6101 * doc/gnulib.texi: Include it.
6103 2008-03-06 Simon Josefsson <simon@josefsson.org>
6105 * modules/func (License): Change license to unlimited; there was
6106 no LGPL parts in the module anyway.
6108 2008-03-06 Simon Josefsson <simon@josefsson.org>
6110 * modules/__func__: Renamed to modules/func.
6111 * modules/__func__-tests: Renamed to modules/func-tests.
6112 * tests/test-__func__.c: Renamed to tests/test-func.c.
6113 * m4/__func__.m4: Renamed to m4/func.m4.
6114 * doc/gnulib.texi (__func__): Section renamed to func.
6115 Suggested by Eric Blake <ebb9@byu.net>.
6117 2008-03-06 Simon Josefsson <simon@josefsson.org>
6119 * doc/gnulib.texi (__func__): Use C99 terminology when talking
6120 about __func__. Make example self-contained. Suggested by Eric
6121 Blake <ebb9@byu.net>.
6123 * tests/test-__func__.c (main): Avoid extraneous () around __func.
6124 Suggested by Eric Blake <ebb9@byu.net>.
6126 2008-03-06 Simon Josefsson <simon@josefsson.org>
6128 * modules/__func__: New file.
6129 * modules/__func__-tests: New file.
6130 * tests/test-__func__.c: New file.
6131 * m4/__func__.m4: New file.
6132 * doc/gnulib.texi (__func__): Document __func__ module.
6134 2008-03-05 Simon Josefsson <simon@josefsson.org>
6136 * modules/byteswap (License): Re-license as LGPLv2+.
6138 2008-03-05 Simon Josefsson <simon@josefsson.org>
6140 * doc/Makefile: Add pdf target.
6142 2008-03-05 Simon Josefsson <simon@josefsson.org>
6144 * modules/inline (License): Use 'unlimited', since there are only
6145 *.m4 files in this module.
6147 2008-03-03 John E. Malmberg <wb8tyw@qsl.net> (tiny change)
6148 Bruno Haible <bruno@clisp.org>
6150 Add support for HP C 7.1 on OpenVMS 8.3.
6151 * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
6153 2008-03-03 John E. Malmberg <wb8tyw@qsl.net> (tiny change)
6155 Update VMS specifics.
6156 * lib/getopt.c [VMS]: Remove include of unixlib.h.
6158 2008-03-02 Jim Meyering <meyering@redhat.com>
6160 Remove the last dependency on the "free" module.
6161 * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
6162 Reported by Bob Proulx.
6164 * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
6166 Remove useless "if" tests before free. Deprecate "free" module.
6167 * doc/posix-functions/free.texi: Mention that this
6168 module is no longer useful.
6169 * modules/free (Notice): Say this module is obsolete.
6170 * modules/readutmp (Depends-on): Remove free.
6171 * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
6172 * lib/putenv.c (putenv): Likewise.
6173 * lib/gc-gnulib.c (gc_cipher_close): Likewise.
6174 * lib/getaddrinfo.c (freeaddrinfo): Likewise.
6175 * tests/test-c-strcasestr.c (main): Likewise.
6176 * tests/test-c-strstr.c (main): Likewise.
6177 * tests/test-mbscasestr1.c (main): Likewise.
6178 * tests/test-mbscasestr2.c (main): Likewise.
6179 * tests/test-mbsstr1.c (main): Likewise.
6180 * tests/test-mbsstr2.c (main): Likewise.
6181 * tests/test-memmem.c (main): Likewise.
6182 * tests/test-strcasestr.c (main): Likewise.
6183 * tests/test-striconv.c (main): Likewise.
6184 * tests/test-striconveh.c (main): Likewise.
6185 * tests/test-striconveha.c (main): Likewise.
6186 * tests/test-strstr.c (main): Likewise.
6188 * build-aux/git-version-gen: Adjust a comment and the Usage string.
6190 bootstrap: sync from coreutils again
6191 * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
6193 2008-03-01 Jim Meyering <meyering@redhat.com>
6195 bootstrap: sync from coreutils
6196 * build-aux/bootstrap (update_po_files): Copy a .po file into place
6197 also when the target doesn't exist.
6199 2008-03-01 Eric Blake <ebb9@byu.net>
6201 Fix bugs in last patch.
6202 * lib/memchr2.c (memchr2): Fix typo.
6203 * tests/test-memchr2.c: Test previous bug, and don't use GNU
6205 Reported by Bruce Korb.
6207 New module 'memchr2'.
6208 * modules/memchr2: New file.
6209 * modules/memchr2-tests: Likewise.
6210 * lib/memchr2.h: Likewise.
6211 * lib/memchr2.c: Likewise, based on memchr.c.
6212 * tests/test-memchr2.c: New test.
6213 * MODULES.html.sh (String handling): Add memchr2.
6215 2008-02-29 Bruno Haible <bruno@clisp.org>
6217 * modules/freadseek-tests: New file.
6218 * tests/test-freadseek.sh: New file.
6219 * tests/test-freadseek.c: New file.
6221 New module 'freadseek'.
6222 * modules/freadseek: New file.
6223 * lib/freadseek.h: New file.
6224 * lib/freadseek.c: New file.
6225 * MODULES.html.sh (File stream based Input/Output): Add freadseek.
6227 2008-02-29 Sergey Poznyakoff <gray@gnu.org.ua>
6229 * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
6232 * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
6233 program_invocation_name and program_invocation_short_name are
6236 2008-02-28 Bruno Haible <bruno@clisp.org>
6238 * tests/test-freadptr.c: Add a test for behaviour after ungetc.
6239 * tests/test-freadptr.sh: Also test non-seekable stdin.
6241 2008-02-28 Sergey Poznyakoff <gray@gnu.org.ua>
6243 * build-aux/bootstrap (source_base, m4_base)
6244 (doc_base, tests_base): New variables.
6245 (gnulib_tool_options): Do not hardcode base directories, use
6246 the above variables instead.
6248 2008-02-28 Atsushi SAKAI <sakaia@jp.fujitsu.com>
6250 * lib/xsize.h: Fix typo in comment: s/tupe/type/.
6252 2008-02-28 Bruno Haible <bruno@clisp.org>
6254 * modules/freadptr-tests: New file.
6255 * tests/test-freadptr.sh: New file.
6256 * tests/test-freadptr.c: New file.
6258 New module 'freadptr'.
6259 * modules/freadptr: New file.
6260 * lib/freadptr.h: New file.
6261 * lib/freadptr.c: New file.
6262 * MODULES.html.sh (File stream based Input/Output): Add freadptr.
6264 2008-02-26 Karl Berry <karl@freefriends.org>
6267 * libltdl/argz.c (argz_add, argz_count): New functions.
6268 * libltdl/argz.in.h: Declare them.
6269 Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
6271 2008-02-22 Bruno Haible <bruno@clisp.org>
6273 * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
6274 is a pointer type. Needed for HP-UX 10.
6275 * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
6276 * doc/posix-functions/gmtime_r.texi: Likewise.
6277 Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
6279 2008-02-24 Bruno Haible <bruno@clisp.org>
6281 * modules/environ-tests: New file.
6282 * tests/test-environ.c: New file.
6284 New module 'environ'.
6285 * modules/environ: New file.
6286 * lib/unistd.in.h (environ): New declaration.
6287 * m4/environ.m4: New file.
6288 (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
6290 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
6292 * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
6294 * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
6295 wrong claim that 'environ' is missing on some systems.
6296 * modules/execute (Depends-on): Add environ.
6297 * lib/execute.c (environ): Remove fallback declaration.
6298 * modules/pipe (Depends-on): Add environ.
6299 * lib/pipe.c (environ): Remove fallback declaration.
6300 * modules/setenv (Depends-on): Add environ.
6301 * lib/setenv.c (environ): Remove fallback declaration.
6302 * modules/unsetenv (Depends-on): Add environ.
6303 * lib/unsetenv.c (environ): Remove fallback declaration.
6304 * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
6306 (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
6307 (gl_PREREQ_UNSETENV): Likewise.
6309 2008-02-24 Bruno Haible <bruno@clisp.org>
6311 * doc/posix-functions/environ.texi: Document the MacOS X problem.
6313 2008-02-20 Bob Proulx <bob@proulx.com>
6315 Enable use of older two part flavor 'git describe'.
6316 * build-aux/git-version-gen: If using the older two part flavor of
6317 git version then recreate the third part now present in the
6318 newer three part flavor of git describe.
6320 2008-02-20 Martin Buchholz <martin@xemacs.org> (tiny change)
6322 * lib/fts.c (fts_build): Typo correction to comment.
6324 2008-02-17 Bruno Haible <bruno@clisp.org>
6326 * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
6327 generating no-op conflicts.
6329 2008-02-17 Bruno Haible <bruno@clisp.org>
6332 * lib/git-merge-changelog.c (main): Use the iterator to iterate through
6333 result_entries, rather than an index-based loop.
6335 2008-02-17 Bruno Haible <bruno@clisp.org>
6338 * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
6340 (entry_create): New function.
6341 (entry_hashcode): Use the cached hashcode if possible.
6342 (read_changelog_file, try_split_merged_entry): Use entry_create.
6344 2008-02-17 Bruno Haible <bruno@clisp.org>
6346 Speed up from O(n^2) to O(n) for long ChangeLog files.
6347 * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
6348 (read_changelog_file): Change implementation of entries_reversed list
6350 * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
6352 2008-02-17 Bruno Haible <bruno@clisp.org>
6354 New option --split-merged-entry.
6355 * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
6356 (find_paragraph_end, try_split_merged_entry): New functions.
6357 (long_options): Add option --split-merged-entry.
6358 (usage): Document option --split-merged-entry.
6359 (main): Implement option --split-merged-entry.
6360 Reported by Eric Blake.
6362 2008-02-17 Bruno Haible <bruno@clisp.org>
6364 * lib/git-merge-changelog.c: Include c-strstr.h.
6365 (main): Support the "git pull --rebase" situation.
6366 * modules/git-merge-changelog (Depends-on): Add c-strstr.
6367 Reported by Eric Blake.
6369 2008-02-16 Eric Blake <ebb9@byu.net>
6371 Avoid doubling \ in common case of "c-maybe" quoting style.
6372 * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
6373 eliding outer quotes.
6374 * lib/quotearg.h: Document this.
6375 * tests/test-quotearg.c (result_strings, inputs, results_g)
6376 (flag_results, locale_results): Test it by adding a new string to
6378 (compare_strings): Test new string.
6380 2008-02-13 Eric Blake <ebb9@byu.net>
6382 Avoid trigraph quoting in default output.
6383 * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
6384 * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
6385 unless explicitly requested.
6386 * tests/test-quotearg.c (flag_results, main): Add additional tests.
6388 2008-02-13 Lasse Collin <lasse.collin@tukaani.org>
6390 Don't rely on signed integer overflowing to negative value.
6391 * lib/getugroups.c (getugroups): Include <limits.h>.
6392 Instead, compare against INT_MAX, and increment only if the test passes.
6394 2008-02-13 Jim Meyering <meyering@redhat.com>
6395 and Eric Blake <ebb9@byu.net>
6397 Avoid shadowing warning and compile errors on Linux.
6398 * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
6399 forwarding macros on Linux.
6400 (dcgettext): Define a stub, for Linux.
6401 (results_g, main): Avoid warnings.
6403 2008-02-12 Eric Blake <ebb9@byu.net>
6405 Silence warning in last patch.
6406 * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
6408 Quotearg part 4: add tests, fix c-maybe colon quoting.
6409 * lib/quotearg.h: Improve documentation.
6410 * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
6411 escapes when adding outer quotes. When quoting trigraphs, use
6412 valid C notation. When quoting NUL, omit extra characters if next
6413 character is not digit. Alter prototype.
6414 (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
6416 * modules/quotearg-tests: New module.
6417 * tests/test-quotearg.c: New test.
6419 2008-02-07 Eric Blake <ebb9@byu.net>
6421 Quotearg part 3: add flag to control outer quote elision.
6422 * lib/quotearg.h (c_maybe_quoting_style): New style.
6423 (enum quoting_flags): Better documentation of flags.
6424 * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
6426 (quotearg_buffer_restyled): Handle new flag to elide outer
6429 Quotearg part 2: add flag that can control NUL elision.
6430 * lib/quotearg.h (set_quoting_flags): New prototype.
6431 * lib/quotearg.c (struct quoting_options): Add flag field.
6432 (set_quoting_flags): New function.
6433 (quotearg_buffer_restyled): Add flags parameter.
6434 (quotearg_alloc_mem): Set the flag if length cannot be returned.
6435 (quotearg_n_options): Set the flag, since length cannot be
6437 (quoting_options_from_style): Default flags correctly.
6439 Quotearg part 1: more wrappers, restore quotearg_char state.
6440 * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
6441 (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
6442 (quotearg_colon_mem): New wrappers.
6443 * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
6444 (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
6446 (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
6447 (quotearg_colon_mem): New functions.
6449 2008-02-11 Bruno Haible <bruno@clisp.org>
6451 * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
6452 library in the current directory: it does not work with parallel make.
6453 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
6455 2008-02-11 Bruno Haible <bruno@clisp.org>
6457 * .gitattributes: New file.
6459 2008-02-11 Jim Meyering <meyering@redhat.com>
6461 useless-if-before-free: Fix reversed exit values.
6462 * build-aux/useless-if-before-free: Use correct values
6463 for EXIT_MATCH and EXIT_NO_MATCH.
6465 * build-aux/useless-if-before-free: Close stdout carefully.
6467 2008-02-10 Bruno Haible <bruno@clisp.org>
6469 New module 'git-merge-changelog'.
6470 * modules/git-merge-changelog: New file.
6471 * lib/git-merge-changelog.c: New file.
6473 2008-02-10 Jim Meyering <meyering@redhat.com>
6475 useless-if-before-free: New option: --list (-l).
6477 useless-if-before-free: Don't exit immediately upon open failure.
6478 * build-aux/useless-if-before-free: Exit 2 for errors.
6479 Upon failure to open a file, don't exit immediately.
6480 Rather, just warn and continue with any remaining files.
6482 2008-02-10 Bruno Haible <bruno@clisp.org>
6484 New abstract list operation 'node_set_value'.
6485 * lib/gl_list.h (gl_list_node_set_value): New function.
6486 (struct gl_list_implementation): New field node_set_value.
6487 * lib/gl_list.c (gl_list_node_set_value): New function.
6488 * lib/gl_array_list.c (gl_array_node_set_value): New function.
6489 (gl_array_list_implementation): Update.
6490 * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
6491 (gl_carray_list_implementation): Update.
6492 * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
6493 * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
6494 * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
6495 * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
6496 * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
6497 * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
6498 * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
6500 * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
6501 * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
6502 (gl_sublist_list_implementation): Update.
6504 2008-02-10 Bruno Haible <bruno@clisp.org>
6506 * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
6507 Needed when ELEMENT is #defined to 'some_type *'.
6509 2008-02-10 Jim Meyering <meyering@redhat.com>
6511 New script and module: useless-if-before-free
6512 * MODULES.html.sh (maint+release support): Add useless-if-before-free.
6513 * build-aux/useless-if-before-free: New file.
6514 * modules/useless-if-before-free: New file.
6516 * build-aux/gitlog-to-changelog: Use committer date, not author date.
6518 xstrtol_error: Fix typo.
6519 * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
6520 s/exit_failure/exit_status/.
6522 2008-02-09 Jim Meyering <meyering@redhat.com>
6524 New script and module: gitlog-to-changelog
6525 * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
6526 * modules/gitlog-to-changelog: New file.
6527 * build-aux/gitlog-to-changelog: New file.
6529 2008-02-08 Jim Meyering <meyering@redhat.com>
6531 Avoid two "parameter unused" warnings.
6532 * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
6535 Use "git COMMAND", not "git-COMMAND".
6536 * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
6537 * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
6538 * build-aux/git-version-gen: Use "git status", not "git-status".
6540 2008-02-07 Bruno Haible <bruno@clisp.org>
6542 * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
6543 Avoids a crash on Windows Vista.
6544 Reported by Adam Strzelecki <ono@java.pl> via
6545 Simon Josefsson <simon@josefsson.org>.
6547 2008-02-06 Bruno Haible <bruno@clisp.org>
6549 Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
6550 * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
6551 * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
6552 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
6553 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
6554 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
6555 gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
6556 gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
6557 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
6558 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
6559 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
6560 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
6561 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
6562 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
6563 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
6564 * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
6566 * tests/test-snprintf-posix.h (test_function): Likewise.
6567 * tests/test-sprintf-posix.h (test_function): Likewise.
6568 * tests/test-vasprintf-posix.c (test_function): Likewise.
6569 * doc/posix-functions/fprintf.texi: Update.
6570 * doc/posix-functions/printf.texi: Update.
6571 * doc/posix-functions/snprintf.texi: Update.
6572 * doc/posix-functions/sprintf.texi: Update.
6573 * doc/posix-functions/vfprintf.texi: Update.
6574 * doc/posix-functions/vprintf.texi: Update.
6575 * doc/posix-functions/vsnprintf.texi: Update.
6576 * doc/posix-functions/vsprintf.texi: Update.
6577 Reported by Peter Fales <psfales@alcatel-lucent.com>.
6579 2008-02-06 Bruno Haible <bruno@clisp.org>
6581 Fix bug introduced on 2008-01-26.
6582 * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
6584 2008-02-06 Bruno Haible <bruno@clisp.org>
6586 Fix bug introduced on 2007-06-10.
6587 * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
6588 !NEED_PRINTF_FLAG_ZERO.
6590 2008-02-05 Peter O'Gorman <pogma@thewrittenword.com>
6592 getloadavg: use libperfstat on AIX5
6593 * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
6595 2008-02-03 Bruno Haible <bruno@clisp.org>
6597 * lib/diffseq.h: Add comments about required #includes.
6598 Reported by Michael Biggs <gnulib@doubleplum.net>.
6600 2008-02-01 Bruno Haible <bruno@clisp.org>
6602 * users.txt: Add gnuit.
6604 2008-01-31 Bruno Haible <bruno@clisp.org>
6606 * lib/md4.c (set_uint32): Mark as inline.
6607 * lib/md5.c (set_uint32): Likewise.
6608 * lib/sha1.c (set_uint32): Likewise.
6609 * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
6610 * m4/md5.m4 (gl_MD5): Likewise.
6611 * m4/sha1.m4 (gl_SHA1): Likewise.
6613 2008-01-31 Jim Meyering <meyering@redhat.com>
6615 Use "sizeof VAR", rather than a literal "4".
6616 * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
6617 * lib/md4.c (md4_read_ctx): Likewise.
6618 * lib/sha1.c (sha1_read_ctx): Likewise.
6620 2008-01-31 Simon Josefsson <simon@josefsson.org>
6622 * tests/test-sha1.c: New file, based on test-md5.c.
6624 * modules/crypto/sha1-tests: New file.
6626 2008-01-31 Simon Josefsson <simon@josefsson.org>
6628 * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
6630 2008-01-31 Jim Meyering <meyering@redhat.com>
6632 Prefer "sizeof v" over the equivalent "4".
6633 * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
6634 * lib/md5.c (set_uint32): Likewise.
6635 * lib/sha1.c (set_uint32): Likewise.
6637 2008-01-31 Simon Josefsson <simon@josefsson.org>
6639 * lib/sha1.c (set_uint32): Mark function as static.
6641 2008-01-31 Simon Josefsson <simon@josefsson.org>
6643 md2: clarify comments to say that alignment is not required.
6644 * lib/md2.h: Remove warning about alignment in comment.
6645 * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
6646 never been required.
6648 2008-01-31 Simon Josefsson <simon@josefsson.org>
6650 md4: adapt alignment constraint fix from sha1.
6651 * lib/md4.c (set_uint32): New function, from sha1.c
6652 (md4_read_ctx): Use it.
6653 (md4_finish_ctx): Doc fix.
6654 * lib/md4.h: Doc fix.
6656 2008-01-31 Simon Josefsson <simon@josefsson.org>
6658 md5: adapt alignment constraint fix from sha1.
6659 * lib/md5.c (set_uint32): New function, from sha1.c
6660 (md5_read_ctx): Use it.
6661 (md5_finish_ctx): Doc fix.
6662 * lib/md5.h: Doc fix.
6664 2008-01-30 Peter Palfrader <weasel@debian.org>
6666 sha1: remove the result buffer alignment constraint
6667 * lib/sha1.c (set_uint32): New function.
6668 (sha1_read_ctx): Rewrite to remove the result buffer alignment
6670 (sha1_finish_ctx): Remove comment warning about alignment constraint.
6671 * lib/sha1.h: Likewise.
6673 2008-01-30 Andreas Schwab <schwab@suse.de>
6674 Bruno Haible <bruno@clisp.org>
6676 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
6677 correct definition of LDBL_MIN_EXP.
6679 2008-01-30 Karl Berry <karl@gnu.org>
6681 * config/srclist-update: try to preserve x bit on updates.
6682 * config/srclistvars.sh: update for karl.
6684 2008-01-29 Jim Meyering <meyering@redhat.com>
6686 vasnprintf.c: Avoid warning about unused label
6687 * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
6688 "overflow" label definition and associated code with the
6689 same cpp condition that guards the sole use of that label.
6691 2008-01-26 Bruno Haible <bruno@clisp.org>
6693 * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
6694 gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
6695 * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
6696 * lib/isnanl-nolibm.h (isnanl): Likewise.
6697 Reported by Paul Eggert <eggert@cs.ucla.edu>.
6699 2008-01-26 Bruno Haible <bruno@clisp.org>
6701 * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
6702 * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
6704 2008-01-26 Bruno Haible <bruno@clisp.org>
6706 * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
6707 GCC >= 4.0 built-in.
6708 * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
6710 2008-01-26 Bruno Haible <bruno@clisp.org>
6712 Rename isnan, applicable to 'double' only, to isnand.
6713 * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
6714 (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
6715 (configure.ac): Update.
6716 (Include): Replace "isnan.h" with "isnand.h".
6717 * m4/isnand.m4: Renamed from m4/isnan.m4.
6718 (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
6719 HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
6721 * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
6722 instead of HAVE_ISNAN_IN_LIBC.
6723 (isnand): Renamed from isnan.
6724 * lib/isnand.c: New file.
6725 * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
6726 (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
6727 (Makefile.am): Update.
6728 * tests/test-isnand.c: Renamed from tests/test-isnan.c.
6729 Include isnand.h instead of isnan.h.
6730 (main): Test isnand instead of isnan.
6731 * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
6733 * modules/frexp (Depends-on): Likewise.
6734 * modules/frexp-tests (Depends-on): Likewise.
6735 * modules/frexp-nolibm (Depends-on): Likewise.
6736 * modules/frexp-nolibm-tests (Depends-on): Likewise.
6737 * modules/isfinite (Depends-on): Likewise.
6738 * modules/round-tests (Depends-on): Likewise.
6739 * modules/signbit (Depends-on): Likewise.
6740 * modules/signbit-tests (Depends-on): Likewise.
6741 * modules/snprintf-posix (Depends-on): Likewise.
6742 * modules/sprintf-posix (Depends-on): Likewise.
6743 * modules/trunc-tests (Depends-on): Likewise.
6744 * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
6745 * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
6746 * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
6747 * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
6748 * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
6749 * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
6750 * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
6751 * modules/vasnprintf-posix (Depends-on): Likewise.
6752 * modules/vasprintf-posix (Depends-on): Likewise.
6753 * modules/vfprintf-posix (Depends-on): Likewise.
6754 * modules/vsnprintf-posix (Depends-on): Likewise.
6755 * modules/vsprintf-posix (Depends-on): Likewise.
6756 * lib/frexp.c: Include isnand.h instead of isnan.h.
6757 (ISNAN): Set to isnand instead of isnan.
6758 * lib/isfinite.c: Include isnand.h instead of isnan.h.
6759 (gl_isfinited): Use isnand instead of isnan.
6760 * lib/signbitd.c: Include isnand.h instead of isnan.h.
6761 (gl_signbitd): Use isnand instead of isnan.
6762 * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
6763 (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
6764 * tests/test-frexp.c: Include isnand.h instead of isnan.h.
6765 (main): Use isnand instead of isnan.
6766 * tests/test-round1.c: Include isnand.h.
6767 (main): Use isnand instead of isnan.
6768 * tests/test-round2.c: Include isnand.h instead of isnan.h.
6769 (ISNAN): Set to isnand instead of isnan.
6770 * tests/test-trunc1.c: Include isnand.h.
6771 (main): Use isnand instead of isnan.
6772 * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
6773 (equal): Use isnand instead of isnan.
6774 * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
6776 * NEWS: Mention the change.
6778 2008-01-25 Paul Eggert <eggert@cs.ucla.edu>
6779 Bruno Haible <bruno@clisp.org>
6781 * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
6782 the GCC builtins for signbits are present and set
6783 REPLACE_SIGNBIT_USING_GCC if so.
6784 * lib/math.in.h (signbit): Define using GCC builtins if
6785 REPLACE_SIGNBIT_USING_GCC is set.
6786 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
6787 REPLACE_SIGNBIT_USING_GCC.
6788 * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
6790 2008-01-25 Jim Meyering <meyering@redhat.com>
6792 Prefer <config.h> over "config.h". See autoconf doc for explanation.
6793 * lib/poll.c: Include <config.h>, not "config.h".
6794 * tests/test-getaddrinfo.c: Likewise.
6796 2008-01-25 Simon Josefsson <simon@josefsson.org>
6798 * modules/sockets-tests: New file.
6800 2008-01-24 Simon Josefsson <simon@josefsson.org>
6802 * modules/sockets: New module, can be used to call WSA_Startup and
6803 WSA_Cleanup when needed.
6805 * lib/sockets.h, lib/sockets.c: New files.
6807 * m4/sockets.m4: New file.
6809 * tests/test-sockets.c: New file.
6811 2008-01-19 Bruno Haible <bruno@clisp.org>
6813 * doc/posix-headers: Renamed from doc/headers.
6814 * doc/posix-functions: Renamed from doc/functions.
6815 * doc/gnulib.texi: Update.
6817 2008-01-19 Bruno Haible <bruno@clisp.org>
6819 * doc/glibc-functions/strcasestr.texi: Include contents of
6820 doc/functions/strcasestr.texi, fixing the list of platforms.
6821 * doc/functions/strcasestr.texi: Remove file.
6823 2008-01-19 Bruno Haible <bruno@clisp.org>
6825 * doc/glibc-functions/memmem.texi: Include contents of
6826 doc/functions/memmem.texi.
6827 * doc/functions/memmem.texi: Remove file.
6829 2008-01-18 Bruno Haible <bruno@clisp.org>
6831 * doc/glibc-functions/*.texi: New files.
6832 * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
6833 to use the new files.
6835 2008-01-17 Bruno Haible <bruno@clisp.org>
6837 * tests/test-gethostname.c (main): Fix printf statement.
6839 2008-01-17 Simon Josefsson <simon@josefsson.org>
6841 * modules/gethostname-tests: New file.
6843 * tests/test-gethostname.c: New file.
6845 2008-01-17 Simon Josefsson <simon@josefsson.org>
6847 * lib/gethostname.c: Include string.h unconditionally, strncpy is
6848 used by the UNAME case. Reported by Bruno Haible
6851 2008-01-17 Eric Blake <ebb9@byu.net>
6853 Convert c-strcasestr to be more efficient.
6854 * modules/c-strcasestr (Files): Use Two-Way, not KMP.
6855 (Depends-on): Add c-strcase, remove malloca, strnlen.
6856 * tests/test-c-strcasestr.c (main): Enhance test.
6857 * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
6859 2007-01-16 Paolo Bonzini <bonzini@gnu.org>
6861 * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
6862 Use it in creating po/Makevars.
6864 2008-01-15 Simon Josefsson <simon@josefsson.org>
6866 * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
6867 Applications that requires it should initialize libgcrypt
6870 2008-01-16 Simon Josefsson <simon@josefsson.org>
6872 * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
6874 2008-01-15 Paul Eggert <eggert@cs.ucla.edu>
6876 Fix problem with getdate on mingw32 reported by Simon Josefsson
6877 in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
6878 * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
6879 tzname", when deciding whether to declare tzname.
6880 * lib/strftime.c (tzname): Likewise.
6882 2008-01-15 Bruno Haible <bruno@clisp.org>
6884 Work around a MacOS X 10.5 bug in frexpl().
6885 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
6886 * doc/functions/frexpl.texi: Document the bug.
6887 Reported by Elias Pipping <pipping@gentoo.org>.
6889 2008-01-14 Eric Blake <ebb9@byu.net>
6891 Touch up previous patch.
6892 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
6893 * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
6895 Convert strcasestr module to use Two-Way algorithm.
6896 * modules/strcasestr-simple: New module, based on the old
6897 strcasestr, but with Two-Way rather than KMP.
6898 * modules/strcasestr (Depends-on): Change to strcasestr-simple.
6899 * lib/string.in.h (rpl_strcasestr): Declare.
6900 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
6902 * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
6903 * modules/string (Makefile.am): Support strcasestr.
6904 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
6905 * modules/strcasestr-tests (Depends-on): Check for alarm.
6906 * tests/test-strcasestr.c: Augment test.
6907 * lib/str-two-way.h: Clean up stray macro.
6908 * NEWS: Document new module.
6909 * MODULES.html.sh (string handling): Likewise.
6910 * doc/functions/strcasestr.texi: New file.
6911 * doc/gnulib.texi (Function Substitutes): New node. Move memmem
6912 here, since it is not a POSIX function.
6914 2008-01-14 Colin Watson <cjwatson@debian.org>
6915 Bruno Haible <bruno@clisp.org>
6917 * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
6918 works fine; if not, set REPLACE_STRSIGNAL.
6919 (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
6920 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
6922 * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
6923 * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
6924 * tests/test-strsignal.c (main): Check out-of-range signal numbers.
6926 2008-01-14 Bruno Haible <bruno@clisp.org>
6928 * modules/strsignal (Include): Change to <string.h>.
6930 2008-01-14 Colin Watson <cjwatson@debian.org>
6932 * modules/argp (Notice): Add a notice recommending to change
6934 (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
6936 2008-01-13 Colin Watson <cjwatson@debian.org>
6938 * modules/strsignal-tests: New file.
6939 * tests/test-strsignal.c: New file.
6941 * lib/strsignal.c: New file, from glibc with modifications.
6942 * lib/siglist.h: New file, from glibc with modifications.
6943 * lib/string.in.h (strsignal): New declaration.
6944 * m4/strsignal.m4: New file.
6945 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
6946 GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
6947 * modules/strsignal: New file.
6948 * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
6949 HAVE_DECL_STRSIGNAL.
6951 2008-01-13 Bruno Haible <bruno@clisp.org>
6953 * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
6954 locale encoding is not ASCII. Needed for OpenBSD 4.0.
6955 * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
6956 * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
6958 2008-01-13 Bruno Haible <bruno@clisp.org>
6960 * lib/argp-fmtstream.h (__attribute__): Don't redefine if
6961 __STRICT_ANSI__ is set: it's not needed by any version of gcc.
6962 * lib/argp.h (__attribute__): Likewise.
6963 * lib/c-stack.c (__attribute__): Likewise.
6964 * lib/error.h (__attribute__): Likewise.
6965 * lib/fts.c (__attribute__): Likewise.
6966 * lib/openat.h (__attribute__): Likewise.
6967 * lib/stdio.in.h (__attribute__): Likewise.
6968 * lib/string.in.h (__attribute__): Likewise.
6969 * lib/utimens.c (__attribute__): Likewise.
6970 * lib/vasnprintf.h (__attribute__): Likewise.
6971 * lib/xalloc.h (__attribute__): Likewise.
6972 * lib/xprintf.h (__attribute__): Likewise.
6973 * lib/xstrtol.h (__attribute__): Likewise.
6974 * lib/xvasprintf.h (__attribute__): Likewise.
6976 2008-01-12 Bruno Haible <bruno@clisp.org>
6978 * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
6979 * doc/glibc-headers/a.out.texi: New file.
6980 * doc/glibc-headers/aliases.texi: New file.
6981 * doc/glibc-headers/alloca.texi: New file.
6982 * doc/glibc-headers/ar.texi: New file.
6983 * doc/glibc-headers/argp.texi: New file.
6984 * doc/glibc-headers/argz.texi: New file.
6985 * doc/glibc-headers/byteswap.texi: New file.
6986 * doc/glibc-headers/crypt.texi: New file.
6987 * doc/glibc-headers/endian.texi: New file.
6988 * doc/glibc-headers/envz.texi: New file.
6989 * doc/glibc-headers/err.texi: New file.
6990 * doc/glibc-headers/error.texi: New file.
6991 * doc/glibc-headers/execinfo.texi: New file.
6992 * doc/glibc-headers/fpu_control.texi: New file.
6993 * doc/glibc-headers/fstab.texi: New file.
6994 * doc/glibc-headers/fts.texi: New file.
6995 * doc/glibc-headers/getopt.texi: New file.
6996 * doc/glibc-headers/ieee754.texi: New file.
6997 * doc/glibc-headers/ifaddrs.texi: New file.
6998 * doc/glibc-headers/libintl.texi: New file.
6999 * doc/glibc-headers/mcheck.texi: New file.
7000 * doc/glibc-headers/mntent.texi: New file.
7001 * doc/glibc-headers/obstack.texi: New file.
7002 * doc/glibc-headers/paths.texi: New file.
7003 * doc/glibc-headers/printf.texi: New file.
7004 * doc/glibc-headers/pty.texi: New file.
7005 * doc/glibc-headers/resolv.texi: New file.
7006 * doc/glibc-headers/shadow.texi: New file.
7007 * doc/glibc-headers/sysexits.texi: New file.
7008 * doc/glibc-headers/ttyent.texi: New file.
7010 2008-01-12 Jim Meyering <meyering@redhat.com>
7012 announce-gen: emit Gnulib's git-based version string.
7013 * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
7014 New option --gnulib-version=V, where V is expected to be
7015 the output of running git describe in the gnulib directory.
7016 (get_tool_versions): Request feedback on xdelta. I suspect it's
7017 not useful, and plan to stop publishing an xdelta file with each
7020 * build-aux/announce-gen: Also check for lzma-compressed files.
7022 2008-01-11 Bruno Haible <bruno@clisp.org>
7024 * tests/test-memmem.c (main): Increase maximum allowed time.
7025 * tests/test-strstr.c (main): Likewise.
7027 2008-01-11 Bruno Haible <bruno@clisp.org>
7029 * doc/functions/memmem.texi: Add more precisions about platforms.
7030 * doc/functions/strstr.texi: Likewise.
7032 2008-01-10 Eric Blake <ebb9@byu.net>
7034 * m4/strstr.m4: Delete cruft from copy-n-paste.
7035 Reported by Bruno Haible.
7037 2008-01-10 Bruno Haible <bruno@clisp.org>
7039 Make c-strstr rely on strstr.
7040 * lib/c-strstr.c: Don't include str-kmp.h.
7041 (c_strstr): Define in terms of strstr.
7042 * modules/c-strstr (Files): Remove lib/str-kmp.h.
7043 (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
7045 2008-01-10 Bruno Haible <bruno@clisp.org>
7047 * doc/gnulib.texi (String Functions in C Locale): New section.
7048 * doc/c-ctype.texi: New file.
7049 * doc/c-strcase.texi: New file.
7050 * doc/c-strcaseeq.texi: New file.
7051 * doc/c-strcasestr.texi: New file.
7052 * doc/c-strstr.texi: New file.
7053 * doc/c-strtod.texi: New file.
7054 * doc/c-strtold.texi: New file.
7056 2008-01-10 Eric Blake <ebb9@byu.net>
7058 * lib/relocatable.h: Fix a comment.
7060 2008-01-10 Eric Blake <ebb9@byu.net>
7062 Share two-way algorithm.
7063 * lib/str-two-way.h: New file, merged from...
7064 * lib/memmem.c: ...here...
7065 * lib/strstr.c: ...and here.
7066 * modules/memmem (Files): Use it.
7067 * modules/strstr (Files): Likewise.
7069 Avoid quadratic strstr implementations.
7070 * lib/strstr.c: New file.
7071 * m4/strstr.m4: Likewise.
7072 * modules/strstr: Likewise.
7073 * modules/strstr-tests: Likewise.
7074 * tests/test-strstr.c: Likewise.
7075 * lib/string.in.h (rpl_strstr): Declare.
7076 (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
7077 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
7078 * modules/string (Makefile.am): Likewise.
7079 * MODULES.html.sh (string handling): Mention new module.
7080 * doc/functions/strstr.texi (strstr): Document the bug.
7082 2008-01-10 Bruno Haible <bruno@clisp.org>
7084 * lib/relocatable.h (relocate): State whether result is freshly
7086 * lib/relocatable.c (relocate): Return a freshly allocated string
7087 instead of a pointer to a privately held string.
7088 Reported by Sylvain Beucler <beuc@gnu.org>.
7090 2008-01-10 Colin Watson <cjwatson@debian.org>
7092 * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
7095 2008-01-09 Bruno Haible <bruno@clisp.org>
7097 * doc/functions/memmem.texi: Use the same structure as snprintf.texi
7099 * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
7100 if it's only a guess.
7101 * modules/memmem: Simplify by depending on memmem-simple.
7103 2008-01-09 Bruno Haible <bruno@clisp.org>
7105 Work around OpenBSD 4.0 tdelete() bug.
7106 * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
7107 * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
7108 macros and don't redefine the enum values.
7109 * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
7110 * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
7111 * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
7113 2008-01-09 Bruno Haible <bruno@clisp.org>
7115 * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
7116 (main): Don't perform the tests if setlocale did not install a UTF-8
7117 locale. Needed on OpenBSD 4.0.
7118 * modules/wcwidth-tests (Depends-on): Add localcharset.
7120 2008-01-09 Paul Eggert <eggert@cs.ucla.edu>
7122 gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
7123 See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
7124 * NEWS: announce this.
7125 * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
7127 2008-01-09 Simon Josefsson <simon@josefsson.org>
7128 and Eric Blake <ebb9@byu.net>
7130 Add memmem-simple module.
7131 * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
7132 (gl_FUNC_MEMMEM): Separate performance from presence checks.
7133 * modules/memmem-simple: New file.
7134 * modules/memmem (Description): Tweak.
7135 * MODULES.html.sh (string handling): Mention new module.
7136 * doc/functions/memmem.texi (memmem): Distinguish which flaws are
7137 addressed by memmem-simple.
7138 * NEWS: Document the difference.
7140 2008-01-09 Eric Blake <ebb9@byu.net>
7142 Give gcc some memmem optimization hints.
7143 * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
7144 (strcasestr): Declare as pure.
7145 * modules/memmem (Maintainer): Claim my implementation.
7147 2008-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7149 Support AIX 6.1 and higher.
7150 * build-aux/config.libpath: Likewise.
7151 * build-aux/config.rpath: Likewise.
7153 2008-01-08 Jim Meyering <meyering@redhat.com>
7154 Bruno Haible <bruno@clisp.org>
7156 * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
7157 on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
7158 Reported by Peter Fales in
7159 <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
7161 2008-01-08 Bruno Haible <bruno@clisp.org>
7163 * modules/unictype/category-of (Depends-on): Add
7164 unictype/category-none.
7165 * modules/unictype/category-and-tests (Depends-on): Add
7166 unictype/category-{L,N,Lu,Nd}.
7167 * modules/unictype/category-and-not-tests (Depends-on): Likewise.
7168 * modules/unictype/category-or-tests (Depends-on): Add
7169 unictype/category-{L,N}.
7170 * modules/unictype/category-name-tests (Depends-on): Add
7171 unictype/category-{Z,Nl}.
7172 Reported by Simon Josefsson.
7174 2008-01-08 Bruno Haible <bruno@clisp.org>
7176 * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
7178 * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
7179 * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
7180 Reported by Peter Miller <millerp@canb.auug.org.au>.
7182 2008-01-08 Eric Blake <ebb9@byu.net>
7184 Rewrite memmem to guarantee linear complexity without malloc.
7185 * lib/memmem.c (memmem): Use Two-Way rather than
7186 Knuth-Morris-Pratt, to allow O(1) space usage.
7187 (critical_factorization, two_way_short_needle)
7188 (two_way_long_needle): New functions.
7189 (knuth_morris_pratt): Delete.
7190 * modules/memmem (Depends-on): No longer need malloca or stdbool.
7192 * tests/test-memmem.c (main): Add tests for periodic needle and
7193 sublinear performance.
7194 * doc/functions/memmem.texi (memmem): Document other deficiencies
7195 in cygwin and older glibc.
7197 2008-01-08 Bruno Haible <bruno@clisp.org>
7199 * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
7202 2008-01-08 Mike Frysinger <vapier@gentoo.org>
7204 Add a configure time option: --disable-acl.
7205 * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
7208 2008-01-06 Simon Josefsson <simon@josefsson.org>
7210 * tests/test-localename.c: Don't include obsolete "setenv.h".
7212 * modules/localename-tests (Depends-on): Need unsetenv.
7214 2008-01-08 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7216 * DEPENDENCIES: Require Texinfo version 4.6 or newer.
7218 2008-01-06 Colin Watson <cjwatson@debian.org>
7220 * users.txt: Add man-db.
7222 2008-01-07 Bruno Haible <bruno@clisp.org>
7224 * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
7225 previous section name.
7227 2008-01-07 Bruno Haible <bruno@clisp.org>
7229 * lib/progname.c (set_program_name): Don't strip off a leading
7230 "lt-" prefix outside a .libs directory.
7231 Suggested by Paul Eggert.
7233 2008-01-01 Sylvain Beucler <beuc@gnu.org>
7234 Bruno Haible <bruno@clisp.org>
7236 Improve memory cleanup in 'relocatable' module.
7237 * lib/relocatable.h (compute_curr_prefix): Change return type to
7239 * lib/relocatable.c (compute_curr_prefix): Change return type to
7240 'char *'. Free curr_installdir after use.
7241 (relocate): Free curr_prefix_better after use.
7242 * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
7244 2008-01-01 Bruno Haible <bruno@clisp.org>
7246 * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
7247 failure on older glibc systems.
7248 Reported by Peter Fales <psfales@alcatel-lucent.com>.
7250 2008-01-05 Eric Blake <ebb9@byu.net>
7252 Avoid quadratic system memmem.
7253 * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
7254 Reported by Ralf Wildenhues.
7256 Fix memmem test for mingw.
7257 * modules/memmem-tests (configure.ac): Check for alarm.
7258 * tests/test-memmem.c (main): Avoid alarm on platforms that lack
7260 * doc/functions/memmem.texi: New file.
7261 * doc/gnulib.texi (Function Substitutes): Add memmem.
7262 Reported by Bruno Haible.
7264 2008-01-04 Bruno Haible <bruno@clisp.org>
7266 * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
7267 Require gl_HEADER_STRINGS_H_DEFAULTS, not
7268 gl_HEADER_STRING_H_DEFAULTS.
7270 2008-01-04 Eric Blake <ebb9@byu.net>
7272 Shorten duration of memmem test.
7273 * tests/test-memmem.c (main): Use alarm to declare failure if test
7275 Reported by Ralf Wildenhues.
7277 2007-12-21 Simon Josefsson <simon@josefsson.org>
7279 * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
7280 string, needed by strerror.
7282 2008-01-03 Colin Watson <cjwatson@debian.org>
7283 Bruno Haible <bruno@clisp.org>
7285 * doc/gnulib-tool.texi (Localization): New section.
7287 2008-01-02 Bruno Haible <bruno@clisp.org>
7289 * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
7290 variables to 'unsigned char *' type.
7291 Reported by Paul Eggert.
7293 2008-01-02 Jim Meyering <jim@meyering.net>
7295 * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
7297 2007-12-31 Jim Meyering <jim@meyering.net>
7299 Avoid use of private FTS type name.
7300 * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
7302 2007-12-30 Karl Berry <karl@gnu.org>
7304 * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
7305 work around defect in Texinfo and/or the standalone Info browser.
7307 2007-12-30 Bruno Haible <bruno@clisp.org>
7309 Unify 5 copies of the KMP code.
7310 * lib/str-kmp.h: New file.
7311 * lib/c-strcasestr.c: Include str-kmp.h.
7312 (knuth_morris_pratt): Remove function.
7313 (c_strcasestr): Update.
7314 * lib/c-strstr.c: Include str-kmp.h.
7315 (knuth_morris_pratt): Remove function.
7316 (c_strcasestr): Update.
7317 * lib/mbscasestr.c: Include str-kmp.h.
7318 (knuth_morris_pratt_unibyte): Remove function.
7319 * lib/mbsstr.c: Include str-kmp.h.
7320 (knuth_morris_pratt_unibyte): Remove function.
7321 * lib/strcasestr.c: Include str-kmp.h.
7322 (knuth_morris_pratt): Remove function.
7323 (strcasestr): Update.
7324 * modules/c-strcasestr (Files): Add lib/str-kmp.h.
7325 * modules/c-strstr (Files): Likewise.
7326 * modules/mbscasestr (Files): Likewise.
7327 * modules/mbsstr (Files): Likewise.
7328 * modules/strcasestr (Files): Likewise.
7329 Suggested by Paul Eggert.
7331 2007-12-30 Bruno Haible <bruno@clisp.org>
7333 * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
7336 2007-12-30 Bruno Haible <bruno@clisp.org>
7338 * lib/xmalloca.h: Include xalloc.h.
7339 (xnmalloca): New macro.
7341 2007-12-30 Bruno Haible <bruno@clisp.org>
7343 * lib/malloca.h (nmalloca): New macro.
7344 * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
7345 * lib/c-strstr.c (knuth_morris_pratt): Likewise.
7346 * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
7347 knuth_morris_pratt_multibyte): Likewise.
7348 * lib/mbsstr.c (knuth_morris_pratt_unibyte,
7349 knuth_morris_pratt_multibyte): Likewise.
7350 * lib/memmem.c (knuth_morris_pratt): Likewise.
7351 * lib/strcasestr.c (knuth_morris_pratt): Likewise.
7353 2007-12-25 Bruno Haible <bruno@clisp.org>
7355 Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
7356 * lib/glob.c: Don't include openat.h.
7357 (link_exists2_p): Add back the code that deals with the
7358 !GLOB_ALTDIRFUNC case.
7359 (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
7360 let it do the filename concatenation.
7361 * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
7362 * modules/glob (Depends-on): Remove openat.
7364 2007-12-31 Bruno Haible <bruno@clisp.org>
7366 * modules/dirfd (License): Change to LGPLv2+.
7367 Approved by Jim Meyering.
7369 2007-12-29 Paul Eggert <eggert@cs.ucla.edu>
7371 * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
7372 when multiplying M by sizeof (size_t).
7374 2007-12-10 Martin Lambers <marlam@marlam.de>
7376 Override getpagesize on mingw.
7377 * lib/getpagesize.c: New file.
7378 * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
7379 * modules/getpagesize (Files): Add lib/getpagesize.c.
7380 * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
7381 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
7382 REPLACE_GETPAGESIZE.
7383 * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
7385 2007-12-25 Bruno Haible <bruno@clisp.org>
7387 * modules/localcharset (Notice): New field.
7388 (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
7389 Suggested by Ben Pfaff <blp@cs.stanford.edu>.
7391 2007-12-25 Paul Eggert <eggert@cs.ucla.edu>
7392 Bruno Haible <bruno@clisp.org>
7394 Avoid using the syntax symbol() in formatted documentation.
7395 * MODULES.html.sh (func_module): When replacing symbol() with a
7396 hyperlink, remove the parentheses. Show an error if some remain.
7397 Recognize and render the '...' syntax.
7398 * doc/alloca-opt.texi: Remove parentheses from symbol reference.
7399 Rework. Add paragraph about GCC's inlining.
7400 * doc/alloca.texi: Likewise.
7401 * doc/error.texi: Remove parentheses from symbol reference.
7402 * doc/gnulib-intro.texi: Likewise.
7403 * doc/gnulib.texi (alloca, alloca-opt): New nodes.
7404 * modules/fnmatch (Description): Reword to say "the ... function".
7405 * modules/full-read (Description): Likewise.
7406 * modules/full-write (Description): Likewise.
7407 * modules/safe-read (Description): Likewise.
7408 * modules/safe-write (Description): Likewise.
7409 * modules/strchrnul (Description): Likewise.
7410 * modules/trim (Description): Likewise.
7411 * modules/error (Description): Remove parentheses from symbol
7413 * modules/verror (Description): Likewise.
7414 Reported by Karl Berry.
7416 2007-12-25 Bruno Haible <bruno@clisp.org>
7418 Fixup after 2007-10-16 commit.
7419 * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
7421 2007-12-24 Bruno Haible <bruno@clisp.org>
7423 Make --enable-relocatable work with DESTDIR.
7424 * build-aux/install-reloc: Accept another argument 'destdir'. Use it
7425 to compute installdir from destprog.
7426 * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
7427 also set the RELOC_DESTDIR variable.
7428 Reported by Левашев Иван <octagram@bluebottle.com>.
7430 2007-12-24 Bruno Haible <bruno@clisp.org>
7432 Fix link error due to xalloc_die().
7433 * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
7435 * lib/relocwrapper.c: Update comments.
7436 * build-aux/install-reloc: Remove xreadlink.c from file list.
7437 * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
7439 Reported by Левашев Иван <octagram@bluebottle.com>.
7441 2007-12-24 Bruno Haible <bruno@clisp.org>
7443 Split setenv module into setenv and unsetenv. Get rid of setenv.h.
7444 * lib/setenv.h: Remove file.
7445 * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
7447 * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
7448 (Depends-on): Add stdlib.
7449 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
7451 (Include): Replace setenv.h with <stdlib.h>.
7452 * modules/unsetenv: New file.
7453 * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
7454 * lib/unsetenv.c: Include <stdlib.h> first.
7455 * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
7456 gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
7457 (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
7458 HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
7459 * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
7460 HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
7461 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
7462 HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
7463 * doc/functions/unsetenv.texi: Update.
7464 * modules/xsetenv (Depends-on): Add unsetenv.
7465 * modules/getdate (Depends-on): Likewise.
7466 * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
7467 * lib/xsetenv.c: Don't include setenv.h.
7468 * lib/getdate.y: Likewise.
7469 * lib/relocwrapper.c: Likewise.
7470 * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
7471 (Depends-on): Add stdlib.
7472 * NEWS: Mention the changes.
7473 Reported by Левашев Иван <octagram@bluebottle.com>.
7475 2007-12-23 Bruno Haible <bruno@clisp.org>
7477 * lib/memmem.c (memmem): Use lowercase variable names. Tab
7480 2007-12-23 Bruno Haible <bruno@clisp.org>
7482 * lib/c-strcasestr.c: Add more comments.
7483 * lib/c-strstr.c: Likewise.
7484 * lib/mbscasestr.c: Likewise.
7485 * lib/mbsstr.c: Likewise.
7486 * lib/strcasestr.c: Likewise.
7487 * lib/memmem.c: Likewise.
7489 2007-12-23 Bruno Haible <bruno@clisp.org>
7491 * tests/test-memmem.c: Include <string.h> first.
7493 2007-12-22 Bruno Haible <bruno@clisp.org>
7495 * gnulib-tool (func_create_testdir): Change $auxdir while generating
7496 the contents of $testsbase.
7497 Reported by Ralf Wildenhues.
7499 2007-12-22 Bruno Haible <bruno@clisp.org>
7501 * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
7502 two variables local_ldadd_before, local_ldadd_last.
7504 2007-12-20 Eric Blake <ebb9@byu.net>
7506 Work around circular library issue when cross-compiling.
7507 * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
7508 that progname.o does not need to pull in rpl_memcmp.
7510 2007-12-19 Eric Blake <ebb9@byu.net>
7512 Fix memmem to avoid O(n^2) worst-case complexity.
7513 * lib/memmem.c (knuth_morris_pratt): New function.
7514 (memmem): Use it if first few naive iterations fail.
7515 * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
7516 * modules/memcmp (License): Set to LGPLv2+, not LGPL.
7517 * modules/memchr (License): Likewise.
7518 * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
7520 * tests/test-memmem.c: Rewrite, borrowing ideas from
7521 test-mbsstr1.c; the old version wouldn't even compile!
7522 * modules/memmem-tests: New file.
7523 * lib/string.in.h (rpl_memmem): Add declaration.
7524 * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
7525 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
7528 2007-12-18 Paul Eggert <eggert@cs.ucla.edu>
7530 Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
7531 * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
7532 before any system include files, and undef after them all. This
7533 should fix a problem on VMS reported by John E. Malmberg in
7534 <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
7536 2007-12-17 Eric Blake <ebb9@byu.net>
7538 Revert addition of verify, for BSD/OS.
7539 * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
7540 can't handle large files, for the sake of obsolete platforms.
7541 * modules/fseeko (Depends-on): Remove verify.
7542 * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
7543 * doc/functions/ftello.texi (ftello): Likewise.
7544 * doc/functions/fgetpos.texi (fgetpos): Likewise.
7545 Reported by Larry Jones.
7547 2007-12-17 Petr Salinger <Petr.Salinger@seznam.cz>
7549 getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
7550 * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
7552 2007-12-17 Jim Meyering <meyering@redhat.com>
7554 Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
7555 which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
7556 * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
7557 * modules/getcwd (Depends-on): Add openat.
7558 Reported by Petr Salinger.
7560 2007-12-17 Bruno Haible <bruno@clisp.org>
7562 * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
7563 avoid a segmentation fault of the configure test on x86_64 systems.
7565 2007-12-15 Jim Meyering <meyering@redhat.com>
7567 * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
7569 2007-12-13 Eric Blake <ebb9@byu.net>
7572 * tests/test-fseek.c (main): Also test ungetc handling.
7573 * tests/test-fseeko.c (main): Likewise.
7574 * modules/fseeko (Depends-on): Add verify.
7575 * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
7577 Reported by Larry Jones.
7579 Fix fseeko on mingw.
7580 * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
7583 Beef up fseek tests.
7584 * tests/test-fseek.c (main): Also test eof handling.
7585 * tests/test-fseeko.c (main): Likewise.
7586 Reported by Larry Jones.
7588 2007-12-13 Larry Jones <lawrence.jones@siemens.com> (tiny change)
7590 Fix fseeko on BSD-based platforms.
7591 * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
7594 2007-12-12 Eric Blake <ebb9@byu.net>
7596 Allow circular dependency of separate libtests.a
7597 * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
7600 2007-12-11 Eric Blake <ebb9@byu.net>
7602 Fix bug with -0.0L in previous patch.
7603 * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
7604 * tests/test-isnan.c (main): Also test on zeroes.
7605 * tests/test-isnanf.c (main): Likewise.
7606 * tests/test-isnanl.h (main): Likewise.
7608 Detect pseudo-denormals on x86 even when cross-compiling.
7609 * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
7610 && USE_LONG_DOUBLE && x86]: Add one more check to filter out
7611 invalid bit patterns that happen to satisfy ==.
7613 Avoid link failures with separate libtests.a.
7614 * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
7615 last, to satisfy circular dependencies.
7617 2007-12-11 Eric Blake <ebb9@byu.net>
7618 and Bruno Haible <bruno@clisp.org>
7620 Fix OpenBSD 4.0 <float.h> handling of long double.
7621 * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
7622 * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
7623 * doc/headers/float.texi (float.h): Document OpenBSD bug.
7625 2007-12-11 Jim Meyering <meyering@redhat.com>
7627 * users.txt: Add libvirt.
7629 Support versions of autoconf prior to 2.59c.
7630 * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
7631 if it is not already defined.
7633 2007-12-09 Bruno Haible <bruno@clisp.org>
7635 Let 'gnulib-tool --import' collect sources needed for the tests in
7636 tests/ rather than in lib/.
7637 * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
7638 argument. If true, add rules to generate libtests.a, and put libtests.a
7639 into $(LDADD). Consider source files in subdirectories and set
7641 (func_emit_initmacro_start, func_emit_initmacro_end,
7642 func_emit_initmacro_done): Pass all arguments explicitly.
7643 (func_import): Determine two module lists main_modules,
7644 testsrelated_modules. Determine use_libtests. Determine two variables
7645 sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
7646 instead of just sed_transform_lib_file. Determine two variables
7647 main_files and testsrelated_files. Compute 'files' as the union of
7648 both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
7649 func_add_or_update. In the generated gnulib-comp.m4, collect the
7650 object files for tests/ in different variables than those for lib/.
7651 Substitute LIBTESTS_LIBDEPS.
7652 (func_create_testdir): Combine the uses_subdirs results from
7653 func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
7655 2007-12-09 Bruno Haible <bruno@clisp.org>
7657 * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
7658 the build-aux directory.
7660 2007-12-09 Bruno Haible <bruno@clisp.org>
7662 * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
7663 introduced on 2006-09-09.
7665 2007-12-07 Jim Meyering <meyering@redhat.com>
7667 Let these macros work also with autoconf-2.59.
7668 * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59. 2.60
7669 is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
7670 * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
7672 2007-12-06 Jim Meyering <meyering@redhat.com>
7674 Avoid a configure-time syntax error in gl_FUNC_ACL.
7675 * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
7676 function in each branch, before testing the cache variable.
7678 2007-12-04 Eric Blake <ebb9@byu.net>
7680 Make scripts executable.
7681 * build-aux/config.guess: Add execute permissions.
7682 * build-aux/config.sub: Likewise.
7683 * build-aux/gendocs.sh: Likewise.
7686 * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
7688 * doc/functions/frexp.texi (frexp): Document the bug.
7690 Make cygwin fseeko check more reliable.
7691 * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
7692 version numbers, rather than unrelated feature check.
7693 * doc/functions/fseeko.texi (fseeko): Tweak failure report.
7694 * doc/functions/ftello.texi (ftello): Likewise.
7695 Reported by Bruno Haible.
7697 * m4/strerror.m4: Bump version number.
7699 2007-12-03 Bruno Haible <bruno@clisp.org>
7701 * doc/functions/mprotect.texi: Mention the mingw problem.
7703 2007-12-03 Eric Blake <ebb9@byu.net>
7705 * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
7706 REPLACE_STRERROR is initialized before this macro.
7708 2007-12-03 Paul Eggert <eggert@cs.ucla.edu>
7710 Add support for Solaris 10 ACLs. Also, ACLs are Gnulib, not Autoconf.
7711 * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
7712 * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL. On Solaris,
7713 put -lsec in even for programs other than 'ls'. This fixes a problem
7714 for gettext reported by Bruno Haible in
7715 <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
7716 * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
7717 Add support for Solaris 10. This isn't efficient, but should get the
7720 2007-12-03 James Youngman <jay@gnu.org>
7722 * doc/regexprops-generic.texi: change "an close-group" to "a
7723 close-group" and "illegal" to "not allowed".
7725 2007-11-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7727 * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
7728 pr_byname.h. Needed for the rare case when the maintainer has done
7729 "make maintainer-clean" in the source directory and then attempts a
7730 build outside the source directory.
7731 * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
7734 2007-12-02 Martin Lambers <marlam@marlam.de>
7735 Bruno Haible <bruno@clisp.org>
7737 * lib/getpagesize.h: Remove file.
7738 * lib/unistd.in.h: Include declaration of getpagesize here.
7739 * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
7740 Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
7742 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
7743 HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
7744 * modules/getpagesize (Files): Remove lib/getpagesize.h.
7745 (Depends-on): Add unistd.
7746 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
7747 (Include): Use <unistd.h> instead of getpagesize.h.
7748 * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
7749 HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
7750 * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
7751 gl_GETPAGESIZE invocation, already handled by module dependency.
7752 * lib/pagealign_alloc.c: Don't include getpagesize.h.
7754 2007-12-02 Bruno Haible <bruno@clisp.org>
7756 * modules/strings-tests: New file.
7757 * tests/test-strings.c: New file.
7759 Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
7760 * lib/strings.in.h: New file.
7761 * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
7762 * m4/strings_h.m4: New file.
7763 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
7764 of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
7765 * modules/strings: New file.
7766 * modules/string (Makefile.am): Update.
7767 * modules/strcase (Include): Mention <strings.h>, not <string.h>.
7768 Reported by Karl Berry.
7770 2007-12-01 Eric Blake <ebb9@byu.net>
7772 * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
7773 accomodate fix in cygwin 1.5.25.
7775 2007-12-01 Jim Meyering <meyering@redhat.com>
7777 Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
7778 * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
7779 that would inhibit utf8-optimization of a regexp containing line-
7780 or buffer-anchors, e.g., `^', `$'.
7782 2007-11-30 Bruno Haible <bruno@clisp.org>
7784 * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
7785 PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
7786 glthread_recursive_lock_init.
7787 * lib/lock.c (glthread_recursive_lock_init)
7788 [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
7789 Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
7791 2007-11-28 Paul Eggert <eggert@cs.ucla.edu>
7793 New function qset_acl, like set_acl but with syscall semantics.
7794 * lib/acl.h (qset_acl): New decl.
7795 * lib/acl.c (qset_acl): New function.
7796 (set_acl): Use new function. Use more-consistent diagnostics.
7798 2007-11-28 Jim Meyering <meyering@redhat.com>
7800 * modules/physmem (License): Change from GPL to LGPLv2+.
7802 2007-11-26 Bruno Haible <bruno@clisp.org>
7804 * lib/vasnprintf.c (decode_long_double): Don't abort if the
7805 'long double' type has excess precision.
7806 Reported by Jim Meyering in
7807 <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
7809 2007-11-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7811 * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
7812 Sync from <http://gnu.org/licenses>.
7813 * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
7814 with license text from same location.
7815 * doc/maintain.texi, doc/standards.texi: Sync from
7816 <http://savannah.gnu.org/projects/gnustandards>.
7818 2007-11-22 Ondřej Vašík <ovasik@redhat.com>
7819 and Jim Meyering <meyering@redhat.com>
7821 Adjust getdate' grammar to accept a slightly more regular language.
7822 E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
7823 Before, the former was rejected.
7824 * lib/getdate.y (digits_to_date_time): New function, factored
7826 (number): ...here. Just call digits_to_date_time.
7827 (hybrid): New non-terminal to handle an <unsigned number,
7828 signed relative offset> sequence consistently.
7830 2007-11-18 Jim Meyering <meyering@redhat.com>
7832 Pull my changes from coreutils:
7833 bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
7834 * build-aux/bootstrap (gnulib_tool_options): Add a space before the
7835 use of $gnulib_tool_option_extras, so that it's separated from the
7838 Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
7839 * build-aux/bootstrap (cp_mark_as_generated): Create any required
7840 parent destination directories before copying a file into place.
7842 2007-11-18 Sergey Poznyakoff <gray@gnu.org.ua>
7844 bootstrap: work also with 4-argument variant of AC_INIT
7845 * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
7847 2007-11-16 Paul Eggert <eggert@cs.ucla.edu>
7849 Port test-getaddrinfo to Solaris.
7850 Problem reported by Bruno Haible in
7851 <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
7852 * tests/test-getaddrinfo.c (simple): Add a comment asking for an
7853 explanation of setting 'hints'.
7854 Don't reject an implementation merely because it returns EAI_SERVICE.
7855 (EAI_SERVICE): Define to 0 if not defined.
7857 2007-11-15 Paul Eggert <eggert@cs.ucla.edu>
7859 The license of gnu-make and posix-shell is now "GPLed build tool".
7860 * modules/gnu-make (License): Likewise.
7861 * modules/posix-shell (License): Likewise.
7863 New module posix-shell, for determining a POSIX shell
7864 or perhaps something that is close enough to a POSIX shell.
7865 * m4/posix-shell.m4: New file.
7866 * modules/posix-shell: New file.
7868 * MODULES.html.sh: Mention new module.
7870 New module gnu-make, for determining whether we're using GNU Make.
7871 * m4/gnu-make.m4: New file.
7872 * modules/gnu-make: New file.
7873 * MODULES.html.sh: Mention new module.
7875 2007-11-14 Jim Meyering <meyering@redhat.com>
7877 Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
7878 * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
7879 use this macro to create a function _definition_.
7880 Remove useless "#undef ARGMATCH_DIE".
7882 2007-11-14 Bruno Haible <bruno@clisp.org>
7884 * lib/config.charset: Update for OpenBSD 4.1.
7885 Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
7887 2007-11-12 Paul Eggert <eggert@cs.ucla.edu>
7889 Document 64-bit #if problems in stdint.texi.
7890 * doc/headers/stdint.texi (stdint.h): Mention problems with
7891 64-bit-#if, and how to work around them.
7893 Don't insist on 'long long int' support in the preprocessor. It
7894 breaks too many things. For example, PRIdMAX still uses a 'long
7895 long int' format with the latest Sun compiler, even though
7896 HAVE_LONG_LONG_INT isn't defined due to that compiler's
7897 preprocessor problem. This causes the latest coreutils to dump
7898 core on Solaris 10 sparc with the Sun C compiler.
7899 Instead, fix the 2007-10-16 problem in a different way, by evaluating
7900 the troublesome expressions at configure-time, not at #if-time.
7901 * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
7903 * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
7904 compile-time C checks, done at 'configure'-time.
7905 (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
7906 * modules/inttypes (Makefile): Substitute the new symbols that
7907 gl_INTTYPES_H now generates.
7908 * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
7910 2007-11-12 Bruno Haible <bruno@clisp.org>
7912 Tests for Unicode character classification functions.
7914 * modules/unictype/bidicategory-byname-tests: New file.
7915 * modules/unictype/bidicategory-name-tests: New file.
7916 * modules/unictype/bidicategory-of-tests: New file.
7917 * modules/unictype/bidicategory-test-tests: New file.
7918 * modules/unictype/block-list-tests: New file.
7919 * modules/unictype/block-of-tests: New file.
7920 * modules/unictype/block-test-tests: New file.
7921 * modules/unictype/category-C-tests: New file.
7922 * modules/unictype/category-Cc-tests: New file.
7923 * modules/unictype/category-Cf-tests: New file.
7924 * modules/unictype/category-Cn-tests: New file.
7925 * modules/unictype/category-Co-tests: New file.
7926 * modules/unictype/category-Cs-tests: New file.
7927 * modules/unictype/category-L-tests: New file.
7928 * modules/unictype/category-Ll-tests: New file.
7929 * modules/unictype/category-Lm-tests: New file.
7930 * modules/unictype/category-Lo-tests: New file.
7931 * modules/unictype/category-Lt-tests: New file.
7932 * modules/unictype/category-Lu-tests: New file.
7933 * modules/unictype/category-M-tests: New file.
7934 * modules/unictype/category-Mc-tests: New file.
7935 * modules/unictype/category-Me-tests: New file.
7936 * modules/unictype/category-Mn-tests: New file.
7937 * modules/unictype/category-N-tests: New file.
7938 * modules/unictype/category-Nd-tests: New file.
7939 * modules/unictype/category-Nl-tests: New file.
7940 * modules/unictype/category-No-tests: New file.
7941 * modules/unictype/category-P-tests: New file.
7942 * modules/unictype/category-Pc-tests: New file.
7943 * modules/unictype/category-Pd-tests: New file.
7944 * modules/unictype/category-Pe-tests: New file.
7945 * modules/unictype/category-Pf-tests: New file.
7946 * modules/unictype/category-Pi-tests: New file.
7947 * modules/unictype/category-Po-tests: New file.
7948 * modules/unictype/category-Ps-tests: New file.
7949 * modules/unictype/category-S-tests: New file.
7950 * modules/unictype/category-Sc-tests: New file.
7951 * modules/unictype/category-Sk-tests: New file.
7952 * modules/unictype/category-Sm-tests: New file.
7953 * modules/unictype/category-So-tests: New file.
7954 * modules/unictype/category-Z-tests: New file.
7955 * modules/unictype/category-Zl-tests: New file.
7956 * modules/unictype/category-Zp-tests: New file.
7957 * modules/unictype/category-Zs-tests: New file.
7958 * modules/unictype/category-and-not-tests: New file.
7959 * modules/unictype/category-and-tests: New file.
7960 * modules/unictype/category-byname-tests: New file.
7961 * modules/unictype/category-name-tests: New file.
7962 * modules/unictype/category-none-tests: New file.
7963 * modules/unictype/category-of-tests: New file.
7964 * modules/unictype/category-or-tests: New file.
7965 * modules/unictype/category-test-withtable-tests: New file.
7966 * modules/unictype/combining-class-tests: New file.
7967 * modules/unictype/ctype-alnum-tests: New file.
7968 * modules/unictype/ctype-alpha-tests: New file.
7969 * modules/unictype/ctype-blank-tests: New file.
7970 * modules/unictype/ctype-cntrl-tests: New file.
7971 * modules/unictype/ctype-digit-tests: New file.
7972 * modules/unictype/ctype-graph-tests: New file.
7973 * modules/unictype/ctype-lower-tests: New file.
7974 * modules/unictype/ctype-print-tests: New file.
7975 * modules/unictype/ctype-punct-tests: New file.
7976 * modules/unictype/ctype-space-tests: New file.
7977 * modules/unictype/ctype-upper-tests: New file.
7978 * modules/unictype/ctype-xdigit-tests: New file.
7979 * modules/unictype/decimal-digit-tests: New file.
7980 * modules/unictype/digit-tests: New file.
7981 * modules/unictype/mirror-tests: New file.
7982 * modules/unictype/numeric-tests: New file.
7983 * modules/unictype/property-alphabetic-tests: New file.
7984 * modules/unictype/property-ascii-hex-digit-tests: New file.
7985 * modules/unictype/property-bidi-arabic-digit-tests: New file.
7986 * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
7987 * modules/unictype/property-bidi-block-separator-tests: New file.
7988 * modules/unictype/property-bidi-boundary-neutral-tests: New file.
7989 * modules/unictype/property-bidi-common-separator-tests: New file.
7990 * modules/unictype/property-bidi-control-tests: New file.
7991 * modules/unictype/property-bidi-embedding-or-override-tests: New file.
7992 * modules/unictype/property-bidi-eur-num-separator-tests: New file.
7993 * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
7994 * modules/unictype/property-bidi-european-digit-tests: New file.
7995 * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
7996 * modules/unictype/property-bidi-left-to-right-tests: New file.
7997 * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
7998 * modules/unictype/property-bidi-other-neutral-tests: New file.
7999 * modules/unictype/property-bidi-pdf-tests: New file.
8000 * modules/unictype/property-bidi-segment-separator-tests: New file.
8001 * modules/unictype/property-bidi-whitespace-tests: New file.
8002 * modules/unictype/property-byname-tests: New file.
8003 * modules/unictype/property-combining-tests: New file.
8004 * modules/unictype/property-composite-tests: New file.
8005 * modules/unictype/property-currency-symbol-tests: New file.
8006 * modules/unictype/property-dash-tests: New file.
8007 * modules/unictype/property-decimal-digit-tests: New file.
8008 * modules/unictype/property-default-ignorable-code-point-tests: New file.
8009 * modules/unictype/property-deprecated-tests: New file.
8010 * modules/unictype/property-diacritic-tests: New file.
8011 * modules/unictype/property-extender-tests: New file.
8012 * modules/unictype/property-format-control-tests: New file.
8013 * modules/unictype/property-grapheme-base-tests: New file.
8014 * modules/unictype/property-grapheme-extend-tests: New file.
8015 * modules/unictype/property-grapheme-link-tests: New file.
8016 * modules/unictype/property-hex-digit-tests: New file.
8017 * modules/unictype/property-hyphen-tests: New file.
8018 * modules/unictype/property-id-continue-tests: New file.
8019 * modules/unictype/property-id-start-tests: New file.
8020 * modules/unictype/property-ideographic-tests: New file.
8021 * modules/unictype/property-ids-binary-operator-tests: New file.
8022 * modules/unictype/property-ids-trinary-operator-tests: New file.
8023 * modules/unictype/property-ignorable-control-tests: New file.
8024 * modules/unictype/property-iso-control-tests: New file.
8025 * modules/unictype/property-join-control-tests: New file.
8026 * modules/unictype/property-left-of-pair-tests: New file.
8027 * modules/unictype/property-line-separator-tests: New file.
8028 * modules/unictype/property-logical-order-exception-tests: New file.
8029 * modules/unictype/property-lowercase-tests: New file.
8030 * modules/unictype/property-math-tests: New file.
8031 * modules/unictype/property-non-break-tests: New file.
8032 * modules/unictype/property-not-a-character-tests: New file.
8033 * modules/unictype/property-numeric-tests: New file.
8034 * modules/unictype/property-other-alphabetic-tests: New file.
8035 * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
8036 * modules/unictype/property-other-grapheme-extend-tests: New file.
8037 * modules/unictype/property-other-id-continue-tests: New file.
8038 * modules/unictype/property-other-id-start-tests: New file.
8039 * modules/unictype/property-other-lowercase-tests: New file.
8040 * modules/unictype/property-other-math-tests: New file.
8041 * modules/unictype/property-other-uppercase-tests: New file.
8042 * modules/unictype/property-paired-punctuation-tests: New file.
8043 * modules/unictype/property-paragraph-separator-tests: New file.
8044 * modules/unictype/property-pattern-syntax-tests: New file.
8045 * modules/unictype/property-pattern-white-space-tests: New file.
8046 * modules/unictype/property-private-use-tests: New file.
8047 * modules/unictype/property-punctuation-tests: New file.
8048 * modules/unictype/property-quotation-mark-tests: New file.
8049 * modules/unictype/property-radical-tests: New file.
8050 * modules/unictype/property-sentence-terminal-tests: New file.
8051 * modules/unictype/property-soft-dotted-tests: New file.
8052 * modules/unictype/property-space-tests: New file.
8053 * modules/unictype/property-terminal-punctuation-tests: New file.
8054 * modules/unictype/property-test-tests: New file.
8055 * modules/unictype/property-titlecase-tests: New file.
8056 * modules/unictype/property-unassigned-code-value-tests: New file.
8057 * modules/unictype/property-unified-ideograph-tests: New file.
8058 * modules/unictype/property-uppercase-tests: New file.
8059 * modules/unictype/property-variation-selector-tests: New file.
8060 * modules/unictype/property-white-space-tests: New file.
8061 * modules/unictype/property-xid-continue-tests: New file.
8062 * modules/unictype/property-xid-start-tests: New file.
8063 * modules/unictype/property-zero-width-tests: New file.
8064 * modules/unictype/scripts-tests: New file.
8065 * modules/unictype/syntax-c-ident-tests: New file.
8066 * modules/unictype/syntax-c-whitespace-tests: New file.
8067 * modules/unictype/syntax-java-ident-tests: New file.
8068 * modules/unictype/syntax-java-whitespace-tests: New file.
8069 * tests/unictype/test-bidi_byname.c: New file.
8070 * tests/unictype/test-bidi_name.c: New file.
8071 * tests/unictype/test-bidi_of.c: New file.
8072 * tests/unictype/test-bidi_test.c: New file.
8073 * tests/unictype/test-block_list.c: New file.
8074 * tests/unictype/test-block_of.c: New file.
8075 * tests/unictype/test-block_test.c: New file.
8076 * tests/unictype/test-categ_and.c: New file.
8077 * tests/unictype/test-categ_and_not.c: New file.
8078 * tests/unictype/test-categ_byname.c: New file.
8079 * tests/unictype/test-categ_name.c: New file.
8080 * tests/unictype/test-categ_none.c: New file.
8081 * tests/unictype/test-categ_of.c: New file.
8082 * tests/unictype/test-categ_or.c: New file.
8083 * tests/unictype/test-categ_test_withtable.c: New file.
8084 * tests/unictype/test-combining.c: New file.
8085 * tests/unictype/test-decdigit.c: New file.
8086 * tests/unictype/test-digit.c: New file.
8087 * tests/unictype/test-mirror.c: New file.
8088 * tests/unictype/test-numeric.c: New file.
8089 * tests/unictype/test-pr_byname.c: New file.
8090 * tests/unictype/test-pr_test.c: New file.
8091 * tests/unictype/test-predicate-part1.h: New file.
8092 * tests/unictype/test-predicate-part2.h: New file.
8093 * tests/unictype/test-scripts.c: New file.
8094 * tests/unictype/test-sy_c_ident.c: New file.
8095 * tests/unictype/test-sy_java_ident.c: New file.
8097 * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
8099 * tests/unictype/test-categ_Cc.c: Likewise.
8100 * tests/unictype/test-categ_Cf.c: Likewise.
8101 * tests/unictype/test-categ_Cn.c: Likewise.
8102 * tests/unictype/test-categ_Co.c: Likewise.
8103 * tests/unictype/test-categ_Cs.c: Likewise.
8104 * tests/unictype/test-categ_L.c: Likewise.
8105 * tests/unictype/test-categ_Ll.c: Likewise.
8106 * tests/unictype/test-categ_Lm.c: Likewise.
8107 * tests/unictype/test-categ_Lo.c: Likewise.
8108 * tests/unictype/test-categ_Lt.c: Likewise.
8109 * tests/unictype/test-categ_Lu.c: Likewise.
8110 * tests/unictype/test-categ_M.c: Likewise.
8111 * tests/unictype/test-categ_Mc.c: Likewise.
8112 * tests/unictype/test-categ_Me.c: Likewise.
8113 * tests/unictype/test-categ_Mn.c: Likewise.
8114 * tests/unictype/test-categ_N.c: Likewise.
8115 * tests/unictype/test-categ_Nd.c: Likewise.
8116 * tests/unictype/test-categ_Nl.c: Likewise.
8117 * tests/unictype/test-categ_No.c: Likewise.
8118 * tests/unictype/test-categ_P.c: Likewise.
8119 * tests/unictype/test-categ_Pc.c: Likewise.
8120 * tests/unictype/test-categ_Pd.c: Likewise.
8121 * tests/unictype/test-categ_Pe.c: Likewise.
8122 * tests/unictype/test-categ_Pf.c: Likewise.
8123 * tests/unictype/test-categ_Pi.c: Likewise.
8124 * tests/unictype/test-categ_Po.c: Likewise.
8125 * tests/unictype/test-categ_Ps.c: Likewise.
8126 * tests/unictype/test-categ_S.c: Likewise.
8127 * tests/unictype/test-categ_Sc.c: Likewise.
8128 * tests/unictype/test-categ_Sk.c: Likewise.
8129 * tests/unictype/test-categ_Sm.c: Likewise.
8130 * tests/unictype/test-categ_So.c: Likewise.
8131 * tests/unictype/test-categ_Z.c: Likewise.
8132 * tests/unictype/test-categ_Zl.c: Likewise.
8133 * tests/unictype/test-categ_Zp.c: Likewise.
8134 * tests/unictype/test-categ_Zs.c: Likewise.
8135 * tests/unictype/test-ctype_alnum.c: Likewise.
8136 * tests/unictype/test-ctype_alpha.c: Likewise.
8137 * tests/unictype/test-ctype_blank.c: Likewise.
8138 * tests/unictype/test-ctype_cntrl.c: Likewise.
8139 * tests/unictype/test-ctype_digit.c: Likewise.
8140 * tests/unictype/test-ctype_graph.c: Likewise.
8141 * tests/unictype/test-ctype_lower.c: Likewise.
8142 * tests/unictype/test-ctype_print.c: Likewise.
8143 * tests/unictype/test-ctype_punct.c: Likewise.
8144 * tests/unictype/test-ctype_space.c: Likewise.
8145 * tests/unictype/test-ctype_upper.c: Likewise.
8146 * tests/unictype/test-ctype_xdigit.c: Likewise.
8147 * tests/unictype/test-decdigit.h: Likewise.
8148 * tests/unictype/test-digit.h: Likewise.
8149 * tests/unictype/test-numeric.h: Likewise.
8150 * tests/unictype/test-pr_alphabetic.c: Likewise.
8151 * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
8152 * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
8153 * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
8154 * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
8155 * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
8156 * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
8157 * tests/unictype/test-pr_bidi_control.c: Likewise.
8158 * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
8159 * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
8160 * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
8161 * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
8162 * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
8163 * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
8164 * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
8165 * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
8166 * tests/unictype/test-pr_bidi_pdf.c: Likewise.
8167 * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
8168 * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
8169 * tests/unictype/test-pr_combining.c: Likewise.
8170 * tests/unictype/test-pr_composite.c: Likewise.
8171 * tests/unictype/test-pr_currency_symbol.c: Likewise.
8172 * tests/unictype/test-pr_dash.c: Likewise.
8173 * tests/unictype/test-pr_decimal_digit.c: Likewise.
8174 * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
8175 * tests/unictype/test-pr_deprecated.c: Likewise.
8176 * tests/unictype/test-pr_diacritic.c: Likewise.
8177 * tests/unictype/test-pr_extender.c: Likewise.
8178 * tests/unictype/test-pr_format_control.c: Likewise.
8179 * tests/unictype/test-pr_grapheme_base.c: Likewise.
8180 * tests/unictype/test-pr_grapheme_extend.c: Likewise.
8181 * tests/unictype/test-pr_grapheme_link.c: Likewise.
8182 * tests/unictype/test-pr_hex_digit.c: Likewise.
8183 * tests/unictype/test-pr_hyphen.c: Likewise.
8184 * tests/unictype/test-pr_id_continue.c: Likewise.
8185 * tests/unictype/test-pr_id_start.c: Likewise.
8186 * tests/unictype/test-pr_ideographic.c: Likewise.
8187 * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
8188 * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
8189 * tests/unictype/test-pr_ignorable_control.c: Likewise.
8190 * tests/unictype/test-pr_iso_control.c: Likewise.
8191 * tests/unictype/test-pr_join_control.c: Likewise.
8192 * tests/unictype/test-pr_left_of_pair.c: Likewise.
8193 * tests/unictype/test-pr_line_separator.c: Likewise.
8194 * tests/unictype/test-pr_logical_order_exception.c: Likewise.
8195 * tests/unictype/test-pr_lowercase.c: Likewise.
8196 * tests/unictype/test-pr_math.c: Likewise.
8197 * tests/unictype/test-pr_non_break.c: Likewise.
8198 * tests/unictype/test-pr_not_a_character.c: Likewise.
8199 * tests/unictype/test-pr_numeric.c: Likewise.
8200 * tests/unictype/test-pr_other_alphabetic.c: Likewise.
8201 * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
8202 * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
8203 * tests/unictype/test-pr_other_id_continue.c: Likewise.
8204 * tests/unictype/test-pr_other_id_start.c: Likewise.
8205 * tests/unictype/test-pr_other_lowercase.c: Likewise.
8206 * tests/unictype/test-pr_other_math.c: Likewise.
8207 * tests/unictype/test-pr_other_uppercase.c: Likewise.
8208 * tests/unictype/test-pr_paired_punctuation.c: Likewise.
8209 * tests/unictype/test-pr_paragraph_separator.c: Likewise.
8210 * tests/unictype/test-pr_pattern_syntax.c: Likewise.
8211 * tests/unictype/test-pr_pattern_white_space.c: Likewise.
8212 * tests/unictype/test-pr_private_use.c: Likewise.
8213 * tests/unictype/test-pr_punctuation.c: Likewise.
8214 * tests/unictype/test-pr_quotation_mark.c: Likewise.
8215 * tests/unictype/test-pr_radical.c: Likewise.
8216 * tests/unictype/test-pr_sentence_terminal.c: Likewise.
8217 * tests/unictype/test-pr_soft_dotted.c: Likewise.
8218 * tests/unictype/test-pr_space.c: Likewise.
8219 * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
8220 * tests/unictype/test-pr_titlecase.c: Likewise.
8221 * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
8222 * tests/unictype/test-pr_unified_ideograph.c: Likewise.
8223 * tests/unictype/test-pr_uppercase.c: Likewise.
8224 * tests/unictype/test-pr_variation_selector.c: Likewise.
8225 * tests/unictype/test-pr_white_space.c: Likewise.
8226 * tests/unictype/test-pr_xid_continue.c: Likewise.
8227 * tests/unictype/test-pr_xid_start.c: Likewise.
8228 * tests/unictype/test-pr_zero_width.c: Likewise.
8229 * tests/unictype/test-sy_c_whitespace.c: Likewise.
8230 * tests/unictype/test-sy_java_whitespace.c: Likewise.
8232 2007-11-12 Bruno Haible <bruno@clisp.org>
8234 Unicode character classification functions.
8235 * lib/unictype.h: New file.
8236 * modules/unictype/base: New file.
8237 * modules/unictype/category-L: New file.
8238 * modules/unictype/category-Lu: New file.
8239 * modules/unictype/category-Ll: New file.
8240 * modules/unictype/category-Lt: New file.
8241 * modules/unictype/category-Lm: New file.
8242 * modules/unictype/category-Lo: New file.
8243 * modules/unictype/category-M: New file.
8244 * modules/unictype/category-Mn: New file.
8245 * modules/unictype/category-Mc: New file.
8246 * modules/unictype/category-Me: New file.
8247 * modules/unictype/category-N: New file.
8248 * modules/unictype/category-Nd: New file.
8249 * modules/unictype/category-Nl: New file.
8250 * modules/unictype/category-No: New file.
8251 * modules/unictype/category-P: New file.
8252 * modules/unictype/category-Pc: New file.
8253 * modules/unictype/category-Pd: New file.
8254 * modules/unictype/category-Ps: New file.
8255 * modules/unictype/category-Pe: New file.
8256 * modules/unictype/category-Pi: New file.
8257 * modules/unictype/category-Pf: New file.
8258 * modules/unictype/category-Po: New file.
8259 * modules/unictype/category-S: New file.
8260 * modules/unictype/category-Sm: New file.
8261 * modules/unictype/category-Sc: New file.
8262 * modules/unictype/category-Sk: New file.
8263 * modules/unictype/category-So: New file.
8264 * modules/unictype/category-Z: New file.
8265 * modules/unictype/category-Zs: New file.
8266 * modules/unictype/category-Zl: New file.
8267 * modules/unictype/category-Zp: New file.
8268 * modules/unictype/category-C: New file.
8269 * modules/unictype/category-Cc: New file.
8270 * modules/unictype/category-Cf: New file.
8271 * modules/unictype/category-Cs: New file.
8272 * modules/unictype/category-Co: New file.
8273 * modules/unictype/category-Cn: New file.
8274 * modules/unictype/category-or: New file.
8275 * modules/unictype/category-of: New file.
8276 * modules/unictype/category-test: New file.
8277 * modules/unictype/category-test-withtable: New file.
8278 * modules/unictype/category-byname: New file.
8279 * modules/unictype/category-none: New file.
8280 * modules/unictype/category-and: New file.
8281 * modules/unictype/category-and-not: New file.
8282 * modules/unictype/category-name: New file.
8283 * modules/unictype/combining-class: New file.
8284 * modules/unictype/category-all: New file.
8285 * modules/unictype/bidicategory-all: New file.
8286 * modules/unictype/bidicategory-byname: New file.
8287 * modules/unictype/bidicategory-name: New file.
8288 * modules/unictype/bidicategory-of: New file.
8289 * modules/unictype/bidicategory-test: New file.
8290 * modules/unictype/decimal-digit: New file.
8291 * modules/unictype/digit: New file.
8292 * modules/unictype/numeric: New file.
8293 * modules/unictype/mirror: New file.
8294 * modules/unictype/property-white-space: New file.
8295 * modules/unictype/property-alphabetic: New file.
8296 * modules/unictype/property-other-alphabetic: New file.
8297 * modules/unictype/property-not-a-character: New file.
8298 * modules/unictype/property-default-ignorable-code-point: New file.
8299 * modules/unictype/property-other-default-ignorable-code-point: New
8301 * modules/unictype/property-deprecated: New file.
8302 * modules/unictype/property-logical-order-exception: New file.
8303 * modules/unictype/property-variation-selector: New file.
8304 * modules/unictype/property-private-use: New file.
8305 * modules/unictype/property-unassigned-code-value: New file.
8306 * modules/unictype/property-uppercase: New file.
8307 * modules/unictype/property-other-uppercase: New file.
8308 * modules/unictype/property-lowercase: New file.
8309 * modules/unictype/property-other-lowercase: New file.
8310 * modules/unictype/property-titlecase: New file.
8311 * modules/unictype/property-soft-dotted: New file.
8312 * modules/unictype/property-id-start: New file.
8313 * modules/unictype/property-other-id-start: New file.
8314 * modules/unictype/property-id-continue: New file.
8315 * modules/unictype/property-other-id-continue: New file.
8316 * modules/unictype/property-xid-start: New file.
8317 * modules/unictype/property-xid-continue: New file.
8318 * modules/unictype/property-pattern-white-space: New file.
8319 * modules/unictype/property-pattern-syntax: New file.
8320 * modules/unictype/property-join-control: New file.
8321 * modules/unictype/property-grapheme-base: New file.
8322 * modules/unictype/property-grapheme-extend: New file.
8323 * modules/unictype/property-other-grapheme-extend: New file.
8324 * modules/unictype/property-grapheme-link: New file.
8325 * modules/unictype/property-bidi-control: New file.
8326 * modules/unictype/property-bidi-left-to-right: New file.
8327 * modules/unictype/property-bidi-hebrew-right-to-left: New file.
8328 * modules/unictype/property-bidi-arabic-right-to-left: New file.
8329 * modules/unictype/property-bidi-european-digit: New file.
8330 * modules/unictype/property-bidi-eur-num-separator: New file.
8331 * modules/unictype/property-bidi-eur-num-terminator: New file.
8332 * modules/unictype/property-bidi-arabic-digit: New file.
8333 * modules/unictype/property-bidi-common-separator: New file.
8334 * modules/unictype/property-bidi-block-separator: New file.
8335 * modules/unictype/property-bidi-segment-separator: New file.
8336 * modules/unictype/property-bidi-whitespace: New file.
8337 * modules/unictype/property-bidi-non-spacing-mark: New file.
8338 * modules/unictype/property-bidi-boundary-neutral: New file.
8339 * modules/unictype/property-bidi-pdf: New file.
8340 * modules/unictype/property-bidi-embedding-or-override: New file.
8341 * modules/unictype/property-bidi-other-neutral: New file.
8342 * modules/unictype/property-hex-digit: New file.
8343 * modules/unictype/property-ascii-hex-digit: New file.
8344 * modules/unictype/property-ideographic: New file.
8345 * modules/unictype/property-unified-ideograph: New file.
8346 * modules/unictype/property-radical: New file.
8347 * modules/unictype/property-ids-binary-operator: New file.
8348 * modules/unictype/property-ids-trinary-operator: New file.
8349 * modules/unictype/property-zero-width: New file.
8350 * modules/unictype/property-space: New file.
8351 * modules/unictype/property-non-break: New file.
8352 * modules/unictype/property-iso-control: New file.
8353 * modules/unictype/property-format-control: New file.
8354 * modules/unictype/property-dash: New file.
8355 * modules/unictype/property-hyphen: New file.
8356 * modules/unictype/property-punctuation: New file.
8357 * modules/unictype/property-line-separator: New file.
8358 * modules/unictype/property-paragraph-separator: New file.
8359 * modules/unictype/property-quotation-mark: New file.
8360 * modules/unictype/property-sentence-terminal: New file.
8361 * modules/unictype/property-terminal-punctuation: New file.
8362 * modules/unictype/property-currency-symbol: New file.
8363 * modules/unictype/property-math: New file.
8364 * modules/unictype/property-other-math: New file.
8365 * modules/unictype/property-paired-punctuation: New file.
8366 * modules/unictype/property-left-of-pair: New file.
8367 * modules/unictype/property-combining: New file.
8368 * modules/unictype/property-composite: New file.
8369 * modules/unictype/property-decimal-digit: New file.
8370 * modules/unictype/property-numeric: New file.
8371 * modules/unictype/property-diacritic: New file.
8372 * modules/unictype/property-extender: New file.
8373 * modules/unictype/property-ignorable-control: New file.
8374 * modules/unictype/property-test: New file.
8375 * modules/unictype/property-byname: New file.
8376 * modules/unictype/property-all: New file.
8377 * modules/unictype/scripts: New file.
8378 * modules/unictype/scripts-all: New file.
8379 * modules/unictype/block-of: New file.
8380 * modules/unictype/block-test: New file.
8381 * modules/unictype/block-list: New file.
8382 * modules/unictype/block-all: New file.
8383 * modules/unictype/syntax-c-whitespace: New file.
8384 * modules/unictype/syntax-java-whitespace: New file.
8385 * modules/unictype/syntax-c-ident: New file.
8386 * modules/unictype/syntax-java-ident: New file.
8387 * modules/unictype/ctype-alnum: New file.
8388 * modules/unictype/ctype-alpha: New file.
8389 * modules/unictype/ctype-cntrl: New file.
8390 * modules/unictype/ctype-digit: New file.
8391 * modules/unictype/ctype-graph: New file.
8392 * modules/unictype/ctype-lower: New file.
8393 * modules/unictype/ctype-print: New file.
8394 * modules/unictype/ctype-punct: New file.
8395 * modules/unictype/ctype-space: New file.
8396 * modules/unictype/ctype-upper: New file.
8397 * modules/unictype/ctype-xdigit: New file.
8398 * modules/unictype/ctype-blank: New file.
8399 * lib/unictype/bidi_byname.c: New file.
8400 * lib/unictype/bidi_name.c: New file.
8401 * lib/unictype/bidi_of.c: New file.
8402 * lib/unictype/bidi_test.c: New file.
8403 * lib/unictype/bitmap.h: New file.
8404 * lib/unictype/block_test.c: New file.
8405 * lib/unictype/blocks.c: New file.
8406 * lib/unictype/categ_C.c: New file.
8407 * lib/unictype/categ_Cc.c: New file.
8408 * lib/unictype/categ_Cf.c: New file.
8409 * lib/unictype/categ_Cn.c: New file.
8410 * lib/unictype/categ_Co.c: New file.
8411 * lib/unictype/categ_Cs.c: New file.
8412 * lib/unictype/categ_L.c: New file.
8413 * lib/unictype/categ_Ll.c: New file.
8414 * lib/unictype/categ_Lm.c: New file.
8415 * lib/unictype/categ_Lo.c: New file.
8416 * lib/unictype/categ_Lt.c: New file.
8417 * lib/unictype/categ_Lu.c: New file.
8418 * lib/unictype/categ_M.c: New file.
8419 * lib/unictype/categ_Mc.c: New file.
8420 * lib/unictype/categ_Me.c: New file.
8421 * lib/unictype/categ_Mn.c: New file.
8422 * lib/unictype/categ_N.c: New file.
8423 * lib/unictype/categ_Nd.c: New file.
8424 * lib/unictype/categ_Nl.c: New file.
8425 * lib/unictype/categ_No.c: New file.
8426 * lib/unictype/categ_P.c: New file.
8427 * lib/unictype/categ_Pc.c: New file.
8428 * lib/unictype/categ_Pd.c: New file.
8429 * lib/unictype/categ_Pe.c: New file.
8430 * lib/unictype/categ_Pf.c: New file.
8431 * lib/unictype/categ_Pi.c: New file.
8432 * lib/unictype/categ_Po.c: New file.
8433 * lib/unictype/categ_Ps.c: New file.
8434 * lib/unictype/categ_S.c: New file.
8435 * lib/unictype/categ_Sc.c: New file.
8436 * lib/unictype/categ_Sk.c: New file.
8437 * lib/unictype/categ_Sm.c: New file.
8438 * lib/unictype/categ_So.c: New file.
8439 * lib/unictype/categ_Z.c: New file.
8440 * lib/unictype/categ_Zl.c: New file.
8441 * lib/unictype/categ_Zp.c: New file.
8442 * lib/unictype/categ_Zs.c: New file.
8443 * lib/unictype/categ_and.c: New file.
8444 * lib/unictype/categ_and_not.c: New file.
8445 * lib/unictype/categ_byname.c: New file.
8446 * lib/unictype/categ_name.c: New file.
8447 * lib/unictype/categ_none.c: New file.
8448 * lib/unictype/categ_of.c: New file.
8449 * lib/unictype/categ_or.c: New file.
8450 * lib/unictype/categ_test.c: New file.
8451 * lib/unictype/combining.c: New file.
8452 * lib/unictype/ctype_alnum.c: New file.
8453 * lib/unictype/ctype_alpha.c: New file.
8454 * lib/unictype/ctype_blank.c: New file.
8455 * lib/unictype/ctype_cntrl.c: New file.
8456 * lib/unictype/ctype_digit.c: New file.
8457 * lib/unictype/ctype_graph.c: New file.
8458 * lib/unictype/ctype_lower.c: New file.
8459 * lib/unictype/ctype_print.c: New file.
8460 * lib/unictype/ctype_punct.c: New file.
8461 * lib/unictype/ctype_space.c: New file.
8462 * lib/unictype/ctype_upper.c: New file.
8463 * lib/unictype/ctype_xdigit.c: New file.
8464 * lib/unictype/decdigit.c: New file.
8465 * lib/unictype/digit.c: New file.
8466 * lib/unictype/identsyntaxmap.h: New file.
8467 * lib/unictype/mirror.c: New file.
8468 * lib/unictype/numeric.c: New file.
8469 * lib/unictype/pr_alphabetic.c: New file.
8470 * lib/unictype/pr_ascii_hex_digit.c: New file.
8471 * lib/unictype/pr_bidi_arabic_digit.c: New file.
8472 * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
8473 * lib/unictype/pr_bidi_block_separator.c: New file.
8474 * lib/unictype/pr_bidi_boundary_neutral.c: New file.
8475 * lib/unictype/pr_bidi_common_separator.c: New file.
8476 * lib/unictype/pr_bidi_control.c: New file.
8477 * lib/unictype/pr_bidi_embedding_or_override.c: New file.
8478 * lib/unictype/pr_bidi_eur_num_separator.c: New file.
8479 * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
8480 * lib/unictype/pr_bidi_european_digit.c: New file.
8481 * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
8482 * lib/unictype/pr_bidi_left_to_right.c: New file.
8483 * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
8484 * lib/unictype/pr_bidi_other_neutral.c: New file.
8485 * lib/unictype/pr_bidi_pdf.c: New file.
8486 * lib/unictype/pr_bidi_segment_separator.c: New file.
8487 * lib/unictype/pr_bidi_whitespace.c: New file.
8488 * lib/unictype/pr_byname.c: New file.
8489 * lib/unictype/pr_byname.gperf: New file.
8490 * lib/unictype/pr_combining.c: New file.
8491 * lib/unictype/pr_composite.c: New file.
8492 * lib/unictype/pr_currency_symbol.c: New file.
8493 * lib/unictype/pr_dash.c: New file.
8494 * lib/unictype/pr_decimal_digit.c: New file.
8495 * lib/unictype/pr_default_ignorable_code_point.c: New file.
8496 * lib/unictype/pr_deprecated.c: New file.
8497 * lib/unictype/pr_diacritic.c: New file.
8498 * lib/unictype/pr_extender.c: New file.
8499 * lib/unictype/pr_format_control.c: New file.
8500 * lib/unictype/pr_grapheme_base.c: New file.
8501 * lib/unictype/pr_grapheme_extend.c: New file.
8502 * lib/unictype/pr_grapheme_link.c: New file.
8503 * lib/unictype/pr_hex_digit.c: New file.
8504 * lib/unictype/pr_hyphen.c: New file.
8505 * lib/unictype/pr_id_continue.c: New file.
8506 * lib/unictype/pr_id_start.c: New file.
8507 * lib/unictype/pr_ideographic.c: New file.
8508 * lib/unictype/pr_ids_binary_operator.c: New file.
8509 * lib/unictype/pr_ids_trinary_operator.c: New file.
8510 * lib/unictype/pr_ignorable_control.c: New file.
8511 * lib/unictype/pr_iso_control.c: New file.
8512 * lib/unictype/pr_join_control.c: New file.
8513 * lib/unictype/pr_left_of_pair.c: New file.
8514 * lib/unictype/pr_line_separator.c: New file.
8515 * lib/unictype/pr_logical_order_exception.c: New file.
8516 * lib/unictype/pr_lowercase.c: New file.
8517 * lib/unictype/pr_math.c: New file.
8518 * lib/unictype/pr_non_break.c: New file.
8519 * lib/unictype/pr_not_a_character.c: New file.
8520 * lib/unictype/pr_numeric.c: New file.
8521 * lib/unictype/pr_other_alphabetic.c: New file.
8522 * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
8523 * lib/unictype/pr_other_grapheme_extend.c: New file.
8524 * lib/unictype/pr_other_id_continue.c: New file.
8525 * lib/unictype/pr_other_id_start.c: New file.
8526 * lib/unictype/pr_other_lowercase.c: New file.
8527 * lib/unictype/pr_other_math.c: New file.
8528 * lib/unictype/pr_other_uppercase.c: New file.
8529 * lib/unictype/pr_paired_punctuation.c: New file.
8530 * lib/unictype/pr_paragraph_separator.c: New file.
8531 * lib/unictype/pr_pattern_syntax.c: New file.
8532 * lib/unictype/pr_pattern_white_space.c: New file.
8533 * lib/unictype/pr_private_use.c: New file.
8534 * lib/unictype/pr_punctuation.c: New file.
8535 * lib/unictype/pr_quotation_mark.c: New file.
8536 * lib/unictype/pr_radical.c: New file.
8537 * lib/unictype/pr_sentence_terminal.c: New file.
8538 * lib/unictype/pr_soft_dotted.c: New file.
8539 * lib/unictype/pr_space.c: New file.
8540 * lib/unictype/pr_terminal_punctuation.c: New file.
8541 * lib/unictype/pr_test.c: New file.
8542 * lib/unictype/pr_titlecase.c: New file.
8543 * lib/unictype/pr_unassigned_code_value.c: New file.
8544 * lib/unictype/pr_unified_ideograph.c: New file.
8545 * lib/unictype/pr_uppercase.c: New file.
8546 * lib/unictype/pr_variation_selector.c: New file.
8547 * lib/unictype/pr_white_space.c: New file.
8548 * lib/unictype/pr_xid_continue.c: New file.
8549 * lib/unictype/pr_xid_start.c: New file.
8550 * lib/unictype/pr_zero_width.c: New file.
8551 * lib/unictype/scripts.c: New file.
8552 * lib/unictype/sy_c_ident.c: New file.
8553 * lib/unictype/sy_c_whitespace.c: New file.
8554 * lib/unictype/sy_java_ident.c: New file.
8555 * lib/unictype/sy_java_whitespace.c: New file.
8557 * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
8559 * lib/unictype/blocks.h: Likewise.
8560 * lib/unictype/categ_C.h: Likewise.
8561 * lib/unictype/categ_Cc.h: Likewise.
8562 * lib/unictype/categ_Cf.h: Likewise.
8563 * lib/unictype/categ_Cn.h: Likewise.
8564 * lib/unictype/categ_Co.h: Likewise.
8565 * lib/unictype/categ_Cs.h: Likewise.
8566 * lib/unictype/categ_L.h: Likewise.
8567 * lib/unictype/categ_Ll.h: Likewise.
8568 * lib/unictype/categ_Lm.h: Likewise.
8569 * lib/unictype/categ_Lo.h: Likewise.
8570 * lib/unictype/categ_Lt.h: Likewise.
8571 * lib/unictype/categ_Lu.h: Likewise.
8572 * lib/unictype/categ_M.h: Likewise.
8573 * lib/unictype/categ_Mc.h: Likewise.
8574 * lib/unictype/categ_Me.h: Likewise.
8575 * lib/unictype/categ_Mn.h: Likewise.
8576 * lib/unictype/categ_N.h: Likewise.
8577 * lib/unictype/categ_Nd.h: Likewise.
8578 * lib/unictype/categ_Nl.h: Likewise.
8579 * lib/unictype/categ_No.h: Likewise.
8580 * lib/unictype/categ_P.h: Likewise.
8581 * lib/unictype/categ_Pc.h: Likewise.
8582 * lib/unictype/categ_Pd.h: Likewise.
8583 * lib/unictype/categ_Pe.h: Likewise.
8584 * lib/unictype/categ_Pf.h: Likewise.
8585 * lib/unictype/categ_Pi.h: Likewise.
8586 * lib/unictype/categ_Po.h: Likewise.
8587 * lib/unictype/categ_Ps.h: Likewise.
8588 * lib/unictype/categ_S.h: Likewise.
8589 * lib/unictype/categ_Sc.h: Likewise.
8590 * lib/unictype/categ_Sk.h: Likewise.
8591 * lib/unictype/categ_Sm.h: Likewise.
8592 * lib/unictype/categ_So.h: Likewise.
8593 * lib/unictype/categ_Z.h: Likewise.
8594 * lib/unictype/categ_Zl.h: Likewise.
8595 * lib/unictype/categ_Zp.h: Likewise.
8596 * lib/unictype/categ_Zs.h: Likewise.
8597 * lib/unictype/categ_of.h: Likewise.
8598 * lib/unictype/combining.h: Likewise.
8599 * lib/unictype/ctype_alnum.h: Likewise.
8600 * lib/unictype/ctype_alpha.h: Likewise.
8601 * lib/unictype/ctype_blank.h: Likewise.
8602 * lib/unictype/ctype_cntrl.h: Likewise.
8603 * lib/unictype/ctype_digit.h: Likewise.
8604 * lib/unictype/ctype_graph.h: Likewise.
8605 * lib/unictype/ctype_lower.h: Likewise.
8606 * lib/unictype/ctype_print.h: Likewise.
8607 * lib/unictype/ctype_punct.h: Likewise.
8608 * lib/unictype/ctype_space.h: Likewise.
8609 * lib/unictype/ctype_upper.h: Likewise.
8610 * lib/unictype/ctype_xdigit.h: Likewise.
8611 * lib/unictype/decdigit.h: Likewise.
8612 * lib/unictype/digit.h: Likewise.
8613 * lib/unictype/mirror.h: Likewise.
8614 * lib/unictype/numeric.h: Likewise.
8615 * lib/unictype/pr_alphabetic.h: Likewise.
8616 * lib/unictype/pr_ascii_hex_digit.h: Likewise.
8617 * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
8618 * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
8619 * lib/unictype/pr_bidi_block_separator.h: Likewise.
8620 * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
8621 * lib/unictype/pr_bidi_common_separator.h: Likewise.
8622 * lib/unictype/pr_bidi_control.h: Likewise.
8623 * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
8624 * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
8625 * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
8626 * lib/unictype/pr_bidi_european_digit.h: Likewise.
8627 * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
8628 * lib/unictype/pr_bidi_left_to_right.h: Likewise.
8629 * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
8630 * lib/unictype/pr_bidi_other_neutral.h: Likewise.
8631 * lib/unictype/pr_bidi_pdf.h: Likewise.
8632 * lib/unictype/pr_bidi_segment_separator.h: Likewise.
8633 * lib/unictype/pr_bidi_whitespace.h: Likewise.
8634 * lib/unictype/pr_combining.h: Likewise.
8635 * lib/unictype/pr_composite.h: Likewise.
8636 * lib/unictype/pr_currency_symbol.h: Likewise.
8637 * lib/unictype/pr_dash.h: Likewise.
8638 * lib/unictype/pr_decimal_digit.h: Likewise.
8639 * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
8640 * lib/unictype/pr_deprecated.h: Likewise.
8641 * lib/unictype/pr_diacritic.h: Likewise.
8642 * lib/unictype/pr_extender.h: Likewise.
8643 * lib/unictype/pr_format_control.h: Likewise.
8644 * lib/unictype/pr_grapheme_base.h: Likewise.
8645 * lib/unictype/pr_grapheme_extend.h: Likewise.
8646 * lib/unictype/pr_grapheme_link.h: Likewise.
8647 * lib/unictype/pr_hex_digit.h: Likewise.
8648 * lib/unictype/pr_hyphen.h: Likewise.
8649 * lib/unictype/pr_id_continue.h: Likewise.
8650 * lib/unictype/pr_id_start.h: Likewise.
8651 * lib/unictype/pr_ideographic.h: Likewise.
8652 * lib/unictype/pr_ids_binary_operator.h: Likewise.
8653 * lib/unictype/pr_ids_trinary_operator.h: Likewise.
8654 * lib/unictype/pr_ignorable_control.h: Likewise.
8655 * lib/unictype/pr_iso_control.h: Likewise.
8656 * lib/unictype/pr_join_control.h: Likewise.
8657 * lib/unictype/pr_left_of_pair.h: Likewise.
8658 * lib/unictype/pr_line_separator.h: Likewise.
8659 * lib/unictype/pr_logical_order_exception.h: Likewise.
8660 * lib/unictype/pr_lowercase.h: Likewise.
8661 * lib/unictype/pr_math.h: Likewise.
8662 * lib/unictype/pr_non_break.h: Likewise.
8663 * lib/unictype/pr_not_a_character.h: Likewise.
8664 * lib/unictype/pr_numeric.h: Likewise.
8665 * lib/unictype/pr_other_alphabetic.h: Likewise.
8666 * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
8667 * lib/unictype/pr_other_grapheme_extend.h: Likewise.
8668 * lib/unictype/pr_other_id_continue.h: Likewise.
8669 * lib/unictype/pr_other_id_start.h: Likewise.
8670 * lib/unictype/pr_other_lowercase.h: Likewise.
8671 * lib/unictype/pr_other_math.h: Likewise.
8672 * lib/unictype/pr_other_uppercase.h: Likewise.
8673 * lib/unictype/pr_paired_punctuation.h: Likewise.
8674 * lib/unictype/pr_paragraph_separator.h: Likewise.
8675 * lib/unictype/pr_pattern_syntax.h: Likewise.
8676 * lib/unictype/pr_pattern_white_space.h: Likewise.
8677 * lib/unictype/pr_private_use.h: Likewise.
8678 * lib/unictype/pr_punctuation.h: Likewise.
8679 * lib/unictype/pr_quotation_mark.h: Likewise.
8680 * lib/unictype/pr_radical.h: Likewise.
8681 * lib/unictype/pr_sentence_terminal.h: Likewise.
8682 * lib/unictype/pr_soft_dotted.h: Likewise.
8683 * lib/unictype/pr_space.h: Likewise.
8684 * lib/unictype/pr_terminal_punctuation.h: Likewise.
8685 * lib/unictype/pr_titlecase.h: Likewise.
8686 * lib/unictype/pr_unassigned_code_value.h: Likewise.
8687 * lib/unictype/pr_unified_ideograph.h: Likewise.
8688 * lib/unictype/pr_uppercase.h: Likewise.
8689 * lib/unictype/pr_variation_selector.h: Likewise.
8690 * lib/unictype/pr_white_space.h: Likewise.
8691 * lib/unictype/pr_xid_continue.h: Likewise.
8692 * lib/unictype/pr_xid_start.h: Likewise.
8693 * lib/unictype/pr_zero_width.h: Likewise.
8694 * lib/unictype/scripts.h: Likewise.
8695 * lib/unictype/scripts_byname.gperf: Likewise.
8696 * lib/unictype/sy_c_ident.h: Likewise.
8697 * lib/unictype/sy_c_whitespace.h: Likewise.
8698 * lib/unictype/sy_java_ident.h: Likewise.
8699 * lib/unictype/sy_java_whitespace.h: Likewise.
8701 * lib/unictype/Makefile: New file.
8702 * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
8704 * lib/unictype/3level.h: New file, copied from glibc.
8705 * lib/unictype/3levelbit.h: New file.
8707 2007-11-11 Bruno Haible <bruno@clisp.org>
8709 * modules/gperf: New file.
8710 * modules/iconv_open (Depends-on): Add it.
8711 (Makefile.am): Remove the GPERF definition.
8713 2007-11-11 Bruno Haible <bruno@clisp.org>
8715 * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
8716 * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
8718 2007-11-11 Bruno Haible <bruno@clisp.org>
8720 * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
8721 (usage): Remove function.
8723 2007-11-11 Bruno Haible <bruno@clisp.org>
8725 * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
8727 * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
8729 * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
8731 * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
8732 * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
8733 * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
8735 2007-11-11 Bruno Haible <bruno@clisp.org>
8737 * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
8738 roundf were declared but do not exist on functions.
8739 * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
8740 roundl were declared but do not exist on functions.
8741 * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
8742 HAVE_FLOORL_AND_CEILL, respectively.
8743 Needed for Sun C on Solaris 10.
8745 2007-11-11 Bruno Haible <bruno@clisp.org>
8747 * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
8748 HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
8749 * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
8750 HAVE_DECL_ROUND. Remove redundant AC_SUBST.
8751 * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
8752 HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
8753 * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
8755 (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
8756 (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
8757 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
8758 of HAVE_DECL_ROUND*.
8759 * modules/math (Makefile.am): Update.
8761 2007-11-10 Bruno Haible <bruno@clisp.org>
8763 * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
8764 ptrdiff_t as m4/intl.m4.
8766 2007-11-10 Jim Meyering <meyering@redhat.com>
8768 Avoid link failure for the argmatch test.
8769 * tests/test-argmatch.c (usage): Define function to avoid a link
8770 failure: argmatch_die requires a usage function.
8772 2007-11-09 Bruno Haible <bruno@clisp.org>
8774 * doc/functions/snprintf.texi: Mention BeOS deficiency.
8775 * doc/functions/vsnprintf.texi: Likewise.
8776 * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
8777 with a size argument < 2.
8779 2007-11-09 Bruno Haible <bruno@clisp.org>
8781 * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
8782 buffer. Fixes an inefficiency introduced on 2007-11-03.
8784 2007-11-09 Bruno Haible <bruno@clisp.org>
8786 * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
8787 none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
8789 2007-11-08 Jim Meyering <meyering@redhat.com>
8791 Change cache variable name prefix "jm_" to "gl_" everywhere.
8792 * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
8793 * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
8794 * m4/uptime.m4: s/gl_/jm_/
8796 2007-11-07 Bruno Haible <bruno@clisp.org>
8798 Update to GNU gettext 0.17.
8799 * m4/intl.m4: Update to GNU gettext 0.17.
8800 * m4/po.m4: Likewise.
8801 * modules/gettext (Files): Remove m4/ulonglong.m4.
8802 (configure.ac): Require gettext infrastructure from version 0.17.
8804 2007-11-06 Bruno Haible <bruno@clisp.org>
8806 * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
8807 symbolic values are not defined in a public header.
8808 * lib/freadable.c (freadable) [QNX]: Likewise.
8809 * lib/freadahead.c (freadahead) [QNX]: Likewise.
8810 * lib/freading.c (freading) [QNX]: Likewise.
8811 * lib/fseterr.c (fseterr) [QNX]: Likewise.
8812 * lib/fwritable.c (fwritable) [QNX]: Likewise.
8813 * lib/fwriting.c (fwriting) [QNX]: Likewise.
8814 * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
8815 Reported by Alain Magloire.
8817 * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
8819 2007-11-05 Bruno Haible <bruno@clisp.org>
8821 * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
8822 code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
8823 Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
8824 Reported by Eric Blake.
8826 2007-10-27 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8827 Bruno Haible <bruno@clisp.org>
8829 * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
8830 * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
8831 * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
8832 (malloc): Undefine also before including <stdlib.h>.
8833 (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
8834 Needed on OSF/1 4.0.
8836 2007-11-05 Jim Meyering <meyering@redhat.com>
8838 git-version-gen: sync from coreutils.
8839 * build-aux/git-version-gen: Add comments.
8840 Change the first '-' to '.' in the snapshot version string,
8841 e.g., 6.9-377-08144 -> 6.9.377-08144
8842 Remove first parameter.
8843 Don't declare a version "-dirty" merely because a time
8846 2007-11-04 Bruno Haible <bruno@clisp.org>
8848 * lib/lock.h: Protect all macro definitions containing an 'if'
8849 statement through a "do { ... } while (0)".
8850 * lib/tls.h: Likewise.
8852 2007-11-04 Bruno Haible <bruno@clisp.org>
8854 * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
8856 2007-11-04 Bruno Haible <bruno@clisp.org>
8858 * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
8859 * modules/fprintf-posix (Depends-on): Add nocrash.
8860 * modules/snprintf-posix (Depends-on): Likewise.
8861 * modules/sprintf-posix (Depends-on): Likewise.
8862 * modules/vasnprintf-posix (Depends-on): Likewise.
8863 * modules/vasprintf-posix (Depends-on): Likewise.
8864 * modules/vfprintf-posix (Depends-on): Likewise.
8865 * modules/vsnprintf-posix (Depends-on): Likewise.
8866 * modules/vsprintf-posix (Depends-on): Likewise.
8867 * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
8868 * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
8869 * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
8870 * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
8871 * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
8872 * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
8873 * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
8875 2007-11-04 Bruno Haible <bruno@clisp.org>
8877 * modules/nocrash: New file.
8878 * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
8879 GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
8881 2007-11-04 Bruno Haible <bruno@clisp.org>
8883 * tests/test-vasnprintf-posix.c (test_function): Add some tests of
8885 * tests/test-vasprintf-posix.c (test_function): Likewise.
8886 * tests/test-snprintf-posix.h (test_function): Likewise.
8887 * tests/test-sprintf-posix.h (test_function): Likewise.
8889 Fix *printf behaviour for large precisions on mingw and BeOS.
8890 * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
8891 * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
8892 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
8893 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
8894 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
8895 gl_PRINTF_PRECISION and test its result. Invoke
8896 gl_PREREQ_VASNPRINTF_PRECISION.
8897 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
8898 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
8899 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
8900 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
8901 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
8902 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
8903 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
8904 * doc/functions/fprintf.texi: Update.
8905 * doc/functions/printf.texi: Update.
8906 * doc/functions/snprintf.texi: Update.
8907 * doc/functions/sprintf.texi: Update.
8908 * doc/functions/vfprintf.texi: Update.
8909 * doc/functions/vprintf.texi: Update.
8910 * doc/functions/vsnprintf.texi: Update.
8911 * doc/functions/vsprintf.texi: Update.
8913 2007-11-04 Bruno Haible <bruno@clisp.org>
8915 * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
8917 2007-11-04 Bruno Haible <bruno@clisp.org>
8919 * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
8920 Reported by Sylvain Beucler <beuc@gnu.org>.
8922 2007-11-03 Bruno Haible <bruno@clisp.org>
8924 * tests/test-fprintf-posix2.sh: New file.
8925 * tests/test-fprintf-posix2.c: New file.
8926 * modules/fprintf-posix-tests (Files): Add them.
8927 (TESTS): Add test-fprintf-posix2.sh.
8928 (configure.ac): Check for getrlimit and setrlimit.
8929 (check_PROGRAMS): Add test-fprintf-posix2.
8931 * tests/test-printf-posix2.sh: New file.
8932 * tests/test-printf-posix2.c: New file.
8933 * modules/printf-posix-tests (Files): Add them.
8934 (TESTS): Add test-printf-posix2.sh.
8935 (configure.ac): Check for getrlimit and setrlimit.
8936 (check_PROGRAMS): Add test-printf-posix2.
8938 Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
8939 * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
8940 * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
8941 (decode_double): New function, copied from decode_long_double.
8942 (scale10_round_decimal_decoded): New function, extracted from
8943 scale10_round_decimal_long_double.
8944 (scale10_round_decimal_long_double): Use it.
8945 (scale10_round_decimal_double): New function.
8946 (floorlog10): New function.
8947 (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
8948 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
8949 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
8950 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
8951 gl_PRINTF_ENOMEM and test its result. Invoke
8952 gl_PREREQ_VASNPRINTF_ENOMEM.
8953 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
8954 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
8955 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
8956 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
8957 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
8958 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
8959 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
8960 * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
8961 * modules/snprintf-posix (Depends-on): Likewise.
8962 * modules/sprintf-posix (Depends-on): Likewise.
8963 * modules/vasnprintf-posix (Depends-on): Likewise.
8964 * modules/vasprintf-posix (Depends-on): Likewise.
8965 * modules/vfprintf-posix (Depends-on): Likewise.
8966 * modules/vsnprintf-posix (Depends-on): Likewise.
8967 * modules/vsprintf-posix (Depends-on): Likewise.
8968 * doc/functions/fprintf.texi: Update.
8969 * doc/functions/printf.texi: Update.
8970 * doc/functions/snprintf.texi: Update.
8971 * doc/functions/sprintf.texi: Update.
8972 * doc/functions/vfprintf.texi: Update.
8973 * doc/functions/vprintf.texi: Update.
8974 * doc/functions/vsnprintf.texi: Update.
8975 * doc/functions/vsprintf.texi: Update.
8977 2007-11-03 Bruno Haible <bruno@clisp.org>
8979 * modules/frexp-nolibm-tests: New file.
8981 * modules/frexp-nolibm: New file.
8982 * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
8984 2007-11-03 Bruno Haible <bruno@clisp.org>
8986 * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
8987 value is C99 compliant.
8988 Needed for OSF/1 5.1.
8990 2007-11-03 Bruno Haible <bruno@clisp.org>
8992 Fix out-of-memory handling of vasnprintf.
8993 * lib/printf-parse.c: Include <errno.h>.
8994 (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
8995 * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
8998 2007-11-02 Eric Blake <ebb9@byu.net>
9000 Fix tests on cygwin.
9001 * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
9003 2007-11-01 Bruno Haible <bruno@clisp.org>
9005 * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
9007 * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
9008 needed for POSIX compatibility.
9010 2007-11-01 Paul Eggert <eggert@cs.ucla.edu>
9012 * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
9013 for compatibility with GNU.
9015 2007-11-01 Bruno Haible <bruno@clisp.org>
9017 * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
9018 (putenv): Renamed from rpl_putenv. Change argument type from
9019 'const char *' to 'char *'.
9020 * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
9021 of defining putenv in config.h, just set REPLACE_PUTENV.
9022 * modules/putenv (Depends-on): Add stdlib.
9023 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
9024 (Include): Use <stdlib.h>.
9025 * lib/stdlib.in.h (putenv): New declaration.
9026 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
9028 * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
9030 Needed for MacOS X 10.5.0.
9031 Reported by Peter O'Gorman <peter@pogma.com>.
9033 2007-11-01 Jim Meyering <meyering@redhat.com>
9035 Treat an empty date string exactly like "0".
9036 * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
9037 if the remaining date string (to be parsed) is empty, use "0".
9038 Reported by Mischa Molhoek and discussed in this thread:
9039 <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
9041 2007-10-31 Bruno Haible <bruno@clisp.org>
9043 * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
9044 AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
9045 * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
9046 AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
9047 * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
9048 * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
9050 2007-10-31 Bruno Haible <bruno@clisp.org>
9052 * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
9053 from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
9054 (AC_TYPE_LONG_LONG_INT): Use it.
9055 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
9057 * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
9059 * modules/stdint (Files): Remove m4/ulonglong.m4.
9060 * modules/strtoull (Files): Use m4/longlong.m4 instead of
9062 * modules/strtoumax (Files): Likewise.
9064 2007-10-30 Bruno Haible <bruno@clisp.org>
9066 * modules/xvasprintf-posix: New file.
9067 Suggested by Eric Blake.
9069 2007-10-30 Bruno Haible <bruno@clisp.org>
9071 * modules/xprintf-posix-tests: New file.
9072 * tests/test-xprintf-posix.sh: New file.
9073 * tests/test-xprintf-posix.c: New file.
9074 * tests/test-xfprintf-posix.c: New file.
9076 * modules/xprintf-posix: New file.
9078 2007-10-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9080 * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
9081 * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
9082 * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
9084 2007-10-29 Bruno Haible <bruno@clisp.org>
9086 * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
9087 contain the special marker '_cv_'.
9088 * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
9089 * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
9090 * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
9091 * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
9092 * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
9093 Reported by Ralf Wildenhues.
9095 2007-10-29 Bruno Haible <bruno@clisp.org>
9097 * gnulib-tool (func_import): When --lgpl is not specified, set
9098 sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
9100 Reported by Simon Josefsson.
9102 2007-10-28 Bruno Haible <bruno@clisp.org>
9104 * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
9105 * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
9107 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
9108 * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
9111 2007-10-28 Bruno Haible <bruno@clisp.org>
9113 * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
9114 integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
9116 2007-10-28 Bruno Haible <bruno@clisp.org>
9118 Fix link errors with Sun C 5.0 on Solaris 10.
9119 * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
9120 function is declared but not present in the compiler's libm.
9121 * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
9122 * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
9123 * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
9124 * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
9125 Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
9126 Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
9127 Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
9128 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
9129 * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
9130 HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
9131 REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
9134 2007-10-28 Bruno Haible <bruno@clisp.org>
9136 * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
9137 gl_FUNC_FLOORL. Cache the result.
9138 (gl_FUNC_FLOORL): Use it.
9139 * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
9140 gl_FUNC_CEILL. Cache the result.
9141 (gl_FUNC_CEILL): Use it.
9143 * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
9144 gl_FUNC_FLOOR. Cache the result.
9145 (gl_FUNC_FLOOR): Use it.
9146 * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
9147 gl_FUNC_CEIL. Cache the result.
9148 (gl_FUNC_CEIL): Use it.
9150 * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
9151 gl_FUNC_FLOORF. Cache the result.
9152 (gl_FUNC_FLOORF): Use it.
9153 * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
9154 gl_FUNC_CEILF. Cache the result.
9155 (gl_FUNC_CEILF): Use it.
9157 2007-10-28 Bruno Haible <bruno@clisp.org>
9159 * gnulib-tool: Allow specifying the LGPL version number through
9160 --lgpl=2 or --lgpl=3.
9161 (func_usage): Document --lgpl with argument.
9162 Handle --lgpl=... arguments.
9163 (func_import): Recognize also gl_LGPL calls with an argument. When
9164 --lgpl=2 is used and the module's license is just LGPL, report an
9165 error. Set sed_transform_lib_file according to the lgpl variable. In
9166 the generated files, use --lgpl or gl_LGPL invocations with argument,
9168 * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
9170 * doc/gnulib-tool.texi (Modified imports): Update explanation of
9173 2007-10-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9174 Bruno Haible <bruno@clisp.org>
9176 * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
9177 (u16_uctomb_aux): Likewise.
9178 * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
9180 * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
9182 2007-10-28 Bruno Haible <bruno@clisp.org>
9184 * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
9185 Invoke AM_GETTEXT_OPTION if it exists.
9186 * modules/vasprintf: Likewise.
9187 * modules/verror: Likewise.
9188 * modules/xprintf: Likewise.
9189 * modules/xvasprintf: Likewise.
9191 2007-10-27 Ben Pfaff <blp@gnu.org>
9193 * lib/math.in.h: Define isfinite macro and prototypes for
9194 gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
9196 * m4/math_h.m4: New substitutions for isfinite module.
9197 * lib/isfinite.c: New file.
9198 * m4/isfinite.m4: New file.
9199 * modules/math: Replace isfinite-related @VARS@ in math.in.h.
9200 * modules/isfinite: New file.
9201 * modules/isfinite-tests: New file.
9202 * tests/tests-isfinite.c: New file.
9203 * doc/functions/isfinite.texi: Mention isfinite module.
9204 * MODULES.html.sh: Mention new module.
9206 2007-10-27 Ben Pfaff <blp@gnu.org>
9208 Ralf Wildenhues reported that Tru64 4.0D declares the round
9209 functions but does not have definitions.
9210 * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
9211 cannot be found in any library, set the output variable to
9212 "missing" instead of "".
9213 * m4/round.m4: Also use our substitute if we cannot find round in
9214 any library, even if it is declared.
9215 * m4/roundf.m4: Likewise for roundf.
9216 * m4/roundl.m4: Likewise for roundl.
9217 * lib/math.in.h: Undefine roundf, round, roundl before defining
9218 their replacements, to allow for hypothetical systems where these
9219 may be defined as macros but not available in libraries.
9221 2007-10-27 Bruno Haible <bruno@clisp.org>
9223 * doc/gnulib.texi: Invoke @firstparagraphindent.
9224 * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
9226 (Source changes): New section.
9228 2007-10-26 Bruno Haible <bruno@clisp.org>
9230 * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
9231 borrowed from autoconf.
9233 2007-10-26 Bruno Haible <bruno@clisp.org>
9235 * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
9236 strerror returned the empty string. Needed on HP-UX 11.00.
9238 2007-10-24 Micah Cowan <micah@cowan.name>
9240 Remove vestiges of cvs-gnulib-checkout process. Now we use git.
9241 * build-aux/bootstrap: Remove support for now-unnecessary option,
9242 --cvs-user, and envvars CVS_USER, CVS_RSH.
9244 2007-10-24 Jim Meyering <meyering@redhat.com>
9246 Avoid diagnostics from sha1sum when there is no cached checksum.
9247 * build-aux/bootstrap (update_po_files): Skip the sha1sum check
9248 if the po.s1 file hasn't been created yet.
9250 * build-aux/bootstrap: Sync from coreutils:
9251 2007-10-24 Jim Meyering <meyering@redhat.com>
9252 Get gnulib from the git repository, not from an obsolete cvs one.
9253 * build-aux/bootstrap: Suggestion from Micah Cowan.
9254 2007-10-04 Jim Meyering <jim@meyering.net>
9255 * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
9256 (update_po_files): Work also when there are no .po files in po/.
9258 2007-10-24 Paul Eggert <eggert@cs.ucla.edu>
9260 * README: Append ".git" to git and cg examples.
9261 Problem reported by Benoit Sigoure.
9263 2007-10-23 Micah Cowan <micah@cowan.name>
9265 * users.txt: Add wget.
9267 2007-10-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9269 Fix linking of some unistdio tests on FreeBSD.
9270 * modules/unistdio/u16-vsnprintf-tests
9271 (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
9272 * modules/unistdio/u16-vsprintf-tests
9273 (test_u16_vsnprintf1_LDADD): Likewise.
9274 * modules/unistdio/u32-vsnprintf-tests
9275 (test_u32_vsnprintf1_LDADD): Likewise.
9276 * modules/unistdio/u32-vsprintf-tests
9277 (test_u32_vsprintf1_LDADD): Likewise.
9278 * modules/unistdio/u8-vsnprintf-tests
9279 (test_u8_vsnprintf1_LDADD): Likewise.
9280 * modules/unistdio/u8-vsprintf-tests
9281 (test_u8_vsprintf1_LDADD): Likewise.
9282 * modules/unistdio/ulc-vsnprintf-tests
9283 (test_ulc_vsnprintf1_LDADD): Likewise.
9284 * modules/unistdio/ulc-vsprintf-tests
9285 (test_ulc_vsprintf1_LDADD): Likewise.
9287 Fix linking of some uniconv tests on FreeBSD.
9288 * modules/uniconv/u16-conv-from-enc-tests
9289 (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
9290 * modules/uniconv/u16-conv-to-enc-tests
9291 (test_u16_conv_to_enc_LDADD): Likewise.
9292 * modules/uniconv/u16-strconv-from-enc-tests
9293 (test_u16_strconv_from_enc_LDADD): Likewise.
9294 * modules/uniconv/u16-strconv-to-enc-tests
9295 (test_u16_strconv_to_enc_LDADD): Likewise.
9296 * modules/uniconv/u32-conv-from-enc-tests
9297 (test_u32_conv_from_enc_LDADD): Likewise.
9298 * modules/uniconv/u32-conv-to-enc-tests
9299 (test_u32_conv_to_enc_LDADD): Likewise.
9300 * modules/uniconv/u32-strconv-from-enc-tests
9301 (test_u32_strconv_from_enc_LDADD): Likewise.
9302 * modules/uniconv/u32-strconv-to-enc-tests
9303 (test_u32_strconv_to_enc_LDADD): Likewise.
9304 * modules/uniconv/u8-conv-from-enc-tests
9305 (test_u8_conv_from_enc_LDADD): Likewise.
9306 * modules/uniconv/u8-conv-to-enc-tests
9307 (test_u8_conv_to_enc_LDADD): Likewise.
9308 * modules/uniconv/u8-strconv-from-enc-tests
9309 (test_u8_strconv_from_enc_LDADD): Likewise.
9310 * modules/uniconv/u8-strconv-to-enc-tests
9311 (test_u8_strconv_to_enc_LDADD): Likewise.
9313 2007-10-22 Bruno Haible <bruno@clisp.org>
9315 * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
9318 2007-10-22 Eric Blake <ebb9@byu.net>
9320 Tweak x*printf documentation.
9321 * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
9322 variable name and comments.
9323 Suggested by Bruno Haible.
9325 2007-10-22 Bruno Haible <bruno@clisp.org>
9327 * lib/acl.c (copy_acl): Fix file name in comment.
9329 2007-10-22 Paul Eggert <eggert@cs.ucla.edu>
9331 Fix Tru64 problem with stdbool.h.
9332 * lib/stdbool.in.h (false, true):
9333 [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
9334 Don't declare as an enum in this situation; it runs afoul of Tru64.
9335 Problem reported by Steven M. Schweda in
9336 <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
9338 2007-10-22 Eric Blake <ebb9@byu.net>
9340 Also wrap vf?printf.
9341 * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
9342 * lib/xprintf.c (xprintf, xfprintf): Work for C89.
9343 (xvprintf, xvfprintf): New functions.
9345 2007-10-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9347 * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
9348 @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
9350 * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
9351 * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
9353 2007-10-22 Paul Eggert <eggert@cs.ucla.edu>
9355 * lib/acl.c (copy_acl): Adjust to IRIX 6.5. Problem reported
9358 2007-10-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9361 [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
9362 Undef `sys' after including sys/table.h, for Tru64 4.0D.
9364 * tests/test-i-ring.c: Work for C89.
9366 2007-10-22 Bruno Haible <bruno@clisp.org>
9368 * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
9369 -1u, in preprocessor expression, so that we don't test for the bug
9370 in HP-UX 11.00 cpp. Testing for this bug caused problems; see
9371 <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
9373 2007-10-22 Eric Blake <ebb9@byu.net>
9375 * tests/test-yesno.sh: Silence stderr during test.
9377 2007-10-22 Simon Josefsson <simon@josefsson.org>
9379 * modules/crypto/gc-camellia: New file.
9381 * m4/gc-camellia.m4: New file.
9383 * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
9385 * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
9387 2007-10-22 Simon Josefsson <simon@josefsson.org>
9389 * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
9390 --help to stdout. Reported by sms@antinode.org (Steven
9393 2007-10-22 Simon Josefsson <simon@josefsson.org>
9395 * users.txt: Fix link to libksba.
9397 2007-10-21 Ben Pfaff <blp@gnu.org>
9399 * modules/roundf-tests: Add dependency on floorf, ceilf to allow
9400 round.c roundf implementation that depends on floorf and ceilf to
9401 be tested unconditionally.
9403 2007-10-21 Ben Pfaff <blp@gnu.org>
9405 * m4/check-libm-func.m4: Removed.
9406 * m4/check-math-lib.m4: New file.
9407 * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
9408 * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
9409 definition and lack of AC_LIBOBJ([roundf]).
9410 * m4/roundl.m4: Ditto, and similarly for roundl.
9411 * modules/round: Reference new m4 file.
9412 * modules/roundf: Ditto.
9413 * modules/roundl: Ditto.
9414 * tests/test-round2.c (main): Use ROUND instead of round.
9415 Bug report from Bruno Haible.
9417 2007-10-21 Bruno Haible <bruno@clisp.org>
9419 * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
9422 2007-10-21 Bruno Haible <bruno@clisp.org>
9424 * tests/test-wcwidth.c (main): Allow negative result for some control
9427 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
9428 Needed on OSF/1 5.1.
9430 2007-10-21 Bruno Haible <bruno@clisp.org>
9432 * tests/test-floorf1.c: Include isnanf.h.
9433 (main): Use isnanf() instead of isnan().
9434 * tests/test-ceilf1.c: Include isnanf.h.
9435 (main): Use isnanf() instead of isnan().
9436 * tests/test-truncf1.c: Include isnanf.h.
9437 (main): Use isnanf() instead of isnan().
9438 * tests/test-roundf1.c: Include isnanf.h.
9439 (main): Use isnanf() instead of isnan().
9441 2007-10-21 Eric Blake <ebb9@byu.net>
9443 * users.txt: Update URL for m4.
9445 2007-10-21 Bruno Haible <bruno@clisp.org>
9447 * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
9449 2007-10-21 Bruno Haible <bruno@clisp.org>
9451 * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
9452 Git's management files if the CVS files are not present.
9454 2007-10-20 Bruno Haible <bruno@clisp.org>
9456 * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
9459 2007-10-20 Ben Pfaff <blp@gnu.org>
9461 * lib/math.in.h: Declare round, roundf, roundl if we are providing
9463 * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
9464 * lib/round.c: New file.
9465 * lib/roundf.c: New file.
9466 * lib/roundl.c: New file.
9467 * m4/round.m4: New file.
9468 * m4/roundf.m4: New file.
9469 * m4/roundl.m4: New file.
9470 * m4/check-libm-func-m4: New file.
9471 * modules/math: Replace round, roundf, roundl related @VARS@ in
9473 * modules/round: New file.
9474 * modules/round-tests: New file.
9475 * modules/roundf: New file.
9476 * modules/roundf-tests: New file.
9477 * modules/roundl: New file.
9478 * modules/roundl-tests: New file.
9479 * tests/test-round1.c: New file.
9480 * tests/test-round2.c: New file.
9481 * tests/test-roundf1.c: New file.
9482 * tests/test-roundf2.c: New file.
9483 * tests/test-roundl.c: New file.
9484 * doc/functions/round.texi: Mention round module.
9485 * doc/functions/roundf.texi: Mention roundf module.
9486 * doc/functions/roundl.texi: Mention roundl module.
9487 * MODULES.html.sh: Mention new modules.
9488 Thanks to Bruno Haible for suggestions.
9490 2007-10-20 Jim Meyering <meyering@redhat.com>
9492 * lib/xprintf.c: Include <config.h> unconditionally.
9494 Change xprintf's license to GPL.
9495 * modules/xprintf (License): s/LGPL/GPL/, since this module
9496 depends on modules (exit and exitfail) which are GPL.
9497 Suggestion from Bruno Haible.
9500 * lib/xprintf.c (xprintf, xfprintf): Use va_end.
9501 Use a clearer diagnostic.
9502 Patch from Bruno Haible.
9504 2007-10-20 Bruno Haible <bruno@clisp.org>
9506 * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
9507 length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
9508 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
9510 2007-10-20 Bruno Haible <bruno@clisp.org>
9512 * tests/test-floorf2.c (correct_result_p): Don't rely on excess
9513 precision in the comparison result > x - 1 or similar.
9514 * tests/test-ceilf2.c (correct_result_p): Likewise.
9515 * tests/test-truncf2.c (correct_result_p): Likewise.
9516 * tests/test-trunc2.c (correct_result_p): Likewise.
9517 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
9519 2007-10-20 Bruno Haible <bruno@clisp.org>
9521 * modules/ceil: New file.
9522 * m4/ceil.m4: New file.
9523 * doc/functions/ceil.texi: Mention the 'ceil' module.
9525 2007-10-20 Bruno Haible <bruno@clisp.org>
9527 * modules/floor: New file.
9528 * m4/floor.m4: New file.
9529 * doc/functions/floor.texi: Mention the 'floor' module.
9531 2007-10-20 Bruno Haible <bruno@clisp.org>
9533 * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
9535 * modules/floorf-tests (Depends-on): Likewise.
9536 * modules/truncf-tests (Depends-on): Likewise.
9537 * modules/trunc-tests (Depends-on): Likewise.
9538 Reported by Ben Pfaff.
9540 2007-10-19 Jim Meyering <meyering@redhat.com>
9542 * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
9543 Don't bother testing specific errno values. Just test ferror.
9546 * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
9548 2007-10-19 Bruno Haible <bruno@clisp.org>
9550 * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
9552 * modules/javaexec (Makefile.am): Likewise.
9553 * modules/relocatable-prog (Makefile.am): Likewise.
9554 Suggested by Jim Meyering.
9556 2007-10-18 Bruno Haible <bruno@clisp.org>
9558 * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
9559 Reported by Jim Meyering.
9561 2007-10-18 Eric Blake <ebb9@byu.net>
9563 * modules/filenamecat-tests (Makefile.am): Link against -lintl.
9565 2007-10-18 Bruno Haible <bruno@clisp.org>
9567 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
9568 the format string into writable memory. Needed in Fortify conditions.
9570 2007-10-18 Colin Watson <cjwatson@debian.org> (tiny change)
9571 Bruno Haible <bruno@clisp.org>
9573 * lib/trim.c: Include config.h unconditionally. Include trim.h always.
9574 Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
9575 * modules/trim (Depends-on): Add mbchar.
9576 (configure.ac): Add gl_FUNC_MBRTOWC.
9577 (Makefile.am): Augment lib_SOURCES.
9579 2007-10-17 Paul Eggert <eggert@cs.ucla.edu>
9581 Modify glob.c to use fstatat and dirfd, to simplify it.
9582 Suggested by Eric Blake.
9583 * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
9584 Don't include <stdbool.h>; not used.
9585 (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
9586 (link_exists_p): Simplify implementation, since we can now assume
9588 * modules/glob (Depends-on): Add dirfd, openat. Remove stdbool.
9590 2007-10-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9592 * gnulib-tool (func_get_dependencies): Fix sed script to
9595 2007-10-17 Bruno Haible <bruno@clisp.org>
9597 * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
9598 allow locale names without encoding suffix.
9599 * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
9600 * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
9602 2007-10-16 Bruno Haible <bruno@clisp.org>
9604 * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
9605 * lib/getgroups.c (getgroups): Likewise.
9606 * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
9608 2007-10-16 Bruno Haible <bruno@clisp.org>
9610 * modules/absolute-header (License): Change from LGPL to LGPLv2+.
9611 * modules/malloc-posix (License): Likewise.
9612 * modules/realloc-posix (License): Likewise.
9613 * modules/calloc-posix (License): Likewise.
9614 * modules/intprops (License): Change from GPL to LGPL, with
9615 Paul Eggert's approval.
9617 2007-10-16 Paul Eggert <eggert@cs.ucla.edu>
9619 Merge glibc changes into lib/glob.c.
9621 * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
9622 2007-10-15 04:59:03 UTC. Here are the changes:
9624 2007-10-14 Ulrich Drepper <drepper@redhat.com>
9626 * lib/glob.c: Reimplement link_exists_p to use fstatat64.
9628 * lib/glob.c: Add some branch prediction throughout.
9630 2007-10-07 Ulrich Drepper <drepper@redhat.com>
9633 * lib/glob.c (glob): Recognize patterns starting \/.
9635 2007-02-14 Jakub Jelinek <jakub@redhat.com>
9638 * lib/glob.c (attribute_hidden): Define if not defined.
9639 (glob): Unescape dirname, filename or username when needed and not
9640 GLOB_NOESCAPE. Handle \/ correctly. Handle GLOB_MARK if filename
9641 is NULL. Handle unescaped [ in pattern without closing ].
9642 Don't pass GLOB_CHECK down to recursive glob for directories.
9643 (__glob_pattern_type): New function.
9644 (__glob_pattern_p): Implement using __glob_pattern_type.
9645 (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
9646 characters and backslashes if not GLOB_NOESCAPE or unterminated [.
9647 Remove unreachable code.
9649 2006-09-30 Ulrich Drepper <drepper@redhat.com>
9651 * lib/glob.c (glob_in_dir): Add some comments and asserts to
9652 explain why there are no leaks.
9654 2006-09-25 Jakub Jelinek <jakub@redhat.com>
9657 * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
9658 time, rather allocate increasingly bigger arrays of pointers, if
9659 possible with alloca, if too large with malloc.
9661 2007-10-16 Paul Eggert <eggert@cs.ucla.edu>
9663 Check for 64-bit int errors in HP-UX 10.20 preprocessor.
9664 Problem reported by H.Merijn Brand in
9665 <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
9666 * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
9667 * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
9669 2007-10-15 Bruno Haible <bruno@clisp.org>
9671 * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
9672 with explicit rpl_ prefix.
9673 * lib/fopen.c (fopen): Likewise.
9674 * lib/freopen.c (freopen): Likewise.
9675 * lib/iconv.c (iconv): Likewise.
9676 * lib/iconv_close.c (iconv_close): Likewise.
9678 2007-10-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9680 * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
9682 2007-10-15 Bruno Haible <bruno@clisp.org>
9684 * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
9685 <stddef.h> instead of <stdlib.h> since we only need NULL.
9686 Reported by Ben Pfaff <blp@cs.stanford.edu>.
9688 2007-10-15 Bruno Haible <bruno@clisp.org>
9690 * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
9691 Replace paragraph talking about LIBOBJS.
9692 Reported by Colin Watson <cjwatson@debian.org>.
9694 2007-10-15 Bruno Haible <bruno@clisp.org>
9696 * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
9697 <stdlib.h> before using NULL.
9699 2007-10-15 Simon Josefsson <simon@josefsson.org>
9701 * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
9702 Reported by Albert Chin <china@thewrittenword.com>.
9704 2007-10-14 Bruno Haible <bruno@clisp.org>
9706 * modules/iconv_open-utf-tests: New file.
9707 * tests/test-iconv-utf.c: New file.
9709 Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
9710 * modules/iconv_open-utf: New file.
9711 * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
9712 (iconv, iconv_close): New declarations.
9713 * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
9715 (iconv_open): Add special handling of conversion between UTF-8 and
9717 * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
9718 * lib/iconv_close.c: New file.
9719 * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
9721 (gl_FUNC_ICONV_OPEN): Use it.
9722 (gl_FUNC_ICONV_OPEN_UTF): New macro.
9723 * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
9724 and REPLACE_ICONV_UTF.
9725 * modules/iconv_open (Depends-on): Add c-strcase.
9726 (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
9728 * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
9730 2007-10-13 Albert Chin <china@thewrittenword.com>
9731 Bruno Haible <bruno@clisp.org>
9733 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
9734 through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
9736 2007-10-13 Bruno Haible <bruno@clisp.org>
9738 * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
9739 defined, use the ISO C99 inline semantics.
9740 * lib/argp.h (ARGP_EI): Likewise.
9742 2007-10-13 Bruno Haible <bruno@clisp.org>
9744 Handle 'inline' change in gcc 4.3.0.
9745 * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
9746 argp_fmtstream_write, argp_fmtstream_set_lmargin,
9747 argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
9748 argp_fmtstream_point): Disable 'extern' declaration if the function
9749 definition is going to be provided inline.
9750 (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
9751 semantics, not the ISO C99 inline semantics.
9752 * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
9753 'extern' declaration if the function definition is going to be provided
9755 (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
9756 the GNU C inline semantics, not the ISO C99 inline semantics. With
9757 GCC 4.2, avoid a warning.
9759 2007-10-13 Bruno Haible <bruno@clisp.org>
9761 * lib/freading.h (freading): Enable the use of __freading for
9763 * lib/freading.c (freading): Likewise.
9765 2007-10-12 Paul Eggert <eggert@cs.ucla.edu>
9767 * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
9768 "warning: C99 inline functions are not supported; using GNU89".
9770 2007-10-12 Bruno Haible <bruno@clisp.org>
9772 * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
9774 * tests/test-ceilf2.c: New file.
9775 * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
9777 * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
9778 * modules/ceilf-tests: Update.
9780 2007-10-12 Bruno Haible <bruno@clisp.org>
9782 * lib/floor.c (FUNC): Avoid rounding errors for values near a power
9784 * tests/test-floorf2.c: New file.
9785 * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
9787 * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
9788 * modules/floorf-tests: Update.
9790 2007-10-12 Bruno Haible <bruno@clisp.org>
9792 * tests/test-trunc2.c: New file.
9793 * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
9795 * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
9796 * modules/trunc-tests: Update.
9798 2007-10-12 Bruno Haible <bruno@clisp.org>
9800 * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
9802 * tests/test-truncf2.c: New file.
9803 * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
9805 * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
9806 * modules/truncf-tests: Update.
9808 2007-10-11 Eric Blake <ebb9@byu.net>
9810 Don't claim strerror is broken on Interix.
9811 * doc/functions/strerror.texi (strerror): Known broken systems are
9812 now Solaris 8, and not Interix.
9813 * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
9814 Interix on cross-compile.
9815 Reported by Martin Koeppe in
9816 http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
9818 2007-10-11 Bruno Haible <bruno@clisp.org>
9820 * modules/i-ring-tests: New file.
9821 * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
9824 2007-10-11 Bruno Haible <bruno@clisp.org>
9826 * modules/filenamecat-tests: New file.
9827 * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
9828 * lib/filenamecat.c: Remove test code.
9830 2007-10-11 Paul Eggert <eggert@cs.ucla.edu>
9832 Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
9834 * lib/strerror.c: Include <string.h> always, to test interface,
9835 and to remove the need for the dummy.
9836 Include intprops.h to compute width instead of doing it ourselves
9837 and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
9838 (strerror): Define it to return NULL if there's no system strerror.
9839 (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
9840 Omit !HAVE_STRERROR code. We don't need to worry about supporting
9841 ancient pre-strerror Unix systems well any more. Saying "unknown
9842 system error" is enough.
9843 * lib/string.in.h (strerror): Simplify the ifdef to reflect the
9844 simpler strerror.c implementation.
9845 * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
9846 Simplify the tests to reflect the simpler strerror implementation.
9847 * modules/strerror (Depends-on): Add intprops.
9849 2007-10-09 Eric Blake <ebb9@byu.net>
9851 Silence test-fpending.
9852 * modules/fpending-tests (Files): Add wrapper script.
9853 * tests/test-fpending.sh: New file.
9855 2007-10-09 Bruno Haible <bruno@clisp.org>
9857 * MODULES.html.sh (func_module): Don't create a hyperlink for
9858 function names like 'printf_frexp'.
9859 (Misc): Add crc, memxor.
9860 (Characteristics of floating types): New section.
9861 (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
9862 isnanf-nolibm, signbit, trunc, truncf, truncl.
9863 (Enhancements for ISO C 99 functions): New subsection Input/output.
9864 (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
9865 fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
9866 locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
9867 (Compatibility checks for POSIX:2001 functions): Add clock-time.
9868 (Enhancements for POSIX:2001 functions): Add chdir-long.
9869 (File system functions): Add areadlink, chdir-safer, read-file.
9871 (File system as inode set): New section.
9872 (Date and time): Add gethrxtime.
9873 (Multithreading): Add openmp.
9874 (Internationalization functions): Add localename.
9875 (Unicode string functions): Add unistr/u*-mbsnlen.
9876 (Support for maintaining and releasing projects): Add git-version-gen.
9877 (Lone files): Remove directories.
9879 2007-10-08 Ben Pfaff <blp@gnu.org>
9881 * lib/xmalloca.h: Fix typo in comment.
9883 2007-10-08 Paul Eggert <eggert@cs.ucla.edu>
9885 * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
9886 when avoiding problems with integer overflow. Use a portable test
9889 2007-10-08 Simon Josefsson <simon@josefsson.org>
9891 * modules/dummy (License): Change to LGPLv2+.
9892 * modules/float (License): Likewise
9893 * modules/realloc (License): Likewise
9894 * modules/stdlib (License): Likewise
9896 2007-10-07 Bruno Haible <bruno@clisp.org>
9898 * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
9899 * floor.c (TWO_MANT_DIG): Likewise.
9900 * ceil.c (TWO_MANT_DIG): Likewise.
9901 Reported by Ben Pfaff.
9903 2007-10-07 Bruno Haible <bruno@clisp.org>
9905 Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
9906 * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
9907 * lib/frexp.c (FUNC): Likewise.
9908 * lib/printf-frexp.h (printf_frexp): Likewise.
9909 * lib/printf-frexpl.h (printf_frexpl): Likewise.
9910 * lib/printf-frexp.c (FUNC): Likewise.
9911 Suggested by Jim Meyering.
9913 2007-10-07 Jim Meyering <meyering@redhat.com>
9915 Make xnanosleep's integer overflow test more robust.
9916 * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
9917 so that gcc-4.3.0 doesn't optimize away this test for overflow.
9919 2007-10-07 Bruno Haible <bruno@clisp.org>
9921 * NEWS: Mention the license change.
9923 * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
9924 abbreviations in the modules files.
9926 Change copyright notice from GPLv2+ to GPLv3+.
9927 * README: Change copyright notice.
9928 * MODULES.html.sh: Likewise.
9929 * build-aux/bootstrap.conf: Likewise.
9930 * build-aux/config.libpath: Likewise.
9931 * build-aux/csharpcomp.sh.in: Likewise.
9932 * build-aux/csharpexec.sh.in: Likewise.
9933 * build-aux/install-reloc: Likewise.
9934 * build-aux/javacomp.sh.in: Likewise.
9935 * build-aux/javaexec.sh.in: Likewise.
9936 * build-aux/ldd.sh.in: Likewise.
9937 * build-aux/reloc-ldflags: Likewise.
9938 * build-aux/relocatable.sh.in: Likewise.
9939 * build-aux/x-to-1.in: Likewise.
9940 * check-module: Likewise.
9941 * config/srclistvars.sh: Likewise.
9942 * gnulib-tool: Likewise.
9943 * lib/acl-internal.h: Likewise.
9944 * lib/acl.c: Likewise.
9945 * lib/acl.h: Likewise.
9946 * lib/acl_entries.c: Likewise.
9947 * lib/areadlink-with-size.c: Likewise.
9948 * lib/areadlink.c: Likewise.
9949 * lib/areadlink.h: Likewise.
9950 * lib/argmatch.c: Likewise.
9951 * lib/argmatch.h: Likewise.
9952 * lib/argp-ba.c: Likewise.
9953 * lib/argp-eexst.c: Likewise.
9954 * lib/argp-fmtstream.c: Likewise.
9955 * lib/argp-fmtstream.h: Likewise.
9956 * lib/argp-fs-xinl.c: Likewise.
9957 * lib/argp-help.c: Likewise.
9958 * lib/argp-namefrob.h: Likewise.
9959 * lib/argp-parse.c: Likewise.
9960 * lib/argp-pin.c: Likewise.
9961 * lib/argp-pv.c: Likewise.
9962 * lib/argp-pvh.c: Likewise.
9963 * lib/argp-xinl.c: Likewise.
9964 * lib/argp.h: Likewise.
9965 * lib/at-func.c: Likewise.
9966 * lib/atanl.c: Likewise.
9967 * lib/backupfile.c: Likewise.
9968 * lib/backupfile.h: Likewise.
9969 * lib/basename.c: Likewise.
9970 * lib/binary-io.h: Likewise.
9971 * lib/byteswap.in.h: Likewise.
9972 * lib/c-stack.c: Likewise.
9973 * lib/c-stack.h: Likewise.
9974 * lib/c-strcasestr.c: Likewise.
9975 * lib/c-strcasestr.h: Likewise.
9976 * lib/c-strstr.c: Likewise.
9977 * lib/c-strstr.h: Likewise.
9978 * lib/c-strtod.c: Likewise.
9979 * lib/calloc.c: Likewise.
9980 * lib/canon-host.c: Likewise.
9981 * lib/canon-host.h: Likewise.
9982 * lib/canonicalize-lgpl.c: Likewise.
9983 * lib/canonicalize.c: Likewise.
9984 * lib/canonicalize.h: Likewise.
9985 * lib/ceil.c: Likewise.
9986 * lib/ceilf.c: Likewise.
9987 * lib/ceill.c: Likewise.
9988 * lib/chdir-long.c: Likewise.
9989 * lib/chdir-long.h: Likewise.
9990 * lib/chdir-safer.c: Likewise.
9991 * lib/chdir-safer.h: Likewise.
9992 * lib/chown.c: Likewise.
9993 * lib/classpath.c: Likewise.
9994 * lib/classpath.h: Likewise.
9995 * lib/clean-temp.c: Likewise.
9996 * lib/clean-temp.h: Likewise.
9997 * lib/cloexec.c: Likewise.
9998 * lib/close-stream.c: Likewise.
9999 * lib/closein.c: Likewise.
10000 * lib/closein.h: Likewise.
10001 * lib/closeout.c: Likewise.
10002 * lib/closeout.h: Likewise.
10003 * lib/concat-filename.c: Likewise.
10004 * lib/copy-file.c: Likewise.
10005 * lib/copy-file.h: Likewise.
10006 * lib/count-one-bits.h: Likewise.
10007 * lib/crc.c: Likewise.
10008 * lib/crc.h: Likewise.
10009 * lib/creat-safer.c: Likewise.
10010 * lib/csharpcomp.c: Likewise.
10011 * lib/csharpcomp.h: Likewise.
10012 * lib/csharpexec.c: Likewise.
10013 * lib/csharpexec.h: Likewise.
10014 * lib/cycle-check.c: Likewise.
10015 * lib/cycle-check.h: Likewise.
10016 * lib/diacrit.c: Likewise.
10017 * lib/diacrit.h: Likewise.
10018 * lib/diffseq.h: Likewise.
10019 * lib/dirchownmod.c: Likewise.
10020 * lib/dirent.in.h: Likewise.
10021 * lib/dirfd.c: Likewise.
10022 * lib/dirfd.h: Likewise.
10023 * lib/dirname.c: Likewise.
10024 * lib/dirname.h: Likewise.
10025 * lib/dummy.c: Likewise.
10026 * lib/dup-safer.c: Likewise.
10027 * lib/dup2.c: Likewise.
10028 * lib/eealloc.h: Likewise.
10029 * lib/error.c: Likewise.
10030 * lib/error.h: Likewise.
10031 * lib/euidaccess.c: Likewise.
10032 * lib/exclude.c: Likewise.
10033 * lib/exclude.h: Likewise.
10034 * lib/execute.c: Likewise.
10035 * lib/execute.h: Likewise.
10036 * lib/exitfail.c: Likewise.
10037 * lib/exitfail.h: Likewise.
10038 * lib/expl.c: Likewise.
10039 * lib/fatal-signal.c: Likewise.
10040 * lib/fatal-signal.h: Likewise.
10041 * lib/fbufmode.c: Likewise.
10042 * lib/fbufmode.h: Likewise.
10043 * lib/fchdir.c: Likewise.
10044 * lib/fchmodat.c: Likewise.
10045 * lib/fchownat.c: Likewise.
10046 * lib/fcntl--.h: Likewise.
10047 * lib/fcntl-safer.h: Likewise.
10048 * lib/fcntl.in.h: Likewise.
10049 * lib/fd-safer.c: Likewise.
10050 * lib/fflush.c: Likewise.
10051 * lib/file-has-acl.c: Likewise.
10052 * lib/file-set.c: Likewise.
10053 * lib/file-type.c: Likewise.
10054 * lib/file-type.h: Likewise.
10055 * lib/fileblocks.c: Likewise.
10056 * lib/filemode.c: Likewise.
10057 * lib/filemode.h: Likewise.
10058 * lib/filename.h: Likewise.
10059 * lib/filenamecat.c: Likewise.
10060 * lib/filenamecat.h: Likewise.
10061 * lib/findprog.c: Likewise.
10062 * lib/findprog.h: Likewise.
10063 * lib/float.in.h: Likewise.
10064 * lib/floor.c: Likewise.
10065 * lib/floorf.c: Likewise.
10066 * lib/floorl.c: Likewise.
10067 * lib/fopen-safer.c: Likewise.
10068 * lib/fopen.c: Likewise.
10069 * lib/fpending.c: Likewise.
10070 * lib/fpending.h: Likewise.
10071 * lib/fprintf.c: Likewise.
10072 * lib/fprintftime.h: Likewise.
10073 * lib/fpucw.h: Likewise.
10074 * lib/fpurge.c: Likewise.
10075 * lib/fpurge.h: Likewise.
10076 * lib/freadable.c: Likewise.
10077 * lib/freadable.h: Likewise.
10078 * lib/freadahead.c: Likewise.
10079 * lib/freadahead.h: Likewise.
10080 * lib/freading.c: Likewise.
10081 * lib/freading.h: Likewise.
10082 * lib/free.c: Likewise.
10083 * lib/freopen.c: Likewise.
10084 * lib/frexp.c: Likewise.
10085 * lib/frexpl.c: Likewise.
10086 * lib/fseek.c: Likewise.
10087 * lib/fseterr.c: Likewise.
10088 * lib/fseterr.h: Likewise.
10089 * lib/fstatat.c: Likewise.
10090 * lib/fstrcmp.c: Likewise.
10091 * lib/fstrcmp.h: Likewise.
10092 * lib/fsusage.c: Likewise.
10093 * lib/fsusage.h: Likewise.
10094 * lib/ftell.c: Likewise.
10095 * lib/ftello.c: Likewise.
10096 * lib/fts-cycle.c: Likewise.
10097 * lib/fts.c: Likewise.
10098 * lib/fts_.h: Likewise.
10099 * lib/full-read.c: Likewise.
10100 * lib/full-read.h: Likewise.
10101 * lib/full-write.c: Likewise.
10102 * lib/full-write.h: Likewise.
10103 * lib/fwritable.c: Likewise.
10104 * lib/fwritable.h: Likewise.
10105 * lib/fwriteerror.c: Likewise.
10106 * lib/fwriteerror.h: Likewise.
10107 * lib/fwriting.c: Likewise.
10108 * lib/fwriting.h: Likewise.
10109 * lib/gcd.c: Likewise.
10110 * lib/gcd.h: Likewise.
10111 * lib/getcwd.c: Likewise.
10112 * lib/getdate.h: Likewise.
10113 * lib/getdate.y: Likewise.
10114 * lib/getdomainname.c: Likewise.
10115 * lib/getdomainname.h: Likewise.
10116 * lib/getgroups.c: Likewise.
10117 * lib/gethostname.c: Likewise.
10118 * lib/gethrxtime.c: Likewise.
10119 * lib/gethrxtime.h: Likewise.
10120 * lib/getloadavg.c: Likewise.
10121 * lib/getndelim2.c: Likewise.
10122 * lib/getndelim2.h: Likewise.
10123 * lib/getnline.c: Likewise.
10124 * lib/getnline.h: Likewise.
10125 * lib/getopt.c: Likewise.
10126 * lib/getopt.in.h: Likewise.
10127 * lib/getopt1.c: Likewise.
10128 * lib/getopt_int.h: Likewise.
10129 * lib/getpagesize.h: Likewise.
10130 * lib/getsubopt.c: Likewise.
10131 * lib/gettime.c: Likewise.
10132 * lib/getugroups.c: Likewise.
10133 * lib/getugroups.h: Likewise.
10134 * lib/getusershell.c: Likewise.
10135 * lib/gl_anyavltree_list1.h: Likewise.
10136 * lib/gl_anyavltree_list2.h: Likewise.
10137 * lib/gl_anyhash_list1.h: Likewise.
10138 * lib/gl_anyhash_list2.h: Likewise.
10139 * lib/gl_anylinked_list1.h: Likewise.
10140 * lib/gl_anylinked_list2.h: Likewise.
10141 * lib/gl_anyrbtree_list1.h: Likewise.
10142 * lib/gl_anyrbtree_list2.h: Likewise.
10143 * lib/gl_anytree_list1.h: Likewise.
10144 * lib/gl_anytree_list2.h: Likewise.
10145 * lib/gl_anytree_oset.h: Likewise.
10146 * lib/gl_anytreehash_list1.h: Likewise.
10147 * lib/gl_anytreehash_list2.h: Likewise.
10148 * lib/gl_array_list.c: Likewise.
10149 * lib/gl_array_list.h: Likewise.
10150 * lib/gl_array_oset.c: Likewise.
10151 * lib/gl_array_oset.h: Likewise.
10152 * lib/gl_avltree_list.c: Likewise.
10153 * lib/gl_avltree_list.h: Likewise.
10154 * lib/gl_avltree_oset.c: Likewise.
10155 * lib/gl_avltree_oset.h: Likewise.
10156 * lib/gl_avltreehash_list.c: Likewise.
10157 * lib/gl_avltreehash_list.h: Likewise.
10158 * lib/gl_carray_list.c: Likewise.
10159 * lib/gl_carray_list.h: Likewise.
10160 * lib/gl_linked_list.c: Likewise.
10161 * lib/gl_linked_list.h: Likewise.
10162 * lib/gl_linkedhash_list.c: Likewise.
10163 * lib/gl_linkedhash_list.h: Likewise.
10164 * lib/gl_list.c: Likewise.
10165 * lib/gl_list.h: Likewise.
10166 * lib/gl_oset.c: Likewise.
10167 * lib/gl_oset.h: Likewise.
10168 * lib/gl_rbtree_list.c: Likewise.
10169 * lib/gl_rbtree_list.h: Likewise.
10170 * lib/gl_rbtree_oset.c: Likewise.
10171 * lib/gl_rbtree_oset.h: Likewise.
10172 * lib/gl_rbtreehash_list.c: Likewise.
10173 * lib/gl_rbtreehash_list.h: Likewise.
10174 * lib/gl_sublist.c: Likewise.
10175 * lib/gl_sublist.h: Likewise.
10176 * lib/group-member.c: Likewise.
10177 * lib/group-member.h: Likewise.
10178 * lib/hard-locale.c: Likewise.
10179 * lib/hard-locale.h: Likewise.
10180 * lib/hash-pjw.c: Likewise.
10181 * lib/hash-pjw.h: Likewise.
10182 * lib/hash-triple.c: Likewise.
10183 * lib/hash.c: Likewise.
10184 * lib/hash.h: Likewise.
10185 * lib/human.c: Likewise.
10186 * lib/human.h: Likewise.
10187 * lib/i-ring.c: Likewise.
10188 * lib/i-ring.h: Likewise.
10189 * lib/idcache.c: Likewise.
10190 * lib/imaxabs.c: Likewise.
10191 * lib/imaxdiv.c: Likewise.
10192 * lib/inet_pton.c: Likewise.
10193 * lib/inet_pton.h: Likewise.
10194 * lib/intprops.h: Likewise.
10195 * lib/inttostr.c: Likewise.
10196 * lib/inttostr.h: Likewise.
10197 * lib/inttypes.in.h: Likewise.
10198 * lib/isapipe.c: Likewise.
10199 * lib/isdir.c: Likewise.
10200 * lib/isnan.c: Likewise.
10201 * lib/isnan.h: Likewise.
10202 * lib/isnanf.c: Likewise.
10203 * lib/isnanf.h: Likewise.
10204 * lib/isnanl-nolibm.h: Likewise.
10205 * lib/isnanl.c: Likewise.
10206 * lib/isnanl.h: Likewise.
10207 * lib/javacomp.c: Likewise.
10208 * lib/javacomp.h: Likewise.
10209 * lib/javaexec.c: Likewise.
10210 * lib/javaexec.h: Likewise.
10211 * lib/javaversion.c: Likewise.
10212 * lib/javaversion.h: Likewise.
10213 * lib/javaversion.java: Likewise.
10214 * lib/lbrkprop.h: Likewise.
10215 * lib/lchmod.h: Likewise.
10216 * lib/lchown.c: Likewise.
10217 * lib/ldexpl.c: Likewise.
10218 * lib/linebreak.c: Likewise.
10219 * lib/linebreak.h: Likewise.
10220 * lib/linebuffer.c: Likewise.
10221 * lib/linebuffer.h: Likewise.
10222 * lib/locale.in.h: Likewise.
10223 * lib/logl.c: Likewise.
10224 * lib/long-options.c: Likewise.
10225 * lib/long-options.h: Likewise.
10226 * lib/lstat.c: Likewise.
10227 * lib/lstat.h: Likewise.
10228 * lib/math.in.h: Likewise.
10229 * lib/mbchar.c: Likewise.
10230 * lib/mbchar.h: Likewise.
10231 * lib/mbfile.h: Likewise.
10232 * lib/mbiter.h: Likewise.
10233 * lib/mbscasecmp.c: Likewise.
10234 * lib/mbscasestr.c: Likewise.
10235 * lib/mbschr.c: Likewise.
10236 * lib/mbscspn.c: Likewise.
10237 * lib/mbslen.c: Likewise.
10238 * lib/mbsncasecmp.c: Likewise.
10239 * lib/mbsnlen.c: Likewise.
10240 * lib/mbspbrk.c: Likewise.
10241 * lib/mbspcasecmp.c: Likewise.
10242 * lib/mbsrchr.c: Likewise.
10243 * lib/mbssep.c: Likewise.
10244 * lib/mbsspn.c: Likewise.
10245 * lib/mbsstr.c: Likewise.
10246 * lib/mbstok_r.c: Likewise.
10247 * lib/mbswidth.c: Likewise.
10248 * lib/mbswidth.h: Likewise.
10249 * lib/mbuiter.h: Likewise.
10250 * lib/memcasecmp.c: Likewise.
10251 * lib/memcasecmp.h: Likewise.
10252 * lib/memchr.c: Likewise.
10253 * lib/memcmp.c: Likewise.
10254 * lib/memcoll.c: Likewise.
10255 * lib/memcoll.h: Likewise.
10256 * lib/memcpy.c: Likewise.
10257 * lib/memrchr.c: Likewise.
10258 * lib/mkancesdirs.c: Likewise.
10259 * lib/mkdir-p.c: Likewise.
10260 * lib/mkdir-p.h: Likewise.
10261 * lib/mkdir.c: Likewise.
10262 * lib/mkdirat.c: Likewise.
10263 * lib/mkdtemp.c: Likewise.
10264 * lib/mkstemp-safer.c: Likewise.
10265 * lib/mkstemp.c: Likewise.
10266 * lib/modechange.c: Likewise.
10267 * lib/modechange.h: Likewise.
10268 * lib/mountlist.c: Likewise.
10269 * lib/mountlist.h: Likewise.
10270 * lib/mpsort.c: Likewise.
10271 * lib/nanosleep.c: Likewise.
10272 * lib/obstack.c: Likewise.
10273 * lib/obstack.h: Likewise.
10274 * lib/open-safer.c: Likewise.
10275 * lib/open.c: Likewise.
10276 * lib/openat-die.c: Likewise.
10277 * lib/openat-priv.h: Likewise.
10278 * lib/openat-proc.c: Likewise.
10279 * lib/openat.c: Likewise.
10280 * lib/openat.h: Likewise.
10281 * lib/pagealign_alloc.c: Likewise.
10282 * lib/pagealign_alloc.h: Likewise.
10283 * lib/physmem.c: Likewise.
10284 * lib/physmem.h: Likewise.
10285 * lib/pipe-safer.c: Likewise.
10286 * lib/pipe.c: Likewise.
10287 * lib/pipe.h: Likewise.
10288 * lib/posixtm.c: Likewise.
10289 * lib/posixtm.h: Likewise.
10290 * lib/posixver.c: Likewise.
10291 * lib/printf-frexp.c: Likewise.
10292 * lib/printf-frexp.h: Likewise.
10293 * lib/printf-frexpl.c: Likewise.
10294 * lib/printf-frexpl.h: Likewise.
10295 * lib/printf.c: Likewise.
10296 * lib/progname.c: Likewise.
10297 * lib/progname.h: Likewise.
10298 * lib/progreloc.c: Likewise.
10299 * lib/putenv.c: Likewise.
10300 * lib/quote.c: Likewise.
10301 * lib/quote.h: Likewise.
10302 * lib/quotearg.c: Likewise.
10303 * lib/quotearg.h: Likewise.
10304 * lib/raise.c: Likewise.
10305 * lib/readline.c: Likewise.
10306 * lib/readline.h: Likewise.
10307 * lib/readlink.c: Likewise.
10308 * lib/readtokens.c: Likewise.
10309 * lib/readtokens.h: Likewise.
10310 * lib/readtokens0.c: Likewise.
10311 * lib/readtokens0.h: Likewise.
10312 * lib/readutmp.c: Likewise.
10313 * lib/readutmp.h: Likewise.
10314 * lib/realloc.c: Likewise.
10315 * lib/relocwrapper.c: Likewise.
10316 * lib/rename-dest-slash.c: Likewise.
10317 * lib/rename.c: Likewise.
10318 * lib/rmdir.c: Likewise.
10319 * lib/rpmatch.c: Likewise.
10320 * lib/safe-read.c: Likewise.
10321 * lib/safe-read.h: Likewise.
10322 * lib/safe-write.c: Likewise.
10323 * lib/safe-write.h: Likewise.
10324 * lib/same-inode.h: Likewise.
10325 * lib/same.c: Likewise.
10326 * lib/same.h: Likewise.
10327 * lib/save-cwd.c: Likewise.
10328 * lib/save-cwd.h: Likewise.
10329 * lib/savedir.c: Likewise.
10330 * lib/savedir.h: Likewise.
10331 * lib/savewd.c: Likewise.
10332 * lib/savewd.h: Likewise.
10333 * lib/search.in.h: Likewise.
10334 * lib/setenv.c: Likewise.
10335 * lib/setenv.h: Likewise.
10336 * lib/settime.c: Likewise.
10337 * lib/sh-quote.c: Likewise.
10338 * lib/sh-quote.h: Likewise.
10339 * lib/sig2str.c: Likewise.
10340 * lib/sig2str.h: Likewise.
10341 * lib/signal.in.h: Likewise.
10342 * lib/signbitd.c: Likewise.
10343 * lib/signbitf.c: Likewise.
10344 * lib/signbitl.c: Likewise.
10345 * lib/sigprocmask.c: Likewise.
10346 * lib/sincosl.c: Likewise.
10347 * lib/sleep.c: Likewise.
10348 * lib/sprintf.c: Likewise.
10349 * lib/sqrtl.c: Likewise.
10350 * lib/stat-time.h: Likewise.
10351 * lib/stdio--.h: Likewise.
10352 * lib/stdio-safer.h: Likewise.
10353 * lib/stdlib--.h: Likewise.
10354 * lib/stdlib-safer.h: Likewise.
10355 * lib/stdlib.in.h: Likewise.
10356 * lib/stpcpy.c: Likewise.
10357 * lib/stpncpy.c: Likewise.
10358 * lib/strchrnul.c: Likewise.
10359 * lib/strcspn.c: Likewise.
10360 * lib/strerror.c: Likewise.
10361 * lib/strftime.c: Likewise.
10362 * lib/strftime.h: Likewise.
10363 * lib/striconveh.c: Likewise.
10364 * lib/striconveh.h: Likewise.
10365 * lib/striconveha.c: Likewise.
10366 * lib/striconveha.h: Likewise.
10367 * lib/stripslash.c: Likewise.
10368 * lib/strnlen1.c: Likewise.
10369 * lib/strnlen1.h: Likewise.
10370 * lib/strtod.c: Likewise.
10371 * lib/strtoimax.c: Likewise.
10372 * lib/strtok_r.c: Likewise.
10373 * lib/strtol.c: Likewise.
10374 * lib/strtoll.c: Likewise.
10375 * lib/strtoul.c: Likewise.
10376 * lib/strtoull.c: Likewise.
10377 * lib/sysexits.in.h: Likewise.
10378 * lib/tempname.c: Likewise.
10379 * lib/tempname.h: Likewise.
10380 * lib/timespec.h: Likewise.
10381 * lib/tls.c: Likewise.
10382 * lib/tls.h: Likewise.
10383 * lib/tmpdir.c: Likewise.
10384 * lib/tmpdir.h: Likewise.
10385 * lib/tmpfile-safer.c: Likewise.
10386 * lib/tmpfile.c: Likewise.
10387 * lib/trigl.c: Likewise.
10388 * lib/trigl.h: Likewise.
10389 * lib/trim.c: Likewise.
10390 * lib/trim.h: Likewise.
10391 * lib/trunc.c: Likewise.
10392 * lib/truncf.c: Likewise.
10393 * lib/truncl.c: Likewise.
10394 * lib/tsearch.c: Likewise.
10395 * lib/unicodeio.c: Likewise.
10396 * lib/unicodeio.h: Likewise.
10397 * lib/unistd--.h: Likewise.
10398 * lib/unistd-safer.h: Likewise.
10399 * lib/unistdio/ulc-fprintf.c: Likewise.
10400 * lib/unistdio/ulc-vfprintf.c: Likewise.
10401 * lib/unlinkdir.c: Likewise.
10402 * lib/unlinkdir.h: Likewise.
10403 * lib/unlocked-io.h: Likewise.
10404 * lib/unsetenv.c: Likewise.
10405 * lib/userspec.c: Likewise.
10406 * lib/utime.c: Likewise.
10407 * lib/utimecmp.c: Likewise.
10408 * lib/utimecmp.h: Likewise.
10409 * lib/utimens.c: Likewise.
10410 * lib/verify.h: Likewise.
10411 * lib/verror.c: Likewise.
10412 * lib/verror.h: Likewise.
10413 * lib/version-etc-fsf.c: Likewise.
10414 * lib/version-etc.c: Likewise.
10415 * lib/version-etc.h: Likewise.
10416 * lib/vfprintf.c: Likewise.
10417 * lib/vprintf.c: Likewise.
10418 * lib/vsprintf.c: Likewise.
10419 * lib/w32spawn.h: Likewise.
10420 * lib/wait-process.c: Likewise.
10421 * lib/wait-process.h: Likewise.
10422 * lib/wcwidth.c: Likewise.
10423 * lib/write-any-file.c: Likewise.
10424 * lib/xalloc-die.c: Likewise.
10425 * lib/xalloc.h: Likewise.
10426 * lib/xasprintf.c: Likewise.
10427 * lib/xgetcwd.c: Likewise.
10428 * lib/xgetcwd.h: Likewise.
10429 * lib/xgetdomainname.c: Likewise.
10430 * lib/xgetdomainname.h: Likewise.
10431 * lib/xgethostname.c: Likewise.
10432 * lib/xmalloc.c: Likewise.
10433 * lib/xmalloca.c: Likewise.
10434 * lib/xmalloca.h: Likewise.
10435 * lib/xmemcoll.c: Likewise.
10436 * lib/xnanosleep.c: Likewise.
10437 * lib/xreadlink.c: Likewise.
10438 * lib/xreadlink.h: Likewise.
10439 * lib/xsetenv.c: Likewise.
10440 * lib/xsetenv.h: Likewise.
10441 * lib/xstriconv.c: Likewise.
10442 * lib/xstriconv.h: Likewise.
10443 * lib/xstrndup.c: Likewise.
10444 * lib/xstrndup.h: Likewise.
10445 * lib/xstrtod.c: Likewise.
10446 * lib/xstrtod.h: Likewise.
10447 * lib/xstrtol-error.c: Likewise.
10448 * lib/xstrtol.c: Likewise.
10449 * lib/xstrtol.h: Likewise.
10450 * lib/xtime.h: Likewise.
10451 * lib/xvasprintf.c: Likewise.
10452 * lib/xvasprintf.h: Likewise.
10453 * lib/yesno.c: Likewise.
10454 * lib/yesno.h: Likewise.
10455 * posix-modules: Likewise.
10456 * tests/test-alloca-opt.c: Likewise.
10457 * tests/test-arcfour.c: Likewise.
10458 * tests/test-arctwo.c: Likewise.
10459 * tests/test-argmatch.c: Likewise.
10460 * tests/test-argp-2.sh: Likewise.
10461 * tests/test-argp.c: Likewise.
10462 * tests/test-arpa_inet.c: Likewise.
10463 * tests/test-array_list.c: Likewise.
10464 * tests/test-array_oset.c: Likewise.
10465 * tests/test-atexit.c: Likewise.
10466 * tests/test-avltree_list.c: Likewise.
10467 * tests/test-avltree_oset.c: Likewise.
10468 * tests/test-avltreehash_list.c: Likewise.
10469 * tests/test-base64.c: Likewise.
10470 * tests/test-binary-io.c: Likewise.
10471 * tests/test-byteswap.c: Likewise.
10472 * tests/test-c-ctype.c: Likewise.
10473 * tests/test-c-strcasecmp.c: Likewise.
10474 * tests/test-c-strcasestr.c: Likewise.
10475 * tests/test-c-strncasecmp.c: Likewise.
10476 * tests/test-c-strstr.c: Likewise.
10477 * tests/test-canonicalize-lgpl.c: Likewise.
10478 * tests/test-canonicalize.c: Likewise.
10479 * tests/test-carray_list.c: Likewise.
10480 * tests/test-ceilf.c: Likewise.
10481 * tests/test-ceill.c: Likewise.
10482 * tests/test-count-one-bits.c: Likewise.
10483 * tests/test-crc.c: Likewise.
10484 * tests/test-dirname.c: Likewise.
10485 * tests/test-fbufmode.c: Likewise.
10486 * tests/test-fcntl.c: Likewise.
10487 * tests/test-fflush.c: Likewise.
10488 * tests/test-floorf.c: Likewise.
10489 * tests/test-floorl.c: Likewise.
10490 * tests/test-fopen.c: Likewise.
10491 * tests/test-fprintf-posix.c: Likewise.
10492 * tests/test-fprintf-posix.h: Likewise.
10493 * tests/test-fpurge.c: Likewise.
10494 * tests/test-freadable.c: Likewise.
10495 * tests/test-freadahead.c: Likewise.
10496 * tests/test-freading.c: Likewise.
10497 * tests/test-freopen.c: Likewise.
10498 * tests/test-frexp.c: Likewise.
10499 * tests/test-frexpl.c: Likewise.
10500 * tests/test-fseek.c: Likewise.
10501 * tests/test-fseeko.c: Likewise.
10502 * tests/test-fseterr.c: Likewise.
10503 * tests/test-fstrcmp.c: Likewise.
10504 * tests/test-ftell.c: Likewise.
10505 * tests/test-ftello.c: Likewise.
10506 * tests/test-fwritable.c: Likewise.
10507 * tests/test-fwriting.c: Likewise.
10508 * tests/test-getaddrinfo.c: Likewise.
10509 * tests/test-getpass.c: Likewise.
10510 * tests/test-gettimeofday.c: Likewise.
10511 * tests/test-hmac-md5.c: Likewise.
10512 * tests/test-hmac-sha1.c: Likewise.
10513 * tests/test-iconv.c: Likewise.
10514 * tests/test-iconvme.c: Likewise.
10515 * tests/test-inttypes.c: Likewise.
10516 * tests/test-isnan.c: Likewise.
10517 * tests/test-isnanf.c: Likewise.
10518 * tests/test-isnanl-nolibm.c: Likewise.
10519 * tests/test-isnanl.c: Likewise.
10520 * tests/test-isnanl.h: Likewise.
10521 * tests/test-ldexpl.c: Likewise.
10522 * tests/test-linked_list.c: Likewise.
10523 * tests/test-linkedhash_list.c: Likewise.
10524 * tests/test-locale.c: Likewise.
10525 * tests/test-localename.c: Likewise.
10526 * tests/test-lock.c: Likewise.
10527 * tests/test-lseek.c: Likewise.
10528 * tests/test-malloca.c: Likewise.
10529 * tests/test-math.c: Likewise.
10530 * tests/test-mbscasecmp.c: Likewise.
10531 * tests/test-mbscasestr1.c: Likewise.
10532 * tests/test-mbscasestr2.c: Likewise.
10533 * tests/test-mbscasestr3.c: Likewise.
10534 * tests/test-mbscasestr4.c: Likewise.
10535 * tests/test-mbschr.c: Likewise.
10536 * tests/test-mbscspn.c: Likewise.
10537 * tests/test-mbsncasecmp.c: Likewise.
10538 * tests/test-mbspbrk.c: Likewise.
10539 * tests/test-mbspcasecmp.c: Likewise.
10540 * tests/test-mbsrchr.c: Likewise.
10541 * tests/test-mbsspn.c: Likewise.
10542 * tests/test-mbsstr1.c: Likewise.
10543 * tests/test-mbsstr2.c: Likewise.
10544 * tests/test-mbsstr3.c: Likewise.
10545 * tests/test-md5.c: Likewise.
10546 * tests/test-memmem.c: Likewise.
10547 * tests/test-netinet_in.c: Likewise.
10548 * tests/test-open.c: Likewise.
10549 * tests/test-printf-frexp.c: Likewise.
10550 * tests/test-printf-frexpl.c: Likewise.
10551 * tests/test-printf-posix.c: Likewise.
10552 * tests/test-printf-posix.h: Likewise.
10553 * tests/test-rbtree_list.c: Likewise.
10554 * tests/test-rbtree_oset.c: Likewise.
10555 * tests/test-rbtreehash_list.c: Likewise.
10556 * tests/test-read-file.c: Likewise.
10557 * tests/test-rijndael.c: Likewise.
10558 * tests/test-search.c: Likewise.
10559 * tests/test-signbit.c: Likewise.
10560 * tests/test-sleep.c: Likewise.
10561 * tests/test-snprintf-posix.c: Likewise.
10562 * tests/test-snprintf-posix.h: Likewise.
10563 * tests/test-snprintf.c: Likewise.
10564 * tests/test-sprintf-posix.c: Likewise.
10565 * tests/test-sprintf-posix.h: Likewise.
10566 * tests/test-stat-time.c: Likewise.
10567 * tests/test-stdbool.c: Likewise.
10568 * tests/test-stdint.c: Likewise.
10569 * tests/test-stdio.c: Likewise.
10570 * tests/test-stdlib.c: Likewise.
10571 * tests/test-stpncpy.c: Likewise.
10572 * tests/test-strcasestr.c: Likewise.
10573 * tests/test-striconv.c: Likewise.
10574 * tests/test-striconveh.c: Likewise.
10575 * tests/test-striconveha.c: Likewise.
10576 * tests/test-string.c: Likewise.
10577 * tests/test-sys_select.c: Likewise.
10578 * tests/test-sys_socket.c: Likewise.
10579 * tests/test-sys_stat.c: Likewise.
10580 * tests/test-sys_time.c: Likewise.
10581 * tests/test-sysexits.c: Likewise.
10582 * tests/test-time.c: Likewise.
10583 * tests/test-tls.c: Likewise.
10584 * tests/test-trunc.c: Likewise.
10585 * tests/test-truncf.c: Likewise.
10586 * tests/test-truncl.c: Likewise.
10587 * tests/test-unistd.c: Likewise.
10588 * tests/test-vasnprintf-posix.c: Likewise.
10589 * tests/test-vasnprintf-posix2.c: Likewise.
10590 * tests/test-vasnprintf.c: Likewise.
10591 * tests/test-vasprintf-posix.c: Likewise.
10592 * tests/test-vasprintf.c: Likewise.
10593 * tests/test-verify.c: Likewise.
10594 * tests/test-vfprintf-posix.c: Likewise.
10595 * tests/test-vprintf-posix.c: Likewise.
10596 * tests/test-vsnprintf-posix.c: Likewise.
10597 * tests/test-vsnprintf.c: Likewise.
10598 * tests/test-vsprintf-posix.c: Likewise.
10599 * tests/test-wchar.c: Likewise.
10600 * tests/test-wctype.c: Likewise.
10601 * tests/test-wcwidth.c: Likewise.
10602 * tests/test-xstrtol.c: Likewise.
10603 * tests/test-xvasprintf.c: Likewise.
10604 * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
10605 * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
10606 * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
10607 * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
10608 * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
10609 * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
10610 * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
10611 * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
10612 * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
10613 * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
10614 * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
10615 * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
10616 * tests/uniname/test-uninames.c: Likewise.
10617 * tests/unistdio/test-u16-asnprintf1.c: Likewise.
10618 * tests/unistdio/test-u16-asnprintf1.h: Likewise.
10619 * tests/unistdio/test-u16-printf1.h: Likewise.
10620 * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
10621 * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
10622 * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
10623 * tests/unistdio/test-u16-vasprintf1.c: Likewise.
10624 * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
10625 * tests/unistdio/test-u16-vsprintf1.c: Likewise.
10626 * tests/unistdio/test-u32-asnprintf1.c: Likewise.
10627 * tests/unistdio/test-u32-asnprintf1.h: Likewise.
10628 * tests/unistdio/test-u32-printf1.h: Likewise.
10629 * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
10630 * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
10631 * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
10632 * tests/unistdio/test-u32-vasprintf1.c: Likewise.
10633 * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
10634 * tests/unistdio/test-u32-vsprintf1.c: Likewise.
10635 * tests/unistdio/test-u8-asnprintf1.c: Likewise.
10636 * tests/unistdio/test-u8-asnprintf1.h: Likewise.
10637 * tests/unistdio/test-u8-printf1.h: Likewise.
10638 * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
10639 * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
10640 * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
10641 * tests/unistdio/test-u8-vasprintf1.c: Likewise.
10642 * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
10643 * tests/unistdio/test-u8-vsprintf1.c: Likewise.
10644 * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
10645 * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
10646 * tests/unistdio/test-ulc-printf1.h: Likewise.
10647 * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
10648 * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
10649 * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
10650 * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
10651 * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
10652 * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
10653 * tests/uniwidth/test-u16-strwidth.c: Likewise.
10654 * tests/uniwidth/test-u16-width.c: Likewise.
10655 * tests/uniwidth/test-u32-strwidth.c: Likewise.
10656 * tests/uniwidth/test-u32-width.c: Likewise.
10657 * tests/uniwidth/test-u8-strwidth.c: Likewise.
10658 * tests/uniwidth/test-u8-width.c: Likewise.
10659 * tests/uniwidth/test-uc_width.c: Likewise.
10660 * config/srclist-update: Likewise.
10661 (fixlicense): Update to GPLv3+.
10663 Change copyright notice from LGPLv2.1+ to LGPLv3+.
10664 * tests/test-tsearch.c: Change copyright notice.
10666 Change copyright notice from LGPLv2.0+ to LGPLv3+.
10667 * lib/c-strcaseeq.h: Change copyright notice.
10668 * lib/streq.h: Likewise.
10669 * lib/uniconv.h: Likewise.
10670 * lib/uniconv/u-conv-from-enc.h: Likewise.
10671 * lib/uniconv/u-conv-to-enc.h: Likewise.
10672 * lib/uniconv/u-strconv-from-enc.h: Likewise.
10673 * lib/uniconv/u-strconv-to-enc.h: Likewise.
10674 * lib/uniconv/u16-conv-from-enc.c: Likewise.
10675 * lib/uniconv/u16-conv-to-enc.c: Likewise.
10676 * lib/uniconv/u16-strconv-from-enc.c: Likewise.
10677 * lib/uniconv/u16-strconv-from-locale.c: Likewise.
10678 * lib/uniconv/u16-strconv-to-enc.c: Likewise.
10679 * lib/uniconv/u16-strconv-to-locale.c: Likewise.
10680 * lib/uniconv/u32-conv-from-enc.c: Likewise.
10681 * lib/uniconv/u32-conv-to-enc.c: Likewise.
10682 * lib/uniconv/u32-strconv-from-enc.c: Likewise.
10683 * lib/uniconv/u32-strconv-from-locale.c: Likewise.
10684 * lib/uniconv/u32-strconv-to-enc.c: Likewise.
10685 * lib/uniconv/u32-strconv-to-locale.c: Likewise.
10686 * lib/uniconv/u8-conv-from-enc.c: Likewise.
10687 * lib/uniconv/u8-conv-to-enc.c: Likewise.
10688 * lib/uniconv/u8-strconv-from-enc.c: Likewise.
10689 * lib/uniconv/u8-strconv-from-locale.c: Likewise.
10690 * lib/uniconv/u8-strconv-to-enc.c: Likewise.
10691 * lib/uniconv/u8-strconv-to-locale.c: Likewise.
10692 * lib/uniname.h: Likewise.
10693 * lib/uniname/uniname.c: Likewise.
10694 * lib/unistdio.h: Likewise.
10695 * lib/unistdio/u-asnprintf.h: Likewise.
10696 * lib/unistdio/u-asprintf.h: Likewise.
10697 * lib/unistdio/u-printf-args.c: Likewise.
10698 * lib/unistdio/u-printf-args.h: Likewise.
10699 * lib/unistdio/u-printf-parse.h: Likewise.
10700 * lib/unistdio/u-snprintf.h: Likewise.
10701 * lib/unistdio/u-sprintf.h: Likewise.
10702 * lib/unistdio/u-vasprintf.h: Likewise.
10703 * lib/unistdio/u-vsnprintf.h: Likewise.
10704 * lib/unistdio/u-vsprintf.h: Likewise.
10705 * lib/unistdio/u16-asnprintf.c: Likewise.
10706 * lib/unistdio/u16-asprintf.c: Likewise.
10707 * lib/unistdio/u16-printf-parse.c: Likewise.
10708 * lib/unistdio/u16-snprintf.c: Likewise.
10709 * lib/unistdio/u16-sprintf.c: Likewise.
10710 * lib/unistdio/u16-u16-asnprintf.c: Likewise.
10711 * lib/unistdio/u16-u16-asprintf.c: Likewise.
10712 * lib/unistdio/u16-u16-snprintf.c: Likewise.
10713 * lib/unistdio/u16-u16-sprintf.c: Likewise.
10714 * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
10715 * lib/unistdio/u16-u16-vasprintf.c: Likewise.
10716 * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
10717 * lib/unistdio/u16-u16-vsprintf.c: Likewise.
10718 * lib/unistdio/u16-vasnprintf.c: Likewise.
10719 * lib/unistdio/u16-vasprintf.c: Likewise.
10720 * lib/unistdio/u16-vsnprintf.c: Likewise.
10721 * lib/unistdio/u16-vsprintf.c: Likewise.
10722 * lib/unistdio/u32-asnprintf.c: Likewise.
10723 * lib/unistdio/u32-asprintf.c: Likewise.
10724 * lib/unistdio/u32-printf-parse.c: Likewise.
10725 * lib/unistdio/u32-snprintf.c: Likewise.
10726 * lib/unistdio/u32-sprintf.c: Likewise.
10727 * lib/unistdio/u32-u32-asnprintf.c: Likewise.
10728 * lib/unistdio/u32-u32-asprintf.c: Likewise.
10729 * lib/unistdio/u32-u32-snprintf.c: Likewise.
10730 * lib/unistdio/u32-u32-sprintf.c: Likewise.
10731 * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
10732 * lib/unistdio/u32-u32-vasprintf.c: Likewise.
10733 * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
10734 * lib/unistdio/u32-u32-vsprintf.c: Likewise.
10735 * lib/unistdio/u32-vasnprintf.c: Likewise.
10736 * lib/unistdio/u32-vasprintf.c: Likewise.
10737 * lib/unistdio/u32-vsnprintf.c: Likewise.
10738 * lib/unistdio/u32-vsprintf.c: Likewise.
10739 * lib/unistdio/u8-asnprintf.c: Likewise.
10740 * lib/unistdio/u8-asprintf.c: Likewise.
10741 * lib/unistdio/u8-printf-parse.c: Likewise.
10742 * lib/unistdio/u8-snprintf.c: Likewise.
10743 * lib/unistdio/u8-sprintf.c: Likewise.
10744 * lib/unistdio/u8-u8-asnprintf.c: Likewise.
10745 * lib/unistdio/u8-u8-asprintf.c: Likewise.
10746 * lib/unistdio/u8-u8-snprintf.c: Likewise.
10747 * lib/unistdio/u8-u8-sprintf.c: Likewise.
10748 * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
10749 * lib/unistdio/u8-u8-vasprintf.c: Likewise.
10750 * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
10751 * lib/unistdio/u8-u8-vsprintf.c: Likewise.
10752 * lib/unistdio/u8-vasnprintf.c: Likewise.
10753 * lib/unistdio/u8-vasprintf.c: Likewise.
10754 * lib/unistdio/u8-vsnprintf.c: Likewise.
10755 * lib/unistdio/u8-vsprintf.c: Likewise.
10756 * lib/unistdio/ulc-asnprintf.c: Likewise.
10757 * lib/unistdio/ulc-asprintf.c: Likewise.
10758 * lib/unistdio/ulc-printf-parse.c: Likewise.
10759 * lib/unistdio/ulc-snprintf.c: Likewise.
10760 * lib/unistdio/ulc-sprintf.c: Likewise.
10761 * lib/unistdio/ulc-vasnprintf.c: Likewise.
10762 * lib/unistdio/ulc-vasprintf.c: Likewise.
10763 * lib/unistdio/ulc-vsnprintf.c: Likewise.
10764 * lib/unistdio/ulc-vsprintf.c: Likewise.
10765 * lib/unistr.h: Likewise.
10766 * lib/unistr/u-cpy-alloc.h: Likewise.
10767 * lib/unistr/u-cpy.h: Likewise.
10768 * lib/unistr/u-endswith.h: Likewise.
10769 * lib/unistr/u-move.h: Likewise.
10770 * lib/unistr/u-set.h: Likewise.
10771 * lib/unistr/u-startswith.h: Likewise.
10772 * lib/unistr/u-stpcpy.h: Likewise.
10773 * lib/unistr/u-stpncpy.h: Likewise.
10774 * lib/unistr/u-strcat.h: Likewise.
10775 * lib/unistr/u-strcpy.h: Likewise.
10776 * lib/unistr/u-strcspn.h: Likewise.
10777 * lib/unistr/u-strdup.h: Likewise.
10778 * lib/unistr/u-strlen.h: Likewise.
10779 * lib/unistr/u-strncat.h: Likewise.
10780 * lib/unistr/u-strncpy.h: Likewise.
10781 * lib/unistr/u-strnlen.h: Likewise.
10782 * lib/unistr/u-strpbrk.h: Likewise.
10783 * lib/unistr/u-strspn.h: Likewise.
10784 * lib/unistr/u-strstr.h: Likewise.
10785 * lib/unistr/u-strtok.h: Likewise.
10786 * lib/unistr/u16-check.c: Likewise.
10787 * lib/unistr/u16-chr.c: Likewise.
10788 * lib/unistr/u16-cmp.c: Likewise.
10789 * lib/unistr/u16-cpy-alloc.c: Likewise.
10790 * lib/unistr/u16-cpy.c: Likewise.
10791 * lib/unistr/u16-endswith.c: Likewise.
10792 * lib/unistr/u16-mblen.c: Likewise.
10793 * lib/unistr/u16-mbsnlen.c: Likewise.
10794 * lib/unistr/u16-mbtouc-aux.c: Likewise.
10795 * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
10796 * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
10797 * lib/unistr/u16-mbtouc.c: Likewise.
10798 * lib/unistr/u16-mbtoucr.c: Likewise.
10799 * lib/unistr/u16-move.c: Likewise.
10800 * lib/unistr/u16-next.c: Likewise.
10801 * lib/unistr/u16-prev.c: Likewise.
10802 * lib/unistr/u16-set.c: Likewise.
10803 * lib/unistr/u16-startswith.c: Likewise.
10804 * lib/unistr/u16-stpcpy.c: Likewise.
10805 * lib/unistr/u16-stpncpy.c: Likewise.
10806 * lib/unistr/u16-strcat.c: Likewise.
10807 * lib/unistr/u16-strchr.c: Likewise.
10808 * lib/unistr/u16-strcmp.c: Likewise.
10809 * lib/unistr/u16-strcpy.c: Likewise.
10810 * lib/unistr/u16-strcspn.c: Likewise.
10811 * lib/unistr/u16-strdup.c: Likewise.
10812 * lib/unistr/u16-strlen.c: Likewise.
10813 * lib/unistr/u16-strmblen.c: Likewise.
10814 * lib/unistr/u16-strmbtouc.c: Likewise.
10815 * lib/unistr/u16-strncat.c: Likewise.
10816 * lib/unistr/u16-strncmp.c: Likewise.
10817 * lib/unistr/u16-strncpy.c: Likewise.
10818 * lib/unistr/u16-strnlen.c: Likewise.
10819 * lib/unistr/u16-strpbrk.c: Likewise.
10820 * lib/unistr/u16-strrchr.c: Likewise.
10821 * lib/unistr/u16-strspn.c: Likewise.
10822 * lib/unistr/u16-strstr.c: Likewise.
10823 * lib/unistr/u16-strtok.c: Likewise.
10824 * lib/unistr/u16-to-u32.c: Likewise.
10825 * lib/unistr/u16-to-u8.c: Likewise.
10826 * lib/unistr/u16-uctomb-aux.c: Likewise.
10827 * lib/unistr/u16-uctomb.c: Likewise.
10828 * lib/unistr/u32-check.c: Likewise.
10829 * lib/unistr/u32-chr.c: Likewise.
10830 * lib/unistr/u32-cmp.c: Likewise.
10831 * lib/unistr/u32-cpy-alloc.c: Likewise.
10832 * lib/unistr/u32-cpy.c: Likewise.
10833 * lib/unistr/u32-endswith.c: Likewise.
10834 * lib/unistr/u32-mblen.c: Likewise.
10835 * lib/unistr/u32-mbsnlen.c: Likewise.
10836 * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
10837 * lib/unistr/u32-mbtouc.c: Likewise.
10838 * lib/unistr/u32-mbtoucr.c: Likewise.
10839 * lib/unistr/u32-move.c: Likewise.
10840 * lib/unistr/u32-next.c: Likewise.
10841 * lib/unistr/u32-prev.c: Likewise.
10842 * lib/unistr/u32-set.c: Likewise.
10843 * lib/unistr/u32-startswith.c: Likewise.
10844 * lib/unistr/u32-stpcpy.c: Likewise.
10845 * lib/unistr/u32-stpncpy.c: Likewise.
10846 * lib/unistr/u32-strcat.c: Likewise.
10847 * lib/unistr/u32-strchr.c: Likewise.
10848 * lib/unistr/u32-strcmp.c: Likewise.
10849 * lib/unistr/u32-strcpy.c: Likewise.
10850 * lib/unistr/u32-strcspn.c: Likewise.
10851 * lib/unistr/u32-strdup.c: Likewise.
10852 * lib/unistr/u32-strlen.c: Likewise.
10853 * lib/unistr/u32-strmblen.c: Likewise.
10854 * lib/unistr/u32-strmbtouc.c: Likewise.
10855 * lib/unistr/u32-strncat.c: Likewise.
10856 * lib/unistr/u32-strncmp.c: Likewise.
10857 * lib/unistr/u32-strncpy.c: Likewise.
10858 * lib/unistr/u32-strnlen.c: Likewise.
10859 * lib/unistr/u32-strpbrk.c: Likewise.
10860 * lib/unistr/u32-strrchr.c: Likewise.
10861 * lib/unistr/u32-strspn.c: Likewise.
10862 * lib/unistr/u32-strstr.c: Likewise.
10863 * lib/unistr/u32-strtok.c: Likewise.
10864 * lib/unistr/u32-to-u16.c: Likewise.
10865 * lib/unistr/u32-to-u8.c: Likewise.
10866 * lib/unistr/u32-uctomb.c: Likewise.
10867 * lib/unistr/u8-check.c: Likewise.
10868 * lib/unistr/u8-chr.c: Likewise.
10869 * lib/unistr/u8-cmp.c: Likewise.
10870 * lib/unistr/u8-cpy-alloc.c: Likewise.
10871 * lib/unistr/u8-cpy.c: Likewise.
10872 * lib/unistr/u8-endswith.c: Likewise.
10873 * lib/unistr/u8-mblen.c: Likewise.
10874 * lib/unistr/u8-mbsnlen.c: Likewise.
10875 * lib/unistr/u8-mbtouc-aux.c: Likewise.
10876 * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
10877 * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
10878 * lib/unistr/u8-mbtouc.c: Likewise.
10879 * lib/unistr/u8-mbtoucr.c: Likewise.
10880 * lib/unistr/u8-move.c: Likewise.
10881 * lib/unistr/u8-next.c: Likewise.
10882 * lib/unistr/u8-prev.c: Likewise.
10883 * lib/unistr/u8-set.c: Likewise.
10884 * lib/unistr/u8-startswith.c: Likewise.
10885 * lib/unistr/u8-stpcpy.c: Likewise.
10886 * lib/unistr/u8-stpncpy.c: Likewise.
10887 * lib/unistr/u8-strcat.c: Likewise.
10888 * lib/unistr/u8-strchr.c: Likewise.
10889 * lib/unistr/u8-strcmp.c: Likewise.
10890 * lib/unistr/u8-strcpy.c: Likewise.
10891 * lib/unistr/u8-strcspn.c: Likewise.
10892 * lib/unistr/u8-strdup.c: Likewise.
10893 * lib/unistr/u8-strlen.c: Likewise.
10894 * lib/unistr/u8-strmblen.c: Likewise.
10895 * lib/unistr/u8-strmbtouc.c: Likewise.
10896 * lib/unistr/u8-strncat.c: Likewise.
10897 * lib/unistr/u8-strncmp.c: Likewise.
10898 * lib/unistr/u8-strncpy.c: Likewise.
10899 * lib/unistr/u8-strnlen.c: Likewise.
10900 * lib/unistr/u8-strpbrk.c: Likewise.
10901 * lib/unistr/u8-strrchr.c: Likewise.
10902 * lib/unistr/u8-strspn.c: Likewise.
10903 * lib/unistr/u8-strstr.c: Likewise.
10904 * lib/unistr/u8-strtok.c: Likewise.
10905 * lib/unistr/u8-to-u16.c: Likewise.
10906 * lib/unistr/u8-to-u32.c: Likewise.
10907 * lib/unistr/u8-uctomb-aux.c: Likewise.
10908 * lib/unistr/u8-uctomb.c: Likewise.
10909 * lib/unitypes.h: Likewise.
10910 * lib/uniwidth.h: Likewise.
10911 * lib/uniwidth/cjk.h: Likewise.
10912 * lib/uniwidth/u16-strwidth.c: Likewise.
10913 * lib/uniwidth/u16-width.c: Likewise.
10914 * lib/uniwidth/u32-strwidth.c: Likewise.
10915 * lib/uniwidth/u32-width.c: Likewise.
10916 * lib/uniwidth/u8-strwidth.c: Likewise.
10917 * lib/uniwidth/u8-width.c: Likewise.
10918 * lib/uniwidth/width.c: Likewise.
10920 2007-10-07 Bruno Haible <bruno@clisp.org>
10922 * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
10923 The file is still under LGPL (see modules/inttypes).
10925 2007-10-06 Bruno Haible <bruno@clisp.org>
10927 * modules/trunc (Dependencies): Add 'extensions'.
10928 * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
10929 Reported by Ben Pfaff <blp@gnu.org>.
10931 2007-10-06 Bruno Haible <bruno@clisp.org>
10933 * modules/freopen-tests: New file.
10934 * tests/test-freopen.c: New file.
10936 * modules/fopen-tests: New file.
10937 * tests/test-fopen.c: New file.
10939 * modules/fopen: New file.
10940 * lib/fopen.c: New file.
10941 * m4/fopen.m4: New file.
10942 * modules/freopen: New file.
10943 * lib/freopen.c: New file.
10944 * m4/freopen.m4: New file.
10945 * lib/stdio.in.h (fopen, freopen): New declarations.
10946 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
10947 GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
10948 * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
10949 GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
10950 * doc/functions/fopen.texi: Mention the 'fopen' module.
10951 * doc/functions/freopen.texi: Mention the 'freopen' module.
10953 2007-10-06 Bruno Haible <bruno@clisp.org>
10955 * modules/open-tests: New file.
10956 * tests/test-open.c: New file.
10958 * modules/open: New file.
10959 * lib/open.c: New file.
10960 * m4/open.m4: New file.
10961 * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
10963 * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
10964 * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
10966 (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
10967 * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
10969 * doc/functions/open.texi: Mention the 'open' module.
10971 2007-10-04 Bruno Haible <bruno@clisp.org>
10973 * modules/ceill-tests: New file.
10974 * tests/test-ceill.c: New file.
10976 * modules/ceill: New file.
10977 * lib/ceill.c: Replace entire file.
10978 * m4/ceill.m4: New file.
10979 * lib/math.in.h (ceill): Replace declaration.
10980 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
10981 * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
10982 * doc/functions/ceill.texi: Mention the 'ceill' module.
10983 * modules/mathl (Files): Remove lib/ceill.c.
10984 (Depends-on): Add ceill.
10986 2007-10-04 Bruno Haible <bruno@clisp.org>
10988 * modules/ceilf-tests: New file.
10989 * tests/test-ceilf.c: New file.
10991 * modules/ceilf: New file.
10992 * lib/ceil.c: New file.
10993 * lib/ceilf.c: New file.
10994 * m4/ceilf.m4: New file.
10995 * lib/math.in.h (ceilf): New declaration.
10996 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
10998 * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
11000 * doc/functions/ceilf.texi: Mention the 'ceilf' module.
11002 2007-10-04 Bruno Haible <bruno@clisp.org>
11004 * modules/floorl-tests: New file.
11005 * tests/test-floorl.c: New file.
11007 * modules/floorl: New file.
11008 * lib/floorl.c: Replace entire file.
11009 * m4/floorl.m4: New file.
11010 * lib/math.in.h (floorl): Replace declaration.
11011 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
11012 * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
11013 * doc/functions/floorl.texi: Mention the 'floorl' module.
11014 * modules/mathl (Files): Remove lib/floorl.c.
11015 (Depends-on): Add floorl.
11017 2007-10-04 Bruno Haible <bruno@clisp.org>
11019 * modules/floorf-tests: New file.
11020 * tests/test-floorf.c: New file.
11022 * modules/floorf: New file.
11023 * lib/floor.c: New file.
11024 * lib/floorf.c: New file.
11025 * m4/floorf.m4: New file.
11026 * lib/math.in.h (floorf): New declaration.
11027 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
11029 * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
11031 * doc/functions/floorf.texi: Mention the 'floorf' module.
11033 2007-10-04 Benoit Sigoure <tsuna@lrde.epita.fr>
11034 Bruno Haible <bruno@clisp.org>
11036 Advertise for the Git server instead of the CVS server.
11037 * doc/gnulib-intro.texi (Steady Development): Mention the Git
11038 repository instead of the CVS one.
11039 * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
11040 about all VCS systems generically.
11041 * doc/gnulib.texi (Introduction): Capitalize `Git'.
11043 2007-10-04 Bruno Haible <bruno@clisp.org>
11045 * doc/gnulib.texi (Function Substitutes): Explain what an absent module
11047 Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
11049 2007-10-04 Bruno Haible <bruno@clisp.org>
11051 * modules/truncl-tests: New file.
11052 * tests/test-truncl.c: New file.
11054 * modules/truncl: New file.
11055 * lib/truncl.c: New file.
11056 * m4/truncl.m4: New file.
11057 * lib/math.in.h (truncl): New declaration.
11058 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
11060 * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
11062 * doc/functions/truncl.texi: Mention the 'truncl' module.
11064 2007-10-04 Bruno Haible <bruno@clisp.org>
11066 * modules/truncf-tests: New file.
11067 * tests/test-truncf.c: New file.
11069 * modules/truncf: New file.
11070 * lib/trunc.c: Make paramerizable through USE_* macros.
11071 * lib/truncf.c: New file.
11072 * m4/truncf.m4: New file.
11073 * lib/math.in.h (truncf): New declaration.
11074 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
11076 * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
11078 * doc/functions/truncf.texi: Mention the 'truncf' module.
11080 2007-10-03 Bruno Haible <bruno@clisp.org>
11082 * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
11083 augmentation also for tests modules.
11084 * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
11085 * modules/atexit-tests (Makefile.am): Likewise.
11086 * modules/binary-io-tests (Makefile.am): Likewise.
11087 * modules/c-strcase-tests (Makefile.am): Likewise.
11088 * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
11089 * modules/canonicalize-tests (Makefile.am): Likewise.
11090 * modules/closein-tests (Makefile.am): Likewise.
11091 * modules/fprintf-posix-tests (Makefile.am): Likewise.
11092 * modules/freadahead-tests (Makefile.am): Likewise.
11093 * modules/fseek-tests (Makefile.am): Likewise.
11094 * modules/fseeko-tests (Makefile.am): Likewise.
11095 * modules/ftell-tests (Makefile.am): Likewise.
11096 * modules/ftello-tests (Makefile.am): Likewise.
11097 * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
11098 * modules/isnanl-tests (Makefile.am): Likewise.
11099 * modules/lseek-tests (Makefile.am): Likewise.
11100 * modules/mbscasecmp-tests (Makefile.am): Likewise.
11101 * modules/mbscasestr-tests (Makefile.am): Likewise.
11102 * modules/mbschr-tests (Makefile.am): Likewise.
11103 * modules/mbscspn-tests (Makefile.am): Likewise.
11104 * modules/mbsncasecmp-tests (Makefile.am): Likewise.
11105 * modules/mbspbrk-tests (Makefile.am): Likewise.
11106 * modules/mbspcasecmp-tests (Makefile.am): Likewise.
11107 * modules/mbsrchr-tests (Makefile.am): Likewise.
11108 * modules/mbsspn-tests (Makefile.am): Likewise.
11109 * modules/mbsstr-tests (Makefile.am): Likewise.
11110 * modules/printf-posix-tests (Makefile.am): Likewise.
11111 * modules/snprintf-posix-tests (Makefile.am): Likewise.
11112 * modules/sprintf-posix-tests (Makefile.am): Likewise.
11113 * modules/tsearch-tests (Makefile.am): Likewise.
11114 * modules/uniname/uniname-tests (Makefile.am): Likewise.
11115 * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
11116 * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
11117 * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
11118 * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
11119 * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
11120 * modules/vfprintf-posix-tests (Makefile.am): Likewise.
11121 * modules/vprintf-posix-tests (Makefile.am): Likewise.
11122 * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
11123 * modules/vsprintf-posix-tests (Makefile.am): Likewise.
11124 * modules/xstrtoimax-tests (Makefile.am): Likewise.
11125 * modules/xstrtol-tests (Makefile.am): Likewise.
11126 * modules/xstrtoumax-tests (Makefile.am): Likewise.
11127 * modules/yesno-tests (Makefile.am): Likewise.
11129 2007-10-03 Bruno Haible <bruno@clisp.org>
11131 * modules/trunc-tests: New file.
11132 * tests/test-trunc.c: New file.
11134 * modules/trunc: New file.
11135 * lib/trunc.c: New file.
11136 * m4/trunc.m4: New file.
11137 * lib/math.in.h (trunc): New declaration.
11138 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
11140 * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
11142 * doc/functions/trunc.texi: Mention the 'trunc' module.
11144 2007-10-03 Bruno Haible <bruno@clisp.org>
11146 * tests/test-fpending.c: New file, mostly copied
11147 from coreutils/lib/t-fpending.c.
11148 * modules/fpending-tests: New file.
11150 2007-10-03 Bruno Haible <bruno@clisp.org>
11152 Port the stdio extensions to QNX (untested).
11153 * lib/fseterr.c (fseterr): Add support for QNX.
11154 * lib/fbufmode.c (fbufmode): Likewise.
11155 * lib/freadable.c (freadable): Likewise.
11156 * lib/fwritable.c (fwritable): Likewise.
11157 * lib/freading.c (freading): Likewise.
11158 * lib/fwriting.c (fwriting): Likewise.
11159 * lib/freadahead.c (freadahed): Likewise.
11160 * lib/fpurge.c (fpurge): Likewise.
11161 * lib/fseeko.c (rpl_fseeko): Likewise.
11163 2007-10-03 Bruno Haible <bruno@clisp.org>
11164 Jim Meyering <jim@meyering.net>
11165 Eric Blake <ebb9@byu.net>
11167 * doc/relocatable.texi: Use @command instead of @program.
11169 2007-10-02 Jim Meyering <jim@meyering.net>
11171 Perform one more "_.h" -> ".in.h" substitution.
11172 * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
11173 instead of unistd_.h here, too.
11175 2007-10-01 Bruno Haible <bruno@clisp.org>
11177 * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
11178 Needed for the alloca-opt module.
11180 2007-09-30 Bruno Haible <bruno@clisp.org>
11182 * lib/alloca.in.h: Renamed from lib/alloca_.h.
11183 * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
11185 * lib/argz.in.h: Renamed from lib/argz_.h.
11186 * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
11187 * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
11188 * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
11190 * lib/dirent.in.h: Renamed from lib/dirent_.h.
11191 * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
11193 * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
11194 * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
11196 * lib/float.in.h: Renamed from lib/float_.h.
11197 * modules/float (Files, Makefile.am): Use float.in.h instead of
11199 * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
11200 * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
11202 * lib/getopt.in.h: Renamed from lib/getopt_.h.
11203 * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
11205 * lib/glob.in.h: Renamed from lib/glob_.h.
11206 * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
11207 * lib/iconv.in.h: Renamed from lib/iconv_.h.
11208 * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
11210 * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
11211 * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
11213 * lib/locale.in.h: Renamed from lib/locale_.h.
11214 * modules/locale (Files, Makefile.am): Use locale.in.h instead of
11216 * lib/math.in.h: Renamed from lib/math_.h.
11217 * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
11218 * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
11219 * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
11220 of netinet_in_.h. Add dependency.
11221 * lib/poll.in.h: Renamed from lib/poll_.h.
11222 * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
11223 * lib/search.in.h: Renamed from lib/search_.h.
11224 * modules/search (Files, Makefile.am): Use search.in.h instead of
11226 * lib/signal.in.h: Renamed from lib/signal_.h.
11227 * modules/signal (Files, Makefile.am): Use signal.in.h instead of
11229 * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
11230 * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
11232 * lib/stdint.in.h: Renamed from lib/stdint_.h.
11233 * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
11235 * lib/stdio.in.h: Renamed from lib/stdio_.h.
11236 * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
11238 * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
11239 * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
11241 * lib/string.in.h: Renamed from lib/string_.h.
11242 * modules/string (Files, Makefile.am): Use string.in.h instead of
11244 * doc/gnulib-tool.texi (Initial import): Update.
11245 * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
11246 * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
11247 of sys_select_.h. Add dependency.
11248 * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
11249 * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
11251 * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
11252 * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
11254 * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
11255 * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
11257 * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
11258 * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
11260 * lib/time.in.h: Renamed from lib/time_.h.
11261 * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
11262 * lib/unistd.in.h: Renamed from lib/unistd_.h.
11263 * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
11265 * lib/wchar.in.h: Renamed from lib/wchar_.h.
11266 * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
11268 * lib/wctype.in.h: Renamed from lib/wctype_.h.
11269 * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
11271 * build-aux/bootstrap (slurp): Update.
11272 * lib/.cppi-disable: Update.
11274 2007-09-30 Bruno Haible <bruno@clisp.org>
11276 * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
11279 2007-09-30 Bruno Haible <bruno@clisp.org>
11281 * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
11283 2007-09-29 Bruno Haible <bruno@clisp.org>
11285 * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
11287 2007-09-29 Bruno Haible <bruno@clisp.org>
11289 * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
11290 * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
11291 * build-aux/install-reloc: Compile also areadlink.c.
11292 * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
11294 2007-09-29 Bruno Haible <bruno@clisp.org>
11296 * gnulib-tool (func_emit_initmacro_done): Indentation.
11298 2007-09-29 Bruno Haible <bruno@clisp.org>
11300 * README: Add CVS checkout update instructions.
11301 Info from Bob Proulx <bob@proulx.com>.
11303 2007-09-28 Eric Blake <ebb9@byu.net>
11305 Provide move-if-change.
11306 * build-aux/move-if-change: New file, based on best practice
11307 rather than any canonical upstream location.
11309 2007-09-28 Jim Meyering <jim@meyering.net>
11311 Fix canonicalize loop-detection corner case.
11312 Do not attempt to stat the symlink values stored via seen_triple.
11313 Without this, coreutils' tests/misc/readlink-fp-loop test would fail
11314 on linux-2.6.18, (but not 2.6.22).
11315 * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
11316 triple_compare. The former compares dev,ino,filename, while the latter
11317 would actually stat dirname(filename) when dev and ino were equal.
11318 * lib/hash-triple.c: Install <string.h>.
11320 (triple_compare_ino_str): New function.
11321 * lib/hash-triple.h (triple_compare_ino_str): Declare it.
11323 2007-09-28 Eric Blake <ebb9@byu.net>
11325 Enforce that AC_REPLACE_FUNCS files exist.
11326 * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
11327 override check for typos.
11329 Fix test-closein on Solaris 10.
11330 * tests/test-closein.c (main): Don't assume stdin can be inherited
11331 closed on all systems.
11332 * tests/test-closein.sh: Likewise.
11333 Reported by Piotr Tarnowski.
11335 2007-09-28 Jim Meyering <jim@meyering.net>
11337 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
11339 2007-09-27 Jim Meyering <jim@meyering.net>
11341 canonicalize: Avoid a false-positive cycle failure.
11342 * modules/canonicalize (Depends-on): Add file-set and hash-triple.
11343 Sort. Remove cycle-check.
11344 * lib/canonicalize.c: Include file-set.h and hash-triple.h,
11346 (seen_triple): New function.
11347 (canonicalize_filename_mode): Use it instead of cycle-check.
11348 * tests/test-canonicalize.c: Add a test for this bug.
11349 * tests/test-canonicalize.sh: Set up and run the test.
11351 New module, file-set, from coreutils.
11352 * modules/file-set: Define it.
11353 * lib/file-set.c, lib/file-set.h: Implement.
11355 New module, hash-triple, from coreutils.
11356 * modules/hash-triple: Define it.
11357 * lib/hash-triple.c, lib/hash-triple.h: Implement.
11359 2007-09-25 Eric Blake <ebb9@byu.net>
11361 Fix strerror on Interix.
11362 * lib/string_.h (strerror): Declare replacement.
11363 * doc/functions/strerror.texi (strerror): Document the Interix
11365 * modules/string (Makefile.am): Support new hooks.
11366 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
11367 * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
11368 gl_FUNC_STRERROR_SEPARATE.
11369 (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
11370 * lib/strerror.c (rpl_strerror): Provide replacement.
11371 * modules/strerror (Depends-on): Add string.
11372 (configure.ac): Detect use of module.
11373 * tests/test-strerror.c: New file.
11374 * modules/strerror-tests: New test module.
11375 * modules/argp (Depends-on): Add strerror.
11376 * modules/error (Depends-on): Likewise.
11377 Reported by Martin Koeppe.
11379 2007-09-24 Bruno Haible <bruno@clisp.org>
11381 * README: Update git instructions.
11383 2007-09-24 Eric Blake <ebb9@byu.net>
11385 Revert fpending breakage from 2007-09-08.
11386 * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
11389 2007-09-24 Jim Meyering <jim@meyering.net>
11391 filenamecat.c: Add a test.
11392 * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
11393 showing how the function works when DIR is the empty string.
11395 2007-09-21 Simon Josefsson <simon@josefsson.org>
11397 * tests/test-canonicalize.sh: Turn on executable bit.
11399 2007-09-19 Eric Blake <ebb9@byu.net>
11401 * README: Update CVS instructions.
11403 2007-09-18 Bruno Haible <bruno@clisp.org>
11405 * modules/areadlink: New file.
11406 * lib/areadlink.h (areadlink): New declaration.
11407 * lib/areadlink.c: New file, based on lib/xreadlink.c.
11409 2007-09-17 Jim Meyering <jim@meyering.net>
11411 * lib/savewd.c (ESTALE) [!defined]: Define.
11412 Reported to be required on Interix by Martin Koeppe.
11414 2007-09-17 Bruno Haible <bruno@clisp.org>
11416 * gnulib-tool (func_version): Use $version.
11418 2007-09-16 Bruno Haible <bruno@clisp.org>
11420 * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
11421 gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
11422 Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
11423 Reported by Greg Schafer <gschafer@zip.com.au>.
11425 2007-09-15 Bruno Haible <bruno@clisp.org>
11427 * gnulib-tool (sed): Try a little harder to make bash understand the
11429 Reported by Bruce Korb <bruce.korb@gmail.com>.
11431 2007-09-13 Eric Blake <ebb9@byu.net>
11433 * ChangeLog: Remove conflict markers.
11435 2007-09-13 Simon Josefsson <simon@josefsson.org>
11437 * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
11438 Reported by Bruno Haible <bruno@clisp.org>.
11440 2007-09-12 Bruno Haible <bruno@clisp.org>
11442 * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
11443 (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
11446 2007-09-12 Eric Blake <ebb9@byu.net>
11448 Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
11449 * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
11450 Autoconf definition.
11451 * modules/euidaccess (Depends-on): Add extensions, for
11452 AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
11453 * modules/fnmatch (Depends-on): Likewise.
11454 * modules/getaddrinfo (Depends-on): Likewise.
11455 * modules/getdelim (Depends-on): Likewise.
11456 * modules/getline (Depends-on): Likewise.
11457 * modules/getsubopt (Depends-on): Likewise.
11458 * modules/gettext (Depends-on): Likewise.
11459 * modules/group-member (Depends-on): Likewise.
11460 * modules/mbchar (Depends-on): Likewise.
11461 * modules/memmem (Depends-on): Likewise.
11462 * modules/mempcpy (Depends-on): Likewise.
11463 * modules/memrchr (Depends-on): Likewise.
11464 * modules/pagealign_alloc (Depends-on): Likewise.
11465 * modules/readutmp (Depends-on): Likewise.
11466 * modules/stpcpy (Depends-on): Likewise.
11467 * modules/stpncpy (Depends-on): Likewise.
11468 * modules/strchrnul (Depends-on): Likewise.
11469 * modules/strndup (Depends-on): Likewise.
11470 * modules/strsep (Depends-on): Likewise.
11471 * modules/strverscmp (Depends-on): Likewise.
11472 * modules/vasprintf (Depends-on): Likewise.
11473 * modules/wcwidth (Depends-on): Likewise.
11474 * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
11475 obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
11476 * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
11477 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
11478 * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
11479 * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
11480 * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
11481 * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
11482 * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
11483 * m4/mbchar.m4 (gl_MBCHAR): Likewise.
11484 * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
11485 * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
11486 * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
11487 * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
11488 * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
11489 * m4/readutmp.m4 (gl_READUTMP): Likewise.
11490 * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
11491 * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
11492 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
11493 * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
11494 * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
11495 * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
11496 * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
11497 * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
11498 * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
11499 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
11500 * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
11501 so that lock.m4 can be used in gettext without extensions module.
11503 2007-09-11 Bruno Haible <bruno@clisp.org>
11505 * m4/isc-posix.m4: Remove file.
11506 Suggested by Eric Blake.
11508 2007-09-11 Eric Blake <ebb9@byu.net>
11510 * ChangeLog: Restore lines accidentally truncated 2007-04-06.
11512 2007-09-10 Bruno Haible <bruno@clisp.org>
11514 * posix-modules: Fix typo in error message.
11515 Reported by Matt <mkraai@beckman.com>.
11517 2007-09-09 Bruno Haible <bruno@clisp.org>
11519 * doc/functions/getdelim.texi: Update list of platforms lacking the
11521 * doc/functions/getline.texi: Likewise.
11523 2007-09-09 Jim Meyering <jim@meyering.net>
11525 * lib/hash.c (hash_initialize): Detect calloc failure.
11526 Reported by Bruno Haible.
11528 2007-09-09 Bruno Haible <bruno@clisp.org>
11530 * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
11531 malloc or realloc fails.
11533 2007-09-09 Bruno Haible <bruno@clisp.org>
11535 * modules/getcwd (Depends-on): Add malloc-posix.
11536 * modules/glob (Depends-on): Likewise.
11537 * modules/putenv (Depends-on): Likewise.
11538 * modules/strdup (Depends-on): Likewise.
11539 * modules/getdelim (Depends-on): Add realloc-posix.
11540 * modules/read-file (Depends-on): Likewise.
11542 2007-09-09 Bruno Haible <bruno@clisp.org>
11544 * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
11545 (gl_FUNC_MALLOC_POSIX): Require it.
11546 * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
11547 * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
11548 * modules/realloc (Files): Add m4/malloc.m4.
11549 * modules/calloc (Files): Likewise.
11551 2007-09-09 Bruno Haible <bruno@clisp.org>
11553 * modules/malloc-posix: New file.
11554 * modules/malloc (Depends-on): Add malloc-posix.
11555 * lib/malloc.c: Include errno.h.
11556 (rpl_malloc): Merge the requirements of a glibc-compatible malloc
11557 and a POSIX-compatible malloc into a single function. Set ENOMEM
11558 when returning NULL.
11559 * m4/malloc.m4: New file.
11560 * doc/functions/malloc.texi: Mention the malloc-posix module.
11561 * lib/stdlib_.h (malloc): New declaration.
11562 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
11563 GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
11564 * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
11565 and HAVE_MALLOC_POSIX.
11567 2007-09-09 Bruno Haible <bruno@clisp.org>
11569 * modules/realloc-posix: New file.
11570 * modules/realloc (Depends-on): Add realloc-posix.
11571 * lib/realloc.c: Include errno.h.
11572 (rpl_realloc): Merge the requirements of a glibc-compatible realloc
11573 and a POSIX-compatible realloc into a single function. Set ENOMEM
11574 when returning NULL.
11575 * m4/realloc.m4: New file.
11576 * doc/functions/realloc.texi: Mention the realloc-posix module.
11577 * lib/stdlib_.h (realloc): New declaration.
11578 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
11579 GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
11580 * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
11581 and HAVE_REALLOC_POSIX.
11583 2007-09-09 Bruno Haible <bruno@clisp.org>
11585 * modules/calloc-posix: New file.
11586 * modules/calloc (Depends-on): Add calloc-posix.
11587 * lib/calloc.c: Include errno.h.
11588 (rpl_calloc): Merge the requirements of a glibc-compatible calloc
11589 and a POSIX-compatible calloc into a single function. Set ENOMEM
11590 when returning NULL.
11591 * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
11592 * doc/functions/calloc.texi: Mention the calloc-posix module.
11593 * lib/stdlib_.h (calloc): New declaration.
11594 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
11595 GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
11596 * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
11597 and HAVE_CALLOC_POSIX.
11599 2007-09-09 Bruno Haible <bruno@clisp.org>
11601 Allow for modules to show an arbitrary notice.
11602 * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
11603 * gnulib-tool: New option --extract-notice.
11604 (func_usage): Document it.
11605 (sed_extract_prog): Update.
11606 (func_get_notice): New function.
11607 (func_modules_notice): New function.
11608 (func_import, func_create_testdir): Invoke it.
11609 Suggested by Jim Meyering.
11611 2007-09-09 Bruno Haible <bruno@clisp.org>
11613 * gnulib-tool: New options --verbose, --quiet.
11614 (func_usage): Document them.
11615 (verbose): New variable.
11616 (func_execute_command): New function.
11617 (func_import): Don't show the module list and the file list if
11619 (func_create_testdir): Likewise. Use func_execute_command.
11620 (func_create_megatestdir): Use func_execute_command.
11622 2007-09-08 Bruno Haible <bruno@clisp.org>
11624 * gnulib-tool (func_import): Prefer rsync over wget when available,
11625 for fetching the PO files.
11627 2007-09-08 Bruno Haible <bruno@clisp.org>
11629 * posix-modules: New file. Portions copied from gnulib-tool.
11630 * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
11632 2007-09-08 Jim Meyering <jim@meyering.net>
11634 Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
11635 * lib/fpending.h: Rename from __fpending.h.
11636 * lib/fpending.c: Rename from __fpending.c.
11637 Include "fpending.h", not "__fpending.h".
11638 * lib/__fpending.h, lib/__fpending.c: Remove files.
11639 * modules/fpending (Files): Reflect new file names.
11640 * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
11642 2007-09-08 Bruno Haible <bruno@clisp.org>
11644 * m4/inttypes-h.m4: Remove stub file.
11646 2007-09-07 Simon Josefsson <simon@josefsson.org>
11648 * doc/headers/stdint.texi: Discuss #include_next issue.
11650 2007-09-06 Paul Eggert <eggert@cs.ucla.edu>
11652 * build-aux/bootstrap: Remove obsolete comment about wget --help.
11654 2007-09-06 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
11656 * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
11659 2007-09-03 Jim Meyering <jim@meyering.net>
11661 New module: git-version-gen.
11662 * modules/git-version-gen: New file.
11664 Import changes from coreutils for bootstrap script.
11666 * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
11668 bootstrap: uses rsync to download the .po files
11669 * build-aux/bootstrap (po_download_command_format): New global.
11670 (download_po_files): Use rsync.
11671 (update_po_files): Don't remove .po files after download,
11672 so future rsync runs can take advantage of the copies.
11674 * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
11676 Solve the unnecessary-.po-file-regeneration problem once and for all.
11677 * build-aux/bootstrap (download_po_files): New function, renamed from
11678 get_translations. Now, downloads, but doesn't update LINGUAS.
11679 (update_po_files): New function.
11681 bootstrap: Ignore more.
11682 * build-aux/bootstrap (symlink_to_dir): Add a directory name like
11683 uniwidth to e.g., lib/.gitignore.
11684 (slurp): Handle the sys_stat_.h -> sys mapping, too.
11686 * build-aux/bootstrap: New setting: vc_ignore.
11687 (insert_sorted_if_absent): Create $file if absent.
11688 Adapt to new, possibly empty, list: $vc_ignore.
11690 bootstrap: generate more ignorable names
11691 * build-aux/bootstrap (slurp): When generating ignorable names,
11692 also map .sin to .sed, .gperf to .c, and .y to .c.
11694 2007-09-03 Jim Meyering <jim@meyering.net>
11696 * build-aux/git-version-gen: New file, from coreutils. For details, see
11697 http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
11699 2007-09-02 Bruno Haible <bruno@clisp.org>
11701 Fix mis-recognition of 'mcs' on QNX 6.
11702 * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
11703 output contains the string "Mono".
11704 * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
11705 Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
11707 2007-09-01 Bruno Haible <bruno@clisp.org>
11709 Fix collision between uniwidth/* and linebreak modules.
11710 * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
11711 u32_width): Remove declarations.
11712 * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
11713 (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
11714 streq3, streq2, streq1, streq0): Remove functions.
11715 (STREQ): Remove macro.
11716 (is_cjk_encoding): Remove function.
11717 (nonspacing_table_data, nonspacing_table_ind): Remove constants.
11718 (uc_width, u8_width, u16_width, u32_width): Remove functions.
11719 * modules/linebreak (Depends-on): Add streq, uniwidth/width.
11720 * NEWS: Document the change.
11722 2007-09-01 Bruno Haible <bruno@clisp.org>
11724 * lib/streq.h: Add double-inclusion guard.
11726 2007-09-01 Karl Berry <karl@gnu.org>
11728 * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
11730 2007-08-28 Jim Meyering <jim@meyering.net>
11732 Rename mreadlink_with_size to areadlink_with_size.
11733 * NEWS: Document the change.
11734 * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
11735 * lib/areadlink-with-size.c (areadlink_with_size): ...this.
11736 * lib/mreadlink.h: Rename this to...
11737 * lib/areadlink.h: ...this.
11738 * modules/mreadlink-with-size: Rename this to...
11739 * modules/areadlink-with-size: ...this.
11740 * lib/canonicalize.c: Reflect the renaming.
11741 * modules/canonicalize: Likewise.
11743 2007-08-26 Bruno Haible <bruno@clisp.org>
11745 * gnulib-tool (func_import): When deciding which files to remove,
11746 consider also dangling symbolic links.
11747 Reported by Eric Blake.
11749 2007-08-26 Bruno Haible <bruno@clisp.org>
11751 * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
11753 2007-08-23 Simon Josefsson <simon@josefsson.org>
11755 * lib/readline.c: Don't include getline.h, the prototype is now
11758 2007-08-23 Jim Meyering <jim@meyering.net>
11761 * lib/getdelim.c (getdelim): Don't bother to save/restore errno
11762 around the funlockfile call, since funlockfile never sets errno.
11763 Don't set errno upon failed realloc.
11765 2007-08-22 Eric Blake <ebb9@byu.net>
11768 * lib/getdelim.c (getdelim): Revert regression that required *n to
11769 be 0 when *lineptr is NULL. Preserve errno across funlockfile.
11770 * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
11771 getdelim, rather than whether implementation is missing.
11772 * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
11773 * lib/stdio_.h (getline): Also declare if replacement is
11775 * doc/functions/getdelim.texi: New file.
11776 * doc/functions/getline.texi: Likewise.
11777 * doc/gnulib.texi (Function Substitutes): Add new files.
11778 Reported by Bruno Haible.
11780 2007-08-22 Ludovic Courtès <ludo@gnu.org>
11782 * users.txt: Add Guile.
11784 2007-08-22 Eric Blake <ebb9@byu.net>
11786 * tests/test-getdelim.c (main): Use remove, not unlink.
11787 * tests/test-getline.c (main): Likewise.
11789 Move getline and getdelim into stdio.h, per POSIX 200x.
11790 * modules/getline (Files): Remove getline.h.
11791 (Depends-on): Add stdio.
11792 (configure.ac): Add module indicator.
11793 * modules/getdelim (Files): Remove getdelim.h.
11794 (Depends-on): Add stdio.
11795 (configure.ac): Add module indicator.
11796 * modules/stdio (Makefile.am): Work with new indicators.
11797 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
11798 * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
11799 * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
11800 * lib/getdelim.h: Delete.
11801 * lib/getline.h: Delete.
11802 * lib/stdio_.h (getdelim, getline): Declare.
11803 * modules/getdelim-tests: New module.
11804 * modules/getline-tests: Likewise.
11805 * tests/test-getdelim.c: New file.
11806 * tests/test-getline.c: Likewise.
11807 * NEWS: Document the change.
11808 * lib/getline.c: Update choice of header.
11809 * lib/csharpcomp.c: Likewise.
11810 * lib/getpass.c: Likewise.
11811 * lib/javacomp.c: Likewise.
11812 * lib/javaversion.c: Likewise.
11813 * lib/yesno.c: Likewise.
11814 * lib/getdelim.c: Likewise.
11815 (getdelim): Set errno on failure, and avoid memory leak.
11817 2007-08-19 Bruno Haible <bruno@clisp.org>
11819 * modules/closein (Depends-on): Add freadahead.
11820 * lib/closein.c: Include freadahead.h.
11821 (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
11824 2007-08-19 Bruno Haible <bruno@clisp.org>
11826 * modules/freadahead-tests: New file.
11827 * tests/test-freadahead.sh: New file.
11828 * tests/test-freadahead.c: New file.
11830 * modules/freadahead: New file.
11831 * lib/freadahead.h: New file.
11832 * lib/freadahead.c: New file.
11833 * MODULES.html.sh (File stream based Input/Output): Add freadahead,
11834 fbufmode, fpurge, freadable, fwritable.
11836 2007-08-19 Eric Blake <ebb9@byu.net>
11838 Test yesno in combination with closein.
11839 * lib/yesno.c (yesno): Document use of stdin.
11840 * modules/yesno-tests (Files): New module.
11841 * tests/test-yesno.c (main): New file.
11842 * tests/test-yesno.sh: Likewise.
11844 2007-08-19 Bruno Haible <bruno@clisp.org>
11846 * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
11847 * lib/fseeko.c (rpl_fseeko): Likewise.
11848 * lib/fseterr.c (fseterr): Likewise.
11850 2007-08-19 Bruno Haible <bruno@clisp.org>
11852 * tests/test-lseek.c (main): Disable a test for BeOS.
11853 * doc/functions/lseek.texi: Document the BeOS bug.
11855 2007-08-19 Bruno Haible <bruno@clisp.org>
11856 Eric Blake <ebb9@byu.net>
11858 * lib/lseek.c: Include <sys/stat.h>.
11859 (rpl_lseek): Add workaround code also for Unix platforms.
11861 * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
11862 * doc/functions/lseek.texi: Document BeOS definiency.
11864 2007-08-18 Bruno Haible <bruno@clisp.org>
11866 * modules/fstrcmp-tests: New file.
11867 * tests/test-fstrcmp.c: New file.
11869 2007-08-18 Bruno Haible <bruno@clisp.org>
11871 * modules/fstrcmp: New file, from GNU gettext with modifications.
11872 * lib/fstrcmp.h: New file, from GNU gettext.
11873 * lib/fstrcmp.c: New file, from GNU gettext.
11874 * MODULES.html.sh (String handling): Add fstrcmp.
11876 2007-08-18 Bruno Haible <bruno@clisp.org>
11878 * lib/diffseq.h (struct context): Change type of 'heuristic' field to
11880 (diag, compareseq): Remove const from the ctxt argument.
11881 (USE_HEURISTIC): Undefine at the end.
11883 2007-08-18 Jim Meyering <jim@meyering.net>
11885 New file: lib/idcache.h
11886 * NEWS: Mention the addition.
11887 * modules/idcache (Files): Add lib/idcache.h
11888 * lib/idcache.c: Include "idcache.h".
11889 Don't include <sys/types.h>.
11890 Add a FIXME comment.
11891 Move file-scoped "static" declarations to the top.
11892 * lib/idcache.h: New file. Include <sys/types.h> here, instead.
11894 2007-08-17 Bruno Haible <bruno@clisp.org>
11895 and Paul Eggert <eggert@cs.ucla.edu>
11897 * MODULES.html.sh: Add diffseq.
11898 * modules/diffseq: New file.
11899 * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
11900 extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
11902 2007-08-15 Paul Eggert <eggert@cs.ucla.edu>
11904 Import changes from coreutils for bootstrap script.
11906 2007-07-21 Paul Eggert <eggert@cs.ucla.edu>
11908 * build-aux/bootstrap (slurp): Work even in environments where
11909 "ls" defaults to "ls -A". Put in a FIXME, though, since the
11910 current code does not slurp files whose names start with ".", and
11911 this looks like it might be a troublesome area.
11913 2007-07-11 Jim Meyering <jim@meyering.net>
11915 If there's a GPL vN copyright comment, require that N == 3.
11917 2007-07-08 Jim Meyering <jim@meyering.net>
11919 Run the coreutils-specific code only if tests/Makefile.am.in exists.
11920 * build-aux/bootstrap (mam_template): Move definition out of loop.
11922 Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
11924 * build-aux/bootstrap (symlink_to_dir): Rename function from
11925 symlink_to_gnulib. Add a directory parameter. Update all
11927 (cp_mark_as_generated): Also check for -- and link to -- files in
11930 2007-07-08 Jim Meyering <jim@meyering.net>
11932 Adapt to deeper hierarchy in gnulib.
11933 * build-aux/bootstrap (symlink_to_dir): If the destination
11934 directory doesn't exist, create it. This is required at least for
11935 "lib/uniwidth/cjk.h".
11937 2007-05-15 Jim Meyering <jim@meyering.net>
11939 * build-aux/bootstrap: Now that generated Makefile.am files
11940 are no longer under version control, they must be created at
11943 2007-08-14 Ben Pfaff <blp@gnu.org>
11945 * lib/count-one-bits.h: Add comments. From Bruno Haible.
11947 2007-08-14 Paul Eggert <eggert@cs.ucla.edu>
11949 * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
11950 given the changes below.
11951 (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'. Work
11952 even on hosts that have padding bits beyond the supported 64.
11954 2007-08-10 Paul Eggert <eggert@cs.ucla.edu>
11956 * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
11957 * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
11958 xstrtol.c. Include getopt.h, since xstrtol_fatal's signature
11960 (xstrtol_error): Remove.
11961 (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
11962 but with a different signature.
11963 (ATTRIBUTE_NORETURN, __attribute__): New macros.
11964 * lib/xstrtol-error.c: Include exitfail.h.
11965 (xstrtol_fatal): New function, with a different signature from the
11966 old xstrtol_error, so that the caller need not worry about passing
11967 in an exit status, or about storage management of the option argument.
11968 (xstrtol_error): Now a static function. Redo signature to
11969 implement xstrtol_fatal. Output the correct number of hyphens in
11970 front of the option so that the caller need not worry about
11971 storage management.
11973 (_): Remove; not used now.
11974 * modules/xstrtol: Depend on getopt.
11975 * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
11976 of old STRTOL_FATAL_ERROR macro.
11977 * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
11979 * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
11980 * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
11982 2007-08-08 Eric Blake <ebb9@byu.net>
11984 * lib/xstrtol-error.c: Add missing include.
11986 Move xstrtol messages into gnulib domain, when --pobase is used.
11987 * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
11988 * lib/xstrtol-error.c (xstrtol_error): ...into new file.
11989 * modules/xstrtol (Files): Distribute new file.
11990 * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
11991 * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
11992 * tests/test-xstrtol.c: ...into new file.
11993 * tests/test-xstrtoul.c: Also test xstrtoul.
11994 * tests/test-xstrtoimax.c: Also test xstrtoimax.
11995 * tests/test-xstrtoumax.c: Also test xstrtoumax.
11996 * tests/test-xstrtol.sh: Drive the tests.
11997 * tests/test-xstrtoimax.sh: Likewise.
11998 * tests/test-xstrtoumax.sh: Likewise.
11999 * modules/xstrtol-tests: New module.
12000 * modules/xstrtoimax-tests: Likewise.
12001 * modules/xstrtoumax-tests: Likewise.
12003 2007-08-08 Jim Meyering <jim@meyering.net>
12005 New function: mfile_name_concat.
12006 * lib/filenamecat.c (mfile_name_concat): New function, just like
12007 file_name_concat, but return NULL upon failure rather than exiting
12009 * lib/filenamecat.h: Declare it.
12011 2007-08-07 Bruno Haible <bruno@clisp.org>
12013 * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
12014 instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
12016 Reported by Eric Blake.
12018 2007-08-07 Simon Josefsson <simon@josefsson.org>
12020 * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
12021 * modules/crypto/arcfour (License): Likewise.
12022 * modules/crypto/des-tests (License): Likewise.
12023 * modules/crypto/gc-arctwo-tests (License): Likewise.
12024 * modules/crypto/gc-des-tests (License): Likewise.
12025 * modules/crypto/gc-hmac-md5-tests (License): Likewise.
12026 * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
12027 * modules/crypto/gc-md2-tests (License): Likewise.
12028 * modules/crypto/gc-md4-tests (License): Likewise.
12029 * modules/crypto/gc-md5-tests (License): Likewise.
12030 * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
12031 * modules/crypto/gc-rijndael-tests (License): Likewise.
12032 * modules/crypto/gc-sha1-tests (License): Likewise.
12033 * modules/crypto/gc-tests (License): Likewise.
12034 * modules/crypto/hmac-md5 (License): Likewise.
12035 * modules/crypto/hmac-sha1 (License): Likewise.
12036 * modules/crypto/md2-tests (License): Likewise.
12037 * modules/crypto/md4-tests (License): Likewise.
12038 * modules/crypto/md5 (License): Likewise.
12039 * modules/crypto/rijndael (License): Likewise.
12040 * modules/crypto/sha1 (License): Likewise.
12041 * modules/memxor (License): Likewise.
12043 2007-08-06 Paul Eggert <eggert@cs.ucla.edu>
12044 and Bruno Haible <bruno@clisp.org>
12046 * NEWS: Describe interface changes to human, xstrtol.
12047 * lib/human.h: Include <xstrtol.h>.
12048 (human_options): Return enum strtol_error, not int. Remove
12049 bool arg; take int * instead.
12050 * lib/human.c: Don't include "gettext.h".
12051 (_): Remove; no longer used.
12052 Don't include <xstrtol.h>, since human.h does it.
12053 (human_options): Adjust to abovementioned interface changes.
12054 Do not report error to stderr; that's now the caller's
12056 * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
12058 * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
12059 Str, Argument_type_string. All uses changed. Put " argument"
12060 in diagnostics to make them clearer. Change wording of suffix
12061 message for clarity.
12062 (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
12063 Argument_type_string.
12064 (STRTOL_FATAL_WARN): Remove; no longer used.
12065 * modules/human (Depends-on): Remove gettext-h.
12067 2007-08-06 Simon Josefsson <simon@josefsson.org>
12069 * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
12071 2007-07-31 Bruno Haible <bruno@clisp.org>
12073 * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
12074 are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
12075 Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
12077 2007-07-31 Bruno Haible <bruno@clisp.org>
12079 * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
12080 Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
12082 2007-07-30 Bruno Haible <bruno@clisp.org>
12084 * modules/base64 (License): Use the synonymous term "LGPLv2+".
12085 * modules/c-ctype (License): Likewise.
12086 * modules/c-strcase (License): Likewise.
12087 * modules/check-version (License): Likewise.
12088 * modules/iconv (License): Likewise.
12089 * modules/iconv_open (License): Likewise.
12090 * modules/read-file (License): Likewise.
12091 * modules/striconv (License): Likewise.
12092 * modules/strverscmp (License): Likewise.
12093 * modules/vasprintf (License): Likewise.
12094 * modules/crypto/des (License): Likewise.
12095 * modules/crypto/gc (License): Likewise.
12096 * modules/crypto/gc-arcfour (License): Likewise.
12097 * modules/crypto/gc-arctwo (License): Likewise.
12098 * modules/crypto/gc-des (License): Likewise.
12099 * modules/crypto/gc-hmac-md5 (License): Likewise.
12100 * modules/crypto/gc-hmac-sha1 (License): Likewise.
12101 * modules/crypto/gc-md2 (License): Likewise.
12102 * modules/crypto/gc-md4 (License): Likewise.
12103 * modules/crypto/gc-md5 (License): Likewise.
12104 * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
12105 * modules/crypto/gc-random (License): Likewise.
12106 * modules/crypto/gc-rijndael (License): Likewise.
12107 * modules/crypto/gc-sha1 (License): Likewise.
12108 * modules/crypto/md2 (License): Likewise.
12109 * modules/crypto/md4 (License): Likewise.
12111 2007-07-30 Jim Meyering <jim@meyering.net>
12113 * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
12114 set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
12115 it has valid stat data. This bug would cause du not to count the
12116 sizes of inaccessible directories.
12117 Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
12118 in <http://bugzilla.redhat.com/250077>.
12120 2007-07-25 Peter O'Gorman <peter@pogma.com>
12121 Bruno Haible <bruno@clisp.org>
12123 * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
12124 really works. Needed because AIX 4.3 "xlc -E" doesn't understand
12125 #include_next, gives a diagnostic about it, but reports no error in
12127 Reported by Gary V. Vaughan <gary@thewrittenword.com>.
12129 2007-07-24 Ben Pfaff <blp@gnu.org>
12131 Improve name: "count-one-bits" is better than "popcount".
12132 * MODULES.html.sh: Update name.
12133 * lib/popcount.h: Renamed lib/count-one-bits.h.
12134 (popcount): Renamed count_one_bits.
12135 (popcountl): Renamed count_one_bits_l.
12136 (popcountll): Renamed count_one_bits_ll.
12137 * m4/popcount.m4: Renamed m4/count-one-bits.m4.
12138 * modules/popcount: Renamed module/count-one-bits.
12139 * modules/popcount-tests: Renamed module/count-one-bits-tests.
12140 * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
12142 2007-07-23 Ben Pfaff <blp@gnu.org>
12144 * lib/popcount.h (popcount32): Reduce size of constants, to allow
12145 better code generation, and add U to large constants to avoid
12146 warnings, in non-GCC case.
12147 Suggested by Bruno Haible.
12149 2007-07-23 Ben Pfaff <blp@gnu.org>
12151 * lib/popcount.h: Use verify_true instead of if...abort.
12152 * modules/popcount: Depend on verify module.
12153 Suggested by Jim Meyering.
12155 2007-07-23 Bruno Haible <bruno@clisp.org>
12157 * gnulib-tool (func_import): Create a .cvsignore file also when the
12158 directory is not yet in CVS but the toplevel directory is. When
12159 creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
12160 Reported by Karl Berry.
12162 2007-07-22 Ben Pfaff <blp@gnu.org>
12164 * lib/popcount.h: Use faster, branchless algorithm for non-GCC
12166 Suggested by Eric Blake.
12168 2007-07-22 Ben Pfaff <blp@gnu.org>
12170 New module: popcount.
12171 * MODULES.html.sh: Add popcount.
12172 * modules/popcount: New file.
12173 * modules/popcount-tests: New file.
12174 * tests/test-popcount.c: New file.
12175 * lib/popcount.h: New file.
12176 * m4/popcount.m4: New file.
12178 2007-07-22 Paul Eggert <eggert@cs.ucla.edu>
12180 * build-aux/announce-gen: Update to GPLv3.
12182 * build-aux/config.guess: Update from config.
12184 2007-07-21 Bruno Haible <bruno@clisp.org>
12186 * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
12187 * lib/verror.c (_) [ENABLE_NLS]: Likewise.
12189 2007-07-20 Jim Meyering <jim@meyering.net>
12191 * check-module: Diagnose a self-dependency.
12193 2007-07-19 Bruno Haible <bruno@clisp.org>
12195 * gnulib-tool (func_import): Don't abort if pobase or po_domain is
12197 Reported by Eric Blake.
12199 2007-07-18 Bruno Haible <bruno@clisp.org>
12201 * gnulib-tool: New options --po-base, --po-domain.
12202 (func_usage): Document them.
12203 (pobase, po_domain): New variables.
12204 (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
12205 DEFAULT_TEXT_DOMAIN.
12206 (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
12207 (func_import): Consider pobase and po_domain. Create a po/ directory.
12208 (func_create_testdir): Set pobase and po_domain to empty.
12209 * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
12210 * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
12212 2007-07-18 Bruno Haible <bruno@clisp.org>
12214 * gnulib-tool (func_get_automake_snippet): Synthesize also an
12215 EXTRA_DIST augmentation for files in build-aux/.
12217 2007-07-16 Bruno Haible <bruno@clisp.org>
12219 * modules/lseek (License): Use the synonymous term "LGPLv2+".
12220 * modules/getdelim (License): Likewise.
12222 2007-07-16 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
12224 * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
12225 * modules/d-type (License): Likewise.
12226 * modules/extensions (License): Likewise.
12227 * modules/fnmatch (License): Likewise.
12228 * modules/fseeko (License): Likewise.
12229 * modules/getaddrinfo (License): Likewise.
12230 * modules/getline (License): Likewise.
12231 * modules/getlogin_r (License): Likewise.
12232 * modules/getpass (License): Likewise.
12233 * modules/gettimeofday (License): Likewise.
12234 * modules/glob (License): Likewise.
12235 * modules/inet_ntop (License): Likewise.
12236 * modules/malloc (License): Likewise.
12237 * modules/malloca (License): Likewise.
12238 * modules/memmem (License): Likewise.
12239 * modules/mempcpy (License): Likewise.
12240 * modules/memset (License): Likewise.
12241 * modules/minmax (License): Likewise.
12242 * modules/mktime (License): Likewise.
12243 * modules/netinet_in (License): Likewise.
12244 * modules/pathmax (License): Likewise.
12245 * modules/poll (License): Likewise.
12246 * modules/regex (License): Likewise.
12247 * modules/snprintf (License): Likewise.
12248 * modules/stdbool (License): Likewise.
12249 * modules/stdint (License): Likewise.
12250 * modules/stdio (License): Likewise.
12251 * modules/strcase (License): Likewise.
12252 * modules/strcasestr (License): Likewise.
12253 * modules/strdup (License): Likewise.
12254 * modules/string (License): Likewise.
12255 * modules/strndup (License): Likewise.
12256 * modules/strnlen (License): Likewise.
12257 * modules/strpbrk (License): Likewise.
12258 * modules/strptime (License): Likewise.
12259 * modules/strsep (License): Likewise.
12260 * modules/sys_select (License): Likewise.
12261 * modules/sys_socket (License): Likewise.
12262 * modules/sys_stat (License): Likewise.
12263 * modules/sys_time (License): Likewise.
12264 * modules/time (License): Likewise.
12265 * modules/time_r (License): Likewise.
12266 * modules/timegm (License): Likewise.
12267 * modules/unistd (License): Likewise.
12268 * modules/vsnprintf (License): Likewise.
12269 * modules/wctype (License): Likewise.
12271 2007-07-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12273 * modules/argz (License): LGPLv2+.
12275 2007-07-15 Karl Berry <karl@gnu.org>
12277 * doc/gnulib.texi: revise node structure per new fdl.texi.
12279 2007-07-14 Bruno Haible <bruno@clisp.org>
12281 * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
12283 * lib/uniname/uninames.h: Regenerated.
12285 2007-07-14 Karl Berry <karl@gnu.org>
12287 * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
12288 omitting sectioning and index commands.
12290 2007-07-13 Bruno Haible <bruno@clisp.org>
12292 New gnulib-tool option --more-symlinks.
12293 * gnulib-tool (func_usage): Document --more-symlinks.
12294 (do_copyrights): New variable.
12295 Recognize option --more-symlinks.
12296 (func_import): Don't add a copyright notice transform to
12297 sed_transform_lib_file if do_copyrights is empty.
12299 2007-07-13 Bruno Haible <bruno@clisp.org>
12301 * lib/vasnprintf.c (decimal_point_char): Define also if
12302 (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
12303 && !NEED_PRINTF_DIRECTIVE_A.
12304 Reported by Clemens Koller <clemens.koller@anagramm.de> via
12305 Gary V. Vaughan <gary@gnu.org>.
12307 2007-07-13 Paul Eggert <eggert@cs.ucla.edu>
12309 * lib/inttypes_.h: Undo previous change, since it was fixed
12310 in a different way in the 2007-07-02 fix to m4/inttypes.m4.
12312 2007-07-13 Bruno Haible <bruno@clisp.org>
12314 * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
12315 misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
12317 2007-07-13 Jim Meyering <jim@meyering.net>
12319 df: Don't fail for Tru64's "file-on-file mount".
12320 * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
12321 so we fall through and use statfs instead. Details here:
12322 <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
12323 Reported by Albert Chin.
12325 2007-07-13 Bruno Haible <bruno@clisp.org>
12327 * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
12328 * modules/configmake (License): Likewise.
12329 * modules/gettext (License): Likewise.
12330 * modules/gettext-h (License): Likewise.
12331 * modules/include_next (License): Likewise.
12332 * modules/link-warning (License): Likewise.
12333 * modules/localcharset (License): Likewise.
12334 * modules/localename (License): Likewise.
12335 * modules/lock (License): Likewise.
12336 * modules/relocatable-lib-lgpl (License): Likewise.
12337 * modules/size_max (License): Likewise.
12338 * modules/vasnprintf (License): Likewise.
12339 * modules/wchar (License): Likewise.
12340 * modules/xsize (License): Likewise.
12342 2007-07-13 Bruno Haible <bruno@clisp.org>
12344 * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
12345 (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
12347 2007-07-12 Bruno Haible <bruno@clisp.org>
12349 * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
12350 in the modules files.
12352 2007-07-11 Karl Berry <karl@gnu.org>
12354 * MODULES.html.sh (func_module): use
12355 sed -e '\|^'"${includefile}"'$|d'
12356 instead of /.../d, to avoid errors on $includefile's containing /.
12358 2007-07-10 Sergey Poznyakoff <gray@gnu.org.ua>
12360 * gnulib-tool (func_import): Avoid duplication of --avoid
12362 (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
12363 names to `_' in variable names.
12365 2007-07-10 Eric Blake <ebb9@byu.net>
12367 * lib/version-etc.c (version_etc_va): Default to GPLv3+.
12368 * NEWS: Document this change.
12370 2007-07-08 Bruno Haible <bruno@clisp.org>
12372 Update to Unicode 5.0.
12373 * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
12374 U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
12375 U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
12376 U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
12377 U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
12378 U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
12379 U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
12380 U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
12381 U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
12382 U+10A3F, U+1D242..U+1D244.
12383 (nonspacing_table_ind): Update.
12384 (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
12385 U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
12387 2007-07-08 Bruno Haible <bruno@clisp.org>
12389 Update to Unicode 5.0.
12390 * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
12391 code transform. Extend the name index field of unicode_name_to_code and
12392 unicode_code_to_name from 16 to 24 bits.
12393 * lib/uniname/uniname.c (unicode_character_name,
12394 unicode_name_character): Add the range 0x12xxx to the code transform.
12395 * lib/uniname/uninames.h: Regenerated.
12396 * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
12398 2007-07-07 Bruno Haible <bruno@clisp.org>
12400 * modules/wcwidth-tests: New file.
12401 * tests/test-wcwidth.c: New file.
12403 Work around MacOS X wcwidth() bug.
12404 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
12405 * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
12406 (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
12407 original wcwidth in non-UTF-8 locales.
12408 * modules/wcwidth (Depends-on): Add localcharset, streq,
12410 * doc/functions/wcwidth.texi: Update.
12412 2007-07-07 Bruno Haible <bruno@clisp.org>
12414 * lib/wchar_.h: Include the GL_LINK_WARNING macro.
12415 (wcwidth): New declaration.
12416 * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
12418 (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
12419 here. Prepare for creating <wchar.h> unconditionally.
12420 * modules/wchar (Depends-on): Add link-warning.
12421 (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
12422 REPLACE_WCWIDTH, and GL_LINK_WARNING.
12423 * lib/wcwidth.h: Remove file.
12424 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
12425 HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
12426 * modules/wcwidth (Files): Remove lib/wcwidth.h.
12427 (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
12428 (Include): Replace wcwidth.h with <wchar.h>.
12429 * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
12430 * lib/mbchar.h: Don't include wcwidth.h.
12431 * lib/mbswidth.c: Likewise.
12432 * NEWS: Mention the change.
12434 2007-07-07 Bruno Haible <bruno@clisp.org>
12436 * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
12437 * lib/wcwidth.h: Don't include wctype.h. Replace inline function
12438 definition with an external declaration.
12439 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
12440 defined as a function. Remove AC_C_INLINE requirement.
12441 * modules/wcwidth (Files): Add lib/wcwidth.c.
12442 (Makefile.am): Remove redundant statement.
12444 2007-07-07 Bruno Haible <bruno@clisp.org>
12446 * MODULES.html.sh (Unicode string functions): Add the new modules.
12448 * tests/uniwidth/test-u32-strwidth.c: New file.
12449 * modules/uniwidth/u32-strwidth-tests: New file.
12451 * lib/uniwidth/u32-strwidth.c: New file.
12452 * modules/uniwidth/u32-strwidth: New file.
12454 * tests/uniwidth/test-u16-strwidth.c: New file.
12455 * modules/uniwidth/u16-strwidth-tests: New file.
12457 * lib/uniwidth/u16-strwidth.c: New file.
12458 * modules/uniwidth/u16-strwidth: New file.
12460 * tests/uniwidth/test-u8-strwidth.c: New file.
12461 * modules/uniwidth/u8-strwidth-tests: New file.
12463 * lib/uniwidth/u8-strwidth.c: New file.
12464 * modules/uniwidth/u8-strwidth: New file.
12466 * tests/uniwidth/test-u32-width.c: New file.
12467 * modules/uniwidth/u32-width-tests: New file.
12469 * lib/uniwidth/u32-width.c: New file.
12470 * modules/uniwidth/u32-width: New file.
12472 * tests/uniwidth/test-u16-width.c: New file.
12473 * modules/uniwidth/u16-width-tests: New file.
12475 * lib/uniwidth/u16-width.c: New file.
12476 * modules/uniwidth/u16-width: New file.
12478 * tests/uniwidth/test-u8-width.c: New file.
12479 * modules/uniwidth/u8-width-tests: New file.
12481 * lib/uniwidth/u8-width.c: New file.
12482 * modules/uniwidth/u8-width: New file.
12484 * tests/uniwidth/test-uc_width.c: New file.
12485 * modules/uniwidth/width-tests: New file.
12487 * lib/uniwidth/width.c: New file, from GNU libiconv.
12488 * lib/uniwidth/cjk.h: New file, from GNU libiconv.
12489 * modules/uniwidth/width: New file.
12491 * lib/uniwidth.h: New file, from GNU libiconv.
12492 * modules/uniwidth/base: New file.
12494 2007-07-07 Bruno Haible <bruno@clisp.org>
12496 * lib/uniname.h: New file, from GNU gettext.
12497 * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
12498 * lib/uniname/uninames.h: New file, from GNU gettext.
12499 * lib/uniname/uniname.c: New file, from GNU gettext.
12500 * tests/uniname/test-uninames.sh: New file.
12501 * tests/uniname/test-uninames.c: New file, from GNU gettext.
12502 * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
12503 * modules/uniname/base: New file.
12504 * modules/uniname/uniname: New file.
12505 * modules/uniname/uniname-tests: New file.
12506 * MODULES.html.sh (Unicode string functions): Add the new modules.
12508 2007-07-06 Bruno Haible <bruno@clisp.org>
12510 * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
12512 2007-07-06 Bruno Haible <bruno@clisp.org>
12514 * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
12515 a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
12516 includes <cygwin/sys_time.h> which includes <sys/select.h> which
12517 include <sys/time.h>.
12518 Reported by Eric Blake.
12520 2007-07-06 Eric Blake <ebb9@byu.net>
12522 Fix testing canonicalize on cygwin.
12523 * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
12524 Revert patch from 2007-06-19.
12525 * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
12526 canonicalize module is also in use.
12527 * tests/test-canonicalize.c: New file.
12528 * tests/test-canonicalize.sh: Likewise.
12529 * modules/canonicalize-tests: Likewise.
12531 2007-07-06 Jim Meyering <jim@meyering.net>
12533 * lib/getugroups.c (getugroups): Detect getgrent failure.
12534 Adjust comment to reflect reality: this function may return -1.
12536 2007-07-05 Sergey Poznyakoff <gray@gnu.org.ua>
12538 * build-aux/bootstrap (TP_URL,get_translations): Update to use
12539 the new TP address.
12541 (gnulib_mk): New variable.
12543 2007-07-05 Jim Meyering <jim@meyering.net>
12545 Don't let endgrent clobber errno, no matter how improbable.
12546 * lib/getugroups.c (getugroups): Save and restore errno around
12549 Close the group DB even when failing with 2^31 or more members.
12550 * lib/getugroups.c (getugroups): Don't return without calling endgrent.
12552 2007-07-04 Jim Meyering <jim@meyering.net>
12554 * lib/getugroups.h: New file.
12555 * lib/getugroups.c: Include "getugroups.h".
12556 Remove uses of "register" keyword.
12557 Move local variable, "cp", down into scope where used.
12558 Give "username" parameter the "const" attribute.
12559 * modules/getugroups (Files): Add lib/getugroups.h
12561 2007-07-04 Karl Berry <karl@gnu.org>
12563 * MODULES.html.sh (func_all_modules): Complete rename of
12564 gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
12566 2007-07-02 Bruno Haible <bruno@clisp.org>
12568 * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
12569 mode, when inttypes.h comes from gnulib.
12570 Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
12572 2007-07-02 Simon Josefsson <simon@josefsson.org>
12574 * NEWS: Mention lgpl module name change.
12576 * modules/lgpl-2.1: Renamed from lgpl.
12578 * NEWS: Mention gpl module name change.
12580 * modules/gpl-3.0: New file, based on gpl-2.0.
12582 * modules/gpl-2.0: Renamed from gpl.
12584 * modules/gpl: Fix filename, doc/gpl.texi is now found at
12587 2007-07-02 Paul Eggert <eggert@cs.ucla.edu>
12589 * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
12590 #define __STDC_LIMIT_MACROS temporarily while including
12591 <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
12592 Problem reported by Joel E. Denny in
12593 <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
12595 2007-07-01 Bruno Haible <bruno@clisp.org>
12597 * lib/unistdio.h: New file.
12598 * lib/unistdio/u-asnprintf.h: New file.
12599 * lib/unistdio/u-asprintf.h: New file.
12600 * lib/unistdio/u-printf-args.c: New file.
12601 * lib/unistdio/u-printf-args.h: New file.
12602 * lib/unistdio/u-printf-parse.h: New file.
12603 * lib/unistdio/u-snprintf.h: New file.
12604 * lib/unistdio/u-sprintf.h: New file.
12605 * lib/unistdio/u-vasprintf.h: New file.
12606 * lib/unistdio/u-vsnprintf.h: New file.
12607 * lib/unistdio/u-vsprintf.h: New file.
12608 * lib/unistdio/ulc-asnprintf.c: New file.
12609 * lib/unistdio/ulc-asprintf.c: New file.
12610 * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
12611 * lib/unistdio/ulc-printf-parse.c: New file.
12612 * lib/unistdio/ulc-snprintf.c: New file.
12613 * lib/unistdio/ulc-sprintf.c: New file.
12614 * lib/unistdio/ulc-vasnprintf.c: New file.
12615 * lib/unistdio/ulc-vasprintf.c: New file.
12616 * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
12617 * lib/unistdio/ulc-vsnprintf.c: New file.
12618 * lib/unistdio/ulc-vsprintf.c: New file.
12619 * lib/unistdio/u8-asnprintf.c: New file.
12620 * lib/unistdio/u8-asprintf.c: New file.
12621 * lib/unistdio/u8-printf-parse.c: New file.
12622 * lib/unistdio/u8-snprintf.c: New file.
12623 * lib/unistdio/u8-sprintf.c: New file.
12624 * lib/unistdio/u8-vasnprintf.c: New file.
12625 * lib/unistdio/u8-vasprintf.c: New file.
12626 * lib/unistdio/u8-vsnprintf.c: New file.
12627 * lib/unistdio/u8-vsprintf.c: New file.
12628 * lib/unistdio/u8-u8-asnprintf.c: New file.
12629 * lib/unistdio/u8-u8-asprintf.c: New file.
12630 * lib/unistdio/u8-u8-snprintf.c: New file.
12631 * lib/unistdio/u8-u8-sprintf.c: New file.
12632 * lib/unistdio/u8-u8-vasnprintf.c: New file.
12633 * lib/unistdio/u8-u8-vasprintf.c: New file.
12634 * lib/unistdio/u8-u8-vsnprintf.c: New file.
12635 * lib/unistdio/u8-u8-vsprintf.c: New file.
12636 * lib/unistdio/u16-asnprintf.c: New file.
12637 * lib/unistdio/u16-asprintf.c: New file.
12638 * lib/unistdio/u16-printf-parse.c: New file.
12639 * lib/unistdio/u16-snprintf.c: New file.
12640 * lib/unistdio/u16-sprintf.c: New file.
12641 * lib/unistdio/u16-vasnprintf.c: New file.
12642 * lib/unistdio/u16-vasprintf.c: New file.
12643 * lib/unistdio/u16-vsnprintf.c: New file.
12644 * lib/unistdio/u16-vsprintf.c: New file.
12645 * lib/unistdio/u16-u16-asnprintf.c: New file.
12646 * lib/unistdio/u16-u16-asprintf.c: New file.
12647 * lib/unistdio/u16-u16-snprintf.c: New file.
12648 * lib/unistdio/u16-u16-sprintf.c: New file.
12649 * lib/unistdio/u16-u16-vasnprintf.c: New file.
12650 * lib/unistdio/u16-u16-vasprintf.c: New file.
12651 * lib/unistdio/u16-u16-vsnprintf.c: New file.
12652 * lib/unistdio/u16-u16-vsprintf.c: New file.
12653 * lib/unistdio/u32-asnprintf.c: New file.
12654 * lib/unistdio/u32-asprintf.c: New file.
12655 * lib/unistdio/u32-printf-parse.c: New file.
12656 * lib/unistdio/u32-snprintf.c: New file.
12657 * lib/unistdio/u32-sprintf.c: New file.
12658 * lib/unistdio/u32-vasnprintf.c: New file.
12659 * lib/unistdio/u32-vasprintf.c: New file.
12660 * lib/unistdio/u32-vsnprintf.c: New file.
12661 * lib/unistdio/u32-vsprintf.c: New file.
12662 * lib/unistdio/u32-u32-asnprintf.c: New file.
12663 * lib/unistdio/u32-u32-asprintf.c: New file.
12664 * lib/unistdio/u32-u32-snprintf.c: New file.
12665 * lib/unistdio/u32-u32-sprintf.c: New file.
12666 * lib/unistdio/u32-u32-vasnprintf.c: New file.
12667 * lib/unistdio/u32-u32-vasprintf.c: New file.
12668 * lib/unistdio/u32-u32-vsnprintf.c: New file.
12669 * lib/unistdio/u32-u32-vsprintf.c: New file.
12670 * tests/unistdio/test-ulc-asnprintf1.c: New file.
12671 * tests/unistdio/test-ulc-asnprintf1.h: New file.
12672 * tests/unistdio/test-ulc-printf1.h: New file.
12673 * tests/unistdio/test-ulc-vasnprintf1.c: New file.
12674 * tests/unistdio/test-ulc-vasnprintf2.c: New file.
12675 * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
12676 * tests/unistdio/test-ulc-vasnprintf3.c: New file.
12677 * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
12678 * tests/unistdio/test-ulc-vasprintf1.c: New file.
12679 * tests/unistdio/test-ulc-vsnprintf1.c: New file.
12680 * tests/unistdio/test-ulc-vsprintf1.c: New file.
12681 * tests/unistdio/test-u8-asnprintf1.c: New file.
12682 * tests/unistdio/test-u8-asnprintf1.h: New file.
12683 * tests/unistdio/test-u8-printf1.h: New file.
12684 * tests/unistdio/test-u8-vasnprintf1.c: New file.
12685 * tests/unistdio/test-u8-vasnprintf2.c: New file.
12686 * tests/unistdio/test-u8-vasnprintf2.sh: New file.
12687 * tests/unistdio/test-u8-vasnprintf3.c: New file.
12688 * tests/unistdio/test-u8-vasnprintf3.sh: New file.
12689 * tests/unistdio/test-u8-vasprintf1.c: New file.
12690 * tests/unistdio/test-u8-vsnprintf1.c: New file.
12691 * tests/unistdio/test-u8-vsprintf1.c: New file.
12692 * tests/unistdio/test-u16-asnprintf1.c: New file.
12693 * tests/unistdio/test-u16-asnprintf1.h: New file.
12694 * tests/unistdio/test-u16-printf1.h: New file.
12695 * tests/unistdio/test-u16-vasnprintf1.c: New file.
12696 * tests/unistdio/test-u16-vasnprintf2.c: New file.
12697 * tests/unistdio/test-u16-vasnprintf2.sh: New file.
12698 * tests/unistdio/test-u16-vasnprintf3.c: New file.
12699 * tests/unistdio/test-u16-vasnprintf3.sh: New file.
12700 * tests/unistdio/test-u16-vasprintf1.c: New file.
12701 * tests/unistdio/test-u16-vsnprintf1.c: New file.
12702 * tests/unistdio/test-u16-vsprintf1.c: New file.
12703 * tests/unistdio/test-u32-asnprintf1.c: New file.
12704 * tests/unistdio/test-u32-asnprintf1.h: New file.
12705 * tests/unistdio/test-u32-printf1.h: New file.
12706 * tests/unistdio/test-u32-vasnprintf1.c: New file.
12707 * tests/unistdio/test-u32-vasnprintf2.c: New file.
12708 * tests/unistdio/test-u32-vasnprintf2.sh: New file.
12709 * tests/unistdio/test-u32-vasnprintf3.c: New file.
12710 * tests/unistdio/test-u32-vasnprintf3.sh: New file.
12711 * tests/unistdio/test-u32-vasprintf1.c: New file.
12712 * tests/unistdio/test-u32-vsnprintf1.c: New file.
12713 * tests/unistdio/test-u32-vsprintf1.c: New file.
12714 * modules/unistdio/base: New file.
12715 * modules/unistdio/u-printf-args: New file.
12716 * modules/unistdio/ulc-asnprintf: New file.
12717 * modules/unistdio/ulc-asprintf: New file.
12718 * modules/unistdio/ulc-fprintf: New file.
12719 * modules/unistdio/ulc-printf-parse: New file.
12720 * modules/unistdio/ulc-snprintf: New file.
12721 * modules/unistdio/ulc-sprintf: New file.
12722 * modules/unistdio/ulc-vasnprintf: New file.
12723 * modules/unistdio/ulc-vasprintf: New file.
12724 * modules/unistdio/ulc-vfprintf: New file.
12725 * modules/unistdio/ulc-vsnprintf: New file.
12726 * modules/unistdio/ulc-vsprintf: New file.
12727 * modules/unistdio/u8-asnprintf: New file.
12728 * modules/unistdio/u8-asprintf: New file.
12729 * modules/unistdio/u8-printf-parse: New file.
12730 * modules/unistdio/u8-snprintf: New file.
12731 * modules/unistdio/u8-sprintf: New file.
12732 * modules/unistdio/u8-vasnprintf: New file.
12733 * modules/unistdio/u8-vasprintf: New file.
12734 * modules/unistdio/u8-vsnprintf: New file.
12735 * modules/unistdio/u8-vsprintf: New file.
12736 * modules/unistdio/u8-u8-asnprintf: New file.
12737 * modules/unistdio/u8-u8-asprintf: New file.
12738 * modules/unistdio/u8-u8-snprintf: New file.
12739 * modules/unistdio/u8-u8-sprintf: New file.
12740 * modules/unistdio/u8-u8-vasnprintf: New file.
12741 * modules/unistdio/u8-u8-vasprintf: New file.
12742 * modules/unistdio/u8-u8-vsnprintf: New file.
12743 * modules/unistdio/u8-u8-vsprintf: New file.
12744 * modules/unistdio/u16-asnprintf: New file.
12745 * modules/unistdio/u16-asprintf: New file.
12746 * modules/unistdio/u16-printf-parse: New file.
12747 * modules/unistdio/u16-snprintf: New file.
12748 * modules/unistdio/u16-sprintf: New file.
12749 * modules/unistdio/u16-vasnprintf: New file.
12750 * modules/unistdio/u16-vasprintf: New file.
12751 * modules/unistdio/u16-vsnprintf: New file.
12752 * modules/unistdio/u16-vsprintf: New file.
12753 * modules/unistdio/u16-u16-asnprintf: New file.
12754 * modules/unistdio/u16-u16-asprintf: New file.
12755 * modules/unistdio/u16-u16-snprintf: New file.
12756 * modules/unistdio/u16-u16-sprintf: New file.
12757 * modules/unistdio/u16-u16-vasnprintf: New file.
12758 * modules/unistdio/u16-u16-vasprintf: New file.
12759 * modules/unistdio/u16-u16-vsnprintf: New file.
12760 * modules/unistdio/u16-u16-vsprintf: New file.
12761 * modules/unistdio/u32-asnprintf: New file.
12762 * modules/unistdio/u32-asprintf: New file.
12763 * modules/unistdio/u32-printf-parse: New file.
12764 * modules/unistdio/u32-snprintf: New file.
12765 * modules/unistdio/u32-sprintf: New file.
12766 * modules/unistdio/u32-vasnprintf: New file.
12767 * modules/unistdio/u32-vasprintf: New file.
12768 * modules/unistdio/u32-vsnprintf: New file.
12769 * modules/unistdio/u32-vsprintf: New file.
12770 * modules/unistdio/u32-u32-asnprintf: New file.
12771 * modules/unistdio/u32-u32-asprintf: New file.
12772 * modules/unistdio/u32-u32-snprintf: New file.
12773 * modules/unistdio/u32-u32-sprintf: New file.
12774 * modules/unistdio/u32-u32-vasnprintf: New file.
12775 * modules/unistdio/u32-u32-vasprintf: New file.
12776 * modules/unistdio/u32-u32-vsnprintf: New file.
12777 * modules/unistdio/u32-u32-vsprintf: New file.
12778 * modules/unistdio/ulc-asnprintf-tests: New file.
12779 * modules/unistdio/ulc-vasnprintf-tests: New file.
12780 * modules/unistdio/ulc-vasprintf-tests: New file.
12781 * modules/unistdio/ulc-vsnprintf-tests: New file.
12782 * modules/unistdio/ulc-vsprintf-tests: New file.
12783 * modules/unistdio/u8-asnprintf-tests: New file.
12784 * modules/unistdio/u8-vasnprintf-tests: New file.
12785 * modules/unistdio/u8-vasprintf-tests: New file.
12786 * modules/unistdio/u8-vsnprintf-tests: New file.
12787 * modules/unistdio/u8-vsprintf-tests: New file.
12788 * modules/unistdio/u16-asnprintf-tests: New file.
12789 * modules/unistdio/u16-vasnprintf-tests: New file.
12790 * modules/unistdio/u16-vasprintf-tests: New file.
12791 * modules/unistdio/u16-vsnprintf-tests: New file.
12792 * modules/unistdio/u16-vsprintf-tests: New file.
12793 * modules/unistdio/u32-asnprintf-tests: New file.
12794 * modules/unistdio/u32-vasnprintf-tests: New file.
12795 * modules/unistdio/u32-vasprintf-tests: New file.
12796 * modules/unistdio/u32-vsnprintf-tests: New file.
12797 * modules/unistdio/u32-vsprintf-tests: New file.
12798 * MODULES.html.sh (Unicode string functions): Add the new modules.
12800 2007-07-01 Bruno Haible <bruno@clisp.org>
12802 * lib/sprintf.c (sprintf): Limit the available length estimation,
12803 to avoid address wraparound.
12804 * lib/vsprintf.c (vsprintf): Likewise.
12805 * modules/sprintf-posix (Dependencies): Add stdint.
12806 * modules/vsprintf-posix (Dependencies): Likewise.
12808 2007-07-01 Bruno Haible <bruno@clisp.org>
12810 * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
12811 Windows PATH as well. Conservative double-quoting. Comments.
12813 2007-07-01 Bruno Haible <bruno@clisp.org>
12814 Eric Blake <ebb9@byu.net>
12815 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12817 * gnulib-tool (self_abspathname): Fix algorithm to cope with
12818 empty components in $PATH, denoting '.'.
12820 2007-07-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12822 * gnulib-tool: Fix indentation.
12823 (func_create_megatestdir): Likewise.
12824 Report by Bruno Haible.
12826 2007-06-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12828 Sync from Automake.
12829 * build-aux/gnupload: Fix shell portability issues with for loops.
12830 Report by Karl Berry.
12832 2007-06-29 Simon Josefsson <simon@josefsson.org>
12834 * build-aux/maint.mk (POURL): Use translationproject.org.
12836 2007-06-27 Simon Josefsson <simon@josefsson.org>
12837 Bruno Haible <bruno@clisp.org>
12839 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
12840 before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
12841 explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
12842 (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
12843 HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
12845 2007-06-27 Bruno Haible <bruno@clisp.org>
12847 * build-aux/config.rpath: Upgrade to libtool-1.5.24.
12848 * build-aux/config.libpath: Upgrade to libtool-1.5.24.
12850 2007-06-26 Karl Berry <karl@gnu.org>
12852 * MODULES.html.sh: remove xreadlink-with-size.
12854 2007-06-23 Paul Eggert <eggert@cs.ucla.edu>
12856 * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
12857 method that I hope also handles the double-include problem noted
12859 <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
12861 2007-06-23 Bruno Haible <bruno@clisp.org>
12863 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
12864 Don't let the 'mostlyclean' target fail if the last subdirectory could
12866 Reported by Karl Berry.
12868 2007-06-23 Bruno Haible <bruno@clisp.org>
12870 * gnulib-tool (echo): Add a speedier workaround for ksh.
12871 * tests/test-echo.sh: Likewise.
12873 2007-06-23 Bruno Haible <bruno@clisp.org>
12875 * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
12876 * tests/test-echo.sh: Likewise.
12878 2007-06-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12880 * gnulib-tool (IFS): Initialize early, so we don't set it to
12882 (self_abspathname): Rewrite algorithm to set it, reindent.
12883 (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
12884 (func_create_megatestdir): Merge some sed scripts.
12886 2007-06-23 Paul Eggert <eggert@cs.ucla.edu>
12888 * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
12889 exposed by Sun Studio 11 cc on Solaris 8.
12891 2007-06-22 Bruno Haible <bruno@clisp.org>
12893 * gnulib-tool (echo): Ensure the echo primitive does not interpret
12895 * tests/test-echo.sh: New file.
12897 2007-06-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12899 * gnulib-tool (func_add_or_update, func_create_testdir): Do not
12900 simplify `sed_replace_build_aux' scripts, they are portable but
12901 echoing them with `echo' is not.
12902 Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
12904 2007-06-21 Karl Berry <karl@gnu.org>
12906 * config/srclist.txt: guess we can't handle the licenses via
12907 srclist at the moment.
12909 2007-06-21 Paul Eggert <eggert@cs.ucla.edu>
12911 * MODULES.html.sh: Add include_next.
12912 * modules/include_next: New file.
12914 2007-06-20 Paul Eggert <eggert@cs.ucla.edu>
12916 * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
12918 (gl_CHECK_NEXT_HEADERS): New macro.
12919 * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
12920 the obsolescent gl_ABSOLUTE_HEADER.
12921 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
12922 * m4/float_h.m4 (gl_FLOAT_H): Likewise.
12923 * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
12924 * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
12925 * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
12926 * m4/math_h.m4 (gl_MATH_H): Likewise.
12927 * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
12928 * m4/search_h.m4 (gl_SEARCH_H): Likewise.
12929 * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
12930 * m4/stdint.m4 (gl_STDINT_H): Likewise.
12931 * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
12932 * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
12933 * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
12934 * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
12935 * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
12936 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
12937 * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
12938 * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
12939 * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
12940 * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
12941 * m4/wchar.m4 (gl_WCHAR_H): Likewise.
12942 * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
12943 * m4/inttypes.m4 (gl_INTTYPES_H): Define
12944 _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
12945 builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
12946 * m4/stdint.m4 (gl_STDINT_H): Likewise, for
12947 _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
12948 * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
12949 rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
12950 * lib/float_.h: Likewise.
12951 * lib/inttypes_.h: Likewise.
12952 * lib/math_.h: Likewise.
12953 * lib/search_.h: Likewise.
12954 * lib/signal_.h: Likewise.
12955 * lib/stdint_.h: Likewise.
12956 * lib/stdio_.h: Likewise.
12957 * lib/stdlib_.h: Likewise.
12958 * lib/string_.h: Likewise.
12959 * lib/sys_stat_.h: Likewise.
12960 * lib/sys_time_.h: Likewise.
12961 * lib/time_.h: Likewise.
12962 * lib/unistd_.h: Likewise.
12963 * lib/wchar_.h: Likewise.
12964 * lib/wctype_.h: Likewise.
12965 * lib/dirent_.h: Likewise.
12966 * lib/iconv_.h: Likewise.
12967 * lib/locale_.h: Likewise.
12968 * lib/netinet_in_.h: Likewise.
12969 * lib/sys_select_.h: Likewise.
12970 * lib/sys_socket_.h: Likewise.
12971 * lib/sysexits_.h: Likewise.
12972 * modules/fcntl (Depends-on): Depend on include_next, not
12974 (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
12975 HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
12976 * modules/fchdir: Likewise.
12977 * modules/float: Likewise.
12978 * modules/iconv_open: Likewise.
12979 * modules/inttypes: Likewise.
12980 * modules/locale: Likewise.
12981 * modules/math: Likewise.
12982 * modules/netinet_in: Likewise.
12983 * modules/search: Likewise.
12984 * modules/signal: Likewise.
12985 * modules/stdint: Likewise.
12986 * modules/stdio: Likewise.
12987 * modules/stdlib: Likewise.
12988 * modules/string: Likewise.
12989 * modules/sys_select: Likewise.
12990 * modules/sys_socket: Likewise.
12991 * modules/sys_stat: Likewise.
12992 * modules/sys_time: Likewise.
12993 * modules/sysexits: Likewise.
12994 * modules/time: Likewise.
12995 * modules/unistd: Likewise.
12996 * modules/wchar: Likewise.
12997 * modules/wctype: Likewise.
12998 * modules/sys_stat: Change maintainer to "all".
12999 * modules/unistd: Likewise.
13001 2007-06-20 Karl Berry <karl@gnu.org>
13003 * config/srclist.txt: track www changes in license files.
13005 2007-06-20 Sergey Poznyakoff <gray@gnu.org.ua>
13007 * build-aux/bootstrap: Remove stray dot.
13008 Make sure build_aux settings are honored when linking
13009 gnulib_extra_files.
13011 2007-06-19 Eric Blake <ebb9@byu.net>
13013 * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
13014 Allow compilation on cygwin.
13016 2007-06-19 Jim Meyering <jim@meyering.net>
13018 xreadlink-with-size: Remove module. No longer used.
13019 Ex-callers now use xreadlink or mreadlink-with-size.
13020 * modules/xreadlink-with-size: Remove module.
13021 * lib/xreadlink-with-size.c: Remove file.
13022 * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
13023 (xreadlink): Remove inaccurate comment. The one in xreadlink.c,
13024 just before the function definition *is* accurate.
13026 Eliminate one way canonicalize_filename_mode could exit.
13027 * lib/canonicalize.c (canonicalize_filename_mode):
13028 Use mreadlink_with_size, not xreadlink_with_size.
13030 2007-06-18 Paul Eggert <eggert@cs.ucla.edu>
13032 Detect porting problems to FreeBSD/arm, which has time_t wider than
13033 long int. Original problem reported for GNU diff by Xin Li in
13034 <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
13035 * modules/getdate (Depends-on): Add intprops, verify.
13036 * lib/getdate.y: Include intprops.h, verify.h. Verify that time_t
13037 is an integer type no wider than long int.
13039 2007-06-18 Jim Meyering <jim@meyering.net>
13041 New module: mreadlink-with-size.
13042 * MODULES.html.sh: Add mreadlink-with-size.
13043 * modules/mreadlink-with-size: New module
13044 * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
13045 not xreadlink-with-size.
13046 * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
13048 2007-06-16 Bruno Haible <bruno@clisp.org>
13050 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
13051 * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
13052 Reported by Gary V. Vaughan <gary@gnu.org>.
13054 2007-06-15 Paul Eggert <eggert@cs.ucla.edu>
13056 Revamp lchown so that it lives in unistd.h where it belongs.
13057 * lib/lchown.h: Remove.
13058 * lib/dirchownmod.c: Don't include lib/lchown.h.
13059 * lib/fchownat.c: Likewise.
13060 * lib/openat.c: Likewise.
13061 * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
13062 does not follow symlinks.
13063 (EOPNOTSUPP): Define if not defined.
13064 * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
13066 (lchown): New decl.
13067 * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
13068 Do not check for lchown decl.
13069 Set REPLACE_LCHOWN.
13070 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
13072 * modules/chown: Make it clear it follows symlinks.
13073 * modules/lchown: Make it clear it doesn't follow symlinks.
13074 (Files): Remove lib/lchown.h
13075 (Depends-on): Add unistd.
13076 (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
13077 (Include): Include <unistd.h>, not "lchown.h".
13078 * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
13081 2007-06-15 Jim Meyering <jim@meyering.net>
13083 Change license (GPL to LGPL) of fsusage and dependents.
13084 * modules/fsusage (License): Change to LGPL.
13085 * modules/full-read (License): Likewise.
13086 * modules/full-write (License): Likewise.
13087 * modules/safe-read (License): Likewise.
13088 * modules/safe-write (License): Likewise.
13090 2007-06-14 Ben Pfaff <blp@gnu.org>
13092 Missing part of allocsa -> malloca transition.
13093 * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
13096 2007-06-12 Bruno Haible <bruno@clisp.org>
13098 * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
13099 to ia64, x86_64, i386.
13100 Reported by Eric Blake.
13102 2007-06-12 Bruno Haible <bruno@clisp.org>
13104 * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
13105 cross-compiling to x86_64.
13107 2007-06-12 Paul Eggert <eggert@cs.ucla.edu>
13109 * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
13110 glitch reported by Ralf Wildenhues in
13111 <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
13113 * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
13116 2007-06-11 Bruno Haible <bruno@clisp.org>
13118 * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
13119 replacement string.
13120 Reported by Eric Blake.
13122 2007-06-10 Bruno Haible <bruno@clisp.org>
13124 Prepare vasnprintf code for use with Unicode strings.
13125 * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
13126 (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
13128 (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
13129 a_u32_string variants.
13130 (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
13131 * lib/printf-args.c: Don't include config.h and the specification
13132 header if PRINTF_FETCHARGS is already defined.
13133 (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
13134 (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
13135 TYPE_U16_STRING, TYPE_U32_STRING.
13136 * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
13137 u16_directive, u16_directives, u32_directive, u32_directives): New
13139 (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
13141 * lib/printf-parse.c: Don't include config.h and the specification
13142 header if PRINTF_PARSE is already defined. Eliminate the set of
13143 parameters for WIDE_CHAR_VERSION; the user of this file must provide
13144 them now. Include c-ctype.h.
13145 (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
13146 directive and CHAR_T_ONLY_ASCII.
13147 * lib/vasnprintf.c: Don't include config.h and the specification header
13148 if VASNPRINTF is already defined.
13149 (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
13150 (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
13151 DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
13152 type. Handle the case that TCHAR_T and FCHAR_T are not of the same
13153 size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
13154 add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
13156 (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
13157 pad_ourselves also in this case, with the 'c' and 's' directives, and
13158 with a different notion of "width".
13159 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
13161 2007-06-10 Bruno Haible <bruno@clisp.org>
13163 * modules/unistr/u32-mbsnlen: New file.
13164 * lib/unistr/u32-mbsnlen.c: New file.
13166 * modules/unistr/u16-mbsnlen: New file.
13167 * lib/unistr/u16-mbsnlen.c: New file.
13169 * modules/unistr/u8-mbsnlen: New file.
13170 * lib/unistr/u8-mbsnlen.c: New file.
13172 * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
13175 2007-06-10 Bruno Haible <bruno@clisp.org>
13177 * lib/string_.h (mbsnlen): New declaration.
13178 * lib/mbsnlen.c: New file.
13179 * m4/mbsnlen.m4: New file.
13180 * modules/mbsnlen: New file.
13181 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
13182 * modules/string (string.h): Substitute GNULIB_MBSNLEN.
13183 * MODULES.html.sh (Internationalization functions): Add mbsnlen.
13185 2007-06-10 Bruno Haible <bruno@clisp.org>
13187 * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
13189 2007-06-10 Bruno Haible <bruno@clisp.org>
13191 * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
13192 * lib/mbuiter.h: Likewise.
13194 2007-06-10 Bruno Haible <bruno@clisp.org>
13196 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
13199 2007-06-10 Karl Berry <karl@gnu.org>
13201 * config/srclist.txt: remove gettext entries, Bruno prefers
13202 to update individually.
13204 2007-06-10 Bruno Haible <bruno@clisp.org>
13206 * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
13207 'maxlen'. Ensure only length + width bytes are allocated, not
13208 length + 1 + width.
13210 2007-06-09 Bruno Haible <bruno@clisp.org>
13212 * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
13213 (CHAR_T): Remove macro.
13214 (VASNPRINTF): Update.
13216 2007-06-09 Bruno Haible <bruno@clisp.org>
13218 * MODULES.html.sh (Unicode string functions): Add the new modules.
13220 * modules/uniconv/u32-conv-to-enc: New file.
13221 * lib/uniconv/u32-conv-to-enc.c: New file.
13222 * modules/uniconv/u32-conv-to-enc-tests: New file.
13223 * tests/uniconv/test-u32-conv-to-enc.c: New file.
13225 * modules/uniconv/u16-conv-to-enc: New file.
13226 * lib/uniconv/u16-conv-to-enc.c: New file.
13227 * lib/uniconv/u-conv-to-enc.h: New file.
13228 * modules/uniconv/u16-conv-to-enc-tests: New file.
13229 * tests/uniconv/test-u16-conv-to-enc.c: New file.
13231 * modules/uniconv/u8-conv-to-enc: New file.
13232 * lib/uniconv/u8-conv-to-enc.c: New file.
13233 * modules/uniconv/u8-conv-to-enc-tests: New file.
13234 * tests/uniconv/test-u8-conv-to-enc.c: New file.
13236 * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
13237 u32_conv_to_encoding): New declarations.
13239 2007-06-09 Bruno Haible <bruno@clisp.org>
13241 * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
13243 2007-06-09 Bruno Haible <bruno@clisp.org>
13245 Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
13246 * modules/malloca: Renamed from modules/allocsa, updated.
13247 * lib/malloca.h: Renamed from lib/allocsa.h, updated.
13248 * lib/malloca.c: Renamed from lib/allocsa.c, updated.
13249 * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
13250 * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
13251 * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
13252 * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
13253 * modules/xmalloca: Renamed from modules/xallocsa, updated.
13254 * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
13255 * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
13256 * modules/c-strcasestr (Depends-on): Update.
13257 * lib/c-strcasestr.c: Update.
13258 * modules/c-strstr (Depends-on): Update.
13259 * lib/c-strstr.c: Update.
13260 * modules/canonicalize-lgpl (Depends-on): Update.
13261 * lib/canonicalize-lgpl.c: Update.
13262 * modules/clean-temp (Depends-on): Update.
13263 * lib/clean-temp.c: Update.
13264 * modules/csharpcomp (Depends-on): Update.
13265 * lib/csharpcomp.c: Update.
13266 * modules/csharpexec (Depends-on): Update.
13267 * lib/csharpexec.c: Update.
13268 * modules/javacomp (Depends-on): Update.
13269 * lib/javacomp.c: Update.
13270 * modules/javaexec (Depends-on): Update.
13271 * lib/javaexec.c: Update.
13272 * modules/mbscasestr (Depends-on): Update.
13273 * lib/mbscasestr.c: Update.
13274 * modules/mbsstr (Depends-on): Update.
13275 * lib/mbsstr.c: Update.
13276 * modules/setenv (Depends-on): Update.
13277 * lib/setenv.c: Update.
13278 * modules/strcasestr (Depends-on): Update.
13279 * lib/strcasestr.c: Update.
13280 * modules/striconveha (Depends-on): Update.
13281 * lib/striconveha.c: Update.
13282 * modules/relocatable-prog-wrapper (Files): Update.
13283 * lib/relocwrapper.c: Update.
13284 * build-aux/install-reloc: Update.
13285 * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
13287 2007-06-08 Bruno Haible <bruno@clisp.org>
13290 * lib/fbufmode.c (fbufmode): Add special code for uClibc.
13291 * lib/fpurge.c (fpurge): Likewise.
13292 * lib/freading.c (freading): Likewise.
13293 * lib/fseeko.c (rpl_fseeko): Likewise.
13294 * lib/fseterr.c (fseterr): Likewise.
13295 * lib/fwriting.c (fwriting): Likewise.
13296 * tests/test-fflush.c (main): Avoid a failure on uClibc.
13298 2007-06-08 Bruno Haible <bruno@clisp.org>
13300 * m4/intlmacosx.m4: New file, extracted from gettext.m4.
13301 * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
13302 * modules/gettext (Files): Add m4/intlmacosx.m4.
13304 2007-06-07 Bruno Haible <bruno@clisp.org>
13306 * modules/localename-tests: New file.
13307 * tests/test-localename.c: New file.
13309 New module 'localename'.
13310 * lib/localename.h: New file.
13311 * lib/localename.c: New file, from GNU gettext.
13312 * m4/localename.m4: New file.
13313 * modules/localename: New file.
13315 2007-06-07 Bruno Haible <bruno@clisp.org>
13317 Work around the lack of <wchar.h> on some builds of uClibc.
13318 * doc/headers/wchar.texi: Update.
13319 * lib/wchar_.h: Include <wchar.h> only if it exists.
13320 * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
13321 * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
13322 (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
13324 * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
13325 * modules/mbfile (Depends-on): Add wchar.
13326 * modules/mbiter (Depends-on): Likewise.
13327 * modules/mbuiter (Depends-on): Likewise.
13328 Reported by Simon Josefsson.
13330 2007-06-06 Paul Eggert <eggert@cs.ucla.edu>
13332 Work around problem reported by Steven M. Schweda in
13333 <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
13334 Tru64 5.1B with the Compaq compiler environment installed declares
13335 an 'isblank' function but does not define it in the C library.
13336 * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
13337 * lib/regex_internal.h (isblank): Likewise.
13338 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
13339 * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
13341 2007-06-05 Bruno Haible <bruno@clisp.org>
13343 Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
13345 * modules/printf-safe: New file.
13346 * modules/fprintf-posix (Depends-on): Add printf-safe.
13347 * modules/printf-posix (Depends-on): Likewise.
13348 * modules/snprintf-posix (Depends-on): Likewise.
13349 * modules/sprintf-posix (Depends-on): Likewise.
13350 * modules/vasnprintf-posix (Depends-on): Likewise.
13351 * modules/vasprintf-posix (Depends-on): Likewise.
13352 * modules/vfprintf-posix (Depends-on): Likewise.
13353 * modules/vprintf-posix (Depends-on): Likewise.
13354 * modules/vsnprintf-posix (Depends-on): Likewise.
13355 * modules/vsprintf-posix (Depends-on): Likewise.
13356 * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
13357 AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
13358 non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
13359 "no" on i386, x86_64, ia64.
13360 * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
13361 (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
13362 on i386, x86_64, ia64.
13363 * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
13364 (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
13365 on i386, x86_64, ia64.
13366 * tests/test-vasnprintf-posix.c: Include float.h.
13367 (LDBL80_WORDS): New macro.
13368 (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
13369 on i386, x86_64, ia64.
13370 * tests/test-vasprintf-posix.c: Include float.h.
13371 (LDBL80_WORDS): New macro.
13372 (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
13373 on i386, x86_64, ia64.
13374 * tests/test-snprintf-posix.c: Include float.h.
13375 * tests/test-sprintf-posix.c: Likewise.
13376 * tests/test-vsnprintf-posix.c: Likewise.
13377 * tests/test-vsprintf-posix.c: Likewise.
13379 2007-06-05 Bruno Haible <bruno@clisp.org>
13381 Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
13382 * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
13383 non-IEEE numbers on i386, x86_64, ia64.
13384 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
13385 * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
13386 * tests/test-isnanl.h: Include float.h.
13387 (main): Check also non-IEEE numbers on i386, x86_64, ia64.
13389 2007-06-05 Bruno Haible <bruno@clisp.org>
13391 * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
13392 also the %a / %A. Handle the %a / %A code before this extra handling.
13394 2007-06-05 Bruno Haible <bruno@clisp.org>
13396 * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
13397 NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
13399 2007-06-05 Bruno Haible <bruno@clisp.org>
13401 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
13402 typo in variable name.
13404 2007-06-05 Eric Blake <ebb9@byu.net>
13406 * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
13407 Reported by Simon Josefsson.
13409 2007-06-04 Bruno Haible <bruno@clisp.org>
13411 Avoid test failures on some PowerPC platforms.
13412 * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
13413 Define differently for PowerPC.
13414 * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
13415 Reported by Gary V. Vaughan <gary@gnu.org>.
13417 2007-06-02 Bruno Haible <bruno@clisp.org>
13419 Fix test-stdint failure on FreeBSD/ia64.
13420 * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
13421 PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
13422 WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
13423 * doc/headers/stdint.texi: Update.
13425 2007-06-01 Bruno Haible <bruno@clisp.org>
13427 * tests/test-binary-io.c (main): Pass a third argument to open().
13428 Reported by Gary V. Vaughan <gary@gnu.org>.
13430 2007-06-01 Bruno Haible <bruno@clisp.org>
13432 * doc/functions/frexpl.texi: Update for mingw.
13434 2007-06-01 Bruno Haible <bruno@clisp.org>
13436 * tests/test-lseek.c (main): Disable test of errno for invalid third
13438 * doc/functions/lseek.texi: Update.
13439 Reported by Gary V. Vaughan <gary@gnu.org>.
13441 2007-05-28 Bruno Haible <bruno@clisp.org>
13443 * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
13445 2007-05-31 Eric Blake <ebb9@byu.net>
13447 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
13450 2007-05-30 Eric Blake <ebb9@byu.net>
13451 and Bruno Haible <bruno@clisp.org>
13453 Work around mingw test failures exposed by m4-1.4.9b.
13454 * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
13455 * tests/test-unistd.c: Disable uid_t and git_t tests for the
13458 2007-05-30 Bruno Haible <bruno@clisp.org>
13460 * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
13461 assuming that they are closed. Needed on HP-UX 11.
13463 2007-05-29 Bruno Haible <bruno@clisp.org>
13465 Fix a problem with #include_next.
13466 * lib/dirent_.h: Split the double-inclusion guard.
13467 * lib/fcntl_.h: Likewise.
13468 * lib/float_.h: Likewise.
13469 * lib/iconv_.h: Likewise.
13470 * lib/inttypes_.h: Likewise.
13471 * lib/locale_.h: Likewise.
13472 * lib/math_.h: Likewise.
13473 * lib/netinet_in_.h: Likewise.
13474 * lib/search_.h: Likewise.
13475 * lib/signal_.h: Likewise.
13476 * lib/stdint_.h: Likewise.
13477 * lib/stdio_.h: Likewise.
13478 * lib/stdlib_.h: Likewise.
13479 * lib/string_.h: Likewise.
13480 * lib/sys_select_.h: Likewise.
13481 * lib/sys_socket_.h: Likewise.
13482 * lib/sys_stat_.h: Likewise.
13483 * lib/sys_time_.h: Likewise.
13484 * lib/sysexits_.h: Likewise.
13485 * lib/time_.h: Likewise.
13486 * lib/unistd_.h: Likewise.
13487 * lib/wchar_.h: Likewise.
13488 * lib/wctype_.h: Likewise.
13490 2007-05-29 Bruno Haible <bruno@clisp.org>
13492 * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
13495 2007-05-29 Bruno Haible <bruno@clisp.org>
13497 * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
13499 Reported by Eric Blake.
13501 2007-05-29 Bruno Haible <bruno@clisp.org>
13503 * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
13506 2007-05-29 Eric Blake <ebb9@byu.net>
13507 Bruno Haible <bruno@clisp.org>
13509 * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
13512 2007-05-28 Eric Blake <ebb9@byu.net>
13514 * modules/closein-tests (test_closein_LDADD): Support test on
13515 cygwin with libtool.
13517 2007-05-28 Bruno Haible <bruno@clisp.org>
13519 * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
13520 * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
13521 * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
13522 * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
13523 * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
13524 * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
13525 * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
13526 * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
13527 * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
13529 2007-05-28 Eric Blake <ebb9@byu.net>
13531 Unconditionally include <config.h> in unit tests.
13532 * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
13533 * tests/test-allocsa.c, tests/test-arcfour.c,
13534 tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
13535 tests/test-array_list.c, tests/test-array_oset.c,
13536 tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
13537 test-avltreehash_list.c, test-base64.c, test-binary-io.c,
13538 test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
13539 test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
13540 test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
13541 test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
13542 test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
13543 test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
13544 test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
13545 test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
13546 test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
13547 test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
13548 test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
13549 test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
13550 test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
13551 test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
13552 test-md5.c, test-memmem.c, test-printf-posix.c,
13553 test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
13554 test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
13555 test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
13556 test-strcasestr.c, test-striconv.c, test-striconveh.c,
13557 test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
13558 test-vasnprintf-posix2.c, test-vasnprintf.c,
13559 test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
13560 test-vfprintf-posix.c, test-vprintf-posix.c,
13561 test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
13562 test-xvasprintf.c: Likewise.
13564 2007-05-28 Bruno Haible <bruno@clisp.org>
13566 * gnulib-tool (func_import): Remember the --with-tests command-line
13567 option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
13568 Reported by Eric Blake.
13570 2007-05-28 Bruno Haible <bruno@clisp.org>
13572 * modules/ftell-tests: New file.
13573 * tests/test-ftell.c: New file, based on tests/test-ftello.c.
13574 * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
13576 * lib/ftell.c: New file.
13577 * modules/ftell: New file.
13578 * m4/ftell.m4: New file.
13579 * doc/functions/ftell.texi: Update.
13580 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
13582 * lib/stdio_.h (rpl_ftell): New declaration.
13583 * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
13586 2007-05-28 Eric Blake <ebb9@byu.net>
13588 * lib/allocsa.h (safe_alloca): Avoid compiler warning.
13590 2007-05-28 Bruno Haible <bruno@clisp.org>
13592 * modules/fseek-tests: New file.
13593 * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
13594 * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
13596 * lib/fseek.c: New file.
13597 * modules/fseek: New file.
13598 * m4/fseek.m4: New file.
13599 * doc/functions/fseek.texi: Update.
13600 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
13602 * lib/stdio_.h (rpl_fseek): New declaration.
13603 * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
13606 2007-05-28 Bruno Haible <bruno@clisp.org>
13608 * lib/stdio_.h (fflush): More comments.
13610 2007-05-28 Bruno Haible <bruno@clisp.org>
13612 * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
13615 2007-05-28 Eric Blake <ebb9@byu.net>
13617 Improve lseek module.
13618 * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
13619 * lib/unistd_.h (lseek): Scale back link warning message.
13620 * tests/test-lseek.c: Beef up test.
13621 * tests/test-lseek.sh: Exercise more facets of lseek.
13622 Reported by Bruno Haible.
13624 2007-05-28 Bruno Haible <bruno@clisp.org>
13626 * tests/test-unistd.c: Test all the types that <unistd.h> is expected
13629 2007-05-27 Bruno Haible <bruno@clisp.org>
13631 * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
13633 2007-05-27 Bruno Haible <bruno@clisp.org>
13635 * modules/openmp: New file.
13636 * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
13639 2007-05-26 Bruno Haible <bruno@clisp.org>
13641 * modules/chdir-long (Depends-on): Add fchdir.
13642 * modules/chdir-safer (Depends-on): Likewise.
13643 * modules/fts (Depends-on): Likewise.
13644 * modules/fts-lgpl (Depends-on): Likewise.
13645 * modules/openat (Depends-on): Likewise.
13646 * modules/savewd (Depends-on): Likewise.
13648 2007-05-24 Eric Blake <ebb9@byu.net>
13650 Fix lseek on mingw.
13651 * modules/lseek: New module.
13652 * m4/lseek.m4: New file.
13653 * lib/lseek.c: New file.
13654 * modules/lseek-tests: New file.
13655 * tests/test-lseek.c: New file.
13656 * tests/test-lseek.sh: New file.
13657 * MODULES.html.sh: Document lseek module.
13658 * modules/fflush (Depends-on): Add lseek, fseeko.
13659 * modules/fseeko (Depends-on): Likewise.
13660 * modules/ftello (Depends-on): Likewise.
13661 * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
13663 * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
13665 * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
13666 * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
13667 * lib/ftello.c (rpl_ftello): Likewise.
13668 * tests/test-fseeko.c (main): Test this.
13669 * tests/test-fseeko.sh: Likewise.
13670 * tests/test-ftello.c (main): Likewise.
13671 * tests/test-ftello.sh: Likewise.
13672 * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
13673 implies replacing fseek.
13674 * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
13676 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
13677 * modules/unistd (Makefile.am): Likewise.
13678 * lib/unistd_.h (lseek): Declare a replacement.
13679 * doc/functions/lseek.texi (lseek): Document this fix.
13680 * doc/functions/fseek.texi (fseek): Likewise.
13681 * doc/functions/ftell.texi (ftell): Likewise.
13683 2007-05-24 Bruno Haible <bruno@clisp.org>
13685 * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
13686 in the printed representation of a NaN.
13687 * tests/test-vasprintf-posix.c (test_function): Likewise.
13688 * tests/test-snprintf-posix.h (test_function): Likewise.
13689 * tests/test-sprintf-posix.h (test_function): Likewise.
13690 Reported by Eric Blake.
13692 2007-05-23 Eric Blake <ebb9@byu.net>
13694 Fix fseeko/ftello on cygwin 1.5.24.
13695 * doc/functions/fseeko.texi (fseeko): Document the fix.
13696 * doc/functions/ftello.texi (ftello): Document the fix.
13697 * doc/functions/stdin.texi (stdin): Document the cygwin bug.
13698 * doc/functions/stdout.text (stdout): New file.
13699 * doc/functions/stderr.text (stderr): New file.
13700 * doc/gnulib.texi (Function Substitutes): Use new files.
13701 * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
13703 * tests/test-ftello.c (main): Likewise for ftello.
13704 * tests/test-fseeko.sh: New file.
13705 * tests/test-ftello.sh: New file.
13706 * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
13707 with seekable stdin.
13708 * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
13709 * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
13710 (gl_REPLACE_FSEEKO): New macro.
13711 * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
13712 * modules/fseeko (Files): Distribute fseeko.c.
13713 * modules/ftello (Files): Distribute ftello.c.
13714 * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
13716 * lib/ftello.c (rpl_ftello): New file.
13717 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
13719 (gl_STDIN_LARGE_OFFSET): New macro.
13720 * modules/stdio (Makefile.am): Perform the replacement.
13721 * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
13723 2007-05-23 Bruno Haible <bruno@clisp.org>
13725 * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
13726 GNULIB_POSIXCHECK is defined.
13728 2007-05-21 Bruno Haible <bruno@clisp.org>
13730 * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
13731 Check also the output for NaN arguments. When cross-compiling, guess
13733 * lib/vasnprintf.c: Update comments.
13734 * tests/test-vasnprintf-posix.c (strisnan): New function.
13735 (test_function): Use it.
13736 * tests/test-vasprintf-posix.c (strisnan): New function.
13737 (test_function): Use it.
13738 * tests/test-snprintf-posix.h (strisnan): New function.
13739 (test_function): Use it.
13740 * tests/test-sprintf-posix.h (strisnan): New function.
13741 (test_function): Use it.
13742 Reported by Eric Blake.
13744 2007-05-20 Bruno Haible <bruno@clisp.org>
13746 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
13747 numbers that fails on BeOS.
13748 * doc/functions/frexpl.texi: Update.
13750 2007-05-20 Jim Meyering <jim@meyering.net>
13752 * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
13753 forced upon us by glibc-2.6.
13755 2007-05-20 Bruno Haible <bruno@clisp.org>
13757 Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
13758 * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
13759 (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
13760 * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
13761 NEED_PRINTF_INFINITE.
13762 (is_infinitel): New function.
13763 (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
13764 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
13765 gl_PREREQ_VASNPRINTF_INFINITE.
13766 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
13767 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
13768 gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
13769 gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
13770 gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
13771 gl_PREREQ_VASNPRINTF_INFINITE.
13772 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
13773 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
13774 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
13775 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
13776 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
13777 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
13778 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
13779 * doc/functions/fprintf.texi: Update.
13780 * doc/functions/printf.texi: Update.
13781 * doc/functions/snprintf.texi: Update.
13782 * doc/functions/sprintf.texi: Update.
13783 * doc/functions/vfprintf.texi: Update.
13784 * doc/functions/vprintf.texi: Update.
13785 * doc/functions/vsnprintf.texi: Update.
13786 * doc/functions/vsprintf.texi: Update.
13788 2007-05-20 Bruno Haible <bruno@clisp.org>
13790 * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
13791 was not found in libc.
13792 * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
13794 2007-05-20 Bruno Haible <bruno@clisp.org>
13796 * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
13797 printed as "-nan" instead of "nan".
13798 * tests/test-vasprintf-posix.c (test_function): Likewise.
13799 * tests/test-snprintf-posix.h (test_function): Likewise.
13800 * tests/test-sprintf-posix.h (test_function): Likewise.
13801 Needed for HP-UX 11.
13803 2007-05-20 Jim Meyering <jim@meyering.net>
13805 Fix buggy test for the fchownat-deref bug.
13806 * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
13807 symlink required for the run-test. Without it, this test would
13808 always declare that fchownat doesn't work, and client code would
13809 unnecessarily use the replacement function with fixed libc.
13810 (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
13811 Reported by Greg Schafer.
13813 2007-05-19 Bruno Haible <bruno@clisp.org>
13815 * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
13816 (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
13817 * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
13818 Needed for IRIX 6.5 and Solaris 2.5.1.
13820 2007-05-19 Bruno Haible <bruno@clisp.org>
13822 * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
13823 (test_function): Skip tests involving -0.0 on platforms where
13825 * tests/test-vasprintf-posix.c (have_minus_zero): New function.
13826 (test_function): Skip tests involving -0.0 on platforms where
13828 * tests/test-snprintf-posix.h (have_minus_zero): New function.
13829 (test_function): Skip tests involving -0.0 on platforms where
13831 * tests/test-sprintf-posix.h (have_minus_zero): New function.
13832 (test_function): Skip tests involving -0.0 on platforms where
13834 * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
13836 * tests/test-printf-posix.h (test_function): Likewise.
13837 * tests/test-printf-posix.output: Remove all -0.0 related results.
13838 Needed for IRIX 6.5.
13840 2007-05-19 Bruno Haible <bruno@clisp.org>
13842 * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
13843 printed as "nan0x7fffffff" instead of "nan".
13844 * tests/test-vasprintf-posix.c (test_function): Likewise.
13845 * tests/test-snprintf-posix.h (test_function): Likewise.
13846 * tests/test-sprintf-posix.h (test_function): Likewise.
13847 * tests/test-fprintf-posix.h (NaN): Remove macro.
13848 (test_function): Remove all NaN related tests.
13849 * tests/test-printf-posix.h (NaN): Remove macro.
13850 (test_function): Remove all NaN related tests.
13851 * tests/test-printf-posix.output: Remove all NaN related results.
13852 Needed for IRIX 6.5.
13854 2007-05-19 Bruno Haible <bruno@clisp.org>
13856 * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
13857 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
13859 2007-05-19 Bruno Haible <bruno@clisp.org>
13861 * lib/float_.h: New file.
13862 * m4/float_h.m4: New file.
13863 * modules/float: New file.
13864 * modules/isnanl (Dependencies): Add float.
13865 * modules/isnanl-nolibm (Dependencies): Likewise.
13866 * modules/mathl (Dependencies): Likewise.
13867 * modules/printf-frexpl (Dependencies): Likewise.
13868 * modules/signbit (Dependencies): Likewise.
13869 * modules/vasnprintf (Dependencies): Likewise.
13870 * doc/headers/float.texi: Update.
13872 2007-05-19 Jim Meyering <jim@meyering.net>
13874 * lib/utimens.c (gl_futimens): Rename from futimens,
13875 now that glibc-2.6 declares futimens.
13876 * lib/utimens.h: Likewise.
13878 2007-05-19 Bruno Haible <bruno@clisp.org>
13880 Avoid test failures on mingw.
13881 * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
13882 * tests/test-printf-posix.sh: Likewise.
13883 * tests/test-vfprintf-posix.sh: Likewise.
13884 * tests/test-vprintf-posix.sh: Likewise.
13886 2007-05-19 Bruno Haible <bruno@clisp.org>
13888 Fix *printf result for NaN, Inf, -0.0 on mingw.
13889 * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
13890 * lib/vasnprintf.c: Include math.h and isnan.h.
13891 (is_infinite_or_zero): New function.
13892 (VASNPRINTF): Fix also the handling of infinite or zero 'double'
13893 values in the %f, %F, %e, %E, %g, %G directives.
13894 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
13895 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
13896 gl_PRINTF_INFINITE and test its result. Invoke
13897 gl_PREREQ_VASNPRINTF_INFINITE.
13898 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
13899 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
13900 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
13901 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
13902 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
13903 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
13904 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
13905 * doc/functions/fprintf.texi: Update.
13906 * doc/functions/printf.texi: Update.
13907 * doc/functions/snprintf.texi: Update.
13908 * doc/functions/sprintf.texi: Update.
13909 * doc/functions/vfprintf.texi: Update.
13910 * doc/functions/vprintf.texi: Update.
13911 * doc/functions/vsnprintf.texi: Update.
13912 * doc/functions/vsprintf.texi: Update.
13914 2007-05-19 Bruno Haible <bruno@clisp.org>
13916 * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
13917 (scale10_round_decimal_long_double): Inline scale10_round_long_double.
13918 Instead of multiplying with 10^k, set extra_zeroes to k.
13919 (scale10_round_long_double): Remove function.
13921 2007-05-18 Bruno Haible <bruno@clisp.org>
13923 * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
13924 introduced on 2007-05-06.
13926 2007-05-18 Bruno Haible <bruno@clisp.org>
13928 * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
13930 * tests/test-vasprintf-posix.c (test_function): Likewise.
13931 * tests/test-snprintf-posix.h (test_function): Likewise.
13932 * tests/test-sprintf-posix.h (test_function): Likewise.
13934 2007-05-18 Bruno Haible <bruno@clisp.org>
13936 * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
13937 (strmatch): New function.
13938 (test_function): Test the %f directive on numbers of various exponents.
13939 * tests/test-vasprintf-posix.c (SIZEOF): New macro.
13940 (strmatch): New function.
13941 (test_function): Test the %f directive on numbers of various exponents.
13942 * tests/test-snprintf-posix.h (strmatch): New function.
13943 (test_function): Test the %f directive on numbers of various exponents.
13944 * tests/test-sprintf-posix.h (strmatch): New function.
13945 (test_function): Test the %f directive on numbers of various exponents.
13946 * tests/test-snprintf-posix.c (SIZEOF): New macro.
13947 * tests/test-sprintf-posix.c (SIZEOF): New macro.
13948 * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
13949 * tests/test-vsprintf-posix.c (SIZEOF): New macro.
13951 2007-05-18 Bruno Haible <bruno@clisp.org>
13953 Add support for 'long double' number output.
13954 * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
13955 * lib/vasnprintf.c: Include math.h and float+.h.
13956 (mp_limb_t): New type.
13957 (GMP_LIMB_BITS): New macro.
13958 (mp_twolimb_t): New type.
13959 (GMP_TWOLIMB_BITS): New macro.
13961 (multiply, divide, convert_to_decimal, decode_long_double,
13962 scale10_round_long_double, scale10_round_decimal_long_double,
13963 floorlog10l): New functions.
13964 (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
13965 for the %f, %F, %e, %E, %g, %G directives.
13966 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
13967 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
13968 gl_PRINTF_LONG_DOUBLE and test its result. Invoke
13969 gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
13970 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
13971 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
13972 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
13973 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
13974 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
13975 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
13976 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
13977 * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
13978 * modules/snprintf-posix (Depends-on): Likewise.
13979 * modules/sprintf-posix (Depends-on): Likewise.
13980 * modules/vasnprintf-posix (Depends-on): Likewise.
13981 * modules/vasprintf-posix (Depends-on): Likewise.
13982 * modules/vfprintf-posix (Depends-on): Likewise.
13983 * modules/vsnprintf-posix (Depends-on): Likewise.
13984 * modules/vsprintf-posix (Depends-on): Likewise.
13985 * modules/vasnprintf (Files): Add lib/float+.h.
13986 * doc/functions/fprintf.texi: Update.
13987 * doc/functions/printf.texi: Update.
13988 * doc/functions/snprintf.texi: Update.
13989 * doc/functions/sprintf.texi: Update.
13990 * doc/functions/vfprintf.texi: Update.
13991 * doc/functions/vprintf.texi: Update.
13992 * doc/functions/vsnprintf.texi: Update.
13993 * doc/functions/vsprintf.texi: Update.
13995 2007-05-18 Bruno Haible <bruno@clisp.org>
13997 * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
13999 2007-05-18 Bruno Haible <bruno@clisp.org>
14001 * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
14002 for printing 64-bit integers. Needed for mingw.
14004 2007-05-18 Bruno Haible <bruno@clisp.org>
14006 * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
14007 gl_FUNC_FREXPL_WORKS.
14008 * modules/printf-frexpl (Files): Add m4/frexpl.m4.
14010 2007-05-18 Bruno Haible <bruno@clisp.org>
14012 * modules/frexpl-nolibm-tests: New file.
14014 * modules/frexpl-nolibm: New file.
14015 * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
14017 2007-05-17 Paul Eggert <eggert@cs.ucla.edu>
14019 * lib/dirent_.h: Prefer #include_next <foo.h> to #include
14020 @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@. This works better with
14021 GCC 4.2, which otherwise issues a lot of warnings.
14022 * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
14023 * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
14025 * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
14026 * modules/iconv_open (iconv.h): Likewise.
14027 * modules/locale (locale.h): Likewise.
14028 * modules/netinet_in (netinet/in.h): Likewise.
14029 * modules/sys_select (sys_select.h): Likewise.
14030 * modules/sys_socket (sys/socket.h): Likewise.
14031 * modules/sys_stat (sys/stat.h): Likewise.
14032 * modules/sysexits (sysexits.h): Likewise.
14033 * modules/unistd (unistd.h): Likewise.
14035 2007-05-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14037 * modules/closein-tests (Makefile.am): Distribute
14040 2007-05-17 Bruno Haible <bruno@clisp.org>
14042 * tests/test-printf-posix.output: Renamed from
14043 tests/test-fprintf-posix.out.
14044 * modules/fprintf-posix-tests: Update.
14045 * modules/printf-posix-tests: Update.
14046 * modules/vfprintf-posix-tests: Update.
14047 * modules/vprintf-posix-tests: Update.
14048 * tests/test-fprintf-posix.sh: Update.
14049 * tests/test-printf-posix.sh: Update.
14050 * tests/test-vfprintf-posix.sh: Update.
14051 * tests/test-vprintf-posix.sh: Update.
14052 Reported by Ralf Wildenhues.
14054 2007-05-16 Paul Eggert <eggert@cs.ucla.edu>
14056 * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
14057 @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@. This works better with
14058 GCC 4.2, which otherwise issues a lot of warnings.
14059 * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
14060 * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
14061 * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
14062 * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
14063 it should no longer be needed.
14064 * lib/string_.h: Likewise.
14065 * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
14066 * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
14067 * modules/inttypes (inttypes.h): Likewise.
14068 * modules/math (math.h): Likewise.
14069 * modules/search (search.h): Likewise.
14070 * modules/signal (signal.h): Likewise.
14071 * modules/stdint (stdint.h): Likewise.
14072 * modules/stdio (stdio.h): Likewise.
14073 * modules/stdlib (stdlib.h): Likewise.
14074 * modules/string (string.h): Likewise.
14075 * modules/sys_time (sys/time.h): Likewise.
14076 * modules/time (time.h): Likewise.
14077 * modules/wchar (wchar.h): Likewise.
14078 * modules/wctype (wtype.h): Likewise.
14080 2007-05-16 Thien-Thi Nguyen <ttn@gnuvola.org> (tiny change)
14082 * doc/gnulib-tool.texi (CVS Issues): Fix typo.
14084 2007-05-13 Bruno Haible <bruno@clisp.org>
14086 * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
14087 * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
14088 * strsep.m4 (gl_FUNC_STRSEP): Likewise.
14089 * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
14090 (gl_PREREQ_STRTOK_R): Don't require it here.
14092 2007-05-13 Bruno Haible <bruno@clisp.org>
14094 * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
14095 when used in C++ mode.
14097 2007-05-12 Bruno Haible <bruno@clisp.org>
14099 * lib/linebuffer.h: Tweak doc.
14100 * lib/linebuffer.c: Likewise.
14102 2007-05-12 James Youngman <jay@gnu.org>
14104 * lib/linebuffer.c (readlinebuffer_delim): New function,
14105 like readlinebuffer, but use a caller-specified delimiter.
14106 (readlinebuffer): Just call readlinebuffer_delim with '\n'
14108 * lib/linebuffer.h (readlinebuffer_delim): Declare it.
14110 2007-05-12 Sergey Poznyakoff <gray@gnu.org.ua>
14112 * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
14113 * modules/openat (Files): Remove openat-die.c.
14114 (Depends-on): Add openat-die.
14115 * modules/openat-die: New module.
14117 2007-05-06 Bruno Haible <bruno@clisp.org>
14119 * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
14120 Update with info about Cygwin.
14121 * doc/functions/fprintf.texi: Update.
14122 * doc/functions/printf.texi: Update.
14123 * doc/functions/snprintf.texi: Update.
14124 * doc/functions/sprintf.texi: Update.
14125 * doc/functions/vfprintf.texi: Update.
14126 * doc/functions/vprintf.texi: Update.
14127 * doc/functions/vsnprintf.texi: Update.
14128 * doc/functions/vsprintf.texi: Update.
14129 Reported by Eric Blake.
14131 2007-05-06 Bruno Haible <bruno@clisp.org>
14133 * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
14134 padding ourselves for the floating-point directives.
14135 * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
14136 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
14137 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
14138 gl_PRINTF_FLAG_ZERO and test its result. Invoke
14139 gl_PREREQ_VASNPRINTF_FLAG_ZERO.
14140 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
14141 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
14142 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
14143 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
14144 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
14145 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
14146 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
14147 * tests/test-snprintf-posix.h (test_function): Also check the width
14148 and some flags in the %f directive.
14149 * tests/test-sprintf-posix.h (test_function): Likewise.
14150 * tests/test-vasnprintf-posix.c (test_function): Likewise.
14151 * tests/test-vasprintf-posix.c (test_function): Likewise.
14152 * doc/functions/fprintf.texi: Update.
14153 * doc/functions/printf.texi: Update.
14154 * doc/functions/snprintf.texi: Update.
14155 * doc/functions/sprintf.texi: Update.
14156 * doc/functions/vfprintf.texi: Update.
14157 * doc/functions/vprintf.texi: Update.
14158 * doc/functions/vsnprintf.texi: Update.
14159 * doc/functions/vsprintf.texi: Update.
14161 2007-05-06 Bruno Haible <bruno@clisp.org>
14163 * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
14164 pass the ' flag character to sprintf or snprintf.
14165 * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
14166 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
14167 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
14168 gl_PRINTF_FLAG_GROUPING and test its result. Invoke
14169 gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
14170 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
14171 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
14172 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
14173 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
14174 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
14175 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
14176 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
14177 * tests/test-snprintf-posix.h (test_function): Also check the grouping
14179 * tests/test-sprintf-posix.h (test_function): Likewise.
14180 * tests/test-vasnprintf-posix.c (test_function): Likewise.
14181 * tests/test-vasprintf-posix.c (test_function): Likewise.
14182 * doc/functions/fprintf.texi: Update.
14183 * doc/functions/printf.texi: Update.
14184 * doc/functions/snprintf.texi: Update.
14185 * doc/functions/sprintf.texi: Update.
14186 * doc/functions/vfprintf.texi: Update.
14187 * doc/functions/vprintf.texi: Update.
14188 * doc/functions/vsnprintf.texi: Update.
14189 * doc/functions/vsprintf.texi: Update.
14191 2007-05-01 Bruno Haible <bruno@clisp.org>
14193 * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
14195 2007-05-03 Paul Eggert <eggert@cs.ucla.edu>
14197 * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
14198 comment for D_INO_IN_DIRENT. Problem reported by James Youngman.
14200 2007-05-02 Paul Eggert <eggert@cs.ucla.edu>
14202 * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
14203 readdir returns garbage in d_ino. Problem reported by Kaz Sasayama in
14204 <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
14206 2007-05-02 Sergey Poznyakoff <gray@gnu.org.ua>
14208 * lib/argp-help.c (struct hol_entry): New member `ord'.
14209 (HOL_ENTRY_PTRCMP): Use ord for comparison
14210 (hol_sort): Initialize ord.
14212 2007-05-01 Bruno Haible <bruno@clisp.org>
14214 * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
14215 Reported by Eric Blake.
14216 * doc/gnulib.texi (Function Substitutes): Update.
14218 2007-05-01 Bruno Haible <bruno@clisp.org>
14220 * doc/functions.texi: Remove file, now redundant through
14221 doc/functions/*.texi.
14223 2007-05-01 Bruno Haible <bruno@clisp.org>
14225 * modules/argp (Depends-on): Add sleep.
14227 2007-05-01 Bruno Haible <bruno@clisp.org>
14229 * modules/sleep-tests: New file.
14230 * tests/test-sleep.c: New file.
14232 * modules/sleep: New file.
14233 * lib/sleep.c: New file.
14234 * m4/sleep.m4: New file.
14235 * lib/unistd_.h (sleep): New declaration.
14236 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
14238 * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
14239 * doc/functions/sleep.texi: Document the sleep module.
14241 2007-05-01 Bruno Haible <bruno@clisp.org>
14243 * lib/sigprocmask.h: Remove file.
14244 * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
14245 * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
14246 * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
14247 HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
14248 * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
14249 gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
14250 (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
14251 HAVE_SIGSET_T as a shell variable.
14252 * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
14253 HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
14254 * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
14255 (Depends-on): Add signal. Remove verify.
14256 (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
14257 (Include): Mention <signal.h> instead of sigprocmask.h.
14258 * NEWS: Mention the change.
14259 * lib/fatal-signal.c: Don't include sigprocmask.h.
14261 2007-05-01 Bruno Haible <bruno@clisp.org>
14263 * modules/signal: New file.
14264 * lib/signal_.h: New file.
14265 * m4/signal_h.m4: New file.
14267 2007-05-01 Bruno Haible <bruno@clisp.org>
14269 * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
14270 * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
14271 * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
14272 HAVE_WCTYPE_CTMP_BUG into wctype.h.
14274 2007-05-01 Bruno Haible <bruno@clisp.org>
14276 * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
14278 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
14279 HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
14280 * modules/sys_stat (Makefile.am): Substitute their values into
14283 2007-05-01 Bruno Haible <bruno@clisp.org>
14285 * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
14286 * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
14287 * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
14289 2007-05-01 Bruno Haible <bruno@clisp.org>
14291 * doc/header/assert.texi: Undo last change: don't mention the gnulib
14292 'assert' module here.
14294 2007-05-01 Bruno Haible <bruno@clisp.org>
14296 * doc/functions/*.texi: New files.
14297 * doc/functions/google-ranking.txt: New file.
14298 * doc/gnulib.texi (Function Substitutes): New chapter.
14299 (ctime, inet_ntoa): Remove sections.
14300 * doc/ctime.texi: Remove file.
14301 * doc/inet_ntoa.texi: Remove file.
14302 * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
14304 (%.info): New rule, specifying a --reference-limit.
14306 2007-05-01 Bruno Haible <bruno@clisp.org>
14308 * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
14310 2007-05-01 Bruno Haible <bruno@clisp.org>
14312 * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
14313 the portability of 'mkdir' to mingw systems.
14315 2007-05-01 Bruno Haible <bruno@clisp.org>
14317 * doc/headers/google-ranking.txt: New file.
14319 2007-04-30 Eric Blake <ebb9@byu.net>
14321 Prefer fseeko to fseek.
14322 * modules/getpass (Depends-on): Add fseeko.
14323 * lib/getpass.c (getpass): Use fseeko, not fseek.
14325 2007-04-30 Sergey Poznyakoff <gray@gnu.org.ua>
14327 * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
14328 assumes the sorting is stable, while most qsort implementations
14329 are not. Use argument addresses to ensure they never compare as
14332 * tests/test-argp-2.sh (usage-indent test): Fix output
14333 (func_compare): Restore diff options
14334 * tests/test-argp.c: Restore #include "progname.h"
14336 2007-04-29 Bruno Haible <bruno@clisp.org>
14338 * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
14339 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
14340 gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
14341 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
14342 * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
14343 (configure.ac): Define CHECK_SNPRINTF_POSIX.
14344 (TESTS, check_PROGRAMS): Add test-snprintf.
14345 * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
14346 (configure.ac): Define CHECK_VSNPRINTF_POSIX.
14347 (TESTS, check_PROGRAMS): Add test-vsnprintf.
14348 * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
14349 assertions that fail on HP-UX, OSF/1, or IRIX.
14350 * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
14352 2007-04-29 Bruno Haible <bruno@clisp.org>
14354 * MODULES.html.sh (posix_functions): Remove 'contents'.
14356 2007-04-29 Karl Berry <karl@gnu.org>
14358 * config/srclist.txt (gendocs_template_min): new entry.
14360 2007-04-29 Bruno Haible <bruno@clisp.org>
14362 Work around fpurge bug on BSD systems.
14363 * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
14364 * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
14365 * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
14366 fpurge to rpl_fpurge if the system already has this function.
14367 * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
14368 the case where the system already has this function. Correct invariants
14370 * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
14373 2007-04-29 Sergey Poznyakoff <gray@gnu.org.ua>
14375 * lib/argp-help.c (hol_cluster_cmp): Reverse comparison. Change
14376 proposed by Sven Verdoolaege.
14378 * tests/test-argp.c: Fix option ordering. Test deeply clustered
14380 * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
14381 (usage and help tests): Update
14383 2007-04-29 Bruno Haible <bruno@clisp.org>
14385 * tests/test-fflush.c (main): Use a file of size 17, not 10.
14386 Print more information in case of failure. Disable a test on BeOS.
14388 2007-04-29 Bruno Haible <bruno@clisp.org>
14390 * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
14391 This helps debugging on systems on which no gdb is available.
14393 2007-04-29 Bruno Haible <bruno@clisp.org>
14395 * lib/freading.h: Improve comments.
14396 * lib/fwriting.h: Likewise.
14397 * tests/test-freading.c (main): Don't check freading immediately after
14398 repositioning. Needed for glibc.
14400 2007-04-29 Bruno Haible <bruno@clisp.org>
14402 * lib/freading.c (freading): Trivial simplification.
14404 2007-04-28 Bruno Haible <bruno@clisp.org>
14406 * tests/test-fwriting.c (main): Also test the interaction between
14407 fflush and fwriting.
14408 * modules/fwriting-tests (Depends-on): Add fflush.
14410 * tests/test-freading.c (main): Also test the interaction between
14411 fflush and freading.
14412 * modules/freading-tests (Depends-on): Add fflush.
14414 2007-04-28 Bruno Haible <bruno@clisp.org>
14416 * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
14418 Suggested by Eric Blake.
14420 2007-04-28 Jim Meyering <jim@meyering.net>
14422 Avoid false-negative in gl_STDINT_H's C99 conformance test.
14423 * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
14424 to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
14426 2007-04-27 Eric Blake <ebb9@byu.net>
14428 * doc/headers/assert.texi (assert.h): Document assert module use.
14430 2007-04-27 Bruno Haible <bruno@clisp.org>
14432 * doc/headers/*.texi: New files.
14433 * doc/gnulib.texi (Header File Substitutes): New chapter.
14434 * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
14436 (standards.info ,standards.html, standards.dvi): Update dependencies.
14437 (mostlyclean, clean): New targets.
14439 2007-04-27 Bruno Haible <bruno@clisp.org>
14441 * lib/sysexits_.h: Renamed from lib/sysexit_.h.
14442 * modules/sysexits (Files, Makefile.am): Update.
14444 * lib/sys_socket_.h: Renamed from lib/socket_.h.
14445 * modules/sys_socket (Files, Makefile.am): Update.
14447 * lib/sys_stat_.h: Renamed from lib/stat_.h.
14448 * modules/sys_stat (Files, Makefile.am): Update.
14450 2007-04-27 Eric Blake <ebb9@byu.net>
14452 * lib/freading.h: Improve comments.
14453 * lib/fwriting.h: Likewise.
14454 * lib/fflush.c: Likewise.
14456 Fix closein for mingw.
14457 * modules/closein-tests: Add tests for closein.
14458 * tests/test-closein.c: New file.
14459 * tests/test-closein.sh: Likewise.
14460 * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
14461 * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
14463 2007-04-27 Bruno Haible <bruno@clisp.org>
14465 * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
14467 * lib/math_.h [__DECC]: Likewise.
14468 * lib/stdio_.h [__DECC]: Likewise.
14469 * lib/stdlib_.h [__DECC]: Likewise.
14470 * lib/string_.h [__DECC]: Likewise.
14471 * lib/time_.h [__DECC]: Likewise.
14472 * lib/wchar_.h [__DECC]: Likewise.
14473 * lib/wctype_.h [__DECC]: Likewise.
14475 2007-04-27 Bruno Haible <bruno@clisp.org>
14477 * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
14479 2007-04-27 Bruno Haible <bruno@clisp.org>
14481 * lib/fflush.c: Add comments.
14482 * modules/fpurge-tests (Depends-on): Add fflush.
14483 * modules/freadable-tests (Depends-on): Likewise.
14484 * modules/fwritable-tests (Depends-on): Likewise.
14486 2007-04-27 Charles Wilson <libtool@cwilson.fastmail.fm>
14488 * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
14489 SYSTEM_ARGZ_IS_BROKEN. Also, minor stylistic improvements.
14490 Report by Bruno Haible <bruno@clisp.org>.
14492 2007-04-26 Eric Blake <ebb9@byu.net>
14494 Fix fflush on mingw.
14495 * modules/fflush (Depends-on): Add freading.
14496 * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
14499 2007-04-26 Eric Blake <ebb9@byu.net>
14500 and Bruno Haible <bruno@clisp.org>
14502 Implement freading and fwriting.
14503 * lib/freading.c: New file.
14504 * lib/freading.h: Likewise.
14505 * m4/freading.m4: Likewise.
14506 * modules/freading: Likewise.
14507 * modules/freading-tests: Likewise.
14508 * tests/test-freading.c: Likewise.
14509 * lib/fwriting.c: New file.
14510 * lib/fwriting.h: Likewise.
14511 * m4/fwriting.m4: Likewise.
14512 * modules/fwriting: Likewise.
14513 * modules/fwriting-tests: Likewise.
14514 * tests/test-fwriting.c: Likewise.
14515 * MODULES.html.sh (File stream based Input/Output): Mention them.
14517 2007-04-26 Bruno Haible <bruno@clisp.org>
14519 * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
14520 'long' when we assume it.
14521 Suggested by Eric Blake.
14523 2007-04-26 Bruno Haible <bruno@clisp.org>
14525 Ensure fseeko, ftello are declared on glibc systems.
14526 * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
14527 * modules/fseeko (configure.ac-early): Likewise.
14528 * modules/ftello (configure.ac-early): Likewise.
14529 * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
14530 AC_FUNC_FSEEKO for this.
14531 * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
14532 (gl_CHECK_FSEEKO): Remove macro.
14534 2007-04-26 Bruno Haible <bruno@clisp.org>
14536 * tests/test-fflush.c (main): Also check the ftell result after
14537 fflush and fseek/fseeko.
14538 * lib/fflush.c (rpl_fflush): For BSD implementations, update the
14539 file descriptor position cache in the stream.
14540 * lib/fseeko.c (rpl_fseeko): Likewise.
14542 2007-04-26 Bruno Haible <bruno@clisp.org>
14544 * modules/fflush-tests (Depends-on): Add fseeko.
14546 2007-04-25 Charles Wilson <libtool@cwilson.fastmail.fm>
14547 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14549 * lib/argz_.h: ensure error_t definition is obtained in same
14550 mechanism system argz.h would have.
14551 * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
14552 argz facilities are known bad. Err on the side of caution if
14555 2007-04-25 Eric Blake <ebb9@byu.net>
14557 * lib/fpurge.c (includes): Use stdlib.h for free.
14558 * tests/test-fflush.c (main): Also test fflush-fseeko.
14560 2007-04-25 Bruno Haible <bruno@clisp.org>
14562 Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
14563 * lib/fseeko.c: New file.
14564 * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
14565 (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
14566 * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
14568 (gl_FUNC_FSEEKO): Invoke it.
14569 * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
14570 gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
14571 * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
14573 2007-04-25 Bruno Haible <bruno@clisp.org>
14575 * modules/fflush (Depends-on): Add ftello.
14577 2007-04-25 Bruno Haible <bruno@clisp.org>
14579 * modules/ftello-tests: New file.
14580 * tests/test-ftello.c: New file.
14582 * modules/ftello: New file.
14583 * m4/ftello.m4: New file.
14584 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
14586 * lib/stdio_.h (ftello): New declaration.
14587 * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
14590 2007-04-25 Bruno Haible <bruno@clisp.org>
14592 * modules/fseeko-tests: New file.
14593 * tests/test-fseeko.c: New file.
14595 * modules/fseeko: New file.
14596 * m4/fseeko.m4: New file.
14597 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
14599 * lib/stdio_.h (fseeko): New declaration.
14600 * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
14603 2007-04-25 Bruno Haible <bruno@clisp.org>
14605 * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
14607 2007-04-25 Bruno Haible <bruno@clisp.org>
14609 * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
14610 * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
14611 * tests/test-unistd.c: Likewise.
14612 * tests/test-fcntl.c: Likewise.
14614 2007-04-23 Eric Blake <ebb9@byu.net>
14616 * lib/fflush.c: Fix missing include.
14617 Reported by Bruno Haible.
14619 2007-04-23 Bruno Haible <bruno@clisp.org>
14621 * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
14622 Reported by Eric Blake.
14624 2007-04-23 Bruno Haible <bruno@clisp.org>
14626 * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
14628 2007-04-23 Bruno Haible <bruno@clisp.org>
14630 * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
14632 2007-04-23 Bruno Haible <bruno@clisp.org>
14634 * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
14635 Needed on HP-UX 11.
14637 2007-04-16 Eric Blake <ebb9@byu.net>
14639 Make fflush rely on fpurge.
14640 * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
14641 open coding all variants.
14642 * modules/fflush (Depends-on): Add fpurge and unistd.
14643 * modules/fflush-tests (Depends-on): Unistd is no longer extra.
14644 * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
14646 Fix --with-tests compilation on cygwin.
14647 * modules/argmatch-tests (Makefile.am): List gnulib library first
14649 * modules/argp-tests (Makefile.am): Likewise.
14650 * modules/array-list-tests (Makefile.am): Likewise.
14651 * modules/array-oset-tests (Makefile.am): Likewise.
14652 * modules/avltree-list-tests (Makefile.am): Likewise.
14653 * modules/avltree-oset-tests (Makefile.am): Likewise.
14654 * modules/avltreehash-list-tests (Makefile.am): Likewise.
14655 * modules/carray-list-tests (Makefile.am): Likewise.
14656 * modules/dirname-tests (Makefile.am): Likewise.
14657 * modules/frexp-tests (Makefile.am): Likewise.
14658 * modules/isnanl-tests (Makefile.am): Likewise.
14659 * modules/linked-list-tests (Makefile.am): Likewise.
14660 * modules/linkedhash-list-tests (Makefile.am): Likewise.
14661 * modules/lock-tests (Makefile.am): Likewise.
14662 * modules/rbtree-list-tests (Makefile.am): Likewise.
14663 * modules/rbtree-oset-tests (Makefile.am): Likewise.
14664 * modules/rbtreehash-list-tests (Makefile.am): Likewise.
14665 * modules/tls-tests (Makefile.am): Likewise.
14666 * modules/tsearch-tests (Makefile.am): Likewise.
14667 * modules/xvasprintf-tests (Makefile.am): Likewise.
14669 Fix fpurge for cygwin.
14670 * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
14672 * modules/fpurge-tests (Depends-on): Clean up trash.
14674 2007-04-16 Simon Josefsson <simon@josefsson.org>
14676 * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
14678 * m4/autobuild.m4: Re-indent.
14680 2007-04-13 Bruno Haible <bruno@clisp.org>
14682 * modules/fpurge-tests: New file.
14683 * tests/test-fpurge.c: New file.
14685 * modules/fpurge: New file.
14686 * lib/fpurge.h: New file.
14687 * lib/fpurge.c: New file.
14688 * m4/fpurge.m4: New file.
14690 2007-04-13 Bruno Haible <bruno@clisp.org>
14692 * modules/fbufmode-tests: New file.
14693 * tests/test-fbufmode.c: New file.
14695 * modules/fbufmode: New file.
14696 * lib/fbufmode.h: New file.
14697 * lib/fbufmode.c: New file.
14698 * m4/fbufmode.m4: New file.
14700 2007-04-13 Bruno Haible <bruno@clisp.org>
14702 * modules/fwritable-tests: New file.
14703 * tests/test-fwritable.c: New file.
14705 * modules/fwritable: New file.
14706 * lib/fwritable.h: New file.
14707 * lib/fwritable.c: New file.
14708 * m4/fwritable.m4: New file.
14710 2007-04-13 Bruno Haible <bruno@clisp.org>
14712 * modules/freadable-tests: New file.
14713 * tests/test-freadable.c: New file.
14715 * modules/freadable: New file.
14716 * lib/freadable.h: New file.
14717 * lib/freadable.c: New file.
14718 * m4/freadable.m4: New file.
14720 2007-04-13 Bruno Haible <bruno@clisp.org>
14722 * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
14725 2007-04-13 Paul Eggert <eggert@cs.ucla.edu>
14727 * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
14728 gzip bootstrap.conf to avoid dragging in i18n machinery.
14729 (gnulib_tool_option): Use it.
14731 2007-04-13 Bruno Haible <bruno@clisp.org>
14733 * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
14735 * tests/test-vasprintf-posix.c (test_function): Likewise.
14736 * tests/test-snprintf-posix.h (test_function): Likewise.
14737 * tests/test-sprintf-posix.h (test_function): Likewise.
14738 * tests/test-fprintf-posix.h (test_function): Likewise.
14739 * tests/test-printf-posix.h (test_function): Likewise.
14740 * tests/test-fprintf-posix.out: Likewise.
14742 2007-04-13 Bruno Haible <bruno@clisp.org>
14744 * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
14745 * modules/tls-tests (configure.ac): Likewise.
14746 Reported by Arto C. Nirkko <anirkko@insel.ch>.
14748 2007-04-13 Bruno Haible <bruno@clisp.org>
14750 * lib/tls.c (glthread_tls_get): Fix return type.
14751 Patch by Arto C. Nirkko <anirkko@insel.ch>.
14753 2007-04-12 Eric Blake <ebb9@byu.net>
14755 * modules/gettime (Depends-on): Remove gettime.
14756 Reported by Dmitry V. Levin.
14758 2007-04-12 Bruno Haible <bruno@clisp.org>
14760 * modules/fflush (Include): Mention <stdio.h>.
14761 * modules/strtoimax (Include): Mention <inttypes.h>.
14762 * modules/strtoumax (Include): Likewise.
14764 2007-04-12 Eric Blake <ebb9@byu.net>
14766 * .cvsignore: New file.
14767 * .gitignore: Likewise.
14769 2007-04-12 Bruno Haible <bruno@clisp.org>
14771 * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
14772 not before, since $(LDADD) often contains libgnu.a.
14773 * modules/striconv-tests (test_striconv_LDADD): Likewise.
14774 * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
14775 * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
14778 2007-04-12 Eric Blake <ebb9@byu.net>
14780 Work around glibc's failure to flush stdin on fclose.
14781 * lib/closein.c (close_stdin): Flush stdin before closing.
14783 Work around glibc's failure to reset seekable stdin on exit.
14784 * modules/closein: New module.
14785 * lib/closein.c: New file.
14786 * lib/closein.h: Likewise.
14787 * m4/closein.m4: Likewise.
14788 * MODULES.html.sh (File stream based Input/Output): Document it.
14790 2007-04-12 Simon Josefsson <simon@josefsson.org>
14792 * gnulib-tool: Rename generated 'autobuild' script to
14793 'do-autobuild' in --create-megatestdir output.
14795 * doc/gnulib.texi (Build robot for gnulib): Fix.
14797 2007-04-12 Simon Josefsson <simon@josefsson.org>
14799 * modules/sysexits (Depends-on): Add absolute-header.
14801 2007-04-12 Eric Blake <ebb9@byu.net>
14803 No need to preserve errno on success.
14804 * lib/fflush.c (rpl_fflush): Simplify errno tracking.
14805 Reported by Bruno Haible.
14807 2007-04-12 Simon Josefsson <simon@josefsson.org>
14809 * MODULES.html.sh (Support for maintaining and releasing
14810 projects): Add autobuild. Suggested by Eric Blake <ebb9@byu.net>.
14812 2007-04-12 Simon Josefsson <simon@josefsson.org>
14814 * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
14816 2007-04-12 Simon Josefsson <simon@josefsson.org>
14818 * modules/autobuild: New module.
14820 * m4/autobuild.m4: New file.
14822 2007-04-11 Bruno Haible <bruno@clisp.org>
14824 * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
14825 %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
14826 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
14827 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
14828 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
14829 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
14830 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
14831 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
14832 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
14833 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
14834 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
14835 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
14836 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
14837 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
14838 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
14839 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
14840 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
14841 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
14842 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
14843 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
14844 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
14845 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
14846 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
14847 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
14848 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
14849 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
14850 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
14851 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
14852 Reported by Eric Blake.
14854 2007-04-11 Bruno Haible <bruno@clisp.org>
14856 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
14858 2007-04-10 Bruno Haible <bruno@clisp.org>
14860 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
14861 for NaN and Infinity. Needed on FreeBSD 6.1.
14862 * tests/test-vasnprintf-posix.c (test_function): Undo last change
14863 regarding results for "%010a" of Infinity and NaN.
14864 * tests/test-vasprintf-posix.c (test_function): Likewise.
14865 * tests/test-snprintf-posix.h (test_function): Likewise.
14866 * tests/test-sprintf-posix.h (test_function): Likewise.
14867 * tests/test-fprintf-posix.h (test_function): Likewise.
14868 * tests/test-printf-posix.h (test_function): Likewise.
14869 * tests/test-fprintf-posix.out: Likewise.
14871 2007-04-10 Bruno Haible <bruno@clisp.org>
14873 * modules/locale-tests: New file.
14874 * tests/test-locale.c: New file.
14876 * modules/locale: New file.
14877 * lib/locale_.h: New file.
14878 * m4/locale_h.m4: New file.
14880 2007-04-10 Paul Eggert <eggert@cs.ucla.edu>
14881 Bruno Haible <bruno@clisp.org>
14883 * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
14884 be determined, test for availability of the copysignf, copysign,
14885 copysignl functions.
14886 * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
14887 * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
14888 * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
14890 2007-04-09 Eric Blake <ebb9@byu.net>
14892 * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
14893 * modules/stdio (Makefile.am): Support fflush.
14894 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
14895 * modules/fflush: New file.
14896 * lib/fflush.c: Likewise.
14897 * m4/fflush.m4: Likewise.
14898 * modules/fflush-tests: New test.
14899 * tests/test-fflush.c: Likewise.
14900 * MODULES.html.sh (Input/output <stdio.h>): Document new module.
14902 2007-04-06 Bruno Haible <bruno@clisp.org>
14904 * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
14905 (VASNPRINTF): Use signbit for faster determination whether to print a
14907 * modules/vasnprintf (Files): Remove lib/float+.h.
14908 * modules/fprintf-posix (Depends-on): Add signbit.
14909 * modules/snprintf-posix (Depends-on): Likewise.
14910 * modules/sprintf-posix (Depends-on): Likewise.
14911 * modules/vasnprintf-posix (Depends-on): Likewise.
14912 * modules/vasprintf-posix (Depends-on): Likewise.
14913 * modules/vfprintf-posix (Depends-on): Likewise.
14914 * modules/vsnprintf-posix (Depends-on): Likewise.
14915 * modules/vsprintf-posix (Depends-on): Likewise.
14917 2007-04-06 Bruno Haible <bruno@clisp.org>
14919 * tests/test-frexp.c (main): Test also the sign bit of zero results.
14920 * tests/test-frexpl.c (main): Likewise.
14921 * tests/test-ldexpl.c (main): Likewise.
14922 * modules/frexp-tests (Depends-on): Add signbit.
14923 * modules/frexpl-tests (Depdends-on): Likewise.
14924 * modules/ldexpl-tests (Depdends-on): Likewise.
14926 2007-04-06 Bruno Haible <bruno@clisp.org>
14928 * modules/signbit-tests: New file.
14929 * tests/test-signbit.c: New file.
14931 * modules/signbit: New file.
14932 * lib/signbitf.c: New file.
14933 * lib/signbitd.c: New file.
14934 * lib/signbitl.c: New file.
14935 * m4/signbit.m4: New file.
14936 * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
14937 (signbit): New macro.
14938 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
14940 * modules/math (Makefile.am) Substibute also GNULIB_SIGNBIT and
14941 REPLACE_FREXPL into math.h.
14943 2007-04-06 Bruno Haible <bruno@clisp.org>
14945 * modules/isnanf-nolibm-tests: New file.
14946 * tests/test-isnanf.c: New file.
14948 * modules/isnanf-nolibm: New file.
14949 * lib/isnanf.h: New file.
14950 * lib/isnanf.c: New file.
14951 * lib/isnan.c: Consider the USE_FLOAT macro.
14952 * m4/isnanf.m4: New file.
14954 2007-04-06 Bruno Haible <bruno@clisp.org>
14956 * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
14957 (Link): New section.
14959 * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
14961 2007-04-06 Bruno Haible <bruno@clisp.org>
14963 Assume the 'long double' type.
14964 * m4/longdouble.m4: Remove file.
14965 * config/srclist.txt: Don't mention longdouble.m4.
14966 * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
14967 * lib/float+.h: Likewise.
14968 * lib/frexp.c: Likewise.
14969 * lib/printf-args.h: Likewise.
14970 * lib/printf-args.c: Likewise.
14971 * lib/printf-frexp.c: Likewise.
14972 * lib/printf-parse.c: Likewise.
14973 * lib/vasnprintf.c: Likewise.
14974 * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
14975 * m4/intl.m4: Likewise.
14976 * m4/isnanl.m4: Likewise.
14977 * m4/printf.m4: Likewise.
14978 * m4/printf-frexpl.m4: Likewise.
14979 * m4/vasnprintf.m4: Likewise.
14980 * modules/allocsa (Files): Remove m4/longdouble.m4.
14981 * modules/gettext (Files): Likewise.
14982 * modules/relocatable-prog-wrapper (Files): Likewise.
14983 * modules/vasnprintf (Files): Likewise.
14984 * modules/isnanl (Files): Likewise.
14985 (Include): Simplify.
14986 * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
14987 (Include): Simplify.
14988 * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
14989 (Include): Simplify.
14990 * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
14991 (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
14992 * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
14993 (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
14994 * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
14995 (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
14996 * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
14997 (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
14998 * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
14999 (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
15000 * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
15001 (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
15002 * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
15003 * tests/test-isnanl.c: Likewise.
15004 * tests/test-snprintf-posix.h: Likewise.
15005 * tests/test-sprintf-posix.h: Likewise.
15006 * tests/test-vasnprintf-posix.c: Likewise.
15007 * tests/test-vasnprintf-posix2.c: Likewise.
15008 * tests/test-vasprintf-posix.c: Likewise.
15010 2007-04-06 Bruno Haible <bruno@clisp.org>
15012 Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
15013 * lib/math_.h [__DECC]: Include the overridden include file through
15014 #include_next, outside the double-inclusion guard.
15015 * lib/stdio_.h [__DECC]: Likewise.
15016 * lib/stdlib_.h [__DECC]: Likewise.
15017 * lib/string_.h [__DECC]: Likewise.
15018 * lib/time_.h [__DECC]: Likewise.
15019 * lib/wchar_.h [__DECC]: Likewise.
15020 * lib/wctype_.h [__DECC]: Likewise.
15021 * lib/inttypes_.h [__DECC]: Likewise.
15022 Reported by Albert Chin <china@thewrittenword.com> in
15023 <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
15025 2007-04-04 Eric Blake <ebb9@byu.net>
15027 * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
15030 2007-04-04 Bruno Haible <bruno@clisp.org>
15032 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
15033 rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
15035 2007-04-04 Bruno Haible <bruno@clisp.org>
15037 * tests/test-vasnprintf-posix.c (test_function): Allow two possible
15038 results for "%010a" of Infinity and NaN.
15039 * tests/test-vasprintf-posix.c (test_function): Likewise.
15040 * tests/test-snprintf-posix.h (test_function): Likewise.
15041 * tests/test-sprintf-posix.h (test_function): Likewise.
15042 * tests/test-fprintf-posix.h (test_function): Remove these tests.
15043 * tests/test-printf-posix.h (test_function): Likewise.
15044 * tests/test-fprintf-posix.out: Update.
15045 Needed for FreeBSD 6.1.
15047 2007-04-04 Bruno Haible <bruno@clisp.org>
15049 * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
15050 directly used by the gnulib modules nor by gnulib-tool.
15052 2007-04-04 Paul Eggert <eggert@cs.ucla.edu>
15054 * DEPENDENCIES: Give overall description of version dependency
15055 desirability. Use more-typical names for apps.
15056 Add shell, coreutils, diffutils, grep, tar, gzip.
15058 2007-04-04 Simon Josefsson <simon@josefsson.org>
15060 * MODULES.html.sh: Rename crypto modules. Remove iconvme.
15062 2007-04-04 Karl Berry <karl@gnu.org>
15064 * MODULES.html.sh (func_module): missing '.
15066 2007-04-03 Bruno Haible <bruno@clisp.org>
15068 * modules/argmatch-tests (Makefile.am): New variable
15069 test_argmatch_LDADD.
15070 * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
15071 * modules/array-list-tests (Makefile.am): New variable
15072 test_array_list_LDADD.
15073 * modules/array-oset-tests (Makefile.am): New variable
15074 test_array_oset_LDADD.
15075 * modules/avltree-list-tests (Makefile.am): New variable
15076 test_avltree_list_LDADD.
15077 * modules/avltree-oset-tests (Makefile.am): New variable
15078 test_avltree_oset_LDADD.
15079 * modules/avltreehash-list-tests (Makefile.am): New variable
15080 test_avltreehash_list_LDADD.
15081 * modules/canonicalize-lgpl-tests (Makefile.am): New variable
15082 test_canonicalize_lgpl_LDADD.
15083 * modules/carray-list-tests (Makefile.am): New variable
15084 test_carray_list_LDADD.
15085 * modules/dirname-tests (Makefile.am): New variable
15086 test_dirname_LDADD.
15087 * modules/linked-list-tests (Makefile.am): New variable
15088 test_linked_list_LDADD.
15089 * modules/linkedhash-list-tests (Makefile.am): New variable
15090 test_linkedhash_list_LDADD.
15091 * modules/rbtree-list-tests (Makefile.am): New variable
15092 test_rbtree_list_LDADD.
15093 * modules/rbtree-oset-tests (Makefile.am): New variable
15094 test_rbtree_oset_LDADD.
15095 * modules/rbtreehash-list-tests (Makefile.am): New variable
15096 test_rbtreehash_list_LDADD.
15097 * modules/xvasprintf-tests (Makefile.am): New variable
15098 test_xvasprintf_LDADD.
15099 Reported by Eric Blake.
15101 2007-04-03 Eric Blake <ebb9@byu.net>
15103 * DEPENDENCIES: Weaken m4 requirements.
15105 2007-04-03 Bruno Haible <bruno@clisp.org>
15107 * modules/frexp-tests (configure.ac): Remove AC_SUBST.
15108 * modules/isnanl-tests (configure.ac): Likewise.
15110 2007-04-03 Ben Pfaff <blp@gnu.org>
15112 * modules/iconv_open: Add $(srcdir)/ to source directory
15113 references in Makefile fragments that call gperf, to fix VPATH
15116 2007-04-03 Bruno Haible <bruno@clisp.org>
15118 * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
15119 * lib/ldexpl.c: Undo last change.
15121 2007-04-03 Bruno Haible <bruno@clisp.org>
15123 * modules/printf-frexpl (Depends-on): Undo last change.
15124 (Files): Add m4/ldexpl.m4.
15126 2007-04-03 Bruno Haible <bruno@clisp.org>
15128 * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
15129 * modules/isnanl (Link): New section.
15131 * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
15132 * modules/frexp (Link): New section.
15134 * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
15135 * modules/frexpl (Link): New section.
15137 * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
15138 * modules/ldexpl (Link): New section.
15140 2007-04-03 Bruno Haible <bruno@clisp.org>
15142 * modules/TEMPLATE-EXTENDED: New file.
15143 * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
15145 2007-04-03 Bruno Haible <bruno@clisp.org>
15147 * DEPENDENCIES: New file.
15148 Suggested by Simon Josefsson.
15150 2007-04-03 Bruno Haible <bruno@clisp.org>
15152 * doc/gnulib.texi: Escape @.
15154 2007-04-03 James Youngman <jay@gnu.org>
15155 and Paul Eggert <eggert@cs.ucla.edu>
15157 * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
15158 birthtime on all systems that have birthtime, not just those which
15159 use st_birthtimensec rather than st_birthtim. Putting zero in
15160 st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
15161 that the birth time is not available for files on an NFS mount.
15163 2007-04-03 Simon Josefsson <simon@josefsson.org>
15165 * modules/memxor: Move back from crypto/, suggested by Bruno.
15166 * modules/crypto/hmac-sha1: Fix memxor dependency.
15168 * modules/crypto/gc: Moved from ../.
15170 2007-04-02 Eric Blake <ebb9@byu.net>
15172 * lib/ldexpl.c (includes): Avoid libm.
15174 * modules/printf-frexpl (Depends-on): Depend on ldexpl.
15176 2007-04-02 Bruno Haible <bruno@clisp.org>
15178 * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
15181 2007-04-02 Bruno Haible <bruno@clisp.org>
15183 * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
15184 x86 or x86_64 platforms running MacOS X.
15185 Reported by Ryan Schmidt <@ryandesign.com>.
15187 2007-04-02 Bruno Haible <bruno@clisp.org>
15189 * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
15192 2007-04-01 Simon Josefsson <simon@josefsson.org>
15194 * modules/crypto/arcfour: Moved from ../.
15195 * modules/crypto/arcfour-tests: Moved from ../.
15196 * modules/crypto/arctwo: Moved from ../.
15197 * modules/crypto/arctwo-tests: Moved from ../.
15198 * modules/crypto/des: Moved from ../.
15199 * modules/crypto/des-tests: Moved from ../.
15200 * modules/crypto/gc-arcfour: Moved from ../.
15201 * modules/crypto/gc-arcfour-tests: Moved from ../.
15202 * modules/crypto/gc-arctwo: Moved from ../.
15203 * modules/crypto/gc-arctwo-tests: Moved from ../.
15204 * modules/crypto/gc-des: Moved from ../.
15205 * modules/crypto/gc-des-tests: Moved from ../.
15206 * modules/crypto/gc-hmac-md5: Moved from ../.
15207 * modules/crypto/gc-hmac-md5-tests: Moved from ../.
15208 * modules/crypto/gc-hmac-sha1: Moved from ../.
15209 * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
15210 * modules/crypto/gc-md2: Moved from ../.
15211 * modules/crypto/gc-md2-tests: Moved from ../.
15212 * modules/crypto/gc-md4: Moved from ../.
15213 * modules/crypto/gc-md4-tests: Moved from ../.
15214 * modules/crypto/gc-md5: Moved from ../.
15215 * modules/crypto/gc-md5-tests: Moved from ../.
15216 * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
15217 * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
15218 * modules/crypto/gc-random: Moved from ../.
15219 * modules/crypto/gc-rijndael: Moved from ../.
15220 * modules/crypto/gc-rijndael-tests: Moved from ../.
15221 * modules/crypto/gc-sha1: Moved from ../.
15222 * modules/crypto/gc-sha1-tests: Moved from ../.
15223 * modules/crypto/gc-tests: Moved from ../.
15224 * modules/crypto/hmac-md5: Moved from ../.
15225 * modules/crypto/hmac-md5-tests: Moved from ../.
15226 * modules/crypto/hmac-sha1: Moved from ../.
15227 * modules/crypto/hmac-sha1-tests: Moved from ../.
15228 * modules/crypto/md2: Moved from ../.
15229 * modules/crypto/md2-tests: Moved from ../.
15230 * modules/crypto/md4: Moved from ../.
15231 * modules/crypto/md4-tests: Moved from ../.
15232 * modules/crypto/md5: Moved from ../.
15233 * modules/crypto/md5-tests: Moved from ../.
15234 * modules/crypto/memxor: Moved from ../.
15235 * modules/crypto/rijndael: Moved from ../.
15236 * modules/crypto/rijndael-tests: Moved from ../.
15237 * modules/crypto/sha1: Moved from ../.
15239 2007-03-30 James Youngman <jay@gnu.org>
15241 * tests/test-stat-time.c (prepare_test): use chmod() rather than
15242 rename() to change the ctime of a file (because ctime is unaffected
15243 by rename on jfs2 on AIX 5.1).
15244 (main): Start by doing cleanup, in case a previous run failed leaving
15247 2007-03-31 Bruno Haible <bruno@clisp.org>
15249 Support old proprietary implementations of iconv.
15250 * modules/iconv_open: New file.
15251 * lib/iconv_.h: New file.
15252 * m4/iconv_h.m4: New file.
15253 * lib/iconv_open.c: New file.
15254 * lib/iconv_open-aix.gperf: New file.
15255 * lib/iconv_open-hpux.gperf: New file.
15256 * lib/iconv_open-irix.gperf: New file.
15257 * lib/iconv_open-osf.gperf: New file.
15258 * m4/iconv_open.m4: New file.
15259 * modules/linebreak (Depends-on): Add iconv_open.
15260 * modules/striconv (Depends-on): Likewise.
15261 * modules/striconveh (Depends-on): Likewise.
15262 * modules/unicodeio (Depends-on): Likewise.
15263 * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
15265 * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
15266 conversion if cd is (iconv_t)(-1).
15267 (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
15270 2007-03-31 Bruno Haible <bruno@clisp.org>
15272 * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
15273 work on Solaris either. Protect also second use of "autodetect_jp".
15275 2007-03-31 Bruno Haible <bruno@clisp.org>
15277 * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
15278 the function is not present.
15280 2007-03-31 Bruno Haible <bruno@clisp.org>
15282 * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
15283 the function is not present.
15285 2007-03-31 Bruno Haible <bruno@clisp.org>
15287 * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
15288 a bug in HP-UX iconv_open().
15290 2007-03-31 Bruno Haible <bruno@clisp.org>
15292 * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
15293 (Mathematics <math.h>): New section, add fpieee.
15294 (Input/output <stdio.h>): Add fseterr.
15295 (Mathematics <math.h>): New section, add printf-frexp.
15296 (Container data structures): Add sublist.
15297 (Core language properties): Add fpucw, inline.
15298 (Functions for greatest-width integer types <inttypes.h>): Add
15299 imaxabs, imaxdiv, inttypes.
15300 (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
15301 isnanl-nolibm, ldexp.
15302 (Mathematics <math.h>): New section, add printf-frexpl.
15303 (Support for systems lacking POSIX:2001): Add fprintf-posix,
15304 printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
15305 sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
15306 vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
15307 (Unicode string functions): Add unistr/u*-mbtoucr.
15308 (Java): Add javacomp-script, javaexec-script.
15309 (C#): Add csharpcomp-script, csharpexec-script.
15310 (Support for building libraries and executables): Add havelib,
15312 (Support for maintaining and releasing projects): Renamed from
15313 'Support for maintaining and release projects'. Add announce-gen.
15315 2007-03-31 Bruno Haible <bruno@clisp.org>
15317 * README: Talk primarily about git.
15318 (git and CVS): Renamed from CVS.
15319 * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
15320 gnulib is available through git.
15321 * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
15323 2007-03-30 Bruno Haible <bruno@clisp.org>
15325 * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
15326 * lib/poll_.h: Likewise.
15327 * lib/stat_.h: Likewise.
15328 * lib/sys_time_.h: Likewise.
15329 * lib/sysexit_.h: Likewise.
15330 * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
15331 * lib/stdbool_.h: Likewise.
15332 * lib/byteswap_.h: Add double-inclusion guard.
15334 2007-03-30 Sergey Poznyakoff <gray@mirddin.farlep.net>
15336 * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
15338 2007-03-30 Karl Berry <karl@gnu.org>
15340 * config/srclist-update: double space after USA in the license
15341 substitution, since that's how it's usually (?) written.
15343 2007-03-30 Paul Eggert <eggert@cs.ucla.edu>
15345 * lib/write-any-file.c (can_write_any_file): Fix else-else bug
15346 reported by Bruno Haible.
15348 2007-03-29 Bruno Haible <bruno@clisp.org>
15350 * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
15351 a bug in AIX iconv().
15353 2007-03-29 Bruno Haible <bruno@clisp.org>
15355 * modules/ldexpl-tests: New file.
15356 * tests/test-ldexpl.c: New file.
15358 2007-03-29 Bruno Haible <bruno@clisp.org>
15360 * lib/ldexpl.c: Include fpucw.h.
15361 (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
15363 * modules/ldexpl (Depends-on): Add fpucw.
15365 2007-03-29 Bruno Haible <bruno@clisp.org>
15367 * modules/ldexpl: New file.
15368 * m4/ldexpl.m4: New file.
15369 * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
15371 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
15373 * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
15375 * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
15376 gl_FUNC_LDEXPL_WORKS.
15377 * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
15378 * modules/mathl (Files): Remove lib/ldexpl.c.
15379 (Depends-on): Add ldexpl.
15381 2007-03-29 Bruno Haible <bruno@clisp.org>
15383 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
15385 2007-03-29 Bruno Haible <bruno@clisp.org>
15387 * tests/test-striconveh.c (main): Don't assume that a direct conversion
15388 between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
15389 and possibly also HP-UX.
15390 * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
15391 work on AIX, IRIX, HP-UX, OSF/1.
15392 * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
15393 * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
15394 * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
15395 * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
15396 * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
15397 * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
15399 2007-03-29 Bruno Haible <bruno@clisp.org>
15401 * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
15403 2007-03-29 Paul Eggert <eggert@cs.ucla.edu>
15405 * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
15406 to work around a problem on OSF/1 5.1 reported by Bruno Haible.
15408 2007-03-29 Eric Blake <ebb9@byu.net>
15410 * lib/acl-internal.h: Remove redundant include.
15411 (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
15412 Cygwin when a file is locked.
15414 2007-03-29 Bruno Haible <bruno@clisp.org>
15416 * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
15418 * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
15420 2007-03-29 Paul Eggert <eggert@cs.ucla.edu>
15422 * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
15423 try to remove a parent directory if the child couldn't be removed
15424 (except for the first rmdir, which could fail because the child
15425 doesn't exist). Problem reported by Jeff Blaine in
15426 <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
15428 2007-03-28 Bruno Haible <bruno@clisp.org>
15430 * lib/striconveh.c (utf8conv_carefully): New function.
15431 (mem_cd_iconveh_internal): Invoke it.
15433 2007-03-28 Bruno Haible <bruno@clisp.org>
15435 * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
15436 of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
15438 * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
15439 utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
15442 2007-03-28 Bruno Haible <bruno@clisp.org>
15444 * modules/unistr/u8-mbtoucr: New file.
15445 * lib/unistr/u8-mbtoucr.c: New file.
15446 * modules/unistr/u16-mbtoucr: New file.
15447 * lib/unistr/u16-mbtoucr.c: New file.
15448 * modules/unistr/u16-mbtoucr: New file.
15449 * lib/unistr/u16-mbtoucr.c: New file.
15450 * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
15452 2007-03-27 Simon Josefsson <simon@josefsson.org>
15453 Bruno Haible <bruno@clisp.org>
15455 * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
15456 REPLACE_VASPRINTF. Set HAVE_VASPRINTF. Add
15457 AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
15459 * m4/stdio_h.m4: Add stubs for vasprintf too.
15461 * modules/stdio: Support vasprintf in sed command.
15463 * modules/vasprintf: Depend on stdio for prototypes. Remove
15464 vasprintf.h. Add stdio module indicator.
15466 * lib/stdio_.h: Declare asprintf and vasprintf, based on
15469 * lib/vasprintf.h: File removed.
15471 * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
15472 * lib/vasprintf.c: Ditto.
15473 * lib/xvasprintf.c: Ditto.
15474 * tests/test-vasprintf-posix.c: Ditto.
15475 * tests/test-vasprintf.c: Ditto.
15477 2007-03-27 Bruno Haible <bruno@clisp.org>
15479 Make vasnprintf multithread-safe.
15480 * lib/vasnprintf.c (decimal_point_char): New function.
15481 (VASNPRINTF): Use it.
15482 Suggested by Simon Josefsson.
15484 2007-03-27 Eric Blake <ebb9@byu.net>
15486 Support sub-second birthtime on cygwin.
15487 * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
15488 * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
15489 (get_stat_birthtime): Also work with st_birthtim.
15491 2007-03-27 Paul Eggert <eggert@cs.ucla.edu>
15493 * lib/stat-time.h (USE_BIRTHTIME): Remove.
15494 (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
15495 (get_stat_birthtime_ns): Do not try to use "spare" fields.
15496 (get_stat_birthtime_ns): Simplify compile-time tests.
15497 (get_stat_birthtime): Change the API to look like
15498 get_stat_mtime etc., except return a negative tv_nsec on error.
15499 * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
15500 Don't check for "spare" fields.
15501 (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
15502 or for struct stat.st_birthtime, as these tests aren't used.
15503 * tests/test-stat-time.c (test_birthtime): Adjust to new API.
15505 2007-03-27 Bruno Haible <bruno@clisp.org>
15507 * lib/stat-time.h: Include <sys/stat.h>.
15509 2007-03-27 James Youngman <jay@gnu.org>
15511 * lib/stat-time.h (get_stat_birthtime): New function for
15512 retrieving st_birthtime as provided by UFS2 (hence *BSD).
15513 * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
15515 * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
15516 * modules/stat-time-test: New file.
15517 * tests/test-stat-time.c: New test, devised by Bruno Haible.
15519 2007-03-26 Bruno Haible <bruno@clisp.org>
15521 Better support of signalling NaNs.
15522 * lib/atanl.c: Include isnanl.h.
15523 (atanl): Perform test for NaN at the beginning of the function and
15524 through a call to isnanl.
15525 * lib/cosl.c: Include isnanl.h.
15526 (cosl): Perform test for NaN at the beginning of the function and
15527 through a call to isnanl.
15528 * lib/ldexpl.c: Include isnanl.h.
15529 (ldexpl): Perform test for NaN through a call to isnanl.
15530 * lib/logl.c: Include isnanl.h.
15531 (logl): Perform test for NaN at the beginning of the function and
15532 through a call to isnanl.
15533 * lib/sinl.c: Include isnanl.h.
15534 (sinl): Perform test for NaN at the beginning of the function and
15535 through a call to isnanl.
15536 * lib/sqrtl.c: Include isnanl.h.
15537 (sqrtl): Perform test for NaN at the beginning of the function and
15538 through a call to isnanl.
15539 * lib/tanl.c: Include isnanl.h.
15540 (tanl): Perform test for NaN at the beginning of the function and
15541 through a call to isnanl.
15542 * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
15543 * modules/mathl (Depends-on): Add isnanl.
15545 2007-03-26 Eric Blake <ebb9@byu.net>
15547 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
15548 regression in logic sense of previous patch.
15550 2007-03-26 Bruno Haible <bruno@clisp.org>
15552 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
15553 unportable shell command "if ! ...".
15554 Reported by Ralf Wildenhues.
15556 2007-03-25 Bruno Haible <bruno@clisp.org>
15558 * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
15559 <sysexits.h> file, and only add EX_CONFIG.
15560 * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
15561 absolute file name and whether it is sufficient. Substitute also
15562 HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
15563 * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
15564 ABSOLUTE_SYSEXITS_H into sysexits.h.
15566 2007-03-25 Bruno Haible <bruno@clisp.org>
15568 * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
15571 2007-03-25 Bruno Haible <bruno@clisp.org>
15573 * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
15574 * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
15576 2007-03-25 Bruno Haible <bruno@clisp.org>
15578 * lib/vasnprintf.c: Include langinfo.h.
15579 (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
15581 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
15582 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
15583 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
15584 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
15585 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
15586 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
15587 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
15588 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
15589 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
15590 Reported by Simon Josefsson.
15592 2007-03-25 Bruno Haible <bruno@clisp.org>
15594 * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
15595 (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
15596 * modules/vasnprintf (Depends-on): Add stdint.
15598 2007-03-25 Bruno Haible <bruno@clisp.org>
15600 * modules/fpieee: New file.
15601 * m4/fpieee.m4: New file.
15602 * modules/isnan-nolibm (Depends-on): Add fpieee.
15603 * modules/isnanl-nolibm (Depends-on): Add fpieee.
15604 * modules/isnanl (Depends-on): Add fpieee.
15606 2007-03-25 Bruno Haible <bruno@clisp.org>
15608 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
15610 2007-03-25 Bruno Haible <bruno@clisp.org>
15612 Avoid test failures on IRIX 6.5.
15613 * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
15615 * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
15619 2007-03-25 Bruno Haible <bruno@clisp.org>
15621 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
15622 (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
15623 exists but doesn't work.
15624 * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
15625 is set. Don't provide a prototype if REPLACE_FREXPL is not set.
15626 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
15627 * modules/math (Makefile.am) Substibute also REPLACE_FREXPL into math.h.
15629 2007-03-25 Bruno Haible <bruno@clisp.org>
15631 * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
15632 returns inf. Needed on IRIX 6.5.
15634 2007-03-25 Bruno Haible <bruno@clisp.org>
15636 * tests/test-frexpl.c: Include isnanl-nolibm.h.
15637 (main): Use isnanl instead of x != x idiom.
15638 * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
15640 * tests/test-frexp.c: Include isnan.h.
15641 (main): Use isnan instead of x != x idiom.
15642 * modules/frexp-tests (Depends-on): Add isnan-nolibm.
15644 2007-03-25 Bruno Haible <bruno@clisp.org>
15646 * tests/test-frexp.c (NaN): New function/macro.
15647 (main): Use it instead of 0.0 / 0.0.
15648 * tests/test-isnan.c (NaN): New function/macro.
15649 (main): Use it instead of 0.0 / 0.0.
15650 * tests/test-vasnprintf-posix.c (NaN): New function/macro.
15651 (test_function): Use it instead of 0.0 / 0.0.
15652 * tests/test-vasprintf-posix.c (NaN): New function/macro.
15653 (test_function): Use it instead of 0.0 / 0.0.
15654 * tests/test-snprintf-posix.h (NaN): New function/macro.
15655 (test_function): Use it instead of 0.0 / 0.0.
15656 * tests/test-sprintf-posix.h (NaN): New function/macro.
15657 (test_function): Use it instead of 0.0 / 0.0.
15658 * tests/test-fprintf-posix.h (NaN): New function/macro.
15659 (test_function): Use it instead of 0.0 / 0.0.
15660 * tests/test-printf-posix.h (NaN): New function/macro.
15661 (test_function): Use it instead of 0.0 / 0.0.
15663 * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
15665 2007-03-25 Bruno Haible <bruno@clisp.org>
15667 * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
15669 2007-03-25 Bruno Haible <bruno@clisp.org>
15671 * lib/regexec.c (merge_state_with_log): Make static.
15673 2007-03-25 Bruno Haible <bruno@clisp.org>
15675 * lib/trigl.c (kernel_rem_pio2): Make static.
15677 2007-03-25 Bruno Haible <bruno@clisp.org>
15679 * lib/sincosl.c (sincosl_table): Make static.
15681 2007-03-25 Bruno Haible <bruno@clisp.org>
15683 * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
15684 if the compiler does not support C99.
15686 2007-03-25 Bruno Haible <bruno@clisp.org>
15688 * modules/time (Makefile.am): Ensure all rule action lines start with a
15691 2007-03-24 Bruno Haible <bruno@clisp.org>
15693 * modules/tsearch-tests: New file.
15694 * tests/test-tsearch.sh: New file.
15695 * tests/test-tsearch.c: New file, mostly copied from glibc.
15697 * modules/search-tests: New file.
15698 * tests/test-search.c: New file.
15700 * modules/search: New file.
15701 * lib/search_.h: New file, incorporating lib/tsearch.h.
15702 * m4/search_h.m4: New file.
15703 * lib/tsearch.h: Remove file.
15704 * lib/tsearch.c: Include search.h instead of tsearch.h.
15705 * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
15707 * modules/tsearch (Files): Remove lib/tsearch.h.
15708 (Depends-on): Add search.
15709 (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
15710 (Include): Change tsearch.h into search.h.
15712 2007-03-24 Bruno Haible <bruno@clisp.org>
15714 * modules/fpucw: New file.
15715 * lib/fpucw.h: New file.
15716 * lib/frexp.c: Include fpucw.h.
15717 (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
15719 * lib/printf-frexp.c: Include fpucw.h.
15720 (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
15722 * lib/vasnprintf.c: Include fpucw.h.
15723 (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
15724 'long double' calculations.
15725 * tests/test-frexpl.c: Include fpucw.h.
15726 (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
15727 * tests/test-printf-frexpl.c: Include fpucw.h.
15728 (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
15729 * modules/frexpl (Depends-on): Add fpucw.
15730 * modules/printf-frexpl (Depends-on): Likewise.
15731 * modules/fprintf-posix (Depends-on): Likewise.
15732 * modules/snprintf-posix (Depends-on): Likewise.
15733 * modules/sprintf-posix (Depends-on): Likewise.
15734 * modules/vasnprintf-posix (Depends-on): Likewise.
15735 * modules/vasprintf-posix (Depends-on): Likewise.
15736 * modules/vfprintf-posix (Depends-on): Likewise.
15737 * modules/vsnprintf-posix (Depends-on): Likewise.
15738 * modules/vsprintf-posix (Depends-on): Likewise.
15739 * modules/frexpl-tests (Depends-on): Likewise.
15740 * modules/printf-frexpl-tests (Depends-on): Likewise.
15742 2007-03-24 Bruno Haible <bruno@clisp.org>
15744 * lib/float+.h: New file.
15745 * lib/isnan.c: Include float+.h.
15747 (FUNC): Compare only SIZE bytes of the value.
15748 * lib/vasnprintf.c: Include float+.h.
15749 (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
15750 SIZEOF_LDBL or SIZEOF_DBL bytes.
15751 * modules/isnan-nolibm (Files): Add lib/float+.h.
15752 * modules/isnanl-nolibm (Files): Add lib/float+.h.
15753 * modules/isnanl (Files): Add lib/float+.h.
15754 * modules/vasnprintf (Files): Add lib/float+.h.
15756 2007-03-24 Bruno Haible <bruno@clisp.org>
15758 * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
15759 include isnanl-nolibm.h.
15761 2007-03-24 Bruno Haible <bruno@clisp.org>
15763 * tests/test-read-file.c (main): Don't produce spurious output for
15764 expected situations. Make the test fail if it encountered unexpected
15767 2007-03-24 Bruno Haible <bruno@clisp.org>
15769 * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
15770 since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
15772 2007-03-24 Bruno Haible <bruno@clisp.org>
15774 * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
15776 2007-03-24 Bruno Haible <bruno@clisp.org>
15778 * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
15779 utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
15781 * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
15782 * modules/utf8-ucs4: Turn into a symbolic link to module
15785 * modules/unistr/u8-mbtouc-unsafe: Add source files from module
15787 * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
15788 unistr/u8-mbtouc-unsafe.
15790 * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
15791 * modules/utf16-ucs4: Turn into a symbolic link to module
15794 * modules/unistr/u16-mbtouc-unsafe: Add source files from module
15796 * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
15797 unistr/u16-mbtouc-unsafe.
15799 * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
15800 * modules/ucs4-utf8: Turn into a symbolic link to module
15803 * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
15804 * modules/ucs4-utf16: Turn into a symbolic link to module
15807 2007-03-24 Bruno Haible <bruno@clisp.org>
15809 * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
15810 Enable the function only if HAVE_INLINE.
15811 * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
15812 lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
15813 * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
15814 Enable the function only if HAVE_INLINE.
15815 * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
15816 lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
15817 * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
15818 Enable the function only if HAVE_INLINE.
15819 * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
15820 Enable the function only if HAVE_INLINE.
15821 * modules/utf8-ucs4: Update.
15822 * modules/utf8-ucs4-unsafe: Update.
15823 * modules/utf16-ucs4: Update.
15824 * modules/utf16-ucs4-unsafe: Update.
15825 * modules/ucs4-utf8: Update.
15826 * modules/ucs4-utf16: Update.
15828 2007-03-24 Bruno Haible <bruno@clisp.org>
15830 * lib/utf8-ucs4.h: Remove file.
15831 * lib/utf8-ucs4-unsafe.h: Remove file.
15832 * lib/utf16-ucs4.h: Remove file.
15833 * lib/utf16-ucs4-unsafe.h: Remove file.
15834 * lib/ucs4-utf8.h: Remove file.
15835 * lib/ucs4-utf16.h: Remove file.
15836 * lib/unistr.h: Include their previous contents.
15837 * m4/utf-ucs4.m4: Remove file.
15838 * m4/ucs4-utf.m4: Remove file.
15839 * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
15840 (Depends-on): Add unistr/base.
15841 (configure.ac): Remove gl_UTF_UCS4.
15842 (Makefile.am): Update.
15843 (Include): Change to unistr.h.
15844 * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
15845 (Depends-on): Add unistr/base.
15846 (configure.ac): Remove gl_UTF_UCS4.
15847 (Makefile.am): Update.
15848 (Include): Change to unistr.h.
15849 * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
15850 (Depends-on): Add unistr/base.
15851 (configure.ac): Remove gl_UTF_UCS4.
15852 (Makefile.am): Update.
15853 (Include): Change to unistr.h.
15854 * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
15855 (Depends-on): Add unistr/base.
15856 (configure.ac): Remove gl_UTF_UCS4.
15857 (Makefile.am): Update.
15858 (Include): Change to unistr.h.
15859 * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
15860 (Depends-on): Add unistr/base.
15861 (configure.ac): Remove gl_UCS4_UTF.
15862 (Makefile.am): Update.
15863 (Include): Change to unistr.h.
15864 * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
15865 (Depends-on): Add unistr/base.
15866 (configure.ac): Remove gl_UCS4_UTF.
15867 (Makefile.am): Update.
15868 (Include): Change to unistr.h.
15869 * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
15870 * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
15871 utf8-ucs4-unsafe.h.
15872 * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
15873 * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
15874 utf16-ucs4-unsafe.h.
15875 * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
15876 * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
15877 * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
15878 * lib/unistr/u8-strchr.c: Likewise.
15879 * lib/unistr/u8-strrchr.c: Likewise.
15880 * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
15881 * lib/unistr/u16-strchr.c: Likewise.
15882 * lib/unistr/u16-strrchr.c: Likewise.
15883 * lib/striconveh.c: Update.
15884 * lib/linebreak.c: Update.
15886 2007-03-24 Bruno Haible <bruno@clisp.org>
15888 * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
15889 arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
15891 2007-03-22 Bruno Haible <bruno@clisp.org>
15893 * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
15895 2007-03-23 Paul Eggert <eggert@cs.ucla.edu>
15897 * MODULES.html.sh (File system functions): New module write-any-file.
15898 * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
15899 * m4/write-any-file.m4: New files.
15901 2007-03-23 Eric Blake <ebb9@byu.net>
15903 * gnulib-tool: Rearrange space-tab sequences, since some editors
15906 2007-03-23 Eric Blake <ebb9@byu.net>
15908 * lib/version-etc.c (version_etc_va): Update license wording to
15909 be more concise. Recommended by Richard Stallman.
15911 2007-03-22 Bruno Haible <bruno@clisp.org>
15913 * lib/poll.c (MSG_PEEK): New fallback definition.
15915 2007-03-22 Bruno Haible <bruno@clisp.org>
15917 * modules/sys_socket-tests (configure.ac): Check for shutdown function.
15918 * tests/test-sys_socket.c (a): Test only if shutdown() exists.
15920 Fixes a compilation error on BeOS.
15922 2007-03-22 Bruno Haible <bruno@clisp.org>
15924 * modules/frexpl-tests: New file.
15925 * tests/test-frexpl.c: New file.
15927 * modules/frexpl: New file.
15928 * m4/frexpl.m4: New file.
15929 * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
15930 * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
15931 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
15932 * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
15933 (Depends-on): Add frexpl. Remove isnanl-nolibm.
15934 * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
15936 2007-03-22 Bruno Haible <bruno@clisp.org>
15938 * lib/frexpl.c: Share code with lib/frexp.c.
15939 * modules/mathl (Files): Add lib/frexp.c.
15940 (Depends-on): Add isnanl-nolibm.
15942 2007-03-22 Bruno Haible <bruno@clisp.org>
15944 * modules/printf-frexp (Files): Add m4/frexp.m4.
15945 * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
15946 only if the found frexp function actually works.
15948 2007-03-22 Bruno Haible <bruno@clisp.org>
15950 * lib/frexp.c: Remove older implementation that uses divisions.
15952 2007-03-21 Bruno Haible <bruno@clisp.org>
15954 * modules/frexp-tests: New file.
15955 * tests/test-frexp.c: New file.
15957 * modules/frexp: New file.
15958 * lib/frexp.c: New file.
15959 * m4/frexp.m4: New file.
15960 * lib/math_.h (frexp): New declaration.
15961 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
15963 * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
15965 2007-03-21 Bruno Haible <bruno@clisp.org>
15967 * modules/isnanl-tests: New file.
15968 * tests/test-isnanl.c: New file.
15970 * modules/isnanl: New file.
15971 * lib/isnanl.h: New file.
15972 * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
15973 (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
15974 gl_FUNC_ISNANL_WORKS.
15975 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
15978 2007-03-21 Bruno Haible <bruno@clisp.org>
15980 * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
15983 * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
15984 * lib/vasnprintf.c: Update.
15985 * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
15986 tests/test-isnanl.h, remove tests/test-isnanl.c.
15987 (Makefile.am): Update.
15988 * tests/test-isnanl-nolibm.c: New file.
15989 * tests/test-isnanl.h: New file.
15990 * tests/test-isnanl.c: Remove file.
15992 2007-03-21 Jim Meyering <jim@meyering.net>
15994 When trying to open ".", treat ESTALE like EACCES.
15995 * lib/savewd.c (savewd_save): Resort to forking not just upon
15996 failure with EACCES, but also when errno is ESTALE.
15998 2007-03-20 Bruno Haible <bruno@clisp.org>
16000 * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
16001 Needed on AIX 5.1. Reported by Matthew Woehlke.
16003 2007-03-19 Paul Eggert <eggert@cs.ucla.edu>
16005 Suggestions by Bruno Haible:
16006 * lib/acl-internal.h: Include "gettext.h" rather than rolling
16008 (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
16009 * modules/acl (Depends-on): Add gettext.
16011 2007-03-19 Bruno Haible <bruno@clisp.org>
16013 * modules/iconvme: Remove file.
16014 * lib/iconvme.h: Remove file.
16015 * lib/iconvme.c: Remove file.
16016 * m4/iconvme.m4: Remove file.
16018 2007-03-19 Bruno Haible <bruno@clisp.org>
16020 * doc/relocatable-maint.texi: Break long shell script line.
16021 Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
16023 2007-03-19 Paul Eggert <eggert@cs.ucla.edu>
16025 Add limited support for Solaris 10 ZFS-style ACLs: just enough to
16026 handle file_has_acl.
16027 * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
16028 * lib/acl.c: Move header inclusions and related macro defns into
16029 lib/acl-internal.h.
16030 (S_ISLNK): Remove defn, since that's now done for us.
16031 (file_has_acl): Move to lib/file-has-acl.c.
16032 Call acl_trivial if available. This is the crucial part of the fix.
16033 (acl_entries): Move to lib/acl_entries.c. Now extern, since it's
16034 shared within the library. Rewrite a bit, partly to make it compatible
16035 with the GNU coding style.
16036 * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
16037 Remove unnecessary double-quotes.
16038 Don't test for acl_to_text; the build will catch that.
16039 Replace acl_entries if it doesn't exist and it is needed.
16040 Check for -lsec and acl_trivial (as used on Solaris 10).
16041 * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
16042 lib/file-has-acl.c.
16043 (Depends-on): Add sys_stat, for S_ISLNK.
16045 2007-03-19 Ben Pfaff <blp@gnu.org>
16047 * doc/gnulib.texi: Fix typos.
16048 Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
16050 2007-03-19 Paul Eggert <eggert@cs.ucla.edu>
16052 * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
16053 If size is zero here, buf must be zero.
16055 2007-03-19 Simon Josefsson <simon@josefsson.org>
16057 * des.c: Remove weak_keys_chksum. Reported by Bruno Haible
16060 2007-03-18 Bruno Haible <bruno@clisp.org>
16062 * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
16063 Suggested by Eric Blake.
16065 2007-03-18 Ben Pfaff <blp@gnu.org>
16067 * doc/relocatable.texi: Recommend using as prefix a directory
16068 that does not exist and will never be created. Based on
16069 discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
16072 2007-03-17 Bruno Haible <bruno@clisp.org>
16074 * lib/fchownat.c: Include lchown.h.
16076 2007-03-17 Bruno Haible <bruno@clisp.org>
16078 Fix endless loop when the given allocated size was > INT_MAX.
16079 * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
16080 (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
16081 larger than INT_MAX, or when it grow to a value larger than INT_MAX.
16082 * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
16083 * lib/sprintf.c (sprintf): Likewise.
16085 2007-03-17 Bruno Haible <bruno@clisp.org>
16087 * tests/test-argp-2.sh (func_compare): Output a context diff.
16089 2007-03-17 Bruno Haible <bruno@clisp.org>
16091 * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
16092 locale's decimal-point character.
16094 2007-03-17 Bruno Haible <bruno@clisp.org>
16096 * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
16097 before comparing it. Needed because on some platforms (e.g. x86) a
16098 'long double' occupies less bytes than sizeof (long double).
16100 2007-03-17 Bruno Haible <bruno@clisp.org>
16102 * tests/test-crc.c (main): Make printf statements 64-bit clean.
16103 * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
16104 * tests/test-getaddrinfo.c (simple): Likewise.
16105 * tests/test-read-file.c (main): Likewise.
16107 2007-03-17 Bruno Haible <bruno@clisp.org>
16109 * tests/test-dirname.c (main): Make printf statements 64-bit clean.
16111 2007-03-17 Bruno Haible <bruno@clisp.org>
16113 * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
16116 2007-03-17 Bruno Haible <bruno@clisp.org>
16118 * tests/test-c-strcasecmp.c: Include c-strcase.h.
16119 * tests/test-c-strncasecmp.c: Likewise.
16121 2007-03-17 Bruno Haible <bruno@clisp.org>
16123 * modules/stdlib (Depends-on): Add unistd.
16124 * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
16125 Needed for MacOS X 10.3.
16127 2007-03-17 Bruno Haible <bruno@clisp.org>
16129 * lib/unistr/u-strdup.h: Include <stdlib.h>.
16131 2007-03-17 Bruno Haible <bruno@clisp.org>
16133 * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
16135 2007-03-17 Bruno Haible <bruno@clisp.org>
16137 * gnulib-tool (func_import): Update .cvsignore and .gitignore files
16138 to reflect files copied from gnulib (with or without modifications).
16139 Suggested by Jim Meyering.
16141 2007-03-17 Eric Blake <ebb9@byu.net>
16143 * NEWS: Document stdlib change from 2007-02-18.
16145 2007-03-17 Jim Meyering <jim@meyering.net>
16147 Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
16148 * build-aux/bootstrap: Put ""s around use of $build_aux, in case
16149 someone uses a name containing shell meta-characters.
16150 Reported by Alfred M. Szmidt.
16152 * build-aux/bootstrap: Don't use \> in grep regexp. For HP-UX.
16154 2007-03-16 Alfred M. Szmidt <ams@gnu.org>
16156 * build-aux/bootstrap (with_gettext): New variable. Run autopoint
16157 and copy gettext configuration files only if configure.ac contains
16158 a use of AM_GNU_GETTEXT_VERSION.
16160 2007-03-16 Alfred M. Szmidt <ams@gnu.org>
16162 * build-aux/bootstrap (gnulib_name): New variable.
16163 (gnulib_tool_options): Use it.
16165 2007-03-13 Simon Josefsson <simon@josefsson.org>
16167 * tests/test-des.c: Use new namespace.
16169 2007-03-15 Bruno Haible <bruno@clisp.org>
16171 * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
16172 Reported by James Youngman <jay@gnu.org>.
16174 2007-03-15 Bruno Haible <bruno@clisp.org>
16176 * lib/glob.c (glob): Add 'restrict' so that prototype matches the
16177 declared prototype. Needed with cc on OSF/1 5.1.
16179 2007-03-15 Bruno Haible <bruno@clisp.org>
16181 * lib/gl_list.h (gl_listelement_dispose_fn): New type.
16182 (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
16183 (struct gl_list_implementation): Add dispose_fn argument to the
16184 'create_empty', 'create' methods.
16185 (struct gl_list_impl_base): Add field 'dispose_fn'.
16186 * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
16188 * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
16189 dispose_fn argument.
16190 (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
16191 dispose_fn on the dropped values.
16192 * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
16193 dispose_fn argument.
16194 (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
16196 * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
16197 (gl_tree_remove_node): Call dispose_fn on the dropped value.
16198 * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
16199 (gl_tree_remove_node): Call dispose_fn on the dropped value.
16200 * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
16202 (gl_tree_list_free): Call dispose_fn on the dropped values.
16203 * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
16204 the dropped values.
16205 * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
16206 Add dispose_fn argument.
16207 (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
16208 Call dispose_fn on the dropped values.
16209 * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
16210 Add dispose_fn argument.
16211 (gl_sublist_create): Initialize the 'dispose_fn' field.
16212 * lib/clean-temp.c (create_temp_dir, register_fd): Update.
16213 * tests/test-array_list.c (main): Update.
16214 * tests/test-carray_list.c (main): Update.
16215 * tests/test-avltree_list.c (main): Update.
16216 * tests/test-rbtree_list.c (main): Update.
16217 * tests/test-avltreehash_list.c (main): Update.
16218 * tests/test-rbtreehash_list.c (main): Update.
16219 * tests/test-linked_list.c (main): Update.
16220 * tests/test-linkedhash_list.c (main): Update.
16221 * tests/test-array_oset.c (main): Update.
16223 2007-03-15 Bruno Haible <bruno@clisp.org>
16225 * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
16226 (gl_oset_create_empty): Add dispose_fn argument.
16227 (struct gl_oset_implementation): Add dispose_fn argument to
16228 'create_empty' method.
16229 (struct gl_oset_impl_base): Add dispose_fn field.
16230 * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
16231 * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
16232 (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
16234 * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
16235 (gl_tree_oset_free): Call dispose_fn on the dropped values.
16236 * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
16238 * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
16240 * tests/test-array_oset.c (main): Update.
16241 * tests/test-avltree_oset.c (main): Update.
16242 * tests/test-rbtree_oset.c (main): Update.
16243 * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
16245 2007-03-13 Bruno Haible <bruno@clisp.org>
16247 * tests/test-stdbool.c (i): Update after last patch.
16249 2007-03-12 Bruno Haible <bruno@clisp.org>
16251 * lib/quotearg.c: Include <wctype.h> early, before the definition of
16252 the iswprint macro. Needed on Solaris 2.5.1.
16254 2007-03-12 Bruno Haible <bruno@clisp.org>
16256 * tests/test-printf-frexp.c (main): Declare x as volatile.
16258 2007-03-12 Simon Josefsson <simon@josefsson.org>
16260 * doc/gnulib.texi (Build robot for gnulib): New section.
16262 2007-03-12 Jim Meyering <jim@meyering.net>
16264 * build-aux/bootstrap: New file.
16265 * build-aux/bootstrap.conf: New file, from coreutils.
16267 2007-03-11 Bruno Haible <bruno@clisp.org>
16269 * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
16271 2007-03-12 Simon Josefsson <simon@josefsson.org>
16273 * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
16274 avoid collisions with 'des_setkey'. Reported by Bruno Haible
16275 <bruno@clisp.org>. Also change 'tripledes_' to '3des_'.
16277 2007-03-11 Bruno Haible <bruno@clisp.org>
16279 * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
16280 compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
16282 2007-03-11 Bruno Haible <bruno@clisp.org>
16284 * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
16285 formula. Needed for SunPRO C 5.0.
16287 2007-03-11 Bruno Haible <bruno@clisp.org>
16289 * modules/long-options (Depends-on): Add getopt.
16291 2007-03-11 Bruno Haible <bruno@clisp.org>
16293 * modules/modechange (Depends-on): Add stdbool.
16295 2007-03-11 Bruno Haible <bruno@clisp.org>
16297 * modules/i-ring (Depends-on): Add stdbool.
16299 2007-03-11 Bruno Haible <bruno@clisp.org>
16301 * modules/gc-des (Depends-on): Add stdbool.
16303 2007-03-11 Bruno Haible <bruno@clisp.org>
16305 * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
16307 2007-03-11 Bruno Haible <bruno@clisp.org>
16309 * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
16311 2007-03-11 Bruno Haible <bruno@clisp.org>
16313 * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
16315 2007-03-11 Bruno Haible <bruno@clisp.org>
16317 * lib/vasnprintf.c (sprintf): Undefine.
16319 2007-03-11 Bruno Haible <bruno@clisp.org>
16321 * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
16322 initializers in SunPRO C and Compaq C compilers.
16324 2007-03-11 Bruno Haible <bruno@clisp.org>
16326 * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
16327 decrementing code ANSI C compliant.
16329 2007-03-11 Bruno Haible <bruno@clisp.org>
16331 * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
16332 Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
16334 2007-03-11 Bruno Haible <bruno@clisp.org>
16336 * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
16337 <stdbool.h> substitute doesn't pass.
16339 2007-03-11 Bruno Haible <bruno@clisp.org>
16341 * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
16343 2007-03-11 Bruno Haible <bruno@clisp.org>
16345 * gnulib-tool (func_create_megatestdir): Create also an autobuild
16346 script, for submission to autobuild.josefsson.org.
16348 2007-03-10 Bruno Haible <bruno@clisp.org>
16350 * modules/canonicalize-lgpl-tests: New file.
16351 * tests/test-canonicalize-lgpl.sh: New file.
16352 * tests/test-canonicalize-lgpl.c: New file.
16354 * modules/c-strcase-tests: New file.
16355 * tests/test-c-strcase.sh: New file.
16356 * tests/test-c-strcasecmp.c: New file.
16357 * tests/test-c-strncasecmp.c: New file.
16359 * modules/atexit-tests: New file.
16360 * tests/test-atexit.sh: New file.
16361 * tests/test-atexit.c: New file.
16363 2007-03-10 Bruno Haible <bruno@clisp.org>
16365 * tests/test-binary-io.sh: Use temporary filenames that are not so
16366 likely to clash with those of other tests (in a parallel make).
16367 * tests/test-binary-io.c: Likewise.
16369 2007-03-10 Bruno Haible <bruno@clisp.org>
16371 * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
16372 fallback; use #error instead.
16373 Suggested by Simon Josefsson.
16375 2007-03-10 Bruno Haible <bruno@clisp.org>
16377 * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
16378 CLEANFILES. Put spaces in each line of $cleaned_files, not only the
16379 first and the last.
16381 2007-03-10 Bruno Haible <bruno@clisp.org>
16383 * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
16385 2007-03-10 Bruno Haible <bruno@clisp.org>
16387 * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
16389 * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
16390 * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
16391 * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
16393 2007-03-10 Bruno Haible <bruno@clisp.org>
16395 * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
16397 * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
16400 2007-03-09 Eric Blake <ebb9@byu.net>
16401 and Matthew Woehlke <mw_triad@users.sourceforge.net> (tiny change)
16403 * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
16404 types are not being provided by gnulib.
16405 (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
16406 types are supported.
16408 2007-03-10 Bruno Haible <bruno@clisp.org>
16410 * lib/stdio_.h (__attribute__): New macro.
16411 (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
16412 vsprintf): Specify __attribute__ __format__ for GCC.
16413 Suggested by Eric Blake.
16415 2007-03-09 Bruno Haible <bruno@clisp.org>
16417 * modules/printf-posix-tests: New file.
16418 * tests/test-printf-posix.sh: New file.
16419 * tests/test-printf-posix.c: New file.
16421 * modules/printf-posix: New file.
16422 * lib/printf.c: New file.
16423 * m4/printf-posix-rpl.m4: New file.
16424 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
16426 * lib/stdio_.h (printf): New declaration.
16427 (format, __format__, ____printf____, ____scanf____, ____strftime____,
16428 ____strfmon____): New macros.
16429 * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
16432 2007-03-09 Bruno Haible <bruno@clisp.org>
16434 * tests/test-vasnprintf-posix2.sh: New file.
16435 * tests/test-vasnprintf-posix2.c: New file.
16436 * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
16437 (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
16438 (Makefile.am): Activate test-vasnprintf-posix2.sh.
16440 * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
16441 a locale dependent decimal point, rather than always '.'.
16443 2007-03-09 Eric Blake <ebb9@byu.net>
16445 * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
16446 spite of platforms like Tandem/NSK that define it to -1.
16448 2007-03-08 Bruno Haible <bruno@clisp.org>
16450 * modules/vprintf-posix-tests: New file.
16451 * tests/test-vprintf-posix.sh: New file.
16452 * tests/test-vprintf-posix.c: New file.
16453 * tests/test-printf-posix.h: New file.
16455 * modules/vprintf-posix: New file.
16456 * lib/vprintf.c: New file.
16457 * m4/vprintf-posix.m4: New file.
16458 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
16460 * lib/stdio_.h (vprintf): New declaration.
16461 * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
16464 2007-03-08 Bruno Haible <bruno@clisp.org>
16466 * modules/fprintf-posix-tests: New file.
16467 * tests/test-fprintf-posix.sh: New file.
16468 * tests/test-fprintf-posix.c: New file.
16470 * modules/fprintf-posix: New file.
16471 * lib/fprintf.c: New file.
16472 * m4/fprintf-posix.m4: New file.
16473 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
16475 * lib/stdio_.h (fprintf): New declaration.
16476 * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
16479 2007-03-08 Bruno Haible <bruno@clisp.org>
16481 * modules/vfprintf-posix-tests: New file.
16482 * tests/test-vfprintf-posix.sh: New file.
16483 * tests/test-vfprintf-posix.c: New file.
16484 * tests/test-fprintf-posix.h: New file.
16485 * tests/test-fprintf-posix.out: New file.
16487 * modules/vfprintf-posix: New file.
16488 * lib/vfprintf.c: New file.
16489 * m4/vfprintf-posix.m4: New file.
16490 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
16492 * lib/stdio_.h (vfprintf): New declaration.
16493 * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
16496 2007-03-08 Bruno Haible <bruno@clisp.org>
16498 * lib/stdio_.h: Treat __need___FILE like __need_FILE.
16500 2007-03-08 Bruno Haible <bruno@clisp.org>
16502 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
16503 instead of 'expr' invocations.
16504 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
16505 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
16506 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
16507 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
16508 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
16509 Suggested by Paul Eggert.
16511 2007-03-08 Bruno Haible <bruno@clisp.org>
16513 * modules/fseterr-tests: New file.
16514 * tests/test-fseterr.c: New file.
16516 * modules/fseterr: New file.
16517 * lib/fseterr.h: New file.
16518 * lib/fseterr.c: New file.
16520 2007-03-08 Bruno Haible <bruno@clisp.org>
16522 * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
16523 * lib/getopt_.h: Likewise.
16524 * lib/mbswidth.h: Likewise.
16525 * lib/setenv.h: Likewise.
16526 * lib/vasnprintf.h: Likewise.
16527 * lib/vasprintf.h: Likewise.
16528 * lib/verror.h: Likewise.
16529 * lib/xsetenv.h: Likewise.
16530 * lib/xvasprintf.h: Likewise.
16532 2007-03-08 Jim Meyering <jim@meyering.net>
16534 * users.txt: Add parted.
16536 * ChangeLog: Restore 1500 lines mistakenly removed from the end.
16538 2007-03-07 Bruno Haible <bruno@clisp.org>
16540 * m4/printf.m4: Make the shell script snippets copy&pastable.
16542 2007-03-02 Bruno Haible <bruno@clisp.org>
16544 * lib/netinet_in_.h: New file.
16545 * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
16546 is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
16547 * modules/netinet_in (Files): Add lib/netinet_in_.h.
16548 (Depends-on): Add absolute-header.
16549 (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
16552 2007-03-03 Bruno Haible <bruno@clisp.org>
16554 * lib/sys_select_.h: New file.
16555 * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
16556 is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
16557 * modules/sys_select (Files): Add lib/sys_select_.h.
16558 (Depends-on): Add absolute-header.
16559 (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
16562 2007-03-02 Bruno Haible <bruno@clisp.org>
16564 * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
16565 before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
16567 * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
16568 <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
16569 HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
16570 * modules/sys_socket (Depends-on): Add absolute-header.
16571 (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
16572 HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
16573 (Include): Remove requirement of inclusion of <sys/types.h>.
16575 2007-03-02 Bruno Haible <bruno@clisp.org>
16577 * lib/byteswap_.h (bswap_32): Fix formula.
16579 2007-03-06 Bruno Haible <bruno@clisp.org>
16581 * modules/sprintf-posix-tests: New file.
16582 * tests/test-sprintf-posix.c: New file.
16584 * modules/sprintf-posix: New file.
16585 * lib/sprintf.c: New file.
16586 * m4/sprintf-posix.m4: New file.
16587 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
16589 * lib/stdio_.h (sprintf): New declaration.
16590 * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
16593 2007-03-06 Bruno Haible <bruno@clisp.org>
16595 * modules/vsprintf-posix-tests: New file.
16596 * tests/test-vsprintf-posix.c: New file.
16597 * tests/test-sprintf-posix.h: New file.
16599 * modules/vsprintf-posix: New file.
16600 * lib/vsprintf.c: New file.
16601 * m4/vsprintf-posix.m4: New file.
16602 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
16604 * lib/stdio_.h (vsprintf): New declaration.
16605 * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
16608 2007-03-06 Bruno Haible <bruno@clisp.org>
16610 * modules/vsnprintf (Depend-on): Remove minmax.
16612 2007-03-06 Bruno Haible <bruno@clisp.org>
16614 * modules/snprintf-posix-tests: New file.
16615 * tests/test-snprintf-posix.c: New file.
16617 * modules/snprintf-posix: New file.
16618 * m4/snprintf-posix.m4: New file.
16619 * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
16621 (gl_FUNC_SNPRINTF): Invoke it.
16622 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
16623 * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
16625 * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
16627 2007-03-06 Bruno Haible <bruno@clisp.org>
16629 * modules/vsnprintf-posix-tests: New file.
16630 * tests/test-vsnprintf-posix.c: New file.
16631 * tests/test-snprintf-posix.h: New file.
16633 * modules/vsnprintf-posix: New file.
16634 * m4/vsnprintf-posix.m4: New file.
16635 * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
16637 (gl_FUNC_VSNPRINTF): Invoke it.
16638 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
16639 * lib/stdio_.h (vsnprintf): Define as a replacement if
16640 REPLACE_VSNPRINTF is set.
16641 * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
16643 2007-03-06 Bruno Haible <bruno@clisp.org>
16645 * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
16646 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
16648 2007-03-06 Bruno Haible <bruno@clisp.org>
16650 * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
16651 (asinl): Declare also if HAVE_DECL_ASINL is set.
16652 (atanl): Declare also if HAVE_DECL_ATANL is set.
16653 (ceill): Declare also if HAVE_DECL_CEILL is set.
16654 (cosl): Declare also if HAVE_DECL_COSL is set.
16655 (expl): Declare also if HAVE_DECL_EXPL is set.
16656 (floorl): Declare also if HAVE_DECL_FLOORL is set.
16657 (frexpl): Declare also if HAVE_DECL_FREXPL is set.
16658 (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
16659 (logl): Declare also if HAVE_DECL_LOGL is set.
16660 (sinl): Declare also if HAVE_DECL_SINL is set.
16661 (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
16662 (tanl): Declare also if HAVE_DECL_TANL is set.
16663 * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
16664 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
16665 * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
16666 declaration of frexpl, ldexpl.
16667 * modules/printf-frexpl (Depends-on): Add math.
16668 * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
16670 2007-03-05 Bruno Haible <bruno@clisp.org>
16672 * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
16673 frexpl and ldexpl are declared.
16674 * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
16676 2007-03-05 Bruno Haible <bruno@clisp.org>
16678 * gnulib-tool (func_get_automake_snippet): Don't synthesize an
16679 EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
16681 2007-03-05 Bruno Haible <bruno@clisp.org>
16683 * lib/stdio_.h: Include <stddef.h>.
16685 2007-03-05 Bruno Haible <bruno@clisp.org>
16687 * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
16689 2007-03-05 Bruno Haible <bruno@clisp.org>
16691 * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
16692 NetBSD 4, from Ralf Wildenhues.
16694 2007-03-04 Bruno Haible <bruno@clisp.org>
16696 * lib/vasprintf.h: Update #if logic for the case when the functions
16697 exist but are overridden.
16699 2007-03-04 Bruno Haible <bruno@clisp.org>
16701 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
16702 implementations: glibc-2.4 and MacOS X 10.3.
16703 * tests/test-vasnprintf-posix.c (test_function): Test also the case
16704 that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
16705 * tests/test-vasprintf-posix.c (test_function): Likewise.
16707 2007-03-04 Bruno Haible <bruno@clisp.org>
16709 * modules/vasprintf-posix-tests: New file.
16710 * tests/test-vasprintf-posix.c: New file.
16712 * modules/vasprintf-posix: New file.
16713 * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
16715 * m4/vasprintf-posix.m4: New file.
16716 * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
16718 (gl_FUNC_VASPRINTF): Invoke it.
16719 * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
16721 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
16723 2007-03-04 Bruno Haible <bruno@clisp.org>
16725 * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
16726 REPLACE_GETTIMEOFDAY.
16727 * modules/sys_time (Makefile.am): Likewise.
16728 * m4/sys_time_h.m4: Likewise.
16729 * m4/gettimeofday.m4: Likewise.
16731 2007-03-04 Bruno Haible <bruno@clisp.org>
16733 * modules/vasnprintf-posix-tests: New file.
16734 * tests/test-vasnprintf-posix.c: New file.
16736 * modules/vasnprintf-posix: New file.
16737 * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
16739 (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
16740 * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
16741 REPLACE_VASNPRINTF is defined.
16742 * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
16743 gl_FUNC_VASNPRINTF.
16744 (gl_FUNC_VASNPRINTF): Invoke it.
16745 * m4/vasnprintf-posix.m4: New file.
16746 * m4/printf.m4: New file.
16748 2007-03-04 Bruno Haible <bruno@clisp.org>
16750 Compile progreloc.c only if --enable-relocatable is specified.
16751 * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
16752 if --enable-relocatable was specified.
16753 * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
16756 2007-03-04 Jim Meyering <jim@meyering.net>
16758 * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
16759 Use it consistently, rather than enumerating errno constants.
16761 2007-03-04 Bruno Haible <bruno@clisp.org>
16763 * modules/xvasprintf-tests: New file.
16764 * tests/test-xvasprintf.c: New file.
16766 * modules/vasprintf-tests: New file.
16767 * tests/test-vasprintf.c: New file.
16769 * modules/vasnprintf-tests: New file.
16770 * tests/test-vasnprintf.c: New file.
16772 * modules/vsnprintf-tests: New file.
16773 * tests/test-vsnprintf.c: New file.
16775 * modules/snprintf-tests: New file.
16776 * tests/test-snprintf.c: New file.
16778 2007-03-04 Bruno Haible <bruno@clisp.org>
16780 Compile relocatable.c only if --enable-relocatable is specified.
16781 * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
16782 gl_RELOCATABLE_LIBRARY.
16783 (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
16784 * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
16785 (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
16786 gl_RELOCATABLE_LIBRARY.
16787 * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
16788 (Makefile.am): Remove lib_SOURCES.
16789 * modules/relocatable-lib-lgpl (configure.ac): Invoke
16790 gl_RELOCATABLE_LIBRARY.
16791 (Makefile.am): Remove lib_SOURCES.
16792 * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
16794 * modules/relocatable-prog-wrapper (configure.ac): Invoke
16795 gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
16797 2007-03-04 Bruno Haible <bruno@clisp.org>
16799 * modules/argmatch-tests: New file.
16800 * tests/test-argmatch.c: New file.
16802 * tests/test-allocsa.c (main): Halve the number of loop runs.
16804 * modules/alloca-opt-tests: New file.
16805 * tests/test-alloca-opt.c: New file.
16807 2007-03-04 Jim Meyering <jim@meyering.net>
16809 Work around difference between Linux ACLs and Solaris 10 ZFS.
16810 * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
16813 2007-03-03 Bruno Haible <bruno@clisp.org>
16815 * modules/relocatable-prog (Depends-on): Add back progreloc's
16816 dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
16818 2007-03-03 Bruno Haible <bruno@clisp.org>
16820 * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
16821 * modules/relocatable-lib: New file.
16823 2007-03-03 Bruno Haible <bruno@clisp.org>
16825 * modules/relocatable-prog: Renamed from modules/relocatable.
16826 * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
16828 2007-03-03 Bruno Haible <bruno@clisp.org>
16830 * modules/relocatable-script (Files): Add doc/relocatable.texi,
16831 m4/relocatable-lib.m4.
16832 (Depends-on): Remove 'relocatable'.
16833 (configure.ac): Add gl_RELOCATABLE_NOP.
16835 2007-03-03 Bruno Haible <bruno@clisp.org>
16837 * modules/relocatable-prog-wrapper: New file.
16838 * modules/relocatable (Depends-on): Add it. Remove all other
16839 dependencies except progname.
16840 (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
16842 * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
16843 (gl_FUNC_STRERROR): Nop.
16844 * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
16846 * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
16847 * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
16849 * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
16850 (gl_FUNC_READLINK): Update.
16852 * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
16854 2007-03-03 Bruno Haible <bruno@clisp.org>
16856 * lib/xreadlink.c: Include <unistd.h> unconditionally.
16857 * modules/xreadlink (Depends-on): Add unistd.
16858 * modules/xreadlink-with-size (Depends-on): Likewise.
16860 2007-03-03 Bruno Haible <bruno@clisp.org>
16862 * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
16863 extracted from gt_FUNC_SETENV.
16864 (gt_FUNC_SETENV): Remove macro.
16865 * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
16866 remove gt_FUNC_SETENV.
16868 2007-03-03 Bruno Haible <bruno@clisp.org>
16870 * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
16871 ENABLE_RELOCATABLE here.
16872 * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
16874 2007-03-03 Bruno Haible <bruno@clisp.org>
16876 * modules/rbtreehash-list-tests (Depends-on): Add progname.
16877 * tests/test-rbtreehash_list.c: Include progname.h.
16878 (main): Call set_program_name.
16880 * modules/rbtree-oset-tests (Depends-on): Add progname.
16881 * tests/test-rbtree_oset.c: Include progname.h.
16882 (main): Call set_program_name.
16884 * modules/rbtree-list-tests (Depends-on): Add progname.
16885 * tests/test-rbtree_list.c: Include progname.h.
16886 (main): Call set_program_name.
16888 * modules/linked-list-tests (Depends-on): Add progname.
16889 * tests/test-linked_list.c: Include progname.h.
16890 (main): Call set_program_name.
16892 2007-03-03 Bruno Haible <bruno@clisp.org>
16894 * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
16895 All uses of __restrict changed to _Restrict_.
16896 * lib/glob_.h (__restrict): Remove macro.
16898 2007-03-02 Bruno Haible <bruno@clisp.org>
16900 * modules/gettext (configure.ac): Require gettext infrastructure
16901 from version 0.16.1.
16903 2007-03-02 Bruno Haible <bruno@clisp.org>
16905 * modules/linkedhash-list-tests (Depends-on): Add progname.
16906 * tests/test-linkedhash_list.c: Include progname.h.
16907 (main): Call set_program_name.
16909 * modules/carray-list-tests (Depends-on): Add progname.
16910 * tests/test-carray_list.c: Include progname.h.
16911 (main): Call set_program_name.
16913 * modules/avltreehash-list-tests (Depends-on): Add progname.
16914 * tests/test-avltreehash_list.c: Include progname.h.
16915 (main): Call set_program_name.
16917 * modules/avltree-oset-tests (Depends-on): Add progname.
16918 * tests/test-avltree_oset.c: Include progname.h.
16919 (main): Call set_program_name.
16921 * modules/avltree-list-tests (Depends-on): Add progname.
16922 * tests/test-avltree_list.c: Include progname.h.
16923 (main): Call set_program_name.
16925 * modules/array-oset-tests (Depends-on): Add progname.
16926 * tests/test-array_oset.c: Include progname.h.
16927 (main): Call set_program_name.
16929 * modules/array-list-tests (Depends-on): Add progname.
16930 * tests/test-array_list.c: Include progname.h.
16931 (main): Call set_program_name.
16933 * modules/argp-tests (Depends-on): Add progname.
16934 * tests/test-argp.c: Include argp.h first. Include progname.h.
16935 (main): Call set_program_name.
16937 2007-03-02 Paul Eggert <eggert@cs.ucla.edu>
16939 * doc/gnulib-tool.texi (Initial import): Reword description of
16940 _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
16941 limited effect even if defined after the first system include.
16943 2007-03-01 Bruno Haible <bruno@clisp.org>
16945 * build-aux/config.libpath: Update to libtool-1.5.22.
16946 Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
16948 2007-03-01 Bruno Haible <bruno@clisp.org>
16950 * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
16952 Reported by Ralf Wildenhues.
16954 2007-03-01 Bruno Haible <bruno@clisp.org>
16956 * build-aux/install-reloc: Remove object files left over by some
16958 Reported by Ralf Wildenhues.
16960 2007-03-01 Bruno Haible <bruno@clisp.org>
16962 * build-aux/install-reloc: Break long lines.
16964 2007-03-01 Bruno Haible <bruno@clisp.org>
16966 * doc/relocatable.texi: Document that it may not work on OpenBSD.
16967 Reported by Ralf Wildenhues.
16969 2007-03-01 Bruno Haible <bruno@clisp.org>
16971 * doc/gnulib-tool.texi (Initial import): Remove paragraph about
16972 include ordering constraints.
16974 2007-03-01 Paul Eggert <eggert@cs.ucla.edu>
16976 Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
16977 <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
16978 * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
16979 as another example.
16980 * lib/time_.h: Fix misspelling.
16981 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
16982 Require gl_HEADER_TIME_H_DEFAULTS.
16983 * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
16984 * m4/time_r.m4 (gl_TIME_R): Likewise.
16985 * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
16987 2007-03-01 Bruno Haible <bruno@clisp.org>
16989 * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
16990 * m4/utimens.m4 (gl_UTIMENS): Likewise.
16992 2007-03-01 Jim Meyering <jim@meyering.net>
16994 * modules/xreadlink (Maintainer): Add my name.
16995 * modules/xreadlink-with-size (Depends-on): Alphabetize.
16997 2007-02-26 Ben Pfaff <blp@cs.stanford.edu>
16998 Bruno Haible <bruno@clisp.org>
17000 * build-aux/install-reloc: Compile also c-ctype.c.
17001 * build-aux/relocatable.sh.in: New file.
17002 * doc/relocatable.texi: New file.
17003 * doc/relocatable-maint.texi: New file.
17004 * doc/gnulib.texi: Include relocatable-maint.texi.
17005 * lib/progreloc.c: Include unistd.h unconditionally.
17006 * lib/relocwrapper.c: Include unistd.h unconditionally.
17008 (add_dotbin): Use c_tolower.
17009 * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
17010 (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
17011 (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
17012 * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
17013 to m4/relocatable-lib.m4.
17014 (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
17015 RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
17016 (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
17017 require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
17018 SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
17019 * modules/relocatable: New file.
17020 * modules/relocatable-lib: New file.
17021 * modules/relocatable-script: New file.
17023 2007-02-28 Bruno Haible <bruno@clisp.org>
17025 Import --enable-relocatable infrastructure.
17026 * build-aux/config.libpath: New file, from GNU gettext.
17027 * build-aux/install-reloc: New file, from GNU gettext.
17028 * build-aux/reloc-ldflags: New file, from GNU gettext.
17029 * lib/relocatable.h: New file, from GNU gettext.
17030 * lib/relocatable.c: New file, from GNU gettext.
17031 * lib/relocwrapper.c: New file, from GNU gettext.
17032 * m4/relocatable.m4: New file, from GNU gettext.
17034 2007-02-28 Bruno Haible <bruno@clisp.org>
17036 * MODULES.html.sh (File system functions): Add xreadlink-with-size.
17038 * modules/xreadlink: New file, from GNU gettext with modifications.
17039 * lib/xreadlink.c: New file, from GNU gettext.
17040 * lib/xreadlink.h: Add comments.
17041 (xreadlink): New declaration.
17043 * modules/xreadlink-with-size: Renamed from modules/xreadlink.
17044 (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
17045 lib/xreadlink-with-size.c.
17046 (configure.ac): Remove gl_XREADLINK invocation.
17047 (Makefile.am): Augment lib_SOURCES.
17048 * m4/xreadlink.m4: Remove file.
17049 * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
17050 (xreadlink_with_size): Renamed from xreadink.
17051 * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
17052 * modules/canonicalize (Depends-on): Replace xreadlink with
17053 xreadlink-with-size.
17054 * lib/canonicalize.c (canonicalize_filename_mode): Update.
17056 2007-02-25 Jim Meyering <jim@meyering.net>
17058 * build-aux/announce-gen: When complaining about excess arguments,
17061 2007-02-25 Paul Eggert <eggert@cs.ucla.edu>
17063 * README: Document signed integer overflow situation more
17066 2007-02-25 Bruno Haible <bruno@clisp.org>
17068 * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
17069 'a' or 'A' conversion.
17071 2007-02-25 Bruno Haible <bruno@clisp.org>
17073 * modules/filename: Renamed from modules/pathname.
17074 (Files): Replace lib/pathname.h with lib/filename.h. Replace
17075 lib/concatpath.c with lib/concat-filename.c.
17076 (Makefile.am): Update.
17077 (Include): Replace pathname.h with filename.h.
17078 * lib/filename.h: Renamed from lib/pathname.h.
17079 (concatenated_filename): Renamed from concatenated_pathname.
17080 * lib/concat-filename.c: Renamed from lib/concatpath.c.
17081 (concatenated_filename): Renamed from concatenated_pathname.
17082 * lib/findprog.c: Include filename.h instead of pathname.h.
17083 (find_in_path): Update.
17084 * lib/javacomp.c: Include filename.h instead of pathname.h.
17085 (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
17086 is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
17087 is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
17088 is_oldgcj_14_13_usable, is_javac_usable): Update.
17089 * lib/javaexec.c: Include filename.h instead of pathname.h.
17090 (execute_java_class): Update.
17091 * modules/findprog: Update.
17092 * modules/javacomp: Update.
17093 * modules/javaexec: Update.
17094 * MODULES.html.sh (File system functions): Add 'filename', remove
17097 2007-02-25 Bruno Haible <bruno@clisp.org>
17099 * modules/printf-frexpl-tests: New file.
17100 * tests/test-printf-frexpl.c: New file.
17102 * modules/printf-frexpl: New file.
17103 * lib/printf-frexpl.h: New file.
17104 * lib/printf-frexpl.c: New file.
17105 * m4/printf-frexpl.m4: New file.
17107 2007-02-25 Bruno Haible <bruno@clisp.org>
17109 * modules/printf-frexp-tests: New file.
17110 * tests/test-printf-frexp.c: New file.
17112 * modules/printf-frexp: New file.
17113 * lib/printf-frexp.h: New file.
17114 * lib/printf-frexp.c: New file.
17115 * m4/printf-frexp.m4: New file.
17117 2007-02-25 Bruno Haible <bruno@clisp.org>
17119 Assume automake >= 1.10 for the tests.
17120 * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
17121 * modules/arctwo-tests: Likewise.
17122 * modules/argp-tests: Likewise.
17123 * modules/avltree-list-tests: Likewise.
17124 * modules/avltree-oset-tests: Likewise.
17125 * modules/avltreehash-list-tests: Likewise.
17126 * modules/carray-list-tests: Likewise.
17127 * modules/crc-tests: Likewise.
17128 * modules/des-tests: Likewise.
17129 * modules/gc-arcfour-tests: Likewise.
17130 * modules/gc-arctwo-tests: Likewise.
17131 * modules/gc-des-tests: Likewise.
17132 * modules/gc-hmac-md5-tests: Likewise.
17133 * modules/gc-hmac-sha1-tests: Likewise.
17134 * modules/gc-md2-tests: Likewise.
17135 * modules/gc-md4-tests: Likewise.
17136 * modules/gc-md5-tests: Likewise.
17137 * modules/gc-pbkdf2-sha1-tests: Likewise.
17138 * modules/gc-rijndael-tests: Likewise.
17139 * modules/gc-sha1-tests: Likewise.
17140 * modules/gc-tests: Likewise.
17141 * modules/getaddrinfo-tests: Likewise.
17142 * modules/hmac-md5-tests: Likewise.
17143 * modules/hmac-sha1-tests: Likewise.
17144 * modules/linked-list-tests: Likewise.
17145 * modules/linkedhash-list-tests: Likewise.
17146 * modules/lock-tests: Likewise.
17147 * modules/md2-tests: Likewise.
17148 * modules/md4-tests: Likewise.
17149 * modules/md5-tests: Likewise.
17150 * modules/rbtree-list-tests: Likewise.
17151 * modules/rbtree-oset-tests: Likewise.
17152 * modules/rbtreehash-list-tests: Likewise.
17153 * modules/read-file-tests: Likewise.
17154 * modules/rijndael-tests: Likewise.
17155 * modules/stdint-tests: Likewise.
17156 * modules/tls-tests: Likewise.
17158 2007-02-24 Bruno Haible <bruno@clisp.org>
17160 * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
17161 * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
17162 function; instead check whether isnan with a double argument links.
17163 * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
17164 function; instead check whether isnan with a 'long double' argument
17166 Reported by Eric Blake <ebb9@byu.net>.
17168 2007-02-24 Bruno Haible <bruno@clisp.org>
17170 * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
17172 * lib/isnanl.c: Remove all code. Just include isnan.c.
17173 * modules/isnanl-nolibm (Files): Add lib/isnan.c.
17175 2007-02-25 Jim Meyering <jim@meyering.net>
17177 Avoid conflicting types for 'unsetenv' on FreeBSD.
17178 * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
17179 conflicting with FreeBSD's (5.0 and 6.1) function declaration
17182 2007-02-24 Bruno Haible <bruno@clisp.org>
17184 * modules/isnanl-nolibm-tests: New file.
17185 * tests/test-isnanl.c: New file.
17187 * modules/isnanl-nolibm: New file.
17188 * lib/isnanl.h: New file.
17189 * lib/isnanl.c: New file.
17190 * m4/isnanl.m4: New file.
17192 2007-02-24 Bruno Haible <bruno@clisp.org>
17194 * modules/isnan-nolibm-tests: New file.
17195 * tests/test-isnan.c: New file.
17197 * modules/isnan-nolibm: New file.
17198 * lib/isnan.h: New file.
17199 * lib/isnan.c: New file.
17200 * m4/isnan.m4: New file.
17202 2007-02-24 Bruno Haible <bruno@clisp.org>
17204 * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
17205 assume that an exponent fits in 20 bits.
17207 2007-02-24 Jim Meyering <jim@meyering.net>
17209 * m4/regex.m4: Update the description of the configure-time option,
17210 --without-included-regex, to state accurately what the defaults are,
17211 and perhaps to give people an idea why using this option is risky.
17213 2007-02-24 Paul Eggert <eggert@cs.ucla.edu>
17215 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
17216 loops on small arguments. This attempts to avoid the problem
17217 Bruno Haible reported for AIX 4.3.2 in
17218 <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
17220 2007-02-23 Bruno Haible <bruno@clisp.org>
17222 * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
17223 Needed for help2man.
17225 2007-02-23 Karl Berry <karl@gnu.org>
17227 * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
17228 exists, foo.h should be cvs-ignored, not committed.
17230 2007-02-23 Eric Blake <ebb9@byu.net>
17232 * lib/getdate.h (includes): Include <time.h>, not "timespec.h".
17233 * lib/stat-time.h (includes): Likewise.
17234 * lib/utimecmp.c (includes): Likewise.
17235 * lib/utimens.h (includes): Likewise.
17236 * lib/getdate.y (includes): Also include "timespec.h" for use
17237 internal to the module.
17238 * modules/utimens (Depends-on): Revert yesterday's patch.
17239 * modules/nanosleep (Depends-on): Add missing dependency.
17241 2007-02-22 Bruno Haible <bruno@clisp.org>
17243 * lib/glob.c: Don't include getlogin_r.h.
17245 2007-02-22 Jim Meyering <jim@meyering.net>
17247 * modules/utimens (Depends-on): Add timespec, required for
17248 utimens.h's inclusion of timespec.h.
17250 2007-02-21 Paul Eggert <eggert@cs.ucla.edu>
17252 * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
17253 long unreadable paths in GNU/Linux. Problem reported by Andreas
17255 <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
17256 I'll try to think of a better way to fix the Solaris problem.
17258 * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
17259 like glibc; on Solaris 10, it fails with errno == EINVAL.
17260 POSIX says the behavior is unspecified if the first argument is NULL,
17261 so play it safe and never pass NULL to the system getcwd.
17263 2007-02-21 Jim Meyering <jim@meyering.net>
17265 * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
17266 of gettimeofday. It would conflict with the one now always
17267 provided via sys_time_.h. Reported by Matthew Woehlke, as
17268 an IRIX 6.5 build failure.
17270 2007-02-20 Paul Eggert <eggert@cs.ucla.edu>
17272 Minor fixups to port to Solaris 10 with Sun C 5.8.
17273 * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
17274 * modules/getcwd (Depends-on): Add dirfd.
17275 * lib/putenv.c (putenv): #undef it.
17276 (rpl_putenv): New decl.
17277 (malloc, free): Include <stdlib.h> rather than prototyping separately.
17279 2007-02-20 Bruno Haible <bruno@clisp.org>
17281 * modules/stdio-tests: New file.
17282 * tests/test-stdio.c: New file.
17284 * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
17285 (Depends-on): Add stdio.
17286 (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
17287 (Include): Use <stdio.h> instead of vsnprintf.h.
17288 * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
17289 HAVE_DECL_VSNPRINTF.
17290 * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
17292 * modules/snprintf (Files): Remove lib/snprintf.h.
17293 (Depends-on): Add stdio.
17294 (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
17295 (Include): Use <stdio.h> instead of snprintf.h.
17296 * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
17297 HAVE_DECL_SNPRINTF.
17298 * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
17299 * lib/getaddrinfo.c: Likewise.
17301 * modules/stdio: New file.
17302 * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
17303 * lib/snprintf.h: Remove file.
17304 * lib/vsnprintf.h: Remove file.
17305 * lib/.cppi-disable: Remove snprintf.h.
17306 * m4/stdio_h.m4: New file.
17307 * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
17309 2007-02-20 Jim Meyering <jim@meyering.net>
17311 * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
17312 used by e.g., mingw. From Bruno Haible.
17314 2007-02-19 Bruno Haible <bruno@clisp.org>
17316 * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
17318 Reported by Ben Pfaff <blp@cs.stanford.edu>.
17320 2007-02-19 Bruno Haible <bruno@clisp.org>
17322 * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
17325 2007-02-19 Bruno Haible <bruno@clisp.org>
17327 * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
17329 Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
17331 2007-02-19 Jim Meyering <jim@meyering.net>
17333 Don't use FD after a successful "fdopendir (fd)".
17334 * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
17335 Reset it by calling dirfd on the just-obtained DIR*.
17337 * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
17338 Prompted by a report from Bruno Haible that mingw lacks ftruncate.
17340 2007-02-18 Bruno Haible <bruno@clisp.org>
17342 * lib/readlink.c: Include <unistd.h>.
17343 * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
17345 * modules/readlink (Depends-on): Add unistd.
17346 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
17347 (Include): Add <unistd.h>.
17349 * lib/getlogin_r.h: Remove file.
17350 * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
17351 * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
17352 (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
17353 HAVE_DECL_GETLOGIN_R.
17354 * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
17355 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
17356 (Include): Use <unistd.h> instead of getlogin_r.h.
17358 * lib/getcwd.h: Remove file.
17359 * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
17360 * lib/xgetcwd.c: Likewise.
17361 * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
17362 REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
17363 * modules/getcwd (Files): Remove lib/getcwd.h.
17364 (Depends-on): Add unistd.
17365 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
17366 (Include): Use <unistd.h> instad of getcwd.h.
17368 * lib/ftruncate.c: Include <unistd.h> first.
17369 * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
17370 Set HAVE_FTRUNCATE.
17371 * modules/ftruncate (Depends-on): Add unistd.
17372 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
17374 * lib/fchdir.c: Include <unistd.h> first.
17375 * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
17376 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
17377 of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
17378 * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
17379 (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
17381 * lib/dup2.c: Include <unistd.h> first.
17382 * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
17384 * modules/dup2 (Depends-on): Add unistd.
17385 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
17387 * lib/chown.c: Include <unistd.h> first. Undefine chown later.
17388 * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
17389 REPLACE_CHOWN. Don't define chown as a macro here.
17390 * modules/chown (Depends-on): Add unistd.
17391 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
17393 * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
17394 Add definition for GL_LINK_WARNING.
17395 (chown, dup2): New declarations.
17396 (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
17398 (ftruncate): New declaration.
17399 (getcwd): New declaration, taken from old getcwd.h.
17400 (getlogin_r): New declaration, taken from old getlogin_r.h.
17401 (readlink): New declaration.
17402 * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
17403 set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
17404 (gl_PREREQ_UNISTD): Remove macro.
17405 (gl_UNISTD_MODULE_INDICATOR): New macro.
17406 (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
17407 many new variables. Don't set UNISTD_H.
17408 * modules/unistd (Description): Change.
17409 (Depends-on): Add link-warning.
17410 (configure.ac): Update.
17411 (Makefile.am): Create unistd.h always. Substitute many new variables
17414 2007-02-18 Bruno Haible <bruno@clisp.org>
17416 * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
17417 * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
17419 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
17420 GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
17421 * lib/getsubopt.h: Remove file.
17422 * modules/getsubopt (Files): Remove lib/getsubopt.h.
17423 (Depends-on): Add stdlib.
17424 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
17425 (Includes): Use <stdlib.h> instead of getsubopt.h.
17426 * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
17427 Set HAVE_GETSUBOPT.
17428 * lib/getsubopt.c: Don't include getsubopt.h.
17430 2007-02-18 Bruno Haible <bruno@clisp.org>
17432 * modules/fchdir (Depends-on): Add dup2.
17434 2007-02-18 Bruno Haible <bruno@clisp.org>
17436 * lib/stdlib_.h: Handle glibc's special invocation convention
17439 2007-02-18 Bruno Haible <bruno@clisp.org>
17441 * modules/stdlib-tests: New file.
17442 * tests/test-stdlib.c: New file.
17444 * modules/mkstemp (Files): Remove lib/mkstemp.h.
17445 (Depends-on): Add stdlib.
17446 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
17447 (Includes): Use <stdlib.h> instead of mkstemp.h.
17448 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
17449 REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
17450 * lib/mkstemp.c: Don't include mkstemp.h.
17451 * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
17452 * lib/stdlib--.h: Don't include mkstemp.h.
17454 * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
17455 (Depends-on): Add stdlib.
17456 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
17457 (Includes): Use <stdlib.h> instead of mkdtemp.h.
17458 * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
17460 * lib/mkdtemp.c: Don't include mkdtemp.h.
17461 * lib/clean-temp.c: Don't include mkdtemp.h.
17463 * modules/exit (Files): Remove lib/exit.h.
17464 (Depends-on): Add stdlib.
17465 (Makefile.am): Remove lib_SOURCES.
17466 (Include): Use <stdlib.h> instead of exit.h.
17467 * lib/argmatch.c: Don't include exit.h.
17468 * lib/execute.c: Likewise.
17469 * lib/pagealign_alloc.c: Likewise.
17470 * lib/pipe.c: Likewise.
17471 * lib/wait-process.c: Likewise.
17472 * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
17473 * lib/exitfail.c: Likewise.
17474 * lib/savewd.c: Likewise.
17475 * lib/xsetenv.c: Likewise.
17477 * modules/stdlib: New file.
17478 * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
17479 and extra comments about mkstemp().
17480 * lib/exit.h: Remove file.
17481 * lib/mkdtemp.h: Remove file.
17482 * lib/mkstemp.h: Remove file.
17483 * m4/stdlib_h.m4: New file.
17484 * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
17486 2007-02-18 Bruno Haible <bruno@clisp.org>
17488 * modules/math-tests: New file.
17489 * tests/test-math.c: New file.
17491 * modules/math: New file.
17492 * modules/mathl (Files): Remove lib/mathl.h.
17493 (Depends-on): Add math.
17494 (Makefile.am): Don't mention mathl.h.
17495 (Include): Use <math.h> instead of mathl.h.
17496 * lib/math_.h: New file.
17497 * lib/mathl.h: Remove file.
17498 * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
17500 * lib/asinl.c: Likewise.
17501 * lib/atanl.c: Likewise.
17502 * lib/ceill.c: Likewise.
17503 * lib/cosl.c: Likewise.
17504 * lib/expl.c: Likewise.
17505 * lib/floorl.c: Likewise.
17506 * lib/frexpl.c: Likewise.
17507 * lib/ldexpl.c: Likewise.
17508 * lib/logl.c: Likewise.
17509 * lib/sincosl.c: Likewise.
17510 * lib/sinl.c: Likewise.
17511 * lib/sqrtl.c: Likewise.
17512 * lib/tanl.c: Likewise.
17513 * lib/trigl.c: Likewise.
17514 * m4/math_h.m4: New file.
17515 * MODULES.html.sh (Mathematics): Add math.
17517 2007-02-17 Bruno Haible <bruno@clisp.org>
17519 * modules/wctype-tests: New file.
17520 * tests/test-wctype.c: New file.
17522 * modules/wchar-tests: New file.
17523 * tests/test-wchar.c: New file.
17525 * modules/unistd-tests: New file.
17526 * tests/test-unistd.c: New file.
17528 * modules/time-tests: New file.
17529 * tests/test-time.c: New file.
17531 * modules/sysexits-tests: New file.
17532 * tests/test-sysexits.c: New file.
17534 * modules/sys_time-tests: New file.
17535 * tests/test-sys_time.c: New file.
17537 * modules/sys_stat-tests: New file.
17538 * tests/test-sys_stat.c: New file.
17540 * modules/sys_socket-tests: New file.
17541 * tests/test-sys_socket.c: New file.
17543 * modules/sys_select-tests: New file.
17544 * tests/test-sys_select.c: New file.
17546 * modules/string-tests: New file.
17547 * tests/test-string.c: New file.
17549 * modules/stdbool-tests: New file.
17550 * tests/test-stdbool.c: New file.
17552 * modules/netinet_in-tests: New file.
17553 * tests/test-netinet_in.c: New file.
17555 * modules/inttypes-tests: New file.
17556 * tests/test-inttypes.c: New file.
17558 * modules/fcntl-tests: New file.
17559 * tests/test-fcntl.c: New file.
17561 * modules/byteswap-tests: New file.
17562 * tests/test-byteswap.c: New file.
17564 * modules/arpa_inet-tests: New file.
17565 * tests/test-arpa_inet.c: New file.
17567 2007-02-17 Bruno Haible <bruno@clisp.org>
17569 * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
17570 (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
17571 if the corresponding module is not enabled. Emit link warnings if
17572 the function is used nevertheless.
17573 * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
17574 Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
17575 HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
17576 (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
17577 * modules/inttypes (Depends-on): Add link-warning.
17578 (Makefile.am): Copy the contents of build-aux/link-warning.h into
17579 inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
17580 GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
17581 * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
17582 * modules/imaxdiv (configure.ac): Likewise.
17583 * modules/strtoimax (configure.ac): Likewise.
17584 * modules/strtoumax (configure.ac): Likewise.
17586 2007-02-17 Bruno Haible <bruno@clisp.org>
17588 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
17589 gl_STRING_MODULE_INDICATOR_DEFAULTS.
17590 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
17591 (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
17593 2007-02-17 Bruno Haible <bruno@clisp.org>
17595 * modules/link-warning: New file.
17596 * build-aux/link-warning.h: New file, extracted from lib/string_.h.
17597 * lib/string_.h (GL_LINK_WARNING): Remove definition.
17598 * modules/string (Depends-on): Add link-warning.
17599 (Makefile.am): Copy the contents of build-aux/link-warning.h into
17601 * MODULES.html.sh (Support for building libraries and executables): Add
17604 2007-02-17 Bruno Haible <bruno@clisp.org>
17606 * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
17607 strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
17608 strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
17611 2007-02-17 Ben Pfaff <blp@cs.stanford.edu>
17612 Bruno Haible <bruno@clisp.org>
17614 * modules/tmpfile: New file.
17615 * lib/tmpfile.c: New file.
17616 * m4/tmpfile.m4: New file.
17617 * MODULES.html.sh (func_all_modules): New section "Input/output".
17619 2007-02-15 Bruno Haible <bruno@clisp.org>
17621 * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
17622 (supports_delete_on_close): New function.
17623 (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
17625 2007-02-14 Bruno Haible <bruno@clisp.org>
17627 * modules/mbspcasecmp-tests: New file.
17628 * tests/test-mbspcasecmp.sh: New file.
17629 * tests/test-mbspcasecmp.c: New file.
17631 New module mbspcasecmp.
17632 * modules/mbspcasecmp: New file.
17633 * lib/mbspcasecmp.c: New file.
17634 * lib/string_.h (strncasecmp): Change warning message.
17635 (mbspcasecmp): New declaration.
17636 * m4/mbspcasecmp.m4: New file.
17637 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
17638 GNULIB_MBSPCASECMP.
17639 * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
17640 * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
17642 2007-02-14 Bruno Haible <bruno@clisp.org>
17644 * modules/mbsncasecmp-tests: New file.
17645 * tests/test-mbsncasecmp.sh: New file.
17646 * tests/test-mbsncasecmp.c: New file.
17648 New module mbsncasecmp.
17649 * modules/mbsncasecmp: New file.
17650 * lib/mbsncasecmp.c: New file.
17651 * lib/string_.h (mbsncasecmp): New declaration.
17652 * m4/mbsncasecmp.m4: New file.
17653 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
17654 GNULIB_MBSNCASECMP.
17655 * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
17656 * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
17658 2007-02-14 Paul Eggert <eggert@cs.ucla.edu>
17660 * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
17661 Verify that it doesn't overlap with our flags.
17662 (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
17663 do not have the desired effect in multibyte locales; instead, use
17665 * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
17666 Add dependency on xalloc. Depend on fnmatch, not fnmatch-gnu, since
17667 we don't require GNU fnmatch ourselves (if our users require it, they
17668 should do so explicitly).
17670 Fix regex code so it doesn't rely on strcasecmp.
17671 * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
17672 Otherwise, include gnulib's langinfo.h.
17673 * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
17674 undesirable behavior in non-C locales. Instead, rely on localecharset.
17675 * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
17676 * modules/regex (FILES): Remove m4/codeset.m4.
17677 (Depends-on): Add localcharset. Remove strcase.
17679 2007-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17681 * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
17682 * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
17684 2007-02-13 Bruno Haible <bruno@clisp.org>
17686 * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
17687 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
17689 2007-02-12 Bruno Haible <bruno@clisp.org>
17691 * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
17692 strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
17693 GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
17694 time warning rather than a link error.
17696 2007-02-12 Bruno Haible <bruno@clisp.org>
17698 * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
17699 * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
17700 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
17702 2007-02-12 Paul Eggert <eggert@cs.ucla.edu>
17704 * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
17707 2007-02-12 Paul Eggert <eggert@cs.ucla.edu>
17709 New module 'time', so that apps can include <time.h> as per
17710 POSIX and GNU instead of separate include files like time_r.h
17711 and timegm.h. This implementation tries out a simpler approach
17712 for replacing decls in standard include files (as compared to
17713 the string module), somewhat as an experiment.
17715 * config/srclist.txt: Comment out mktime.c for now.
17716 * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
17717 since it doesn't apply any more. Use generic wording instead.
17718 * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
17720 * lib/time_.h, m4/time_h.m4, modules/time: New files.
17721 * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
17722 * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
17723 Don't include <sys/types.h>; no longer needed since we assume C89.
17724 * lib/mktime.c: Don't include "time_r.h"; no longer needed.
17725 * lib/strftime.c: Likewise.
17726 * lib/time_r.c: Likewise.
17727 * lib/nanosleep.c (nanosleep): #undef after include files, not before.
17728 * lib/nanosleep.c: Include <time.h> first, to check interface.
17729 * lib/strptime.c: Likewise.
17730 * lib/time_r.c: Likewise.
17731 * lib/timegm.c: Likewise.
17732 * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
17734 * lib/timegm.c: Don't include timegm.h; no longer needed.
17735 * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
17736 time.h now handles any problems in that area.
17737 (struct timespec, nanosleep): Remove; time.h now arranges for these.
17738 * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
17739 that time.h defines struct timespec.
17740 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
17741 Set REPLACE_NANOSLEEP. Don't AC_DEFINE nanosleep; the time module now
17743 * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
17744 * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
17745 needed. Set REPLACE_LOCALTIME.
17746 * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
17747 * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
17748 (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
17749 nanosleep; time_h.m4 now does that. Don't require
17750 gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
17751 module handles this now.
17752 * modules/getdate (Depends-on): Remove timespec. Add time.
17753 * modules/nanosleep (Depends-on): Likewise.
17754 * modules/stat-time (Depends-on): Likewise.
17755 * modules/nanosleep (Include): Include time.h, not timespec.h.
17756 * modules/strptime (Files): Remove lib/strptime.h.
17757 (Depends-on): Add extensions, time.
17758 (Include): Include time.h, not strptime.h.
17759 * modules/time_r (Files): Remove lib/time_r.h.
17760 (Depends-on): Add time.
17761 (Include): Include time.h, not time_r.h.
17762 * modules/timegm: Likewise.
17763 * modules/timespec (Description): Now does timespec-related decls
17764 of our own, instead of struct timespec itself.
17765 (Depends-on): Add time; remove extensions.
17766 (Maintainer): Add self.
17767 * modules/utimecmp (Depends-on): Add time; remove timespec.
17768 * modules/utimens (Depends-on): Likewise.
17769 * modules/xnanosleep (Depends-on): Likewise.
17771 2007-02-11 Bruno Haible <bruno@clisp.org>
17773 * lib/c-strstr.c: Include allocsa.h.
17774 (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
17775 * lib/c-strcasestr.c: Include allocsa.h.
17776 (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
17777 * lib/strcasestr.c: Include allocsa.h.
17778 (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
17779 * lib/mbsstr.c: Include allocsa.h.
17780 (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
17781 allocsa/freesa instead of malloc/free.
17782 * lib/mbscasestr.c: Include allocsa.h.
17783 (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
17784 allocsa/freesa instead of malloc/free.
17785 * modules/c-strstr (Depends-on): Add allocsa.
17786 * modules/c-strcasestr (Depends-on): Likewise.
17787 * modules/strcasestr (Depends-on): Likewise.
17788 * modules/mbsstr (Depends-on): Likewise.
17789 * modules/mbscasestr (Depends-on): Likewise.
17791 2007-02-11 Bruno Haible <bruno@clisp.org>
17793 * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
17795 * modules/mbsspn-tests: New file.
17796 * tests/test-mbsspn.sh: New file.
17797 * tests/test-mbsspn.c: New file.
17799 2007-02-11 Bruno Haible <bruno@clisp.org>
17801 * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
17803 * modules/mbspbrk-tests: New file.
17804 * tests/test-mbspbrk.sh: New file.
17805 * tests/test-mbspbrk.c: New file.
17807 2007-02-11 Bruno Haible <bruno@clisp.org>
17809 * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
17812 * modules/mbscspn-tests: New file.
17813 * tests/test-mbscspn.sh: New file.
17814 * tests/test-mbscspn.c: New file.
17816 2007-02-11 Bruno Haible <bruno@clisp.org>
17818 * modules/mbscasecmp-tests: New file.
17819 * tests/test-mbscasecmp.sh: New file.
17820 * tests/test-mbscasecmp.c: New file.
17822 2007-02-11 Bruno Haible <bruno@clisp.org>
17824 Ensure O(n) worst-case complexity of mbscasestr.
17825 * lib/mbscasestr.c: Include stdbool.h.
17826 (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
17828 (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
17829 the bookkeeping indicates that it's worth it.
17830 * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
17832 * modules/mbscasestr-tests: New file.
17833 * tests/test-mbscasestr1.c: New file.
17834 * tests/test-mbscasestr2.sh: New file.
17835 * tests/test-mbscasestr2.c: New file.
17836 * tests/test-mbscasestr3.sh: New file.
17837 * tests/test-mbscasestr3.c: New file.
17838 * tests/test-mbscasestr4.sh: New file.
17839 * tests/test-mbscasestr4.c: New file.
17840 * m4/locale-tr.m4: New file.
17842 2007-02-11 Bruno Haible <bruno@clisp.org>
17844 Ensure O(n) worst-case complexity of mbsstr.
17845 * lib/mbsstr.c: Include stdbool.h.
17846 (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
17848 (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
17849 bookkeeping indicates that it's worth it.
17850 * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
17852 * modules/mbsstr-tests: New file.
17853 * tests/test-mbsstr1.c: New file.
17854 * tests/test-mbsstr2.sh: New file.
17855 * tests/test-mbsstr2.c: New file.
17856 * tests/test-mbsstr3.sh: New file.
17857 * tests/test-mbsstr3.c: New file.
17858 * m4/locale-fr.m4: New file.
17860 2007-02-11 Bruno Haible <bruno@clisp.org>
17862 * lib/mbsrchr.c (mbsrchr): Fix bug.
17864 * modules/mbsrchr-tests: New file.
17865 * tests/test-mbsrchr.sh: New file.
17866 * tests/test-mbsrchr.c: New file.
17868 2007-02-11 Bruno Haible <bruno@clisp.org>
17870 * lib/mbschr.c (mbschr): Fix bug.
17872 * modules/mbschr-tests: New file.
17873 * tests/test-mbschr.sh: New file.
17874 * tests/test-mbschr.c: New file.
17875 * m4/locale-zh.m4: New file.
17877 2007-02-11 Bruno Haible <bruno@clisp.org>
17879 Support for copying multibyte string iterators.
17880 * lib/mbiter.h: Include <string.h>.
17881 (mbiter_multi_copy): New function.
17882 (mbi_copy): New macro.
17883 * lib/mbuiter.h: Include <string.h>.
17884 (mbuiter_multi_copy): New function.
17885 (mbui_copy): New macro.
17887 2007-02-11 Bruno Haible <bruno@clisp.org>
17890 * modules/mbslen: New file.
17891 * lib/mbslen.c: New file.
17892 * lib/string_.h (mbslen): New declaration.
17893 * m4/mbslen.m4: New file.
17894 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
17896 * modules/string (string.h): Also substitute GNULIB_MBSLEN.
17897 * MODULES.html.sh (Internationalization functions): Add mbslen.
17899 2007-02-11 Bruno Haible <bruno@clisp.org>
17901 Ensure O(n) worst-case complexity of strcasestr substitute.
17902 * lib/strcasestr.c: Include stdbool.h.
17903 (knuth_morris_pratt): New function.
17904 (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
17905 bookkeeping indicates that it's worth it.
17906 * modules/strcasestr (Depends-on): Add stdbool, strnlen.
17908 * modules/strcasestr-tests: New file.
17909 * tests/test-strcasestr.c: New file.
17911 2007-02-11 Bruno Haible <bruno@clisp.org>
17913 Ensure O(n) worst-case complexity of c_strcasestr.
17914 * lib/c-strcasestr.c: Include stdbool.h, string.h.
17915 (knuth_morris_pratt): New function.
17916 (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
17917 the bookkeeping indicates that it's worth it.
17918 * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
17920 * modules/c-strcasestr-tests: New file.
17921 * tests/test-c-strcasestr.c: New file.
17923 2007-02-11 Bruno Haible <bruno@clisp.org>
17925 Ensure O(n) worst-case complexity of c_strstr.
17926 * lib/c-strstr.c: Include stdbool.h, string.h.
17927 (knuth_morris_pratt): New function.
17928 (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
17929 bookkeeping indicates that it's worth it.
17930 * modules/c-strstr (Depends-on): Add stdbool, strnlen.
17932 * lib/c-strstr.c: Complete rewrite for maintainability.
17934 * modules/c-strstr-tests: New file.
17935 * tests/test-c-strstr.c: New file.
17937 2007-02-11 Bruno Haible <bruno@clisp.org>
17939 * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
17940 5.2.1 and earlier, whereby \055 was treated just like the range
17942 Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
17944 2007-02-08 Bruno Haible <bruno@clisp.org>
17946 * modules/regex (Depends-on): Add stdbool.
17947 Reported by Dalibor Topic <robilad@kaffe.org>.
17949 2007-02-05 Paul Eggert <eggert@cs.ucla.edu>
17951 * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
17952 Prefer returning from main to exiting from it.
17953 Remove unnecessary parens after sizeof.
17955 2007-02-05 Bruno Haible <bruno@clisp.org>
17958 * modules/mbssep: New file.
17959 * lib/mbssep.c: New file.
17960 * lib/string_.h (strsep): Add a conditional link warning.
17961 (mbssep): New declaration.
17962 * m4/mbssep.m4: New file.
17963 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
17965 * modules/string (string.h): Also substitute GNULIB_MBSSEP.
17966 * MODULES.html.sh (Internationalization functions): Add mbssep.
17968 2007-02-05 Bruno Haible <bruno@clisp.org>
17970 * lib/strsep.c (strsep): Fix actions in case of no delimiters.
17971 Optimize search in case of 1 delimiter.
17973 2007-02-05 Paolo Bonzini <bonzini@gnu.org>
17975 * lib/acl.h: Include sys/types.h before sys/acl.h.
17977 2007-02-05 Paolo Bonzini <bonzini@gnu.org>
17979 Merge upstream fix for glibc bugzilla #3957:
17981 2007-02-05 Jakub Jelinek <jakub@redhat.com>
17983 * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
17984 bit for RE_HAT_LISTS_NOT_NEWLINE.
17985 (build_charclass_op): Remove bogus comment.
17987 2007-02-05 Simon Josefsson <simon@josefsson.org>
17989 * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
17991 2007-02-04 Paul Eggert <eggert@cs.ucla.edu>
17993 * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
17994 * lib/memmem.c [!defined _LIBC]: Include config.h.
17996 2007-02-04 Bruno Haible <bruno@clisp.org>
17998 * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
18001 2007-02-04 Bruno Haible <bruno@clisp.org>
18003 New module mbstok_r.
18004 * modules/mbstok_r: New file.
18005 * lib/mbstok_r.c: New file.
18006 * lib/string_.h (strtok_r): Change argument names to match the
18007 comments. Add a conditional link warning.
18008 (mbstok_r): New declaration.
18009 * m4/mbstok_r.m4: New file.
18010 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
18012 * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
18013 * MODULES.html.sh (Internationalization functions): Add mbstok_r.
18015 2007-02-04 Bruno Haible <bruno@clisp.org>
18018 * modules/mbsspn: New file.
18019 * lib/mbsspn.c: New file.
18020 * lib/string_.h (strspn): Add a conditional link warning.
18021 (mbsspn): New declaration.
18022 * m4/mbsspn.m4: New file.
18023 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
18025 * modules/string (string.h): Also substitute GNULIB_MBSSPN.
18026 * MODULES.html.sh (Internationalization functions): Add mbsspn.
18028 2007-02-04 Bruno Haible <bruno@clisp.org>
18030 New module mbspbrk.
18031 * modules/mbspbrk: New file.
18032 * lib/mbspbrk.c: New file.
18033 * lib/string_.h (strpbrk): Add a conditional link warning.
18034 (mbspbrk): New declaration.
18035 * m4/mbspbrk.m4: New file.
18036 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
18038 * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
18039 * MODULES.html.sh (Internationalization functions): Add mbspbrk.
18041 2007-02-04 Bruno Haible <bruno@clisp.org>
18043 New module mbscspn.
18044 * modules/mbscspn: New file.
18045 * lib/mbscspn.c: New file.
18046 * lib/string_.h (strcspn): Add a conditional link warning.
18047 (mbscspn): New declaration.
18048 * m4/mbscspn.m4: New file.
18049 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
18051 * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
18052 * MODULES.html.sh (Internationalization functions): Add mbscspn.
18054 2007-02-04 Bruno Haible <bruno@clisp.org>
18056 New module mbscasestr, reduced goal of strcasestr.
18057 * modules/mbscasestr: New file.
18058 * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
18059 (mbscasestr): Renamed from strcasestr.
18060 * lib/strcasestr.c: Don't include mbuiter.h.
18061 (strcasestr): Remove support for multibyte locales.
18062 * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
18063 Change the conditional link warning.
18064 (mbscasestr): New declaration.
18065 * m4/mbscasestr.m4: New file.
18066 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
18067 the system does not have strcasestr. Set HAVE_STRCASESTR instead of
18068 REPLACE_STRCASESTR.
18069 (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
18070 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
18071 HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
18072 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
18073 * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
18074 Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
18075 * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
18076 (Depends-on): Remove mbuiter.
18077 * MODULES.html.sh (Internationalization functions): Add mbscasestr.
18079 2007-02-04 Bruno Haible <bruno@clisp.org>
18081 Simplify handling of strncasecmp.
18082 * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
18083 the conditional link warning.
18084 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
18085 HAVE_STRCASECMP, not REPLACE_STRCASECMP.
18086 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
18087 * modules/strcase (configure.ac): Don't invoke
18088 gl_STRING_MODULE_INDICATOR.
18089 * modules/string (string.h): Don't substitute GNULIB_STRCASE.
18091 2007-02-04 Bruno Haible <bruno@clisp.org>
18093 New module mbscasecmp, reduced goal of strcasecmp.
18094 * modules/mbscasecmp: New file.
18095 * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
18096 (mbscasecmp): Renamed from strcasecmp.
18097 * lib/strcasecmp.c: Don't include mbuiter.h.
18098 (strcasecmp): Remove support for multibyte locales.
18099 * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
18100 Change the conditional link warning.
18101 (mbscasecmp): New declaration.
18102 * m4/mbscasecmp.m4: New file.
18103 * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
18104 the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
18105 REPLACE_STRCASECMP.
18106 (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
18107 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
18109 * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
18110 Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
18111 * modules/strcase (Files): Remove m4/mbrtowc.m4.
18112 (Depends-on): Remove mbuiter.
18113 * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
18115 2007-02-04 Bruno Haible <bruno@clisp.org>
18117 New module mbsstr. Remove module strstr.
18118 * modules/mbsstr: New file.
18119 * modules/strstr: Remove file.
18120 * lib/mbsstr.c: Renamed from lib/strstr.c.
18121 (mbsstr): Renamed from strstr.
18122 * lib/string_.h (strstr): Remove declaration. Change the conditional
18124 (mbsstr): New declaration.
18125 * m4/mbsstr.m4: New file.
18126 * m4/strstr.m4: Remove file.
18127 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
18129 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
18130 Don't initialize GNULIB_STRSTR.
18131 * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
18132 substitute GNULIB_STRSTR and REPLACE_STRSTR.
18133 * MODULES.html.sh (Internationalization functions): Add mbsstr.
18134 (Support for systems lacking ANSI C 89): Remove strstr.
18136 2007-02-04 Bruno Haible <bruno@clisp.org>
18138 New module mbsrchr.
18139 * modules/mbsrchr: New file.
18140 * lib/mbsrchr.c: New file.
18141 * lib/string_.h (strrchr): Add a conditional link warning.
18142 (mbsrchr): New declaration.
18143 * m4/mbsrchr.m4: New file.
18144 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
18146 * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
18147 * MODULES.html.sh (Internationalization functions): Add mbsrchr.
18149 2007-02-04 Bruno Haible <bruno@clisp.org>
18152 * modules/mbschr: New file.
18153 * lib/mbschr.c: New file.
18154 * lib/string_.h (strchr): Add a conditional link warning.
18155 (mbschr): New declaration.
18156 * m4/mbschr.m4: New file.
18157 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
18159 * modules/string (string.h): Also substitute GNULIB_MBSCHR.
18160 * MODULES.html.sh (Internationalization functions): Add mbschr.
18162 2007-02-04 Paul Eggert <eggert@cs.ucla.edu>
18164 * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
18166 * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
18168 2007-02-04 Bruno Haible <bruno@clisp.org>
18170 New module description section 'configure.ac-early'.
18171 * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
18172 (func_get_autoconf_early_snippet): New function.
18173 (func_import, func_create_testdir): Use it. Remove special cases for
18174 modules 'extensions' and 'lock'.
18175 * modules/extensions (configure.ac-early): Require
18176 gl_USE_SYSTEM_EXTENSIONS.
18177 * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
18179 2007-02-04 Bruno Haible <bruno@clisp.org>
18181 Make use of gcj-4.3's -fsource and -ftarget option.
18182 * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
18183 and if so try the options -fsource and -ftarget.
18184 * lib/javacomp.c (compile_using_gcj): Add fsource_option,
18185 source_version, ftarget_option, target_version arguments.
18186 (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
18187 (is_envjavac_oldgcj_14_14_usable): Renamed from
18188 is_envjavac_gcj_14_14_usable.
18189 (is_envjavac_oldgcj_14_13_usable): Renamed from
18190 is_envjavac_gcj_14_13_usable.
18191 (is_gcj_present): Update.
18192 (is_gcj_43, is_gcj43_usable): New functions.
18193 (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
18194 (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
18195 (compile_java_class): Test whether gcj is in version >= 4.3, and if so
18196 try the options -fsource and -ftarget.
18198 2007-02-03 Paul Eggert <eggert@cs.ucla.edu>
18200 * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
18201 checking code. Set N = ceil (1.5 * N) rather than to a slightly
18204 2007-02-03 Jim Meyering <jim@meyering.net>
18206 Give tools a better chance to allocate space for very large buffers.
18207 * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
18209 Make pwd and readlink work also when run with an unreadable parent dir
18210 on systems with openat support.
18211 * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
18212 provided getcwd function, even when we have openat support.
18213 Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
18215 2007-02-02 Bruno Haible <bruno@clisp.org>
18217 * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
18218 strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
18219 error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
18220 portability problems if one of these functions is only used on specific
18222 Reported by Paul Eggert.
18224 2007-02-02 Paul Eggert <eggert@cs.ucla.edu>
18226 Avoid mempcpy in the regex code, as the string.h mempcpy stuff
18227 is causing more trouble than it's curing.
18228 * lib/regex_internal.h (__mempcpy): Remove.
18229 * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
18230 (and make the code a tad smaller to boot).
18231 * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
18233 2007-02-02 Jim Meyering <jim@meyering.net>
18235 * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
18236 section, not in the Makefile.am: one.
18238 2007-02-02 Eric Blake <ebb9@byu.net>
18240 * lib/strchrnul.c: Always include config.h first.
18242 * modules/mountlist (Depends-on): Revert 2007-01-31 change,
18243 gnulib strstr is not necessary here.
18245 2007-02-02 Simon Josefsson <simon@josefsson.org>
18247 * m4/socklen.m4: Fix typo.
18249 2007-02-02 Eric Blake <ebb9@byu.net>
18251 * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
18252 * modules/netinet_in (Makefile.am): Likewise.
18254 2007-02-01 Bruno Haible <bruno@clisp.org>
18256 * lib/string_.h (GL_LINK_WARNING): New macro.
18257 (strcasecmp, strstr, strcasestr): If provided by the system,
18258 conditionally define as a macro that leads to a warning instead of to
18260 (strncasecmp): Conditionally define as a macro that leads to a warning.
18262 2007-02-01 Karl Berry <karl@gnu.org>
18264 * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
18266 2007-02-01 Bruno Haible <bruno@clisp.org>
18268 * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
18271 2007-02-01 Eric Blake <ebb9@byu.net>
18273 * modules/regex (Depends-on): Revert dependence on mempcpy.
18274 * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
18275 module's definition of mempcpy.
18276 Reported by Paul Eggert.
18278 2007-02-01 Paul Eggert <eggert@cs.ucla.edu>
18280 * lib/string_.h: If the gnulib module XYZ is not present, undefine
18281 the symbol XYZ before redefining it. This fixes a problem with
18282 programs that don't use XYZ, when compiled on systems that define
18283 XYZ to something else.
18285 2007-01-31 Paul Eggert <eggert@cs.ucla.edu>
18287 * lib/mkdir-p.c (make_dir_parents): Close a race condition that
18288 occurs when "mkdir -m foo" creates a setgid directory that is (1)
18289 writeable to group or other and (2) is intended to have a special
18290 mode bit that is set or cleared. In such a case, the directory
18291 should be neither group- nor other-writeable until the special
18292 mode bits are right.
18294 2007-01-31 Eric Blake <ebb9@byu.net>
18296 * modules/mountlist (Depends-on): Add strstr.
18298 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
18300 * modules/string (Makefile.am): Remove redundant replacement.
18301 * modules/regex (Depends-on): Add mempcpy.
18303 2007-01-31 Bruno Haible <bruno@clisp.org>
18305 New module description field 'Link'.
18306 * gnulib-tool (func_usage): Document --extract-link-directive.
18307 (sed_extract_prog): Recognize 'Link' directive.
18308 (func_get_link_directive): New function.
18309 (func_import): Show summary of link directives.
18310 Handle --extract-link-directive option.
18311 * modules/acl (Link): New section.
18312 * modules/clock-time (Link): New section.
18313 * modules/euidaccess (Link): New section.
18314 * modules/gettext (Link): New section.
18315 * modules/iconv (Link): New section.
18316 * modules/lock (Link): New section.
18317 * modules/nanosleep (Link): New section.
18318 * modules/readline (Link): New section.
18320 2007-01-27 Bruno Haible <bruno@clisp.org>
18322 Enforce the use of gnulib modules for unportable <string.h> functions.
18323 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
18324 (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
18325 (gl_HEADER_STRING_H_BODY): Require it.
18326 * lib/string_.h: If the gnulib module XYZ is not present, redefine
18327 the symbol XYZ to one that gives a link error.
18328 * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
18329 * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
18330 * modules/mempcpy (configure.ac): Likewise.
18331 * modules/memrchr (configure.ac): Likewise.
18332 * modules/stpcpy (configure.ac): Likewise.
18333 * modules/stpncpy (configure.ac): Likewise.
18334 * modules/strcase (configure.ac): Likewise.
18335 * modules/strcasestr (configure.ac): Likewise.
18336 * modules/strchrnul (configure.ac): Likewise.
18337 * modules/strdup (configure.ac): Likewise.
18338 * modules/strndup (configure.ac): Likewise.
18339 * modules/strnlen (configure.ac): Likewise.
18340 * modules/strpbrk (configure.ac): Likewise.
18341 * modules/strsep (configure.ac): Likewise.
18342 * modules/strstr (configure.ac): Likewise.
18343 * modules/strtok_r (configure.ac): Likewise.
18345 2007-01-31 Jean-Louis Martineau <martineau@zmanda.com> (tiny change)
18347 * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
18349 2007-01-30 Jim Meyering <jim@meyering.net>
18351 * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
18353 2007-01-29 Bruno Haible <bruno@clisp.org>
18355 * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
18356 * lib/execute.c: Likewise.
18357 * lib/pipe.c: Likewise.
18358 * lib/printf-args.h: Likewise.
18359 * lib/printf-args.c: Likewise.
18360 * lib/printf-parse.c: Likewise.
18361 * lib/vasnprintf.c: Likewise.
18363 2007-01-29 Eric Blake <ebb9@byu.net>
18365 * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
18368 2007-01-29 Paul Eggert <eggert@cs.ucla.edu>
18370 * lib/strptime.h (strptime): Use 'restrict' for args where
18371 POSIX requires this.
18372 * lib/strptime.c (strptime): Likewise.
18373 Change license notice from LGPL to GPL, since gnulib-tool will
18374 change this as needed.
18375 Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
18377 Include "strptime.h" first, to check interface.
18378 Do not #undef _LIBC and _NL_CURRENT.
18379 Do not include <stdlib.h>; no longer needed.
18380 Include "time_r.h" and declare ptime_locale_status
18381 only if _LIBC is not defined.
18382 (__P): Remove unused macro.
18383 (match_string): Bring back glibc version, but use it only if _LIBC
18385 (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
18386 Remove unnecessary assertion and abort() call.
18387 Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
18388 * m4/strptime.m4: Fix serial number comment.
18389 (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
18390 * modules/strptime (Files): Add m4/tm_gmtoff.m4.
18391 (Depends-on): Add time_r.
18393 2007-01-29 Bruno Haible <bruno@clisp.org>
18395 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
18397 * modules/strptime (Depends-on): Add stdbool.
18398 * lib/strptime.h: Include <time.h> always. Add comments.
18400 2007-01-29 Yoann Vandoorselaere <yoann@prelude-ids.org>
18402 * modules/strptime: New file.
18403 * lib/strptime.h: New file.
18404 * lib/strptime.c: New file.
18405 * m4/strptime.m4: New file.
18407 2007-01-28 Paul Eggert <eggert@cs.ucla.edu>
18409 * MODULES.html.sh: New module mpsort.
18410 * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
18412 * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
18413 a circularity problem with HP-UX ia64 reported by Bob Proulx in
18414 <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
18416 (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
18418 * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
18420 * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
18421 the parameter matches the prototype.
18423 2007-01-28 Jim Meyering <jim@meyering.net>
18425 * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
18426 sys/time.h here, reverting that part of the previous patch:
18427 <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
18429 2007-01-28 Bruno Haible <bruno@clisp.org>
18431 * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
18432 value of $(SYS_TIME_H).
18433 [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
18434 remove it conditionally, too. [added by Jim Meyering]
18435 * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
18436 * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
18437 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
18438 GETTIMEOFDAY_REPLACEMENT to 1.
18440 2007-01-28 Bruno Haible <bruno@clisp.org>
18442 * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
18443 (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
18444 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
18445 Set UNISTD_H instead of UNISTD_H2.
18446 * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
18448 2007-01-28 Bruno Haible <bruno@clisp.org>
18450 * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
18451 * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
18453 2007-01-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18455 * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
18456 (func_create_testdir): Ensure C locale for `grep' and `tr'
18458 (func_create_megatestdir): Avoid one `grep'. Fix bug in
18459 ACLOCAL_AMFLAGS parsing state machine.
18461 2007-01-27 Bruno Haible <bruno@clisp.org>
18463 * modules/unistr/base: Update.
18465 2007-01-27 Bruno Haible <bruno@clisp.org>
18467 Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
18468 u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
18469 * modules/unistr/u32-mbtouc-unsafe: Renamed from
18470 modules/unistr/u32-mbtouc.
18471 * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
18472 * lib/unistr.h: Update.
18473 * lib/linebreak.c: Update.
18474 * modules/unistr/u32-mbtouc: Renamed from
18475 modules/unistr/u32-mbtouc-safe.
18476 * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
18477 * lib/unistr.h: Update.
18478 * lib/unistr/u32-to-u8.c: Update.
18479 * lib/unistr/u32-to-u16.c: Update.
18481 2007-01-27 Bruno Haible <bruno@clisp.org>
18483 Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
18484 u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
18485 * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
18486 * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
18487 * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
18488 * modules/unistr/u16-mbtouc-unsafe: Renamed from
18489 modules/unistr/u16-mbtouc.
18490 * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
18491 * lib/unistr.h: Update.
18492 * lib/linebreak.c: Update.
18493 * modules/linebreak: Update.
18494 * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
18495 * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
18496 * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
18497 * modules/unistr/u16-mbtouc: Renamed from
18498 modules/unistr/u16-mbtouc-safe.
18499 * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
18500 * lib/unistr.h: Update.
18501 * lib/unistr/u16-to-u8.c: Update.
18502 * modules/unistr/u16-to-u8: Update.
18503 * lib/unistr/u16-to-u32.c: Update.
18504 * modules/unistr/u16-to-u32: Update.
18506 2007-01-27 Bruno Haible <bruno@clisp.org>
18508 Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
18509 u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
18510 * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
18511 * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
18512 * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
18513 * modules/unistr/u8-mbtouc-unsafe: Renamed from
18514 modules/unistr/u8-mbtouc.
18515 * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
18516 * lib/unistr.h: Update.
18517 * lib/striconveh.c: Update.
18518 * modules/striconveh: Update.
18519 * lib/linebreak.c: Update.
18520 * modules/linebreak: Update.
18521 * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
18522 * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
18523 * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
18524 * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
18525 * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
18526 * lib/unistr.h: Update.
18527 * lib/striconveh.c: Update.
18528 * modules/striconveh: Update.
18529 * lib/unistr/u8-to-u16.c: Update.
18530 * modules/unistr/u8-to-u16: Update.
18531 * lib/unistr/u8-to-u32.c: Update.
18532 * modules/unistr/u8-to-u32: Update.
18534 2007-01-27 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18537 * lib/argz.c: Do not include strings.h nor memory.h, include
18538 string.h unconditionally. Patch by Simon Josefsson.
18540 2007-01-27 Bruno Haible <bruno@clisp.org>
18542 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
18543 from gl_HEADER_STRING_H_BODY.
18544 (gl_HEADER_STRING_H_BODY): Require it.
18545 * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
18546 * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
18547 * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
18548 * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
18549 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
18550 * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
18551 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
18552 * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
18553 * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
18554 * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
18555 * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
18556 * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
18557 * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
18558 * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
18559 * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
18561 2007-01-27 Bruno Haible <bruno@clisp.org>
18563 * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
18564 check_PROGRAMS into noinst_PROGRAMS.
18565 (func_emit_tests_Makefile_am): Likewise. Also don't initialize
18566 check_PROGRAMS in this case.
18567 (func_import): Set for_test to false.
18568 (func_create_testdir): Set for_test to true.
18570 2007-01-27 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
18571 Bruno Haible <bruno@clisp.org>
18573 * modules/strcasestr (Files): Remove lib/strcasestr.h.
18574 (Depends-on): Add string.
18575 (Includes): Use <string.h> instead of strcasestr.h.
18576 * modules/string (Makefile.am): Also substitute the value of
18577 REPLACE_STRCASESTR.
18578 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
18579 assume strcasestr is declared in <string.h> not <strings.h>. Also
18580 set REPLACE_STRCASESTR.
18581 * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
18582 REPLACE_STRCASESTR.
18583 * lib/strcasestr.h: Remove file.
18584 * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
18585 * lib/string_.h (strcasestr): New declaration.
18587 2007-01-27 Bruno Haible <bruno@clisp.org>
18589 * lib/string_.h: Use 'extern'.
18591 2007-01-27 Jim Meyering <jim@meyering.net>
18593 * lib/regex_internal.c (re_string_reconstruct): Remove declaration
18594 of set-but-not-used local, "q".
18596 * lib/mempcpy.c: Include <config.h> before <string.h>.
18597 This fixes a compilation error on HP-UX, due to the system's
18598 "restrict"-using mempcpy prototype.
18600 2007-01-26 Bruno Haible <bruno@clisp.org>
18602 Small optimization.
18603 * lib/javacomp.c: Include c-strstr.h.
18604 (is_envjavac_gcj): Use c_strstr instead of strstr.
18605 * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
18607 2007-01-26 Bruno Haible <bruno@clisp.org>
18609 * MODULES.html.sh (Unicode string functions): Add the new modules.
18611 * modules/uniconv/u32-strconv-to-locale: New file.
18612 * lib/uniconv/u32-strconv-to-locale.c: New file.
18614 * modules/uniconv/u16-strconv-to-locale: New file.
18615 * lib/uniconv/u16-strconv-to-locale.c: New file.
18617 * modules/uniconv/u8-strconv-to-locale: New file.
18618 * lib/uniconv/u8-strconv-to-locale.c: New file.
18620 * modules/uniconv/u32-strconv-from-locale: New file.
18621 * lib/uniconv/u32-strconv-from-locale.c: New file.
18623 * modules/uniconv/u16-strconv-from-locale: New file.
18624 * lib/uniconv/u16-strconv-from-locale.c: New file.
18626 * modules/uniconv/u8-strconv-from-locale: New file.
18627 * lib/uniconv/u8-strconv-from-locale.c: New file.
18629 * modules/uniconv/u32-strconv-to-enc: New file.
18630 * lib/uniconv/u32-strconv-to-enc.c: New file.
18631 * modules/uniconv/u32-strconv-to-enc-tests: New file.
18632 * tests/uniconv/test-u32-strconv-to-enc.c: New file.
18634 * modules/uniconv/u16-strconv-to-enc: New file.
18635 * lib/uniconv/u16-strconv-to-enc.c: New file.
18636 * lib/uniconv/u-strconv-to-enc.h: New file.
18637 * modules/uniconv/u16-strconv-to-enc-tests: New file.
18638 * tests/uniconv/test-u16-strconv-to-enc.c: New file.
18640 * modules/uniconv/u8-strconv-to-enc: New file.
18641 * lib/uniconv/u8-strconv-to-enc.c: New file.
18642 * modules/uniconv/u8-strconv-to-enc-tests: New file.
18643 * tests/uniconv/test-u8-strconv-to-enc.c: New file.
18645 * modules/uniconv/u32-strconv-from-enc: New file.
18646 * lib/uniconv/u32-strconv-from-enc.c: New file.
18647 * modules/uniconv/u32-strconv-from-enc-tests: New file.
18648 * tests/uniconv/test-u32-strconv-from-enc.c: New file.
18650 * modules/uniconv/u16-strconv-from-enc: New file.
18651 * lib/uniconv/u16-strconv-from-enc.c: New file.
18652 * modules/uniconv/u16-strconv-from-enc-tests: New file.
18653 * tests/uniconv/test-u16-strconv-from-enc.c: New file.
18655 * modules/uniconv/u8-strconv-from-enc: New file.
18656 * lib/uniconv/u8-strconv-from-enc.c: New file.
18657 * lib/uniconv/u-strconv-from-enc.h: New file.
18658 * modules/uniconv/u8-strconv-from-enc-tests: New file.
18659 * tests/uniconv/test-u8-strconv-from-enc.c: New file.
18661 * modules/uniconv/u32-conv-from-enc: New file.
18662 * lib/uniconv/u32-conv-from-enc.c: New file.
18663 * modules/uniconv/u32-conv-from-enc-tests: New file.
18664 * tests/uniconv/test-u32-conv-from-enc.c: New file.
18666 * modules/uniconv/u16-conv-from-enc: New file.
18667 * lib/uniconv/u16-conv-from-enc.c: New file.
18668 * lib/uniconv/u-conv-from-enc.h: New file.
18669 * modules/uniconv/u16-conv-from-enc-tests: New file.
18670 * tests/uniconv/test-u16-conv-from-enc.c: New file.
18672 * modules/uniconv/u8-conv-from-enc: New file.
18673 * lib/uniconv/u8-conv-from-enc.c: New file.
18674 * modules/uniconv/u8-conv-from-enc-tests: New file.
18675 * tests/uniconv/test-u8-conv-from-enc.c: New file.
18677 * modules/uniconv/base: New file.
18678 * lib/uniconv.h: New file.
18680 2007-01-26 Paul Eggert <eggert@cs.ucla.edu>
18682 * doc/gnulib-tool.texi (Initial import): Update to match current
18683 behavior with strdup module.
18684 * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
18685 * lib/memmem.h: Remove; all uses removed. This is now done
18687 * lib/mempcpy.h: Likewise.
18688 * lib/memrchr.h: Likewise.
18689 * lib/stpcpy.h: Likewise.
18690 * lib/stpncpy.h: Likewise.
18691 * lib/strcase.h: Likewise.
18692 * lib/strchrnul.h: Likewise.
18693 * lib/strdup.h: Likewise.
18694 * lib/strndup.h: Likewise.
18695 * lib/strnlen.h: Likewise.
18696 * lib/strpbrk.h: Likewise.
18697 * lib/strsep.h: Likewise.
18698 * lib/strstr.h: Likewise.
18699 * lib/strtok_r.h: Likewise.
18700 * lib/string_.h: New file.
18701 * lib/argp-namefrob.h: Don't include no-longer-existent include files.
18702 Rely on <string.h> instead.
18703 * lib/canon-host.c: Likewise.
18704 * lib/chdir-long.c: Likewise.
18705 * lib/concatpath.c: Likewise.
18706 * lib/exclude.c: Likewise.
18707 * lib/fchdir.c: Likewise.
18708 * lib/getaddrinfo.c: Likewise.
18709 * lib/getcwd.c: Likewise.
18710 * lib/getsubopt.c: Likewise.
18711 * lib/glob.c: Likewise.
18712 * lib/hard-locale.c: Likewise.
18713 * lib/iconvme.c: Likewise.
18714 * lib/javacomp.c: Likewise.
18715 * lib/mempcpy.c: Likewise.
18716 * lib/memrchr.c: Likewise.
18717 * lib/regex_internal.h: Likewise.
18718 * lib/stpncpy.c: Likewise.
18719 * lib/strcasecmp.c: Likewise.
18720 * lib/strchrnul.c: Likewise.
18721 * lib/strdup.c: Likewise.
18722 * lib/striconv.c: Likewise.
18723 * lib/striconveh.c: Likewise.
18724 * lib/striconveha.c: Likewise.
18725 * lib/strncasecmp.c: Likewise.
18726 * lib/strndup.c: Likewise.
18727 * lib/strnlen.c: Likewise.
18728 * lib/strsep.c: Likewise.
18729 * lib/strstr.c: Likewise.
18730 * lib/strtok_r.c: Likewise.
18731 * lib/userspec.c: Likewise.
18732 * lib/w32spawn.h: Likewise.
18733 * lib/xstrndup.c: Likewise.
18734 * lib/mountlist.c (strstr): Remove decl.
18735 * m4/string_h.m4: New file.
18736 * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
18737 * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
18738 * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
18739 * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
18740 * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
18741 * m4/strcase.m4 (gl_FUNC_STRCASECMP):
18742 Set REPLACE_STRCASECMP if necessary.
18743 (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
18744 * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
18745 * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
18746 * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
18747 HAVE_DECL_STRDUP if necessary.
18748 (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
18749 since gl_FUNC_STRNDUP does that now.
18750 * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
18751 Check for decl here...
18752 (gl_PREREQ_STRNLEN): ... not here.
18753 * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
18754 * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
18755 * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
18756 * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
18758 * modules/string: New file.
18759 * modules/memmem (Files): Remove special-purpose include file.
18760 (Depends-on): Add string.
18761 (Include): Include <string.h>, not the removed file.
18762 * modules/mempcpy: Likewise.
18763 * modules/memrchr: Likewise.
18764 * modules/stpcpy: Likewise.
18765 * modules/stpncpy: Likewise.
18766 * modules/strcase: Likewise.
18767 * modules/strchrnul: Likewise.
18768 * modules/strdup: Likewise.
18769 * modules/strndup: Likewise.
18770 * modules/strnlen: Likewise.
18771 * modules/strpbrk: Likewise.
18772 * modules/strsep: Likewise.
18773 * modules/strstr: Likewise.
18774 * modules/strtok_r: Likewise.
18775 * tests/test-dirname.c: Don't include "strdup.h", since
18776 <string.h> now suffices.
18777 * tests/test-memmem.c: Don't include "memmem.h", since
18778 <string.h> now suffices.
18780 2007-01-25 Bruno Haible <bruno@clisp.org>
18782 * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
18785 * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
18786 * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
18787 * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
18788 * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
18790 * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
18791 * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
18792 * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
18793 * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
18794 * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
18795 * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
18797 2007-01-24 Bruno Haible <bruno@clisp.org>
18799 Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
18800 <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
18801 * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
18802 * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
18804 (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
18805 * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
18806 AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
18807 * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
18808 * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
18809 * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
18811 * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
18813 * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
18814 Reported by Ralf Wildenhues.
18816 2007-01-24 Bruno Haible <bruno@clisp.org>
18818 Drop AC_REQUIRE calls that are redundant with the module dependencies.
18819 * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
18821 * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
18822 gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
18823 * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
18825 2007-01-24 Paul Eggert <eggert@cs.ucla.edu>
18827 * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
18828 Don't use 'exit'; just return from 'main'.
18829 (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
18831 * lib/fnmatch_.h: Readjust white space and comments to match
18832 glibc, to avoid spurious diffs.
18834 2007-01-23 Paul Eggert <eggert@cs.ucla.edu>
18836 * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
18837 2004-12-01 change by Jakub Jelinek, since this code won't compile
18838 if !LIBC. Problem reported by Bob Proulx.
18840 2007-01-23 Bruno Haible <bruno@clisp.org>
18842 * lib/striconveh.c: Include c-strcaseeq.h.
18843 (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
18844 * modules/striconveh (Depends-on): Add c-strcaseeq.
18846 2007-01-23 Bruno Haible <bruno@clisp.org>
18848 * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
18850 * modules/c-strcaseeq: New file.
18851 * lib/c-strcaseeq.h: New file.
18853 * modules/streq: New file.
18854 * lib/streq.h: New file.
18856 2007-01-23 Bruno Haible <bruno@clisp.org>
18858 * modules/striconveha-tests: New file.
18859 * tests/test-striconveha.c: New file.
18861 * lib/striconveha.h: Include <stdbool.h>.
18862 (mem_iconveha, str_iconveha): Add 'transliterate' argument.
18863 * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
18864 (mem_iconveha_notranslit): Renamed from mem_iconveha.
18865 (mem_iconveha): New function.
18866 (str_iconveha_notranslit): Renamed from str_iconveha.
18867 (str_iconveha): New function.
18868 * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
18871 2007-01-23 Bruno Haible <bruno@clisp.org>
18873 * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
18874 encodings without forgiving before trying any encoding with handler.
18875 (str_iconveha): Try all encodings without forgiving before trying any
18876 encoding with handler.
18878 2007-01-23 Paul Eggert <eggert@cs.ucla.edu>
18880 Import the following changes from libc.
18882 2005-10-14 Ulrich Drepper <drepper@redhat.com>
18884 * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
18886 2004-12-01 Jakub Jelinek <jakub@redhat.com>
18888 * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
18889 normal_bracket label.
18891 2004-09-01 Jakub Jelinek <jakub@redhat.com>
18894 * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
18895 to normal_bracket after fetching the next character.
18897 2007-01-22 Bruno Haible <bruno@clisp.org>
18899 * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
18901 * lib/striconveh.c (iconv_carefully_1): New function.
18902 (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
18904 (str_cd_iconveh): Update.
18905 * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
18906 * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
18907 * tests/test-striconveh.c (MAGIC): New macro.
18908 (new_offsets): New function.
18909 (main): Test call with and without offsets.
18911 2007-01-22 Bruno Haible <bruno@clisp.org>
18913 * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
18914 * modules/sys_select (Makefile.am): Likewise.
18915 * modules/sys_socket (Makefile.am): Likewise.
18916 * modules/sys_time (Makefile.am): Likewise.
18918 2007-01-22 Paul Eggert <eggert@cs.ucla.edu>
18920 * modules/gettimeofday (License): Change from GPL to LGPL, since
18921 gettimeofday is a library function.
18923 2007-01-22 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
18925 * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
18927 2007-01-21 Bruno Haible <bruno@clisp.org>
18929 * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
18931 2007-01-21 Bruno Haible <bruno@clisp.org>
18933 * modules/striconveha: New file.
18934 * lib/striconveha.h: New file.
18935 * lib/striconveha.c: New file.
18936 * MODULES.html.sh (Internationalization functions): Add striconveha.
18937 * lib/striconv.c (str_iconv): Optimize the case of an empty input
18939 * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
18941 2007-01-21 Bruno Haible <bruno@clisp.org>
18943 * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
18944 * lib/striconveh.c (str_iconveh): Likewise.
18946 2007-01-21 Bruno Haible <bruno@clisp.org>
18948 * lib/striconveh.h (mem_iconveh): New declaration.
18949 * lib/striconveh.c (mem_iconveh): New function.
18950 * tests/test-striconveh.c (main): Add tests for mem_iconveh.
18952 2007-01-21 Bruno Haible <bruno@clisp.org>
18954 * lib/xstriconv.h (xmem_cd_iconv): Change specification.
18956 * lib/striconveh.h (mem_cd_iconveh): Change specification.
18957 * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
18958 original result buffer.
18959 (str_cd_iconveh): Update.
18960 * tests/test-striconveh.c (main): Update.
18962 * lib/striconv.h (mem_cd_iconv): Change specification.
18963 * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
18965 (str_cd_iconv): Update.
18966 * tests/test-striconv.c (main): Update.
18968 2007-01-21 Bruno Haible <bruno@clisp.org>
18970 * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
18972 2007-01-20 Jim Meyering <jim@meyering.net>
18974 * lib/userspec.c (parse_with_separator): If a user or group string
18975 starts with "+", skip the corresponding name-to-ID look-up, since
18976 such a look-up must fail: user and group names may not include "+".
18978 2007-01-19 Paul Eggert <eggert@cs.ucla.edu>
18980 * lib/poll.c: Include sys/time.h and time.h unconditionally,
18981 since we now assume the sys_time module.
18982 * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
18983 check for sys/time.h; no longer needed.
18984 * modules/poll (Depends-on): Depend on sys_time.
18986 2007-01-18 Bruno Haible <bruno@clisp.org>
18988 * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
18989 * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
18991 * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
18994 * tests/test-gettimeofday.c: Include <time.h>.
18995 (dummy): Remove variable.
18997 * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
18998 gl_HEADER_SYS_TIME_H.
18999 (gl_HEADER_SYS_TIME_H): New macro.
19001 * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
19002 HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
19003 * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
19004 gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
19005 HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
19006 * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
19007 GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
19008 and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
19009 * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
19010 instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
19011 GETTIMEOFDAY_CLOBBERS_LOCALTIME.
19013 * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
19014 last change; it caused a compilation error when cross-compiling to
19017 2007-01-18 Jim Meyering <jim@meyering.net>
19019 Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
19020 * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
19021 than the race-prone "test -d sys || mkdir sys".
19022 (configure.ac): Use AC_PROG_MKDIR_P.
19023 * modules/sys_select: Likewise.
19024 * modules/sys_socket: Likewise.
19025 * modules/sys_time: Likewise.
19027 2007-01-18 Eric Blake <ebb9@byu.net>
19029 * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
19030 replace gettimeofday.
19031 * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
19032 name, to avoid infinite recursion.
19034 2007-01-17 Paul Eggert <eggert@cs.ucla.edu>
19036 * MODULES.html.sh (Support for systems lacking POSIX:2001): New
19038 * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
19039 assume timespec.h defines struct timeval.
19040 * lib/settime.c: Likewise.
19041 * lib/utimens.c: Likewise.
19042 * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
19043 since we now assume the gettimeofday module.
19044 * lib/tempname.c (__gen_tempname): Likewise.
19045 * lib/gettimeofday.h: Remove.
19046 * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
19047 Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
19048 Include <time.h>, for 'time()'.
19049 (localtime_buffer_addr): Also use this workaround if
19050 TZSET_CLOBBERS_LOCALTIME. Set to a dummy static variable by default,
19051 to simplify the uses. All uses changed.
19052 (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
19053 that #undef is inside {}, and 'const' follows type name consistently.
19054 (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
19055 (gettimeofday): Do not use the maximum possible value for
19056 tv->tv_usec, since that might break usages other than ls.c.
19057 Instead, we'll leave ls.c alone. This undoes today's patch
19058 by Bruno. Add a compile-time warning for 1s-clock resolution;
19059 we've never observed the problem but might as well keep the
19061 * lib/nanosleep.c: Include timespec.h first, for interface check.
19062 * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
19063 now assume the sys_time module.
19064 * lib/tempname.c: Likewise.
19065 * lib/timespec.h: Likewise.
19066 * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
19068 * lib/strftime.c: Likewise.
19069 * lib/timespec.h: Likewise.
19070 * lib/posixtm.c: Include posixtm.h first, for interface check.
19071 Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
19072 * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
19073 * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
19074 * lib/sys_time_.h: New file.
19075 * lib/timespec.h (struct timespec): Use long int, not long.
19076 * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
19077 (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
19078 Remove obsolescent call to AC_HEADER_TIME.
19079 * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
19080 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
19081 * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
19082 * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
19084 * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
19085 * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
19086 * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
19087 into the sys_time module. Check for gettimeofday just once.
19088 Prefix our variables with gl_, not with ac_ or jm_. Tighten test
19089 for gettimeofday signature to just check the signature. Merely
19090 compile it, since linking doesn't test signature. Improve test for
19091 whether gettimeofday.o is actually needed.
19092 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
19093 AC_FUNC_GETTIMEOFDAY_CLOBBER. All uses changed. Use
19094 AC_RUN_IFELSE rather than AC_TRY_RUN. If clobbering, set
19095 and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
19096 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
19097 GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
19098 job. Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
19099 * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
19100 than worrying about sys/time.h.
19101 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
19102 Don't bother worrying about TIME_WITH_SYS_TIME.
19103 * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
19104 * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
19105 * m4/sys_time_h.m4: New file.
19106 * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
19107 Don't include sys/time.h. Return from main rather than exiting.
19108 Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
19110 * modules/gethrxtime (Depends-on): Add sys_time.
19111 * modules/gettime (Depends-on): Likewise.
19112 * modules/gettimeofday (Depends-on): Likewise.
19113 * modules/nanosleep (Depends-on): Likewise.
19114 * modules/settime (Depends-on): Likewise.
19115 * modules/tempname (Depends-on): Likewise.
19116 * modules/utimens (Depends-on): Likewise.
19117 * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
19118 (Include:) Change back to <sys/time.h>.
19119 (Maintainer:) Add self.
19120 * modules/sys_time: New file.
19121 * modules/tempname (Depends-on): Add gettimeofday.
19122 * tests/test-gettimeofday.c: Include <sys/time.h>
19123 rather than gettimeofday.h.
19125 2007-01-17 Bruno Haible <bruno@clisp.org>
19127 * gnulib-tool (func_get_license): Revert last patch. Instead, let
19128 the license default to GPL.
19129 (func_create_testdir): Don't complain if a module is LGPL and its
19130 tests module depends on GPLed modules.
19132 2007-01-17 Bruno Haible <bruno@clisp.org>
19134 * lib/gettimeofday.c (gettimeofday): Add code for the case
19135 HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
19136 maximum possible value for tv->tv_usec, rather than the minimum one.
19138 2005-10-08 Martin Lambers <marlam@marlam.de>
19139 2005-10-08 Paul Eggert <eggert@cs.ucla.edu>
19140 2007-01-16 Bruno Haible <bruno@clisp.org>
19142 * modules/gettimeofday (Files): Add lib/gettimeofday.h.
19143 (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
19144 gl_FUNC_GETTIMEOFDAY.
19145 (Include): Add gettimeofday.h.
19146 * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
19147 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
19148 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
19149 GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
19150 (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
19151 * lib/gettimeofday.h: New file.
19152 * lib/gettimeofday.c: Include <sys/timeb.h>.
19153 (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
19154 only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
19155 (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
19156 fall back on time().
19158 * tests/test-gettimeofday.c: New file.
19159 * modules/gettimeofday-tests: New file.
19161 2007-01-16 Eric Blake <ebb9@byu.net>
19163 * modules/fnmatch (Depends-on): Depend on wchar.
19164 * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
19165 * m4/fnmatch.m4: Likewise.
19166 * modules/mbchar (Makefile.am): Assume <wchar.h>.
19167 * m4/mbchar.m4: Likewise.
19168 * modules/mbswidth (Depends-on): Depend on wchar.
19169 * lib/mbswidth.c: Assume <wchar.h>.
19170 * m4/mbswidth.m4: Likewise.
19171 * modules/quotearg (Depends-on): Depend on wchar.
19172 * lib/quotearg.c: Assume <wchar.h>.
19173 * m4/quotearg.m4: Likewise.
19174 * modules/regex (Depends-on): Depend on wchar.
19175 * lib/regex_internal.h: Assume <wchar.h>.
19176 * m4/regex.m4: Likewise.
19177 * modules/stdint (Depends-on): Depend on wchar.
19178 * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
19179 * m4/stdint.m4: Likewise.
19180 * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
19181 * modules/strftime (Depends-on): Depend on wchar.
19182 * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
19183 * modules/strtol (Depends-on): Depend on wchar.
19184 * lib/strtol.c: Assume <wchar.h>.
19185 * modules/wcwidth (Depends-on): Depend on wchar.
19186 * lib/wcwidth.h: Assume <wchar.h>.
19187 * m4/wcwidth.m4: Likewise.
19189 2007-01-16 Bruno Haible <bruno@clisp.org>
19191 * modules/csharpexec-script: New, created from...
19192 * modules/csharpexec: ... this.
19194 2007-01-16 Paolo Bonzini <bonzini@gnu.org>
19196 * modules/javaexec-script: New, created from...
19197 * modules/javaexec: ... this.
19199 2007-01-16 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
19201 * modules/poll (Dependencies): Add sys_select.
19203 2007-01-15 Jim Meyering <jim@meyering.net>
19205 * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
19206 redefinition bug when using both <utmp.h> and <utmpx.h> headers.
19207 * lib/readutmp.h: Likewise. Reported by Daniel Richard G. in
19208 <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
19210 2007-01-15 Bruno Haible <bruno@clisp.org>
19212 * modules/striconveh: New file.
19213 * lib/striconveh.h: New file.
19214 * lib/striconveh.c: New file.
19215 * MODULES.html.sh (Internationalization functions): Add striconveh.
19217 * modules/striconveh-tests: New file.
19218 * tests/test-striconveh.c: New file.
19220 2007-01-15 Bruno Haible <bruno@clisp.org>
19222 * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
19223 not from GNU libiconv or GNU libc.
19225 2007-01-15 Bruno Haible <bruno@clisp.org>
19227 * doc/gnulib-intro.texi (Copyright): Explain the different license
19228 terms for module descriptions, autoconf macros, tests, documentation.
19230 2007-01-14 Bruno Haible <bruno@clisp.org>
19232 * modules/striconv-tests: New file.
19233 * tests/test-striconv.c: New file.
19235 2007-01-14 Bruno Haible <bruno@clisp.org>
19237 * modules/iconv-tests: New file.
19238 * tests/test-iconv.c: New file.
19240 2007-01-14 Bruno Haible <bruno@clisp.org>
19242 * gnulib-tool (func_get_license): For test modules, use the license of
19245 2007-01-14 Bruno Haible <bruno@clisp.org>
19247 * modules/iconv (Include): Clarify that <iconv.h> can only be included
19248 if iconv is found to exist.
19250 2007-01-14 Bruno Haible <bruno@clisp.org>
19252 * modules/c-ctype-tests: New file.
19253 * tests/test-c-ctype.c: New file.
19255 2007-01-14 Bruno Haible <bruno@clisp.org>
19257 * modules/binary-io-tests: New file.
19258 * tests/test-binary-io.sh: New file.
19259 * tests/test-binary-io.c: New file.
19261 2007-01-14 Bruno Haible <bruno@clisp.org>
19263 * modules/array-oset-tests: New file.
19264 * tests/test-array_oset.c: New file.
19266 2007-01-14 Bruno Haible <bruno@clisp.org>
19268 * modules/array-list-tests: New file.
19269 * tests/test-array_list.c: New file.
19271 2007-01-14 Bruno Haible <bruno@clisp.org>
19273 * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
19275 Reported by Simon Josefsson in
19276 <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
19278 2007-01-14 Bruno Haible <bruno@clisp.org>
19280 * modules/allocsa-tests: New file.
19281 * tests/test-allocsa.c: New file.
19283 2007-01-14 Bruno Haible <bruno@clisp.org>
19285 * modules/fchdir (Depends-on): Add absolute-header.
19286 * modules/unistd (Depends-on): Likewise.
19288 2006-12-30 Bruno Haible <bruno@clisp.org>
19290 * modules/fchdir: New file.
19291 * modules/unistd (Files): Add lib/unistd_.h.
19292 (Makefile.am): Generate unistd.h from unistd_.h.
19293 * lib/fchdir.c: New file.
19294 * lib/dirent_.h: New file.
19295 * lib/unistd_.h: New file.
19296 * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
19297 * m4/fchdir.m4: New file.
19298 * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
19299 (gl_HEADER_UNISTD): Invoke it.
19300 * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
19302 * lib/backupfile.c (opendir, closedir): Undefine.
19303 * lib/chown.c (open, close): Undefine.
19304 * lib/clean-temp.c (open, close): Undefine.
19305 * lib/copy-file.c (open, close): Undefine.
19306 * lib/execute.c (open, close): Undefine.
19307 * lib/fsusage.c (open, close): Undefine.
19308 * lib/gc-gnulib.c (open, close): Undefine.
19309 * lib/getcwd.c (opendir, closedir): Undefine.
19310 * lib/glob.c (opendir, closedir): Undefine.
19311 * lib/javacomp.c (open, close): Undefine.
19312 * lib/mountlist.c (open, close, opendir, closedir): Undefine.
19313 * lib/openat-proc.c (open, close): Undefine.
19314 * lib/pagealign_alloc.c (open, close): Undefine.
19315 * lib/pipe.c (open, close): Undefine.
19316 * lib/progreloc.c (open, close): Undefine.
19317 * lib/savedir.c (opendir, closedir): Undefine.
19318 * lib/utime.c (open, close): Undefine.
19319 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
19321 2007-01-10 Bruno Haible <bruno@clisp.org>
19323 * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
19325 2007-01-12 Eric Blake <ebb9@byu.net>
19327 Provide a robust <wchar.h>. Further simplifications are now
19328 possible in other modules, but not included here.
19329 * modules/wchar: New module.
19330 * m4/wchar.m4: New file.
19331 * lib/wchar_.h: Likewise.
19332 * modules/mbchar (Depends-on): Depend on wchar, as the first use
19334 * MODULES.html.sh (Extended multibyte and wide character utilities):
19337 2007-01-12 Paul Eggert <eggert@cs.ucla.edu>
19339 * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
19340 to a reasonable default for memory allocation.
19341 (xreadlink): Don't allocate a huge buffer, to work around a buggy
19342 file system that reports garbage st_size values for symlinks.
19343 Problem reported by Liyang Hu.
19345 2007-01-11 Simon Josefsson <simon@josefsson.org>
19347 * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
19348 Emacs .#* auto-save files).
19350 2007-01-11 Bruno Haible <bruno@clisp.org>
19352 * gnulib-tool (func_all_modules): Exclude all files inside the CVS
19355 2007-01-10 Paul Eggert <eggert@cs.ucla.edu>
19357 Use @...@ consistently in lib/wctype_.h.
19358 * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
19359 on it being set to 1 or 0.
19360 * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
19361 go back to AC_SUBSTing it.
19362 * modules/wctype (Makefile.am): Undo previous change.
19364 2007-01-10 Eric Blake <ebb9@byu.net>
19366 * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
19367 * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
19368 * modules/wctype (Makefile.am): Likewise.
19369 Reported by Chris McGuire.
19371 2007-01-10 Jim Meyering <jim@meyering.net>
19373 fts.c: a small readability/maintainability improvement
19374 * lib/fts.c (fts_read): Make this code slightly more readable and
19375 maintainable by hoisting the "sp->fts_cur = p" assignments to
19376 immediately follow the statements that set P. Derived from
19377 the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
19379 2007-01-10 Eric Blake <ebb9@byu.net>
19381 * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
19382 <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
19383 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
19384 * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
19385 Reported by Chris McGuire.
19387 2007-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19389 * gnulib-tool (func_all_modules): Use POSIX conforming escaping
19392 2007-01-09 Bruno Haible <bruno@clisp.org>
19394 * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
19395 (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
19397 (func_module): Use them.
19399 2007-01-09 Bruno Haible <bruno@clisp.org>
19401 * modules/unistr/base: New file.
19402 * lib/unistr.h: New file.
19404 * modules/unistr/u8-to-u16: New file.
19405 * lib/unistr/u8-to-u16.c: New file.
19407 * modules/unistr/u8-to-u32: New file.
19408 * lib/unistr/u8-to-u32.c: New file.
19410 * modules/unistr/u16-to-u8: New file.
19411 * lib/unistr/u16-to-u8.c: New file.
19413 * modules/unistr/u16-to-u32: New file.
19414 * lib/unistr/u16-to-u32.c: New file.
19416 * modules/unistr/u32-to-u8: New file.
19417 * lib/unistr/u32-to-u8.c: New file.
19419 * modules/unistr/u32-to-u16: New file.
19420 * lib/unistr/u32-to-u16.c: New file.
19422 * modules/unistr/u8-check: New file.
19423 * modules/unistr/u16-check: New file.
19424 * modules/unistr/u32-check: New file.
19425 * lib/unistr/u8-check.c: New file.
19426 * lib/unistr/u16-check.c: New file.
19427 * lib/unistr/u32-check.c: New file.
19429 * modules/unistr/u8-chr: New file.
19430 * modules/unistr/u16-chr: New file.
19431 * modules/unistr/u32-chr: New file.
19432 * lib/unistr/u8-chr.c: New file.
19433 * lib/unistr/u16-chr.c: New file.
19434 * lib/unistr/u32-chr.c: New file.
19436 * modules/unistr/u8-cmp: New file.
19437 * modules/unistr/u16-cmp: New file.
19438 * modules/unistr/u32-cmp: New file.
19439 * lib/unistr/u8-cmp.c: New file.
19440 * lib/unistr/u16-cmp.c: New file.
19441 * lib/unistr/u32-cmp.c: New file.
19443 * modules/unistr/u8-cpy: New file.
19444 * modules/unistr/u16-cpy: New file.
19445 * modules/unistr/u32-cpy: New file.
19446 * lib/unistr/u8-cpy.c: New file.
19447 * lib/unistr/u16-cpy.c: New file.
19448 * lib/unistr/u32-cpy.c: New file.
19449 * lib/unistr/u-cpy.h: New file.
19451 * modules/unistr/u8-cpy-alloc: New file.
19452 * modules/unistr/u16-cpy-alloc: New file.
19453 * modules/unistr/u32-cpy-alloc: New file.
19454 * lib/unistr/u8-cpy-alloc.c: New file.
19455 * lib/unistr/u16-cpy-alloc.c: New file.
19456 * lib/unistr/u32-cpy-alloc.c: New file.
19457 * lib/unistr/u-cpy-alloc.h: New file.
19459 * modules/unistr/u8-endswith: New file.
19460 * modules/unistr/u16-endswith: New file.
19461 * modules/unistr/u32-endswith: New file.
19462 * lib/unistr/u8-endswith.c: New file.
19463 * lib/unistr/u16-endswith.c: New file.
19464 * lib/unistr/u32-endswith.c: New file.
19465 * lib/unistr/u-endswith.h: New file.
19467 * modules/unistr/u8-mblen: New file.
19468 * modules/unistr/u16-mblen: New file.
19469 * modules/unistr/u32-mblen: New file.
19470 * lib/unistr/u8-mblen.c: New file.
19471 * lib/unistr/u16-mblen.c: New file.
19472 * lib/unistr/u32-mblen.c: New file.
19474 * modules/unistr/u8-mbtouc: New file.
19475 * modules/unistr/u16-mbtouc: New file.
19476 * modules/unistr/u32-mbtouc: New file.
19477 * lib/unistr/u8-mbtouc.c: New file.
19478 * lib/unistr/u16-mbtouc.c: New file.
19479 * lib/unistr/u32-mbtouc.c: New file.
19481 * modules/unistr/u8-mbtouc-safe: New file.
19482 * modules/unistr/u16-mbtouc-safe: New file.
19483 * modules/unistr/u32-mbtouc-safe: New file.
19484 * lib/unistr/u8-mbtouc-safe.c: New file.
19485 * lib/unistr/u16-mbtouc-safe.c: New file.
19486 * lib/unistr/u32-mbtouc-safe.c: New file.
19488 * modules/unistr/u8-move: New file.
19489 * modules/unistr/u16-move: New file.
19490 * modules/unistr/u32-move: New file.
19491 * lib/unistr/u8-move.c: New file.
19492 * lib/unistr/u16-move.c: New file.
19493 * lib/unistr/u32-move.c: New file.
19494 * lib/unistr/u-move.h: New file.
19496 * modules/unistr/u8-next: New file.
19497 * modules/unistr/u16-next: New file.
19498 * modules/unistr/u32-next: New file.
19499 * lib/unistr/u8-next.c: New file.
19500 * lib/unistr/u16-next.c: New file.
19501 * lib/unistr/u32-next.c: New file.
19503 * modules/unistr/u8-prev: New file.
19504 * modules/unistr/u16-prev: New file.
19505 * modules/unistr/u32-prev: New file.
19506 * lib/unistr/u8-prev.c: New file.
19507 * lib/unistr/u16-prev.c: New file.
19508 * lib/unistr/u32-prev.c: New file.
19510 * modules/unistr/u8-set: New file.
19511 * modules/unistr/u16-set: New file.
19512 * modules/unistr/u32-set: New file.
19513 * lib/unistr/u8-set.c: New file.
19514 * lib/unistr/u16-set.c: New file.
19515 * lib/unistr/u32-set.c: New file.
19516 * lib/unistr/u-set.h: New file.
19518 * modules/unistr/u8-startswith: New file.
19519 * modules/unistr/u16-startswith: New file.
19520 * modules/unistr/u32-startswith: New file.
19521 * lib/unistr/u8-startswith.c: New file.
19522 * lib/unistr/u16-startswith.c: New file.
19523 * lib/unistr/u32-startswith.c: New file.
19524 * lib/unistr/u-startswith.h: New file.
19526 * modules/unistr/u8-stpcpy: New file.
19527 * modules/unistr/u16-stpcpy: New file.
19528 * modules/unistr/u32-stpcpy: New file.
19529 * lib/unistr/u8-stpcpy.c: New file.
19530 * lib/unistr/u16-stpcpy.c: New file.
19531 * lib/unistr/u32-stpcpy.c: New file.
19532 * lib/unistr/u-stpcpy.h: New file.
19534 * modules/unistr/u8-stpncpy: New file.
19535 * modules/unistr/u16-stpncpy: New file.
19536 * modules/unistr/u32-stpncpy: New file.
19537 * lib/unistr/u8-stpncpy.c: New file.
19538 * lib/unistr/u16-stpncpy.c: New file.
19539 * lib/unistr/u32-stpncpy.c: New file.
19540 * lib/unistr/u-stpncpy.h: New file.
19542 * modules/unistr/u8-strcat: New file.
19543 * modules/unistr/u16-strcat: New file.
19544 * modules/unistr/u32-strcat: New file.
19545 * lib/unistr/u8-strcat.c: New file.
19546 * lib/unistr/u16-strcat.c: New file.
19547 * lib/unistr/u32-strcat.c: New file.
19548 * lib/unistr/u-strcat.h: New file.
19550 * modules/unistr/u8-strchr: New file.
19551 * modules/unistr/u16-strchr: New file.
19552 * modules/unistr/u32-strchr: New file.
19553 * lib/unistr/u8-strchr.c: New file.
19554 * lib/unistr/u16-strchr.c: New file.
19555 * lib/unistr/u32-strchr.c: New file.
19557 * modules/unistr/u8-strcmp: New file.
19558 * modules/unistr/u16-strcmp: New file.
19559 * modules/unistr/u32-strcmp: New file.
19560 * lib/unistr/u8-strcmp.c: New file.
19561 * lib/unistr/u16-strcmp.c: New file.
19562 * lib/unistr/u32-strcmp.c: New file.
19564 * modules/unistr/u8-strcpy: New file.
19565 * modules/unistr/u16-strcpy: New file.
19566 * modules/unistr/u32-strcpy: New file.
19567 * lib/unistr/u8-strcpy.c: New file.
19568 * lib/unistr/u16-strcpy.c: New file.
19569 * lib/unistr/u32-strcpy.c: New file.
19570 * lib/unistr/u-strcpy.h: New file.
19572 * modules/unistr/u8-strcspn: New file.
19573 * modules/unistr/u16-strcspn: New file.
19574 * modules/unistr/u32-strcspn: New file.
19575 * lib/unistr/u8-strcspn.c: New file.
19576 * lib/unistr/u16-strcspn.c: New file.
19577 * lib/unistr/u32-strcspn.c: New file.
19578 * lib/unistr/u-strcspn.h: New file.
19580 * modules/unistr/u8-strdup: New file.
19581 * modules/unistr/u16-strdup: New file.
19582 * modules/unistr/u32-strdup: New file.
19583 * lib/unistr/u8-strdup.c: New file.
19584 * lib/unistr/u16-strdup.c: New file.
19585 * lib/unistr/u32-strdup.c: New file.
19586 * lib/unistr/u-strdup.h: New file.
19588 * modules/unistr/u8-strlen: New file.
19589 * modules/unistr/u16-strlen: New file.
19590 * modules/unistr/u32-strlen: New file.
19591 * lib/unistr/u8-strlen.c: New file.
19592 * lib/unistr/u16-strlen.c: New file.
19593 * lib/unistr/u32-strlen.c: New file.
19594 * lib/unistr/u-strlen.h: New file.
19596 * modules/unistr/u8-strmblen: New file.
19597 * modules/unistr/u16-strmblen: New file.
19598 * modules/unistr/u32-strmblen: New file.
19599 * lib/unistr/u8-strmblen.c: New file.
19600 * lib/unistr/u16-strmblen.c: New file.
19601 * lib/unistr/u32-strmblen.c: New file.
19603 * modules/unistr/u8-strmbtouc: New file.
19604 * modules/unistr/u16-strmbtouc: New file.
19605 * modules/unistr/u32-strmbtouc: New file.
19606 * lib/unistr/u8-strmbtouc.c: New file.
19607 * lib/unistr/u16-strmbtouc.c: New file.
19608 * lib/unistr/u32-strmbtouc.c: New file.
19610 * modules/unistr/u8-strncat: New file.
19611 * modules/unistr/u16-strncat: New file.
19612 * modules/unistr/u32-strncat: New file.
19613 * lib/unistr/u8-strncat.c: New file.
19614 * lib/unistr/u16-strncat.c: New file.
19615 * lib/unistr/u32-strncat.c: New file.
19616 * lib/unistr/u-strncat.h: New file.
19618 * modules/unistr/u8-strncmp: New file.
19619 * modules/unistr/u16-strncmp: New file.
19620 * modules/unistr/u32-strncmp: New file.
19621 * lib/unistr/u8-strncmp.c: New file.
19622 * lib/unistr/u16-strncmp.c: New file.
19623 * lib/unistr/u32-strncmp.c: New file.
19625 * modules/unistr/u8-strncpy: New file.
19626 * modules/unistr/u16-strncpy: New file.
19627 * modules/unistr/u32-strncpy: New file.
19628 * lib/unistr/u8-strncpy.c: New file.
19629 * lib/unistr/u16-strncpy.c: New file.
19630 * lib/unistr/u32-strncpy.c: New file.
19631 * lib/unistr/u-strncpy.h: New file.
19633 * modules/unistr/u8-strnlen: New file.
19634 * modules/unistr/u16-strnlen: New file.
19635 * modules/unistr/u32-strnlen: New file.
19636 * lib/unistr/u8-strnlen.c: New file.
19637 * lib/unistr/u16-strnlen.c: New file.
19638 * lib/unistr/u32-strnlen.c: New file.
19639 * lib/unistr/u-strnlen.h: New file.
19641 * modules/unistr/u8-strpbrk: New file.
19642 * modules/unistr/u16-strpbrk: New file.
19643 * modules/unistr/u32-strpbrk: New file.
19644 * lib/unistr/u8-strpbrk.c: New file.
19645 * lib/unistr/u16-strpbrk.c: New file.
19646 * lib/unistr/u32-strpbrk.c: New file.
19647 * lib/unistr/u-strpbrk.h: New file.
19649 * modules/unistr/u8-strrchr: New file.
19650 * modules/unistr/u16-strrchr: New file.
19651 * modules/unistr/u32-strrchr: New file.
19652 * lib/unistr/u8-strrchr.c: New file.
19653 * lib/unistr/u16-strrchr.c: New file.
19654 * lib/unistr/u32-strrchr.c: New file.
19656 * modules/unistr/u8-strspn: New file.
19657 * modules/unistr/u16-strspn: New file.
19658 * modules/unistr/u32-strspn: New file.
19659 * lib/unistr/u8-strspn.c: New file.
19660 * lib/unistr/u16-strspn.c: New file.
19661 * lib/unistr/u32-strspn.c: New file.
19662 * lib/unistr/u-strspn.h: New file.
19664 * modules/unistr/u8-strstr: New file.
19665 * modules/unistr/u16-strstr: New file.
19666 * modules/unistr/u32-strstr: New file.
19667 * lib/unistr/u8-strstr.c: New file.
19668 * lib/unistr/u16-strstr.c: New file.
19669 * lib/unistr/u32-strstr.c: New file.
19670 * lib/unistr/u-strstr.h: New file.
19672 * modules/unistr/u8-strtok: New file.
19673 * modules/unistr/u16-strtok: New file.
19674 * modules/unistr/u32-strtok: New file.
19675 * lib/unistr/u8-strtok.c: New file.
19676 * lib/unistr/u16-strtok.c: New file.
19677 * lib/unistr/u32-strtok.c: New file.
19678 * lib/unistr/u-strtok.h: New file.
19680 * modules/unistr/u8-uctomb: New file.
19681 * modules/unistr/u16-uctomb: New file.
19682 * modules/unistr/u32-uctomb: New file.
19683 * lib/unistr/u8-uctomb.c: New file.
19684 * lib/unistr/u16-uctomb.c: New file.
19685 * lib/unistr/u32-uctomb.c: New file.
19687 * MODULES.html.sh (Unicode string functions): Add the new modules.
19689 2007-01-08 Bruno Haible <bruno@clisp.org>
19691 * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
19692 modules directory. Filter out CVS, ChangeLog, COPYING, README also from
19695 2007-01-08 Karl Berry <karl@gnu.org>
19697 * doc/error.texi: mention that main() fns must set program_name
19698 when progname is used.
19700 2007-01-08 Paul Eggert <eggert@cs.ucla.edu>
19702 * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
19703 WCTYPE_H is empty, for the benefit of builds from non-distclean
19704 directories. Problem reported by Eric Blake in
19705 <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
19707 2007-01-08 Bruno Haible <bruno@clisp.org>
19709 * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
19710 PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
19711 * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
19712 PROVIDE_CANONICALIZE_FILENAME_MODE.
19713 * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
19715 2007-01-08 Bruno Haible <bruno@clisp.org>
19717 * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
19718 * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
19719 Use !GNULIB_FTS instead of _LGPL_PACKAGE.
19720 * lib/fts.c: Likewise.
19721 * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
19723 2006-12-25 Bruno Haible <bruno@clisp.org>
19725 * modules/utf8-ucs4-safe: New file.
19726 * lib/utf8-ucs4-safe.h: New file.
19727 * lib/unistr/utf8-ucs4-safe.c: New file.
19729 * modules/utf16-ucs4-safe: New file.
19730 * lib/utf16-ucs4-safe.h: New file.
19731 * lib/unistr/utf16-ucs4-safe.c: New file.
19733 * MODULES.html.sh (Unicode string functions): Add the new modules.
19735 2007-01-08 Bruno Haible <bruno@clisp.org>
19737 * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
19738 (Depends-on): Add unitypes.
19739 * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
19740 (u8_mbtouc_aux): Move out to separate file.
19741 (u8_mbtouc): Use ucs4_t, uint8_t types.
19742 * lib/unistr/utf8-ucs4.c: New file.
19744 * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
19745 (Depends-on): Add unitypes.
19746 * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
19747 (u16_mbtouc_aux): Move out to separate file.
19748 (u16_mbtouc): Use ucs4_t, uint16_t types.
19749 * lib/unistr/utf16-ucs4.c: New file.
19751 * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
19752 (Depends-on): Add unitypes.
19753 * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
19754 (u8_uctomb_aux): Move out to separate file.
19755 (u8_uctomb): Use ucs4_t, uint8_t types.
19756 * lib/unistr/ucs4-utf8.c: New file.
19758 * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
19759 (Depends-on): Add unitypes.
19760 * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
19761 (u16_uctomb_aux): Move out to separate file.
19762 (u16_uctomb): Use ucs4_t, uint16_t types.
19763 * lib/unistr/ucs4-utf16.c: New file.
19765 2006-12-25 Bruno Haible <bruno@clisp.org>
19767 * modules/unitypes: New file.
19768 * lib/unitypes.h: New file.
19769 * MODULES.html.sh (func_all_modules): New section "Unicode string
19770 functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
19771 this section. Add unitypes.
19773 2007-01-08 Bruno Haible <bruno@clisp.org>
19775 Avoid variable names that conflict with those from libtool.
19776 * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
19777 AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
19778 shlibext to acl_shlibext, libname_spec to acl_libname_spec,
19779 library_names_spec to acl_library_names_spec, hardcode_* to
19781 Reported by Ralf Wildenhues.
19783 2007-01-08 Bruno Haible <bruno@clisp.org>
19785 * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
19787 * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
19789 * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
19790 * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
19792 * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
19794 * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
19795 * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
19796 * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
19797 * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
19799 * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
19801 * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
19802 * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
19803 GC_USE_<algorithm>.
19804 * lib/gc-libgcrypt.c: Likewise.
19805 * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
19806 * modules/gc-arctwo (configure.ac): Likewise.
19807 * modules/gc-des (configure.ac): Likewise.
19808 * modules/gc-hmac-md5 (configure.ac): Likewise.
19809 * modules/gc-hmac-sha1 (configure.ac): Likewise.
19810 * modules/gc-md2 (configure.ac): Likewise.
19811 * modules/gc-md4 (configure.ac): Likewise.
19812 * modules/gc-md5 (configure.ac): Likewise.
19813 * modules/gc-random (configure.ac): Likewise.
19814 * modules/gc-rijndael (configure.ac): Likewise.
19815 * modules/gc-sha1 (configure.ac): Likewise.
19817 2007-01-08 Bruno Haible <bruno@clisp.org>
19819 * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
19821 * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
19823 * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
19825 * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
19826 * modules/fcntl-safer (configure.ac): Likewise.
19827 * modules/fopen-safer (configure.ac): Likewise.
19828 * modules/fwriteerror (configure.ac): Likewise. Remove explicit
19829 GNULIB_FWRITEERROR macro definition.
19831 2007-01-08 Bruno Haible <bruno@clisp.org>
19833 * m4/gnulib-common.m4: New file.
19834 * gnulib-tool (func_get_autoconf_snippet): Undo last change.
19835 (func_get_filelist): Add m4/gnulib-common.m4.
19837 2007-01-08 Bruno Haible <bruno@clisp.org>
19839 * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
19842 2007-01-08 Jim Meyering <jim@meyering.net>
19844 Use a more robust test for a "can't happen" condition.
19845 * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
19846 narrowed the st_size value. Presuming the "can't happen" condition
19847 is true, that narrowing could conceivably convert an invalid st_size
19848 value into a valid one. Instead, use a change based on Matthew
19849 Woehlke's original patch.
19851 Slight readability improvement: use an assert-like macro
19852 in place of literal "abort ()" uses.
19853 * lib/fts.c (fts_assert): Define.
19854 (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
19855 Use this macro instead of a bare 'abort'.
19857 2007-01-05 Paul Eggert <eggert@cs.ucla.edu>
19859 Don't worry about using IRIX 5.3's wctype.h broken definitions;
19860 simply work around them.
19861 * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
19862 (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
19863 (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
19865 Don't bother to define as macros, since the standard doesn't require it.
19866 * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
19867 longer worry about IRIX 5.3.
19868 (HAVE_WCTYPE_CTMP_BUG): Remove.
19870 2007-01-04 Paul Eggert <eggert@cs.ucla.edu>
19872 * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
19873 not wint_t. Also, include <ctype.h>, to fix another IRIX bug.
19874 * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
19875 Problems reported by Georg Schwarz for IRIX 5.3.
19877 * gnulib-tool (autoconf_minversion): Take the maximum version number
19878 found, not the minimum. Problem reported by James Youngman.
19880 2007-01-03 Karl Berry <karl@gnu.org>
19882 * doc/error.texi: new file, explaining interaction with progname.
19883 * doc/gnulib.texi: include it. Update copyright.
19885 2007-01-03 Simon Josefsson <simon@josefsson.org>
19887 * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
19888 AC_CANONICAL_HOST, to improve autobuild outputs.
19890 2007-01-03 Paolo Bonzini <bonzini@gnu.org>
19891 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
19893 * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
19894 sockets, server sockets, and other file descriptors. Count errors
19895 to compute the return value. Reorder the code a bit to be easier
19896 to follow. Don't set event bits that were not requested (except
19897 POLLERR and POLLHUP).
19899 2007-01-01 Bruno Haible <bruno@clisp.org>
19901 * modules/lchmod (Include): Require lchmod.h, not lchown.h.
19903 2007-01-03 Jim Meyering <jim@meyering.net>
19905 * modules/fts-lgpl (Depends-on): Add i-ring. Reported by Bruno Haible.
19907 2007-01-02 Bruno Haible <bruno@clisp.org>
19909 * modules/settime (Include): Require timespec.h.
19910 * modules/nanosleep (Include): Likewise.
19912 2007-01-01 Bruno Haible <bruno@clisp.org>
19914 * gnulib-tool (func_emit_copyright_notice): Bump year.
19915 (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
19917 2007-01-01 Bruno Haible <bruno@clisp.org>
19919 Improve support for OpenBSD.
19920 * build-aux/config.rpath (libname_spec): Export.
19921 (library_names_spec): New variable. Export.
19922 * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
19923 library_names_spec from the config.rpath output. Locate shared library
19924 through the name pattern in library_names_spec.
19926 2007-01-01 Eric Blake <ebb9@byu.net>
19928 * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
19930 2006-12-30 Paul Eggert <eggert@cs.ucla.edu>
19932 * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
19933 Rewrite so as not to assume GNU sort or "tail -1". Also, don't
19934 assume the C locale, and avoid an "eval" that could cause trouble.
19935 Problem with SORT reported by Bob Proulx.
19937 * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
19938 Define. Trivial patch from Henning Nielsen Lund, originally
19939 sent to bug-grep@gnu.org today.
19941 2006-12-29 Paul Eggert <eggert@cs.ucla.edu>
19943 * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
19944 struct stat. Problem reported by Henning Nielsen Lund.
19945 * lib/acl.c: Include acl.h first, to check interface. Don't
19946 bother to include sys/types.h and sys/stat.h again.
19948 2006-12-28 Paul Eggert <eggert@cs.ucla.edu>
19950 Import the following change from libc; problem reported by
19953 2005-10-13 Ulrich Drepper <drepper@redhat.com>
19956 * lib/argp.h: Remove __NTH for __argp_usage inline function.
19958 2006-12-28 Jim Meyering <jim@meyering.net>
19960 * build-aux/announce-gen: Do not assume that the package
19961 builds any of tar.gz, tar.bz2, and .xdelta files.
19962 Suggestion from Simon Josefsson.
19964 2006-12-28 Simon Josefsson <simon@josefsson.org>
19966 * modules/announce-gen: New file.
19968 2006-12-27 Paul Eggert <eggert@cs.ucla.edu>
19970 * lib/mbchar.h: Just include <wctype.h>; the wctype module
19971 handles its gotchas now.
19972 * lib/mbswidth.c: Likewise.
19973 * lib/wcwidth.h: Likewise.
19974 * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
19975 and iswcntrl; the wctype module does this stuff now.
19976 * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
19977 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
19978 * modules/mbchar (Depends-on): Add wctype.
19979 * modules/mbswidth (Depends-on): Likewise.
19980 * modules/wcwidth (Depends-on): Likewise.
19982 2006-12-27 Eric Blake <ebb9@byu.net>
19984 * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
19985 module uses more than what <wctype.h> is required to provide.
19987 2006-12-26 Eric Blake <ebb9@byu.net>
19989 * gnulib-tool (sed_extract_prog): Avoid space-tab.
19991 2006-12-26 Eric Blake <ebb9@byu.net>
19993 * modules/absolute-header: New module.
19994 * modules/fcntl (Depends-on): Depend on it.
19995 * modules/inttypes (Depends-on): Likewise.
19996 * modules/stdint (Depends-on): Likewise.
19997 * modules/sys_stat (Depends-on): Likewise.
19998 * modules/wctype (Depends-on): Likewise.
19999 * MODULES.html.sh (Support for building libraries and
20000 executables): Document it.
20002 2006-12-25 Paul Eggert <eggert@cs.ucla.edu>
20004 * gnulib-tool (SED): Remove, undoing previous change.
20005 The problem was that it broke coreutils on Solaris, because
20006 "sed --posix" leaked into a makefile.
20007 (sed): New alias, if 'alias' and GNU sed.
20009 2006-12-24 Jim Meyering <jim@meyering.net>
20011 Work around an fchownat bug in glibc-2.4:
20012 http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
20013 This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
20014 in spite of the -P option.
20015 * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
20017 (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
20018 * modules/openat (Files): Add lib/fchownat.c.
20019 * lib/openat.c (fchownat): Don't define here. Move to...
20020 * lib/fchownat.c: ...this new file.
20022 2006-12-23 Paul Eggert <eggert@cs.ucla.edu>
20024 Fix bug reported by Bruno Haible in
20025 <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
20026 where quotearg.c didn't compile on Mac OS X 10.2 because it
20027 lacks <wchar.h> and wint_t.
20028 * lib/wctype_.h (__wctype_wint_t): New type.
20029 Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
20030 (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
20031 (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
20032 Arg is now of type __wctype_wint_t, not wint_t.
20033 * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
20034 substitute HAVE_WINT_T.
20035 * modules/wctype (Files): Add m4/wint_t.m4.
20036 (wctype.h): Substitute HAVE_WINT_T.
20038 2006-12-23 Bruno Haible <bruno@clisp.org>
20040 * lib/safe-read.h [C++]: Wrap declarations in extern "C".
20042 2006-12-23 Bruno Haible <bruno@clisp.org>
20044 * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
20046 Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
20049 2006-12-22 Bruno Haible <bruno@clisp.org>
20051 * lib/copy-file.c: Include acl.h.
20052 (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
20053 Close the file descriptors only after being done with copy_acl.
20054 * modules/copy-file (Depends-on): Add acl.
20056 2006-12-22 Bruno Haible <bruno@clisp.org>
20058 * gnulib-tool (SED): New variable.
20059 Use $SED instead of sed everywhere.
20061 2006-12-22 Bruno Haible <bruno@clisp.org>
20063 * modules/no-c++: New file.
20064 * m4/no-c++.m4: New file.
20065 * MODULES.html.sh (Support for building libraries and executables):
20068 2006-12-22 Paul Eggert <eggert@cs.ucla.edu>
20070 * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
20071 Include <limits.h>, and use its INT_MAX to rewrite the
20072 j loop so that it does not overflow 'int'. Problem reported by
20074 <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
20075 Play it safe by shifting left by 1 rather than multiplying by 2,
20076 as GCC is less likely to optimize this away when the value
20077 is signed (when it assumes overflow leads to undefined behavior).
20078 Also, don't assume time_t uses two's complement.
20080 2006-12-21 Paul Eggert <eggert@cs.ucla.edu>
20082 * MODULES.html.sh: New module wctype.
20083 * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
20084 * lib/fnmatch.c: Don't bother to include <wchar.h> before
20085 <wctype.h>, since the new wctype module should fix this.
20086 * lib/quotearg.c: Include <wctype.h> unconditionally, since
20087 the wctype module should arrange for it.
20088 * lib/regex_internal.h: Likewise.
20089 * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
20090 since the wctype module should handle this now.
20091 * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
20092 * modules/fnmatch (Depends-on): Add wctype.
20093 * modules/quotearg (Depends-on): Likewise.
20094 * modules/regex (Depends-on): Likewise.
20096 2006-12-19 Bruno Haible <bruno@clisp.org>
20098 * lib/strdup.h [C++]: Wrap definitions in extern "C".
20099 Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
20101 2006-12-19 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20103 * modules/savewd (Depends-on): Fix dependency on fcntl.
20105 2006-12-18 Paul Eggert <eggert@cs.ucla.edu>
20107 * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
20108 conforms to C99, rather than relying on the user's environment
20109 setting of STDINT_H.
20111 2006-12-18 Paul Eggert <eggert@cs.ucla.edu>
20112 and Eric Blake <ebb9@byu.net>
20114 * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
20115 This is more consistent with the other defines here.
20116 * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
20117 Port to z/OS. Problem reported by Paul Gilmartin.
20118 Change local vars to use gl_ prefix rather than ac_.
20119 Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
20120 with other defines.
20121 * modules/double-slash-root: New module.
20122 * modules/dirname (Files): Remove m4/double-slash-root.m4.
20123 (Depends-on): Add double-slash-root.
20124 * MODULES.html.sh (File system functions): Mention new module.
20126 2006-12-14 Paul Eggert <eggert@cs.ucla.edu>
20128 * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
20129 (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
20130 This is for the benefit of gzip, which doesn't do i18n.
20132 2006-12-12 Jim Meyering <jim@meyering.net>
20134 * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
20135 Reported by Andreas Schwab <schwab@suse.de>.
20137 2006-12-12 Bruno Haible <bruno@clisp.org>
20139 Merge these changes.
20140 2006-09-05 Bruno Haible <bruno@clisp.org>
20141 * lib/iconvme.c (iconv_string): No need to save and restore errno when
20142 iconv_alloc succeeded.
20143 (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
20144 sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
20145 test for " && dest " at the end - dest is always != NULL there. Call
20146 iconv with 4xNULL arguments initially, to reset the state. Call iconv
20147 with 2xNULL arguments, also to flush the state storage. Handle the
20148 IRIX iconv behaviour. Realloc the final result, to throw away unused
20151 2006-12-11 Paul Eggert <eggert@cs.ucla.edu>
20153 * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
20154 and fchmodat unconditionally, since glibc 2.4 has them.
20155 Problem reported by Arkadiusz Miskiewicz.
20157 2006-12-10 Bruno Haible <bruno@clisp.org>
20159 * gnulib-tool (func_import): Show the include files only for those
20160 modules that are copied and specified.
20161 Reported by Karl Berry.
20163 2006-12-08 Jim Meyering <jim@meyering.net>
20165 * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
20166 Instead, use Emacs' time-stamp write hook. Note that the time is UTC.
20168 * build-aux/announce-gen: Add two new options, both optional:
20169 --bootstrap-tools=TOOL_LIST
20170 a comma-separated list of tools, e.g.,
20171 autoconf,automake,bison,gnulib
20172 --gnulib-snapshot-date=DATE
20173 if gnulib is in the bootstrap tool list,
20174 then report this as the snapshot date.
20175 If not specified, use the current date/time.
20176 If you specify a date here, be sure it's UTC.
20178 2006-12-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20180 * tests/test-argp-2.sh: Fix test to match actual output.
20181 (func_compare): Fix sed script to be portable.
20183 2006-12-05 Paul Eggert <eggert@cs.ucla.edu>
20185 * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
20186 workaround for this case. It is not autoconfigured now; offhand
20187 it's hard to see how to autoconfigure it.
20189 2006-12-03 Paul Eggert <eggert@cs.ucla.edu>
20191 * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
20192 a directory that is about to be chowned. Such a directory's
20193 initial file permissions should permit the owner only and this
20194 should not be changed until after the chown, since the group and
20195 other bits would be incorrect if they granted permission before
20198 Fix porting problem for iswctype reported by Georg Schwarz in:
20199 http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
20200 * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
20201 * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
20202 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
20203 * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
20205 2006-12-03 Jim Meyering <jim@meyering.net>
20207 * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
20208 p->fts_statp may not yet be defined.
20209 (fts_read): Instead, set it in the caller, once p->fts_statp is
20210 sure to be defined, and corresponds to a top-level directory.
20211 This bug made du -x fail. Here's the coreutils test case:
20212 http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
20213 Reported by Mike Frysinger.
20215 2006-12-01 Jim Meyering <jim@meyering.net>
20217 * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
20218 build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
20219 Reported by Simon Josefsson.
20221 2006-11-30 Jim Meyering <jim@meyering.net>
20223 * m4/warning.m4: Use the all-permissive copyright notice
20224 recommended by RMS (rather than LGPL).
20225 * m4/vararrays.m4: Likewise.
20226 * m4/flexmember.m4: Likewise.
20228 2006-11-29 Bruno Haible <bruno@clisp.org>
20230 * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
20231 noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
20233 Reported by Simon Josefsson <simon@josefsson.org>.
20235 2006-11-28 James Youngman <jay@gnu.org>
20237 * README: Advise users that they might find the bug-gnulib@gnu.org
20238 and autotools-announce@gnu.org mailing lists useful.
20240 2006-11-28 Bruno Haible <bruno@clisp.org>
20242 * m4/ptrdiff_max.m4: Remove file.
20244 2006-11-21 Bruno Haible <bruno@clisp.org>
20246 * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
20248 (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
20249 * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
20251 (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
20252 * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
20254 (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
20256 2006-11-28 Jim Meyering <jim@meyering.net>
20258 * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
20259 warning from "gcc -Wshadow" about shadowing the builtin.
20261 2006-11-27 Bruno Haible <bruno@clisp.org>
20263 * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
20265 (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
20267 2006-11-27 Bruno Haible <bruno@clisp.org>
20268 Paul Eggert <eggert@cs.ucla.edu>
20270 * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
20272 2006-11-26 Bruno Haible <bruno@clisp.org>
20274 * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
20275 noinst_LTLIBRARIES.
20277 2006-11-27 Paul Eggert <eggert@cs.ucla.edu>
20278 Bruno Haible <bruno@clisp.org>
20280 * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
20281 if compiling with "gcc -ansi".
20283 2006-11-26 Paul Eggert <eggert@cs.ucla.edu>
20285 Fix some incompatibilities with gcc -ansi -pedantic.
20286 * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
20287 if compiling pedantically with GCC, unless it's C99 or later.
20288 Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
20289 it mishandles gcc -ansi -pedantic as well.
20290 * lib/regex_internal.h (re_token_t): Don't use enum bitfields
20292 * lib/regexec.c (check_node_accept_bytes): Don't use auto
20293 initializers for struct if -pedantic, unless it's C99 or later.
20295 2006-11-25 Nix <nix@esperi.org.uk> (tiny change)
20297 * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
20298 Don't close an fd more than once. Identical atimes indicate
20299 success, not failure.
20301 2006-11-22 Robinson Mittmann <bob@hoplon.com> (tiny change)
20303 * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
20305 2006-11-23 Jim Meyering <jim@meyering.net>
20307 * build-aux/announce-gen: New file. From coreutils.
20309 2006-11-22 Jim Meyering <jim@meyering.net>
20311 Work around a compile-time error from the HP-UX 11.00 /bin/cc.
20312 * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
20313 (fts_read): Use a temporary to narrow the overused st_size member
20314 before using it in a switch statement. Reported by Matthew Woehlke.
20316 * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
20317 * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
20319 2006-11-20 Bruno Haible <bruno@clisp.org>
20321 * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
20322 changequote instead of pairs of brackets.
20323 Reported by Andreas Schwab <schwab@suse.de>.
20325 2006-11-21 Jim Meyering <jim@meyering.net>
20327 * lib/fts.c (fts_safe_changedir): Move a declaration "up",
20328 so as to remain compatible with older compilers.
20329 Patch from Michael Deutschmann.
20331 2006-11-20 Paul Eggert <eggert@cs.ucla.edu>
20333 * MODULES.html.sh (File system functions): Add openat.
20335 * lib/openat.h (rpl_fstatat): New macro, if
20336 [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
20337 (fstatat): Define to rpl_fstatat under the same conditions,
20338 unless COMPILING_FSTATAT.
20339 * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
20340 seems to have the bug.
20341 * lib/fstatat.c: New file.
20342 * modules/openat (Files): Add it.
20344 2006-11-20 Bruno Haible <bruno@clisp.org>
20346 * Makefile: New file.
20348 2006-11-20 Jim Meyering <jim@meyering.net>
20350 The beginnings of syntax-related checks for gnulib.
20351 * lib/Makefile: New file.
20352 * lib/t-idcache: New script. Ensure that the two halves of
20353 idcache.c stay in sync.
20355 * lib/idcache.c: Adjust comments in user- and group- portions to
20356 be more accurate, and to be consistent with one another.
20358 2006-11-20 Jim Meyering <jim@meyering.net>
20360 * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
20361 continue using the flexible array member (thus, this module performs
20362 half as many malloc calls), with the addition that...
20363 (getgroup, getuser): Consistently record a non-match via an empty
20364 "name" string, and map an empty string match to a NULL return value.
20365 * modules/idcache (Depends-on): Re-add flexmember.
20367 * lib/idcache.c (getuser): Remove all uses of the register keyword.
20368 (getuidbyname, getgroup, getgidbyname): Likewise.
20370 Use cleaner syntax: NULL rather than 0.
20371 * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
20373 2006-11-20 Paul Eggert <eggert@cs.ucla.edu>
20375 * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
20376 It mishandled the case where the group was missing.
20377 Problem reported by Greg Schafer.
20378 * modules/idcache: Likewise.
20380 2006-11-18 Jim Meyering <jim@meyering.net>
20382 * check-module (%exempt_header): Add exception for some
20383 conditionally-included headers.
20385 * modules/i-ring (Depends-on): Add verify.
20386 (License): Change to LGPL.
20388 2006-11-16 Paul Eggert <eggert@cs.ucla.edu>
20390 * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
20391 * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
20392 and inttostr.h. Use snprintf rather than uinttostr, so that
20393 LGPLed code doesn't depend on GPLed.
20395 2006-11-17 Paul Eggert <eggert@cs.ucla.edu>
20397 * modules/inline (License): Change from GPL to LGPL.
20399 2006-11-17 Jim Meyering <jim@meyering.net>
20401 * modules/d-type (License): Switch to LGPL.
20403 2006-11-15 Bruno Haible <bruno@clisp.org>
20405 * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
20407 2006-11-15 Eric Blake <ebb9@byu.net>
20409 * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
20410 the module dependency.
20412 2006-11-15 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
20413 Bruno Haible <bruno@clisp.org>
20415 * gnulib-tool (func_create_testdir): Add license consistency check.
20417 2006-11-15 Eric Blake <ebb9@byu.net>
20419 * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
20420 random "(cached)" in configure output.
20422 2006-11-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20424 * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
20425 test for conforming inttypes.h is both announced and cached.
20427 * MODULES.html.sh (seen_modules, seen_files): New variables.
20428 (func_module): Rewrite to use a few less gnulib-tool and sed
20429 invocations. Avoid a couple of quadratic algorithms for ...
20430 (missed_modules, missed_files): ... these, with ...
20431 (func_append, func_tmpdir): ... these new functions, from
20432 gnulib-tool. Analogously, install traps for cleanup.
20434 * tests/test-gc.c (main): Remove unused variables.
20435 * tests/test-read-file.c: Include stdlib.h, for 'free'.
20437 2006-11-14 Paul Eggert <eggert@cs.ucla.edu>
20439 * modules/inttostr (License): Change to LGPL.
20441 2006-11-14 Eric Blake <ebb9@byu.net>
20443 * modules/tempname (License): Change to LGPL.
20445 2006-11-14 Eric Blake <ebb9@byu.net>
20447 * doc/functions.texi (Function Portability): *printf functions on
20448 Cygwin now understand all POSIX size specifiers.
20450 2006-11-14 Bruno Haible <bruno@clisp.org>
20452 * modules/c-ctype (License): Change to LGPL.
20454 2006-11-12 Bruno Haible <bruno@clisp.org>
20456 * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
20457 AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
20458 for GNOME libraries, for which the include files are installed in
20459 subdirectories of $prefix/include.
20461 2006-11-12 Bruno Haible <bruno@clisp.org>
20463 * m4/lib-link.m4: Require at least autoconf-2.54.
20464 (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
20465 name to underscores for the --with option.
20467 2006-11-13 Bruno Haible <bruno@clisp.org>
20469 * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
20470 the tests directory.
20471 Reported by Ralf Wildenhues.
20473 2006-11-13 Bruno Haible <bruno@clisp.org>
20475 * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
20476 (func_emit_initmacro_end): Undo the override here.
20477 (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
20478 Works around the famous automake error in coreutils.
20480 2006-11-13 Eric Blake <ebb9@byu.net>
20482 * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
20483 element, not its node.
20485 2006-11-12 Bruno Haible <bruno@clisp.org>
20487 * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
20488 '$(top_srcdir)/build-aux/', taking into account the real auxdir.
20490 2006-11-12 Bruno Haible <bruno@clisp.org>
20492 * gnulib-tool: New option --local-symlink.
20493 (func_usage): Document it.
20494 (lsymbolic): New variable.
20495 (func_import, func_create_testdir): If --symlink was not specified,
20496 test whether --local-symlink was specified and the file comes from
20497 the local_gnulib_dir.
20499 2006-11-12 Bruno Haible <bruno@clisp.org>
20501 * gnulib-tool (func_ln): New function.
20502 (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
20504 2006-11-12 Bruno Haible <bruno@clisp.org>
20506 Finish support for source files in subdirectories.
20507 * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
20508 are in subdirectories, set uses_subdirs and add 'subdir-objects' to
20510 (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
20512 2006-11-12 Bruno Haible <bruno@clisp.org>
20514 * gnulib-tool (func_get_automake_snippet): Synthesize also an
20515 EXTRA_lib_SOURCES augmentation.
20516 (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
20518 2006-11-12 Jim Meyering <jim@meyering.net>
20520 Make fts (in FTS_CWDFD mode) more efficient by caching a few open
20521 file descriptors. This also averts a failure on systems with
20522 native openat support when a traversed directory lacks "x" access.
20523 * lib/fts_.h: Include "i-ring.h"
20524 (struct FTS) [fts_fd_ring]: New member.
20525 * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
20526 (FCHDIR): Add parentheses.
20527 (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
20528 (cwd_advance_fd): Add a 3rd parameter. Adjust all callers.
20529 When descending, rather than simply closing the previous
20530 fts_cwd_fd value, push that file descriptor onto the ring.
20531 (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
20532 (fts_open): Initialize the new fd_ring member.
20533 (fts_close): Clear the ring.
20534 (fts_safe_changedir): When possible, use our new fd_ring to skip
20535 the diropen and fstat and dev/ino comparison that would normally
20536 accompany a virtual `chdir ("..")'.
20538 * modules/fts (Depends-on): Add i-ring.
20539 * modules/i-ring: New module.
20540 * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
20541 * m4/i-ring.m4: New file.
20543 2006-11-12 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20545 * gnulib-tool (func_create_testdir): Fix replacement of
20546 `build-aux' in configure.ac. Run autotools in gltests
20548 (func_create_testdir, func_create_megatestdir, test): There is
20549 no need for '--force' in most autotool invocations in a new
20550 tree. Actually fail the whole test if any of the tools, or the
20551 configure or make stages fail.
20553 Sync from Automake.
20554 * build-aux/gnupload: Revert last change. Add pointer to upload
20555 instructions of the GNU Maintenance Instructions.
20556 Suggestion by Karl Berry.
20558 2006-11-10 Jim Meyering <jim@meyering.net>
20560 * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
20562 2006-11-09 Paul Eggert <eggert@cs.ucla.edu>
20564 * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
20565 (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
20566 (bind_textdomain_codeset) [! ENABLE_NLS]:
20567 Evaluate all the arguments. That way, callers get compatible behavior
20568 if the arguments have side effects. Also, it avoids some GCC
20569 diagnostics in some cases; Joel E. Denny reported problems when Bison
20570 was configured with --enable-gcc-warnigs.
20572 2006-11-10 Jim Meyering <jim@meyering.net>
20574 * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
20575 relevant options in CFLAGS (like -O, -fno-inline) are taken into
20578 2006-11-10 Jim Meyering <jim@meyering.net>
20580 * modules/inline: New file/module.
20581 * modules/xalloc (Files): Remove m4/inline.m4.
20582 (Depends-on): Add inline, instead.
20583 * modules/oset: Likewise.
20584 * modules/list: Likewise.
20586 2006-11-09 Paul Eggert <eggert@cs.ucla.edu>
20588 * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
20589 Problem reported by Matthew Woehlke.
20591 2006-11-09 Bruno Haible <bruno@clisp.org>
20593 * lib/tempname.c (gen_tempname): Remove variant that invokes
20595 * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
20598 2006-11-08 Bruno Haible <bruno@clisp.org>
20600 * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
20601 to 'yes' instead of 'cross-compiling'.
20603 2006-11-08 Paul Eggert <eggert@cs.ucla.edu>
20605 * lib/quotearg.h (quotearg_free): New decl.
20606 * lib/quotearg.c (quotearg_free): New function.
20607 (slot0, nslots, slotvec0, slotvec):
20608 Now file-scope so that quotearg_free can get at them.
20610 2006-11-08 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20612 Sync from Automake.
20613 * build-aux/gnupload: Add missing 'gnu' to example URL.
20614 Report by Karl Berry.
20616 2006-11-08 Bruno Haible <bruno@clisp.org>
20618 * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
20619 Suggested by Paul Eggert.
20621 2006-11-08 Jim Meyering <jim@meyering.net>
20623 * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
20624 It's already included if !_LIBC.
20625 (fts_safe_changedir): Add a comment.
20627 2006-11-07 Paul Eggert <eggert@cs.ucla.edu>
20629 * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
20630 Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
20633 * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
20634 definitions up, to avoid colliding with change below.
20635 (static_inline) [HAVE_INLINE]: New macro.
20636 (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
20637 Provide extern decls when !HAVE_INLINE. Do not define unless
20638 static_inline is defined, either by us or by xmalloc.c. Use
20639 static_inline rather than static inline.
20640 (XCALLOC): Optimize sizeof(T) = 1 case.
20641 * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
20643 2006-11-07 Bruno Haible <bruno@clisp.org>
20645 * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
20646 * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
20648 * modules/xalloc (Files): Add m4/inline.m4.
20650 2006-11-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20652 * README: Fix typo.
20653 * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
20654 (Miscellanous Notes): ...from this.
20656 2006-11-07 Paul Eggert <eggert@cs.ucla.edu>
20658 * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
20659 Mention that offsetof should be used instead of sizeof.
20662 2006-11-07 Bruno Haible <bruno@clisp.org>
20664 * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
20666 2006-11-06 Paul Eggert <eggert@cs.ucla.edu>
20668 Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
20669 * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
20670 (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
20671 (gl_tree_add_before, gl_tree_add_after):
20672 Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
20673 * lib/gl_anyhash_list2.h (hash_resize): Likewise.
20674 * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
20675 (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
20676 (gl_linked_add_after, gl_linked_add_at): Likewise.
20677 * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
20678 (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
20679 (gl_tree_add_before, gl_tree_add_after): Likewise.
20680 * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
20681 * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
20682 * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
20684 2006-11-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20686 * lib/gl_oset.h: Use C comment style, not C++ comment style.
20688 2006-11-06 Bruno Haible <bruno@clisp.org>
20690 * m4/inline.m4: New file.
20691 * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
20692 * modules/list (Files): Add m4/inline.m4.
20693 * modules/oset (Files): Likewise.
20695 2006-11-06 Paul Eggert <eggert@cs.ucla.edu>
20697 * lib/idcache.c: Include <stddef.h>, for offsetof.
20698 (struct userid.name): Change from char * to a flexible array member.
20700 * modules/idcache (Depends-on): Add flexmember.
20702 * MODULES.html.sh (Core language properties): New module flexmember.
20703 * modules/flexmember, m4/flexmember.m4: New files.
20705 * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
20706 inline functions that are identical with the old xnmalloc_inline,
20707 xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c. This is so
20708 that we can avoid some unnecessary integer multiplications and
20709 divisions in the common case where the element size is known at
20711 (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
20713 (xnboundedmalloc): Remove.
20714 (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
20715 arguments, for consistency with rest of this header.
20716 (xcharalloc): Rewrite using XNMALLOC.
20717 * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
20718 (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove. The *_inline
20719 versions have been moved to lib/xalloc.h and renamed to be the
20720 non-*_inline versions.
20721 (xmalloc, xrealloc): Implement without reference to the xnmalloc
20722 and xnrealloc functions, since those functions are now inline and
20724 (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
20725 renaming described above.
20726 * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
20727 xmalloc.c no longer uses inline directly. gl_PREREQ_XALLOC now
20728 captures the dependency in AC_C_INLINE.
20730 New module canonicalize-lgpl, proposed by Charles Wilson in
20731 <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
20732 with a few small changes afterwards.
20733 * MODULES.html.sh (File system functions): New module
20735 * lib/canonicalize.h: Add comments for canonicalize_filename_mode
20736 and canonicalize_file_name.
20737 * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
20738 * modules/canonicalize-lgpl: New files.
20740 2006-11-05 Bruno Haible <bruno@clisp.org>
20742 * gnulib-tool (func_import, func_create_testdir): Create directories
20743 also for files in subdirectories of lib/.
20745 2006-11-05 Bruno Haible <bruno@clisp.org>
20747 * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
20750 2006-11-03 Bruno Haible <bruno@clisp.org>
20752 Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
20753 * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
20754 * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
20755 (xnboundedmalloc): New inline function.
20756 * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
20757 * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
20759 * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
20761 * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
20762 * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
20763 * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
20765 (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
20766 * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
20768 * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
20769 gl_tree_add_after): Use XMALLOC instead of xmalloc.
20770 * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
20772 (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
20773 * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
20774 gl_tree_add_after): Use XMALLOC instead of xmalloc.
20775 * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
20776 * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
20777 * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
20778 * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
20780 2006-11-03 Bruno Haible <bruno@clisp.org>
20782 * lib/c-ctype.h [C++]: Define functions without name mangling.
20783 * lib/fwriteerror.h [C++]: Likewise.
20784 * lib/gcd.h [C++]: Likewise.
20785 * lib/linebreak.h [C++]: Likewise.
20787 2006-11-03 Paul Eggert <eggert@cs.ucla.edu>
20789 * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
20790 (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
20791 Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
20792 * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
20793 Check for functions and headers just once.
20794 Check for declaration of canonicalize_file_name.
20795 Define PROVIDE_CANONICALIZE_FILENAME_MODE.
20797 2006-11-02 Charles Wilson <cygwin@cwilson.fastmail.fm>
20799 * gnulib-tool (func_import): Fix typo in actioncmd.
20801 2006-11-02 Bruno Haible <bruno@clisp.org>
20803 * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
20804 newline sequence in the Makefile.am snippet as a space, like "make"
20806 Reported by Roger Persson <perrog@gmail.com>.
20808 2006-11-01 Bruno Haible <bruno@clisp.org>
20810 * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
20811 already declared in <string.h>.
20812 * lib/strcase.h (strncasecmp): Don't declare it if yes.
20814 2006-11-01 Bruno Haible <bruno@clisp.org>
20816 * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
20817 * lib/strcase.h: Include <string.h>.
20818 (strcasecmp): Define to rpl_strcasecmp here.
20820 2006-11-01 Bruno Haible <bruno@clisp.org>
20822 * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
20824 2006-11-01 Eric Blake <ebb9@byu.net>
20826 * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
20828 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
20830 2006-10-29 Bruno Haible <bruno@clisp.org>
20832 Make it compile in C++ mode.
20833 * lib/full-write.c (full_rw): Add a cast.
20835 2006-11-01 Bruno Haible <bruno@clisp.org>
20837 * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
20838 be POSIX compliant.
20839 Reported by Roger Persson <perrog@gmail.com>.
20841 2006-11-01 Eric Blake <ebb9@byu.net>
20843 * lib/getopt_.h: Fix comments.
20845 2006-10-31 Eric Blake <ebb9@byu.net>
20847 * modules/tmpdir (Depends-on): Add sys_stat.
20848 * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
20849 * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
20850 * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
20851 * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
20854 2006-10-31 Paul Eggert <eggert@cs.ucla.edu>
20856 Avoid some C++ diagnostics reported by Bruno Haible.
20857 * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
20859 (quotearg_alloc): Use xcharalloc rather than xmalloc.
20860 (struct slotvec): Move to top level.
20861 (quotearg_n_options): Rewrite to avoid xmalloc.
20862 * lib/xalloc.h (xcharalloc): New function.
20863 * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
20864 [defined __cplusplus]: Add function template that provides result
20865 type propagation. This part of the change is from Bruno Haible.
20867 2006-10-29 Bruno Haible <bruno@clisp.org>
20869 Make it compile in C++ mode.
20870 * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
20871 * lib/strnlen1.c (strnlen1): Cast memchr result.
20872 * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
20873 * lib/clean-temp.c (string_equals, string_hash): Add casts.
20874 (create_temp_dir): Rename local variable 'template'.
20875 (compile_csharp_using_sscli): Add cast.
20876 * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
20877 * lib/findprog.c (find_in_path): Likewise.
20878 * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
20879 * lib/wait-process.c (register_slave_subprocess): Likewise.
20881 2006-10-22 Bruno Haible <bruno@clisp.org>
20883 * modules/tsearch: New file.
20884 * lib/tsearch.h: New file.
20885 * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
20886 * m4/tsearch.m4: New file.
20887 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
20889 2006-10-29 Eric Blake <ebb9@byu.net>
20891 * lib/arcfour.c: Assume config.h.
20892 * lib/arctwo.c: Likewise.
20893 * lib/base64.c: Likewise.
20894 * lib/check-version.c: Likewise.
20895 * lib/crc.c: Likewise.
20896 * lib/des.c: Likewise.
20897 * lib/gc-gnulib.c: Likewise.
20898 * lib/gc-libgcrypt.c: Likewise.
20899 * lib/gc-pbkdf2-sha1.c: Likewise.
20900 * lib/getaddrinfo.c: Likewise.
20901 * lib/getdelim.c: Likewise.
20902 * lib/getline.c: Likewise.
20903 * lib/hmac-md5.c: Likewise.
20904 * lib/hmac-sha1.c: Likewise.
20905 * lib/iconvme.c: Likewise.
20906 * lib/md2.c: Likewise.
20907 * lib/md4.c: Likewise.
20908 * lib/memxor.c: Likewise.
20909 * lib/read-file.c: Likewise.
20910 * lib/readline.c: Likewise.
20911 * lib/rijndael-alg-fst.c: Likewise.
20912 * lib/rijndael-api-fst.c: Likewise.
20913 * lib/xgetdomainname.c: Likewise.
20915 2006-10-28 Eric Blake <ebb9@byu.net>
20917 * lib/xstrndup.c: Assume config.h.
20919 2006-10-27 Paul Eggert <eggert@cs.ucla.edu>
20921 Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
20922 stat-macros.h is now for our own macros, whereas stat_h is for
20923 macros in the <sys/stat.h> name space.
20924 * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
20925 (STAT_MACROS_H): Remove.
20926 (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
20927 (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
20928 (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
20929 (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
20930 (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
20931 (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
20932 Move these macros to ...
20933 * lib/stat_.h: here. Don't include stat-macros.h.
20934 * lib/canonicalize.c: Don't include stat-macros.h.
20935 * lib/chown.c: Likewise.
20936 * lib/euidaccess.c: Likewise.
20937 * lib/file-type.c: Likewise.
20938 * lib/filemode.c: Likewise.
20939 * lib/glob.c: Likewise.
20940 * lib/isapipe.c: Likewise.
20941 * lib/lchown.c: Likewise.
20942 * lib/lstat.c: Likewise.
20943 * lib/mkdir-p.c: Likewise.
20944 * lib/rmdir.c: Likewise.
20945 * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
20946 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
20947 unless mkdir isn't declared, to speed up 'configure'.
20948 Always create sys/stat.h, since it's unlikely any real sys/stat.h
20949 would define all the S_* symbols.
20950 * modules/canonicalize (Depends-on):
20951 Depend on sys_stat, not stat-macros.
20952 * modules/chown: Likewise.
20953 * modules/euidaccess: Likewise.
20954 * modules/filemode: Likewise.
20955 * modules/file-type: Likewise.
20956 * modules/glob: Likewise.
20957 * modules/isapipe: Likewise.
20958 * modules/lchown: Likewise.
20959 * modules/lstat: Likewise.
20960 * modules/mkancesdirs: Likewise.
20961 * modules/rmdir: Likewise.
20962 * modules/mkdir-p (Depends-on): Also depend on sys_stat.
20963 * modules/modechange: Likewise.
20964 * modules/stat-macros (Files): Remove m4/stat-macros.m4.
20965 (configure.ac): Remove gl_STAT_MACROS.
20966 * modules/sys_stat (Depends-on): Remove stat-macros.
20968 2006-10-27 Bruno Haible <bruno@clisp.org>
20970 * m4/signed.m4: Remove file.
20971 * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
20973 * modules/vasnprintf (Files): Remove m4/signed.m4.
20975 2006-10-27 Bruno Haible <bruno@clisp.org>
20977 Update to GNU gettext 0.16.
20978 * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
20979 m4/inttypes-h.m4, m4/signed.m4.
20980 * m4/gettext.m4: Update to GNU gettext 0.16.
20981 * m4/intl.m4: New file, from GNU gettext.
20982 * m4/intldir.m4: New file, from GNU gettext.
20983 * config/srclist.txt: Update
20985 2006-10-27 Eric Blake <ebb9@byu.net>
20987 * MODULES.html.sh: Document tempname.
20988 * modules/mkstemp (Depends-on): Add tempname, and drop transitive
20990 (Files): Move lib/tempname.c...
20991 * modules/tempname: ...to this new module.
20992 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
20993 (gl_PREREQ_TEMPNAME): Move...
20994 * m4/tempname.m4: ...to this new file.
20995 * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
20996 * modules/sys_stat (Depends-on): Add stat-macros.
20997 * lib/stat_.h (includes): Pick up stat macros.
20998 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
20999 if stat macros are broken.
21000 * lib/tempname.c (includes): No need to include "stat-macros.h".
21001 (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
21002 (direxists, __path_search) [!_LIBC]: Don't compile these in
21003 gnulib; the tmpdir module covers that.
21004 * lib/tempname.h: New file.
21006 2006-10-26 Paul Eggert <eggert@cs.ucla.edu>
21008 * COPYING: Explain how gnulib-tool converts licence headers.
21009 Almost all wording by Eric Blake.
21011 2006-10-25 Paul Eggert <eggert@cs.ucla.edu>
21013 * lib/mbchar.h (is_basic_table): Make read-only.
21014 * lib/mbchar.c (is_basic_table): Likewise.
21015 Reported by John Darrington.
21017 2006-10-25 Bruno Haible <bruno@clisp.org>
21019 * lib/progname.h (set_program_name): Undefine before defining.
21021 2006-10-25 Bruno Haible <bruno@clisp.org>
21023 * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
21024 false for non-gcc C++ compilers.
21025 Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
21027 2006-10-24 Bruno Haible <bruno@clisp.org>
21029 * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
21030 iconv implementations like Irix iconv.
21032 2006-10-24 Paul Eggert <eggert@cs.ucla.edu>
21034 * modules/vararrays: New file.
21035 * m4/vararrays.m4: New file, taken from diffutils.
21036 * MODULES.html.sh: New module vararrays.
21038 2006-10-24 Karl Berry <karl@gnu.org>
21040 * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
21041 Don't call GNU Unix.
21043 2006-10-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
21045 * users.txt: Add Libtool.
21049 2006-10-24 Paul Eggert <eggert@cs.ucla.edu>
21051 * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
21052 to gnulib's policy of including config.h unconditionally.
21054 2006-10-24 Bruno Haible <bruno@clisp.org>
21056 * modules/wcwidth (Files): Add m4/wint_t.m4.
21057 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
21058 * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
21060 2006-10-24 Paul Eggert <eggert@cs.ucla.edu>
21062 * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
21063 to pacify GCC with some -W flags enabled. Problem reported by
21066 2006-10-24 Jim Meyering <jim@meyering.net>
21068 * MODULES.html.sh: Remove uinttostr. It's not a module.
21069 Reported by Karl Berry.
21071 2006-10-23 Bruno Haible <bruno@clisp.org>
21073 * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
21075 2006-10-24 Bruno Haible <bruno@clisp.org>
21077 * lib/gl_list.h: Use C comment style, not C++ comment style.
21079 2006-10-23 Eric Blake <ebb9@byu.net>
21081 * lib/getaddrinfo.c (includes): Add missing include.
21083 2006-10-23 Bruno Haible <bruno@clisp.org>
21084 Paul Eggert <eggert@cs.ucla.edu>
21086 Ability to rename obstack_free.
21087 * lib/obstack.h (__obstack_free): New macro. Declare instead of
21089 (obstack_free): Invoke the __obstack_free macro.
21090 * lib/obstack.c (obstack_free): Use __obstack_free macro.
21092 2006-10-23 Bruno Haible <bruno@clisp.org>
21093 Paul Eggert <eggert@cs.ucla.edu>
21095 * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
21096 __argc, __argv from the declaration. (They are defined as macros on
21099 2006-10-22 Bruno Haible <bruno@clisp.org>
21101 * doc/gnulib-intro.texi: New file.
21102 * doc/gnulib.texi: Include it.
21104 2006-10-21 Bruno Haible <bruno@clisp.org>
21106 * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
21107 "Introduction", "Miscellanous Notes", "Particular Modules".
21109 2006-10-21 Bruno Haible <bruno@clisp.org>
21111 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
21112 Change mostlyclean-local rule to avoid sh syntax error from bash
21113 versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
21115 2006-10-23 Jim Meyering <jim@meyering.net>
21117 * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
21118 in place of snprintf.
21120 * modules/inttostr (Files): Add lib/uinttostr.c.
21121 * lib/uinttostr.c (inttostr): New file/function.
21122 * lib/inttostr.h (uinttostr): Declare.
21123 * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
21124 * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
21126 * modules/getaddrinfo (Depends-on): Remove snprintf. Add inttostr.
21128 2006-10-21 Paul Eggert <eggert@cs.ucla.edu>
21130 * lib/canonicalize.c (ELOOP): Define if not already defined.
21131 Problem reported by Bruno Haible in
21132 <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
21134 2006-10-21 Paul Eggert <eggert@cs.ucla.edu>
21136 * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
21137 Problem reported by Perry Smith and Ville Laurikari.
21139 * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
21142 2006-10-19 Bruno Haible <bruno@clisp.org>
21144 * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
21147 2006-10-19 Bruno Haible <bruno@clisp.org>
21149 * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
21152 2006-10-19 Bruno Haible <bruno@clisp.org>
21154 * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
21156 2006-10-19 Bruno Haible <bruno@clisp.org>
21158 * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
21161 2006-10-19 Bruno Haible <bruno@clisp.org>
21163 * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
21166 2006-10-19 Bruno Haible <bruno@clisp.org>
21168 * gnulib-tool (func_create_testdir): Don't include ftruncate and
21169 mountlist by default.
21171 2006-10-16 Bruno Haible <bruno@clisp.org>
21173 * lib/c-strstr.c: Include c-strstr.h.
21175 2006-10-18 Charles Wilson <cygwin@cwilson.fastmail.fm>
21177 * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
21180 2006-10-18 Bruno Haible <bruno@clisp.org>
21182 * lib/lock.h [C++]: Wrap definitions in extern "C".
21184 2006-10-18 Bruno Haible <bruno@clisp.org>
21186 * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
21189 2006-10-18 Bruno Haible <bruno@clisp.org>
21191 * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
21193 2006-10-19 Paul Eggert <eggert@cs.ucla.edu>
21195 * lib/xstrtol.h: Include gettext.h.
21196 (_STRTOL_ERROR): Wrap English-language formats inside gettext.
21197 Problem reported by Eric Blake.
21198 * modules/xstrtol (Depends-on): Add gettext-h.
21200 2006-10-19 Paul Eggert <eggert@cs.ucla.edu> (tiny change)
21202 * lib/strftime.c (advance): New macro.
21203 (add): Use it to avoid adding 0 to a FILE *. FILE can be an
21204 incomplete type, so you can't add 0 to it. Problem and patch
21205 reported by Eelco Dolstra for dietlibc.
21207 2006-10-18 Jim Meyering <jim@meyering.net>
21209 * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
21210 type for a local, and rename it: s/up/user_proc/.
21212 2006-10-18 Sergey Poznyakoff <gray@gnu.org.ua>
21214 * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
21215 READ_UTMP_USER_PROCESS.
21216 * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
21218 2006-10-17 Paul Eggert <eggert@cs.ucla.edu>
21220 * lib/localcharset.c: Do not check HAVE_SETLOCALE.
21221 * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
21223 2006-10-17 Eric Blake <ebb9@byu.net>
21225 * lib/sigprocmask.c (sigprocmask): Fix typo.
21227 * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
21229 * modules/clean-temp (Makefile.am): Don't add to make output...
21230 (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
21233 2006-10-17 Bruno Haible <bruno@clisp.org>
21235 * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
21236 differently if DEFAULT_TEXT_DOMAIN is set.
21238 2006-10-16 Bruno Haible <bruno@clisp.org>
21240 * lib/clean-temp.c: Include fwriteerror.h.
21242 2006-10-16 Bruno Haible <bruno@clisp.org>
21244 * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
21246 2006-10-16 Bruno Haible <bruno@clisp.org>
21248 * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
21249 * lib/sigprocmask.h: Include <sys/types.h>.
21250 (sigset_t): Use the system's definition if present.
21252 2006-10-17 Eric Blake <ebb9@byu.net>
21254 * lib/xvasprintf.c (includes): Assume config.h.
21255 * lib/xasprintf.c (includes): Likewise.
21257 2006-10-16 Paul Eggert <eggert@cs.ucla.edu>
21259 * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
21260 at least as wide as intmax_t.
21262 2006-10-16 Alexandre Duret-Lutz <adl@gnu.org>
21264 (Imported from Automake.)
21265 * build-aux/gnupload: Update to version 1.1 of directive file.
21267 2006-10-16 Eric Blake <ebb9@byu.net>
21269 * modules/configmake (Makefile.am): Add pkglibexecdir support, to
21270 match Automake 1.10a.
21272 2006-10-14 Bruno Haible <bruno@clisp.org>
21274 * modules/sigprocmask: New file.
21275 * lib/sigprocmask.h: New file.
21276 * lib/sigprocmask.c: New file.
21277 * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
21278 gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
21279 request sigprocmask.o.
21280 (gl_PREREQ_SIGPROCMASK): New macro.
21281 * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
21282 (Depends-on): Add sigprocmask.
21283 * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
21284 gt_SIGNALBLOCKING. Test for 'raise' only once.
21285 * lib/fatal-signal.c: Include sigprocmask.h.
21286 (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
21287 unblock_fatal_signals): Define always.
21288 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
21291 2006-10-14 Paul Eggert <eggert@cs.ucla.edu>
21293 Sync from Automake.
21294 * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
21295 which incorrectly sets the mode of an existing destination
21296 directory. In some cases the unpatched install-sh could do the
21297 equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
21298 system. We hope this is rare in practice, but it's clearly worth
21299 fixing. Problem reported by Alex Unleashed in
21300 <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
21301 Also, don't bother to check for -m bugs unless we're using -m;
21302 suggested by Stepan Kasal.
21304 2006-10-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
21306 Sync from Automake.
21307 * build-aux/depcomp (gcc3): Put dependency extraction flags before the
21308 `-c' flag, so they appear at the same position as in %FASTDEP%
21309 mode in depend2.am. Fixes build failure for FreeBSD's c89,
21310 which ignores unknown options only after the first non-option.
21311 Bug report against M4 by Nelson H. F. Beebe.
21313 2006-10-13 Jim Meyering <jim@meyering.net>
21315 Fix a bug in yesterday's change.
21316 * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
21317 p->fts_statp->st_dev would be used uninitialized.
21318 Ensures that we always call fts_stat on the very first entry.
21319 Miklos Szeredi reported that find -xdev stopped working.
21321 2006-10-12 Bruno Haible <bruno@clisp.org>
21323 * gnulib-tool (func_get_automake_snippet): Append an automatically
21324 computed EXTRA_DIST augmentation.
21325 * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
21326 * modules/alloca-opt (Makefile.am): Likewise.
21327 * modules/allocsa (Makefile.am): Likewise.
21328 * modules/arcfour (Makefile.am): Likewise.
21329 * modules/arctwo (Makefile.am): Likewise.
21330 * modules/argmatch (Makefile.am): Likewise.
21331 * modules/argz (Makefile.am): Likewise.
21332 * modules/atexit (Makefile.am): Likewise.
21333 * modules/backupfile (Makefile.am): Likewise.
21334 * modules/byteswap (Makefile.am): Likewise.
21335 * modules/c-strtod (Makefile.am): Likewise.
21336 * modules/c-strtold (Makefile.am): Likewise.
21337 * modules/calloc (Makefile.am): Likewise.
21338 * modules/canon-host (Makefile.am): Likewise.
21339 * modules/canonicalize (Makefile.am): Likewise.
21340 * modules/chdir-long (Makefile.am): Likewise.
21341 * modules/chdir-safer (Makefile.am): Likewise.
21342 * modules/check-version (Makefile.am): Likewise.
21343 * modules/chown (Makefile.am): Likewise.
21344 * modules/cloexec (Makefile.am): Likewise.
21345 * modules/close-stream (Makefile.am): Likewise.
21346 * modules/closeout (Makefile.am): Likewise.
21347 * modules/crc (Makefile.am): Likewise.
21348 * modules/csharpexec (Makefile.am): Likewise.
21349 * modules/cycle-check (Makefile.am): Likewise.
21350 * modules/des (Makefile.am): Likewise.
21351 * modules/dev-ino (Makefile.am): Likewise.
21352 * modules/dirfd (Makefile.am): Likewise.
21353 * modules/dirname (Makefile.am): Likewise.
21354 * modules/dup2 (Makefile.am): Likewise.
21355 * modules/eealloc (Makefile.am): Likewise.
21356 * modules/error (Makefile.am): Likewise.
21357 * modules/euidaccess (Makefile.am): Likewise.
21358 * modules/exclude (Makefile.am): Likewise.
21359 * modules/exitfail (Makefile.am): Likewise.
21360 * modules/fcntl-safer (Makefile.am): Likewise.
21361 * modules/fcntl (Makefile.am): Likewise.
21362 * modules/file-type (Makefile.am): Likewise.
21363 * modules/fileblocks (Makefile.am): Likewise.
21364 * modules/filemode (Makefile.am): Likewise.
21365 * modules/filenamecat (Makefile.am): Likewise.
21366 * modules/fnmatch (Makefile.am): Likewise.
21367 * modules/fopen-safer (Makefile.am): Likewise.
21368 * modules/fpending (Makefile.am): Likewise.
21369 * modules/fprintftime (Makefile.am): Likewise.
21370 * modules/free (Makefile.am): Likewise.
21371 * modules/fsusage (Makefile.am): Likewise.
21372 * modules/ftruncate (Makefile.am): Likewise.
21373 * modules/fts (Makefile.am): Likewise.
21374 * modules/gc-arcfour (Makefile.am): Likewise.
21375 * modules/gc-des (Makefile.am): Likewise.
21376 * modules/gc-hmac-md5 (Makefile.am): Likewise.
21377 * modules/gc-hmac-sha1 (Makefile.am): Likewise.
21378 * modules/gc-md4 (Makefile.am): Likewise.
21379 * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
21380 * modules/gc-sha1 (Makefile.am): Likewise.
21381 * modules/gc (Makefile.am): Likewise.
21382 * modules/getaddrinfo (Makefile.am): Likewise.
21383 * modules/getcwd (Makefile.am): Likewise.
21384 * modules/getdelim (Makefile.am): Likewise.
21385 * modules/getdomainname (Makefile.am): Likewise.
21386 * modules/getgroups (Makefile.am): Likewise.
21387 * modules/gethostname (Makefile.am): Likewise.
21388 * modules/gethrxtime (Makefile.am): Likewise.
21389 * modules/getline (Makefile.am): Likewise.
21390 * modules/getloadavg (Makefile.am): Likewise.
21391 * modules/getlogin_r (Makefile.am): Likewise.
21392 * modules/getndelim2 (Makefile.am): Likewise.
21393 * modules/getopt (Makefile.am): Likewise.
21394 * modules/getpagesize (Makefile.am): Likewise.
21395 * modules/getpass-gnu (Makefile.am): Likewise.
21396 * modules/getpass (Makefile.am): Likewise.
21397 * modules/getsubopt (Makefile.am): Likewise.
21398 * modules/gettime (Makefile.am): Likewise.
21399 * modules/gettimeofday (Makefile.am): Likewise.
21400 * modules/getugroups (Makefile.am): Likewise.
21401 * modules/getusershell (Makefile.am): Likewise.
21402 * modules/glob (Makefile.am): Likewise.
21403 * modules/group-member (Makefile.am): Likewise.
21404 * modules/hard-locale (Makefile.am): Likewise.
21405 * modules/hash (Makefile.am): Likewise.
21406 * modules/hmac-md5 (Makefile.am): Likewise.
21407 * modules/hmac-sha1 (Makefile.am): Likewise.
21408 * modules/human (Makefile.am): Likewise.
21409 * modules/idcache (Makefile.am): Likewise.
21410 * modules/imaxabs (Makefile.am): Likewise.
21411 * modules/imaxdiv (Makefile.am): Likewise.
21412 * modules/inet_ntop (Makefile.am): Likewise.
21413 * modules/inet_pton (Makefile.am): Likewise.
21414 * modules/intprops (Makefile.am): Likewise.
21415 * modules/inttostr (Makefile.am): Likewise.
21416 * modules/inttypes (Makefile.am): Likewise.
21417 * modules/isapipe (Makefile.am): Likewise.
21418 * modules/javaversion (Makefile.am): Likewise.
21419 * modules/lchmod (Makefile.am): Likewise.
21420 * modules/lchown (Makefile.am): Likewise.
21421 * modules/localcharset (Makefile.am): Likewise.
21422 * modules/long-options (Makefile.am): Likewise.
21423 * modules/lstat (Makefile.am): Likewise.
21424 * modules/malloc (Makefile.am): Likewise.
21425 * modules/mathl (Makefile.am): Likewise.
21426 * modules/mbchar (Makefile.am): Likewise.
21427 * modules/md2 (Makefile.am): Likewise.
21428 * modules/md4 (Makefile.am): Likewise.
21429 * modules/md5 (Makefile.am): Likewise.
21430 * modules/memcasecmp (Makefile.am): Likewise.
21431 * modules/memchr (Makefile.am): Likewise.
21432 * modules/memcmp (Makefile.am): Likewise.
21433 * modules/memcoll (Makefile.am): Likewise.
21434 * modules/memcpy (Makefile.am): Likewise.
21435 * modules/memmem (Makefile.am): Likewise.
21436 * modules/memmove (Makefile.am): Likewise.
21437 * modules/mempcpy (Makefile.am): Likewise.
21438 * modules/memrchr (Makefile.am): Likewise.
21439 * modules/memset (Makefile.am): Likewise.
21440 * modules/memxor (Makefile.am): Likewise.
21441 * modules/mkancesdirs (Makefile.am): Likewise.
21442 * modules/mkdir-p (Makefile.am): Likewise.
21443 * modules/mkdir (Makefile.am): Likewise.
21444 * modules/mkdtemp (Makefile.am): Likewise.
21445 * modules/mkstemp (Makefile.am): Likewise.
21446 * modules/mktime (Makefile.am): Likewise.
21447 * modules/modechange (Makefile.am): Likewise.
21448 * modules/mountlist (Makefile.am): Likewise.
21449 * modules/nanosleep (Makefile.am): Likewise.
21450 * modules/obstack (Makefile.am): Likewise.
21451 * modules/openat (Makefile.am): Likewise.
21452 * modules/pagealign_alloc (Makefile.am): Likewise.
21453 * modules/pathmax (Makefile.am): Likewise.
21454 * modules/physmem (Makefile.am): Likewise.
21455 * modules/poll (Makefile.am): Likewise.
21456 * modules/posixtm (Makefile.am): Likewise.
21457 * modules/posixver (Makefile.am): Likewise.
21458 * modules/putenv (Makefile.am): Likewise.
21459 * modules/quote (Makefile.am): Likewise.
21460 * modules/quotearg (Makefile.am): Likewise.
21461 * modules/raise (Makefile.am): Likewise.
21462 * modules/read-file (Makefile.am): Likewise.
21463 * modules/readline (Makefile.am): Likewise.
21464 * modules/readlink (Makefile.am): Likewise.
21465 * modules/readtokens (Makefile.am): Likewise.
21466 * modules/readutmp (Makefile.am): Likewise.
21467 * modules/realloc (Makefile.am): Likewise.
21468 * modules/regex (Makefile.am): Likewise.
21469 * modules/rename-dest-slash (Makefile.am): Likewise.
21470 * modules/rename (Makefile.am): Likewise.
21471 * modules/rijndael (Makefile.am): Likewise.
21472 * modules/rmdir (Makefile.am): Likewise.
21473 * modules/rpmatch (Makefile.am): Likewise.
21474 * modules/safe-read (Makefile.am): Likewise.
21475 * modules/safe-write (Makefile.am): Likewise.
21476 * modules/same-inode (Makefile.am): Likewise.
21477 * modules/same (Makefile.am): Likewise.
21478 * modules/save-cwd (Makefile.am): Likewise.
21479 * modules/savedir (Makefile.am): Likewise.
21480 * modules/setenv (Makefile.am): Likewise.
21481 * modules/settime (Makefile.am): Likewise.
21482 * modules/sha1 (Makefile.am): Likewise.
21483 * modules/sig2str (Makefile.am): Likewise.
21484 * modules/snprintf (Makefile.am): Likewise.
21485 * modules/stat-macros (Makefile.am): Likewise.
21486 * modules/stat-time (Makefile.am): Likewise.
21487 * modules/stdbool (Makefile.am): Likewise.
21488 * modules/stdint (Makefile.am): Likewise.
21489 * modules/stdlib-safer (Makefile.am): Likewise.
21490 * modules/stpcpy (Makefile.am): Likewise.
21491 * modules/stpncpy (Makefile.am): Likewise.
21492 * modules/strcase (Makefile.am): Likewise.
21493 * modules/strcasestr (Makefile.am): Likewise.
21494 * modules/strchrnul (Makefile.am): Likewise.
21495 * modules/strcspn (Makefile.am): Likewise.
21496 * modules/strdup (Makefile.am): Likewise.
21497 * modules/strerror (Makefile.am): Likewise.
21498 * modules/strftime (Makefile.am): Likewise.
21499 * modules/strndup (Makefile.am): Likewise.
21500 * modules/strnlen (Makefile.am): Likewise.
21501 * modules/strpbrk (Makefile.am): Likewise.
21502 * modules/strsep (Makefile.am): Likewise.
21503 * modules/strstr (Makefile.am): Likewise.
21504 * modules/strtod (Makefile.am): Likewise.
21505 * modules/strtoimax (Makefile.am): Likewise.
21506 * modules/strtok_r (Makefile.am): Likewise.
21507 * modules/strtol (Makefile.am): Likewise.
21508 * modules/strtoll (Makefile.am): Likewise.
21509 * modules/strtoul (Makefile.am): Likewise.
21510 * modules/strtoull (Makefile.am): Likewise.
21511 * modules/strtoumax (Makefile.am): Likewise.
21512 * modules/strverscmp (Makefile.am): Likewise.
21513 * modules/sys_socket (Makefile.am): Likewise.
21514 * modules/sys_stat (Makefile.am): Likewise.
21515 * modules/sysexits (Makefile.am): Likewise.
21516 * modules/time_r (Makefile.am): Likewise.
21517 * modules/timegm (Makefile.am): Likewise.
21518 * modules/timespec (Makefile.am): Likewise.
21519 * modules/tmpfile-safer (Makefile.am): Likewise.
21520 * modules/trim (Makefile.am): Likewise.
21521 * modules/unistd-safer (Makefile.am): Likewise.
21522 * modules/unlinkdir (Makefile.am): Likewise.
21523 * modules/unlocked-io (Makefile.am): Likewise.
21524 * modules/userspec (Makefile.am): Likewise.
21525 * modules/utime (Makefile.am): Likewise.
21526 * modules/utimecmp (Makefile.am): Likewise.
21527 * modules/utimens (Makefile.am): Likewise.
21528 * modules/vasnprintf (Makefile.am): Likewise.
21529 * modules/vasprintf (Makefile.am): Likewise.
21530 * modules/vsnprintf (Makefile.am): Likewise.
21531 * modules/xalloc (Makefile.am): Likewise.
21532 * modules/xgetcwd (Makefile.am): Likewise.
21533 * modules/xnanosleep (Makefile.am): Likewise.
21534 * modules/xreadlink (Makefile.am): Likewise.
21535 * modules/xstrtod (Makefile.am): Likewise.
21536 * modules/xstrtol (Makefile.am): Likewise.
21537 * modules/xstrtold (Makefile.am): Likewise.
21538 * modules/yesno (Makefile.am): Likewise.
21539 * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
21541 2006-10-12 Paul Eggert <eggert@cs.ucla.edu>
21543 * modules/error (Makefile.am): Distribute files through
21544 EXTRA_DIST, not lib_SOURCES.
21546 2006-10-12 Eric Blake <ebb9@byu.net>
21548 * modules/error (Makefile.am): Distribute files in /lib.
21549 * modules/obstack (Makefile.am): Likewise.
21551 2006-10-12 Bruno Haible <bruno@clisp.org>
21553 * modules/acl (Makefile.am): Distribute all files in lib/ through
21555 * modules/arcfour (Makefile.am): Likewise.
21556 * modules/arctwo (Makefile.am): Likewise.
21557 * modules/argmatch (Makefile.am): Likewise.
21558 * modules/argz (Makefile.am): Likewise.
21559 * modules/atexit (Makefile.am): Likewise.
21560 * modules/backupfile (Makefile.am): Likewise.
21561 * modules/c-strtod (Makefile.am): Likewise.
21562 * modules/c-strtold (Makefile.am): Likewise.
21563 * modules/calloc (Makefile.am): Likewise.
21564 * modules/canon-host (Makefile.am): Likewise.
21565 * modules/canonicalize (Makefile.am): Likewise.
21566 * modules/chdir-long (Makefile.am): Likewise.
21567 * modules/chdir-safer (Makefile.am): Likewise.
21568 * modules/check-version (Makefile.am): Likewise.
21569 * modules/chown (Makefile.am): Likewise.
21570 * modules/cloexec (Makefile.am): Likewise.
21571 * modules/close-stream (Makefile.am): Likewise.
21572 * modules/closeout (Makefile.am): Likewise.
21573 * modules/crc (Makefile.am): Likewise.
21574 * modules/cycle-check (Makefile.am): Likewise.
21575 * modules/des (Makefile.am): Likewise.
21576 * modules/dirfd (Makefile.am): Likewise.
21577 * modules/dirname (Makefile.am): Likewise.
21578 * modules/dup2 (Makefile.am): Likewise.
21579 * modules/euidaccess (Makefile.am): Likewise.
21580 * modules/exclude (Makefile.am): Likewise.
21581 * modules/exitfail (Makefile.am): Likewise.
21582 * modules/fcntl-safer (Makefile.am): Likewise.
21583 * modules/file-type (Makefile.am): Likewise.
21584 * modules/fileblocks (Makefile.am): Likewise.
21585 * modules/filemode (Makefile.am): Likewise.
21586 * modules/filenamecat (Makefile.am): Likewise.
21587 * modules/fnmatch (Makefile.am): Likewise.
21588 * modules/fopen-safer (Makefile.am): Likewise.
21589 * modules/fpending (Makefile.am): Likewise.
21590 * modules/fprintftime (Makefile.am): Likewise.
21591 * modules/free (Makefile.am): Likewise.
21592 * modules/fsusage (Makefile.am): Likewise.
21593 * modules/ftruncate (Makefile.am): Likewise.
21594 * modules/fts (Makefile.am): Likewise.
21595 * modules/gc (Makefile.am): Likewise.
21596 * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
21597 * modules/getaddrinfo (Makefile.am): Likewise.
21598 * modules/getcwd (Makefile.am): Likewise.
21599 * modules/getdelim (Makefile.am): Likewise.
21600 * modules/getdomainname (Makefile.am): Likewise.
21601 * modules/getgroups (Makefile.am): Likewise.
21602 * modules/gethostname (Makefile.am): Likewise.
21603 * modules/gethrxtime (Makefile.am): Likewise.
21604 * modules/getline (Makefile.am): Likewise.
21605 * modules/getloadavg (Makefile.am): Likewise.
21606 * modules/getlogin_r (Makefile.am): Likewise.
21607 * modules/getopt (Makefile.am): Likewise.
21608 * modules/getpass (Makefile.am): Likewise.
21609 * modules/getpass-gnu (Makefile.am): Likewise.
21610 * modules/getsubopt (Makefile.am): Likewise.
21611 * modules/gettime (Makefile.am): Likewise.
21612 * modules/gettimeofday (Makefile.am): Likewise.
21613 * modules/getugroups (Makefile.am): Likewise.
21614 * modules/getusershell (Makefile.am): Likewise.
21615 * modules/glob (Makefile.am): Likewise.
21616 * modules/group-member (Makefile.am): Likewise.
21617 * modules/hard-locale (Makefile.am): Likewise.
21618 * modules/hash (Makefile.am): Likewise.
21619 * modules/hmac-md5 (Makefile.am): Likewise.
21620 * modules/hmac-sha1 (Makefile.am): Likewise.
21621 * modules/human (Makefile.am): Likewise.
21622 * modules/idcache (Makefile.am): Likewise.
21623 * modules/imaxabs (Makefile.am): Likewise.
21624 * modules/imaxdiv (Makefile.am): Likewise.
21625 * modules/inet_ntop (Makefile.am): Likewise.
21626 * modules/inet_pton (Makefile.am): Likewise.
21627 * modules/inttostr (Makefile.am): Likewise.
21628 * modules/isapipe (Makefile.am): Likewise.
21629 * modules/lchown (Makefile.am): Likewise.
21630 * modules/long-options (Makefile.am): Likewise.
21631 * modules/lstat (Makefile.am): Likewise.
21632 * modules/malloc (Makefile.am): Likewise.
21633 * modules/mathl (Makefile.am): Likewise.
21634 * modules/mbchar (Makefile.am): Likewise.
21635 * modules/md2 (Makefile.am): Likewise.
21636 * modules/md4 (Makefile.am): Likewise.
21637 * modules/md5 (Makefile.am): Likewise.
21638 * modules/memcasecmp (Makefile.am): Likewise.
21639 * modules/memchr (Makefile.am): Likewise.
21640 * modules/memcmp (Makefile.am): Likewise.
21641 * modules/memcoll (Makefile.am): Likewise.
21642 * modules/memcpy (Makefile.am): Likewise.
21643 * modules/memmem (Makefile.am): Likewise.
21644 * modules/memmove (Makefile.am): Likewise.
21645 * modules/mempcpy (Makefile.am): Likewise.
21646 * modules/memrchr (Makefile.am): Likewise.
21647 * modules/memset (Makefile.am): Likewise.
21648 * modules/memxor (Makefile.am): Likewise.
21649 * modules/mkancesdirs (Makefile.am): Likewise.
21650 * modules/mkdir (Makefile.am): Likewise.
21651 * modules/mkdir-p (Makefile.am): Likewise.
21652 * modules/mkdtemp (Makefile.am): Likewise.
21653 * modules/mkstemp (Makefile.am): Likewise.
21654 * modules/mktime (Makefile.am): Likewise.
21655 * modules/modechange (Makefile.am): Likewise.
21656 * modules/mountlist (Makefile.am): Likewise.
21657 * modules/nanosleep (Makefile.am): Likewise.
21658 * modules/openat (Makefile.am): Likewise.
21659 * modules/pagealign_alloc (Makefile.am): Likewise.
21660 * modules/physmem (Makefile.am): Likewise.
21661 * modules/poll (Makefile.am): Likewise.
21662 * modules/posixtm (Makefile.am): Likewise.
21663 * modules/posixver (Makefile.am): Likewise.
21664 * modules/putenv (Makefile.am): Likewise.
21665 * modules/quote (Makefile.am): Likewise.
21666 * modules/quotearg (Makefile.am): Likewise.
21667 * modules/raise (Makefile.am): Likewise.
21668 * modules/read-file (Makefile.am): Likewise.
21669 * modules/readline (Makefile.am): Likewise.
21670 * modules/readlink (Makefile.am): Likewise.
21671 * modules/readtokens (Makefile.am): Likewise.
21672 * modules/readutmp (Makefile.am): Likewise.
21673 * modules/realloc (Makefile.am): Likewise.
21674 * modules/regex (Makefile.am): Likewise.
21675 * modules/rename (Makefile.am): Likewise.
21676 * modules/rename-dest-slash (Makefile.am): Likewise.
21677 * modules/rijndael (Makefile.am): Likewise.
21678 * modules/rmdir (Makefile.am): Likewise.
21679 * modules/rpmatch (Makefile.am): Likewise.
21680 * modules/safe-read (Makefile.am): Likewise.
21681 * modules/safe-write (Makefile.am): Likewise.
21682 * modules/same (Makefile.am): Likewise.
21683 * modules/save-cwd (Makefile.am): Likewise.
21684 * modules/savedir (Makefile.am): Likewise.
21685 * modules/setenv (Makefile.am): Likewise.
21686 * modules/settime (Makefile.am): Likewise.
21687 * modules/sha1 (Makefile.am): Likewise.
21688 * modules/sig2str (Makefile.am): Likewise.
21689 * modules/snprintf (Makefile.am): Likewise.
21690 * modules/stdlib-safer (Makefile.am): Likewise.
21691 * modules/stpcpy (Makefile.am): Likewise.
21692 * modules/stpncpy (Makefile.am): Likewise.
21693 * modules/strcase (Makefile.am): Likewise.
21694 * modules/strcasestr (Makefile.am): Likewise.
21695 * modules/strchrnul (Makefile.am): Likewise.
21696 * modules/strcspn (Makefile.am): Likewise.
21697 * modules/strdup (Makefile.am): Likewise.
21698 * modules/strerror (Makefile.am): Likewise.
21699 * modules/strftime (Makefile.am): Likewise.
21700 * modules/strndup (Makefile.am): Likewise.
21701 * modules/strnlen (Makefile.am): Likewise.
21702 * modules/strpbrk (Makefile.am): Likewise.
21703 * modules/strsep (Makefile.am): Likewise.
21704 * modules/strstr (Makefile.am): Likewise.
21705 * modules/strtod (Makefile.am): Likewise.
21706 * modules/strtoimax (Makefile.am): Likewise.
21707 * modules/strtok_r (Makefile.am): Likewise.
21708 * modules/strtol (Makefile.am): Likewise.
21709 * modules/strtoll (Makefile.am): Likewise.
21710 * modules/strtoul (Makefile.am): Likewise.
21711 * modules/strtoull (Makefile.am): Likewise.
21712 * modules/strtoumax (Makefile.am): Likewise.
21713 * modules/strverscmp (Makefile.am): Likewise.
21714 * modules/time_r (Makefile.am): Likewise.
21715 * modules/timegm (Makefile.am): Likewise.
21716 * modules/tmpfile-safer (Makefile.am): Likewise.
21717 * modules/unistd-safer (Makefile.am): Likewise.
21718 * modules/unlinkdir (Makefile.am): Likewise.
21719 * modules/userspec (Makefile.am): Likewise.
21720 * modules/utime (Makefile.am): Likewise.
21721 * modules/utimecmp (Makefile.am): Likewise.
21722 * modules/utimens (Makefile.am): Likewise.
21723 * modules/vasnprintf (Makefile.am): Likewise.
21724 * modules/vasprintf (Makefile.am): Likewise.
21725 * modules/vsnprintf (Makefile.am): Likewise.
21726 * modules/xalloc (Makefile.am): Likewise.
21727 * modules/xgetcwd (Makefile.am): Likewise.
21728 * modules/xnanosleep (Makefile.am): Likewise.
21729 * modules/xreadlink (Makefile.am): Likewise.
21730 * modules/xstrtod (Makefile.am): Likewise.
21731 * modules/xstrtol (Makefile.am): Likewise.
21732 * modules/xstrtold (Makefile.am): Likewise.
21733 * modules/yesno (Makefile.am): Likewise.
21735 2006-10-12 Jim Meyering <jim@meyering.net>
21737 * m4/getloadavg.m4: Revert the change below.
21739 * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
21740 lib/getloadavg.c using "ls -L", not "test -f". The latter would
21741 fail with a symlink, which is what coreutils' ./bootstrap now
21742 creates by default.
21744 2006-10-12 Bruno Haible <bruno@clisp.org>
21746 * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
21748 (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
21749 MSVC and mingw explicitly.
21751 2006-10-11 Simon Josefsson <jas@extundo.com>
21752 Bruno Haible <bruno@clisp.org>
21754 Add support for multiple gnulib-tool invocations in the scope of a
21755 single configure.ac file.
21756 * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
21757 use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
21758 with the same contents as the _LIBADD variable.
21759 (func_emit_initmacro_start, func_emit_initmacro_end,
21760 func_emit_initmacro_done): New functions.
21761 (func_import, func_create_testdir): Invoke them. Allow the identifiers
21762 gl_LIBOBJS and gl_LTLIBOBJS.
21764 2006-10-11 Bruno Haible <bruno@clisp.org>
21766 * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
21767 (func_create_testdir): Don't create po/Makefile.am, don't invoke
21768 autoreconf. Instead, invoke autopoint explicitly but move back the
21769 *.m4 files from gnulib.
21771 2006-10-11 Bruno Haible <bruno@clisp.org>
21773 * gnulib-tool (func_usage): Make module names after --create-testdir
21775 (func_create_testdir): If no module was specified, use nearly all
21778 2006-10-12 Jim Meyering <jim@meyering.net>
21780 Big performance improvement for fts-based tools that use FTS_NOSTAT.
21781 Avoid spurious inode-mismatch problems on non-POSIX file systems.
21782 Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
21783 * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
21784 (FTS_OPTIONMASK): Extend the mask to reflect this addition.
21785 * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
21786 (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
21787 (fts_set_stat_required): New function.
21788 (fts_open): Defer the calls to fts_stat, if possible or requested.
21789 Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
21790 into fts_stat itself.
21791 (fts_read): Perform any required (deferred) fts_stat call.
21792 (fts_build): Likewise, for the directory we're about to open and read.
21793 In the readdir loop, carefully decide whether each entry will require
21794 an eventual call to fts_stat, using dirent.d_type info if available.
21795 (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
21796 a command line argument into this function. Update all callers.
21797 Map a return value of FTS_DOT to FTS_D for a command line argument.
21798 * modules/fts (Depends-on): Add d-type. Alphabetize.
21799 Thanks to Miklos Szeredi for his tenacity and for the initial
21800 bug report about "find" failing on a FUSE-based file system.
21802 * lib/fts.c (fts_open): Use consistent indentation.
21804 2006-10-12 Paul Eggert <eggert@cs.ucla.edu>
21806 * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
21807 gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
21808 reported by Jim Meyering. All uses of cache variables renamed
21809 to match Autoconf's.
21810 (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
21813 * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
21814 Fix misspelling in diagnostic.
21816 2006-10-11 Paul Eggert <eggert@cs.ucla.edu>
21818 * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
21819 defined. Problem reported by Matthew Woehlke.
21821 * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
21822 Add support for Tandem NonStop R series.
21823 (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
21826 * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
21827 (has_trailing_slash): Omit size arg; all callers changed.
21828 Omit 'inline', since it doesn't help performance and we'd
21829 need to configure it.
21830 Don't count //, ///, etc. as having a trailing slash.
21831 As a side effect, this removes a C99ism reported by Matthew Woehlke.
21832 (rpl_rename_dest_slash): On failure, use rename's errno rather
21833 than (in some cases) an incorrect or junk errno.
21834 Simplify code by removing need to compute length; this does
21835 cause it to make two passes instead of one over the file name,
21838 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
21839 change, since Autoconf's version may no longer be appropriate now
21840 that we are using CVS Autoconf's version. Add support for Tandem.
21842 2006-10-11 Paul Eggert <eggert@cs.ucla.edu>
21843 Bruno Haible <bruno@clisp.org>
21845 * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
21846 HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
21847 * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
21848 gl_AC_TYPE_LONG_LONG.
21850 * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
21851 instead of HAVE_LONG_LONG.
21852 * lib/printf-args.c (printf_fetchargs): Likewise.
21853 * lib/printf-parse.c (PRINTF_PARSE): Likewise.
21854 * lib/vasnprintf.c (VASNPRINTF): Likewise.
21855 * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
21856 gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
21857 gl_AC_TYPE_LONG_LONG.
21859 2006-10-11 Bruno Haible <bruno@clisp.org>
21861 * m4/longlong.m4: Add comments.
21862 * m4/ulonglong.m4: Likewise.
21864 2006-10-10 Bruno Haible <bruno@clisp.org>
21866 Make it possible to #define stpcpy, strdup to aliases.
21867 * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
21868 * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
21870 2006-10-10 Bruno Haible <bruno@clisp.org>
21872 Make it possible to #define gcd to an alias.
21873 * lib/gcd.c: Include config.h.
21875 2006-10-10 Bruno Haible <bruno@clisp.org>
21877 Make it possible to #define c_isascii to an alias.
21878 * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
21879 defined. Undefine the macros before defining them, to avoid gcc
21881 * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
21882 define NO_C_CTYPE_MACROS early.
21884 2006-10-10 Bruno Haible <bruno@clisp.org>
21886 Make it possible to #define set_program_name to an alias.
21887 * lib/progname.c: Don't undefine set_program_name; instead, undefine
21888 ENABLE_RELOCATABLE early.
21890 2006-10-10 Paul Eggert <eggert@cs.ucla.edu>
21892 Port to Tandem NSK OSS, which has 64-bit signed int but at most
21893 32-bit unsigned int. Problem reported by Matthew Woehlke in:
21894 http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
21895 More generally, don't assume that 64-bit signed int is available
21896 if unsigned int is, and vice versa.
21897 * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
21898 unsigned symbols, not on their signed counterparts.
21899 * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
21900 (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
21901 (UINT64_C, UINTMAX_C):
21903 * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
21904 unsigned counterparts.
21905 (Have_long_long, Unsigned): New macros.
21906 (Int): Renamed from INT.
21907 (strtoimax): Use the new macros.
21908 * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
21909 and substitute HAVE_UNSIGNED_LONG_LONG_INT.
21910 * modules/inttypes (inttypes.h): Substitute
21911 HAVE_UNSIGNED_LONG_LONG_INT.
21912 * modules/stdint (stdint.h): Likewise.
21913 (Files): Add m4/ulonglong.m4.
21915 2006-10-10 Bruno Haible <bruno@clisp.org>
21917 Fix a gcc -Wshadow warning.
21918 * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
21920 * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
21921 gl_linked_indexof_from_to): Likewise.
21922 * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
21924 * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
21926 * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
21927 Reported by Eric Blake.
21929 2006-10-09 Paul Eggert <eggert@cs.ucla.edu>
21931 * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
21932 for NetBSD. Problem reported by Bruno Haible.
21934 2006-10-09 Jim Meyering <jim@meyering.net>
21936 * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
21937 Patch from Bruno Haible.
21939 2006-10-09 Jim Meyering <jim@meyering.net>
21941 * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
21942 to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
21943 Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
21945 2006-10-08 Paul Eggert <eggert@cs.ucla.edu>
21947 Don't include <config.h> twice; this doesn't work in some cases,
21948 e.g., when config.h has "#define intmax_t long long int" and
21949 we include <config.h>, <inttypes.h>, <config.h> in that order.
21950 Problem reported by Matthew Woehlke in:
21951 http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
21952 * lib/fprintftime.c: Don't include config.h or fprintftime.h.
21953 * lib/fts-cycle.c: Don't include config.h.
21954 * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
21955 * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
21956 Don't include config.h or xstrtol.h. Define STRTOL_T_MINIMUM
21957 and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
21959 * lib/xstrtoumax.c: Likewise.
21960 * lib/xstrtol.c: Include config.h and xstrtol.h after defining
21961 __strtol and the like, so that this module is more like its siblings.
21962 (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
21963 Remove; no longer needed now that we assume gnulib inttypes.h.
21965 2006-10-08 Bruno Haible <bruno@clisp.org>
21967 * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
21970 2006-10-07 Jim Meyering <jim@meyering.net>
21972 * modules/inttypes (inttypes.h): Revert what seems to have been
21973 an inadvertent part of today's change: use "|", not "/" in the
21974 substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
21976 2006-10-07 Bruno Haible <bruno@clisp.org>
21978 * modules/sublist: New file.
21980 2006-10-07 Bruno Haible <bruno@clisp.org>
21982 * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
21983 * modules/argz (argz.h): Likewise.
21984 * modules/arpa_inet (arpa/inet.h): Likewise.
21985 * modules/byteswap (byteswap.h): Likewise.
21986 * modules/configmake (configmake.h): Likewise.
21987 * modules/fcntl (fcntl.h): Likewise.
21988 * modules/fnmatch (fnmatch.h): Likewise.
21989 * modules/getopt (getopt.h): Likewise.
21990 * modules/glob (glob.h): Likewise.
21991 * modules/inttypes (inttypes.h): Likewise.
21992 * modules/netinet_in (netinet/in.h): Likewise.
21993 * modules/poll (poll.h): Likewise.
21994 * modules/stdbool (stdbool.h): Likewise.
21995 * modules/stdint (stdint.h): Likewise.
21996 * modules/sys_select (sys/select.h): Likewise.
21997 * modules/sys_socket (sys/socket.h): Likewise.
21998 * modules/sys_stat (sys/stat.h): Likewise.
21999 * modules/sysexits (sysexits.h): Likewise.
22000 * modules/unistd (unistd.h): Likewise.
22001 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
22002 Add a "DO NOT EDIT" comment to the generated file.
22003 (func_import): Likewise for gnulib-comp.m4.
22005 2006-10-07 Bruno Haible <bruno@clisp.org>
22007 * lib/gl_sublist.h: New file.
22008 * lib/gl_sublist.c: New file.
22010 2006-10-06 Paul Eggert <eggert@cs.ucla.edu>
22012 * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
22013 name (relative to the original working directory) and the file
22014 name component (relative to the temporary working directory). All
22016 * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
22017 * lib/mkdir-p.c (make_dir_parents): Likewise.
22018 * lib/mkdir-p.h (make_dir_parents): Likewise.
22020 2006-10-06 Eric Blake <ebb9@byu.net>
22022 Define several macros for use by the clean-temp module.
22023 * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
22024 * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
22025 * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
22027 * lib/clean-temp.h (close_stream_temp): New declaration.
22028 * lib/clean-temp.c (includes): Pull in headers according to what
22029 other modules are in use.
22030 (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
22032 2006-10-06 Bruno Haible <bruno@clisp.org>
22034 * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
22035 instead of fopen, fwriteerror.
22037 2006-10-06 Bruno Haible <bruno@clisp.org>
22039 * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
22040 cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
22042 * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
22043 cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
22044 Return an error indicator.
22045 Suggested by Eric Blake.
22047 2006-10-06 Bruno Haible <bruno@clisp.org>
22049 * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
22050 Reported by Eric Blake.
22052 2006-10-06 Bruno Haible <bruno@clisp.org>
22054 * modules/closeout (Description): Mention stderr too.
22056 2006-10-06 Bruno Haible <bruno@clisp.org>
22057 and Paul Eggert <eggert@cs.ucla.edu>
22059 * lib/closeout.c (close_stdout): Also close stderr.
22060 * lib/closeout.h: Update comment.
22062 2006-10-05 Paul Eggert <eggert@cs.ucla.edu>
22064 Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
22065 <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
22066 * lib/dirchownmod.c: Include lchown.h.
22067 * lib/lchown.c: Don't include files that lchown.h now includes.
22068 Don't declare chown, since lchown.h now does that.
22069 * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
22070 (lchown): Define to rpl_chown if lchown is declared but
22071 does not exist. Declare using a prototype if lchown is not
22072 declared. Add a copyright notice.
22073 * lib/mkstemp.h: Include <unistd.h>.
22074 * lib/openat.c: Include lchown.h.
22076 * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
22077 we now test for that separately.
22078 * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
22079 rather than O_NOFOLLOW, when testing whether it's possible to
22080 avoid a race condition reliably.
22081 * lib/savewd.c (savewd_chdir): Likewise.
22083 Remove macros that are no longer needed now that stdint.h is
22085 * lib/fsusage.c (UINTMAX_MAX): Remove.
22086 * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
22087 * lib/utimecmp.c (SIZE_MAX): Remove.
22089 * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
22091 * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
22092 of O_NOFOLLOW_IS_INEFFECTIVE. Define HAVE_WORKING_O_NOATIME if
22095 2006-10-05 Bruno Haible <bruno@clisp.org>
22097 * lib/gl_list.h (gl_sortedlist_search_from_to,
22098 gl_sortedlist_indexof_from_to): New declarations.
22099 (gl_list_implementation): New fields sortedlist_search_from_to,
22100 sortedlist_indexof_from_to.
22101 (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
22103 * lib/gl_list.c (gl_sortedlist_search_from_to,
22104 gl_sortedlist_indexof_from_to): New functions.
22105 * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
22107 (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
22108 (gl_array_sortedlist_search_from_to): New function.
22109 (gl_array_list_implementation): Update.
22110 * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
22112 (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
22113 (gl_carray_sortedlist_search_from_to): New function.
22114 (gl_carray_list_implementation): Update.
22115 * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
22116 gl_linked_sortedlist_indexof_from_to): New functions.
22117 * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
22118 * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
22119 * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
22120 gl_tree_sortedlist_indexof_from_to): New functions.
22121 * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
22122 * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
22124 * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
22125 * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
22128 2006-10-05 Bruno Haible <bruno@clisp.org>
22130 * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
22131 gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
22132 (struct gl_list_implementation): Add fields search_from_to,
22133 indexof_from_to. Remove fields search, indexof.
22134 (gl_list_search): Use the search_from_to method.
22135 (gl_list_search_from, gl_list_search_from_to): New functions.
22136 (gl_list_indexof): Use the indexof_from_to method.
22137 (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
22138 * lib/gl_list.c (gl_list_search): Use the search_from_to method.
22139 (gl_list_search_from, gl_list_search_from_to): New functions.
22140 (gl_list_indexof): Use the indexof_from_to method.
22141 (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
22142 * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
22143 gl_array_indexof. Add start_index, end_index arguments.
22144 (gl_array_search_from_to): Renamed from gl_array_search. Add
22145 start_index, end_index arguments.
22146 (gl_array_remove, gl_array_list_implementation): Update.
22147 * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
22148 gl_carray_indexof. Add start_index, end_index arguments.
22149 (gl_carray_search_from_to): Renamed from gl_carray_search. Add
22150 start_index, end_index arguments.
22151 (gl_carray_remove, gl_carray_list_implementation): Update.
22152 * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
22153 gl_linked_search. Add start_index, end_index arguments.
22154 (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
22155 start_index, end_index arguments.
22156 (gl_linked_remove): Update.
22157 * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
22158 * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
22159 * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
22161 * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
22162 gl_tree_search. Add start_index, end_index arguments.
22163 (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
22164 start_index, end_index arguments.
22165 (gl_tree_remove): Update.
22166 * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
22167 * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
22168 * lib/gl_anytreehash_list1.h (compare_position_threshold): New
22170 * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
22171 gl_tree_search. Add start_index, end_index arguments.
22172 (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
22173 start_index, end_index arguments.
22174 * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
22176 * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
22178 2006-10-05 Bruno Haible <bruno@clisp.org>
22180 * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
22182 * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
22183 fwriteerror_temp): New declarations.
22184 * lib/clean-temp.c (uintptr_t): Provide fallback definition.
22185 (descriptors): New variable.
22186 (cleanup): First, close the descriptors.
22187 (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
22188 fclose_temp, fwriteerror_temp): New functions.
22190 2006-10-04 Jim Meyering <jim@meyering.net>
22192 * lib/fts.c (fts_open): Tiny comment change.
22194 2006-10-04 Bruno Haible <bruno@clisp.org>
22196 Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
22197 * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
22199 (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
22200 (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
22201 gl_LOCK_EARLY_BODY.
22202 (gl_LOCK): Require gl_LOCK_BODY.
22204 2006-10-04 Bruno Haible <bruno@clisp.org>
22206 * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
22207 (gl_oset_search_atleast): New declaration.
22208 (struct gl_oset_implementation): Add field 'search_atleast'.
22209 (gl_oset_search_atleast): New inline function.
22210 * lib/gl_oset.c (gl_oset_search_atleast): New function.
22211 * lib/gl_array_oset.c (gl_array_search_atleast): New function.
22212 (gl_array_oset_implementation): Update.
22213 * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
22214 * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
22215 * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
22217 2006-10-04 Bruno Haible <bruno@clisp.org>
22219 * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
22221 2006-10-03 Bruno Haible <bruno@clisp.org>
22223 * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
22224 from gl_avltreehash_list_implementation.
22226 2006-10-03 Bruno Haible <bruno@clisp.org>
22228 * lib/gl_oset.c (gl_oset_add): Fix return type.
22230 2006-10-02 Paolo Bonzini <bonzini@gnu.org> (tiny change)
22232 * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
22234 2006-10-02 Eric Blake <ebb9@byu.net>
22236 * modules/strnlen (Depends-on): Add extensions.
22238 2006-10-02 Eric Blake <ebb9@byu.net>
22240 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
22241 definition in 2.60+.
22243 2006-10-02 Dmitry V. Levin <ldv@altlinux.org>
22245 * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
22248 2006-10-02 Bruno Haible <bruno@clisp.org>
22250 * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
22251 to the AUTOMAKE_OPTIONS.
22252 Reported by Jim Meyering.
22254 2006-09-29 Paul Eggert <eggert@cs.ucla.edu>
22256 Work around bug in Solaris 10 /proc file system:
22257 /proc/self/fd/NNN/.. isn't the parent directory of
22258 the directory whose file descriptor is NNN. This needs to
22259 be worked around at run time, not compile time, since a
22260 program might be built on Solaris 8, where things work, and
22262 * lib/openat-priv.h (BUILD_PROC_NAME): Remove. All callers changed
22263 to use the following interface instead:
22264 (OPENAT_BUFFER_SIZE): New macro.
22265 (openat_proc_name): New function.
22266 * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
22267 * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
22269 * lib/openat-proc.c: New file.
22270 * modules/openat (Files): Add lib/openat-proc.c.
22271 (Depends-on): Add same-inode, stdbool.
22272 * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
22274 2006-09-29 Bruno Haible <bruno@clisp.org>
22276 * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
22277 * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
22278 argument. Set stdout_closed before testing for ferror, not after.
22279 (fwriteerror, fwriteerror_no_ebadf): New functions.
22281 2006-09-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
22283 * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
22285 2006-09-28 Paolo Bonzini <bonzini@gnu.org>
22287 * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
22288 * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
22290 2006-09-28 Jim Meyering <jim@meyering.net>
22292 * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
22293 Include <unistd.h>.
22295 2006-09-28 Bruno Haible <bruno@clisp.org>
22297 * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
22298 * modules/linkedhash-list (Depends-on): Likewise.
22299 * modules/rbtreehash-list (Depends-on): Likewise.
22301 2006-09-28 Bruno Haible <bruno@clisp.org>
22303 * lib/strndup.h: Simplify the redefinition of strndup.
22304 (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
22305 * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
22307 2006-09-28 Bruno Haible <bruno@clisp.org>
22309 * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
22310 * lib/gl_linkedhash_list.c: Likewise.
22311 * lib/gl_rbtreehash_list.c: Likewise.
22313 2006-09-27 Paul Eggert <eggert@cs.ucla.edu>
22315 * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
22318 * lib/__fpending.h: Don't include <stdio_ext.h> unless
22319 HAVE_DECL___FPENDING. This avoids a bug with lsbcc, where
22320 it causes <stdio_ext.h> to cause a compile-time error.
22321 Problem reported by Nelson H. F. Beebe.
22322 * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
22323 of HAVE_DECL___PENDING.
22325 * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
22326 * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
22329 2006-09-27 Jim Meyering <jim@meyering.net>
22331 This file could end up with a definition for a function
22332 named __strndup, rather than rpl_strndup on a system with
22333 incomplete weak_alias support.
22334 * lib/strndup.c (strndup): Rename from __strndup.
22335 Remove #defines that used to map __strndup to strndup.
22336 Don't use K&R prototypes.
22337 Remove LIBC-related code, since this file is not sync'd with glibc.
22338 * lib/strndup.h: Revamp, accordingly.
22339 * m4/strndup.m4: Modernize.
22341 2006-09-26 Paul Eggert <eggert@cs.ucla.edu>
22343 * modules/savewd (Depends-on): Add 'raise'.
22344 * lib/savewd.c: Include <signal.h>, for 'raise'.
22346 2006-09-26 Jim Meyering <jim@meyering.net>
22348 * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
22349 when we detect Darwin 8.7.0's acl_get_file bug.
22350 Rearrange to perform the new (below) run-test while $LIBS
22351 contains any acl-related library. Set USE_ACL at the end.
22352 (gl_ACL_GET_FILE): New function.
22354 2006-09-26 Eric Blake <ebb9@byu.net>
22356 * lib/verror.c: Include <config.h> unconditionally.
22358 2006-09-25 Paul Eggert <eggert@cs.ucla.edu>
22360 * modules/clock-time (Maintainer): Add self.
22361 * modules/getlogin_r (Depends-on): Add extensions.
22363 2006-09-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
22365 * modules/clock-time: New module.
22366 * modules/nanosleep (Depends-on): Add clock-time.
22367 * modules/gethrxtime (Depends-on): Likewise.
22368 * modules/gettime (Depends-on): Likewise.
22369 * modules/settime (Depends-on): Likewise.
22371 * modules/fts-lgpl: Depend on openat.
22372 * modules/mkancesdirs: Depend on savewd.
22373 * modules/mkdir-p: Likewise.
22375 2006-09-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
22377 * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
22379 * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
22380 `gl_have_arbitrary_file_name_length_limit' to
22381 `gl_cv_have_arbitrary_file_name_length_limit', so that caching
22382 actually works between configure runs.
22384 2006-09-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
22385 Bruno Haible <bruno@clisp.org>
22387 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
22389 2006-09-25 Jim Meyering <jim@meyering.net>
22391 * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
22392 This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
22394 2006-09-25 Eric Blake <ebb9@byu.net>
22396 * gnulib-tool (func_import, func_create_testdir): Fix typos in
22397 exec's in 2006-09-18 patch when shuffling fds.
22399 2006-09-25 Bruno Haible <bruno@clisp.org>
22401 * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
22402 Reported by Jim Meyering.
22404 2006-09-24 Jim Meyering <jim@meyering.net>
22406 * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
22407 compare a pointer against a literal "0". That caused failures with
22408 at least HP-UX's hpcc.
22410 2006-09-22 Simon Josefsson <jas@extundo.com>
22414 * modules/gc-hmac-sha1:
22415 * modules/gc-hmac-md5:
22417 * modules/gc-arcfour: Distribute more files.
22419 2006-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
22421 * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
22422 (gl_linked_iterator_from_to): Initialize struct completely.
22423 * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
22424 (gl_tree_iterator_from_to): Likewise
22425 * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
22426 * lib/gl_array_list.c [lint] (gl_array_iterator)
22427 (gl_array_iterator_from_to): Likewise.
22428 * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
22429 * lib/gl_carray_list.c [lint] (gl_carray_iterator)
22430 (gl_carray_iterator_from_to): Likewise.
22432 * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
22433 * lib/md4.c (md4_process_block): Remove unused variable.
22434 * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
22435 parentheses for clarity.
22437 2006-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
22439 * modules/bison-i18n (Depends-on): Add gettext.
22441 2006-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
22443 * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
22444 * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
22445 * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
22446 also add missing comma that caused broken test.
22447 * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
22448 stdlib.h, for `abort'.
22449 * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
22451 * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
22452 include unistd.h if present, for `rmdir'.
22453 * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
22455 * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
22456 in the process include standard headers for prototypes.
22457 * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
22458 gets declared on GNU/Linux.
22459 * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
22460 unistd.h, for `rmdir'.
22461 * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
22463 * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
22465 * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
22467 * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
22469 2006-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
22471 * gnulib-tool (func_version): Create output all at once. This
22472 may help avoid triggering unnecessary SIGPIPEs, and at any
22473 rate it doesn't hurt.
22475 2006-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
22476 Bruno Haible <bruno@clisp.org>
22478 * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
22479 * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
22480 * m4/signed.m4 (bh_C_SIGNED): Likewise.
22482 * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
22483 (gl_FUNC_VASPRINTF): Invoke it.
22485 2006-09-22 Bruno Haible <bruno@clisp.org>
22487 * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
22488 getloadavg.c as first argument.
22490 2006-09-22 Bruno Haible <bruno@clisp.org>
22492 * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
22493 at the beginning of the gl_INIT macro.
22494 * modules/getloadavg (configure.ac): Pass $gl_source_base to
22497 2006-09-22 Bruno Haible <bruno@clisp.org>
22499 * gnulib-tool (func_create_megatestdir): Don't include the config-h
22501 Suggested by Ralf Wildenhues.
22503 2006-09-20 Paul Eggert <eggert@cs.ucla.edu>
22505 Import this patch from libc:
22507 2006-09-06 Jakub Jelinek <jakub@redhat.com>
22509 * lib/regex_internal.c (re_string_reconstruct): Handle
22510 offset < pstr->valid_raw_len && pstr->offsets_needed case.
22511 Ensure no bytes read before raw_mbs array. Pass a saved copy of
22512 pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
22513 re_string_context_at.
22515 * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
22517 (gl_PREREQ_REGEX): Don't check for locale.h any more, since
22518 gl_REGEX now does it for us.
22519 (gl_REGEX): Add test taken from
22520 http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
22522 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
22523 Check that large offsets work. Modernize Autoconf usages.
22524 Prefer "yes" to mean a good thing rather than a bad.
22525 Don't put "#define mkstemp" in config.h, as this might interfere
22526 with standard system headers that "#define mkstemp mkstemp64".
22528 * modules/mkstemp (Depends-on): Add extensions, so that
22529 mkstemp is visible on some platforms.
22530 (Makefile.am): Add mkstemp.h to EXTRA_DIST.
22531 (Include): Change to "mkstemp.h" from <stdlib.h>.
22532 (Files): Add mkstemp.h.
22534 * lib/mkstemp.h: New file, since some standard headers
22536 * lib/mkstemp.c: Revamp to put the !_LIBC code together.
22537 Include "mkstemp.h".
22538 Make the _LIBC code resemble glibc original more,
22539 e.g., use K&R style.
22540 * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
22541 (mkstemp): Remove, since mkstemp.h does this for us.
22542 * lib/stdlib--.h: Include mkstemp.h.
22544 Import this patch from libc:
22546 2006-04-07 Ulrich Drepper <drepper@redhat.com>
22548 * lib/tempname.c (__gen_tempname): Change attempts_min
22549 into a macro. Use preprocessor to decide how to initialize
22550 attempts [Coverity CID 67].
22552 2006-09-20 Bruno Haible <bruno@clisp.org>
22554 * lib/mkdtemp.c: Import from libc.
22555 2006-04-07 Ulrich Drepper <drepper@redhat.com>
22556 * sysdeps/posix/tempname.c (__gen_tempname): Change
22557 attempts_min into a macro. Use preprocessor to decide how to
22558 initialize attempts [Coverity CID 67].
22559 2001-11-27 Paul Eggert <eggert@twinsun.com>
22560 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
22561 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
22563 2006-09-19 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
22565 * gnulib-tool (func_exit): New function, to allow to pass the
22566 exit status portably through the trap. Use everywhere.
22567 (--help, --version): Signal a write error.
22568 (trap): catch SIGPIPE, for write errors.
22569 Exit at the end of the trap, with the correct exit status.
22571 2006-09-19 Karl Berry <karl@gnu.org>
22573 * doc/gnulib.texi: note about the license texinfo files.
22575 2006-09-19 Eric Blake <ebb9@byu.net>
22577 * gnulib-tool: Avoid space-tab.
22579 2006-09-18 Paul Eggert <eggert@cs.ucla.edu>
22581 * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
22582 that prevented coreutils 6.1 from building. Problem reported
22583 by Petter Reinholdtsen.
22585 2006-09-18 Paul Eggert <eggert@cs.ucla.edu>
22587 * gnulib-tool (avoidlist): Fix typo that broke options like
22588 --avoid=lock that are used by coreutils bootstrap.
22590 2006-09-18 Mark D. Baushke <mdb@gnu.org>
22592 * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
22593 more systematically.
22595 2006-09-18 Jim Meyering <jim@meyering.net>
22597 * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
22599 2006-09-18 Bruno Haible <bruno@clisp.org>
22601 * modules/inttypes (Files): Remove m4/inttypes-h.m4.
22603 2006-09-18 Bruno Haible <bruno@clisp.org>
22605 * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
22606 * m4/inttypes-pri.m4: Require autoconf >= 2.52.
22607 (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
22608 ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
22609 * m4/gettext.m4: Require autoconf >= 2.52.
22610 (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
22611 * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
22612 of gl_cv_header_inttypes_h.
22614 2006-09-18 Bruno Haible <bruno@clisp.org>
22616 * lib/javaversion.c: Include configmake.h.
22618 2006-09-18 Bruno Haible <bruno@clisp.org>
22620 * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
22621 avoid that the while loops be executed in a subshell.
22623 2006-09-18 Bruno Haible <bruno@clisp.org>
22625 * MODULES.html.sh (func_module): Break long lines.
22626 Suggested by Bruce Korb <bkorb@gnu.org>.
22628 2006-09-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
22630 Speed up by a factor of 1.12.
22631 * gnulib-tool (nl): New variable.
22632 (func_import): Rewrite include directive extraction to only read each
22635 2006-09-17 Bruno Haible <bruno@clisp.org>
22637 * modules/javaversion (Makefile.am): Remove DEFS setting.
22638 (Depends-on): Add configmake, for PKGDATADIR definition.
22640 2006-09-17 Bruno Haible <bruno@clisp.org>
22642 * gnulib-tool (func_create_testdir): Rewrite all files at once.
22644 2006-09-17 Bruno Haible <bruno@clisp.org>
22646 * gnulib-tool (func_append): New function, stolen from libtool.m4.
22647 (func_modules_transitive_closure, func_modules_add_dummy,
22648 func_modules_to_filelist, func_import, func_create_testdir,
22649 func_create_megatestdir, ...): Use it wherever possible.
22650 Suggested by Ralf Wildenhues.
22652 2006-09-16 Karl Berry <karl@gnu.org>
22654 * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
22655 to avoid sectioning errors.
22656 * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
22657 [ifinfo]: blank line after @center-ed titles.
22658 * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
22659 Spell FSF address consistently with others.
22660 (These changes approved by rms.)
22662 2006-09-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
22664 Speed up by a factor of 1.61.
22665 * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
22666 already checked module names again.
22668 2006-09-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
22670 Speed up by a factor of 1.13.
22671 * gnulib-tool (func_import): Rewrite all old_files at once; likewise
22672 for new_files, and the input to func_add_or_update.
22674 2006-09-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
22676 * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
22677 func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
22679 2006-09-15 Paul Eggert <eggert@cs.ucla.edu>
22681 * modules/mkancesdirs (Depends-on): Add fcntl.
22682 * modules/savewd: New file.
22683 * MODULES.html.sh (File system functions): Add savewd.
22685 * modules/configmake (Makefile.am): Add support for the
22686 Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
22688 2006-09-15 Paul Eggert <eggert@cs.ucla.edu>
22690 * m4/savewd.m4: New file.
22692 2006-09-15 Paul Eggert <eggert@cs.ucla.edu>
22694 * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
22695 (dirchownmod): New arg FD. All callers changed.
22696 Use FD rather than opening the directory ourself, as opening is
22697 now the caller's responsibility.
22698 * lib/dirchownmod.h: Likewise.
22699 * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
22700 hosts that require <sys/types.h> before <sys/stat.h>. Include
22701 fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
22702 (test_dir): Remove.
22703 (mkancesdirs): Return length of prefix of FILE that has already
22704 been made, or -2 if there is a child doing the work. Redo
22705 algorithm so that it is O(N) rather than O(N**2). Optimize away
22706 ".", and treat ".." specially since it might stray back into
22707 already-created areas. Use a subprocess if necessary. New arg
22708 WD; all users changed. MAKE_DIR function should now return 1
22709 if it creates a directory that is not readable. Return -2 if
22710 a child process is spun off.
22711 * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
22712 Adjust signature to match code.
22713 * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
22714 (make_dir_parents): Use a subprocess if necessary. New arg WD;
22716 * lib/savewd.c, lib/savewd.h: New files.
22718 2006-09-15 Jim Meyering <jim@meyering.net>
22720 * modules/rename-dest-slash: New module.
22721 * MODULES.html.sh (posix_compat): Add it here.
22723 * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
22725 2006-09-15 Jim Meyering <jim@meyering.net>
22727 * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
22730 * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
22732 2006-09-15 Jim Meyering <jim@meyering.net>
22734 * lib/rename-dest-slash.c (has_trailing_slash): Use
22735 FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
22736 (rpl_rename_dest_slash): Perform the cheaper trailing slash
22737 test before testing whether SRC is a directory.
22738 Suggestions from Bruno Haible.
22740 Avoid a warning about an unused variable.
22741 * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
22742 into the #ifdef block where it's used.
22744 * lib/rename-dest-slash.c: New file.
22746 2006-09-14 Bruno Haible <bruno@clisp.org>
22748 * lib/allocsa.c: Include <config.h> unconditionally.
22749 * lib/asnprintf.c: Likewise.
22750 * lib/asprintf.c: Likewise.
22751 * lib/c-strcasecmp.c: Likewise.
22752 * lib/c-strcasestr.c: Likewise.
22753 * lib/c-strncasecmp.c: Likewise.
22754 * lib/c-strstr.c: Likewise.
22755 * lib/classpath.c: Likewise.
22756 * lib/clean-temp.c: Likewise.
22757 * lib/concatpath.c: Likewise.
22758 * lib/copy-file.c: Likewise.
22759 * lib/csharpcomp.c: Likewise.
22760 * lib/csharpexec.c: Likewise.
22761 * lib/execute.c: Likewise.
22762 * lib/fatal-signal.c: Likewise.
22763 * lib/findprog.c: Likewise.
22764 * lib/fwriteerror.c: Likewise.
22765 * lib/gl_array_list.c: Likewise.
22766 * lib/gl_array_oset.c: Likewise.
22767 * lib/gl_avltree_list.c: Likewise.
22768 * lib/gl_avltree_oset.c: Likewise.
22769 * lib/gl_avltreehash_list.c: Likewise.
22770 * lib/gl_carray_list.c: Likewise.
22771 * lib/gl_linked_list.c: Likewise.
22772 * lib/gl_linkedhash_list.c: Likewise.
22773 * lib/gl_list.c: Likewise.
22774 * lib/gl_oset.c: Likewise.
22775 * lib/gl_rbtree_list.c: Likewise.
22776 * lib/gl_rbtree_oset.c: Likewise.
22777 * lib/gl_rbtreehash_list.c: Likewise.
22778 * lib/imaxabs.c: Likewise.
22779 * lib/imaxdiv.c: Likewise.
22780 * lib/javacomp.c: Likewise.
22781 * lib/javaexec.c: Likewise.
22782 * lib/javaversion.c: Likewise.
22783 * lib/linebreak.c: Likewise.
22784 * lib/localcharset.c: Likewise.
22785 * lib/lock.c: Likewise.
22786 * lib/mbchar.c: Likewise.
22787 * lib/mbswidth.c: Likewise.
22788 * lib/mkdtemp.c: Likewise.
22789 * lib/pipe.c: Likewise.
22790 * lib/printf-args.c: Likewise.
22791 * lib/printf-parse.c: Likewise.
22792 * lib/progname.c: Likewise.
22793 * lib/progreloc.c: Likewise.
22794 * lib/readlink.c: Likewise.
22795 * lib/sh-quote.c: Likewise.
22796 * lib/stpcpy.c: Likewise.
22797 * lib/stpncpy.c: Likewise.
22798 * lib/strcasecmp.c: Likewise.
22799 * lib/strcasestr.c: Likewise.
22800 * lib/strcspn.c: Likewise.
22801 * lib/striconv.c: Likewise.
22802 * lib/strncasecmp.c: Likewise.
22803 * lib/strnlen1.c: Likewise.
22804 * lib/strstr.c: Likewise.
22805 * lib/strtok_r.c: Likewise.
22806 * lib/tls.c: Likewise.
22807 * lib/tmpdir.c: Likewise.
22808 * lib/unicodeio.c: Likewise.
22809 * lib/unsetenv.c: Likewise.
22810 * lib/vasnprintf.c: Likewise.
22811 * lib/vasprintf.c: Likewise.
22812 * lib/wait-process.c: Likewise.
22813 * lib/xallocsa.c: Likewise.
22814 * lib/xsetenv.c: Likewise.
22815 * lib/xstriconv.c: Likewise.
22817 2006-09-13 Simon Josefsson <jas@extundo.com>
22819 * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
22820 that internally, suggested by Ralf Wildenhues
22821 <Ralf.Wildenhues@gmx.de>.
22823 2006-09-13 Simon Josefsson <jas@extundo.com>
22825 * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
22827 Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
22829 2006-09-13 Paul Eggert <eggert@cs.ucla.edu>
22831 * lib/_fpending.c: Include <config.h> unconditionally, since we no
22832 longer worry about uses that don't define HAVE_CONFIG_H.
22833 * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
22834 * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
22835 * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
22836 * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
22837 * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
22838 * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
22839 * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
22840 * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
22841 * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
22842 * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
22843 * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
22844 * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
22845 * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
22846 * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
22847 * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
22848 * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
22849 * lib/getusershell.c, lib/glob.c, lib/group-member.c:
22850 * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
22851 * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
22852 * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
22853 * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
22854 * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
22855 * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
22856 * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
22857 * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
22858 * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
22859 * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
22860 * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
22861 * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
22862 * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
22863 * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
22864 * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
22865 * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
22866 * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
22867 * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
22868 * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
22869 * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
22870 * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
22871 * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
22872 * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
22873 * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
22876 2006-09-13 Eric Blake <ebb9@byu.net>
22878 * lib/getopt.c: Fix typo in last commit.
22880 2006-09-12 Sergey Poznyakoff <gray@gnu.org.ua>
22882 * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
22885 2006-09-12 Jim Meyering <jim@meyering.net>
22887 * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
22888 compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
22889 Reported by Nelson H. F. Beebe.
22891 2006-09-10 Sergey Poznyakoff <gray@gnu.org.ua>
22893 * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
22894 program_invocation_name and program_invocation_short_name are
22896 * lib/argp-namefrob.h: Move declarations of program_invocation_name
22897 and program_invocation_short_name to argp.h, so they are visible
22899 * lib/argp.h: Likewise
22901 2006-09-10 Bruno Haible <bruno@clisp.org>
22903 * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
22904 m4/inttypes_h.m4, m4/uintmax_t.m4.
22906 2006-09-10 Bruno Haible <bruno@clisp.org>
22908 * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
22909 gl_AC_TYPE_UINTMAX_T.
22911 2006-09-10 Bruno Haible <bruno@clisp.org>
22913 * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
22915 2006-09-09 Sergey Poznyakoff <gray@gnu.org.ua>
22917 * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
22918 convention. Text proposed by Bruno Haible.
22919 (struct argp_option): Document the use of N_() wrappers.
22921 * lib/argp-help.c (argp_doc): Split the untranslated doc string on
22922 '\v', and translate the two parts separately, instead of feeding
22923 the whole string to gettext. This allows to exclude
22924 '\v' from the strings visible to the translator by writing doc
22925 strings as N_("..") "\v" N_("..").
22927 2006-09-09 Paul Eggert <eggert@cs.ucla.edu>
22929 * config/srclist.txt: Undo latest change; the bug was fixed.
22931 2006-09-09 Bruno Haible <bruno@clisp.org>
22933 * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
22934 assignments if building a library without libtool.
22935 (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
22936 in func_emit_lib_Makefile_am.
22937 (func_import): When building a static library libfoo.a, arrange to
22938 define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
22939 (func_create_testdir): Likewise.
22940 * modules/gc (configure.ac, Makefile.am): If building statically,
22941 augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
22942 * modules/iconvme (configure.ac, Makefile.am): Likewise.
22943 * modules/striconv (configure.ac, Makefile.am): Likewise.
22944 Based on a suggestion by Ralf Wildenhues.
22946 2006-09-08 Paul Eggert <eggert@cs.ucla.edu>
22948 * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
22949 Check for unistd.h too, since Autoconf doesn't assume POSIX.
22952 2006-09-08 Paul Eggert <eggert@cs.ucla.edu>
22953 Add year_2050_test to catch glibc bug 2821
22954 <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
22956 2006-08-15 Paul Eggert <eggert@cs.ucla.edu>
22957 Prefer #ifdef to #if.
22959 2006-04-02 Paul Eggert <eggert@cs.ucla.edu>
22960 Return from 'main' instead of calling 'exit'.
22962 2006-09-08 Paul Eggert <eggert@cs.ucla.edu>
22964 * lib/mktime.c (guess_time_tm): Fix bug where mktime
22965 returned the maximum time_t value rather than (time_t) -1.
22966 Problem originally reported by William Bardwell
22967 <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
22969 * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
22971 * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
22974 2006-09-08 Paul Eggert <eggert@cs.ucla.edu>
22976 * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
22979 2006-09-08 Jim Meyering <jim@meyering.net>
22981 Don't make generated files read-only. That would bother too many
22982 people. However, do retain the ability to work when targets are
22983 read-only: remove the destination and temporary files before writing
22984 them (when generated via sed or echo), or by using the -f option for
22985 both cp and mv commands. Suggestion to use -f from Paul Eggert.
22986 * modules/alloca-opt, modules/argz, modules/arpa_inet:
22987 * modules/byteswap, modules/configmake, modules/fcntl:
22988 * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
22989 * modules/localcharset, modules/netinet_in, modules/poll:
22990 * modules/stdbool, modules/stdint, modules/sys_select:
22991 * modules/sys_socket, modules/sys_stat, modules/sysexits:
22993 2006-09-08 Jim Meyering <jim@meyering.net>
22995 Avoid new build failure on FreeBSD 6.0.
22996 * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
22997 <sys/param.h> when testing whether getmntinfo uses statvfs. Patch by
22998 Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
23000 2006-09-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
23002 * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
23004 2006-09-07 Jim Meyering <jim@meyering.net>
23006 Fix global typo in last change: use chmod u-w, not chmod u-x.
23007 Spotted by Paul Eggert and Bruce Korb.
23008 * modules/alloca-opt, modules/argz, modules/arpa_inet:
23009 * modules/byteswap, modules/configmake, modules/fcntl:
23010 * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
23011 * modules/localcharset, modules/netinet_in, modules/poll:
23012 * modules/stdbool, modules/stdint, modules/sys_select:
23013 * modules/sys_socket, modules/sys_stat, modules/sysexits:
23015 2006-09-06 Jim Meyering <jim@meyering.net>
23017 Make generated files be read-only.
23018 * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
23019 Ensure that each generated file is now read-only.
23020 * modules/argz: Likewise.
23021 * modules/arpa_inet: Likewise.
23022 * modules/byteswap: Likewise.
23023 * modules/configmake: Likewise.
23024 * modules/fcntl: Likewise.
23025 * modules/fnmatch: Likewise.
23026 * modules/getopt: Likewise.
23027 * modules/glob: Likewise.
23028 * modules/inttypes: Likewise.
23029 * modules/netinet_in: Likewise.
23030 * modules/poll: Likewise.
23031 * modules/stdbool: Likewise.
23032 * modules/stdint: Likewise.
23033 * modules/sys_select: Likewise.
23034 * modules/sys_socket: Likewise.
23035 * modules/sys_stat: Likewise.
23036 * modules/sysexits: Likewise.
23037 * modules/localcharset: Same as above, but continue using temporary
23038 file named "t-$@" (why different?) rather than the "$@-t" used
23041 * modules/sysexits (Makefile.am): Replace literal occurrences
23042 of "sysexit.h" more readable, and more consistent, "$@".
23044 2006-09-06 Bruno Haible <bruno@clisp.org>
23046 * modules/striconv: New file.
23047 * modules/xstriconv: New file.
23048 * MODULES.html.sh (Internationalization functions): Add striconv,
23051 2006-09-06 Bruno Haible <bruno@clisp.org>
23053 * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
23054 * modules/iconvme (Makefile.am): Likewise. Also handle the case of
23055 not using libtool correctly.
23057 2006-09-06 Bruno Haible <bruno@clisp.org>
23059 * lib/striconv.h: New file.
23060 * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
23062 * lib/xstriconv.h: New file.
23063 * lib/xstriconv.c: New file.
23065 2006-09-06 Bruno Haible <bruno@clisp.org>
23067 * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
23070 2006-09-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
23072 * lib/argz_.h: Sync from Libtool.
23074 2006-09-04 George Bosilca <bosilca@cs.utk.edu>
23075 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
23077 * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
23079 2006-09-05 Davide Angelocola <davide.angelocola@tiscali.it>
23081 * modules/trim: New file.
23083 2006-09-05 Davide Angelocola <davide.angelocola@tiscali.it>
23085 * lib/trim.h: New file.
23086 * lib/trim.c: New file.
23088 2006-09-05 Bruno Haible <bruno@clisp.org>
23090 * MODULES.html.sh (String handling): Add trim.
23092 2006-09-04 Karl Berry <karl@gnu.org>
23094 * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
23095 until next release.
23097 2006-09-03 Bruno Haible <bruno@clisp.org>
23099 * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
23102 2006-09-01 Paul Eggert <eggert@cs.ucla.edu>
23104 * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
23105 not gl_GETLOADAVG. Omit unneeded semicolons.
23106 Problems reported by Ralf Wildenhues in
23107 <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
23108 (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define. Put
23109 at the end, which is the usual gnulib style.
23111 * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
23112 of doing all the work ourselves.
23113 * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
23114 sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
23116 2006-09-01 Paul Eggert <eggert@cs.ucla.edu>
23118 * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
23119 Problem reported by Ralf Wildenhues in
23120 <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
23122 * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
23123 HAVE_STRUCT_STATFS_F_FSTYPENAME.
23125 2006-09-01 Paul Eggert <eggert@cs.ucla.edu>
23127 * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
23128 yesterday's patch by changing test -n to test -z.
23130 2006-08-31 Paul Eggert <eggert@cs.ucla.edu>
23132 * modules/getloadavg (Files): Add m4/getloadavg.m4.
23133 (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
23134 the former is now obsolescent.
23136 * modules/chdir-long (Depends-on): Add fcntl.
23138 2006-08-31 Paul Eggert <eggert@cs.ucla.edu>
23140 * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
23141 obsolescent, and programs should use gnulib instead.
23142 * m4/getloadavg.m4: New file, with contents taken from Autoconf
23143 but with prefixes changed.
23145 2006-08-31 Paul Eggert <eggert@cs.ucla.edu>
23147 * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
23148 or stdbool.h, because they might not exist while configuring.
23150 * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
23151 Don't include unistd.h or limits.h; not needed, since chdir-long.h
23153 (O_DIRECTORY): Remove.
23155 2006-08-31 Eric Blake <ebb9@byu.net>
23157 * gnulib-tool: Don't let emacs change spaces to TAB.
23159 2006-08-31 Bruno Haible <bruno@clisp.org>
23161 * gnulib-tool: When calling func_import more than once, do it in a
23163 Reported by Eric Blake <ebb9@byu.net>.
23165 2006-08-31 Bruno Haible <bruno@clisp.org>
23167 * gnulib-tool (nl): Remove variable.
23168 (sed_transform_lib_file): Use more robust test for config-h module.
23169 (func_import): Fix typo in 2006-08-25 patch.
23171 2006-08-31 Bruno Haible <bruno@clisp.org>
23173 * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
23174 specified, augment Makefile.am variables instead of assigning them.
23176 2006-08-30 Paul Eggert <eggert@cs.ucla.edu>
23178 Work around a bug in both the Linux and SunOS 64-bit kernels:
23179 nanosleep mishandles sleeps for longer than 2**31 seconds.
23180 Problem reported by Frank v Waveren in
23181 <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
23182 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
23183 Check for nanosleep bug.
23184 (LIB_NANOSLEEP): Append clock_gettime library if needed.
23186 2006-08-30 Paul Eggert <eggert@cs.ucla.edu>
23188 Work around a bug in both the Linux and SunOS 64-bit kernels:
23189 nanosleep mishandles sleeps for longer than 2**31 seconds.
23190 Problem reported by Frank v Waveren in
23191 <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
23192 * lib/nanosleep.c (BILLION): New constant.
23193 (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
23194 (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
23197 2006-08-30 Paul Eggert <eggert@cs.ucla.edu>
23199 * modules/nanosleep (Depends-on): Add gettime.
23201 2006-08-30 Paul Eggert <eggert@cs.ucla.edu>
23202 and Simon Josefsson <jas@extundo.com>
23203 and Oskar Liljeblad <oskar@osk.mine.nu>
23205 * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
23206 * gnulib-tool (func_import): New license type 'unmodifiable license
23208 * modules/fdl: Use it. Longer description.
23209 * module/gpl, module/lgpl: New files.
23211 2006-08-30 Jim Meyering <jim@meyering.net>
23213 * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
23214 shadowing the parameter.
23216 2006-08-29 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
23220 2006-08-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
23222 * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
23223 sharing with gnulib. Report by Eric Blake.
23225 2006-08-29 Paul Eggert <eggert@cs.ucla.edu>
23227 * modules/isapipe: New file.
23228 * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
23230 2006-08-29 Paul Eggert <eggert@cs.ucla.edu>
23232 * modules/configmake (Makefile.am): Add a comment, and omit
23233 the CONFIGMAKE_ prefix from generated macro names. Suggested
23236 2006-08-29 Paul Eggert <eggert@cs.ucla.edu>
23238 * m4/isapipe.m4: New file.
23240 2006-08-29 Paul Eggert <eggert@cs.ucla.edu>
23242 * lib/isapipe.c, lib/isapipe.h: New files.
23244 2006-08-29 Jim Meyering <jim@meyering.net>
23246 * modules/configmake (Makefile.am): Make configmake.h depend on
23247 Makefile. Otherwise, a stale configmake.h could hang around.
23249 2006-08-29 Eric Blake <ebb9@byu.net>
23251 * lib/error.c (error_at_line, print_errno_message): Match libc, after
23252 resolution of upstream bug 3044.
23254 2006-08-29 Bruno Haible <bruno@clisp.org>
23256 * modules/localcharset (Depends-on): Add configmake.
23257 (Makefile.am): Remove setting of LIBDIR through DEFS.
23259 2006-08-29 Bruno Haible <bruno@clisp.org>
23261 * lib/localcharset.c: Include configmake.h in order to get LIBDIR
23264 2006-08-28 Paul Eggert <eggert@cs.ucla.edu>
23266 * modules/fcntl: New file.
23267 * modules/chdir-safer (Depends-on): Add fcntl.
23268 * modules/fts: Likewise.
23269 * modules/mkdir-p: Likewise.
23271 * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
23272 This undoes the most recent change, since we're now addressing the
23273 problem in a different way.
23275 * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
23276 into output, since the output might be called Makefile.am even
23277 if $makefile_name is something different.
23278 (func_import): Use $makefile_am rather than
23279 ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
23282 * modules/inttypes (Files): Add m4/inttypes-h.m4.
23284 2006-08-28 Paul Eggert <eggert@cs.ucla.edu>
23286 * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
23287 * m4/stdint.m4 (gl_STDINT_H): ... from here. This undoes the most
23288 recent change to stdint.m4, since we're now addressing the problem in a
23291 2006-08-28 Paul Eggert <eggert@cs.ucla.edu>
23293 * m4/fcntl_h.m4: New file.
23295 2006-08-28 Paul Eggert <eggert@cs.ucla.edu>
23297 * lib/fcntl_.h: New file.
23298 * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
23300 * lib/dirchownmod.c: Likewise.
23301 * lib/fts.c: Likewise.
23303 * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
23304 Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
23305 * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
23306 just before including <inttypes.h>, to avoid circular inclusion.
23308 2006-08-28 Jim Meyering <jim@meyering.net>
23310 * doc/visibility.texi: Actually read and correct the grammar of the
23311 sentence affected by yesterday's change.
23313 2006-08-28 Eric Blake <ebb9@byu.net>
23315 * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
23318 2006-08-28 Eric Blake <ebb9@byu.net>
23320 * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
23322 2006-08-28 Eric Blake <ebb9@byu.net>
23324 * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
23326 2006-08-28 Bruno Haible <bruno@clisp.org>
23328 * modules/c-strstr: New file, from GNU gettext.
23329 * MODULES.html.sh (String handling): Add c-strstr.
23331 2006-08-28 Bruno Haible <bruno@clisp.org>
23333 * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
23335 Reported by Eric Blake.
23337 2006-08-28 Bruno Haible <bruno@clisp.org>
23339 * lib/vasnprintf.c (EOVERFLOW): Remove definition.
23340 (VASNPRINTF): Return a string of length > INT_MAX without failing.
23341 * lib/vasprintf.c: Include errno.h, limits.h.
23342 (EOVERFLOW): New fallback definition.
23343 (vasprintf): Test here whether the string length is > INT_MAX.
23344 * lib/vsnprintf.c: Include errno.h, limits.h.
23345 (EOVERFLOW): New fallback definition.
23346 (vsnprintf): Fix bug when generated string was too long for the buffer.
23347 Test here whether the string length is > INT_MAX.
23349 2006-08-28 Bruno Haible <bruno@clisp.org>
23351 * lib/inttypes_.h (SCNX*): Remove definitions.
23352 Reported by Eric Blake.
23354 2006-08-28 Bruno Haible <bruno@clisp.org>
23356 * lib/c-strstr.h: New file, from GNU gettext.
23357 * lib/c-strstr.c: New file, from GNU gettext.
23359 2006-08-28 Bruno Haible <bruno@clisp.org>
23361 * gnulib-tool: Reorder some statements.
23363 2006-08-28 Bruno Haible <bruno@clisp.org>
23365 * gnulib-tool: New option --makefile-name.
23366 (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
23368 (func_import): Write $makefile_name to the cache file, and read it from
23369 there unless explicitly specified. Use $makefile_name as file name
23370 instead of Makefile.am. Adjust the recommendations accordingly.
23372 2006-08-28 Bruno Haible <bruno@clisp.org>
23374 * gnulib-tool (func_verify_module): Check against misapplying patch.
23376 2006-08-28 Bruno Haible <bruno@clisp.org>
23378 * gnulib-tool (func_relativize, func_relconcat): New functions.
23379 Give an error if --local-dir is given with --update.
23380 Remove trailing slashes from $local_gnulib_dir.
23381 (func_import): Store the relativized $local_gnulib_dir in
23382 gnulib-cache.m4, and read it from there if not specified explicitly.
23384 2006-08-28 Bruno Haible <bruno@clisp.org>
23386 * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
23387 is the current directory. Respect also $local_gnulib_dir.
23389 2006-08-28 Bruno Haible <bruno@clisp.org>
23390 Simon Josefsson <jas@extundo.com>
23393 * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
23395 2006-08-27 Jim Meyering <jim@meyering.net>
23397 * doc/visibility.texi: Remove duplicate word: "pointer".
23399 2006-08-26 Bruno Haible <bruno@clisp.org>
23401 * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
23402 Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
23403 (Makefile.am): Create inttypes.h from inttypes_.h.
23404 * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
23406 * modules/imaxabs: New file.
23408 * modules/imaxdiv: New file.
23410 2006-08-26 Bruno Haible <bruno@clisp.org>
23412 * m4/inttypes.m4: New file.
23413 * m4/_inttypes_h.m4: Remove file.
23414 * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
23416 * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
23418 * m4/imaxabs.m4: New file.
23420 * m4/imaxdiv.m4: New file.
23422 2006-08-26 Bruno Haible <bruno@clisp.org>
23424 * lib/inttypes_.h: New file.
23425 * lib/inttypes.h: Remove file.
23426 * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
23428 * lib/imaxabs.c: New file.
23430 * lib/imaxdiv.c: New file.
23432 2006-08-25 Paul Eggert <eggert@cs.ucla.edu>
23434 New config-h module, so that "make" output needn't be cluttered
23435 by -DHAVE_CONFIG_H.
23436 * MODULES.html.sh (Support for building libraries and executables):
23438 * modules/config-h: New file.
23439 * gnulib-tool (nl, sed_transform_lib_file): New vars.
23440 (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
23441 the config-h module is used.
23443 New configmake module, so that "make" output needn't be cluttered
23444 by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
23445 * MODULES.html.sh (Support for building libraries and executables):
23447 * modules/configmake: New file.
23449 2006-08-25 Paul Eggert <eggert@cs.ucla.edu>
23451 * m4/config-h.m4: New file.
23453 2006-08-24 Paul Eggert <eggert@cs.ucla.edu>
23455 * config/srclist.txt: Add elisp-comp.
23457 2006-08-24 Paul Eggert <eggert@cs.ucla.edu>
23459 * MODULES.html.sh (Support for building libraries and executables):
23461 * build-aux/elisp-comp: New file.
23462 * modules/elisp-comp: New file.
23464 2006-08-24 Bruno Haible <bruno@clisp.org>
23466 * gnulib-tool (func_create_testdir): Use non-default values of
23467 sourcebase and m4base.
23469 2006-08-24 Bruno Haible <bruno@clisp.org>
23471 * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
23474 2006-08-23 Paul Eggert <eggert@cs.ucla.edu>
23476 * modules/openat (Depends-on): Add lchown.
23478 2006-08-23 Bruno Haible <bruno@clisp.org>
23480 * gnulib-tool (func_import, func_create_testdir): Emit an invocation
23481 of gl_LOCK_EARLY instead of gl_LOCK.
23483 2006-08-23 Bruno Haible <bruno@clisp.org>
23485 * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
23487 Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
23489 2006-08-23 Bruno Haible <bruno@clisp.org>
23491 * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
23494 * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
23495 (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
23496 (gl_LOCK): New macro.
23498 2006-08-22 Simon Josefsson <jas@extundo.com>
23500 * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
23503 2006-08-22 Simon Josefsson <jas@extundo.com>
23505 * MODULES.html.sh: Add "Support for maintaining and release
23508 * build-aux/gnupload: New file, from coreutils.
23510 2006-08-22 Paul Eggert <eggert@cs.ucla.edu>
23512 Avoid the need for AC_LIBSOURCES in m4 macros.
23513 * modules/arcfour (EXTRA_DIST): Add arcfour.h.
23514 * modules/arctwo (EXTRA_DIST): Add arctwo.h.
23515 * modules/check-version (EXTRA_DIST): Add check-version.h.
23516 * modules/crc (EXTRA_DIST): Add crc.h.
23517 * modules/des (EXTRA_DIST): Add des.h.
23518 * modules/gc (EXTRA_DIST): Add gc.h.
23519 * modules/getdelim (EXTRA_DIST): Add getdelim.h.
23520 * modules/getline (EXTRA_DIST): Add getline.h.
23521 * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
23522 * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
23523 * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
23524 * modules/md2 (EXTRA_DIST): Add md2.h.
23525 * modules/md4 (EXTRA_DIST): Add md4.h.
23526 * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
23527 * modules/read-file (EXTRA_DIST): Add read-file.h.
23528 * modules/readline (EXTRA_DIST): Add readline.h.
23529 * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
23530 rijndael-api-fst.h.
23532 2006-08-22 Paul Eggert <eggert@cs.ucla.edu>
23534 * m4/rijndael.m4 (gl_ARCFOUR):
23535 * m4/arctwo.m4 (gl_ARCTWO):
23536 * m4/check-version.m4 (gl_CHECK_VERSION):
23537 * m4/crc.m4 (gl_CRC):
23538 * m4/des.m4 (gl_DES):
23539 * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
23540 * m4/gc.m4 (gl_GC):
23541 * m4/getdelim.m4 (gl_FUNC_GETDELIM):
23542 * m4/getline.m4 (gl_FUNC_GETLINE):
23543 * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
23544 * m4/hmac-md5.m4 (gl_HMAC_MD5):
23545 * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
23546 * m4/md2.m4 (gl_MD2):
23547 * m4/md4.m4 (gl_MD4):
23548 * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
23549 * m4/read-file.m4 (gl_FUNC_READ_FILE):
23550 * m4/readline.m4 (gl_FUNC_READLINE):
23551 * m4/rijndael.m4 (gl_RIJNDAEL):
23552 Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
23553 to get the necessary .h files and whatnot.
23555 2006-08-22 Paul Eggert <eggert@cs.ucla.edu>
23557 * config/srclist.txt: Remove gnupload, since coreutils now syncs from
23558 gnulib rather than the other way around.
23559 * config/srclistvars.sh (COREUTILS): Remove.
23561 2006-08-22 Jim Meyering <jim@meyering.net>
23563 * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
23565 * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
23567 2006-08-22 Eric Blake <ebb9@byu.net>
23569 * modules/regexprops-generic: New file.
23570 * MODULES.html.sh (Support for building documentation): List it.
23572 2006-08-22 Eric Blake <ebb9@byu.net>
23574 * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
23575 * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
23576 * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
23577 * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
23579 2006-08-22 Bruno Haible <bruno@clisp.org>
23581 * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
23582 and lib_LTLIBRARIES like the other lib_* variables.
23584 2006-08-22 Bruno Haible <bruno@clisp.org>
23586 * build-aux/x-to-1.in: New file, from GNU gettext.
23588 2006-08-22 Bruno Haible <bruno@clisp.org>
23590 * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
23593 2006-08-22 Bruno Haible <bruno@clisp.org>
23595 * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
23598 2006-08-21 Paul Eggert <eggert@cs.ucla.edu>
23601 * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
23603 Problem reported by Bruno Haible.
23605 2006-08-21 Paul Eggert <eggert@cs.ucla.edu>
23607 Avoid the need for AC_LIBSOURCES in m4 macros.
23608 * modules/acl (EXTRA_DIST): Add acl.h.
23609 * modules/argmatch (Files): Add m4/argmatch.m4.
23610 (configure.ac): Add gl_ARGMATCH.
23611 (EXTRA_DIST): Renamed from lib_SOURCES, for
23612 consistency with the other modules. Remove argmatch.c.
23613 * modules/backupfile (EXTRA_DIST): Add backupfile.h.
23614 * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
23615 * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
23616 * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
23617 * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
23618 * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
23619 * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
23620 * modules/cloexec (EXTRA_DIST): Add cloexec.h.
23621 * modules/close-stream (EXTRA_DIST): Add close-stream.h.
23622 * modules/closeout (EXTRA_DIST): Add closeout.h.
23623 * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
23624 * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
23625 * modules/dirfd (EXTRA_DIST): Add dirfd.h.
23626 * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES. Add
23627 dirname.h; remove basename.c and stripslash.c.
23628 * modules/exclude (EXTRA_DIST): Add exclude.h.
23629 * modules/exitfail (EXTRA_DIST): Add exitfail.h.
23630 * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
23631 * modules/file-type (EXTRA_DIST): Add file-type.h.
23632 * modules/filemode (EXTRA_DIST): Add filemode.h.
23633 * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
23634 * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
23635 * modules/fpending (EXTRA_DIST): Add __fpending.h.
23636 * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
23637 * modules/fsusage (EXTRA_DIST): Add fsusage.h.
23638 * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
23639 * modules/getcwd (EXTRA_DIST): Add getcwd.h.
23640 * modules/getdate (EXTRA_DIST): Add getdate.c.
23641 * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
23642 * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
23643 * modules/getpass (EXTRA_DIST): Add getpass.h.
23644 * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
23645 * modules/group-member (EXTRA_DIST): Add group-member.h.
23646 * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
23647 * modules/hash (EXTRA_DIST): Add hash.h.
23648 * modules/human (EXTRA_DIST): Add human.h.
23649 * modules/inttypes (EXTRA_DIST): Add inttypes.h.
23650 * modules/lchmod (EXTRA_DIST): Add lchmod.h.
23651 * modules/lchown (EXTRA_DIST): Add lchown.h.
23652 * modules/long-options (EXTRA_DIST): Add long-options.h.
23653 * modules/lstat (EXTRA_DIST): Add lstat.h.
23654 * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
23655 * modules/memcoll (EXTRA_DIST): Add memcoll.h.
23656 * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
23657 * modules/memrchr (EXTRA_DIST): Add memrchr.h.
23658 * modules/memxor (EXTRA_DIST): Add memxor.h.
23659 * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
23660 * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
23661 * modules/mountlist (EXTRA_DIST): Add mountlist.h.
23662 * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
23663 * modules/pathmax (EXTRA_DIST): Add pathmax.h.
23664 * modules/physmem (EXTRA_DIST): Add physmem.h.
23665 * modules/posixtm (EXTRA_DIST): Add posixtm.h.
23666 * modules/posixver (EXTRA_DIST): Add posixver.h.
23667 * modules/quote (EXTRA_DIST): Add quote.h.
23668 * modules/quotearg (EXTRA_DIST): Add quotearg.h.
23669 * modules/readtokens (EXTRA_DIST): Add readtokens.h.
23670 * modules/readutmp (EXTRA_DIST): Add readutmp.h.
23671 * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
23672 regex_internal.h regexec.c.
23673 * modules/safe-read (EXTRA_DIST): Add safe-read.h.
23674 * modules/safe-write (EXTRA_DIST): Add safe-write.h.
23675 * modules/same (EXTRA_DIST): Add same.h.
23676 * modules/same-inode (EXTRA_DIST): Add same-inode.h.
23677 * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
23678 * modules/savedir (EXTRA_DIST): Add savedir.h.
23679 * modules/sha1 (EXTRA_DIST): Add sha1.h.
23680 * modules/sig2str (EXTRA_DIST): Add sig2str.h.
23681 * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
23682 * modules/stat-time (EXTRA_DIST): Add stat-time.h.
23683 * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
23684 * modules/strdup (EXTRA_DIST): Add strdup.h.
23685 * modules/strftime (EXTRA_DIST): Add strftime.h.
23686 * modules/strndup (EXTRA_DIST): Add strndup.h.
23687 * modules/strnlen (EXTRA_DIST): Add strnlen.h.
23688 * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
23689 * modules/time_r (EXTRA_DIST): Add time_r.h.
23690 * modules/timespec (EXTRA_DIST): Add timespec.h.
23691 * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
23692 * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
23693 * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
23694 * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
23695 * modules/userspec (EXTRA_DIST): Add userspec.h.
23696 * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
23697 * modules/utimens (EXTRA_DIST): Add utimens.h.
23698 * modules/xalloc (EXTRA_DIST): Add xalloc.h.
23699 * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
23700 * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
23701 * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
23702 * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
23703 * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
23704 * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
23705 * modules/yesno (EXTRA_DIST): Add yesno.h.
23707 2006-08-21 Paul Eggert <eggert@cs.ucla.edu>
23709 * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
23711 * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
23712 * m4/dev-ino.m4, same-inode.m4: Remove.
23714 * m4/_inttypes_h.m4 (gl_INTTYPES_H):
23715 * m4/acl.m4 (AC_FUNC_ACL):
23716 * m4/backupfile.m4 (gl_BACKUPFILE):
23717 * m4/c-strtod.m4 (gl_C99_STRTOLD):
23718 * m4/canon-host.m4 (gl_CANON_HOST):
23719 * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
23720 * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
23721 * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
23722 * m4/cloexec.m4 (gl_CLOEXEC):
23723 * m4/close-stream.m4 (gl_CLOSE_STREAM):
23724 * m4/closeout.m4 (gl_CLOSEOUT):
23725 * m4/dirfd.m4 (gl_FUNC_DIRFD):
23726 * m4/dirname.m4 (gl_DIRNAME):
23727 * m4/exclude.m4 (gl_EXCLUDE):
23728 * m4/exitfail.m4 (gl_EXITFAIL):
23729 * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
23730 * m4/file-type.m4 (gl_FILE_TYPE):
23731 * m4/filemode.m4 (gl_FILEMODE):
23732 * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
23733 * m4/fpending.m4 (gl_FUNC_FPENDING):
23734 * m4/fprintftime.m4 (gl_FPRINTFTIME):
23735 * m4/fts.m4 (gl_FUNC_FTS):
23736 * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
23737 * m4/getdate.m4 (gl_GETDATE):
23738 * m4/gethrxtime.m4 (gl_GETHRXTIME):
23739 * m4/getpagesize.m4 (gl_GETPAGESIZE):
23740 * m4/getpass.m4 (gl_FUNC_GETPASS):
23741 * m4/gettime.m4 (gl_GETTIME):
23742 * m4/getugroups.m4 (gl_GETUGROUPS):
23743 * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
23744 * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
23745 * m4/hard-locale.m4 (gl_HARD_LOCALE):
23746 * m4/hash.m4 (gl_HASH):
23747 * m4/idcache.m4 (gl_IDCACHE):
23748 * m4/lchmod.m4 (gl_FUNC_LCHMOD):
23749 * m4/lchown.m4 (gl_FUNC_LCHOWN):
23750 * m4/long-options.m4 (gl_LONG_OPTIONS):
23751 * m4/lstat.m4 (gl_FUNC_LSTAT):
23752 * m4/md5.m4 (gl_MD5):
23753 * m4/memcasecmp.m4 (gl_MEMCASECMP):
23754 * m4/memcoll.m4 (gl_MEMCOLL):
23755 * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
23756 * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
23757 * m4/memxor.m4 (gl_MEMXOR):
23758 * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
23759 * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
23760 * m4/modechange.m4 (gl_MODECHANGE):
23761 * m4/mountlist.m4 (gl_MOUNTLIST):
23762 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
23763 * m4/openat.m4 (gl_FUNC_OPENAT):
23764 * m4/pathmax.m4 (gl_PATHMAX):
23765 * m4/physmem.m4 (gl_PHYSMEM):
23766 * m4/posixtm.m4 (gl_POSIXTM):
23767 * m4/posixver.m4 (gl_POSIXVER):
23768 * m4/quote.m4 (gl_QUOTE):
23769 * m4/quotearg.m4 (gl_QUOTEARG):
23770 * m4/readtokens.m4 (gl_READTOKENS):
23771 * m4/readutmp.m4 (gl_READUTMP):
23772 * m4/regex.m4 (gl_REGEX):
23773 * m4/safe-read.m4 (gl_SAFE_READ):
23774 * m4/safe-write.m4 (gl_SAFE_WRITE):
23775 * m4/same.m4 (gl_SAME):
23776 * m4/save-cwd.m4 (gl_SAVE_CWD):
23777 * m4/savedir.m4 (gl_SAVEDIR):
23778 * m4/settime.m4 (gl_SETTIME):
23779 * m4/sha1.m4 (gl_SHA1):
23780 * m4/sig2str.m4 (gl_FUNC_SIG2STR):
23781 * m4/stat-macros.m4 (gl_STAT_MACROS):
23782 * m4/stat-time.m4 (gl_STAT_TIME):
23783 * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
23784 * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
23785 * m4/strdup.m4 (gl_FUNC_STRDUP):
23786 * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
23787 * m4/strndup.m4 (gl_FUNC_STRNDUP):
23788 * m4/strnlen.m4 (gl_FUNC_STRNLEN):
23789 * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
23790 * m4/time_r.m4 (gl_TIME_R):
23791 * m4/timespec.m4 (gl_TIMESPEC):
23792 * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
23793 * m4/unlinkdir.m4 (gl_UNLINKDIR):
23794 * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
23795 * m4/userspec.m4 (gl_USERSPEC):
23796 * m4/utimecmp.m4 (gl_UTIMECMP):
23797 * m4/utimens.m4 (gl_UTIMENS):
23798 * m4/xalloc.m4 (gl_XALLOC):
23799 * m4/xgetcwd.m4 (gl_XGETCWD):
23800 * m4/xnanosleep.m4 (gl_XNANOSLEEP):
23801 * m4/xreadlink.m4 (gl_XREADLINK):
23802 * m4/xstrtod.m4 (gl_XSTRTOD):
23803 * m4/yesno.m4 (gl_YESNO):
23804 Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
23805 to get the necessary .h files and whatnot.
23807 2006-08-21 Mark D. Baushke <mdb@gnu.org>
23808 Bruno Haible <bruno@clisp.org>
23810 * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
23811 /bin/sh understanding of '!' conditional negation.
23813 2006-08-21 Jim Meyering <jim@meyering.net>
23815 * modules/openat (Depends-on): Really alphabetize.
23817 * modules/acl (Depends-on): Add error and quote.
23819 * check-module (find_included_lib_files): Add at-func.c to the
23820 ok-to-include-more-than-once white list.
23822 * modules/openat (Depends-on): Add lstat. Alphabetize.
23824 2006-08-21 Bruno Haible <bruno@clisp.org>
23826 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
23827 Emit a pkgdata_DATA variable only if some snippets add contents to it.
23828 Reported by Martin Lambers <marlam@marlam.de>.
23830 2006-08-21 Bruno Haible <bruno@clisp.org>
23832 * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
23833 specify an installation location, don't emit a noinst_LIBRARIES or
23834 noinst_LTLIBRARIES assignment.
23836 2006-08-21 Bruno Haible <bruno@clisp.org>
23839 * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
23840 BeOS has mbrtowc() but no <wctype.h>.
23842 2006-08-21 Bruno Haible <bruno@clisp.org>
23845 * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
23848 2006-08-21 Bruno Haible <bruno@clisp.org>
23851 * lib/mbchar.h: Include <wctype.h> only if it exists.
23853 2006-08-20 Paul Eggert <eggert@cs.ucla.edu>
23855 Remove files that are no longer needed by their respective modules.
23856 * m4/obstack.m4: Remove.
23857 * m4/strerror_r.m4: Remove.
23858 * m4/uint32_t.m4: Remove.
23859 * m4/uintptr_t.m4: Remove.
23860 * m4/ullong_max.m4: Remove.
23861 * m4/xstrtoimax.m4: Remove.
23862 * m4/xstrtoumax.m4: Remove.
23864 * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
23865 gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
23866 dependencies now capture this.
23868 * m4/cycle-check.m4 (gl_CYCLE_CHECK):
23869 Do not use AC_LIBSOURCES, since gnulib modules now do this.
23870 * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
23871 * m4/human.m4 (gl_HUMAN): Likewise.
23872 * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
23873 * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
23875 * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
23877 * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
23878 gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
23880 * m4/human.m4 (gl_HUMAN): Likewise.
23881 * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
23882 * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
23883 * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
23884 * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
23885 * m4/xstrtol (gl_XSTRTOL): Likewise.
23887 * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
23888 AC_TYPE_LONG_LONG_INT.
23889 * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
23890 * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
23891 * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
23892 * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
23894 * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
23897 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
23898 (gl_PREREQ_XSTRTOUL): Remove.
23900 * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
23902 * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
23905 2006-08-20 Paul Eggert <eggert@cs.ucla.edu>
23907 Add and change modules to make it easier for coreutils to use
23909 * modules/backupfile (Files): Remove m4/d-ino.m4.
23910 (Depends-on): Add d-ino.
23911 * modules/cycle-check (Depends-on): Add stdint.
23912 (lib_SOURCES): Add cycle-check.h.
23913 * modules/d-ino: New module.
23914 * modules/d-type: New module.
23915 * modules/error (Files): Remove m4/strerror_r.m4.
23916 * modules/filemode (Files): Add m4/st_dm_mode.m4.
23917 * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
23918 m4/inttypes_h.m4, m4/uintmax_t.m4.
23919 (Depends-on): Add stdint.
23920 (lib_SOURCES): Add fsusage.h.
23921 * modules/getcwd (Files): Remove d-ino.m4.
23922 (Depends-on): Add d-ino.
23923 * modules/getndelim2 (Depends-on): Add stdint.
23924 * modules/glob (Files): Remove m4/d-type.m4.
23925 (Depends-on): Add d-type.
23926 * modules/host-os: New module.
23927 * modules/human (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
23928 m4/inttypes_h.m4, m4/uintmax_t.m4.
23929 * Depends-on: Add stdint.
23930 (lib_SOURCES): Add human.h.
23931 * modules/inttostr (Files): Remove m4/intmax_t.m4,
23932 m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
23933 m4/uintmax_t.m4, m4/ulonglong.m4.
23934 (Depends-on): Add stdint.
23935 (EXTRA_DIST): Add inttostr.h.
23936 * modules/lchmod: New module.
23937 * modules/link-follow: New module.
23938 * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
23939 (Depends-on): Add lchmod.
23940 * modules/mkstemp (Files): Remove m4/ulonglong.m4,
23941 m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
23942 (Depends-on): Add stdint.
23943 * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
23944 m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
23945 (Depends-on): Add stdint.
23946 (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
23947 * modules/perl: New module.
23948 * modules/regex (Depends-on): Add stdint.
23949 * modules/rmdir-errno: New module.
23950 * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
23952 (Depends-on): Add stdint.
23953 * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
23955 (Depends-on): Add stdint.
23956 * modules/unlink-busy: New module.
23957 * modules/utimecmp (Depends-on): Add stdint.
23958 * modules/uptime: New module.
23959 * modules/winsz-ioctl: New module.
23960 * modules/winsz-termios: New module.
23961 * modules/xnanosleep (Depends-on): Add nanosleep.
23962 * modules/ullong_max: Remove.
23963 * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
23964 (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
23965 * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
23966 m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
23967 (Depends-on): Add inttypes.
23968 (lib_SOURCES): Add xstrtol.h.
23969 * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
23970 (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
23971 * MODULES.html.sh: Move 'assert' into the assert section.
23972 Move 'dummy' into the linking section.
23974 Add section for compatibility checks for POSIX:2001 functions,
23975 and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
23976 winsz-ioctl, and winsz-termios into it.
23978 Add top-level Misc section and put host-os, perl, and uptime
23981 2006-08-20 Paul Eggert <eggert@cs.ucla.edu>
23983 * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
23984 now assume the stdint module. Do not include inttypes.h.
23985 * lib/fsusage.h: Likewise.
23986 * lib/getndelim2.c: Likewise.
23987 * lib/human.h: Likewise.
23988 * lib/inttostr.h: Likewise.
23989 * lib/obstack.c: Likewise.
23990 * lib/regex_internal.h: Likewise.
23991 * lib/tempname.c: Likewise.
23992 * lib/utimecmp.c: Likewise.
23993 * lib/xstrtol.h: Likewise.
23995 * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
23997 * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
23998 e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
23999 * lib/xtime.h: Likewise.
24001 2006-08-19 Paul Eggert <eggert@cs.ucla.edu>
24003 * modules/openat (Files): Add lib/fchmodat.c.
24004 Fixes problem reported by Jay Youngman.
24006 2006-08-19 Paul Eggert <eggert@cs.ucla.edu>
24008 * lib/fchmodat.c: New file, from coreutils. This was inadvertently
24009 omitted in the 2006-08-17 update. Problem reported by Jay Youngman.
24011 2006-08-18 Paul Eggert <eggert@cs.ucla.edu>
24012 Bruno Haible <bruno@clisp.org>
24014 * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
24015 and is a script that invokes bison. Tighten the code. Add comments.
24017 2006-08-18 Jim Meyering <jim@meyering.net>
24019 * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
24020 CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
24021 gettime.c. Gabor Z. Papp reported that gethrxtime-using programs
24022 failed to link due to unresolved clock_gettime on a linux-2.4.x system.
24024 2006-08-18 Bruno Haible <bruno@clisp.org>
24026 * modules/bison-i18n: New file.
24027 * MODULES.html.sh (Internationalization functions): Add it.
24029 2006-08-18 Bruno Haible <bruno@clisp.org>
24031 * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
24032 sys/statvfs.h. When getmntinfo was found, check its declaration and
24033 set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
24035 2006-08-18 Bruno Haible <bruno@clisp.org>
24037 * m4/bison-i18n.m4: New file, from bison.
24039 2006-08-18 Bruno Haible <bruno@clisp.org>
24041 * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
24042 (ME_DUMMY): Treat "kernfs" as a dummy.
24043 (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
24045 2006-08-17 Paul Eggert <eggert@cs.ucla.edu>
24047 Update from coreutils.
24049 2006-08-15 Jim Meyering <jim@meyering.net>
24051 * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
24053 2006-01-17 Jim Meyering <jim@meyering.net>
24055 * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
24057 2006-01-11 Jim Meyering <jim@meyering.net>
24059 * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
24060 Check for the lchmod function.
24062 2006-08-17 Paul Eggert <eggert@cs.ucla.edu>
24064 Update from coreutils.
24066 * lib/__fpending.h: Add copyright notice.
24067 * lib/fprintftime.h: Likewise.
24068 * lib/savedir.c: Use (C) in copyright notice.
24069 * lib/savedir.h: Likewise.
24071 2006-08-15 Jim Meyering <jim@meyering.net>
24073 * lib/at-func.c: New file, with the logic of all emulated at-functions.
24074 * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
24075 in support of the EXPECTED_ERRNO macro.
24076 * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
24077 definitions. Instead, define the appropriate symbols and include
24079 * lib/mkdirat.c (mkdirat): Likewise.
24080 * lib/fchmodat.c (fchmodat): Likewise.
24081 (ENOSYS): Remove definition.
24082 * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
24083 it. Don't include "unistd--.h" -- it wasn't ever used.
24085 2006-01-17 Jim Meyering <jim@meyering.net>
24087 Rewrite fts.c not to change the current working directory,
24088 by using openat, fstatat, fdopendir, etc..
24090 * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
24091 (HAVE_OPENAT_SUPPORT): Define.
24092 [_LIBC] (fchdir): Don't undef or define; no longer used.
24093 (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
24094 Now, this `function' always succeeds, and consumes its file descriptor
24095 parameter -- so callers must not close such FDs. Update callers.
24096 (diropen_fd, opendirat, cwd_advance_fd): New functions.
24097 (diropen): Add parameter, SP. Adjust all callers.
24098 Implement using diropen_fd, rather than open.
24099 (fts_open): Initialize new member, fts_cwd_fd.
24100 Remove fts_rft-setting code.
24101 (fts_close): Close fts_cwd_fd, if necessary.
24102 (__opendir2): Define in terms of opendir or opendirat,
24103 depending on whether the FST_NOCHDIR flag is set.
24104 (fts_build): Since fts_safe_changedir consumes its FD, and since
24105 this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
24106 and close the dup'd file descriptor upon failure.
24107 (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
24108 (fts_safe_changedir): Tweak semantics to reflect that this function
24109 now calls cwd_advance_fd and hence consumes its FD argument.
24110 * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
24111 [struct FTS] (fts_rft): Remove now-unused member.
24112 [struct FTS] (fts_cycle.state): Improve comment.
24114 * lib/openat.c (openat_needs_fchdir): New function.
24115 * lib/openat.h (openat_needs_fchdir): Declare it.
24117 2006-08-16 Paul Eggert <eggert@cs.ucla.edu>
24119 * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
24120 Problem and fix reported by Pádraig Brady in
24121 <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
24123 2006-08-15 Paul Eggert <eggert@cs.ucla.edu>
24125 * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
24127 2006-08-15 Paul Eggert <eggert@cs.ucla.edu>
24129 * lib/memcoll.c (memcoll): Optimize for the common case where the
24130 arguments are bytewise equal.
24132 2006-08-15 Paul Eggert <eggert@cs.ucla.edu>
24134 * doc/regexprops-generic.texi: Add a copyright notice.
24136 2006-08-15 Bruno Haible <bruno@clisp.org>
24138 * modules/tmpdir (License): Change to LGPL.
24140 2006-08-15 Bruno Haible <bruno@clisp.org>
24142 * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
24145 2006-08-14 Simon Josefsson <jas@extundo.com>
24147 * config/srclist.txt: Add gnupload.
24149 2006-08-14 Paul Eggert <eggert@cs.ucla.edu>
24151 Change copyright notice from LGPL 2 to GPL 2, since that's the
24152 standard form used in the gnulib repository.
24153 * tests/test-lock.c: Likewise.
24154 * tests/test-stdint.c: Likewise.
24155 * tests/test-tls.c: Likewise.
24157 * users.txt: Add bison, diffutils, libprelude, prelude-lml,
24158 prelude-manager. User shorter URLs for GNU projects, without '?'.
24159 Add copyright notice.
24161 * check-module: Add copyright notice. Output a copyright
24162 notice if "--version" is specified.
24163 * modules/COPYING: New file.
24164 * tests/test-getaddrinfo.c: Add copyright notice.
24165 * tests/test-verify.c: Likewise.
24167 2006-08-14 Paul Eggert <eggert@cs.ucla.edu>
24169 Change copyright notice from LGPL 2 to GPL 2, since that's the
24170 standard form used in the gnulib repository.
24171 * lib/lock.c: LGPL -> GPL.
24172 * lib/lock.h: Likewise.
24173 * lib/strnlen1.c: Likewise.
24174 * lib/strnlen1.h: Likewise.
24175 * lib/tls.c: Likewise.
24176 * lib/tls.h: Likewise.
24177 * lib/tmpdir.c: Likewise.
24179 * lib/TODO: Remove; this belongs only in coreutils.
24181 2006-08-14 Paul Eggert <eggert@cs.ucla.edu>
24183 Add copyright notices to long-enough files that lack them, since
24184 otherwise the files aren't clearly free. Use the same notice that
24185 getdate.texi already uses.
24186 * doc/alloca-opt.texi: Add copyright notice.
24187 * doc/alloca.texi: Likewise.
24188 * doc/ctime.texi: Likewise.
24189 * doc/functions.texi: Likewise.
24190 * doc/gcd.texi: Likewise.
24191 * doc/gnulib-tool.texi: Likewise.
24192 * doc/inet_ntoa.texi: Likewise.
24193 * doc/visibility.texi: Likewise.
24195 * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
24196 * doc/quote.texi: Add copyright notice.
24198 * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
24199 4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B. SunOS 4.1.3
24200 was Solaris 1.1A. Remove space before B in Solaris 1.1.1B.
24201 Mention SunOS 5.11. Mention that everything before SunOS 5.7
24202 is now obsolete, and give a pointer to the Sun list.
24203 Add copyright notice.
24205 2006-08-14 Paul Eggert <eggert@cs.ucla.edu>
24207 * config/srclistvars.sh: Add copyright notice.
24209 2006-08-14 Eric Blake <ebb9@byu.net>
24211 Import the following change from libc:
24213 2006-08-12 Ulrich Drepper <drepper@redhat.com>
24216 * lib/misc/error.c: Add space between program name and message if file
24219 2006-08-12 Karl Berry <karl@gnu.org>
24221 * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
24222 remove, these originate in gnulib now.
24224 2006-08-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
24226 * doc/Makefile (standards.info standards.html standards.dvi):
24227 Also depend on make-stds.texi.
24229 2006-08-11 Paul Eggert <eggert@cs.ucla.edu>
24231 * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
24232 HAVE_PIPE. Fix a file descriptor leak when fd_safer fails.
24234 * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
24235 in wchar_t. Problem reported by Eric Blake.
24237 * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
24238 LEN is smaller than SIZE. Suggested by Bruno Haible.
24239 Also, help the compiler to keep LEN in a register.
24241 2006-08-11 Eric Blake <ebb9@byu.net>
24243 * users.txt: Sort. Add tar.
24245 2006-08-11 Bruno Haible <bruno@clisp.org>
24247 * users.txt: New file.
24249 2006-08-11 Bruno Haible <bruno@clisp.org>
24251 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
24252 before <wchar.h>. Needed for OSF/1 and BSD/OS.
24254 2006-08-10 Paul Eggert <eggert@cs.ucla.edu>
24256 * modules/snprintf (Depends-on): Remove minmax.
24257 (Maintainer): Add self and Bruno.
24259 2006-08-10 Paul Eggert <eggert@cs.ucla.edu>
24261 * lib/.cppi-disable: Add snprintf.h, socket_.h.
24262 * lib/snprintf.c: Include <errno.h> and <limits.h>.
24263 (EOVERFLOW): Define if the system does not.
24264 Do not include "minmax.h"; it wasn't used.
24265 (snprintf): Don't assume size_t promotes to an unsigned type.
24266 Fix bug when generated string was too long for the buffer: the
24267 buffer's contents are supposed to be the initial prefix of the
24268 output. Don't assume vasnprintf returns EOVERFLOW if the size
24269 exceeds INT_MAX; do the check ourselves.
24271 Import the following changes from libc:
24273 2006-06-02 Jakub Jelinek <jakub@redhat.com>
24275 * lib/posix/regex_internal.c (re_string_skip_chars): If no character
24276 has been converted at all, set *last_wc to WEOF. If mbrtowc failed,
24277 set wc to the byte which couldn't be converted.
24278 (re_string_reconstruct): Don't clear valid_raw_len before calling
24279 re_string_skip_chars. If wc is WEOF after re_string_skip_chars, set
24280 tip_context using re_string_context_at.
24282 2006-05-02 Ulrich Drepper <drepper@redhat.com>
24284 * lib/posix/regex.h: g++ still cannot handled [restrict].
24286 2006-04-21 Ulrich Drepper <drepper@redhat.com>
24288 * lib/posix/regex.h: Remove special handling for VMS.
24290 2006-08-10 Jim Meyering <jim@meyering.net>
24292 * modules/same-inode: New module.
24293 * modules/dev-ino: New module.
24294 * modules/cycle-check: Depend on these modules, rather than simply
24295 including their .h files.
24296 (Makefile.am): Don't list cycle-check.[ch] here, now that they're
24297 required via m4/cycle-check.m4.
24298 * modules/same: Depend on new same-inode module, rather than
24299 including same-inode.h.
24300 * modules/chdir-safer: New file.
24302 * modules/chown (Depends-on): Add stat-macros.
24304 2006-08-10 Jim Meyering <jim@meyering.net>
24306 * m4/cycle-check.m4: New file.
24307 Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
24308 * m4/dev-ino.m4, m4/same-inode.m4: New files.
24310 2006-08-10 Eric Blake <ebb9@byu.net>
24312 * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
24313 in from original proposal.
24315 2006-08-10 Eric Blake <ebb9@byu.net>
24316 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
24318 * gnulib-tool (func_import): Detect unexpanded macros in gnulib
24321 2006-08-10 Bruno Haible <bruno@clisp.org>
24323 * gnulib-tool (func_create_testdir): Detect unexpanded macros here
24326 2006-08-09 Paul Eggert <eggert@cs.ucla.edu>
24328 Sync from coreutils.
24330 2006-07-19 Mike Frysinger <vapier@gentoo.org>
24332 * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
24333 Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
24335 2006-08-09 Paul Eggert <eggert@cs.ucla.edu>
24337 * modules/restrict: Remove; no longer needed now that we assume
24338 Autoconf 2.59 or later.
24339 * MODULES.html.sh: Remove 'restrict'.
24340 * modules/argp (Depends-on): Remove 'restrict'.
24341 * modules/base64 (Depends-on): Likewise.
24342 * modules/gc (Depends-on): Likewise.
24343 * modules/getaddrinfo (Depends-on): Likewise.
24344 * modules/glob (Depends-on): Likewise.
24345 * modules/inet_ntop (Depends-on): Likewise.
24346 * modules/inet_pton (Depends-on): Likewise.
24347 * modules/memxor (Depends-on): Likewise.
24348 * modules/regex (Depends-on): Likewise.
24349 * modules/strtok_r (Depends-on): Likewise.
24350 * modules/time_r (Depends-on): Likewise.
24352 2006-08-09 Paul Eggert <eggert@cs.ucla.edu>
24354 * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
24355 * m4/gc.m4 (gl_PREREQ_GC): Likewise.
24356 * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
24357 * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
24358 * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
24359 * m4/memxor.m4 (gl_MEMXOR): Likewise.
24360 * m4/restrict.m4: Remove; no longer needed. All remaining uses of
24361 gl_C_RESTRICT replaced by AC_C_RESTRICT.
24363 Merge from coreutils.
24364 * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
24365 gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
24366 * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
24367 * m4/time_r.m4 (gl_TIME_R): Likewise.
24369 2006-08-09 Karl Berry <karl@gnu.org>
24371 * config/srclist.txt: no more gettext-tools, per Bruno.
24373 2006-08-08 Eric Blake <ebb9@byu.net>
24375 * modules/verror: New module.
24376 * MODULES.html.sh: Document it.
24378 2006-08-08 Eric Blake <ebb9@byu.net>
24380 * lib/verror.h, lib/verror.c: New files.
24382 2006-08-08 Eric Blake <ebb9@byu.net>
24384 * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
24385 verror_at_line output complies with GNU Coding Standards even when
24388 2006-08-07 Bruno Haible <bruno@clisp.org>
24390 * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
24392 Reported by Ralf Wildenhues.
24394 2006-08-07 Bruno Haible <bruno@clisp.org>
24396 * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
24397 in an AC_DEFUN. Needed so that the autoconf snippets can use
24400 2006-08-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
24402 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
24403 Initialize pkgdata_DATA.
24404 * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
24407 2006-08-06 Eric Blake <ebb9@byu.net>
24409 * lib/error.h: Fold in some upstream changes from glibc.
24410 * lib/error.c: Likewise.
24412 2006-08-04 Bruno Haible <bruno@clisp.org>
24414 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
24415 Make the mostlyclean-local rule depend on mostlyclean-generic.
24416 Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
24418 2006-07-31 Bruno Haible <bruno@clisp.org>
24420 * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
24421 <stdlib.h>, <string.h>.
24423 2006-07-30 Bruno Haible <bruno@clisp.org>
24425 * modules/readlink (License): Change to LGPL.
24427 2006-07-30 Bruno Haible <bruno@clisp.org>
24429 * modules/javaversion (Makefile.am): Distribute javaversion.java and
24430 javaversion.class. Also install javaversion.class in $(pkgdatadir) and
24431 set PKGDATADIR to point to it.
24433 2006-07-30 Bruno Haible <bruno@clisp.org>
24435 * modules/csharpexec (configure.ac): Comment out macro invocation.
24436 * modules/javaexec (configure.ac): Likewise.
24437 * modules/javacomp-script (configure.ac): Likewise.
24439 * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
24441 2006-07-30 Bruno Haible <bruno@clisp.org>
24443 * modules/clean-temp (Depends-on): Add linkedhash-list, remove
24446 2006-07-30 Bruno Haible <bruno@clisp.org>
24448 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
24450 2006-07-30 Bruno Haible <bruno@clisp.org>
24452 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
24453 Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
24456 2006-07-29 Bruno Haible <bruno@clisp.org>
24458 Make it possible for gnulib-tool to work with locally modified or
24459 augmented gnulib repositories.
24460 * gnulib-tool (func_usage): Document --local-dir option.
24461 (local_gnulib_dir): New variable.
24462 Handle --local-dir option.
24463 (func_lookup_file): New function.
24464 (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
24465 (func_get_description, func_get_filelist, func_get_description,
24466 func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
24467 func_get_automake_snippet, func_get_include_directive,
24468 func_get_license, func_get_maintainer): Use func_lookup_file.
24469 (func_import, func_create_testdir): Use func_lookup_file.
24471 2006-07-29 Bruno Haible <bruno@clisp.org>
24473 * modules/setenv (Depends-on): Add unistd.
24475 2006-07-29 Bruno Haible <bruno@clisp.org>
24477 * lib/setenv.c: Undo unintended modification done on 2006-02-27.
24479 2006-07-29 Bruno Haible <bruno@clisp.org>
24481 * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
24483 2006-07-29 Bruno Haible <bruno@clisp.org>
24485 * gnulib-tool (import, update): If there is no Makefile.am, look at
24486 aclocal.m4, instead of bailing out.
24488 2006-07-29 Bruno Haible <bruno@clisp.org>
24490 * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
24491 Categorize the options by when they are useful.
24493 2006-07-29 Bruno Haible <bruno@clisp.org>
24495 * gnulib-tool (func_usage): Document option --no-libtool.
24496 Handle option --no-libtool.
24497 (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
24498 for changed semantics of $libtool variable.
24499 (func_import): Likewise. If libtool is not used, show this through
24500 an option --no-libtool.
24501 (func_create_testdir): Update.
24503 2006-07-29 Bruno Haible <bruno@clisp.org>
24505 * gnulib-tool (func_import): Extend error message about missing
24508 2006-07-29 Bruno Haible <bruno@clisp.org>
24510 * gnulib-tool (func_import): Don't create the $docbase directory if
24511 there is no file to store there.
24513 2006-07-29 Bruno Haible <bruno@clisp.org>
24515 * gnulib-tool (autoconf_minversion): If a --dir option is given and
24516 relevant, look for configure.ac there, not in the current directory.
24517 Also use a simple search for AC_PREREQ, not "autoconf --trace".
24519 2006-07-29 Bruno Haible <bruno@clisp.org>
24521 * gnulib-tool (SORT): New variable.
24522 (func_usage): Undocument --assume-autoconf option.
24523 Remove --assume-autoconf option handling.
24524 (autoconf_minversion): Determine from the contents of configure.ac.
24525 (func_import): Remove autoconf_minversion handling.
24526 Suggested by Eric Blake.
24528 2006-07-29 Bruno Haible <bruno@clisp.org>
24530 * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
24532 2006-07-29 Bruno Haible <bruno@clisp.org>
24534 * config/srclist.txt (*setenv.[ch]): Remove rules.
24536 2006-07-28 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
24538 * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
24540 2006-07-28 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
24542 * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
24545 2006-07-28 Simon Josefsson <jas@extundo.com>
24547 * modules/inet_ntop (Depends-on): Depend on arpa_inet.
24548 * modules/inet_pton (Depends-on): Likewise.
24550 2006-07-28 Simon Josefsson <jas@extundo.com>
24552 * m4/netinet_in_h.m4: New file.
24554 2006-07-28 Simon Josefsson <jas@extundo.com>
24556 * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
24559 2006-07-28 Simon Josefsson <jas@extundo.com>
24561 * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
24564 2006-07-28 Paul Eggert <eggert@cs.ucla.edu>
24566 * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
24567 setgid on directories only if they set these bits.
24568 * lib/modechange.h: Remove obsolete comment about masks.
24570 2006-07-28 Eric Blake <ebb9@byu.net>
24572 * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
24575 2006-07-28 Bruno Haible <bruno@clisp.org>
24577 * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
24579 2006-07-28 Bruno Haible <bruno@clisp.org>
24581 * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
24583 2006-07-28 Bruno Haible <bruno@clisp.org>
24585 * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
24586 iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
24588 Avoids link error on FreeBSD 4.x.
24589 Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
24591 * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
24593 * lib/mbswidth.c (iswcntrl): Likewise.
24595 2006-07-27 Bruno Haible <bruno@clisp.org>
24597 * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
24600 2006-07-27 Bruno Haible <bruno@clisp.org>
24602 * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
24603 __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
24606 2006-07-26 Eric Blake <ebb9@byu.net>
24608 * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
24610 2006-07-26 Eric Blake <ebb9@byu.net>
24612 * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
24613 like mingw that lack mkstemp.
24614 * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
24615 avoid compilation warning on mingw.
24617 2006-07-26 Bruno Haible <bruno@clisp.org>
24619 * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
24620 INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
24621 INT_FAST*_MIN, INTPTR_MIN.
24623 2006-07-25 Bruno Haible <bruno@clisp.org>
24625 * modules/version-etc (Depends-on): Add stdarg.
24627 2006-07-25 Bruno Haible <bruno@clisp.org>
24629 * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
24632 2006-07-25 Bruno Haible <bruno@clisp.org>
24634 * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
24635 defined in <stdarg.h> or config.h.
24637 2006-07-24 Paul Eggert <eggert@cs.ucla.edu>
24639 * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
24640 (gl_STDIO_SAFER): Remove.
24642 2006-07-24 Paul Eggert <eggert@cs.ucla.edu>
24644 * MODULES.html.sh (File stream based Input/Output):
24645 Add fopen-safer, tmpfile-safer; remove stdio-safer.
24646 * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
24647 * modules/fopen-safer, modules/tmpfile-safer: New files.
24648 * modules/stdio-safer: Remove.
24650 2006-07-24 Bruno Haible <bruno@clisp.org>
24652 * modules/tmpdir: New file.
24653 * MODULES.html.sh (File system functions): Add it.
24655 2006-07-24 Bruno Haible <bruno@clisp.org>
24657 * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
24658 getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
24660 2006-07-24 Bruno Haible <bruno@clisp.org>
24662 * modules/clean-temp: New file.
24664 2006-07-24 Bruno Haible <bruno@clisp.org>
24666 * m4/tmpdir.m4: New file, from GNU gettext.
24668 2006-07-24 Bruno Haible <bruno@clisp.org>
24670 * lib/tmpdir.h: New file, from GNU gettext.
24671 * lib/tmpdir.c: New file, from GNU gettext.
24673 2006-07-24 Bruno Haible <bruno@clisp.org>
24675 * lib/clean-temp.h: New file, from GNU gettext.
24676 * lib/clean-temp.c: New file, from GNU gettext.
24678 2006-07-23 Eric Blake <ebb9@byu.net>
24680 * modules/stdio-safer (Files): Add tmpfile-safer.c.
24681 (Depends-on): Add binary-io.
24683 2006-07-23 Eric Blake <ebb9@byu.net>
24685 * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
24687 2006-07-23 Eric Blake <ebb9@byu.net>
24689 * lib/tmpfile-safer.c: New file.
24690 * lib/stdio-safer.h (fopen_safer): Add prototype.
24691 * lib/stdio--.h (tmpfile): Make safer.
24693 2006-07-23 Bruno Haible <bruno@clisp.org>
24695 * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
24696 (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
24697 gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
24698 gl_linked_remove_at): Use it.
24700 2006-07-22 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
24701 and Simon Josefsson <jas@extundo.com>
24703 * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
24705 * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
24707 2006-07-22 Paul Eggert <eggert@cs.ucla.edu>
24709 * modules/close-stream: New file.
24710 * modules/closeout (Description): Make it clear that it exits
24711 with a diagnostic on error.
24712 (Depends-on): Add close-stream. Remove fpending, stdbool.
24713 * MODULES.html.sh (File stream based Input/Output): Add close-stream.
24715 2006-07-22 Paul Eggert <eggert@cs.ucla.edu>
24717 * m4/close-stream.m4: New file.
24719 2006-07-22 Paul Eggert <eggert@cs.ucla.edu>
24721 * lib/close-stream.c, lib/close-stream.h: New files.
24723 2006-07-22 Bruno Haible <bruno@clisp.org>
24725 Merge from GNU gettext 0.15.
24727 2006-05-01 Bruno Haible <bruno@clisp.org>
24729 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
24731 2006-07-22 Bruno Haible <bruno@clisp.org>
24733 * modules/javaversion: New file.
24734 * MODULES.html.sh (Java): Add javaversion.
24736 2006-03-12 Bruno Haible <bruno@clisp.org>
24738 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
24740 2005-12-04 Bruno Haible <bruno@clisp.org>
24742 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
24745 2006-06-21 Bruno Haible <bruno@clisp.org>
24747 Avoid warnings from recent versions of mcs.
24748 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
24749 -o, -L, -r any more. Use options documented since mcs-1.0
24750 instead. Similarly for -g.
24752 2005-12-04 Bruno Haible <bruno@clisp.org>
24754 * build-aux/csharpcomp.sh.in: Suffix for resources is
24755 .resources, not .resource.
24757 2005-07-09 Bruno Haible <bruno@clisp.org>
24759 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
24761 Reported by Mark Junker <mjscod@gmx.de>.
24763 2006-07-22 Bruno Haible <bruno@clisp.org>
24765 * modules/gettext: Upgrade to gettext-0.15.
24766 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
24768 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
24770 2006-07-22 Bruno Haible <bruno@clisp.org>
24772 Merge from GNU gettext 0.15.
24774 2006-03-25 Bruno Haible <bruno@clisp.org>
24776 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
24778 2006-07-21 Bruno Haible <bruno@clisp.org>
24780 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
24783 2006-05-09 Bruno Haible <bruno@clisp.org>
24785 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
24786 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
24787 for the conftestver execution.
24789 2006-05-01 Bruno Haible <bruno@clisp.org>
24791 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
24792 optional target-version argument. Verify that the compiler
24793 groks source of the specified source-version, or add -source
24794 option as necessary. Verify that the compiler produces
24795 bytecode in the specified target-version, or add -target and
24796 -source options as necessary. Make the result of the test
24797 available as variable CONF_JAVAC. Also log error output in
24800 2006-03-11 Bruno Haible <bruno@clisp.org>
24802 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
24804 2006-05-09 Bruno Haible <bruno@clisp.org>
24806 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
24807 CLASSPATH_SEPARATOR to a semicolon.
24809 2006-03-12 Bruno Haible <bruno@clisp.org>
24811 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
24812 available as variable CONF_JAVA, for subsequent autoconf
24813 tests. Also log error output in config.log.
24815 2006-07-19 Bruno Haible <bruno@clisp.org>
24817 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
24818 that getline works on glibc2 systems. Needed to avoid trouble
24820 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
24822 2005-12-04 Bruno Haible <bruno@clisp.org>
24824 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
24825 launcher (untested).
24827 2005-12-04 Bruno Haible <bruno@clisp.org>
24829 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
24831 2006-07-22 Bruno Haible <bruno@clisp.org>
24833 * gettext.m4: Update from GNU gettext-0.15.
24834 * nls.m4: Likewise.
24836 * inttypes-pri.m4: Likewise.
24837 * inttypes-h.m4: Renamed from inttypes.m4.
24838 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
24840 2006-07-22 Bruno Haible <bruno@clisp.org>
24842 Merge from GNU gettext 0.15.
24844 2005-07-05 Bruno Haible <bruno@clisp.org>
24846 * printf-args.c (printf_fetchargs): Work around broken
24847 definition of wint_t on mingw.
24849 2005-02-12 Bruno Haible <bruno@clisp.org>
24851 * xallocsa.h: Add extern "C" for C++.
24853 2006-05-17 Bruno Haible <bruno@clisp.org>
24855 Cygwin portability.
24856 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
24858 2006-04-30 Bruno Haible <bruno@clisp.org>
24860 * progreloc.c: Include <mach-o/dyld.h> if available.
24861 (find_executable): Use _NSGetExecutablePath when possible.
24863 2006-05-06 Charles Wilson <cygwin@cwilson.fastmail.fm>
24865 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
24868 2005-12-29 Bruno Haible <bruno@clisp.org>
24870 * progreloc.c (set_program_name_and_installdir): Fix
24873 2005-12-04 Bruno Haible <bruno@clisp.org>
24875 Cygwin portability.
24876 * progreloc.c: Include <windows.h> also on Cygwin.
24877 (find_executable): Add support for Cygwin.
24878 (set_program_name_and_installdir): Handle also platforms with
24881 2006-07-11 Bruno Haible <bruno@clisp.org>
24883 * javacomp.c: Fix a comment.
24884 Reported by Jim Meyering.
24886 2006-04-30 Bruno Haible <bruno@clisp.org>
24888 * javacomp.h (compile_java_class): Add source_version,
24889 target_version arguments.
24890 * javacomp.c: Rewritten to choose only a compiler that
24891 respects the specified source_version and target_version.
24893 2006-06-27 Bruno Haible <bruno@clisp.org>
24895 Assume correct S_ISDIR macro.
24896 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
24898 2006-07-22 Bruno Haible <bruno@clisp.org>
24900 * javaversion.h: New file, from GNU gettext.
24901 * javaversion.c: New file, from GNU gettext.
24902 * javaversion.java: New file, from GNU gettext.
24903 * javaversion.class: New file, from GNU gettext.
24905 2006-05-17 Bruno Haible <bruno@clisp.org>
24907 Cygwin portability.
24908 * javaexec.c (execute_java_class): Test for jview program
24911 2006-04-09 Bruno Haible <bruno@clisp.org>
24913 * fatal-signal.c: Don't include string.h.
24914 (at_fatal_signal): Use a copying loop instead of memcpy.
24916 2005-12-04 Bruno Haible <bruno@clisp.org>
24918 * csharpexec.c: Add support for 'clix' launcher (untested).
24919 (execute_csharp_using_sscli): New function.
24920 (execute_csharp_program): Call it.
24922 2006-06-21 Bruno Haible <bruno@clisp.org>
24924 Avoid warnings from recent versions of mcs.
24925 * csharpcomp.c (compile_csharp_using_mono): Don't use options
24926 -o, -L, -r any more. Use options documented since mcs-1.0
24927 instead. Similarly for -g.
24929 2005-07-09 Bruno Haible <bruno@clisp.org>
24931 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
24933 Reported by Mark Junker <mjscod@gmx.de>.
24935 2006-06-17 Bruno Haible <bruno@clisp.org>
24937 * config.charset: Update for NetBSD 3.0.
24939 2006-05-17 Bruno Haible <bruno@clisp.org>
24941 Cygwin portability.
24942 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
24944 2006-05-16 Bruno Haible <bruno@clisp.org>
24946 * localcharset.c [CYGWIN]: Include <windows.h>.
24947 (get_charset_aliases): For Cygwin, return the same CPxxx
24948 aliases list as under WIN32.
24949 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
24950 the environment variables. Fall back to GetACP().
24952 2006-04-05 Bruno Haible <bruno@clisp.org>
24954 * config.charset: Update Juan Manuel Guerrero's address.
24956 2005-02-12 Bruno Haible <bruno@clisp.org>
24958 * allocsa.h: Add extern "C" for C++.
24960 2005-02-10 Bruno Haible <bruno@clisp.org>
24962 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
24963 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
24965 2006-07-22 Bruno Haible <bruno@clisp.org>
24967 * gettext.h: Update to GNU gettext-0.15.
24969 2006-07-22 Bruno Haible <bruno@clisp.org>
24971 * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
24972 localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
24973 lib-prefix.m4, longdouble.m4, ssize_t.m4.
24975 2006-07-21 Eric Blake <ebb9@byu.net>
24977 * modules/stdlib-safer: New file.
24978 * MODULES.html.sh (File stream based Input/Output): Add
24981 2006-07-21 Eric Blake <ebb9@byu.net>
24983 * lib/stdlib-safer.h: New file from coreutils, required by
24986 2006-07-20 Paul Eggert <eggert@cs.ucla.edu>
24988 * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
24990 2006-07-20 Bruno Haible <bruno@clisp.org>
24992 * gnulib-tool: Recognize new option --assume-autoconf.
24993 (autoconf_minversion): New variable.
24994 (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
24996 2006-07-20 Bruno Haible <bruno@clisp.org>
24998 * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
25000 2006-07-19 Derek R. Price <derek@ximbiot.com>
25002 * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
25003 Reindent and repaginate.
25005 2006-07-19 Derek Price <derek@ximbiot.com>
25007 * doc/gnulib.texi (Libtool and Windows): Eliminate passive voice.
25010 2006-07-17 Bruno Haible <bruno@clisp.org>
25012 * modules/list: New file.
25013 * modules/array-list: New file.
25014 * modules/carray-list, modules/carray-list-tests: New files.
25015 * modules/linked-list, modules/linked-list-tests: New files.
25016 * modules/avltree-list, modules/avltree-list-tests: New files.
25017 * modules/rbtree-list, modules/rbtree-list-tests: New files.
25018 * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
25019 * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
25020 * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
25021 * modules/oset: New file.
25022 * modules/array-oset: New file.
25023 * modules/avltree-oset, modules/avltree-oset-tests: New files.
25024 * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
25025 * tests/test-carray_list.c: New file.
25026 * tests/test-linked_list.c: New file.
25027 * tests/test-avltree_list.c: New file.
25028 * tests/test-rbtree_list.c: New file.
25029 * tests/test-linkedhash_list.c: New file.
25030 * tests/test-avltreehash_list.c: New file.
25031 * tests/test-rbtreehash_list.c: New file.
25032 * tests/test-avltree_oset.c: New file.
25033 * tests/test-rbtree_oset.c: New file.
25034 * MODULES.html.sh (Container data structures): New section.
25036 2006-07-17 Bruno Haible <bruno@clisp.org>
25038 * m4/gl_list.m4: New file.
25040 2006-07-17 Bruno Haible <bruno@clisp.org>
25042 * lib/gl_list.h: New file.
25043 * lib/gl_list.c: New file.
25044 * lib/gl_array_list.h: New file.
25045 * lib/gl_array_list.c: New file.
25046 * lib/gl_carray_list.h: New file.
25047 * lib/gl_carray_list.c: New file.
25048 * lib/gl_linked_list.h: New file.
25049 * lib/gl_linked_list.c: New file.
25050 * lib/gl_anylinked_list1.h: New file.
25051 * lib/gl_anylinked_list2.h: New file.
25052 * lib/gl_avltree_list.h: New file.
25053 * lib/gl_avltree_list.c: New file.
25054 * lib/gl_anyavltree_list1.h: New file.
25055 * lib/gl_anyavltree_list2.h: New file.
25056 * lib/gl_rbtree_list.h: New file.
25057 * lib/gl_rbtree_list.c: New file.
25058 * lib/gl_anyrbtree_list1.h: New file.
25059 * lib/gl_anyrbtree_list2.h: New file.
25060 * lib/gl_anytree_list1.h: New file.
25061 * lib/gl_anytree_list2.h: New file.
25062 * lib/gl_linkedhash_list.h: New file.
25063 * lib/gl_linkedhash_list.c: New file.
25064 * lib/gl_anyhash_list1.h: New file.
25065 * lib/gl_anyhash_list2.h: New file.
25066 * lib/gl_avltreehash_list.h: New file.
25067 * lib/gl_avltreehash_list.c: New file.
25068 * lib/gl_rbtreehash_list.h: New file.
25069 * lib/gl_rbtreehash_list.c: New file.
25070 * lib/gl_anytreehash_list1.h: New file.
25071 * lib/gl_anytreehash_list2.h: New file.
25073 * lib/gl_oset.h: New file.
25074 * lib/gl_oset.c: New file.
25075 * lib/gl_array_oset.h: New file.
25076 * lib/gl_array_oset.c: New file.
25077 * lib/gl_avltree_oset.h: New file.
25078 * lib/gl_avltree_oset.c: New file.
25079 * lib/gl_rbtree_oset.h: New file.
25080 * lib/gl_rbtree_oset.c: New file.
25081 * lib/gl_anytree_oset.h: New file.
25083 2006-07-16 Paul Eggert <eggert@cs.ucla.edu>
25085 * m4/mkancesdirs.m4: New file.
25086 * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
25087 dirchownmod.h. Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
25088 no longer needed. Require gl_FUNC_LCHOWN, since dirchownmod.c needs
25091 2006-07-16 Paul Eggert <eggert@cs.ucla.edu>
25093 * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
25094 * lib/mkancesdirs.h: New files.
25095 * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
25096 unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
25097 save-cwd.h. Instead, include dirchownmod.h and mkancesdirs.h.
25098 (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
25099 MODE_BITS. Remove options VERBOSE_FMT_STRING, CWD_ERRNO. All
25100 callers changed. Revamp internals significantly, by not
25101 attempting to create directories that are temporarily more
25102 permissive than the final results. Do not attempt to use
25103 save_cwd/restore_cwd; it isn't worth it for mkdir and install.
25104 This removes some race conditions, fixes some bugs, and simplifies
25105 things. Use new dirchownmod function to do owner and mode changes.
25106 * lib/mkdir-p.h: Likewise.
25107 * lib/modechange.c (octal_to_mode): New function.
25108 (struct mode_change): New member mentioned.
25109 (make_node_op_equals): New arg mentioned. All callers changed.
25110 (mode_compile): Keep track of which mode bits the user has explicitly
25112 (mode_adjust): New arg DIR, so that we implement the X op correctly.
25113 New arg PMODE_BITS, to keep track of which mode bits the user
25114 mentioned; it treats S_ISUID and S_ISGID speciall.
25115 All callers changed.
25116 * lib/modechange.h: Likewise.
25118 2006-07-16 Paul Eggert <eggert@cs.ucla.edu>
25120 * MODULES.html.sh: Add mkancestors.
25121 * modules/mkancesdirs: New module.
25122 * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
25123 lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
25124 The chdir-safer and afs files are now orphans; I'll remove them
25125 unless someone speaks up.
25126 Add lib/dirchownmod.c, lib/dirchownmod.h.
25127 (Depends-on): Remove alloca, chown, save-cwd, dirname.
25128 Add lchown, mkancesdirs.
25129 (Maintainer): Add self.
25131 2006-07-15 Karl Berry <karl@gnu.org>
25133 * gnulib-tool: help message wording/arrangement.
25135 2006-07-14 Simon Josefsson <jas@extundo.com>
25137 * doc/gnulib.texi (Libtool and Windows): New section.
25139 2006-07-12 Simon Josefsson <jas@extundo.com>
25141 * modules/gendocs (License): Fix license, approved by Karl.
25143 2006-07-12 Eric Blake <ebb9@byu.net>
25145 * MODULES.html.sh: Add gendocs.
25147 2006-07-11 Eric Blake <ebb9@byu.net>
25149 * modules/fdl: New module, to install doc/fdl.texi.
25150 * MODULES.html.sh: Add new section for documentation modules.
25151 * gnulib-tool: Avoid space-tab.
25152 (--doc-base): New option, to manage files from doc.
25154 2006-07-11 Eric Blake <ebb9@byu.net>
25156 * m4/absolute-header.m4: Fix comments to match recent change.
25158 2006-07-11 Eric Blake <ebb9@byu.net>
25160 * gnulib-tool: List --doc-base before --tests-base.
25162 2006-07-11 Derek R. Price <derek@ximbiot.com>
25164 * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
25166 2006-07-11 Bruno Haible <bruno@clisp.org>
25168 * README: Mention where to put documentation.
25170 2006-07-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
25172 * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
25174 2006-07-10 Paul Eggert <eggert@cs.ucla.edu>
25176 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
25179 2006-07-10 Paul Eggert <eggert@cs.ucla.edu>
25181 * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
25182 absolute-header.m4. Also, set ABSOLUTE_STDINT_H to a string
25183 "no/such/file/stdint.h" when there is no such file, so that
25184 the resulting C code can be parsed by dodgy compilers.
25185 Problems reported by Bob Proulx.
25187 2006-07-10 Derek R. Price <derek@ximbiot.com>
25189 * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
25190 Ignore the obsolescent !HAVE_DIRENT_H case. Consolidate NAMLEN
25191 macros into the GNU _D_EXACT_NAMLEN.
25192 * lib/savedir.c: Likewise.
25193 (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
25195 2006-07-10 Derek R. Price <derek@ximbiot.com>
25196 and Paul Eggert <eggert@cs.ucla.edu>
25198 * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
25200 Ignore the obsolescent !HAVE_DIRENT_H case. Consolidate NAMLEN
25201 macros into the GNU _D_EXACT_NAMLEN.
25203 2006-07-09 Paul Eggert <eggert@cs.ucla.edu>
25205 * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
25206 around the absolute name, to work around a problem with the HP-UX
25207 11.23 native C compiler, reported by Bob Proulx.
25209 2006-07-09 Paul Eggert <eggert@cs.ucla.edu>
25211 * doc/maintain.texi, make-stds.texi: Sync from
25212 <http://savannah.gnu.org/projects/gnustandards>.
25214 2006-07-09 Paul Eggert <eggert@cs.ucla.edu>
25216 * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
25218 2006-07-09 Jim Meyering <jim@meyering.net>
25220 * m4/glob.m4: Remove a doubled word in a comment.
25222 2006-07-09 Jim Meyering <jim@meyering.net>
25224 * lib/argp-pv.c: Remove a doubled word in a comment.
25225 * lib/check-version.c (check_version): Likewise.
25226 * lib/javacomp.c (compile_java_class): Likewise.
25228 2006-07-08 Paul Eggert <eggert@cs.ucla.edu>
25230 * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
25231 for the benefit of people using Autoconf 2.60. If you want to
25232 support older Autoconf versions you can copy m4/onceonly_2_57.m4
25233 (or m4/onceonly.m4, if pre-2.57) manually.
25235 2006-07-08 Jim Meyering <jim@meyering.net>
25237 * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
25239 * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
25240 * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
25243 2006-07-08 Jim Meyering <jim@meyering.net>
25245 * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
25247 2006-07-07 Simon Josefsson <jas@extundo.com>
25249 * tests/test-crc.c: Change expected crc value, the test vector
25250 were probably computed using the old broken crc.c?
25252 2006-07-06 Simon Josefsson <jas@extundo.com>
25254 * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
25255 now the canonical place for the M4 file).
25257 * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
25258 from the sys_socket dependency now.
25260 * modules/inet_pton (Files): Ditto.
25262 * modules/inet_ntop (Files): Ditto.
25264 2006-07-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny change)
25266 * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
25267 not gl_PREREQ_GETUSERSHELL.
25269 2006-07-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
25271 * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
25272 with only one argument, for Autoconf 2.60.
25273 * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
25274 expand to nothing, so add a shell command to avoid syntax error.
25275 * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
25277 2006-07-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
25279 * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
25281 2006-07-06 Paul Eggert <eggert@cs.ucla.edu>
25283 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
25284 no longer needed. Check for isblank decl.
25285 * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
25286 * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
25289 2006-07-06 Paul Eggert <eggert@cs.ucla.edu>
25291 * lib/getloadavg.c: Use __VMS, not VMS.
25292 * lib/getopt.c: Likewise.
25293 * lib/getpagesize.h: Likewise.
25294 * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
25295 and probably does not work.
25297 2006-07-06 Paul Eggert <eggert@cs.ucla.edu>
25299 * lib/.cppi-disable: Add wcwidth.
25300 * lib/fnmatch.c (ISBLANK): Remove. All uses changed to isblank.
25301 (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
25302 (ISGRAPH): Remove. All uses changed to isgraph.
25303 (FOLD) [!defined _LIBC]: Remove special case.
25304 * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
25305 * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
25307 * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
25310 2006-07-06 Jim Hyslop <jhyslop@dreampossible.ca> (tiny change)
25312 * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
25313 '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
25314 brackets. Other minor changes to suppress some compiler
25317 2006-07-06 Derek R. Price <derek@ximbiot.com>
25318 and Paul Eggert <eggert@cs.ucla.edu>
25320 * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
25321 of invoking obsolescent AC_HEADER_DIRENT macro.
25322 * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
25323 * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
25324 * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
25325 * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
25326 * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
25327 * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
25328 * m4/savedir.m4 (gl_SAVEDIR): Likewise.
25329 * m4/readdir.m4: Remove; no longer needed.
25331 2006-07-06 Derek R. Price <derek@ximbiot.com>
25332 and Paul Eggert <eggert@cs.ucla.edu>
25334 * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
25335 Don't worry about this obsolete case any more.
25336 (HAVE_DIR): Remove. All uses removed; we now assume you can read
25338 * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
25339 worry about this obsolete case any more.
25340 * lib/fts.c: Likewise.
25341 * lib/getcwd.c: Likewise.
25342 * lib/glob.h: Likewise.
25343 * lib/savedir.c: Likewise.
25345 2006-07-05 Paul Eggert <eggert@cs.ucla.edu>
25347 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
25348 rather than AC_CHECK_DECLS for strtoimax and strtoumax.
25349 * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
25352 * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
25353 * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
25354 * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
25356 * m4/getdate.m4 (gl_GETDATE): Likewise.
25357 * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
25358 * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
25359 * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
25360 * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
25361 * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
25362 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
25363 * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
25366 2006-07-05 Paul Eggert <eggert@cs.ucla.edu>
25368 * lib/memcasecmp.c: Include <limits.h>.
25369 (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
25370 * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
25371 Don't assume isdigit succeeds only on '0' through '9'.
25373 2006-07-05 Eric Blake <ebb9@byu.net>
25375 * modules/getaddrinfo (Depends-on): Add snprintf.
25377 2006-07-05 Eric Blake <ebb9@byu.net>
25379 * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
25380 to avoid 'header present but could not be compiled' on cygwin.
25382 2006-07-05 Eric Blake <ebb9@byu.net>
25384 * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
25385 missing from netdb.h.
25386 * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
25388 2006-07-05 Derek R. Price <derek@ximbiot.com>
25390 * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
25392 * m4/exclude.m4 (gl_EXCLUDE): Likewise.
25393 * m4/getdate.m4 (gl_GETDATE): Likewise.
25394 * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
25395 * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
25396 * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
25397 * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
25398 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
25400 2006-07-05 Derek R. Price <derek@ximbiot.com>
25402 * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
25403 All uses of is_space replaced by isspace.
25404 * lib/exit.h: Don't talk about STDC_HEADERS.
25405 * lib/fnmatch.c (ISASCII): Remove; no longer needed. All uses removed.
25406 (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
25407 (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed. All uses
25408 replaced by isprint etc.
25409 * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
25410 * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
25411 * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
25412 * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
25413 * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
25414 * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
25416 2006-07-05 Bruno Haible <bruno@clisp.org>
25418 * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
25419 the function exists, before testing against AIX.
25420 Reported by Martin Lambers <marlam@marlam.de>.
25422 2006-07-04 Paul Eggert <eggert@cs.ucla.edu>
25424 * modules/cycle-check (lib_SOURCES): Add same-inode.h.
25425 From Mark D. Baushke.
25427 2006-07-04 Paul Eggert <eggert@cs.ucla.edu>
25429 * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
25430 to the absolute name, not just one, to bypass Sun C 5.8's
25431 "warning: #include of /usr/include/... may be non-portable".
25433 2006-07-04 Eric Blake <ebb9@byu.net>
25435 * modules/dirname-tests: New test module.
25436 * tests/test-dirname.c: New file, replacing dirname.c
25437 TEST_DIRNAME section that was recently deleted.
25439 2006-07-04 Bruno Haible <bruno@clisp.org>
25441 Assume ANSI C header files and <ctype.h> functions.
25442 * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
25443 (mbsnwidth): Use isprint, iscntrl instead.
25445 2006-07-03 Paul Eggert <eggert@cs.ucla.edu>
25447 Merge from coreutils.
25448 * MODULES.html.sh: Add xstrtold.
25449 * modules/xstrtold: New file.
25450 * modules/cycle-check (Files): Add lib/same-inode.h.
25451 * modules/dirname (Files): Add m4/double-slash-root.m4.
25452 * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
25453 * modules/mkdir-p (Files): Add lib/same-inode.h.
25454 * modules/same (Files): Add lib/same-inode.h.
25456 2006-07-03 Paul Eggert <eggert@cs.ucla.edu>
25458 * m4/absolute-header.m4: Renamed from full-header-path.m4.
25459 This is to keep the terminology clean; POSIX talks about
25460 "absolute pathnames", not "full pathnames", but the GNU
25461 Coding Standards say to use "path" for something else;
25462 so use "absolute" to keep both sides happy.
25463 (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
25464 Set gl_absolute_header, not gl_full_header_path.
25465 Set gl_cv_absolute_<header>, not gl_full_path_<header>.
25466 Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
25469 Merge from coreutils.
25471 2006-06-30 Paul Eggert <eggert@cs.ucla.edu>
25473 * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
25474 Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
25475 want to require the building of c-strtod.o.
25476 * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
25477 needs -lm directly.
25478 * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
25480 2006-06-19 Paul Eggert <eggert@cs.ucla.edu>
25482 * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
25483 --as-needed option if available. Problem reported by Albert Chin in
25484 <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
25485 However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
25486 cc merely issues a bunch of annoying warnings for --as-needed
25487 (this problem was reported by Bob Proulx). Also, try linking with
25488 -lm to detect a bug in binutils 2.16 (this problem was reported
25489 by Ralf Wildenhues).
25491 2006-06-18 Jim Meyering <jim@meyering.net>
25493 Test for a bug that causes glibc's getcwd to suffer a failed assertion.
25494 * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
25496 * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
25497 also check for glibc-2.4's abort-inducing bug.
25499 * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
25500 Low-probability clean-up should be to use rmdir to get rid of
25501 the just-created directory, not unlink.
25503 * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
25504 configure fail, and request a bug report to inform us about it.
25505 Add a comment that, barring reports to the contrary, in 2007 we'll
25506 assume ftruncate is universally available.
25508 2006-04-17 Paul Eggert <eggert@cs.ucla.edu>
25510 * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
25512 2006-03-12 Jim Meyering <jim@meyering.net>
25514 * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
25515 * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
25516 * m4/same.m4 (gl_SAME): Likewise.
25517 * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
25519 2006-03-11 Eric Blake <ebb9@byu.net>
25521 * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
25522 * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
25523 * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
25524 (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
25526 2006-07-03 Paul Eggert <eggert@cs.ucla.edu>
25528 * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
25529 MacOS X 10.4.6. Don't mention <sys/int_types.h>. Problems
25530 reported by Mark D. Baushke, one in
25531 <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
25533 Merge from coreutils.
25535 * lib/.cppi-disable: Add stdint_.h.
25536 * lib/.cvsignore: Add stdint.h.
25538 2006-06-30 Paul Eggert <eggert@cs.ucla.edu>
25540 * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
25541 both double and long double versions.
25542 (XSTRTOD): Renamed from xstrtod. Use DOUBLE internally.
25543 * lib/xstrtold.c: New file.
25544 * lib/xstrtod.h (xstrtold): New decl.
25546 2006-05-22 Paul Eggert <eggert@cs.ucla.edu>
25548 * lib/filemode.c (setst): Remove.
25549 (strmode): Rewrite to avoid setst. This makes the code shorter,
25550 (arguably) clearer, and the generated code is a bit smaller on my
25551 Debian GNU/Linux stable x86 host.
25553 2006-04-17 Paul Eggert <eggert@cs.ucla.edu>
25555 * lib/filemode.c: Include "filemode.h" first, to test the interface.
25556 Assume that filemode.h includes sys/types.h and sys/stat.h.
25557 (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
25558 (ftypelet): Reorder to put common cases first, for efficiency.
25559 Add 'P', 'w'. Remove 'M', since it's now the caller's responsibility
25561 (strmode): Renamed from mode_string, and now stores 12 bytes instead
25562 of 10, for compatibility with FreeBSD. All callers changed.
25563 (filemodestring): Now stores 12 bytes instead of 10, and sets file
25564 types that can't be deduced solely from st_mode. First arg is now a
25566 * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
25567 (strmode): Renamed from mode_string.
25568 (filemodestring): New decl.
25569 * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
25570 (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
25572 (S_ISPORT, S_ISWHT): New macros, if not already defined.
25574 2006-04-12 Paul Eggert <eggert@cs.ucla.edu>
25576 * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
25577 fsusage.h now does that. Include fsusage.h first, to test interface.
25578 Prefer statvfs if it works, since it's blessed by POSIX. Attempt
25579 at most one method (the old code could have generated decls that
25580 didn't conform to C89, not that this was ever exercised).
25581 * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
25583 2006-03-19 Jim Meyering <jim@meyering.net>
25585 Work even in a chroot where d_ino values for entries in "/"
25586 don't match the stat.st_ino values for the same names.
25587 * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
25588 number, iterate through all entries again, using lstat instead.
25589 Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
25590 Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
25592 * lib/getcwd.c (__getcwd): Clarify a comment.
25593 Use memcpy in place of a call to strcpy.
25595 2006-03-12 Jim Meyering <jim@meyering.net>
25597 * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
25598 matches that of the current directory (which we're about to chdir ".."
25599 out of), then save the dev-ino of the parent, instead.
25601 * lib/same-inode.h (SAME_INODE): New file/macro.
25602 * lib/chdir-safer.c (SAME_INODE): Remove definition.
25603 Include "same-inode.h", instead.
25604 * lib/same.c: Likewise.
25605 * lib/cycle-check.h: Include "same-inode.h".
25606 (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
25607 * lib/cycle-check.c (SAME_INODE): Remove definition.
25608 * lib/root-dev-ino.h: Include "same-inode.h".
25610 2006-03-11 Eric Blake <ebb9@byu.net>
25612 * lib/same.c (same_name): s/base_name/last_component/
25613 * lib/backupfile.c (check_extension, numbered_backup): Likewise.
25614 * lib/filenamecat.c (file_name_concat): Likewise.
25616 2006-03-11 Eric Blake <ebb9@byu.net>,
25617 Paul Eggert <eggert@cs.ucla.edu>
25619 * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
25620 [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
25622 (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
25623 platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
25624 (last_component): New method.
25625 * lib/dirname.c (dir_len): Determine when drive letters need a
25626 subsequent slash. Preserve // when it is special.
25627 (dir_name): Don't append dot when drive letter is absolute.
25628 [TEST_DIRNAME]: Move into a full-blown gnulib test.
25629 * lib/basename.c (base_name): New semantics - malloc the result.
25630 Preserve // when it is special. Preserve relative files that look
25631 like drive letters.
25632 (base_len): Preserve // when it is special.
25633 (last_component): New method, similar to old base_name semantics.
25634 * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
25635 base_name. Strip redundant slashes from ///.
25637 2006-07-03 Jim Meyering <jim@meyering.net>
25639 * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
25640 macro is used before the first cycle_check call.
25642 2006-07-03 Eric Blake <ebb9@byu.net>
25644 * modules/dirname (Depends-on): Add xstrndup.
25646 2006-07-02 Paul Eggert <eggert@cs.ucla.edu>
25648 * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
25649 test cases, so that config.log is a bit easier to follow.
25651 2006-07-02 Paul Eggert <eggert@cs.ucla.edu>
25653 * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
25654 both are 64 bits, since this seems to be the tradition, and this
25655 prevents gcc -Wformat from warning about usages with PRIuMAX. If
25656 we ever run into a host that prefers long long to long in this
25657 case, we'll need another configure-time test. Problem reported by
25660 2006-07-02 Eric Blake <ebb9@byu.net>
25662 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
25664 2006-07-01 Paul Eggert <eggert@cs.ucla.edu>
25666 * modules/inttypes (Depends-on): No longer depends on stdint.
25667 * modules/stdint (Description): Say more about assumptions.
25668 Say that the fast types might differ. Say macros are used.
25669 (Files): Remove m4/size_max.m4, m4/wchar_t.m4. Add m4/longlong.m4.
25670 (Makefile.am): Revise list of substituted symbols to match
25672 * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
25673 (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
25674 * tests/test-stdint.c (verify_same_types)
25675 [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
25676 the code conforms to C99/C89.
25677 Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
25678 Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
25680 2006-07-01 Paul Eggert <eggert@cs.ucla.edu>
25682 * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
25683 but fix a bug, by requiring at least 64 bits.
25684 * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
25685 * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
25686 AC_TYPE_LONG_LONG_INT. This macro is obsolete and will go soon.
25687 * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG) Likewise.
25689 * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
25690 changes. Make 2.59 a prerequisite. Check and substitute for
25691 HAVE_LONG_LONG_INT. Rely on Autoconf to check for stdint.h and
25692 inttypes.h. Do not use special include files; just use the
25693 defaults. Check for sys/inttypes.h and sys/bitypes.h in the usual
25694 way now. Remove no-longer-needed tests for HAVE_LONG_64BIT,
25695 HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
25696 uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
25697 int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
25698 uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
25699 int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
25700 uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
25701 uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
25702 UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
25703 INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
25704 UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
25705 UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
25706 UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
25707 UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
25708 INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
25709 INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
25710 UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
25711 INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
25712 SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
25713 WINT_MAX. Check for C99 conformance more strictly, by detecting
25714 bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9. On the other hand do
25715 not check for things that C99 does not require, e.g., int8_t. If
25716 a test isn't needed unless <stdint.h> isn't working, and is
25717 unlikely to be needed for any other reason, then don't do it
25718 unless <stdint.h> isn't working. Do not check for ptrdiff_t or
25719 size_t, since we assume C89 freestanding at least. Do not check
25720 for sig_atomic_t, wchar_t, or wint_t, since the code now does
25721 the right thing even if the types are not defined. Instead use:
25722 (gl_STDINT_TYPE_PROPERTIES): New macro.
25723 (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove. Don't bother
25724 testing whether <sys/types.h> clashes, as Autoconf does this for
25725 us now. All uses removed.
25726 (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
25727 (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
25728 (gl_CHECK_TYPE_SAME):
25729 Remove; no longer needed.
25730 (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
25731 exists, since we'll return 0 anyway in that case.
25732 (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
25734 2006-07-01 Paul Eggert <eggert@cs.ucla.edu>
25736 * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
25737 possible collision with system files.
25738 (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
25739 __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
25740 WCHAR_MIN and WCHAR_MAX in this case.
25741 (<stddef.h>): Do not include; no longer needed.
25742 (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
25743 (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
25744 (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
25745 !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
25746 && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
25747 (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
25748 __c99]: Define, to work around IRIX <stdint.h> incompatibility.
25749 (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
25750 !defined(__c99))]: Include in this case too, since it's harmless
25752 (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
25753 dangerous to do so.
25754 (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
25755 @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
25756 (_STDINT_MIN, _STDINT_MAX): New macros.
25757 (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
25758 (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
25759 (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
25760 (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
25761 (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
25762 (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
25763 macros, not typedefs; this simplifies things quite a bit.
25764 Use long int for all types narrower than int64_t.
25765 (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
25766 Define in terms of long long int or int64_t or long int,
25767 not int64_t or int32_t. This saves some compile-time testing.
25768 (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
25769 (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
25770 (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
25771 (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
25772 (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
25773 (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
25774 (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
25775 (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
25776 (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
25777 (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
25778 (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
25779 (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
25780 undef any previous version and define our own version, for
25781 simplicity and consistency with the new macros for types.
25782 (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
25783 (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
25784 Simplify definitions by using _STDINT_MIN and _STDINT_MAX
25785 where appropriate. Rely on new symbols @PTRDIFF_T_SUFFIX@,
25786 @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
25787 @WINT_T_SUFFIX@ to keep things simple here.
25788 (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
25789 Simplify by assuming typical 8/16/32/64 host, since we're
25790 already doing that elsewhere anyway.
25791 Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
25792 and assume long long int is 64 bits if available. This
25793 speeds up 'configure'.
25795 2006-07-01 Eric Blake <ebb9@byu.net>
25797 * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
25798 Reported by Andreas Buening.
25800 2006-07-01 Eric Blake <ebb9@byu.net>
25802 * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
25804 2006-06-30 Jim Hyslop <jhyslop@dreampossible.ca> (tiny change)
25806 * lib/getaddrinfo.c: fixed typo
25808 2006-06-29 Jim Meyering <jim@meyering.net>
25810 * modules/strftime (Maintainer): Add my name, since with the
25811 FPRINTFTIME changes strftime.c has forked from glibc.
25813 2006-06-29 Eric Blake <ebb9@byu.net>
25815 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
25817 2006-06-29 Eric Blake <ebb9@byu.net>
25819 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
25821 2006-06-29 Eric Blake <ebb9@byu.net>
25823 * lib/stat_.h: New file.
25825 2006-06-29 Eric Blake <ebb9@byu.net>
25827 * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
25828 unused static function.
25830 2006-06-29 Eric Blake <ebb9@byu.net>
25832 * doc/functions.texi (Function Portability): Document missing lstat
25835 2006-06-29 Eric Blake <ebb9@byu.net>
25837 * MODULES.html.sh: Add sys_stat.
25838 * modules/sys_stat: New module.
25839 * modules/mkstemp (Depends-on): Add sys_stat.
25841 2006-06-29 Derek R. Price <derek@ximbiot.com>
25843 * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
25845 2006-06-29 Derek R. Price <derek@ximbiot.com>
25847 * m4/c-bs-a.m4: Removed.
25849 2006-06-29 Derek R. Price <derek@ximbiot.com>
25851 * lib/strftime.c: Assume strftime() exists.
25853 2006-06-29 Derek Price <derek@ximbiot.com>
25855 * modules/c-bs-a: Removed - \a is C89.
25856 * MODULES.html.sh: Remove c-bs-a.
25858 2006-06-29 Bruno Haible <bruno@clisp.org>
25860 * modules/wcwidth (License): Change to LGPL.
25862 2006-06-28 Simon Josefsson <jas@extundo.com>
25864 * tests/test-getaddrinfo.c: Test getnameinfo too. Call WSAStartup
25867 * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
25870 2006-06-28 Simon Josefsson <jas@extundo.com>
25872 * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
25874 2006-06-28 Simon Josefsson <jas@extundo.com>
25876 * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
25877 functions there. It will succeed on Windows XP, but on Windows
25878 2000 and (presumably) earlier, it will fail, and use the internal
25880 (use_win32_p): New function.
25881 (getaddrinfo): Use strtoul on servname, to support numeric ports.
25882 Support AI_NUMERICSERV to disable getservbyname.
25883 (getnameinfo): New function, only supports
25884 NI_NUMERICHOST|NI_NUMERICSERV for now.
25886 * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
25887 only have some of them. Add AI_NUMERICSERV. Add prototype for
25890 2006-06-28 Eric Blake <ebb9@byu.net>
25892 * modules/wcwidth: New file.
25893 * modules/mbchar (Depends-on): Add wcwidth.
25894 * modules/mbswidth (Depends-on): Add wcwidth.
25895 * MODULES.html.sh: Add wcwidth.
25897 2006-06-28 Eric Blake <ebb9@byu.net>
25899 * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
25900 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
25902 2006-06-28 Eric Blake <ebb9@byu.net>
25904 * lib/xvasprintf.h: Fix comments.
25906 2006-06-28 Eric Blake <ebb9@byu.net>
25908 * lib/mbchar.h (wcwidth): Include wcwidth.h.
25909 * lib/mbswidth.c (wcwidth): Move from here...
25910 * lib/wcwidth.h: ...to this new file.
25912 2006-06-28 Derek R. Price <derek@ximbiot.com>
25914 * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
25916 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
25918 * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
25920 2006-06-28 Derek R. Price <derek@ximbiot.com>
25922 * lib/savedir.c (CLOSEDIR): Remove. All uses changed to closedir.
25923 Autoconf 2.60 says this stuff was obsolete.
25925 2006-06-28 Bruno Haible <bruno@clisp.org>
25927 * modules/wcwidth (Files): Add m4/wchar_t.m4.
25929 2006-06-28 Bruno Haible <bruno@clisp.org>
25931 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
25934 2006-06-28 Bruno Haible <bruno@clisp.org>
25936 * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
25937 declaration for wcwidth.
25938 * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
25940 2006-06-28 Bruno Haible <bruno@clisp.org>
25942 * lib/mkdtemp.c [MINGW]: Include <io.h>.
25943 (mkdir): Define using _mkdir.
25945 2006-06-28 Bruno Haible <bruno@clisp.org>
25947 * lib/getaddrinfo.h: Fix POSIX URL.
25948 * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
25950 (use_win32_p): Make static.
25951 (getaddrinfo): Reject service name if it is empty or does not consist
25952 solely of decimal digits, or if its value is > 65535.
25953 (getnameinfo): Remove useless casts.
25955 2006-06-27 Simon Josefsson <jas@extundo.com>
25957 * modules/sys_select: New file, suggested by Bruno Haible, Paul
25958 Eggert and Martin Lambers.
25960 2006-06-27 Simon Josefsson <jas@extundo.com>
25962 * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
25963 Eggert and Martin Lambers.
25965 2006-06-27 Bruno Haible <bruno@clisp.org>
25967 * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
25968 result to 0, not to empty.
25969 Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
25971 2006-06-27 Bruno Haible <bruno@clisp.org>
25973 * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
25975 2006-06-26 Simon Josefsson <jas@extundo.com>
25977 * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
25980 2006-06-26 Paul Eggert <eggert@cs.ucla.edu>
25982 * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
25983 bug in IBM C V6 for AIX. Problem reported by Larry Jones in
25984 <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
25986 2006-06-26 Mark D. Baushke <mdb@gnu.org>
25988 * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
25990 2006-06-26 Bruno Haible <bruno@clisp.org>
25992 * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
25994 2006-06-26 Bruno Haible <bruno@clisp.org>
25996 * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
25998 2006-06-26 Bruno Haible <bruno@clisp.org>
26000 * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
26001 SGI C compiler in pre-C99 mode.
26002 Suggested by Mark D. Baushke and Larry Jones.
26004 2006-06-26 Bruno Haible <bruno@clisp.org>
26006 * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
26008 Reported by Mark D. Baushke and Larry Jones.
26010 2006-06-26 Bruno Haible <bruno@clisp.org>
26012 * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
26014 Suggested by Mark D. Baushke and Larry Jones.
26016 2006-06-23 Simon Josefsson <jas@extundo.com>
26017 Bruno Haible <bruno@clisp.org>
26019 * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
26020 Emit mostlyclean-local rule.
26021 (func_emit_tests_Makefile_am): Likewise.
26022 * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
26024 2006-06-23 Mark D. Baushke <mdb@gnu.org>
26026 * lib/stdint_.h: Treat BSD/OS like OpenBSD.
26028 2006-06-23 Bruno Haible <bruno@clisp.org>
26030 * tests/test-stdint.c: Update to match ISO C 99 Technical
26033 2006-06-23 Bruno Haible <bruno@clisp.org>
26035 * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
26037 2006-06-23 Bruno Haible <bruno@clisp.org>
26039 * lib/stdint_.h: Treat IRIX like OpenBSD.
26041 2006-06-23 Bruno Haible <bruno@clisp.org>
26043 * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
26044 ISO C 99 Technical Corrigendum 1.
26046 2006-06-22 Simon Josefsson <jas@extundo.com>
26048 * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
26051 2006-06-22 Paul Eggert <eggert@cs.ucla.edu>
26053 * lib/glob.c (collated_compare): Remove 'const' uses that weren't
26054 needed. Some compiler complained about some of them. Problem reported
26056 <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
26058 2006-06-21 Simon Josefsson <jas@extundo.com>
26060 * tests/test-getaddrinfo.c: New file.
26062 * modules/getaddrinfo-tests: New file.
26064 * MODULES.html.sh: Add inet_pton.
26066 * modules/inet_pton: New file.
26068 2006-06-21 Simon Josefsson <jas@extundo.com>
26070 * m4/getaddrinfo.m4: Don't define WINVER. Look for gethostbyname in
26071 -lws2_32 too. Fixes getaddrinfo on Windows 2000, with the price
26072 of using the (limited) gnulib implementation on Windows XP.
26074 * m4/inet_pton.m4: New file.
26076 2006-06-21 Simon Josefsson <jas@extundo.com>
26078 * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
26081 * lib/socket_.h: Don't define WINVER.
26083 * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
26084 slightly modified to work in gnulib.
26086 2006-06-21 Simon Josefsson <jas@extundo.com>
26088 * doc/gnulib.texi (Windows sockets): Add.
26090 2006-06-21 Paul Eggert <eggert@cs.ucla.edu>
26092 * lib/read-file.c (fread_file): Start with buffer allocation of
26093 0 bytes rather than 1 byte; this simplifies the code.
26094 Don't invoke feof; it's not needed. Refactor to avoid duplicate
26095 code to free buffer and save/restore errno.
26096 (internal_read_file): Remove unused local.
26098 2006-06-20 Paul Eggert <eggert@cs.ucla.edu>
26100 * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
26101 <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
26102 Problem reported by Denis Excoffier in
26103 <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
26105 2006-06-19 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
26107 * modules/sys_socket, modules/socklen: Include sys/types since
26108 FreeBSD 4.x's sys/socket.h needs it.
26110 2006-06-19 Simon Josefsson <jas@extundo.com>
26112 * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
26114 2006-06-19 Paul Eggert <eggert@cs.ucla.edu>
26116 * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
26118 2006-06-19 Bruno Haible <bruno@clisp.org>
26120 * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
26121 and FULL_PATH_INTTYPES_H in angle brackets.
26122 Reported by Mark D. Baushke <mdb@gnu.org>.
26124 2006-06-17 Eric Blake <ebb9@byu.net>
26126 * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
26129 2006-06-17 Bruno Haible <bruno@clisp.org>
26131 * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
26134 2006-06-17 Bruno Haible <bruno@clisp.org>
26136 * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
26137 whether errno is declared. Assume <errno.h> declares errno.
26139 2006-06-17 Bruno Haible <bruno@clisp.org>
26141 * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
26143 2006-06-17 Bruno Haible <bruno@clisp.org>
26145 * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
26146 problem on Solaris 2.5.1.
26148 2006-06-16 Eric Blake <ebb9@byu.net>
26150 * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
26151 * lib/unicodeio.c [!defined errno]: Likewise.
26152 * lib/strtol.c [!defined errno]: Likewise.
26153 * lib/strtod.c [!defined errno]: Likewise.
26155 2006-06-15 Eric Blake <ebb9@byu.net>
26157 * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
26159 2006-06-15 Eric Blake <ebb9@byu.net>
26161 * config/srclist.txt (ssize_t.m4): Lose sync.
26163 2006-06-15 Bruno Haible <bruno@clisp.org>
26165 * modules/stdint (Files): Include m4/full-header-path.m4,
26166 m4/size_max.m4, m4/wchar_t.m4.
26167 (Makefile.am): Many more substitutions.
26168 * modules/stdint-tests: New file.
26169 * tests/test-stdint.c: New file.
26171 2006-06-15 Bruno Haible <bruno@clisp.org>
26173 * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
26174 (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
26175 gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
26176 gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
26177 gl_CHECK_TYPE_SAME): New macros.
26179 2006-06-15 Bruno Haible <bruno@clisp.org>
26181 * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
26183 2006-06-15 Bruno Haible <bruno@clisp.org>
26185 * lib/stdint_.h: Rewritten to be fully auto-configured.
26186 Fixes bug on HP-UX/IA64.
26188 2006-06-11 Paul Eggert <eggert@cs.ucla.edu>
26190 * lib/getdate.y (__attribute__): Don't define if already defined.
26191 Problem reported by Larry Jones.
26192 * lib/utimens.c (__attribute__): Likewise.
26194 2006-06-04 Paul Eggert <eggert@cs.ucla.edu>
26196 * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
26197 reported by Andreas Schwab.
26199 2006-05-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
26200 Bruno Haible <bruno@clisp.org>
26202 * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
26203 check for the declaration of strnlen and a run test that exposes the
26204 AIX 5.1 strnlen bug. In the failure case, #define strndup to
26207 2006-05-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
26208 Bruno Haible <bruno@clisp.org>
26210 * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
26212 2006-05-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
26214 * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
26215 compile test, for Tru64 4.0D.
26217 2006-05-28 Karl Berry <karl@gnu.org>
26219 * config/srclist.txt (printf-args.c): lose sync.
26221 2006-05-26 Martin Lambers <marlam@marlam.de>
26223 * lib/getpass.c: Updates the test for the native W32 API, and adds
26224 missing includes, thus fixing compilation warnings.
26226 2006-05-25 Sergey Poznyakoff <gray@gnu.org.ua>
26228 * lib/exclude.c (exclude_fnmatch): New function.
26229 (excluded_file_name): Call exclude_fnmatch.
26230 * lib/exclude.h (excluded_file_name): New prototype
26232 2006-05-25 Paul Eggert <eggert@cs.ucla.edu>
26234 * lib/tempname.c (small_open, large_open): New macros.
26235 (__open, __open64) [!_LIBC]: Remove.
26236 (__gen_tempname): Use small_open and large_open instead of __open
26237 and __open64. This fixes a portability bug on HP-UX 11.11i
26238 reported by Simon Wing-Tang in
26239 <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
26241 2006-05-24 Bruno Haible <bruno@clisp.org>
26243 * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
26244 TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
26245 Reported by Thorsten Maerz <torte@netztorte.de> via
26246 Aaron Stone <aaron@serendipity.cx>.
26248 2006-05-19 Paul Eggert <eggert@cs.ucla.edu>
26250 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
26251 gl_ rather than jm_. Link, don't run, so that cross-compiles are
26252 allowed. Check that resulting type is arithmetic. Move AC_REQUIRE
26253 and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
26254 not really conditional on the cache.
26255 (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
26257 2006-05-19 Paul Eggert <eggert@cs.ucla.edu>
26259 * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
26260 Use the usual Autoconf way to include <time.h> and/or sys/time.h.
26261 (my_usleep): Don't mishandle maximum value.
26263 2006-05-19 Jim Meyering <jim@meyering.net>
26265 * lib/getugroups.c: Correct an outdated comment. From Bruno Haible.
26267 2006-05-17 Bruno Haible <bruno@clisp.org>
26269 Cygwin portability.
26270 * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
26272 2006-05-17 Bruno Haible <bruno@clisp.org>
26274 * lib/stdint_.h: Fix recognition of Cygwin.
26276 2006-05-15 Bruno Haible <bruno@clisp.org>
26278 * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
26279 on libtool patch by Ralf Wildenhues.
26281 2006-05-14 Paul Eggert <eggert@cs.ucla.edu>
26283 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
26284 test for C99 conformance; (bool) 0.5 is an integer constant
26285 expression, but (bool) -0.5 is not. Problem reported by Fedor
26286 Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
26288 2006-05-11 Simon Josefsson <jas@extundo.com>
26290 * m4/xvasprintf.m4: Fix obvious typo.
26292 2006-05-11 Jim Meyering <jim@meyering.net>
26294 * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/. From
26297 2006-05-10 Simon Josefsson <jas@extundo.com>
26299 * lib/md4.c: Typo fix, update copyright years.
26300 (K1, K2): Don't use L because it turn computations into 64-bit on
26303 2006-05-10 Paul Eggert <eggert@cs.ucla.edu>
26305 * lib/crc.c (crc32_update): Remove unnecessary L suffix.
26306 * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
26307 unwanted sign propagation, e.g., on hosts with 64-bit int.
26308 There still are some problems with reeelly weird theoretical hosts
26309 (e.g., 33-bit int) but it's not worth worrying about now.
26310 * lib/sha1.c (rol): Likewise.
26311 (K1, K2, K3, K4): Remove unnecessary L suffix.
26313 2006-05-10 Bruno Haible <bruno@clisp.org>
26315 * lib/des.c: Cast to avoid warnings.
26317 2006-05-09 Bruno Haible <bruno@clisp.org>
26319 * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
26320 (Depends-on): Depend also on xsize, stdarg.
26321 (configure.ac): Add gl_XVASPRINTF.
26323 2006-05-09 Bruno Haible <bruno@clisp.org>
26325 * m4/xvasprintf.m4: New file.
26327 2006-05-09 Bruno Haible <bruno@clisp.org>
26329 * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
26330 (EOVERFLOW): Define fallback value.
26331 (xstrcat): New function.
26332 (xvasprintf): Recognize the special case of a string concatenation.
26334 2006-05-08 Eric Blake <ebb9@byu.net>
26336 * gnulib-tool (func_version): Base copyright year on CVS date.
26337 (func_emit_copyright_notice): New function.
26338 (func_emit_lib_Makefile_am): Use it.
26339 (func_emit_tests_Makefile_am): Likewise.
26340 (func_import): Likewise.
26342 2006-05-08 Bruno Haible <bruno@clisp.org>
26344 * modules/stdarg: New file.
26345 * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
26347 2006-05-08 Bruno Haible <bruno@clisp.org>
26349 * m4/stdarg.m4: New file, from GNU gettext.
26351 2006-05-08 Bruno Haible <bruno@clisp.org>
26353 * config/srclist.txt (build-aux/config.rpath): different from latest
26356 2006-05-08 Bruno Haible <bruno@clisp.org>
26358 * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
26360 2006-05-05 Jim Meyering <jim@meyering.net>
26362 * m4/warning.m4: New file, derived from bison's file by the same name.
26364 2006-05-03 Bruno Haible <bruno@clisp.org>
26366 * lib/stdint_.h: Shorter URL.
26367 * lib/inttypes.h: Likewise.
26369 2006-05-02 Paul Eggert <eggert@cs.ucla.edu>
26371 * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
26373 2006-05-02 Paul Eggert <eggert@cs.ucla.edu>
26375 * lib/verify.h: Document the internals better. Most of this change
26376 was written by Bruno Haible.
26378 2006-05-02 Paul Eggert <eggert@cs.ucla.edu>
26380 * doc/verify.texi: New file, partly based on a proposal by
26383 2006-05-02 Bruno Haible <bruno@clisp.org>
26385 * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
26387 * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
26389 2006-04-29 Bruno Haible <bruno@clisp.org>
26391 * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
26392 Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
26394 2006-04-29 Bruno Haible <bruno@clisp.org>
26396 * gnulib-tool: Make --update option actually work.
26398 2006-04-29 Bruno Haible <bruno@clisp.org>
26400 * doc/gcd.texi: New file.
26401 * doc/gnulib.texi: Include it.
26403 2006-04-25 Paul Eggert <eggert@cs.ucla.edu>
26405 * lib/getdate.y (get_date): When adding relative date, start with the
26406 initial time, not with the result of the first mktime call.
26408 2006-04-25 Bruno Haible <bruno@clisp.org>
26410 * gnulib-tool (func_import): Output the include directives in three
26411 blocks, sorted separately.
26412 Reported by Ben Pfaff <blp@cs.stanford.edu>.
26414 2006-04-24 Paul Eggert <eggert@cs.ucla.edu>
26416 * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
26417 to define main with arguments, for C++. Reported by Eric Blake.
26418 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
26419 Prefer 'int main ()' to 'int main (void)', for C++.
26420 * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
26421 * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
26422 for 'main', for C99 and C++.
26424 2006-04-24 Paul Eggert <eggert@cs.ucla.edu>
26426 * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
26427 Don't assume that exit status -1 is valid.
26428 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
26429 * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
26430 * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
26431 * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
26432 * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
26433 * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
26434 not AC_TRY_RUN. Use return, not exit. Don't assume that
26435 functions can be used without declaring them, or that you can
26436 exit with status -1.
26437 * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
26439 2006-04-24 Karl Berry <karl@gnu.org>
26441 * config/srclist.txt (longdouble.m4): sync lost.
26443 2006-04-24 Eric Blake <ebb9@byu.net>
26445 * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
26447 2006-04-24 Bruno Haible <bruno@clisp.org>
26449 * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
26450 poll() implementation in AIX.
26451 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
26453 2006-04-24 Bruno Haible <bruno@clisp.org>
26455 * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
26456 assigned exactly once.
26458 2006-04-23 Claudio Fontana <claudio@gnu.org>
26459 Bruno Haible <bruno@clisp.org>
26461 * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
26462 * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
26465 2006-04-23 Bruno Haible <bruno@clisp.org>
26467 * modules/copy-file: Depend on unistd.
26468 * modules/execute: Likewise.
26469 * modules/fatal-signal: Likewise.
26470 * modules/findprog: Likewise.
26471 * modules/mkdtemp : Likewise.
26472 * modules/pipe: Likewise.
26473 * modules/wait-process: Likewise.
26475 2006-04-23 Bruno Haible <bruno@clisp.org>
26477 * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
26478 condition was already detected.
26479 Reported by Ben Pfaff <blp@cs.stanford.edu>.
26481 2006-04-23 Bruno Haible <bruno@clisp.org>
26483 * lib/copy-file.c: Include <unistd.h> unconditionally.
26484 * lib/execute.c: Likewise.
26485 * lib/fatal-signal.c: Likewise.
26486 * lib/findprog.c: Likewise.
26487 * lib/mkdtemp.c: Likewise.
26488 * lib/pipe.h: Likewise.
26489 * lib/pipe.c: Likewise.
26490 * lib/wait-process.h: Likewise.
26492 2006-04-23 Bruno Haible <bruno@clisp.org>
26494 * gnulib-tool (func_usage): Fix --import description. Document
26496 (func_import): Create temporary file in a temporary directory, if
26497 --dry-run is specified. Silence errors from 'grep' when there are no
26498 m4 files in $m4dir.
26499 (func_create_testdir): Silence errors from 'grep' when there are no
26500 m4 files in $m4dir.
26501 Reported by Karl Berry <karl@freefriends.org>.
26503 2006-04-20 Bruno Haible <bruno@clisp.org>
26505 * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
26506 one argument, so that the code will be portable to Autoconf 2.60.
26507 * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
26508 * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
26509 * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
26511 2006-04-19 Derek Price <derek@ximbiot.com>
26512 Eric Blake <ebb9@byu.net>
26514 * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
26515 rather than "/full/path.h". Update comment to match. Shorten &
26516 generalize m4_translit call via AS_TR_CPP.
26518 2006-04-19 Derek Price <derek@ximbiot.com>
26519 Eric Blake <ebb9@byu.net>
26521 * lib/inttypes.h: Correct grammar in comment.
26523 2006-04-18 Derek Price <derek@ximbiot.com>
26524 Paul Eggert <eggert@cs.ucla.edu>
26526 * modules/inttypes: New file.
26527 * modules/strtoimax, modules/strtoumax: Depend on inttypes.
26529 2006-04-18 Derek Price <derek@ximbiot.com>
26530 Paul Eggert <eggert@cs.ucla.edu>
26532 * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
26535 2006-04-18 Derek Price <derek@ximbiot.com>
26536 Paul Eggert <eggert@cs.ucla.edu>
26538 * lib/inttypes.h: New file.
26539 * lib/strtoimax.c: Assume <inttypes.h>.
26541 2006-04-15 Paul Eggert <eggert@cs.ucla.edu>
26543 * lib/utimens.c (futimens): glibc futimesat messes up if /proc
26544 isn't mounted. Problem reported by Kir Kolyshkin.
26546 2006-04-13 Paul Eggert <eggert@cs.ucla.edu>
26548 * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
26549 RE_ENABLE_I18N is not defined. Problem reported by Mark D. Baushke via
26551 * lib/regex.h (RE_DUP_MAX): Update comment to match current
26554 2006-04-12 Eric Blake <ebb9@byu.net>
26556 * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
26557 is now done automatically by the corresponding Autoconf macro.
26559 2006-04-11 Paul Eggert <eggert@cs.ucla.edu>
26561 * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
26564 2006-04-09 Paul Eggert <eggert@cs.ucla.edu>
26566 Merge regex changes from libc, removing some of our
26567 POSIX-conformance changes that were rejected and redoing them in a
26568 less-intrusive way.
26570 * lib/regcomp.c (re_compile_internal, init_dfa):
26571 Length arg is now size_t, not Idx. All uses changed.
26572 (peek_token): Forward decl now says internal_function.
26573 (__re_error_msgid, __re_error_msgid_idx):
26574 Now static rather than extern with attribute_hidden.
26575 (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
26576 For some reason libc prefers K&R style defns for external functions.
26577 (regerror) [!defined _LIBC]: Likewise.
26578 (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
26579 (seek_collating_symbol_entry, lookup_collation_sequence_value):
26580 (build_range_exp, build_collating_symbol):
26581 Use K&R-style defn.
26582 (re_compile_fastmap): Use '\0' to memset, not 0.
26583 (utf8_sb_map): Make the calculations more obvious.
26584 (init_dfa, parse_bracket_exp, build_charclass_op):
26585 Call calloc and cast result, as glibc does.
26586 (init_word_char, fetch_token, peek_token, peek_token_bracket):
26587 (build_range_exp, build_collating_symbol):
26588 Now internal functions.
26590 * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
26592 * lib/regex.h (__USE_GNU_REGEX): New macro. Don't depend on
26593 _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
26594 Don't depend on VMS; depend on __VMS instead, for POSIX
26595 namespace cleanness.
26596 (regoff_t): Define to ssize_t, not long int.
26598 Remove the REG_ macros named below. Instead, make the old names
26599 (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
26601 (REG_BACKSLASH_ESCAPE_IN_LISTS):
26602 (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
26603 (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
26604 (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
26605 (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
26606 (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
26607 (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
26608 (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
26609 (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
26610 (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
26611 (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
26612 (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
26613 (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
26614 (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
26615 (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
26616 (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
26617 (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
26619 Remove. All uses replaced by the old RE_* names.
26620 (RE_BACKSLASH_ESCAPE_IN_LISTS):
26621 (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
26622 (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
26623 (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
26624 (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
26625 (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
26626 (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
26627 (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
26628 (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
26629 (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
26630 (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
26631 Don't bother having these macros be independent of each others'
26632 values, since they no longer exist in the POSIX name space.
26634 Rename the following member names back to their old names,
26635 unless !__USE_GNU_REGEX. All uses changed back.
26636 (buffer): Renamed from re_buffer.
26637 (allocated): Renamed from re_allocated.
26638 (used): Renamed from re_used.
26639 (syntax): Renamed from re_syntax.
26640 (fastmap): Renamed from re_fastmap.
26641 (translate): Renamed from re_translate.
26642 (can_be_null): Renamed from re_can_be_null.
26643 (regs_allocated): Renamed from re_regs_allocated.
26644 (fastmap_accurate): Renamed from re_fastmap_accurate.
26645 (no_sub): Renamed from re_no_sub.
26646 (not_bol): Renamed from re_not_bol.
26647 (not_eol): Renamed from re_not_eol.
26648 (newline_anchor): Renamed from re_newline_anchor.
26649 (num_regs): Renamed from rm_num_regs.
26650 (start): Renamed from rm_start.
26651 (end): Renamed from rm_end.
26653 (free_state): Move up a bit.
26655 * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
26656 #define to be empty.
26657 (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
26658 when that is what is intended.
26659 (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
26660 (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
26662 (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
26663 All uses changed back to re_malloc, etc. It's now the caller's
26664 responsibility to check for overflow; all callers changed.
26665 (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
26666 (re_x2nrealloc): Remove.
26667 (free_state): Remove decl.
26669 * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
26670 (re_set_registers, re_exec):
26671 Use K&R-style defn.
26673 2006-01-31 Roland McGrath <roland@redhat.com>
26675 * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
26676 Reported by Mike Frysinger <vapier@gentoo.org>.
26678 2006-01-15 Andreas Jaeger <aj@suse.de>
26681 * lib/regex_internal.c (re_string_reconstruct): Adjust for
26682 build_wcs_upper_buffer change.
26683 (build_wcs_upper_buffer): Change return type.
26685 2005-12-10 Ulrich Drepper <drepper@redhat.com>
26687 * lib/regex_internal.h: Include <stdint.h> if available.
26689 2005-12-06 Paolo Bonzini <bonzini@gnu.org>
26691 * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
26693 2005-10-14 Ulrich Drepper <drepper@redhat.com>
26695 * lib/regcomp.c: Adjust for changed secondary hash function.
26697 2005-09-30 Ulrich Drepper <drepper@redhat.com>
26699 * lib/regex.h: Pretty printing.
26700 Clean up namespace a bit.
26702 2005-09-30 Jakub Jelinek <jakub@redhat.com>
26704 * lib/regexec.c (update_cur_sifted_state, check_arrival,
26705 check_arrival_add_next_nodes): Avoid using uninitialized variable.
26707 2005-09-06 Paul Eggert <eggert@cs.ucla.edu>
26708 Ulrich Drepper <drepper@redhat.com>
26711 * lib/regex_internal.h (bitset_t): Renamed from bitset. All uses
26713 (bitset_word_t): Renamed from bitset_word. All uses changed.
26715 2005-09-22 Ulrich Drepper <drepper@redhat.com>
26718 * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
26719 * lib/regcomp.c: Remove unnecessary uses of
26720 unsigned RE_TRANSLATE_TYPE.
26721 * lib/regex_internal.h: Likewise.
26722 * lib/regex_internal.c: Likewise.
26723 * lib/regexec.c: Likewise.
26724 Based on a patch by Stepan Kasal <kasal@ucw.cz>.
26726 2005-09-07 Ulrich Drepper <drepper@redhat.com>
26728 * lib/regexec.c (find_recover_state): Remove unnecessary
26730 (transit_state_bkref): Make DFA a const pointer.
26731 (get_subexp): Likewise.
26732 (check_arrival): Likewise.
26733 (update_cur_sifted_state): Likewise.
26734 (re_search_internal): Likewise.
26735 (prune_impossible_nodes): Likewise.
26736 (acquire_init_state_context): Likewise.
26737 (proceed_next_node): Likewise.
26738 (set_regs): Likewise.
26739 (free_fail_stack_return): Likewise.
26740 (check_arrival_expand_ecl): Mark DFA parameter as const.
26741 (check_arrival_expand_ecl_sub): Likewise.
26742 (check_subexp_limits): Likewise.
26743 (sub_epsilon_src_nodes): Likewise.
26744 (add_epsilon_src_nodes): Likewise.
26745 (merge_state_array): Likewise.
26746 (update_regs): Likewise.
26747 (build_trtable): Likewise.
26748 (sift_states_backward): Mark MCTX parameter as const.
26749 (build_sifted_states): Likewise.
26750 (update_cur_sifted_state): Likewise.
26751 (sift_states_mkref): Likewise.
26752 (check_arrival_expand_ecl): Mark eclosure as const.
26753 (check_dst_limits_calc_pos_1): Likewise.
26754 * lib/regex_internal.h (re_match_context_t): Make dfa a const
26757 2005-09-06 Ulrich Drepper <drepper@redhat.com>
26759 * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
26760 (transit_state_sb): Likewise.
26761 (transit_state_mb): Likewise.
26762 (sift_states_iter_mb): Likewise.
26763 (check_arrival_add_next_nodes): Likewise.
26764 (check_node_accept_bytes): Change first parameter to pointer-to-const.
26765 [_LIBC] (re_search_2_stub): Use mempcpy.
26767 * lib/regex_internal.c (re_string_reconstruct): Avoid calling
26768 mbrtowc for very simple UTF-8 case.
26770 * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
26771 a pointer-to-const.
26772 (re_acquire_state_context): Likewise.
26773 * lib/regex_internal.h: Adjust prototypes.
26775 * lib/regex.c: Prevent using C++ compilers.
26777 * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
26778 (re_acquire_state_context): Likewise.
26780 2006-04-09 Paul Eggert <eggert@cs.ucla.edu>
26782 * modules/regex (Depends-on): Add ssize_t.
26784 2006-04-09 Paul Eggert <eggert@cs.ucla.edu>
26786 * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
26789 2006-04-09 Paul Eggert <eggert@cs.ucla.edu>
26791 * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
26793 2006-03-29 Mark D. Baushke <mdb@gnu.org>
26794 Bruno Haible <bruno@clisp.org>
26796 * lib/stdint_.h: On OpenBSD, don't redefine types already included in
26797 <sys/types.h> and <inttypes.h>.
26799 2006-03-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
26801 * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
26802 `__error_t_defined', so argp.h will not typedef the former.
26804 2006-03-25 Paul Eggert <eggert@cs.ucla.edu>
26806 * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
26807 REG_SYNTAX_EMACS, and REG_IGNORE_CASE. Settle for the traditional
26808 glibc names. Even if glibc is changed to conform to POSIX, the
26809 traditional names will be available anyway, since regex depends on
26810 the extensions module. Also, fix a longstanding typo in the
26811 implementation of Spencer ERE test #75 from grep 2.3. Problems
26812 reported by Emanuele Giaquinta. Also, change sense of cached
26813 variable, so that the message makes sense.
26815 2006-03-24 Simon Josefsson <jas@extundo.com>
26817 * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
26818 including some doc fixes.
26819 (base64_encode_alloc): Fix +1 bug on allocation failures.
26821 2006-03-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
26823 * lib/base64.c (base64_encode): Do not read past end of array with
26824 unsanitized input on systems with CHAR_BIT > 8.
26826 2006-03-24 Eric Blake <ebb9@byu.net>
26828 * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
26830 2006-03-22 Karl Berry <karl@gnu.org>
26832 * config/srclist.txt (*setenv.[ch]): get from coreutils.
26833 * config/srclistvars.sh (COREUTILS): new var.
26835 2006-03-17 Jim Meyering <jim@meyering.net>
26837 * m4/regex.m4 (gl_REGEX): Fix typo in last change:
26838 s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
26840 2006-03-16 Paul Eggert <eggert@cs.ucla.edu>
26842 * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
26843 no longer needs it. Instead, check that regoff_t is as least
26844 as wide as ptrdiff_t.
26846 Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
26847 so that our regex.h stays compatible with the installed regex.
26848 This is helpful for installers who configure --without-included-regex.
26849 Problem reported by Emanuele Giaquinta.
26851 2006-03-16 Paul Eggert <eggert@cs.ucla.edu>
26853 * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
26854 Typedef to long int, not to off_, as POSIX will likely change
26857 2006-03-15 Eric Blake <ebb9@byu.net>
26859 * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
26861 2006-03-13 Sergey Poznyakoff <gray@gnu.org.ua>
26863 * lib/argp-help.c (validate_uparams): Fix typo
26864 * lib/argp-parse.c (argp_default_options): Consistently begin help
26865 messages with a lowercase letter.
26867 2006-03-11 Paul Eggert <eggert@cs.ucla.edu>
26869 * lib/time_r.h (asctime_r, ctime_r): Remove. These functions can
26870 overrun buffers and shouldn't be used (much as gets shouldn't be
26872 * lib/time_r.c (asctime_r, ctime_r): Likewise.
26874 2006-03-08 Simon Josefsson <jas@extundo.com>
26876 * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
26877 suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
26879 2006-03-08 Simon Josefsson <jas@extundo.com>
26881 * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
26882 $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
26884 2006-03-08 Simon Josefsson <jas@extundo.com>
26886 * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
26887 signal that configure disabled the device.
26889 2006-03-08 Simon Josefsson <jas@extundo.com>
26891 * build-aux/maint.mk: Fix refresh-po, to handle no translated
26894 2006-03-07 Simon Josefsson <jas@extundo.com>
26896 * modules/getopt (Depends-on): Add unistd.
26898 * modules/unistd: New file.
26900 2006-03-07 Simon Josefsson <jas@extundo.com>
26902 * modules/gc-random: New file.
26904 2006-03-07 Simon Josefsson <jas@extundo.com>
26906 * m4/unistd_h.m4: New file.
26908 2006-03-07 Simon Josefsson <jas@extundo.com>
26910 * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
26911 test to be side-effect free by storing the result in the cache
26912 variable gl_cv_lib_readline, and moving the assignment of
26913 LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
26914 From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
26916 2006-03-07 Simon Josefsson <jas@extundo.com>
26918 * m4/gc-random.m4: New file, mostly from gc.m4. Warn instead of
26919 error on missing devices (the functions will return an error).
26921 * m4/gc.m4: Move random stuff to gc-random.m4
26923 2006-03-07 Simon Josefsson <jas@extundo.com>
26925 * lib/unistd_.h: New file.
26927 2006-03-07 Simon Josefsson <jas@extundo.com>
26929 * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
26931 2006-03-07 Paul Eggert <eggert@cs.ucla.edu>
26933 * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
26934 Problem reported by Juan Manuel Guerrero.
26936 2006-03-07 Paul Eggert <eggert@cs.ucla.edu>
26938 * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
26940 * lib/getlogin_r.c: Likewise.
26941 * lib/getlogin_r.h: Likewise.
26942 * lib/glob.c: Likewise.
26943 * lib/pagealign_alloc.c: Likewise.
26944 * lib/unistd_.h: Remove; no longer needed.
26946 2006-03-07 Paul Eggert <eggert@cs.ucla.edu>
26948 * MODULES.html.sh (Support for systems lacking POSIX:2001):
26950 * modules/c-stack (Depends-on): Add unistd.
26951 * modules/getlogin_r: Likewise.
26952 * modules/glob: Likewise.
26953 * modules/pagealign_alloc: Likewise.
26954 * modules/unistd (Files): Remove lib/unistd_.h.
26955 (EXTRA_DIST): Remove.
26956 (unistd.h): Create using 'echo' rather than 'cp', so that we don't
26958 (MOSTLYCLEANFILES): Remove unistd.h-t.
26960 2006-03-03 Simon Josefsson <jas@extundo.com>
26962 * build-aux/maint.mk: Add several syntax checks from CoreUtils.
26964 2006-03-03 Simon Josefsson <jas@extundo.com>
26966 * build-aux/maint.mk: Add refresh-po rule, based on ideas from
26969 2006-03-03 Simon Josefsson <jas@extundo.com>
26971 * build-aux/maint.mk: Add indent target.
26973 2006-03-03 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny change)
26975 * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
26976 our replacement poll.h in any case, to avoid a differing
26977 declaration from a system header. Seen on AIX.
26979 2006-03-01 Simon Josefsson <jas@extundo.com>
26981 * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
26984 2006-03-01 Paul Eggert <eggert@cs.ucla.edu>
26986 * modules/gettime (Depends-on): Add extensions module.
26987 * modules/nanosleep (Depends-on): Likewise.
26988 * modules/settime (Depends-on): Likewise.
26990 2006-03-01 Paul Eggert <eggert@cs.ucla.edu>
26992 * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
26993 not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
26995 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
26996 * m4/timespec.m4 (gl_TIMESPEC): Likewise.
26998 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
26999 not "==". Reported by Ralf Wildenhues.
27001 2006-03-01 Karl Berry <karl@gnu.org>
27003 * doc/Copyright/request-*: new files, synced from gnuorg.
27005 2006-03-01 Karl Berry <karl@gnu.org>
27007 * config/srclist.txt (Copyright/*): new entries.
27009 2006-02-28 Simon Josefsson <jas@extundo.com>
27011 * lib/getopt.c: Protect #include of unistd.h, for MSVS.
27013 2006-02-27 Simon Josefsson <jas@extundo.com>
27015 * lib/base64.h: Indent #define's. From Jim Meyering
27016 <jim@meyering.net>.
27018 2006-02-27 Jim Meyering <jim@meyering.net>
27020 Revert the change of 2006-02-24, so these files can continue
27021 to be sync'd from gettext.
27022 * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
27025 2006-02-26 Paul Eggert <eggert@cs.ucla.edu>
27027 * modules/intprops: New file.
27028 * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
27030 * modules/getloadavg (Files): Remove lib/intprops.h.
27031 (Depends-on): Add intprops.
27032 * modules/human: Likewise.
27033 * modules/inttostr: Likewise.
27034 * modules/openat: Likewise.
27035 * modules/sig2str: Likewise.
27036 * modules/userspec: Likewise.
27037 * modules/utimecmp: Likewise.
27038 * modules/xnanosleep: Likewise.
27039 * modules/xstrtol: Likewise.
27041 2006-02-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny changes)
27043 * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
27044 * modules/lock-tests (TESTS): Use $(EXEEXT).
27045 * modules/tls-tests: Likewise.
27046 * modules/argp-tests: Likewise.
27047 (check_PROGRAMS): New var, replacing...
27048 (noinst_PROGRAMS, test_argp_SOURCES): Remove.
27050 2006-02-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
27052 * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
27055 2006-02-24 Paul Eggert <eggert@cs.ucla.edu>
27057 * lib/glob.c: Say "invalid" rather than "illegal" in comments.
27059 2006-02-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
27061 Sync from coreutils.
27062 * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
27065 2006-02-22 Jim Meyering <jim@meyering.net>
27067 Sync from coreutils.
27068 * m4/chdir-safer.m4: New file.
27070 2006-02-20 Paul Eggert <eggert@cs.ucla.edu>
27072 * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
27073 AT_FDCWD exceeds INT_MAX.
27074 * lib/openat.h (AT_FDCWD): Likewise.
27076 2006-02-17 Eric Blake <address@hidden>
27078 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
27080 2006-02-16 Simon Josefsson <jas@extundo.com>
27082 * modules/getaddrinfo (Depends-on): Add sys_socket.
27084 2006-02-15 Simon Josefsson <jas@extundo.com>
27086 * build-aux/maint.mk: Add dsyntax-check rule.
27088 2006-02-15 Eric Blake <ebb9@byu.net>
27090 * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
27091 winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
27092 'present but cannot compile' warnings on cygwin.
27093 * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET. Don't
27094 use ws2tcpip.h if sys/socket.h works.
27095 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
27096 (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
27098 2006-02-14 Simon Josefsson <jas@extundo.com>
27100 * modules/maintainer-makefile (Files): Rename.
27102 * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
27103 and (the local) Makefile.cfg to maint-cfg.mk.
27105 * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
27108 * modules/maintainer-makefile: New module.
27110 * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
27111 severaly stripped to make it possible to build it up from scratch
27112 with reliable tests.
27114 * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
27115 fixes to permit overriding the default actions when configure and
27116 makefile are not available.
27118 2006-02-14 Paul Eggert <eggert@cs.ucla.edu>
27120 Sync from coreutils.
27121 * modules/lstat (Depends-on): Don't depend on xalloc.
27122 (License): Change from GPL to LGPL, since this is now simply a
27123 replacement for a libc function.
27125 2006-02-14 Jim Meyering <jim@meyering.net>
27127 Sync from coreutils.
27129 Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
27130 failure on deficient systems, and simplify gnulib lgpl dependencies.
27131 * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
27132 xmalloc/lstat combination. Based on a patch from Bruno Haible.
27134 * lib/xalloc-die.c: Remove unused definition of N_.
27136 2006-02-14 Jim Meyering <jim@meyering.net>
27138 Sync from coreutils.
27139 * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
27140 AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
27141 $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
27142 double-quote uses of that variable, to accommodate the rare case in
27143 which getmntent is available in none of the libraries checked. This
27144 happens at least on FreeBSD 5.0.
27146 2006-02-13 Simon Josefsson <jas@extundo.com>
27148 * gnulib-tool (Usage): Fix --import, from
27149 karl@freefriends.org (Karl Berry).
27151 2006-02-13 Sergey Poznyakoff <gray@gnu.org.ua>
27153 * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
27155 2006-02-07 Sergey Poznyakoff <gray@gnu.org.ua>
27157 * lib/argp-namefrob.h: Restore changes accidentally lost during the
27158 "autoupdate" on 2005-12-12.
27160 2006-02-07 Paul Eggert <eggert@cs.ucla.edu>
27162 * modules/closeout (Depends-on): Remove atexit.
27164 2006-02-07 Paul Eggert <eggert@cs.ucla.edu>
27166 * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
27167 ints to 0 or 1, as this isn't true for the stdbool.h substitute.
27169 2006-02-05 Paul Eggert <eggert@cs.ucla.edu>
27171 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
27172 __EXTENSIONS__ if this causes compilation to fail. Problem
27173 reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
27174 c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
27176 2006-01-27 Paul Eggert <eggert@cs.ucla.edu>
27178 * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
27179 Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
27180 <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
27183 2006-01-26 Simon Josefsson <jas@extundo.com>
27185 * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
27186 prototype is visible on mingw32.
27188 * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
27191 * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
27194 2006-01-26 Paul Eggert <eggert@cs.ucla.edu>
27196 * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too. Don't
27197 attempt to open for write; this always fails, at least on POSIX
27198 hosts. This reinstates the 2006-01-09 change, which was
27199 inadvertently removed.
27201 2006-01-26 Bruno Haible <bruno@clisp.org>
27203 * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
27204 Reported by Paul Eggert.
27206 2006-01-26 Bruno Haible <bruno@clisp.org>
27207 Paul Eggert <eggert@cs.ucla.edu>
27209 * lib/stdbool_.h (_Bool)
27210 [(! (defined __cplusplus || defined __BEOS__)
27211 && !defined __GNUC__
27212 && !(defined __HP_cc || defined __xlc__
27213 || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
27214 || defined __sgi))]:
27215 #define to signed char in these cases too; this simplifies
27216 the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
27217 etc., separately) and makes it more conservative.
27219 2006-01-25 Simon Josefsson <jas@extundo.com>
27221 * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
27222 -lws2_32. Protect sys/socket.h and netdb.h #include's. Include
27223 ws2tcpip.h with WINVER=0x0501. All for mingw32.
27225 2006-01-25 Sergey Poznyakoff <gray@gnu.org.ua>
27227 * lib/argp-namefrob.h: Bugfix. Remove stray #
27229 2006-01-25 Paul Eggert <eggert@cs.ucla.edu>
27231 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
27232 so that we test the test.
27233 Check for yet another HP-UX cc bug involving *bool |= bool.
27235 2006-01-25 Karl Berry <karl@gnu.org>
27237 * config/srclist.txt (vasnprintf.c): sync lost.
27239 2006-01-25 Jim Meyering <jim@meyering.net>
27241 Sync from the stable (b5) branch of coreutils:
27243 * lib/fts.c (fts_children): Don't let close() clobber errno from
27246 * lib/fts.c (fts_stat): When following a symlink-to-directory,
27247 don't necessarily interpret stat-fails+lstat-succeeds as indicating
27248 a dangling symlink. That can also happen at least for ELOOP.
27249 The fix: return FTS_SLNONE only when the stat errno is ENOENT.
27250 FYI, this bug predates the inclusion of fts.c in coreutils.
27252 * lib/fts.c (fts_open): Put new maxarglen declaration and uses
27253 in their own block, so pre-c99 compilers don't object.
27255 Avoid the double-free (first in fts_read, second in fts_close) that
27256 would occur when an `active' directory is made inaccessible (e.g.,
27257 via chmod a-x) during a traversal.
27258 * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
27259 before returning. Reproduce this failure by
27260 mkdir -p a/b; cd a; chmod a-x . b
27261 Reported by Stavros Passas.
27263 2006-01-25 Jim Meyering <jim@meyering.net>
27265 * lib/fileblocks.c: Remove more useless parentheses.
27266 * lib/readutmp.h: Likewise.
27268 2006-01-25 Bruno Haible <bruno@clisp.org>
27270 * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
27272 Reported by Paul Eggert.
27274 2006-01-25 Bruno Haible <bruno@clisp.org>
27276 * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
27277 rid of a trap command. For Solaris sh.
27278 Reported by Mark D. Baushke <mdb@gnu.org>.
27280 2006-01-24 Simon Josefsson <jas@extundo.com>
27282 * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
27285 2006-01-24 Karl Berry <karl@gnu.org>
27287 * config/srclist.txt (argp-namefrob.h): sync lost.
27289 2006-01-24 Jim Meyering <jim@meyering.net>
27291 * modules/openat (Files): Add lib/intprops.h.
27292 From Mark D. Baushke.
27294 2006-01-24 Jim Meyering <jim@meyering.net>
27296 * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
27297 Reported by Mark D. Baushke.
27299 2006-01-24 Jim Meyering <jim@meyering.net>
27301 * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
27303 2006-01-24 Bruno Haible <bruno@clisp.org>
27305 * modules/strnlen (Maintainer): Change from glibc to all.
27307 2006-01-24 Bruno Haible <bruno@clisp.org>
27309 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
27310 Patch by Paul Eggert.
27312 2006-01-24 Bruno Haible <bruno@clisp.org>
27314 * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
27316 Report and patch by Albert Chin-A-Young <china@thewrittenword.com> on
27319 * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
27320 'signed char' to avoid problems with the built-in _Bool type.
27321 Reported by Paul Eggert on 2005-11-26.
27323 2006-01-24 Bruno Haible <bruno@clisp.org>
27325 * gnulib-tool (func_import): Avoid constructing complicated sed
27326 expressions inside backquote.
27327 Report and solution by Mark D. Baushke <mdb@gnu.org>.
27329 2006-01-23 Ulrich Drepper <drepper@redhat.com>
27331 These changes imported from libc.
27332 * lib/getopt.c: Use __fxprintf instead of inline stream orientation
27333 test and two separate function calls.
27334 * lib/strndup.c (__strndup): Add libc_hidden_def.
27336 2006-01-23 Simon Josefsson <jas@extundo.com>
27338 * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
27339 Remove the test_*_SOURCES variable: automake infers it by default.
27340 * modules/tls-tests: Likewise.
27342 2006-01-23 Paul Eggert <eggert@cs.ucla.edu>
27344 Work around porting bugs reported by Dieter in
27345 <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
27346 * lib/getopt.c (_NOPROTO): Remove; no longer needed.
27347 Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
27348 Include "getopt.h" first, to check interface.
27349 (getenv): Declare only if defined HAVE_DECL_GETENV &&
27351 * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
27352 (__strndup): Revert to K&R-style function dfns, the glibc style.
27353 * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
27354 (strnlen, __strnlen): Remove #defines and #undefs; not needed.
27355 Include strnlen.h first, to get prototype properly.
27356 (strnlen): Renamed from __strnlen.
27359 2006-01-23 Paul Eggert <eggert@cs.ucla.edu>
27361 * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
27363 2006-01-23 Paul Eggert <eggert@cs.ucla.edu>
27365 * config/srclist.txt: Adjust to reflect glibc reorganization.
27366 This affects only comments.
27368 2006-01-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny change)
27370 * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
27371 Reported by Bruce Korb <bkorb@gnu.org>.
27373 2006-01-22 Paul Eggert <eggert@cs.ucla.edu>
27375 * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
27376 to pacify gcc -Wswitch-default.
27378 2006-01-22 Bruno Haible <bruno@clisp.org>
27380 * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
27381 temporary buffer for sprintf, take into account the precision also
27382 for 'd', 'i', 'u', 'o', 'x', 'X'.
27384 2006-01-21 Sergey Poznyakoff <gray@gnu.org.ua>
27386 * modules/argp-tests: New module
27387 * tests/test-argp.c: New file
27388 * tests/test-argp-2.sh: New file
27390 2006-01-21 Sergey Poznyakoff <gray@gnu.org.ua>
27392 * lib/argp-help.c (usage_long_opt): Do not print DOC options.
27393 (__argp_base_name): Removed
27394 * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
27396 (__argp_base_name): Provide macro definition or extern declaration
27397 depending on the configuration
27399 2006-01-20 Simon Josefsson <jas@extundo.com>
27401 * modules/inet_ntop (Depends-on): Depend on sys_socket.
27403 2006-01-20 Simon Josefsson <jas@extundo.com>
27405 * lib/inet_ntop.h: Unconditionally include sys/socket.h.
27407 2006-01-20 Paul Eggert <eggert@cs.ucla.edu>
27409 * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
27410 rather than -Xlinker -z -Xlinker ignore, as it's more portable.
27411 Suggested by Bruno Haible.
27413 2006-01-20 Karl Berry <karl@gnu.org>
27415 * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
27416 until changes propagate, I guess.
27418 2006-01-19 Simon Josefsson <jas@extundo.com>
27420 * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
27422 2006-01-19 Simon Josefsson <jas@extundo.com>
27424 * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
27426 2006-01-19 Simon Josefsson <jas@extundo.com>
27428 * gnulib-tool: Set check_PROGRAMS.
27430 * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
27431 modules/des-tests, modules/gc-arcfour-tests,
27432 modules/gc-arctwo-tests, modules/gc-des-tests,
27433 modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
27434 modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
27435 modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
27436 modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
27437 modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
27438 modules/md5-tests, modules/readline, modules/rijndael-tests: Use
27439 check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
27442 2006-01-18 Simon Josefsson <jas@extundo.com>
27444 * modules/socklen (Depends-on): Depend on sys_socket.
27446 2006-01-18 Simon Josefsson <jas@extundo.com>
27448 * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
27449 modules/des-tests, modules/gc-arcfour-tests,
27450 modules/gc-arctwo-tests, modules/gc-des-tests,
27451 modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
27452 modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
27453 modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
27454 modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
27455 modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
27456 modules/md5-tests, modules/readline, modules/rijndael-tests: Add
27457 $(EXEEXT) to automake TESTS variable, for mingw32.
27459 2006-01-17 Simon Josefsson <jas@extundo.com>
27461 * modules/socklen (Include): Need sys/socket.h.
27463 2006-01-17 Bruno Haible <bruno@clisp.org>
27465 * modules/ssize_t (Include): Add <sys/types.h>.
27467 2006-01-16 Paul Eggert <eggert@cs.ucla.edu>
27469 * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
27470 it's not portable and it doesn't work with cross-compiles.
27471 Problem reported by Bruno Haible. Fix missing-$ typo in
27472 'test "gl_cv_ignore_unused_libraries" ...' that prevented
27473 -zignore from being used with Sun's C compiler.
27475 2006-01-12 Simon Josefsson <jas@extundo.com>
27477 * lib/base64.c: Fix warning, reported by Bruno Haible
27478 <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
27480 2006-01-12 Bruno Haible <bruno@clisp.org>
27482 * modules/ldd: New file.
27483 * build-aux/ldd.sh.in: New file.
27484 * MODULES.html.sh (Support for building libraries and executables): Add
27487 2006-01-12 Bruno Haible <bruno@clisp.org>
27489 * m4/ldd.m4: New file.
27491 2006-01-12 Bruno Haible <bruno@clisp.org>
27493 * gnulib-tool (func_import, func_create_testdir): Don't go into an
27494 endless loop while replacing $auxdir with build-aux.
27496 2006-01-11 Simon Josefsson <jas@extundo.com>
27498 * lib/stdint_.h (SIZE_MAX): Add missing (.
27500 2006-01-11 Paul Eggert <eggert@cs.ucla.edu>
27502 Sync from coreutils.
27503 * lib/md5.c: Fix commentary typos.
27504 (alignof, UNALIGNED_P): No need for a GCC-specific version.
27505 * lib/md5.h (__attribute__): Remove; unused.
27506 * lib/sha1.c: Fix commentary to match md5 better.
27507 * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
27508 so that we don't need to worry about alignment. All uses changed.
27509 This merges the 2005-10-28 md5 change into sha1.
27511 2006-01-11 Jim Meyering <jim@meyering.net>
27513 Sync from coreutils.
27514 * lib/md5.c (OP): Fix spacing.
27516 2006-01-11 Bruno Haible <bruno@clisp.org>
27518 Ensure automatic ordering between gl_LOCK and gl_ARGP.
27519 * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
27520 (gl_LOCK): New macro, requiring gl_LOCK_BODY.
27522 2006-01-11 Bruno Haible <bruno@clisp.org>
27524 Ensure automatic ordering between gl_LOCK and gl_ARGP.
27525 * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
27526 the "early" section as well.
27528 2006-01-11 Bruno Haible <bruno@clisp.org>
27530 Avoid "ar: no archive members specified" error on MacOS X.
27531 * gnulib-tool (func_modules_add_dummy): New function.
27532 (func_import, func_create_testdir): Invoke it.
27534 2006-01-11 Bruno Haible <bruno@clisp.org>
27536 * gnulib-tool (func_import, func_create_testdir): Replace build-aux
27537 with $auxdir in AC_CONFIG_FILES statements.
27539 2006-01-11 Bruno Haible <bruno@clisp.org>
27541 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
27542 Initialize also noinst_HEADERS to empty.
27544 2006-01-11 Bruno Haible <bruno@clisp.org>
27546 * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
27548 (func_create_megatestdir): Call aclocal, autoconf, automake here, not
27551 2006-01-11 Bruno Haible <bruno@clisp.org>
27553 * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
27554 overridable by the user.
27555 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
27557 2006-01-10 Simon Josefsson <jas@extundo.com>
27559 * modules/sys_socket: New file.
27561 2006-01-10 Simon Josefsson <jas@extundo.com>
27563 * m4/sys_socket_h.m4: New file.
27565 2006-01-10 Simon Josefsson <jas@extundo.com>
27567 * lib/socket_.h: New file.
27569 2006-01-10 Paul Eggert <eggert@cs.ucla.edu>
27571 * modules/readutmp (Maintainer): Add myself.
27573 2006-01-10 Paul Eggert <eggert@cs.ucla.edu>
27575 * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
27576 the 2002-12-31 change. Problem and fix reported by Bruno Haible.
27577 People who are still concerned with buggy memcmp implementations
27578 can invoke gl_FUNC_MEMCMP themselves.
27580 2006-01-10 Paul Eggert <eggert@cs.ucla.edu>
27582 * lib/regex_internal.h (BITSET_WORD_BITS):
27583 Work around a bug in 64-bit PGC (before version 6.1-2), where the
27584 preprocessor mishandles large unsigned values as if they were signed.
27585 Problem reported by Claudio Fontana in
27586 <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
27588 2006-01-10 Jim Meyering <jim@meyering.net>
27590 Avoid the double-free (first in fts_read, second in fts_close) that
27591 would occur when an `active' directory is made inaccessible (e.g.,
27592 via chmod a-x) during a traversal.
27593 * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
27594 before returning. Reproduce this failure by
27595 mkdir -p a/b; cd a; chmod a-x . b
27596 Reported by Stavros Passas.
27598 Sync from coreutils.
27599 * lib/sha1.c: Tweak grammar in a comment.
27601 2006-01-10 Jim Meyering <jim@meyering.net>
27603 * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
27604 Patch by Joerg Sonnenberger.
27606 2006-01-10 Bruno Haible <bruno@clisp.org>
27608 * modules/readutmp: Depend on module free.
27609 * modules/strtok_r: Depend on module restrict.
27611 2006-01-10 Bruno Haible <bruno@clisp.org>
27613 * modules/gettext (configure.ac): Add an invocation of
27614 AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
27616 2006-01-10 Bruno Haible <bruno@clisp.org>
27618 * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
27619 Reported by Werner Lemberg <wl@gnu.org>.
27621 2006-01-10 Bruno Haible <bruno@clisp.org>
27623 * lib/localcharset.c: Update from GNU gettext.
27625 2006-01-10 Bruno Haible <bruno@clisp.org>
27627 * lib/argp.h (__const): Remove macro. Use const instead.
27628 * lib/argp-fmtstream.h (__const): Likewise.
27629 * lib/glob_.h (__const): Remove macro.
27630 * lib/glob-libc.h: Use const instead of __const.
27632 2006-01-10 Bruno Haible <bruno@clisp.org>
27634 * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
27636 Needed to avoid an automake error regarding the 'gettext' module.
27638 2006-01-09 Simon Josefsson <jas@extundo.com>
27640 * modules/inet_ntop (Depends-on): Add restrict.
27642 2006-01-09 Simon Josefsson <jas@extundo.com>
27644 * modules/gc-rijndael-tests (License): Put under LGPL.
27646 * modules/gc-des-tests (License): Likewise.
27648 * modules/gc-arcfour-tests (License): Likewise.
27650 * modules/gc-arctwo-tests (License): Likewise.
27652 * modules/gc-pbkdf2-sha1-tests (License): Likewise.
27654 * modules/gc-hmac-sha1-tests (Files): Likewise.
27656 * modules/gc-hmac-md5-tests (License): Likewise.
27658 * modules/gc-sha1-tests (License): Likewise.
27660 * modules/gc-md5-tests (License): Likewise.
27662 * modules/gc-md4-tests (License): Likewise.
27664 * modules/gc-md2-tests (License): Likewise.
27666 * modules/gc-tests (License): Likewise.
27668 * modules/des-tests (License): Likewise.
27670 * modules/md4-tests (License): Likewise.
27672 * modules/md2-tests (License): Likewise.
27674 2006-01-09 Paul Eggert <eggert@cs.ucla.edu>
27676 Sync from coreutils:
27678 * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
27679 * modules/lib-ignore: New file.
27680 * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
27681 chdir-safer.m4, lchmod.m4.
27682 * modules/openat: Add mkdirat.c, openat-priv.h.
27684 2006-01-09 Paul Eggert <eggert@cs.ucla.edu>
27686 Sync from coreutils.
27687 * m4/lib-ignore.m4: New file.
27688 * m4/lchmod.m4: New file.
27690 2006-01-09 Paul Eggert <eggert@cs.ucla.edu>
27692 Sync from coreutils.
27693 * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
27694 for write access: POSIX says that must fail.
27695 * lib/fts.c (diropen): Likewise.
27696 * lib/save-cwd.c (save_cwd): Likewise.
27697 * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
27698 well, for minor improvements on hosts that lack O_DIRECTORY.
27699 * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
27700 Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
27701 Fall back on chown if open failed with EACCES.
27703 * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
27704 Report an error at compile-time if only a 1-second nominal clock
27705 resolution is found.
27707 * lib/lchmod.h: New file.
27708 * lib/mkdir-p.c: Include lchmod.h, lchown.h.
27709 (make_dir_parents): Use lchown rather than chown, and
27710 lchmod rather than chmod.
27712 * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
27713 dummies too. Problem with "none" reported by Bob Proulx. Problem with
27714 "proc" reported by n0dalus.
27716 * lib/mountlist.c: Include <limits.h>.
27717 (dev_from_mount_options)
27718 [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
27719 New function. It no longer assumes "dev=" has the System V meaning
27720 on Linux (since it doesn't). It also parses "dev=" more carefully.
27721 (read_file_system_list)
27722 [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
27723 MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
27726 * lib/posixtm.h (PDS_PRE_2000): New macro.
27727 * lib/posixtm.c (year): Arg is now syntax_bits rather than
27728 allow_century. All usages changed. Reject dates outside the range
27729 1969-1999 if PDS_PRE_2000 is used.
27731 2006-01-09 Paul Eggert <eggert@cs.ucla.edu>
27733 Sync from coreutils.
27734 * doc/getdate.texi (General date syntax): Invalid dates are rejected.
27735 (Time of day items): Mention the possibility of leap seconds.
27736 Problem reported by Dr. David Alan Gilbert.
27738 2006-01-09 Jim Meyering <jim@meyering.net>
27740 Sync from coreutils.
27742 * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
27744 * lib/chdir-safer.h, lib/chdir-safer.c: New files.
27746 * lib/modechange.c (mode_compile): Reject an invalid mode string
27747 that starts with an octal digit. From Andreas Gruenbacher.
27749 * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
27750 and dup to open_safer and dup_safer, respectively.
27751 (openat_permissive): Fix typo in comment.
27753 * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
27754 "gettext.h"; either no longer needed or are guaranteed by openat.h.
27755 (_): Remove; no longer needed.
27756 (openat): Renamed from rpl_openat; no need for rpl_openat
27757 since openat.h renames openat for us.
27758 Replace most of the body with a call to openat_permissive,
27759 to avoid duplicate code.
27760 Port to (probably hypothetical) environments were mode_t is
27762 (openat_permissive): Require mode arg, so that we can check
27763 types better. Put it just after flags. Change cwd failure
27764 indicator from pointer-to-bool to pointer-to-errno-value.
27765 All callers changed.
27766 Invoke openat_save_fail and/or openat_restore_fail if
27767 cwd_errno is null, so that openat can call us.
27768 (openat_permissive, fdopendir, fstatat, unlinkat):
27769 Simplify errno handling to avoid some duplicate code,
27770 as it's OK to set errno on success.
27771 * lib/openat.h: Revamp code so that function macros depend on
27772 __OPENAT_PREFIX only, not also on AT_FDCWD.
27773 (openat_ro): Remove. Caller changed to use openat_permissive.
27774 (openat_permissive): Now a macro, if not a function.
27775 (openat_restore_fail, openat_save_fail): Now always functions,
27776 since mkdirat needs them even if __OPENAT_PREFIX is defined.
27778 * lib/openat-priv.h: New file, defining macros used by mkdirat.c
27780 * lib/mkdirat.c: Include openat-priv.h.
27781 Remove definitions of macros defined therein.
27782 * lib/openat.c: Likewise.
27784 * lib/mkdirat.c (mkdirat): New file and function.
27785 * lib/openat.h (mkdirat): Declare.
27787 * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
27789 * lib/openat.h (openat_permissive): Declare.
27790 (openat_ro): Define.
27792 * lib/openat.c (EXPECTED_ERRNO): New macro.
27793 (openat_permissive): New function -- used in remove.c rewrite.
27794 (all functions): Set errno just before returning, only if there
27795 was an actual failure.
27796 Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
27798 Emulate openat-family functions using Linux's procfs, if possible.
27799 Idea and some code based on Ulrich Drepper's glibc changes.
27801 * lib/openat.c: (BUILD_PROC_NAME): New macro.
27802 Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
27803 (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
27804 before falling back on save_cwd and restore_cwd.
27805 (fdopendir, fstatat, unlinkat): Likewise.
27807 * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
27808 skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
27810 * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
27811 as second argument to va_arg. Otherwise, some versions of gcc
27812 warn that `if this code is reached, the program will abort'.
27814 2006-01-09 Jim Meyering <jim@meyering.net>
27816 Sync from coreutils.
27817 * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
27818 Require openat-priv.h.
27820 2006-01-09 Bruno Haible <bruno@clisp.org>
27822 * modules/strnlen (Include): Use strnlen.h.
27824 2006-01-09 Bruno Haible <bruno@clisp.org>
27826 * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
27828 2006-01-09 Bruno Haible <bruno@clisp.org>
27830 * lib/sysexit_.h (EX_OK): New macro.
27831 Suggested by Martin Lambers <marlam@marlam.de>.
27833 2006-01-09 Bruno Haible <bruno@clisp.org>
27835 * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
27836 don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
27838 2006-01-09 Bruno Haible <bruno@clisp.org>
27840 * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
27843 2006-01-09 Bruno Haible <bruno@clisp.org>
27845 * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
27846 * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
27847 * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
27848 * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
27850 2006-01-09 Bruno Haible <bruno@clisp.org>
27852 * build-aux/javacomp.sh.in: New file, moved from lib/.
27853 * modules/javacomp-script (Files): Update.
27854 (configure.ac): Add AC_CONFIG_FILES invocation.
27855 (EXTRA_DIST): Remove variable.
27857 * build-aux/javaexec.sh.in: New file, moved from lib/.
27858 * modules/javaexec (Files): Update.
27859 (configure.ac): Add AC_CONFIG_FILES invocation.
27860 (EXTRA_DIST): Remove javaexec.sh.in.
27862 * build-aux/csharpcomp.sh.in: New file, moved from lib/.
27863 * modules/csharpcomp-script (Files): Update.
27864 (configure.ac): Add AC_CONFIG_FILES invocation.
27865 (EXTRA_DIST): Remove variable.
27867 * build-aux/csharpexec.sh.in: New file, moved from lib/.
27868 * modules/csharpexec (Files): Update.
27869 (configure.ac): Add AC_CONFIG_FILES invocation.
27870 (EXTRA_DIST): Remove csharpexec.sh.in.
27872 2006-01-09 Andreas Gruenbacher <agruen@suse.de>
27874 Sync from coreutils.
27876 Add POSIX ACL support
27877 * lib/acl.h (copy_acl, set_acl): Add declarations.
27878 * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
27879 systems other than Linux.
27880 (chmod_or_fchmod): New function: use fchmod when possible,
27881 and chmod otherwise.
27882 (file_has_acl): Add a POSIX ACL implementation, with a
27883 Linux-specific subcase.
27884 (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
27885 S_ISVTX from one file to another. Fall back to fchmod/chmod when
27886 acls are unsupported.
27887 (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
27888 S_ISVTX to a defined value. Fall back to fchmod/chmod when acls
27891 2006-01-09 Andreas Gruenbacher <agruen@suse.de>
27893 Sync from coreutils.
27894 * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
27896 2006-01-07 Bruno Haible <bruno@clisp.org>
27898 * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
27901 2006-01-04 Paul Eggert <eggert@cs.ucla.edu>
27903 * lib/strftime.c (tzname): Don't declare if it is already #defined.
27904 Problem reported for Mingw by Mark Junker.
27906 2006-01-04 Paul Eggert <eggert@cs.ucla.edu>
27908 * README: Gnulib normally doesn't generate a tarball.
27910 2006-01-03 Paul Eggert <eggert@cs.ucla.edu>
27912 * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
27913 long int, not int, for nanosecond counts, so that people who are
27914 used to POSIX struct timespec won't be surprised. Reported by Jim
27917 2005-12-28 Bruno Haible <bruno@clisp.org>
27919 * build-aux/config.rpath: Update from GNU gettext.
27921 2005-12-16 Jim Meyering <jim@meyering.net>
27923 * modules/fprintftime: New module.
27924 * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
27926 2005-12-16 Jim Meyering <jim@meyering.net>
27928 * m4/fprintftime.m4: New file.
27930 2005-12-16 Jim Meyering <jim@meyering.net>
27932 * lib/fprintftime.c, lib/fprintftime.h: New files.
27934 2005-12-15 Simon Josefsson <jas@extundo.com>
27936 * modules/socklen (configure.ac): Fix M4 macro name, to align with
27939 2005-12-10 Sergey Poznyakoff <gray@gnu.org.ua>
27941 * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
27942 HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
27944 2005-12-10 Sergey Poznyakoff <gray@gnu.org.ua>
27946 * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
27947 * lib/argp-help.c (fill_in_uparams): Check if the constructed
27948 struct uparams is valid. Fall back to the default values if it is
27951 2005-12-09 Sergey Poznyakoff <gray@gnu.org.ua>
27953 * modules/argp (Files): Add argp-pin.c
27954 (Depends-on): dirname
27955 (lib_SOURCES): Add argp-pin.c
27957 2005-12-09 Sergey Poznyakoff <gray@gnu.org.ua>
27959 * m4/argp.m4: Check if program_invocation_name and
27960 program_invocation_short_name are declared and define appropriate
27961 macros if they are not.
27963 2005-12-09 Sergey Poznyakoff <gray@gnu.org.ua>
27965 * lib/argp-help.c (__argp_base_name): New function
27966 (__argp_short_program_name): Rewrite using __argp_base_name
27967 * lib/argp-namefrob.h: Define program_invocation_name and
27968 program_invocation_short_name if requested
27969 (__argp_base_name): Add prototype
27970 * lib/argp-parse.c (argp_def): Use gettext wrappers
27971 (argp_default_parser): Use __argp_base_name
27972 * lib/argp-pin.c: New file. Defines program_invocation_name and
27973 program_invocation_short_name on systems that lack them.
27975 2005-12-07 Paul Eggert <eggert@cs.ucla.edu>
27977 * m4/stat-time.m4 (gl_STAT_TIME): Add check for
27978 TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
27979 porting problem reported by Georg Schwarz in
27980 <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
27982 2005-12-07 Paul Eggert <eggert@cs.ucla.edu>
27984 * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
27985 TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
27986 porting problem reported by Georg Schwarz in
27987 <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
27989 2005-12-05 Bruno Haible <bruno@clisp.org>
27991 * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
27992 * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
27993 Reported by Mark Junker <mjscod@gmx.de>.
27995 2005-12-02 Paul Eggert <eggert@cs.ucla.edu>
27997 * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
27998 Use implementation from Albert Chin, with some
27999 comments/corrections by Stepan Kasal and myself.
28001 2005-12-02 Bruno Haible <bruno@clisp.org>
28003 * gnulib-tool (func_import): Accept GPLed build tool modules when
28005 * modules/csharpcomp-script: New file.
28006 * modules/csharpcomp: Depend on it.
28007 * modules/javacomp-script: New file.
28008 * modules/javacomp: Depend on it.
28009 Suggested by Simon Josefsson.
28011 2005-12-01 Paul Eggert <eggert@cs.ucla.edu>
28013 * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
28014 statement, to work around an HP-UX 10.20 compiler bug reported by
28017 2005-11-29 Paul Eggert <eggert@cs.ucla.edu>
28019 * modules/savedir (Depends-on): Add openat.
28021 2005-11-29 Paul Eggert <eggert@cs.ucla.edu>
28023 * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
28024 (uintmax_t) [defined uintmax_t]: Do not declare.
28025 (SIZE_MAX) [defined SIZE_MAX]: Do not define.
28026 This works around a problem if intmax_t.m4 and/or uintmax_t.m4
28027 and/or size_max.m4 are also used. Problem reported by Mark D. Baushke.
28028 (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
28029 sake of portability to weird hosts that C allows (though we don't
28030 know of any practical examples).
28032 * lib/savedir.h (fdsavedir): New decl.
28033 * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
28034 contains most of the former guts of savedir.
28035 (savedir): Use savedirstream.
28036 Include "openat.h".
28038 2005-11-25 Paul Eggert <eggert@cs.ucla.edu>
28040 * modules/obstack (Files): Add m4/ulonglong.m4.
28041 Problem reported by Davide Angelocola.
28043 2005-11-15 Paul Eggert <eggert@cs.ucla.edu>
28045 * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
28046 coreutils no longer futzes with rounding modes.
28048 2005-11-14 Jim Meyering <jim@meyering.net>
28050 * lib/mkstemp-safer.c: Include <config.h>, required for possible
28051 replacement of mkstemp.
28053 2005-11-10 Simon Josefsson <jas@extundo.com>
28055 * lib/readline.c: Remove EOL.
28057 2005-11-10 Paul Eggert <eggert@cs.ucla.edu>
28059 * modules/gethrxtime (Depends-on): Add gettime.
28061 2005-11-10 Paul Eggert <eggert@cs.ucla.edu>
28063 * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
28064 or gettimeofday; no longer needed.
28066 2005-11-10 Paul Eggert <eggert@cs.ucla.edu>
28068 * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
28070 (gethrxtime) [! (HAVE_NANOUPTIME
28071 || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
28072 || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
28073 our own approximation.
28075 2005-11-08 Eric Blake <ebb9@byu.net>
28077 * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
28079 2005-11-08 Eric Blake <ebb9@byu.net>
28081 * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
28083 2005-11-04 Bruno Haible <bruno@clisp.org>
28085 * gnulib-tool: Implement --update mode.
28087 2005-10-30 Paul Eggert <eggert@cs.ucla.edu>
28089 Fix porting problem reported by Theodoros V. Kalamatianos.
28090 * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
28091 Don't assume that futimes failing means we must fail.
28093 2005-10-30 Paul Eggert <eggert@cs.ucla.edu>
28095 * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
28096 variables to suggest the intended function of the PATH_MAX check.
28098 2005-10-30 Kean Johnston <jkj@sco.com>
28100 Trivial changes to support SCO systems.
28101 * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
28103 * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
28104 where __ptr is null when no I/O is pending.
28106 2005-10-29 Paul Eggert <eggert@cs.ucla.edu>
28108 * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
28109 leave errno alone. Problem reported by Dmitry V. Levin.
28111 2005-10-28 Simon Josefsson <jas@extundo.com>
28113 * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
28116 * tests/test-gc-md2.c, tests/test-md2.c: New files.
28118 * modules/md2, modules/md2-tests: New files.
28120 2005-10-28 Simon Josefsson <jas@extundo.com>
28122 * m4/inet_ntop.m4: More tests.
28124 * m4/gc-md2.m4, md2.m4: New file.
28126 2005-10-28 Simon Josefsson <jas@extundo.com>
28128 * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
28129 "restrict" keywords, as per POSIX. Protect the function
28130 declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
28131 Don't use K&R prototypes. Check the sprintf return values.
28132 Re-define EAFNOSUPPORT if not present. Indent.
28134 * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
28135 suggested by Bruno Haible <bruno@clisp.org>.
28137 * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
28139 * lib/gc.h: Add MD2 and RMD160 length defines. Add prototypes.
28141 * lib/gc-libgcrypt.c: Add MD2 (which is not available through
28144 * lib/gc-gnulib.c: Add MD2. Implement gc_hash_* API.
28146 * lib/md2.h, lib/md2.c: New files.
28148 2005-10-28 Paul Eggert <eggert@cs.ucla.edu>
28150 * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
28151 errno alone. Problem reported by Frederic Jolliton.
28153 2005-10-27 Paul Eggert <eggert@cs.ucla.edu>
28155 * modules/verify (License): Change from GPL to LGPL. This is a
28156 tiny module and there are apparently near-equivalents that are
28157 under the BSD license.
28159 2005-10-24 Simon Josefsson <jas@extundo.com>
28161 * modules/sha1: Relicense to LGPL.
28163 2005-10-24 Simon Josefsson <jas@extundo.com>
28165 * lib/md4.h: Shrink buffer size, now that we changed the type.
28167 2005-10-23 Simon Josefsson <jas@extundo.com>
28169 * gnulib-tool (func_import): Fix --tests-base.
28171 2005-10-22 Simon Josefsson <jas@extundo.com>
28173 * modules/arcfour (Depends-on): Need stdint.
28175 2005-10-22 Simon Josefsson <jas@extundo.com>
28177 * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
28178 suggested by Bruno Haible <bruno@clisp.org>. Fix error messages.
28180 2005-10-22 Simon Josefsson <jas@extundo.com>
28182 * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
28183 suggested by Bruno Haible <bruno@clisp.org>.
28185 2005-10-22 Simon Josefsson <jas@extundo.com>
28187 * lib/crc.h: Include stddef.h, for size_t.
28189 2005-10-22 Simon Josefsson <jas@extundo.com>
28191 * lib/arcfour.h, arcfour.c: Use fixed size indices in the
28192 arcfour_context struct (simplify test vector testing in GNU
28195 2005-10-21 Simon Josefsson <jas@extundo.com>
28197 * modules/des, modules/des-tests: New files.
28199 * modules/gc-des, modules/gc-des-tests: New files.
28201 * tests/test-des.c, tests/test-gc-des.c: New file.
28203 2005-10-21 Simon Josefsson <jas@extundo.com>
28205 * modules/arctwo, modules/arctwo-tests: New files.
28207 * tests/test-arctwo.c: New file.
28209 * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
28211 * tests/test-gc-arctwo.c: New file.
28213 2005-10-21 Simon Josefsson <jas@extundo.com>
28215 * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
28216 Bruno Haible <bruno@clisp.org>.
28218 * m4/gc-des.m4: New file.
28220 2005-10-21 Simon Josefsson <jas@extundo.com>
28222 * m4/arctwo.m4: New file.
28224 * m4/gc-arctwo.m4: New file.
28226 2005-10-21 Simon Josefsson <jas@extundo.com>
28228 * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
28231 2005-10-21 Simon Josefsson <jas@extundo.com>
28233 * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
28236 * lib/hmac-sha1.c (hmac_sha1): Likewise.
28238 * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
28239 Bruno Haible <bruno@clisp.org>.
28241 * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
28244 2005-10-21 Simon Josefsson <jas@extundo.com>
28246 * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
28248 2005-10-21 Simon Josefsson <jas@extundo.com>
28250 * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
28252 2005-10-21 Simon Josefsson <jas@extundo.com>
28254 * lib/des.h, lib/des.c: New files.
28256 * lib/gc-gnulib.c: Support DES.c
28258 2005-10-21 Simon Josefsson <jas@extundo.com>
28260 * lib/arctwo.h, lib/arctwo.c: New files.
28262 * lib/gc-gnulib.c: Support ARCTWO.
28264 2005-10-21 Simon Josefsson <jas@extundo.com>
28266 * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
28267 suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
28269 2005-10-21 Simon Josefsson <jas@extundo.com>
28271 * gnulib-tool (func_import, func_create_testdir): Define automake
28272 conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
28273 Makefile.am snippet),
28274 suggested by Bruno Haible <bruno@clisp.org>.
28276 * modules/gc (Makefile.am): Use it.
28278 2005-10-21 Bruno Haible <bruno@clisp.org>
28280 * gnulib-tool (func_import, func_create_testdir): Add quoting to last
28283 2005-10-19 Simon Josefsson <jas@extundo.com>
28285 * tests/test-gc-rijndael.c: New file.
28287 * modules/gc-rijndael, modules/gc-rijndael-test: New files.
28289 2005-10-19 Simon Josefsson <jas@extundo.com>
28291 * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
28294 2005-10-19 Simon Josefsson <jas@extundo.com>
28296 * tests/test-gc-arcfour.c: New file.
28298 * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
28300 2005-10-19 Simon Josefsson <jas@extundo.com>
28302 * modules/gc-md4, modules/gc-md4-tests: New file.
28304 * tests/test-gc-md4.c: New file.
28306 2005-10-19 Simon Josefsson <jas@extundo.com>
28308 * m4/gc-md4.m4: New file.
28310 2005-10-19 Simon Josefsson <jas@extundo.com>
28312 * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
28313 gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
28316 2005-10-19 Simon Josefsson <jas@extundo.com>
28318 * m4/gc-arcfour.m4: New file.
28320 * m4/gc-rijndael.m4: New file.
28322 2005-10-19 Simon Josefsson <jas@extundo.com>
28324 * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
28326 2005-10-19 Simon Josefsson <jas@extundo.com>
28328 * lib/gc-gnulib.c: Support ARCFOUR.
28330 2005-10-19 Simon Josefsson <jas@extundo.com>
28332 * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
28335 * lib/gc.h: Add ECB enum type.
28337 * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
28339 2005-10-18 Simon Josefsson <jas@extundo.com>
28341 * tests/test-md5.c: New file.
28343 * modules/md5-tests: New file.
28345 2005-10-18 Simon Josefsson <jas@extundo.com>
28347 * tests/test-md4.c: New file.
28349 * modules/md4, modules/md4-tests: New files.
28351 2005-10-18 Simon Josefsson <jas@extundo.com>
28353 * m4/md4.m4: New file.
28355 2005-10-18 Simon Josefsson <jas@extundo.com>
28357 * lib/md4.h, lib/md4.c: New files, based on md5.?.
28359 2005-10-17 Stepan Kasal <kasal@ucw.cz>
28361 * gnulib-tool (func_create_testdir): Omit the second check whether
28362 BUILT_SOURCES in nonempty.
28364 2005-10-17 Simon Josefsson <jas@extundo.com>
28366 * tests/test-rijndael.c: New file.
28368 2005-10-17 Simon Josefsson <jas@extundo.com>
28370 * modules/sha1: Depend on stdint instead of md5.
28372 * modules/md5: Depend on stdint, remove uint32_t.
28374 2005-10-17 Simon Josefsson <jas@extundo.com>
28376 * modules/gc-sha1-tests: New file.
28378 * tests/test-gc-sha1.c: New file.
28380 2005-10-17 Simon Josefsson <jas@extundo.com>
28382 * m4/md5.m4: Remove call to uint32_t.m4.
28384 2005-10-17 Simon Josefsson <jas@extundo.com>
28386 * lib/sha1.c: Use uint32_t instead of md5_uint32.t
28388 * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
28391 * lib/md5.c: Use uin32_t. Fix non-gcc UNALIGNED_P macro.
28393 * lib/md5.h: Use stdint.h and uint32_t. Doc fix.
28395 2005-10-17 Simon Josefsson <jas@extundo.com>
28397 * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
28399 2005-10-17 Simon Josefsson <jas@extundo.com>
28401 * lib/gc.h, gc-libgcrypt.c: Add ciphers.
28403 2005-10-17 Simon Josefsson <jas@extundo.com>
28405 * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
28407 * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
28409 2005-10-17 Bruno Haible <bruno@clisp.org>
28411 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
28412 that it can also be used in a test.
28414 2005-10-16 Bruno Haible <bruno@clisp.org>
28416 * gnulib-tool (func_emit_tests_Makefile_am): Also define
28417 TESTS_ENVIRONMENT, so that individual tests can augment it.
28419 * gnulib-tool (func_create_testdir): Use an intermediate target for
28420 building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
28421 macros, like $(ALLOCA_H), which cannot be passed through the command
28424 2005-10-15 Simon Josefsson <jas@extundo.com>
28426 * modules/rijndael-tests: New file.
28428 * modules/rijndael: New file.
28430 2005-10-15 Simon Josefsson <jas@extundo.com>
28432 * m4/rijndael.m4: New file.
28434 2005-10-15 Simon Josefsson <jas@extundo.com>
28436 * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
28438 * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
28440 2005-10-14 Simon Josefsson <jas@extundo.com>
28442 * tests/test-arcfour.c: New file.
28444 * modules/arcfour, modules/arcfour-tests: New files.
28446 2005-10-14 Simon Josefsson <jas@extundo.com>
28448 * m4/arcfour.m4: New file.
28450 2005-10-14 Simon Josefsson <jas@extundo.com>
28452 * lib/arcfour.h, lib/arcfour.c: New files.
28454 2005-10-14 Roland McGrath <roland@redhat.com>
28456 Import from libc. [BZ #1331]
28457 * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
28459 Reported by Matej Vela <vela@debian.org>.
28461 2005-10-14 Paul Eggert <eggert@cs.ucla.edu>
28463 * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
28464 include <wchar.h>; no longer needed.
28466 2005-10-14 Paul Eggert <eggert@cs.ucla.edu>
28468 * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
28470 2005-10-14 Jakub Jelinek <jakub@redhat.com>
28471 and Ulrich Drepper <drepper@redhat.com>
28474 * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
28475 instead of inline stream orientation test and two separate
28476 function calls. Pay no attention to USE_IN_LIBIO.
28478 2005-10-13 Simon Josefsson <jas@extundo.com>
28480 * modules/gc-hmac-md5-tests: New file.
28482 * tests/test-gc-hmac-sha1.c: New file.
28484 * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
28486 * modules/gc-hmac-md5-tests: New file.
28488 * tests/test-gc-md5.c: New file.
28490 * modules/gc-md5-tests: New file.
28492 2005-10-13 Simon Josefsson <jas@extundo.com>
28494 * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
28495 Move memory allocation outside of loop.
28497 2005-10-13 Paul Eggert <eggert@cs.ucla.edu>
28499 * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
28500 intermediate directory is in a read-only file system. Problem
28501 reported by Eric Blake.
28503 2005-10-13 Oskar Liljeblad <oskar@osk.mine.nu>
28505 * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
28507 2005-10-12 Simon Josefsson <jas@extundo.com>
28509 * tests/test-hmac-sha1.c: New file.
28511 * modules/hmac-sha1-tests: New file.
28513 * modules/hmac-sha1: New file.
28515 2005-10-12 Simon Josefsson <jas@extundo.com>
28517 * modules/gc-sha1: New file.
28519 2005-10-12 Simon Josefsson <jas@extundo.com>
28521 * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
28523 * tests/test-gc-pbkdf2-sha1.c: New file.
28525 2005-10-12 Simon Josefsson <jas@extundo.com>
28527 * modules/gc-md5, modules/gc-hmac-md5: New files.
28529 * modules/gc (Files): Remove md5, memxor and hmac files.
28531 2005-10-12 Simon Josefsson <jas@extundo.com>
28533 * m4/gc-pbkdf2-sha1.m4: New file.
28535 * m4/gc-hmac-sha1.m4: New file.
28537 * m4/gc-sha1: New file.
28539 * m4/hmac-sha1.m4: New file.
28541 2005-10-12 Simon Josefsson <jas@extundo.com>
28543 * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
28545 * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
28547 2005-10-12 Simon Josefsson <jas@extundo.com>
28549 * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
28550 suggested by Bruno Haible <bruno@clisp.org>.
28552 2005-10-12 Simon Josefsson <jas@extundo.com>
28554 * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
28556 2005-10-12 Simon Josefsson <jas@extundo.com>
28558 * lib/gc-pbkdf2-sha1.c: New file.
28560 * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
28562 2005-10-12 Simon Josefsson <jas@extundo.com>
28564 * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
28566 * lib/gc-gnulib.c (gc_hmac_sha1): New function.
28568 2005-10-12 Simon Josefsson <jas@extundo.com>
28570 * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
28571 GC_USE_HMAC_MD5, respectively.
28573 * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
28574 (gc_md5): Fix typo.
28576 * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
28578 * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
28580 * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
28582 2005-10-12 Bruno Haible <bruno@clisp.org>
28584 * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
28585 Reported by Stepan Kasal <kasal@ucw.cz>.
28587 2005-10-11 Simon Josefsson <jas@extundo.com>
28589 * tests/test-crc.c: New file.
28591 * modules/crc, modules/crc-tests: New files.
28593 2005-10-11 Simon Josefsson <jas@extundo.com>
28595 * m4/crc.m4: New file.
28597 2005-10-11 Simon Josefsson <jas@extundo.com>
28599 * lib/gc.h: Add gc_hash and gc_hash_buffer.
28601 * lib/gc-gnulib.c (gc_hash_buffer): Add. Reorder #include's.
28603 * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
28605 2005-10-11 Simon Josefsson <jas@extundo.com>
28607 * lib/crc.h, lib/crc.c: New files.
28609 * lib/gc.h (gc_hash_buffer): Add doc.
28611 2005-10-11 Bruno Haible <bruno@clisp.org>
28613 * modules/c-strcasestr: New file.
28614 * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
28616 2005-10-11 Bruno Haible <bruno@clisp.org>
28618 * modules/c-strcase: New file.
28619 * MODULES.html.sh (String handling <string.h>): Add c-strcase.
28621 2005-10-11 Bruno Haible <bruno@clisp.org>
28623 * lib/strcasecmp.c: Include limits.h.
28624 (strcasecmp): Avoid integer overflow on exotic platforms.
28625 * lib/strncasecmp.c: Include limits.h.
28626 (strncasecmp): Avoid integer overflow on exotic platforms.
28627 Reported by Paul Eggert.
28629 2005-10-11 Bruno Haible <bruno@clisp.org>
28631 * lib/c-strcasestr.h: New file, from GNU gettext.
28632 * lib/c-strcasestr.c: New file, from GNU gettext.
28634 2005-10-11 Bruno Haible <bruno@clisp.org>
28636 * lib/c-strcase.h: New file, from GNU gettext.
28637 * lib/c-strcasecmp.c: New file, from GNU gettext.
28638 * lib/c-strncasecmp.c: New file, from GNU gettext.
28640 2005-10-10 Paul Eggert <eggert@cs.ucla.edu>
28642 * modules/mempcpy (License): GPL -> LGPL.
28643 * modules/strchrnul (License): Likewise.
28644 * modules/sysexits (License): Likewise.
28646 2005-10-08 Simon Josefsson <jas@extundo.com>
28648 * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
28650 2005-10-07 Simon Josefsson <jas@extundo.com>
28652 * m4/memxor.m4: Remove gl_C_RESTRICT call.
28654 2005-10-06 Simon Josefsson <jas@extundo.com>
28656 * tests/test-hmac-md5.c: New file.
28658 * modules/hmac-md5-tests: New file.
28660 * modules/hmac-md5: New file.
28662 2005-10-06 Simon Josefsson <jas@extundo.com>
28664 * m4/hmac-md5.m4: New file.
28666 * m4/memxor.m4: Require gl_C_RESTRICT.
28668 2005-10-06 Simon Josefsson <jas@extundo.com>
28670 * lib/memxor.c (memxor): Avoid casts and warnings.
28672 2005-10-06 Simon Josefsson <jas@extundo.com>
28674 * lib/hmac-md5.c: New file.
28676 * lib/hmac.h: New file.
28678 2005-10-06 Paul Eggert <eggert@cs.ucla.edu>
28680 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
28681 promotes to int, not unsigned int, to catch the AIX 5.3
28684 2005-10-05 Simon Josefsson <jas@extundo.com>
28686 * modules/memxor: New file.
28688 * modules/iconv (Files): Move config.rpath to havelib, it is used
28691 * modules/havelib (Files): Add config.rpath.
28693 2005-10-05 Simon Josefsson <jas@extundo.com>
28695 * m4/memxor.m4: New file.
28697 2005-10-05 Simon Josefsson <jas@extundo.com>
28699 * lib/memxor.c (memxor): Fix compiler error.
28701 * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
28702 <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
28704 * lib/memxor.h, lib/memxor.c: New files.
28706 * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
28707 we assume all systems have it, suggested by Jim Meyering
28708 <jim@meyering.net>. Remove HAVE_SYS_SOCKET_H test too, to see if
28709 any systems lack sys/socket.h; mingw32 is known to lack it, but we
28710 don't support it yet anyway. Also remove HAVE_NETDB_H test, for
28713 2005-10-05 Simon Josefsson <jas@extundo.com>
28715 * config/srclist.txt: Add glibc bug 1423 for md5.h.
28717 2005-10-05 Paul Eggert <eggert@cs.ucla.edu>
28719 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
28720 sys/socket.h, netdb.h, sys/types.h; the checks areno longer
28721 needed, since the source code now assumes these .h files.
28723 2005-10-05 Derek Price <derek@ximbiot.com>
28725 * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
28727 2005-10-05 Bruno Haible <bruno@clisp.org>
28729 * modules/stdint (License): Change to LGPL.
28731 2005-10-04 Simon Josefsson <jas@extundo.com>
28733 * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
28734 D. Baushke" <mdb@gnu.org>.
28736 2005-10-04 Bruno Haible <bruno@clisp.org>
28738 * lib/verify.h (verify_true): Provide alternative definition for C++.
28740 2005-10-03 Paul Eggert <eggert@cs.ucla.edu>
28742 * lib/getdelim.c: Include getdelim.h first. Include <limits.h>.
28743 (SSIZE_MAX): New macro, if not already defined.
28744 (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
28747 2005-10-02 Paul Eggert <eggert@cs.ucla.edu>
28749 Sync from coreutils.
28750 * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
28751 * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
28752 defines ULONG_MAX_LT_ULLONG_MAX. Thomas M.Ott reports that
28753 ULLONG_MAX doesn't work with 2.7.2.1.
28755 2005-10-02 Paul Eggert <eggert@cs.ucla.edu>
28757 * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
28760 * modules/exclude (Depends-on): Depend on verify.
28761 * modules/strtoimax (Depends-on): Likewise.
28762 * modules/utimecmp (Depends-on): Likewise.
28764 2005-10-02 Paul Eggert <eggert@cs.ucla.edu>
28766 * lib/exclude.c: Include verify.h.
28767 (verify): Remove. All callers changed to use verify.h's version.
28768 * lib/strtoimax.c: Likewise.
28769 * lib/utimecmp.c: Likewis.e
28771 Sync from coreutils.
28772 * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
28773 getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
28774 * lib/.cvsignore: Add fts.h, search.h, t-fpending.
28775 * lib/settime.c (settime): Fix { typo in previous patch. Also, don't
28776 bother returning ENOSYS if settimeofday or stime fails; just let
28777 them return whatever errno they want to return.
28778 * lib/utimens.c: Include unistd.h, for dup2.
28779 (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
28780 (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
28782 2005-10-02 Jim Meyering <jim@meyering.net>
28784 Sync from coreutils.
28785 * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
28786 from glibc-2.2.5 that fails for read-only files.
28788 2005-10-02 Jim Meyering <jim@meyering.net>
28790 Sync from coreutils.
28791 * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
28792 * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
28793 `#if HAVE_CONFIG_H'.
28794 * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
28795 Remove AT_FDCWD test.
28796 Do not consume the fd unless successful.
28797 * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
28798 * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
28799 block, so that we don't even try to compile it if settimeofday is
28800 available. This works around a compilation failure on OSF1 V5.1,
28801 due to stime requiring a `long int*' while tv_sec is `int'.
28803 2005-10-02 Alfred M. Szmidt <ams@gnu.org>
28805 Sync from coreutils.
28806 * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
28807 against `yes', rather than just testing for nonempty.
28809 2005-10-01 Simon Josefsson <jas@extundo.com>
28811 * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
28814 * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
28815 as an (POSIX) extension. Check for sys/types.h, sys/socket.h, and
28816 netdb.h too, needed by getaddrinfo.h. Check if getaddrinfo,
28817 freeaddrinfo and gai_strerror are declared by the POSIX headers.
28818 Check if struct addrinfo is declared.
28820 2005-10-01 Simon Josefsson <jas@extundo.com>
28822 * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
28823 Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO. Protect
28824 AI_* and EAI_* definitions. Protect function declarations.
28826 2005-10-01 Jim Meyering <jim@meyering.net>
28828 Sync from coreutils.
28830 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
28831 libraries [inet nsl socket xnet]. Nelson Beebe reported that with
28832 native cc on Solaris 7, getaddrinfo.c requires -lsocket.
28833 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
28834 in the inet and nsl libraries. Required on Solaris 5.7.
28836 2005-10-01 Jim Meyering <jim@meyering.net>
28838 Sync from coreutils.
28839 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
28840 in the inet and nsl libraries. Required on Solaris 5.7.
28842 2005-10-01 Eric Blake <ebb9@byu.net> (tiny change)
28844 * lib/getdelim.c (getdelim): Remove unused variables.
28846 2005-09-29 Paul Eggert <eggert@cs.ucla.edu>
28848 * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
28849 so that the code works even with ancient cpp. Portability problem
28850 with GCC 2.7.2.1 reported by Thomas M.Ott.
28852 2005-09-27 Paul Eggert <eggert@cs.ucla.edu>
28854 * modules/regex (Depends-on): Add strcase.
28856 * modules/gethostname (Licence): Change from GPL to LGPL, since
28857 gethostname.c is a trivial implementation of a standard library
28859 * modules/poll (License): Change from GPL to LGPL, since it's
28860 derived from LGPL code.
28862 2005-09-27 Jim Meyering <jim@meyering.net>
28864 * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
28867 * lib/intprops.h (signed_type_or_expr__): Define.
28868 (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
28869 for unsigned types.
28871 2005-09-26 Paul Eggert <eggert@cs.ucla.edu>
28873 * lib/verify.h (verify_expr): Remove, replacing with:
28874 (verify_true): New macro that returns true instead of void.
28875 (verify_type__): Remove.
28876 (verify): Use verify_true rather than verify_type__.
28878 2005-09-26 Bruno Haible <bruno@clisp.org>
28880 * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
28882 (lib_SOURCES): Remove mbchar.c.
28883 * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
28884 (Files): Add m4/mbrtowc.m4.
28885 * modules/mbiter: Likewise.
28886 * modules/mbuiter: Likewise.
28888 2005-09-26 Bruno Haible <bruno@clisp.org>
28890 * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
28891 compile mbchar.c if they are not both present.
28892 * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
28893 * m4/mbiter.m4 (gl_MBITER): Likewise.
28894 * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
28895 * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
28896 * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
28898 2005-09-25 Jim Meyering <jim@meyering.net>
28900 * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
28901 also uses socklen_t.
28903 2005-09-24 Paul Eggert <eggert@cs.ucla.edu>
28905 * lib/utimens.c (ENOSYS): Define if not already defined.
28906 (futimens): Support having a null PATH if the file descriptor
28909 * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
28911 (__attribute): Define to empty unless GCC 3.1 or later.
28912 This works around a core dump on OpenBSD 3.4, which has GCC
28913 2.95.3, which dumps core when given __attribute__(()). It also
28914 simplifies other tests, since we really don't want to bother with
28915 worrying about which ancient version of GCC supported what.
28916 Original problem reported by Yoann Vandoorselaere, with part of
28917 the fix suggested by Derek Price.
28919 2005-09-24 Jim Meyering <jim@meyering.net>
28921 * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
28922 so we can once again use a positive bitfield width of 1 -- now we
28923 don't have to explain why we were using a bitfield width of 2.
28925 2005-09-23 Paul Eggert <eggert@cs.ucla.edu>
28927 * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
28928 and similarly for the other external symbols. Problem reported
28931 * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
28932 bug reported by Jim Meyering.
28934 * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
28935 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
28936 not needed, since socklen is a prerequisite module.
28938 2005-09-23 Paul Eggert <eggert@cs.ucla.edu>
28940 * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
28941 Problem reported by Eric Blake.
28942 (getaddrinfo): Initialize se so that it's not garbage.
28943 Redo internal storage allocation so that it doesn't make unportable
28944 assumptions about alignment.
28947 * lib/utimens.c (futimens): Use futimesat if available.
28948 Prefer it to futimes since it doesn't have the futimes bug.
28950 * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
28951 (verify): Don't use the __LINE__ trick, as it doesn't work in general.
28952 Instead, declare a function that returns a pointer to an array,
28953 and use verify_type__ to declare the size of the array.
28954 Problem and germ of a solution reported by Bruno Haible.
28955 (verify_type__): Use 2, not 1, for bitfield size, to avoid
28956 a warning with Irix 6.5 cc. Problem reported by Bruno Haible.
28958 2005-09-23 Jim Meyering <jim@meyering.net>
28960 Sync from coreutils.
28961 Correct build failure (socklen_t not defined) on at least
28962 mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
28963 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
28965 2005-09-23 Jim Meyering <jim@meyering.net>
28967 * modules/getaddrinfo (Depends-on): Add socklen.
28969 2005-09-23 Bruno Haible <bruno@clisp.org>
28971 * tests/test-verify.c: New file.
28973 2005-09-22 Paul Eggert <eggert@cs.ucla.edu>
28975 Sync from coreutils.
28977 * modules/argmatch (Depends-on): Add verify.
28978 * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
28980 * modules/save-cwd (Depends-on): Likewise.
28982 * modules/openat (Files): Add lib/openat-die.c.
28983 (Depends-on): Remove error, exitfail.
28986 * modules/verify: New file.
28987 * MODULES.html.sh (Diagnostics <assert.h>): New section,
28988 with "verify" module.
28990 2005-09-22 Paul Eggert <eggert@cs.ucla.edu>
28992 Sync from coreutils.
28994 * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
28995 * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
28996 * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
28997 * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
28998 * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
28999 * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
29000 * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
29001 Don't bother checking for string.h, stdlib.h, unistd.h.
29002 * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
29003 AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
29005 * m4/jm-macros.m4 (gl_MACROS): Likewise.
29006 * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
29008 * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
29009 (gl_GETDATE): Use it.
29011 * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
29013 2005-09-22 Paul Eggert <eggert@cs.ucla.edu>
29015 Sync from coreutils.
29017 * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
29019 * lib/argmatch.h: Include verify.h
29020 (ARGMATCH_VERIFY): Use verify rather than rolling our own.
29021 (ARGMATCH_ASSERT): Remove; unused.
29022 * lib/canonicalize.c: Assume STDC_HEADERS.
29023 * lib/exclude.c: Include "strcase.h".
29024 * lib/regex_internal.h [!defined _LIBC]: Likewise.
29025 * lib/getusershell.c: Include stdio--.h rather than stdio.h
29027 (getusershell): Call fopen, not fopen_safer.
29028 * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
29029 Do not include unistd-safer.h.
29030 (save_cwd): Don't call fd_safer; no longer needed
29031 now that we include fcntl--.h.
29033 * lib/getdate.y (relative_time): New type.
29034 (RELATIVE_TIME_0): New constant.
29035 (parser_control): Use relative_time instead of doing it ourselves.
29036 (%union): Add new relative_time rel member.
29037 (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
29039 (relunit, relunit_snumber): Now of type rel.
29040 (zone, rel, relunit, get_date): Adjust to above changes.
29042 * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
29043 Do not include unistd-safer.h.
29044 (getloadavg): Don't call fd_safer; no longer needed
29045 now that we include fcntl--.h.
29047 * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
29048 (make_dir_parents): Treat ENOSYS like EEXIST.
29050 Improve quality of diagnostics on restore_cwd failure.
29051 * lib/mkdir-p.h (make_dir): Remove. All uses replaced by mkdir.
29052 (make_dir_parents): Last arg is now int * (for errno), not bool *.
29053 * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
29054 Rewrite "mkdir -p" algorithm to avoid the need for "stat"
29055 each time through the loop. Do not diagnose restore_cwd failure;
29056 that is the caller's job (and perhaps the caller does not care).
29058 * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
29059 (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
29060 If the file already exists but is not a directory, don't bother
29061 to try to make its parents.
29062 Close potential file descriptor leak if we can't chdir("/") (!).
29063 Don't always return true if chdir($PWD) fails; return true only
29064 if the requested action was done successfully (except for the
29066 Don't log final directory unless we actually made it.
29067 Refactor to avoid duplicate code to fix up permissions.
29068 Don't attempt to fix up parent permissions if chdir($PWD) fails.
29070 * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
29071 to make it a bit faster and (I hope) clearer.
29072 * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
29073 Fix bug in formats like %2N.
29075 * lib/verify.h: New file.
29077 2005-09-22 Paul Eggert <eggert@cs.ucla.edu>
29079 Sync from coreutils.
29080 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
29082 2005-09-22 Jim Meyering <jim@meyering.net>
29084 Sync from coreutils.
29086 * m4/lstat.m4 (gl_FUNC_LSTAT):
29087 Use AC_LIBSOURCES to require lstat.c and lstat.h.
29088 Remove obsolete comment.
29089 * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
29090 * m4/xstrtod.m4: Likewise.
29092 * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
29094 2005-09-22 Jim Meyering <jim@meyering.net>
29096 Sync from coreutils.
29098 * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
29100 * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
29101 the .tm_year member, since otherwise gcc-4.0 would now warn about
29102 tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
29104 * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
29105 order to avoid an unsuppressible warning from gcc on 64-bit systems.
29107 * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
29108 the command "date -d'2005-03-27 +1 day'" succeeds once again, even
29109 when run in a time zone for which daylight savings time is in effect
29110 for the starting date.
29112 * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
29113 stop us from restricting permissions of just-created absolute-named
29115 * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
29116 to restore initial working directory.
29117 * lib/mkdir-p.c (make_dir_parents): New parameter:
29118 different_working_dir, to tell caller if/when we change the working
29119 directory and are unable to return to the initial one.
29120 * lib/mkdir-p.h (make_dir_parents): Update prototype.
29121 * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
29122 `return false'. This fixes a bug introduced on 2004-07-30.
29124 * lib/openat.c (fdopendir): Be sure to close the supplied
29125 file descriptor before returning. This makes our replacement
29126 implementation a little closer to Solaris's, where fdopendir
29127 ties the file descriptor to the returned DIR* pointer.
29128 * lib/openat.c (unlinkat): New function.
29129 * lib/openat.h (unlinkat): Add prototype.
29130 * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
29131 (openat_restore_fail): Rename from openat_restore_die.
29132 * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
29134 Provide an alternative to exiting immediately upon save_cwd or
29135 restore_cwd failure. Now, an application can arrange e.g.,
29136 to perform a longjump in that case.
29137 * lib/openat.c: Include dirname.h.
29138 Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
29139 (rpl_openat, fdopendir, fstatat): Call openat_save_die
29140 and openat_restore_die rather than calling error directly.
29141 Don't include "error.h" or "exitfail.h"; they're no longer needed.
29143 * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
29144 * lib/openat.h (openat_save_die, openat_restore_die): Declare and
29147 * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
29148 size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
29149 int utc, int nanoseconds);
29151 date should not have to allocate a megabyte of virtual memory to
29152 handle a format argument like +%1048575T. When implemented with
29153 strftime, it must allocate such a buffer, use strftime to fill it
29154 in, print it, then free it.
29155 With fprintftime, it simply prints everything and exits.
29156 With no need for memory allocation, that's one fewer way to fail.
29157 * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
29158 optional field width, not before, so we accept %9:z, not %:9z.
29159 (my_strftime): Be sure to use L_('x') for literals.
29161 * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
29162 * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
29163 * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
29164 * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
29165 * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
29166 * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
29167 * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
29168 * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
29169 * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
29170 * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
29171 * lib/xgethostname.c, lib/xreadlink.c:
29172 Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
29174 * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
29175 * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
29176 * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
29177 Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
29178 and don't include <sys/file.h>).
29180 2005-09-22 Eric Blake <ebb9@byu.net> (tiny change)
29182 Sync from coreutils.
29184 * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
29185 [__linux__]: Allocate a big enough buffer for /proc/loadavg.
29186 [!LDAV_DONE]: Avoid unused variable warning.
29188 2005-09-21 Bruno Haible <bruno@clisp.org>
29190 * lib/unicodeio.h (unicode_to_mb): New declaration.
29192 2005-09-20 Derek Price <derek@ximbiot.com>
29194 * lib/getaddrinfo.c: Don't include <netdb.h> included from
29197 2005-09-20 Bruno Haible <bruno@clisp.org>
29199 * gnulib-tool: Remove trailing slashes from the values specified for
29200 --source-base, --m4-base, --tests-base, --aux-dir.
29201 Suggested by Simon Josefsson <jas@extundo.com>.
29203 2005-09-20 Bruno Haible <bruno@clisp.org>
29205 * gnulib-tool (func_all_modules, func_modules_transitive_closure,
29206 func_modules_to_filelist, func_import, func_create_testdir): Make all
29207 sorting results locale-independent, so that gnulib-cache.m4 doesn't
29208 change when gnulib-tool is invoked in a different locale.
29210 2005-09-19 Simon Josefsson <jas@extundo.com>
29212 * m4/socklen.m4: Fix typo.
29214 2005-09-19 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
29216 Use a consistent style for including <config.h>.
29217 * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
29218 lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
29219 lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
29220 lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
29221 lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
29222 lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
29223 lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
29224 lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
29225 lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
29226 lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
29227 lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
29228 lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
29229 lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
29230 lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
29231 lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
29232 lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
29233 lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
29234 lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
29235 lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
29236 lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
29237 lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
29238 lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
29239 lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
29240 lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
29241 lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
29242 lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
29243 lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
29244 lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
29245 lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
29246 lib/xstrtoumax.c, lib/yesno.c:
29247 Standardize inclusion of config.h.
29248 * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
29249 lib/inttostr.h: Removed inclusion of config.h from header files.
29250 * lib/inttostr.c: Adjusted in-tree users.
29251 * lib/timespec.h: Remove superfluous warning to include config.h.
29252 * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
29253 lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
29254 lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
29255 lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
29256 config.h with HAVE_CONFIG_H.
29258 2005-09-19 Jim Meyering <jim@meyering.net>
29260 * modules/pathmax (License): Change to LGPL.
29262 2005-09-19 Derek Price <derek@ximbiot.com>
29264 * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
29266 2005-09-19 Bruno Haible <bruno@clisp.org>
29268 * gnulib-tool (import): Provide default for --tests-base.
29270 2005-09-19 Bruno Haible <bruno@clisp.org>
29272 * doc/quote.texi: New file, extracted from gnulib.texi.
29273 * doc/ctime.texi: New file, extracted from gnulib.texi.
29274 * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
29275 * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
29276 * doc/gnulib.texi: Include them.
29278 2005-09-18 Bruno Haible <bruno@clisp.org>
29281 * gnulib-tool (func_readlink): New function.
29282 (func_ln_if_changed): Use it.
29284 2005-09-18 Bruno Haible <bruno@clisp.org>
29286 * gnulib-tool: Support --with-tests also with --import.
29287 (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
29288 (func_import): Use variables $testsbase and $inctests. Emit a
29289 gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
29290 Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
29291 SUBDIRS += $testsdir.
29292 (func_create_testdir): Update.
29294 2005-09-18 Bruno Haible <bruno@clisp.org>
29296 * gnulib-tool: Revise --dry-run implementation. Use variable $doit
29297 instead of $dry_run.
29298 (func_cp_if_changed, func_mv_if_changed): Remove functions.
29299 (func_ln_if_changed): Don't handle dry-run here.
29300 (func_import): In dry-run mode, detect more precisely which actions
29301 would be performed, and don't use "...ing" verbs.
29303 2005-09-18 Bruno Haible <bruno@clisp.org>
29305 * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
29306 (func_import): Use join on two temporary files instead of three nested
29307 loops, in order to determine which files are new or old.
29309 2005-09-18 Bruno Haible <bruno@clisp.org>
29311 * gnulib-tool (func_import): Comment out code that spits out the
29312 new files with --dry-run.
29314 2005-09-18 Bruno Haible <bruno@clisp.org>
29316 * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
29318 2005-09-16 Paul Eggert <eggert@cs.ucla.edu>
29320 * lib/stat-time.h: New file.
29321 * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
29322 (MTIME_CMP, TIMESPEC_NS): Remove. Now done by stat-time.h,
29323 in a different way.
29324 (timespec_cmp): New function.
29325 * lib/utimecmp.c: Include stat-time.h.
29326 (SYSCALL_RESOLUTION): Depend on whether various struct stat
29327 members exist, not on the obsolescent ST_MTIM_NSEC.
29328 (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
29330 2005-09-16 Paul Eggert <eggert@cs.ucla.edu>
29332 * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
29334 2005-09-16 Paul Eggert <eggert@cs.ucla.edu>
29336 * MODULES.html.sh (File system functions): Add stat-time.
29337 * modules/stat-time: New file.
29338 * modules/timespec (Files): Remove m4/st_mtim.m4; this
29339 is now done in a different way, by the stat-time module.
29340 * modules/utimecmp (Depends-on): Add stat-time.
29342 2005-09-15 Paul Eggert <eggert@cs.ucla.edu>
29344 * m4/st_mtim.m4: Remove. Superseded by...
29345 * m4/stat-time.m4: New file.
29346 * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
29347 Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
29349 2005-09-15 Derek Price <derek@ximbiot.com>
29351 * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
29353 2005-09-15 Derek Price <derek@ximbiot.com>
29355 * lib/regex_internal.h: Blank `pure' for GNUC < 3.
29356 * lib/regex_internal.c: Ditto, using this...
29357 (__GNUC_PREREQ): ...new macro.
29358 * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
29360 (__GNUC_PREREQ): ...this new macro.
29362 * lib/strstr.h: Include string.h. Define strstr as a macro here.
29364 2005-09-15 Derek Price <derek@ximbiot.com>
29365 Paul Eggert <eggert@cs.ucla.edu>
29367 * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
29368 changes, consolidating in...
29369 * lib/regex_internal.h: ...this file.
29371 2005-09-13 Jim Meyering <jim@meyering.net>
29373 * lib/canon-host.c: Filter through gnu indent and reword comments
29375 * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
29377 2005-09-13 Derek Price <derek@ximbiot.com>
29379 * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
29381 Reported by Jim Meyering <jim@meyering.net>.
29383 2005-09-12 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny change)
29385 * lib/base64.c: Typo.
29386 (base64_encode): Put b64str in initialized data section.
29388 2005-09-12 Paul Eggert <eggert@cs.ucla.edu>
29390 Merge glibc and coreutils changes into gnulib, plus a few
29392 * lib/md5.c: Use #error rather than a string.
29393 (CYCLIC): New macro, from glibc source. Use it instead of rol.
29394 * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
29395 (__attribute__): Define to empty for non recent-GCC.
29396 (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
29397 (__md5_process_bytes, __md5_read_ctx, __md5_stream):
29398 Renamed from their non-__ counterparts, with new macros replacing
29399 them if not _LIBC. Add __THROW attribute.
29401 (struct md5_ctx): Align buffer if using GCC.
29402 * lib/sha1.h (struct sha1_ctx): Likewise.
29403 * lib/sha1.c (SWAP): Renamed from the NOTSWAP. All uses changed.
29404 The old name was backwards.
29405 (NOTSWAP): Remove; not used.
29406 (rol): New macro, moved here from md5.h.
29407 (sha1_process_block): Remove a FIXME that doesn't make sense.
29409 2005-09-12 Derek Price <derek@ximbiot.com>
29411 Return usable errors from canon-host.
29412 * lib/canon-host.h: New file.
29413 * lib/canon-host.c (canon_host): Wrap...
29414 (canon_host_r): ...this new function, which now relies exclusively on
29416 (ch_strerror): New function.
29417 (last_cherror): New global.
29418 * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
29420 (getaddrinfo): Add AI_CANONNAME functionality. Don't do arithmetic on
29422 (freeaddrinfo): Free ai->ai_canonname when set.
29424 2005-09-12 Derek Price <derek@ximbiot.com>
29426 Make canon-host require getaddrinfo.
29427 * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
29428 AC_LIBSOURCE canon-host.h. Call...
29429 (gl_PREREQ_CANON_HOST): ...this new function, which requires
29431 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
29433 2005-09-12 Derek Price <derek@ximbiot.com>
29435 * modules/canon-host: Add canon-host.h. Depend on getaddrinfo. Make
29437 * modules/getaddrinfo: Add link to opengroup spec. Depend on strdup.
29439 2005-09-12 Derek Price <derek@ximbiot.com>
29441 * lib/gai_strerror.c: Include config.h when available. Include
29442 getaddrinfo.h before other headers to test interface.
29443 Reported by Larry Jones <lawrence.jones@ugs.com>.
29445 2005-09-12 Derek Price <derek@ximbiot.com>
29446 Paul Eggert <eggert@cs.ucla.edu>
29448 * modules/glob (Files): Add glob-libc.h.
29450 2005-09-12 Derek Price <derek@ximbiot.com>
29451 Paul Eggert <eggert@cs.ucla.edu>
29453 * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
29454 glob_.h, glob-libc.h.
29455 (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
29457 2005-09-12 Derek Price <derek@ximbiot.com>
29458 Paul Eggert <eggert@cs.ucla.edu>
29460 * lib/glob-libc.h: Renamed from glob_.h. The new version is
29461 taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
29462 protecting things that should be done only in gnulib contexts.
29463 * lib/glob_.h: New file, containing only the glob things needed for
29465 (GLOB_PREFIX): Remove. All uses changed to look for __GLOB_GNULIB.
29466 (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
29467 (glob, globfree, glob_pattern_p): Now defined simply in terms of
29468 rpl_glob, rpl_globfree, rpl_glob_pattern_p.
29469 (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
29470 and to respect the namespace rules better.
29472 2005-09-08 Simon Josefsson <jas@extundo.com>
29474 * modules/socklen: New file.
29476 2005-09-08 Simon Josefsson <jas@extundo.com>
29478 * m4/socklen.m4: New file.
29480 2005-09-08 Paul Eggert <eggert@cs.ucla.edu>
29482 * modules/utimens (Files): Add m4/utimbuf.m4, since
29483 m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
29484 Reported by Sergey Poznyakoff.
29486 2005-09-08 Paul Eggert <eggert@cs.ucla.edu>
29488 * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
29489 definitions, since that's the preferred style in glibc.
29490 Fix a minor spacing issue, and update copyright notice to match
29493 2005-09-08 Paul Eggert <eggert@cs.ucla.edu>
29495 * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
29497 2005-09-06 Simon Josefsson <jas@extundo.com>
29499 * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
29500 TCSETATTR. Reported by Derek Price <derek@ximbiot.com>.
29502 2005-09-06 Paul Eggert <eggert@cs.ucla.edu>
29504 * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
29507 2005-09-06 Paul Eggert <eggert@cs.ucla.edu>
29509 * config/srclist.txt: Add glibc bug 1302.
29511 2005-09-05 Paul Eggert <eggert@cs.ucla.edu>
29513 Change bitset word type from unsigned int to unsigned long int,
29514 as this has better performance on typical 64-bit hosts.
29515 Port bitset code to hosts with unusual word sizes.
29516 * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
29517 (build_collating_symbol):
29518 Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
29519 argument is a bitset. This is merely a style issue, but it makes
29520 it clearer that an entire array is expected.
29521 (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
29522 * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
29523 Port to the case where bitset_word is not the same as unsigned int.
29524 * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
29525 (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
29527 * lib/regexec.c (check_dst_limits_calc_pos_1,
29528 check_subexp_matching_top):
29529 (build_trtable, group_nodes_into_DFAstates):
29531 * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
29532 Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
29533 * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
29534 * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
29535 * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
29536 * lib/regcomp.c (optimize_subexps, lower_subexp):
29537 Work even if bitset_word has holes in its bitwise representation.
29538 * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
29539 * lib/regexec.c (check_dst_limits_calc_pos_1,
29540 check_subexp_matching_top):
29542 * lib/regex_internal.c (re_string_reconstruct):
29543 Don't assume UCHAR_MAX == 255.
29544 * lib/regex_internal.h (bitset_set_all): Likewise.
29545 * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
29547 (BITSET_WORDS): Renamed from BITSET_UINTS. All uses changed.
29548 (bitset_word): New type, replacing 'unsigned int' for bitset uses.
29550 (BITSET_WORD_MAX): New macro.
29551 (bitset_set, bitset_clear, bitset_contain, bitset_empty):
29552 (bitset_set_all, bitset_copy): Now inline functions, not macros.
29553 (bitset_empty, bitset_copy):
29554 Prefer sizeof (bitset) to multiplying it out ourselves.
29555 (bitset_not_merge): Remove; unused.
29556 (bitset_contain): Return bool, not unsigned int with one bit on.
29557 All callers changed.
29558 * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
29559 alignment than re_node_set; do this by defining a new internal
29560 type struct dests_alloc and using it to allocate memory.
29562 2005-09-05 Bruno Haible <bruno@clisp.org>
29564 * gnulib-tool (func_import): Fix comparison in handling of symbolic
29567 2005-09-04 Martin Lambers <marlam@marlam.de> (tiny change)
29569 * modules/size_max (Makefile.am): Add size_max.h
29571 2005-09-04 Derek Price <derek@ximbiot.com>
29573 * gnulib-tool (func_import): Fix reversed $symbolic logic.
29575 2005-09-03 Simon Josefsson <jas@extundo.com>
29577 * gnulib-tool: Fix typo.
29579 2005-09-03 Simon Josefsson <jas@extundo.com>
29581 * config/srclist.txt: Add glibc bug 1293.
29583 2005-09-03 Derek Price <derek@ximbiot.com>
29585 * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
29586 From Larry Jones <lawrence.jones@ugs.com>.
29588 2005-09-02 Simon Josefsson <jas@extundo.com>
29590 * modules/socklen: New file.
29592 2005-09-02 Simon Josefsson <jas@extundo.com>
29594 * modules/havelib: New module.
29596 * modules/gettext, modules/iconv, modules/lock, modules/readline:
29599 2005-09-02 Paul Eggert <eggert@cs.ucla.edu>
29601 Check for arithmetic overflow when calculating sizes, to prevent
29602 some buffer-overflow issues. These patches are conservative, in the
29603 sense that when I couldn't determine whether an overflow was possible,
29604 I inserted a run-time check.
29605 * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
29607 (SIZE_MAX) [!defined SIZE_MAX]: New macro.
29608 (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
29609 (re_xnrealloc, re_x2nrealloc): New inline functions.
29610 * lib/regcomp.c (init_dfa, analyze, build_range_exp,
29611 parse_bracket_exp):
29612 (build_equiv_class, build_charclass): Check for arithmetic overflow
29613 in size expression calculations.
29614 * lib/regex_internal.c (re_string_realloc_buffers):
29615 (build_wcs_upper_buffer, re_node_set_add_intersect):
29616 (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
29617 (re_dfa_add_node, register_state): Likewise.
29618 * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
29619 (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
29620 (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
29621 (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
29623 2005-09-02 Paul Eggert <eggert@cs.ucla.edu>
29625 * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
29626 m4/ulonglong.m4. Problem reported by Martin Lambers.
29628 2005-09-02 Bruno Haible <bruno@clisp.org>
29630 Support for lib vs. lib64 distinction on biarch platforms.
29631 * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
29632 (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
29633 * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
29635 2005-09-02 Bruno Haible <bruno@clisp.org>
29637 * gnulib-tool (import): In the other first-use case, provide defaults
29640 2005-09-02 Bruno Haible <bruno@clisp.org>
29642 * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
29643 patches not yet found in the latest gettext release.
29645 2005-09-01 Paul Eggert <eggert@cs.ucla.edu>
29647 * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
29648 to avoid a collision with bits/local_lim.h in glibc.
29649 All uses changed. Problem reported by Dmitry V. Levin in
29650 <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
29652 * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
29653 bugs in int versus size_t comparisons.
29654 (re_string_context_at): Fix bug where the code assumed that
29657 Use bool where appropriate.
29658 * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
29659 All callers changed.
29660 (calc_eclosure_iter): Likewise, for ROOT arg.
29661 (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
29662 (build_charclass_op): Likewise, for NON_MATCH arg.
29663 * lib/regex_internal.c (re_string_allocate, re_string_construct):
29664 (re_string_construct_common): Likewise, for ICASE arg.
29665 * lib/regexec.c (re_search_2_stub, re_search_stub):
29666 Likewise, for RET_LEN arg.
29667 (check_matching): Likewise, for FL_LONGEST_MATCH arg.
29668 (set_regs): Likewise, for FL_BACKTRACK arg.
29669 * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
29670 (duplicate_node_closure, calc_inveclosure, calc_eclosure):
29671 (calc_eclosure_iter, parse_bracket_exp):
29672 Use bool for internal variables that are booleans.
29673 * lib/regexec.c (re_search_internal, check_matching,
29674 proceed_next_node):
29675 (set_regs, build_sifted_states, sift_states_bkref):
29676 (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
29677 (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
29678 (find_collation_sequence_value):
29680 * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
29681 (re_node_set_compare):
29682 Return bool, not int. All callers changed.
29683 * lib/regexec.c (check_halt_node_context, check_dst_limits):
29684 (build_trtable, check_node_accept): Likewise.
29685 * lib/regex_internal.h: Include stdbool.h.
29687 Fix bugs uncovered when converting to bool.
29688 * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
29689 failure instead of charging ahead blindly.
29690 * lib/regex_internal.c (register_state): Likewise.
29691 * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
29692 for freeing internal storage.
29693 (group_nodes_into_DFA_states): Use unsigned int, not int, for
29694 bitset pieces used as boolean, to avoid undefined behavior
29695 on hosts that do int overflow checking.
29697 2005-09-01 Paul Eggert <eggert@cs.ucla.edu>
29699 * config/srclist.txt: Add glibc bugs 1285-1287.
29701 2005-09-01 Jim Meyering <jim@meyering.net>
29703 * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
29704 CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
29705 Require gl_STAT_MACROS, too.
29707 2005-09-01 Bruno Haible <bruno@clisp.org>
29709 * gnulib-tool (import): In the first-use case, provide defaults.
29711 2005-09-01 Bruno Haible <bruno@clisp.org>
29713 * gnulib-tool (func_import): Remove the .tmp files.
29715 2005-09-01 Bruno Haible <bruno@clisp.org>
29717 * gnulib-tool (func_import): Fix handling of symbolic links.
29719 2005-08-31 Paul Eggert <eggert@cs.ucla.edu>
29721 On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
29722 old glibc regex code mishandles strings longer than 2**31 bytes.
29723 This patch fixes this when the regex code is used in gnulib
29724 (i.e., outside glibc).
29726 This patch should not affect the use of the regex code inside
29727 glibc. No doubt this problem also needs to be handled for glibc
29728 as well, but the result will be an incompatible change to the
29729 glibc ABI, and the old ABI will have to be supported too. That
29730 can be the the subject for another patch.
29732 * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
29733 governing whether the rest of this patch is active. By default,
29734 the macro is disabled and the patch has no effect.
29735 (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
29736 (__re_idx_t, __re_size_t, __re_long_size_t): New types.
29737 (struct re_pattern_buffer, re_search, re_search_2, re_match):
29738 (re_match_2, re_set_registers): Use the new types.
29739 * lib/regex_internal.h (Idx, re_hashval_t): New types.
29740 (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
29742 (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
29743 (re_string_context_at, bin_tree_t, re_dfastate_t):
29744 (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
29745 (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
29746 (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
29747 (re_string_char_size_at, re_string_wchar_at):
29748 (re_string_elem_size_at):
29749 Use the new types and macros to port to 64-bit hosts.
29750 Use unsigned types for internal values, so that the code
29751 mostly works even for arrays larger than SSIZE_MAX.
29752 * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
29753 (search_duplicated_node, calc_eclosure_iter, fetch_number):
29754 (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
29755 (build_equiv_class, build_charclass, re_compile_fastmap_iter):
29756 (free_dfa_content, create_initial_state, optimize_utf8, analyze):
29757 (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
29758 (calc_inveclosure, parse_dup_op, build_range_exp):
29759 (build_collating_symbol, parse_bracket_exp, build_charclass_op):
29760 (fetch_number, create_token_tree, mark_opt_subexp):
29762 * lib/regex_internal.c (re_string_construct_common,
29763 create_ci_newstate):
29764 (create_cd_newstate, re_string_allocate, re_string_construct):
29765 (re_string_realloc_buffers, build_wcs_upper_buffer):
29766 (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
29767 (re_string_reconstruct, re_string_peek_byte_case):
29768 (re_string_fetch_byte_case, re_string_context_at):
29769 (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
29770 (re_node_set_init_copy, re_node_set_add_intersect):
29771 (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
29772 (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
29773 (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
29774 (re_acquire_state, re_acquire_state_context, register_state):
29776 * lib/regex.c (match_ctx_init, match_ctx_add_entry,
29777 search_cur_bkref_entry):
29778 (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
29779 (re_search_internal, re_search_2_stub, re_search_stub)
29780 (re_copy_regs, check_matching, check_halt_state_context, update_regs):
29781 (push_fail_stack, sift_states_iter_mb, build_sifted_states):
29782 (update_cur_sifted_state, check_dst_limits):
29783 (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
29784 (check_subexp_limits, sift_states_bkref, merge_state_array):
29785 (check_subexp_matching_top, get_subexp, get_subexp_sub):
29786 (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
29787 (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
29788 (expand_bkref_cache, check_node_accept_bytes):
29789 (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
29790 (re_search, re_match_2, re_search_2, prune_impossible_nodes):
29791 (acquire_init_state_context, check_halt_node_context):
29792 (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
29793 (sift_states_backward, clean_state_log_if_needed):
29794 (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
29795 (find_recover_state, transit_state_sb, transit_state_mb):
29796 (transit_state_bkref, build_trtable, match_ctx_clean):
29798 * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
29799 to work around an assumption that REG_MISSING is negative.
29801 * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
29802 (seek_collating_symbol_entry) [defined _LIBC]:
29803 (lookup_collation_sequence_value) [defined _LIBC]:
29804 (build_range_exp, build_collating_symbol) [defined _LIBC]:
29805 Use prototypes rather than old-style function definitions.
29806 * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
29807 (transit_state_sb) [0]:
29808 (find_collation_sequence_value) [defined _LIBC]: Likewise.
29810 * lib/regexec.c (re_search_internal): Simplify update of rm_so and
29813 * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
29814 (optimize_subexps, lower_subexp):
29815 Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
29816 since the signed shift might overflow. Use 1u<<31 instead.
29817 * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
29819 * lib/regexec.c (check_dst_limits_calc_pos_1,
29820 check_subexp_matching_top): Likewise.
29822 * lib/regcomp.c (optimize_subexps, lower_subexp):
29823 Use CHAR_BIT rather than 8, for clarity.
29824 * lib/regexec.c (check_dst_limits_calc_pos_1):
29825 (check_subexp_matching_top): Likewise.
29826 * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
29827 have to worry about portability issues when shifting it left.
29828 Remove no-longer-needed test for table_size > 0.
29829 * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
29830 in a word, as the resulting behavior is undefined.
29831 * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
29832 in one case, a <= should have been an <, and in another case the
29833 whole test was missing.
29834 * lib/regex_internal.h (BYTE_BITS): Remove. All uses changed to
29835 the standard name CHAR_BIT.
29836 * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
29837 this is not true on one's complement and signed-magnitude hosts.
29839 * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
29841 (struct re_dfa_t): Remove unused member states_alloc.
29842 * lib/regcomp.c (init_dfa): Don't initialize unused members.
29844 2005-08-31 Paul Eggert <eggert@cs.ucla.edu>
29846 * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
29847 _REGEX_LARGE_OFFSETS). Test for regoff_t/off_t bug in 64-bit
29848 and large-file glibc and in 32-bit large-file Solaris.
29850 2005-08-31 Paul Eggert <eggert@cs.ucla.edu>
29852 * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
29853 lengths fit in regoff_t; this isn't true if regoff_t is the same
29855 * lib/regex.c (re_search_internal): 5th arg is LAST_START
29856 (= START + RANGE) instead of RANGE. This avoids overflow
29857 problems when regoff_t is the same width as size_t.
29858 All callers changed.
29859 (re_search_2_stub): Check for overflow when adding the
29860 sizes of the two strings.
29861 (re_search_stub): Check for overflow when adding START
29862 to RANGE; if it occurs, substitute the extreme value.
29864 2005-08-31 Paul Eggert <eggert@cs.ucla.edu>
29866 * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
29868 2005-08-31 Jim Meyering <jim@meyering.net>
29870 * lib/regcomp.c (search_duplicated_node): Make first pointer arg
29871 a pointer-to-const.
29872 * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
29873 (register_state): Likewise.
29874 * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
29875 (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
29876 (group_nodes_into_DFAstates): Likewise.
29878 2005-08-31 Jim Meyering <jim@meyering.net>
29880 * check-module: Add a FIXME comment.
29882 2005-08-31 Eric Blake <ebb9@byu.net>
29884 * modules/unistd-safer (Files): Add unistd--.h.
29885 * modules/stdio-safer (Files): Add stdio--.h.
29887 2005-08-31 Derek Price <derek@ximbiot.com>
29889 * lib/getdelim.c (getdelim): Return EOF on EOF.
29890 Reported by Larry Jones <lawrence.jones@ugs.com>.
29892 2005-08-31 Bruno Haible <bruno@clisp.org>
29894 Avoid unnecessary diffs in the generated lib/Makefile.am.
29895 * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
29896 the generated files.
29897 (func_import): Don't set cmd.
29899 2005-08-31 Bruno Haible <bruno@clisp.org>
29901 * lib/strstr.c: Include <stddef.h>, for NULL.
29902 * lib/strcasestr.c: Likewise.
29903 Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
29905 2005-08-31 Bruno Haible <bruno@clisp.org>
29907 * gnulib-tool: New option --macro-prefix.
29908 (func_import): Use macro_prefix.
29909 (import): Handle option --macro-prefix.
29911 2005-08-31 Bruno Haible <bruno@clisp.org>
29913 * gnulib-tool (import): Rename most ac_* variables to cached_*.
29914 Also use new variables cached_lgpl, cached_libtool.
29916 2005-08-31 Bruno Haible <bruno@clisp.org>
29918 * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
29919 always instantiating them.
29921 2005-08-31 Bruno Haible <bruno@clisp.org>
29923 * gnulib-tool (func_import): Read the previous cached settings
29924 from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
29925 earlier added by gnulib but are now dropped. Warn when a gnulib file
29926 overwrites a non-gnulib file.
29928 2005-08-31 Bruno Haible <bruno@clisp.org>
29930 * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
29931 gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
29932 projects that don't keep autogenerated files in CVS. Put into
29933 actioncmd only the specified modules, not the transitive closure.
29935 2005-08-31 Bruno Haible <bruno@clisp.org>
29937 * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
29938 Create directories that shall be filled.
29939 (import): Don't look for gl_* macros in configure.ac. Recurse across
29940 all directories containing a gnulib-cache.m4 files, if meaningful.
29942 2005-08-31 Bruno Haible <bruno@clisp.org>
29944 * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
29945 (import): Set seen_libtool when we see gl_LIBTOOL.
29947 2005-08-31 Bruno Haible <bruno@clisp.org>
29949 * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
29950 declaration macro definitions from generated gnulib.m4.
29952 2005-08-30 Oskar Liljeblad <oskar@osk.mine.nu>
29954 * lib/iconvme.h: Add prototype for iconv_alloc.
29956 2005-08-29 Simon Josefsson <jas@extundo.com>
29958 * lib/iconvme.c: Fix errno.
29960 2005-08-29 Bruno Haible <bruno@clisp.org>
29962 * gnulib-tool: Enclose all occurrences of $destdir in "...", so
29963 that it works when the directory contains spaces.
29965 2005-08-29 Bruno Haible <bruno@clisp.org>
29967 * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
29969 2005-08-29 Bruno Haible <bruno@clisp.org>
29971 * gnulib-tool (func_import): Emit more comments into gnulib.m4.
29974 2005-08-29 Bruno Haible <bruno@clisp.org>
29975 and Stepan Kasal <kasal@ucw.cz>
29977 * check-module: If more parameters are given, check each of them
29978 separately; add more exceptions, as noted by Jim Meyering.
29979 (check_module): New procedure.
29980 (%exempt_header): Now contains all exceptions.
29982 2005-08-29 Ben Pfaff <blp@cs.stanford.edu>
29984 * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
29986 2005-08-29 Oskar Liljeblad <oskar@osk.mine.nu>
29988 * lib/iconvme.c: Split iconv_string into iconv_alloc.
29990 2005-08-28 Bruno Haible <bruno@clisp.org>
29992 * m4/gnulib-tool.m4: New file.
29994 2005-08-27 Jim Meyering <jim@meyering.net>
29996 * modules/unistd-safer (Files): Add pipe-safer.c.
29997 * modules/fcntl-safer (Files): Add creat-safer.c.
29999 2005-08-27 Jim Meyering <jim@meyering.net>
30001 * m4/stdlib-safer.m4: New file. From coreutils.
30002 * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
30003 * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
30004 AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
30005 * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
30006 Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
30008 2005-08-27 Jim Meyering <jim@meyering.net>
30010 * lib/fopen-safer.c: Merge minor changes from coreutils.
30011 * lib/dup-safer.c: Likewise.
30012 * lib/fd-safer.c: Likewise.
30014 Merge from coreutils.
30015 * lib/stdio--.h: New file.
30016 * lib/stdlib--.h: New file.
30017 * lib/mkstemp-safer.c: New file.
30019 GNU tar needs these.
30020 * lib/pipe-safer.c: New file.
30021 * lib/creat-safer.c: New file.
30022 * lib/fcntl--.h (creat): Define to creat_safer.
30023 * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
30024 * lib/unistd--.h (pipe): Define to pipe_safer.
30025 * lib/unistd-safer.h: Declare pipe_safer.
30027 2005-08-26 Simon Josefsson <jas@extundo.com>
30029 * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
30030 Haible <bruno@clisp.org>.
30032 2005-08-26 Paul Eggert <eggert@cs.ucla.edu>
30034 * lib/regex_internal.h: Remove all references to
30035 RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
30037 (bitset_not, bitset_merge, bitset_not_merge):
30038 (bitset_mask, re_string_allocate, re_string_construct):
30039 (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
30040 (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
30041 (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
30042 (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
30043 (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
30044 (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
30045 (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
30046 (re_acquire_state_context):
30047 Remove unnecessary forward decls.
30048 (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
30049 Put __attribute at function definition,
30050 now that the function decl has been removed.
30051 * lib/regex_internal.c (re_string_peek_byte_case):
30052 (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
30055 2005-08-25 Stepan Kasal <kasal@ucw.cz>
30057 * m4/regex.m4: Add AC_PREREQ(2.50).
30058 (gl_REGEX): If --with-included-regex was given, skip the autodetection.
30060 2005-08-25 Simon Josefsson <jas@extundo.com>
30062 * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
30065 2005-08-25 Simon Josefsson <jas@extundo.com>
30067 * lib/getpass.c: Add WIN32 implementation. Conditionalize use of
30068 termios.h, tcgetattr, tcsetattr and __fsetlocking. Remove some
30069 GLIBC specific code.
30071 2005-08-25 Paul Eggert <eggert@cs.ucla.edu>
30073 Make regex safe for g++. This fixes one real bug (an "err"
30074 that should have been "*err"). g++ problem reported by
30076 * lib/regex_internal.h (re_calloc): New macro, consistent with
30077 re_malloc etc. All callers of calloc changed to use re_calloc.
30078 * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
30079 not int. All callers changed.
30080 * lib/regcomp.c (re_compile_fastmap_iter): Don't use
30081 alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
30082 * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
30083 (find_recover_state): Change "err" to "*err"; this fixes what
30084 appears to be a real bug.
30085 (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
30088 2005-08-25 Paul Eggert <eggert@cs.ucla.edu>
30090 * modules/regex (Depends-on): Add malloc, since the code
30091 assumes that !malloc(0) means failure.
30093 2005-08-25 Paul Eggert <eggert@cs.ucla.edu>
30095 * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
30097 alloca modernization/simplification for regex.
30098 * lib/regex.c: Remove portability cruft for alloca. This no longer
30099 needs to be at the start of the file, and can be moved into
30100 regex_internal.h and simplified.
30101 * lib/regex_internal.h: Include <alloca.h>.
30102 (__libc_use_alloca) [!defined _LIBC]: New macro.
30103 * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
30104 now works outside glibc.
30106 2005-08-25 Paul Eggert <eggert@cs.ucla.edu>
30108 * config/srclist.txt: Add glibc bugs 1241, 1245.
30110 2005-08-25 Jim Meyering <jim@meyering.net>
30112 * lib/open-safer.c: Include <config.h>.
30113 Otherwise, we'd lose LARGEFILE support in any file using
30116 2005-08-25 Bruno Haible <bruno@clisp.org>
30118 * m4/minmax.m4: Require autoconf 2.52.
30119 (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
30120 of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
30121 alternatives of translit over the alphabet.
30122 Based on a patch from Stepan Kasal <kasal@ucw.cz>.
30124 2005-08-24 Simon Josefsson <jas@extundo.com>
30126 * tests/test-getpass.c: New file.
30128 2005-08-24 Paul Eggert <eggert@cs.ucla.edu>
30130 * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
30131 for GNU regex features.
30133 2005-08-24 Paul Eggert <eggert@cs.ucla.edu>
30135 * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
30136 * lib/regex.h (regerror): Likewise.
30138 * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
30139 requires this. (The code never needed it.)
30141 * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
30142 All uses of recently-renamed identifiers changed to use the new,
30143 POSIX-compliant names. The code will build and run just fine
30144 without these changes, but it's better to eat our own dog food
30145 and use the standard-conforming names.
30147 * lib/regex.h: Fix a multitude of POSIX name space violations.
30148 These changes have an effect only for programs that define
30149 _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
30150 do not change anything for programs compiled in the normal way.
30151 Also, there is no effect on the ABI.
30153 (_REGEX_SOURCE): New macro.
30154 Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
30155 defined and _GNU_SOURCE is not; this fixes a name space violation.
30157 Rename the following macros to obey POSIX requirements.
30158 The old names are still visible as macros if _REGEX_SOURCE is defined.
30159 (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
30160 RE_BACKSLASH_ESCAPE_IN_LISTS.
30161 (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
30162 (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
30163 (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
30164 (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
30165 (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
30166 (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
30167 (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
30168 (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
30169 (REG_INTERVALS): renamed from RE_INTERVALS.
30170 (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
30171 (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
30172 (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
30173 (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
30174 (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
30175 (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
30176 (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
30177 (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
30178 RE_UNMATCHED_RIGHT_PAREN_ORD.
30179 (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
30180 (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
30181 (REG_DEBUG): renamed from RE_DEBUG.
30182 (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
30183 (REG_IGNORE_CASE): renamed from RE_ICASE. This renaming is a bit
30184 unusual, since we can't clash with the POSIX REG_ICASE.
30185 (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
30186 (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
30187 (REG_NO_SUB): renamed from RE_NO_SUB.
30188 (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
30189 (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
30190 (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
30191 (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
30192 (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
30193 (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
30194 (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
30195 (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
30196 (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
30197 (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
30198 (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
30199 (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
30200 RE_SYNTAX_POSIX_MINIMAL_BASIC.
30201 (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
30202 (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
30203 RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
30204 (REG_DUP_MAX): renamed from RE_DUP_MAX. No need to undef it.
30205 (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
30206 (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
30207 (REG_FIXED): Renamed from REGS_FIXED.
30208 (REG_NREGS): Renamed from RE_NREGS.
30210 (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
30211 of other REG_* macros, since POSIX says the user is allowed to
30212 #undef these macros selectively.
30214 (reg_errcode_t): Update comment stating what other tables need
30217 Rename the following enum values to obey POSIX requirements.
30218 The old names are still visible as macros.
30219 (_REG_ENOSYS): Renamed from REG_ENOSYS. Define even if _XOPEN_SOURCE
30220 is not defined, since GNU is supposed to be a superset of POSIX as
30221 much as possible, and since we want reg_errcode_t to be a signed
30222 type for implementation consistency.
30223 (_REG_NOERROR): Renamed from REG_NOERROR.
30224 (_REG_NOMATCH): Renamed from REG_NOMATCH.
30225 (_REG_BADPAT): Renamed from REG_BADPAT.
30226 (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
30227 (_REG_ECTYPE): Renamed from REG_ECTYPE.
30228 (_REG_EESCAPE): Renamed from REG_EESCAPE.
30229 (_REG_ESUBREG): Renamed from REG_ESUBREG.
30230 (_REG_EBRACK): Renamed from REG_EBRACK.
30231 (_REG_EPAREN): Renamed from REG_EPAREN.
30232 (_REG_EBRACE): Renamed from REG_EBRACE.
30233 (_REG_BADBR): Renamed from REG_BADBR.
30234 (_REG_ERANGE): Renamed from REG_ERANGE.
30235 (_REG_ESPACE): Renamed from REG_ESPACE.
30236 (_REG_BADRPT): Renamed from REG_BADRPT.
30237 (_REG_EEND): Renamed from REG_EEND.
30238 (_REG_ESIZE): Renamed from REG_ESIZE.
30239 (_REG_ERPAREN): Renamed from REG_ERPAREN.
30240 (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
30241 (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
30242 (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
30243 (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
30245 (_REG_RE_NAME, _REG_RM_NAME): New macros.
30246 (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE. All uses
30247 changed. But support the old name if the new one is not defined
30248 and if _REGEX_SOURCE.
30250 Change the following member names in struct re_pattern_buffer.
30251 The old names are still supported if !_REGEX_SOURCE.
30252 The new names are always supported, regardless of _REGEX_SOURCE.
30253 (re_buffer): Renamed from buffer.
30254 (re_allocated): Renamed from allocated.
30255 (re_used): Renamed from used.
30256 (re_syntax): Renamed from syntax.
30257 (re_fastmap): Renamed from fastmap.
30258 (re_translate): Renamed from translate.
30259 (re_can_be_null): Renamed from can_be_null.
30260 (re_regs_allocated): Renamed from regs_allocated.
30261 (re_fastmap_accurate): Renamed from fastmap_accurate.
30262 (re_no_sub): Renamed from no_sub.
30263 (re_not_bol): Renamed from not_bol.
30264 (re_not_eol): Renamed from not_eol.
30265 (re_newline_anchor): Renamed from newline_anchor.
30267 Change the following member names in struct re_registers.
30268 The old names are still supported if !_REGEX_SOURCE.
30269 The new names are always supported, regardless of _REGEX_SOURCE.
30270 (rm_num_regs): Renamed from num_regs.
30271 (rm_start): Renamed from start.
30272 (rm_end): Renamed from end.
30274 (re_set_syntax, re_compile_pattern, re_compile_fastmap):
30275 (re_search, re_search_2, re_match, re_match_2, re_set_registers):
30276 Prepend __ to parameter names.
30278 Undo yesterday's changes.
30280 2005-08-24 Paul Eggert <eggert@cs.ucla.edu>
30282 * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
30283 supersedes it. Add glibc bugs 1237, 1238, 1240. Comment out
30286 2005-08-24 Jim Meyering <jim@meyering.net>
30288 Sync from coreutils.
30289 * m4/fcntl-safer.m4: New file.
30291 * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
30292 and object files for this module.
30294 2005-08-24 Jim Meyering <jim@meyering.net>
30296 Sync from coreutils.
30297 * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
30299 2005-08-24 Jim Meyering <jim@meyering.net>
30301 * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
30302 now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
30304 2005-08-24 Jim Meyering <jim@meyering.net>
30306 * modules/fcntl-safer: New module.
30307 * modules/fts (Depends-on): Add fcntl-safer.
30308 * MODULES.html.sh (File descriptor based Input/Output):
30311 2005-08-24 Bruno Haible <bruno@clisp.org>
30313 Support for unit test modules.
30314 * modules/README: Mention tests modules.
30315 * modules/TEMPLATE-TESTS: New file.
30316 * gnulib-tool: New options --extract-tests-module, --with-tests and
30317 --tests-base (unused for the moment).
30318 (testsbase, inctests): New variables.
30319 (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
30320 (func_verify_module): Exclude TEMPLATE-TESTS.
30321 (func_verify_nontests_module, func_verify_tests_module): New functions.
30322 (func_get_dependencies): Add implicit dependency for tests modules.
30323 (func_get_tests_module): New function.
30324 (func_modules_transitive_closure): When --with-tests was specified,
30325 include the unit tests as well, unless explicitly avoided.
30326 (func_emit_lib_Makefile_am): Ignore the tests modules here.
30327 (func_emit_tests_Makefile_am): New function.
30328 (func_create_testdir): When --with-tests was specified, emit a
30330 * MODULES.html.sh (Future developments): Update.
30332 2005-08-24 Bruno Haible <bruno@clisp.org>
30334 * modules/tls-tests: New file.
30335 * tests/test-tls.c: New file, from GNU gettext.
30337 2005-08-24 Bruno Haible <bruno@clisp.org>
30339 * modules/lock-tests: New file.
30340 * tests/test-lock.c: New file, from GNU gettext.
30342 2005-08-24 Bruno Haible <bruno@clisp.org>
30344 * lib/lock.h: Add multiple inclusion guard.
30345 * lib/tls.h: Add multiple inclusion guard.
30347 2005-08-24 Bruno Haible <bruno@clisp.org>
30349 * gnulib-tool: Add support for the --aux-dir option to
30350 --create-testdir, --create-megatestdir, --test, --megatest.
30351 (func_create_testdir, func_create_megatestdir): Optionally emit a
30352 AC_CONFIG_AUX_DIR directive.
30353 (create-testdir, create-megatestdir, test, megatest): Provide a
30354 default value for $auxdir.
30356 2005-08-24 Bruno Haible <bruno@clisp.org>
30358 * gnulib-tool (import): Use compound statement instead of subshell
30361 2005-08-24 Bruno Haible <bruno@clisp.org>
30363 * gnulib-tool (import): Change --aux-dir default to "build-aux".
30365 2005-08-24 Bruno Haible <bruno@clisp.org>
30367 * gnulib-tool (func_version): Update.
30369 2005-08-24 Bruno Haible <bruno@clisp.org>
30371 * gnulib-tool (func_import, func_create_testdir,
30372 func_create_megatestdir): Quote all autoconf macro arguments.
30374 2005-08-24 Bruno Haible <bruno@clisp.org>
30376 * gnulib-tool (func_create_megatestdir): Call autoreconf without the
30377 option --force, because --force causes the aclocal.m4 of each
30378 subdirectory to be newer than the corresponding config.h.in.
30380 2005-08-23 Paul Eggert <eggert@cs.ucla.edu>
30382 * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
30383 All contents moved to gl_REGEX.
30384 (gl_REGEX): Don't bother checking whether lib/regex.c exists;
30385 assume that it does.
30387 2005-08-23 Paul Eggert <eggert@cs.ucla.edu>
30389 * lib/regex.h (REG_NOSYS)
30390 [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
30391 Define, since POSIX requires it as of 2001.
30393 [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
30394 New private symbol, used to keep the enum signed in all cases.
30395 * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
30397 <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
30399 * lib/regex_internal.c (re_string_skip_chars, register_state):
30401 Remove forward decls; no longer needed now that we use prototypes.
30402 * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
30403 (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
30404 (clean_state_log_if_needed): Likewise.
30406 2005-08-23 Paul Eggert <eggert@cs.ucla.edu>
30408 * config/srclist.txt: Add glibc bugs 1231-1233.
30410 2005-08-20 Paul Eggert <eggert@cs.ucla.edu>
30412 Fix problems reported by Sam Steingold in
30413 <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
30414 * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
30415 assumed that reg_errcode_t is a signed type, which is not
30416 necessarily true if _XOPEN_SOURCE is not defined.
30417 * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
30418 since some compilers warn about it otherwise.
30420 2005-08-20 Paul Eggert <eggert@cs.ucla.edu>
30422 * lib/regcomp.c (create_initial_state): Remove duplicate decl.
30423 (init_word_char, create_initial_state, duplicate_node_closure):
30424 (fetch_token, peek_token_bracket, build_range_exp):
30425 (build_collating_symbol): Remove forward decls; no longer needed
30426 now that we use prototypes.
30429 (re_compile_pattern, re_set_syntax, re_compile_fastmap):
30430 (re_compile_fastmap_iter, regcomp, regerror, regfree):
30431 (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
30432 (create_initial_state, optimize_utf8, analyze, postorder, preorder):
30433 (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
30434 (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
30435 (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
30436 (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
30437 (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
30438 (build_range_exp, build_collating_symbol, parse_bracket_exp):
30439 (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
30440 (build_charclass, build_charclass_op, fetch_number, create_tree):
30441 (create_token_tree, mark_opt_subexp, duplicate_tree):
30442 Use prototypes rather than old-style definitions.
30444 * lib/regex_internal.c:
30445 (re_string_allocate, re_string_construct, re_string_realloc_buffers):
30446 (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
30447 (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
30448 (re_string_reconstruct, re_string_peek_byte_case):
30449 (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
30450 (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
30451 (re_node_set_init_copy, re_node_set_add_intersect):
30452 (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
30453 (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
30454 (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
30455 (re_acquire_state, re_acquire_state_context, register_state):
30456 (create_ci_newstate, create_cd_newstate, free_state):
30458 * lib/regexec.c (regexec, re_match, re_search, re_match_2,
30460 (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
30461 (re_search_internal, prune_impossible_nodes):
30462 (acquire_init_state_context, check_matching, static):
30463 (check_halt_node_context, check_halt_state_context, proceed_next_node):
30464 (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
30465 (update_regs, sift_states_backward, build_sifted_states):
30466 (clean_state_log_if_needed, merge_state_array):
30467 (update_cur_sifted_state, add_epsilon_src_nodes):
30468 (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
30469 (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
30470 (sift_states_iter_mb, transit_state, merge_state_with_log, static):
30471 (find_recover_state, check_subexp_matching_top, transit_state_mb):
30472 (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
30473 (check_arrival, check_arrival_add_next_nodes):
30474 (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
30475 (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
30476 (check_node_accept_bytes, check_node_accept, extend_buffers):
30477 (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
30478 (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
30482 * lib/regex_internal.h:
30483 (re_string_allocate, re_string_construct, re_string_reconstruct):
30484 (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
30485 (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
30486 (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
30487 (re_string_context_at, re_string_peek_byte_case):
30488 (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
30489 is defined, since we now use prototypes always.
30491 * lib/regex.h (_RE_ARGS): Remove. No longer needed, since we assume
30492 C89 or better. All uses removed.
30494 2005-08-20 Paul Eggert <eggert@cs.ucla.edu>
30496 * config/srclist.txt: Add glibc bugs 1220-1227.
30498 2005-08-20 Jim Meyering <jim@meyering.net>
30500 * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
30501 of unused local, dfa.
30503 2005-08-20 Bruno Haible <bruno@clisp.org>
30505 * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
30507 2005-08-19 Paul Eggert <eggert@cs.ucla.edu>
30509 * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
30510 (re_node_set_insert_last, re_dfa_add_node):
30511 Rename local variables to avoid GCC shadowing warnings.
30513 2005-08-19 Paul Eggert <eggert@cs.ucla.edu>
30515 * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
30516 [defined lint]: Suppress bogus uninitialized-variable warnings.
30518 * lib/regcomp.c (duplicate_node): Return new index, not an error code,
30519 and let the caller return REG_ESPACE if out of space. This
30520 removes an uninitialied-variable warning with GCC 4.0.1, and also
30521 avoids taking the address of a local variable. All callers
30524 2005-08-19 Paul Eggert <eggert@cs.ucla.edu>
30526 * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
30527 $LIBCSRC/posix/regexec.c.
30528 Add glibc bug 1217 for regcomp.c.
30530 2005-08-19 Jim Meyering <jim@meyering.net>
30532 * lib/regexec.c (proceed_next_node): Redo local variables to
30533 avoid GCC shadowing warnings.
30535 2005-08-18 Bruno Haible <bruno@clisp.org>
30537 * lib/strstr.c (strstr): Fix return value in multibyte case.
30538 * lib/strcasestr.c (strcasestr): Likewise.
30540 2005-08-17 Paul Eggert <eggert@cs.ucla.edu>
30542 * lib/regex.h: Remove useless space-before-tab. From coreutils.
30544 2005-08-17 Jim Meyering <jim@meyering.net>
30546 Make the %s format (seconds since the epoch) work for a negative
30547 number and when used with a zero-padded field width, e.g. %015s.
30549 * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
30550 label so that it precedes the code to set `digits'. Otherwise,
30551 %0Ns wouldn't work. Before this change, `date -d @-22 +%05s' would
30552 print `00-22'. Now, it prints `-0022', as it should.
30554 2005-08-17 Bruno Haible <bruno@clisp.org>
30556 * modules/strstr (Files): Add m4/mbrtowc.m4.
30557 (Depends-on): Add mbuiter.
30559 2005-08-17 Bruno Haible <bruno@clisp.org>
30561 * modules/strcasestr: New file.
30562 * MODULES.html.sh (String handling, based on ANSI C 89): Add
30565 2005-08-17 Bruno Haible <bruno@clisp.org>
30567 * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
30569 2005-08-17 Bruno Haible <bruno@clisp.org>
30571 * modules/mbuiter: New file.
30572 * MODULES.html.sh (Extended multibyte and wide character utilities):
30575 2005-08-17 Bruno Haible <bruno@clisp.org>
30577 * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
30578 (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
30580 2005-08-17 Bruno Haible <bruno@clisp.org>
30582 * m4/strcasestr.m4: New file.
30584 2005-08-17 Bruno Haible <bruno@clisp.org>
30586 * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
30587 * lib/strstr.c: Completely rewritten, with multibyte locale support.
30589 2005-08-17 Bruno Haible <bruno@clisp.org>
30591 * lib/strcasestr.h: New file.
30592 * lib/strcasestr.c: New file.
30594 2005-08-17 Bruno Haible <bruno@clisp.org>
30596 * lib/strcasecmp.c: Use mbuiter.h.
30598 2005-08-17 Bruno Haible <bruno@clisp.org>
30600 * lib/mbuiter.h: New file.
30602 2005-08-16 Paul Eggert <eggert@cs.ucla.edu>
30604 * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
30605 of gl_GETOPT_SUBSTITUTE. That way, if both gl_GETOPT_SUBSTITUTE
30606 and gl_GETOPT are both invoked via different paths (as happens
30607 with GNU tar CVS because it uses both argp and getopt), the former
30610 2005-08-16 Bruno Haible <bruno@clisp.org>
30612 * modules/tls: New file.
30613 * MODULES.html.sh (Multithreading): Add tls.
30615 2005-08-16 Bruno Haible <bruno@clisp.org>
30617 * modules/strnlen1: New file.
30618 * MODULES.html.sh (String handling): Add strnlen1.
30620 2005-08-16 Bruno Haible <bruno@clisp.org>
30622 * modules/strcase (Files): Add m4/mbrtowc.m4.
30623 (Depends-on): Add strnlen1, mbchar.
30625 2005-08-16 Bruno Haible <bruno@clisp.org>
30627 * modules/mbiter: New file.
30628 * MODULES.html.sh (Extended multibyte and wide character utilities):
30631 2005-08-16 Bruno Haible <bruno@clisp.org>
30633 * modules/mbfile: New file.
30634 * MODULES.html.sh (Extended multibyte and wide character utilities):
30637 2005-08-16 Bruno Haible <bruno@clisp.org>
30639 * modules/mbchar: New file.
30640 * MODULES.html.sh (Extended multibyte and wide character utilities):
30643 2005-08-16 Bruno Haible <bruno@clisp.org>
30645 * m4/tls.m4: New file, from GNU gettext.
30647 2005-08-16 Bruno Haible <bruno@clisp.org>
30649 * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
30651 (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
30653 2005-08-16 Bruno Haible <bruno@clisp.org>
30655 * m4/mbiter.m4: New file.
30657 2005-08-16 Bruno Haible <bruno@clisp.org>
30659 * m4/mbfile.m4: New file.
30661 2005-08-16 Bruno Haible <bruno@clisp.org>
30663 * m4/mbchar.m4: New file.
30665 2005-08-16 Bruno Haible <bruno@clisp.org>
30667 * lib/tls.h: New file, from GNU gettext.
30668 * lib/tls.c: New file, from GNU gettext.
30670 2005-08-16 Bruno Haible <bruno@clisp.org>
30672 * lib/strnlen1.h: New file.
30673 * lib/strnlen1.c: New file.
30675 2005-08-16 Bruno Haible <bruno@clisp.org>
30677 * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
30678 (mbi_init): Update.
30679 (mbi_avail, mbi_advance): Let the iteration end before the terminating
30680 NUL byte, not after it.
30682 2005-08-16 Bruno Haible <bruno@clisp.org>
30684 * lib/strcase.h (strcasecmp): Add note in comments.
30685 * lib/strncasecmp.c: Use code from strcasecmp.c.
30686 * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
30687 (strcasecmp): Work correctly in multibyte locales.
30689 2005-08-16 Bruno Haible <bruno@clisp.org>
30691 * lib/mbiter.h: New file.
30693 2005-08-16 Bruno Haible <bruno@clisp.org>
30695 * lib/mbfile.h: New file.
30697 2005-08-16 Bruno Haible <bruno@clisp.org>
30699 * lib/mbchar.h: New file.
30700 * lib/mbchar.c: New file.
30702 2005-08-16 Bruno Haible <bruno@clisp.org>
30704 * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
30705 the valid ones. Makes the comparison operations transitive:
30706 cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
30707 * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
30709 2005-08-15 Simon Josefsson <jas@extundo.com>
30711 * modules/ssize_t (License): Change to 'unlimited'.
30713 * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
30715 2005-08-15 Paul Eggert <eggert@cs.ucla.edu>
30717 * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
30718 Add comments for each pending glibc patch.
30720 2005-08-15 Bruno Haible <bruno@clisp.org>
30722 * lib/regex.h (__restrict_arr): Don't define to __restrict if
30723 __cplusplus is defined.
30725 2005-08-14 Jim Meyering <jim@meyering.net>
30727 Sync from coreutils.
30729 * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
30730 Use the hash-table-based cycle-detection code not just when
30731 FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
30732 Reported by James Youngman in
30733 <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
30734 * lib/fts_.h: Mention that with FTS_LOGICAL, we use
30735 FTS_TIGHT_CYCLE_CHECK.
30736 * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
30737 s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
30739 * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
30740 * lib/fts.c (fd_safer): Remove decl.
30741 Include fcntl--.h rather than unistd-safer.h
30742 (fts_safe_changedir): Don't call fd_safer; no longer needed
30743 now that we include fcntl--.h.
30745 2005-08-12 Simon Josefsson <jas@extundo.com>
30747 * modules/getndelim2: Use ssize_t module.
30748 * modules/getnline: Likewise.
30749 * modules/safe-read: Likewise.
30750 * modules/xreadlink: Likewise.
30752 * modules/ssize_t: New file.
30754 2005-08-12 Simon Josefsson <jas@extundo.com>
30756 * m4/readline.m4: Look for termcap, curses or ncurses if required.
30758 2005-08-12 Simon Josefsson <jas@extundo.com>
30760 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
30763 2005-08-12 Simon Josefsson <jas@extundo.com>
30765 * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
30766 readline, getdelim and check_version.
30767 (Support for systems lacking ISO C 99: Sizes of integer types):
30770 2005-08-12 Bruno Haible <bruno@clisp.org>
30772 * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
30774 2005-08-11 Simon Josefsson <jas@extundo.com>
30776 * modules/readline: New file.
30778 * modules/strnlen (Files): Add strnlen.h.
30780 2005-08-11 Simon Josefsson <jas@extundo.com>
30782 * m4/readline.m4: New file.
30784 2005-08-11 Simon Josefsson <jas@extundo.com>
30786 * lib/readline.h, readline.c: New file.
30788 2005-08-11 Simon Josefsson <jas@extundo.com>
30790 * doc/gnulib.texi (Initial import, Finishing touches): Mention
30793 2005-08-11 Bruno Haible <bruno@clisp.org>
30795 * lib/strnlen.h (strnlen): Change parameter name to match comment.
30797 2005-08-10 Stepan Kasal <kasal@ucw.cz>
30799 * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
30801 2005-08-10 Simon Josefsson <jas@extundo.com>
30803 * tests/test-iconvme.c: New file.
30805 2005-08-10 Simon Josefsson <jas@extundo.com>
30807 * m4/strnlen.m4: New file.
30809 * m4/strndup.m4: Don't check for strnlen declaration, done in
30812 2005-08-10 Simon Josefsson <jas@extundo.com>
30814 * lib/strndup.c: Use strnlen.h.
30816 * lib/strnlen.h: New file.
30818 2005-08-08 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny change)
30822 2005-08-02 Simon Josefsson <jas@extundo.com>
30824 * modules/readline: New file.
30826 2005-08-02 Simon Josefsson <jas@extundo.com>
30828 * modules/getdelim: New file.
30830 * modules/getline: Rewrite, don't use getndelim2.
30832 2005-08-02 Simon Josefsson <jas@extundo.com>
30834 * m4/getline.m4: Separate out getdelim stuff into separate module.
30836 * m4/getdelim.m4: New file.
30838 2005-08-02 Simon Josefsson <jas@extundo.com>
30840 * lib/getline.h, getline.c: Rewrite.
30842 * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
30844 2005-07-31 Bruno Haible <bruno@clisp.org>
30846 * lib/lock.h (gl_lock_initializer): New macro.
30847 (gl_lock_define_initialized): Use it.
30848 (gl_rwlock_initializer): New macro.
30849 (gl_rwlock_define_initialized): Use it.
30850 (gl_recursive_lock_initializer): New macro.
30851 (gl_recursive_lock_define_initialized): Use it.
30853 2005-07-30 Karl Berry <karl@gnu.org>
30855 * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
30856 Report from Ben Pfaff, regarding getopt.
30858 2005-07-26 Paul Eggert <eggert@cs.ucla.edu>
30860 Add support to getopt for Emacs, which doesn't use LIBOBJS in the
30862 * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
30863 (gl_GETOPT_SUBSTITUTE): Use it. Invoke gl_PREREQ_GETOPT.
30864 (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
30865 (gl_GETOPT): Use the new macros. Most of the implementation
30866 is moved to the new macros. This is for programs like Emacs
30867 that don't want all the functionality of gl_GETOPT.
30869 2005-07-26 Bruno Haible <bruno@clisp.org>
30871 * m4/lock.m4: Update from GNU gettext.
30873 2005-07-26 Bruno Haible <bruno@clisp.org>
30875 * lib/lock.h: Update from GNU gettext.
30876 * lib/lock.c: Update from GNU gettext.
30878 2005-07-25 Paul Eggert <eggert@cs.ucla.edu>
30880 * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
30881 obsolescent AC_TRY_RUN. Include the default includes files, for
30884 2005-07-24 Bruno Haible <bruno@clisp.org>
30886 * modules/visibility: New file.
30887 * MODULES.html.sh (Misc): Add visibility.
30889 2005-07-24 Bruno Haible <bruno@clisp.org>
30891 * m4/visibility.m4: New file.
30893 2005-07-24 Bruno Haible <bruno@clisp.org>
30895 * doc/visibility.texi: New file.
30897 2005-07-22 Bruno Haible <bruno@clisp.org>
30899 * modules/alloca-opt (Makefile.am): Remove explicit dependency on
30900 $(ALLOCA_H), redundant through BUILT_SOURCES.
30901 * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
30902 redundant through BUILT_SOURCES.
30903 * modules/byteswap (Makefile.am): Remove explicit dependency on
30904 $(BYTESWAP_H), redundant through BUILT_SOURCES.
30905 * modules/fnmatch (Makefile.am): Remove explicit dependency on
30906 $(FNMATCH_H), redundant through BUILT_SOURCES.
30907 * modules/getopt (Makefile.am): Remove explicit dependency on
30908 $(GETOPT_H), redundant through BUILT_SOURCES.
30909 * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
30910 redundant through BUILT_SOURCES.
30911 * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
30912 redundant through BUILT_SOURCES.
30913 * modules/stdbool (Makefile.am): Remove explicit dependency on
30914 $(STDBOOL_H), redundant through BUILT_SOURCES.
30915 * modules/stdint (Makefile.am): Remove explicit dependency on
30916 $(STDINT_H), redundant through BUILT_SOURCES.
30917 * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
30918 Remove explicit dependency on $(SYSEXITS_H).
30919 Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
30921 2005-07-18 Simon Josefsson <jas@extundo.com>
30923 * lib/check-version.c (check_version): Accept identical versions too.
30925 2005-07-18 Bruno Haible <bruno@clisp.org>
30927 * modules/lock: New file.
30928 * MODULES.html.sh (Multithreading): New section.
30930 2005-07-18 Bruno Haible <bruno@clisp.org>
30932 * m4/lock.m4: New file, from GNU gettext.
30934 2005-07-18 Bruno Haible <bruno@clisp.org>
30936 * lib/lock.h: New file, from GNU gettext.
30937 * lib/lock.c: New file, from GNU gettext.
30939 2005-07-18 Bruno Haible <bruno@clisp.org>
30941 * lib/lock.h (gl_once_t): New type.
30942 (gl_once_define, gl_once): New macros.
30943 * lib/lock.c (fresh_once): New variable.
30944 (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
30947 2005-07-16 Simon Josefsson <jas@extundo.com>
30949 * doc/gnulib.texi (Library version handling): Add ELF symbol collision
30950 workaround, suggested by Bruno.
30952 2005-07-15 Paul Eggert <eggert@cs.ucla.edu>
30954 * modules/xalloc (Depends-on): Add xalloc-die.
30955 * modules/xvasprintf (Depends-on): Add xalloc-die.
30957 2005-07-15 Paul Eggert <eggert@cs.ucla.edu>
30959 * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
30960 with a minor change.
30962 2005-07-15 Bruno Haible <bruno@clisp.org>
30964 * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
30965 When using lib/poll.c, define poll as rpl_poll.
30967 2005-07-14 Paul Eggert <eggert@cs.ucla.edu>
30969 * modules/argp (Depends-on): Remove unlocked-io.
30971 2005-07-14 Derek Price <derek@ximbiot.com>
30973 * m4/glob.m4 (gl_GLOB): Cache glob interface check result. Add check
30974 for glob symlink bug.
30976 2005-07-14 Bruno Haible <bruno@clisp.org>
30978 * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
30979 Instead, test for *_unlocked function declarations directly.
30981 2005-07-11 Simon Josefsson <jas@extundo.com>
30983 * modules/size_max: New file.
30985 * modules/xsize: Depend on size_max module for size_max.m4.
30987 2005-07-11 Simon Josefsson <jas@extundo.com>
30989 * lib/size_max.h: New file.
30991 2005-07-11 Paul Eggert <eggert@cs.ucla.edu>
30993 * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
30994 copyright symbol and the year.
30995 * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
30996 (version_etc_va): Use parameterized copyright notice.
30997 Reword to conform to the current GNU coding standards.
30999 2005-07-11 Karl Berry <karl@gnu.org>
31001 * doc/gnulib.texi (Quoting): new node.
31002 (Initial import): more info, from Patrice.
31004 2005-07-11 Bruno Haible <bruno@clisp.org>
31006 * gnulib-tool (func_usage): Document option --avoid.
31007 (Command line options): Handle --avoid.
31008 (func_acceptable): New function.
31009 (func_modules_transitive_closure): Use it.
31011 2005-07-11 Bruno Haible <bruno@clisp.org>
31013 * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
31014 Reported by Jim Meyering.
31016 2005-07-10 Bruno Haible <bruno@clisp.org>
31018 * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
31019 Needed when size_t is smaller than 'unsigned int'.
31020 Reported by Paul Eggert.
31022 2005-07-09 Sergey Poznyakoff <gray@gnu.org.ua>
31024 * modules/argp (Depends-on): Add unlocked-io
31026 2005-07-09 Sergey Poznyakoff <gray@gnu.org.ua>
31028 * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
31031 2005-07-08 Paul Eggert <eggert@cs.ucla.edu>
31033 * config/srclist.txt: Comment out regcomp.c, since we have a porting
31036 2005-07-08 Eric Blake <ebb9@byu.net> (tiny change)
31037 and Paul Eggert <eggert@cs.ucla.edu>
31039 * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
31040 in wint_t, not wchar_t. Remove now-unnecessary cast.
31042 2005-07-07 Paul Eggert <eggert@cs.ucla.edu>
31044 * modules/regex (Files): Add lib/regex_internal.c,
31045 lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
31046 (Depends-on): Add extensions.
31047 (Makefile.am): Remove lib_SOURCES; now done by m4 code.
31049 2005-07-07 Paul Eggert <eggert@cs.ucla.edu>
31051 * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
31053 * m4/same.m4 (gl_SAME): Likewise.
31054 Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
31056 * m4/regex.m4: Adjust to new libc regex implementation.
31057 (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
31058 all the .c and .h parts of (the new) regex.
31059 Quote the m4 stuff better.
31060 Check for RE_ICASE bug of old gnulib.
31061 Check for REG_STARTEND of recent libc.
31062 Rename local variables from jm_* to gl_*.
31063 Quote operand of "test -f".
31064 Say "recent enough" version of libc, not "version 2".
31065 (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
31066 prerequisite module. Remove AC_HEADER_STDC; no longer needed.
31067 Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
31068 Remove check for btowc, isascii.
31069 Require AM_LANGINFO_CODESET.
31071 2005-07-07 Paul Eggert <eggert@cs.ucla.edu>
31073 * lib/regex.c, regex.h: Sync from libc.
31074 * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
31076 New files, synced from libc, except that regex_internal.h
31077 currently has a small porting fix.
31079 2005-07-07 Paul Eggert <eggert@cs.ucla.edu>
31081 * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
31082 regex_internal.c, regexec.c.
31083 Add regex_internal.h too, but as a comment, since the libc version
31084 is currently broken in gnulib mode.
31086 2005-07-06 Paul Eggert <eggert@cs.ucla.edu>
31088 Support programs like Emacs that use gnulib but not gettext.
31089 * MODULES.html.sh (Internationalization functions): Add gettext-h.
31090 * modules/gettext-h: New file.
31091 * modules/gettext (Files): Remove lib/gettext.h.
31092 (Depends-on): Add gettext-h.
31093 (Makefile.am): Remove lib_SOURCES.
31094 * modules/argmatch, modules/c-stack, modules/closeout:
31095 * modules/copy-file, modules/csharpcomp, modules/csharpexec:
31096 * modules/execute, modules/file-type, modules/getaddrinfo:
31097 * modules/getopt, modules/human, modules/javacomp:
31098 * modules/javaexec, modules/mkdir-p, modules/obstack:
31099 * modules/openat, modules/pagealign_alloc, modules/pipe:
31100 * modules/quotearg, modules/regex, modules/rpmatch:
31101 * modules/unicodeio, modules/userspec, modules/version-etc:
31102 * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
31104 Depend on gettext-h, not gettext.
31106 2005-07-05 Paul Eggert <eggert@cs.ucla.edu>
31108 * gnulib-tool (func_import): Add support for 'public domain' license.
31109 * modules/alloca, modules/atexit, modules/memmove:
31110 Now public domain, not GPL.
31111 * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
31112 * modules/realloc, modules/strerror, modules/strtod:
31115 2005-07-05 Bruno Haible <bruno@clisp.org>
31117 * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
31118 autoconf CVS. Needed for mingw.
31120 2005-07-03 Paul Eggert <eggert@cs.ucla.edu>
31122 Remove the dependency of the strftime module on the tzset module.
31123 * modules/strftime (Depends-on): Remove dependency on tzset.
31125 2005-07-03 Paul Eggert <eggert@cs.ucla.edu>
31127 Remove the dependency of the strftime module on the tzset module.
31128 * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
31129 gl_FUNC_TZSET_CLOBBER.
31131 2005-07-03 Paul Eggert <eggert@cs.ucla.edu>
31133 Remove the dependency of the strftime module on the tzset module.
31134 * lib/strftime.c (my_strftime)
31135 [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
31136 Copy the input structure, to work around some of the bug with
31137 Solaris 2.5.1 and Solaris 2.6. If you still care about these old
31138 Solaris releases, you should also use the tzset module, but we won't
31139 require it as a dependency any more since we don't want LGPLed code
31140 to depend on GPLed code.
31142 2005-07-02 Jim Meyering <jim@meyering.net>
31144 * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
31145 * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
31146 * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
31147 Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
31149 2005-07-02 Jim Meyering <jim@meyering.net>
31151 * lib/backupfile.c (backup_args): Change a `0' to NULL.
31153 2005-07-01 Paul Eggert <eggert@cs.ucla.edu>
31155 * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
31156 declares only 'struct timespec;' (!).
31158 2005-07-01 Jim Meyering <jim@meyering.net>
31160 * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
31161 * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
31162 * lib/save-cwd.c, tempname.c:
31163 Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
31164 and don't include <sys/file.h>).
31166 2005-06-29 Jim Meyering <jim@meyering.net>
31168 * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
31169 type name. Use the variable name instead.
31170 * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
31173 2005-06-28 Simon Josefsson <jas@extundo.com>
31175 * modules/check-version (Files): Add check-version.m4.
31177 2005-06-28 Simon Josefsson <jas@extundo.com>
31179 * m4/check-version.m4: New file, suggested by Jim Meyering
31180 <jim@meyering.net>.
31182 2005-06-28 Simon Josefsson <jas@extundo.com>
31184 * lib/check-version.h, lib/check-version.c: New files.
31186 2005-06-28 Simon Josefsson <jas@extundo.com>
31188 * lib/base64.c (base64_encode): Indent. Rename 'b64' to avoid
31189 collision with global variable. Better indentation. Don't
31190 increment buffer pointer beyond buffer end. Based on comments
31191 from Paul Eggert <eggert@cs.ucla.edu>.
31193 * lib/base64.h: Indent.
31195 2005-06-28 Simon Josefsson <jas@extundo.com>
31197 * doc/gnulib.texi (Library version handling): New section.
31199 2005-06-28 Jim Meyering <jim@meyering.net>
31201 * check-module (find_included_lib_files): Hard-code another
31202 pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
31203 but modules/fts-lgpl (correctly) does not list those files.
31205 * modules/canonicalize (Files): Add lib/pathmax.h.
31207 2005-06-25 Simon Josefsson <jas@extundo.com>
31209 * modules/check-version: New file.
31211 2005-06-24 Paul Eggert <eggert@cs.ucla.edu>
31213 * lib/canon-host.c (canon-host): Append trailing "," to 0 in
31214 initializer of struct addrinfo, as an indication that we don't
31215 care how many members the structure has.
31217 2005-06-24 Derek Price <derek@ximbiot.com>
31218 and Bruno Haible <bruno@clisp.org>
31220 Remove stat module & update lstat.
31221 * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
31222 AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
31223 * m4/stat.m4: Remove this file.
31225 2005-06-24 Derek Price <derek@ximbiot.com>
31226 and Bruno Haible <bruno@clisp.org>
31228 Remove stat module & update lstat.
31229 * lib/stat.c: Remove this file...
31230 (slash_aware_lstat): ...moving this content and its support...
31231 * lib/lstat.c (rpl_lstat): ...into here.
31232 * lib/lstat.h: New file.
31234 2005-06-24 Derek Price <derek@ximbiot.com>
31235 and Bruno Haible <bruno@clisp.org>
31237 Remove stat module & update lstat.
31238 * config/srclist.txt (libc sources): Remove stat.
31240 2005-06-24 Derek Price <derek@ximbiot.com>
31241 and Bruno Haible <bruno@clisp.org>
31243 Remove stat module & update lstat.
31244 * MODULES.html.sh (stat): Remove.
31245 * MODULES.html: Regenerated.
31246 * modules/lstat (Description): Correct function name.
31247 (Files): Add "lstat.h".
31248 (Depends-on): Remove stat, add xalloc, stat-macros.
31249 * modules/stat: Remove this file.
31250 (Include): Add "lstat.h", remove <sys/stat.h>.
31252 2005-06-23 Paul Eggert <eggert@cs.ucla.edu>
31254 * lib/mktime.c: Include <string.h> even if !DEBUG. (From glibc.)
31255 (ranged_convert): Don't save conversion in a temporary struct.
31256 This causes a warning with GCC 4.0.0, and anyway in the typical
31257 case it's not worth the extra 100 bytes or so of code.
31258 (ranged_convert, __mktime_internal): When calling a function via a
31259 pointer P, use P () rather than (*P) (), as we now assume C89 or
31262 2005-06-22 Paul Eggert <eggert@cs.ucla.edu>
31264 * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
31265 "who -r" failed to give output. Problem reported by Tim Waugh.
31267 * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
31268 (xcalloc): Use it to avoid needless tests.
31269 Problem reported by Jim Meyering.
31271 2005-06-20 Derek Price <derek@ximbiot.com>
31273 * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
31274 unnecessary for Autoconfs > 2.59c.
31276 2005-06-16 Sergey Poznyakoff <gray@Mirddin.farlep.net>
31278 * lib/argp.h (__option_is_short): Check upper limit of
31279 __key. Isprint() requires its argument to have the value
31280 of an unsigned char or EOF.
31282 2005-06-16 Jim Meyering <jim@meyering.net>
31284 * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
31285 when either N or S is zero.
31287 2005-06-16 Derek Price <derek@ximbiot.com>
31289 * m4/bison.m4: Declare YACC & YFLAGS precious.
31291 2005-06-10 Paul Eggert <eggert@cs.ucla.edu>
31293 * lib/fnmatch.c (fnmatch): If there is an encoding error in a
31294 multibyte string or pattern, fall back on unibyte matching.
31295 Problem reported by James Youngman.
31297 2005-06-08 Bruno Haible <bruno@clisp.org>
31299 * modules/csharpcomp: New file.
31300 * MODULES.html.sh (C#): Add csharpcomp.
31302 2005-06-08 Bruno Haible <bruno@clisp.org>
31304 * m4/csharpcomp.m4: New file, from GNU gettext.
31306 2005-06-08 Bruno Haible <bruno@clisp.org>
31308 * lib/csharpcomp.h: New file, from GNU gettext.
31309 * lib/csharpcomp.c: New file, from GNU gettext.
31310 * lib/csharpcomp.sh.in: New file, from GNU gettext.
31312 2005-06-08 Bruno Haible <bruno@clisp.org>
31314 * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
31317 2005-06-07 Derek Price <derek@ximbiot.com>
31320 * lib/glob_.h: Indent nested #ifdef.
31322 2005-06-02 Paul Eggert <eggert@cs.ucla.edu>
31324 Sync from coreutils.
31325 Use "file name" when talking about file names, instead of "filename"
31326 or "path", as per the GNU coding standards.
31327 * lib/mkdir-p.c: Renamed from makepath.c.
31328 (make_dir_parents): Renamed from make_path. All callers changed.
31329 * lib/mkdir-p.h: Likewise. All includers changed.
31330 * lib/filenamecat.c: Renamed from path-concat.c.
31331 (file_name_concat): Renamed from path_concat. All callers changed.
31332 [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
31333 * lib/filenamecat.h: Likewise. All includers changed.
31334 * lib/acl.c: Don't use "path" or "filename" to mean "file name"
31335 in comments or local variable names.
31336 * lib/basename.c: Likewise.
31337 * lib/canonicalize.c, canonicalize.h: Likewise.
31338 * lib/dirname.c, dirname.h: Likewise.
31339 * lib/euidaccess.c: Likewise.
31340 * lib/exclude.c: Likewise
31341 * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
31342 * lib/fsusage.c, fsuage.h: Likewise.
31343 * lib/fts.c, fts_.h: Likewise.
31344 * lib/getcwd.c: Likewise.
31345 * lib/getloadavg.c: Likewise.
31346 * lib/mkstemp.c: Likewise.
31347 * lib/mountlist.c, mountlist.h: Likewise.
31348 * lib/openat.c, openat.h: Likewise.
31349 * lib/readlink-stub.c: Likewise.
31350 * lib/readutmp.c, readutmp.h: Likewise.
31351 * lib/rename.c: Likewise.
31352 * lib/rmdir.c: Likewise.
31353 * lib/same.c: Likewise.
31354 * lib/savedir.c: Likewise.
31355 * lib/stripslash.c: Likewise.
31356 * lib/tempname.c: Likewise.
31357 * lib/xreadlink.c: Likewise.
31358 * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
31360 * lib/exclude.h: Likewise.
31362 * lib/euidaccess.c (getuid, getgid, getuid, getegid)
31363 [!defined _POSIX_VERSION]: Remove decls; not needed these days.
31364 * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
31365 [!defined _POSIX_VERSION]: Remove decls; not needed these days.
31366 * lib/pathmax.h: Include <limits.h> unconditionally, since other
31367 files have been getting away with it for years (MORE/BSD 4.3
31369 * lib/userspec.c (getpwnam, getgrnam, getgrgid)
31370 [!defined _POSIX_VERSION]: Remove decls; not needed these days.
31372 * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
31373 Define to 256, not 255, as per modern POSIX.
31375 2005-06-02 Paul Eggert <eggert@cs.ucla.edu>
31377 Sync from coreutils.
31378 Use "file name" when talking about file names, instead of "filename"
31379 or "path", as per the GNU coding standards.
31380 * MODULES.html.sh: mkdir-p renamed from makepath.
31381 filenamecat renamed from path-concat.
31382 * modules/filenamecat: Renamed from modules/path-concat.
31383 (Files): filenamecat.h and filenamecat.c renamed from
31384 path-concat.h and path-concat.c.
31385 (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
31386 (Include): filenamecat.h, not path-concat.h.
31387 * modules/mkdir-p: Renamed from modules/makepath.
31388 (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
31390 (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
31391 (Include): mkdir-p.h, not makepath.h.
31393 2005-06-02 Paul Eggert <eggert@cs.ucla.edu>
31395 Sync from coreutils.
31396 * m4/mkdir-p.m4: Renamed from makepath.m4.
31397 (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH. All uses changed.
31398 Rename files from makepath.c to mkdir-p.c, and from
31399 makepath.h to mkdir-p.h.
31400 * m4/filenamecat.m4: Renamed from path-concat.m4.
31401 (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT. All uses changed.
31402 Rename files from path-concat.c to filenamecat.c,
31403 and from path-concat.h to filenamecat.h.
31404 * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
31405 "file name" in local variables or comments.
31406 * m4/rename.m4: Likewise.
31408 2005-06-01 Bruno Haible <bruno@clisp.org>
31410 * modules/csharpexec: New file.
31411 * MODULES.html.sh (C#): New section.
31413 2005-06-01 Bruno Haible <bruno@clisp.org>
31415 * m4/csharp.m4: New file, from GNU gettext.
31416 * m4/csharpexec.m4: New file, from GNU gettext.
31418 2005-06-01 Bruno Haible <bruno@clisp.org>
31420 * lib/csharpexec.h: New file, from GNU gettext.
31421 * lib/csharpexec.c: New file, from GNU gettext.
31422 * lib/csharpexec.sh.in: New file, from GNU gettext.
31424 2005-05-31 Derek Price <derek@ximbiot.com>
31425 Paul Eggert <eggert@cs.ucla.edu>
31428 * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
31430 2005-05-31 Derek Price <derek@ximbiot.com>
31431 Paul Eggert <eggert@cs.ucla.edu>
31434 * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
31436 2005-05-29 Derek Price <derek@ximbiot.com>
31438 * config/srclist.txt (glob_.h, glob.c): Add these files.
31440 2005-05-29 Derek Price <derek@ximbiot.com>
31442 * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
31443 * modules/glob: New file.
31444 * modules/getlogin_r: Add link to POSIX spec in description.
31446 2005-05-29 Derek Price <derek@ximbiot.com>
31447 Paul Eggert <eggert@cs.ucla.edu>
31449 * m4/glob.m4: New file.
31451 2005-05-29 Derek Price <derek@ximbiot.com>
31452 Paul Eggert <eggert@cs.ucla.edu>
31454 * lib/glob_.h, lib/glob.c: New files.
31456 2005-05-27 Paul Eggert <eggert@cs.ucla.edu>
31458 * modules/fts (Files): Remove m4/inttypes-pri.m4.
31459 * modules/fts-lgpl (Depends-on): Remove gettext.
31461 2005-05-27 Paul Eggert <eggert@cs.ucla.edu>
31463 * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
31464 and don't require gt_INTTYPES_PRI.
31466 2005-05-27 Paul Eggert <eggert@cs.ucla.edu>
31468 * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
31470 * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
31471 the configuration hassle isn't worth it.
31472 Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
31473 (LONGEST_MODIFIER, PRIuMAX): Remove.
31475 2005-05-27 Bruno Haible <bruno@clisp.org>
31477 * lib/getlogin_r.h: Remove second include of <stddef.h>.
31479 2005-05-26 Paul Eggert <eggert@cs.ucla.edu>
31481 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
31482 _POSIX_PTHREAD_SEMANTICS for Solaris.
31484 2005-05-25 Derek Price <derek@ximbiot.com>
31486 * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
31488 2005-05-25 Derek Price <derek@ximbiot.com>
31489 Paul Eggert <eggert@cs.ucla.edu>
31491 * modules/getlogin_r, m4/getlogin_r.m4: New files.
31492 * lib/getlogin_r.c, getlogin_r.h: New files.
31494 2005-05-25 Bruno Haible <bruno@clisp.org>
31495 Derek Price <derek@ximbiot.com>
31497 * lib/getlogin_r.h: Simplify API documentation.
31499 2005-05-23 Derek Price <derek@ximbiot.com>
31501 * modules/minmax (Files): Add m4/minmax.m4.
31502 (configure.ac): Add gl_MINMAX.
31504 2005-05-22 Paul Eggert <eggert@cs.ucla.edu>
31506 * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
31507 so that unistd-safer.h (GPL'ed code) need not be included.
31509 2005-05-22 Bruno Haible <bruno@clisp.org>
31511 * m4/minmax.m4: New file.
31512 Based on a patch by Derek Price <derek@ximbiot.com>.
31514 2005-05-22 Bruno Haible <bruno@clisp.org>
31516 * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
31517 (INT64_MIN): Fix definition.
31518 Suggested by Paul Eggert <eggert@cs.ucla.edu>.
31520 * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
31521 NEED_SIGNED_INT_TYPES.
31523 * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
31524 HAVE_SYSTEM_INTTYPES.
31526 2005-05-22 Bruno Haible <bruno@clisp.org>
31528 * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
31529 Also include <sys/param.h> if it defines MIN, MAX.
31530 Based on a patch by Derek Price <derek@ximbiot.com>.
31532 2005-05-21 Jim Meyering <jim@meyering.net>
31534 * modules/fts (Files): Add m4/inttypes-pri.m4.
31535 (Depends-on): Add lstat and remove gettext. Alphabetize.
31537 2005-05-20 Paul Eggert <eggert@cs.ucla.edu>
31540 * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
31541 (setup_dir, free_dir): New functions.
31542 (enter_dir, leave_dir): Define trivial
31543 alternatives of _LGPL_PACKAGE. Move to fts-cycle.c if !_LGPL_PACKAGE.
31544 (HT_INITIAL_SIZE, ENTER_DIR): Remove. All uses removed.
31545 (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
31546 (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
31547 Move to fts-cycle.c.
31548 (fts_open): Use setup_dir.
31549 (fts_close): Use free_dir.
31550 (fts_read): Have just one copy of the ENTER_DIR code rather than three.
31551 This adds a label and some gotos, but the alternatives were messier.
31552 Check for memory allocation failure when entering a dir.
31553 (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
31554 * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
31555 (FTS): New member fts_cycle, that is a union that contains the
31556 old active_dir_ht and cycle_state. All uses changed to mention
31557 fts_cycle.ht and fts_cycle.state.
31558 * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
31559 fts.c, with the following changes:
31560 (setup_dir, free_dir): New functions.
31561 (enter_dir): Now returns bool. Return true if successful, false
31562 if memory exhausted. All callers changed.
31563 Do not bother partly cleaning up on
31564 memory allocation failure; that is free_dir's job.
31565 However, free ad if hash_insert fails, to avoid memory leak.
31566 (enter_dir, leave_dir): Accommodate change to FTS by inspecting
31567 fts->fts_options to see which union member to use.
31569 2005-05-20 Paul Eggert <eggert@cs.ucla.edu>
31571 * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
31572 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
31574 2005-05-20 Paul Eggert <eggert@cs.ucla.edu>
31576 * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
31578 2005-05-20 Jim Meyering <jim@meyering.net>
31580 * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
31581 Now a macro, to pacify GCC.
31583 2005-05-20 Eric Blake <ebb9@byu.net> (tiny change)
31585 * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
31588 2005-05-20 Eric Blake <ebb9@byu.net> (tiny change)
31590 * lib/chown.c (rpl_chown): Return -1 on failure.
31592 2005-05-18 Paul Eggert <eggert@cs.ucla.edu>
31594 * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
31595 Don't check for stddef.h.
31596 * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
31597 don't use its results.
31598 Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
31599 since we include them unconditionally. Don't require
31600 AM_STDBOOL_H, since stdbool is a prerequisite.
31601 Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
31602 since we assume C89 or better.
31603 Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
31604 as we don't use their results.
31605 Don't check for fchdir, memmove, memset, strrchr, as we use
31606 them unconditionally.
31607 * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
31608 GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
31610 2005-05-18 Paul Eggert <eggert@cs.ucla.edu>
31612 * lib/canonicalize.c: Include canonicalize.h first, to test interface.
31613 Include <stddef.h> unconditionally, since we assume C89 now.
31614 All uses of PTR_INT_TYPE replaced by ptrdiff_t.
31615 * lib/fts.c: Include fts_.h first, to check interface.
31616 Do not include intprops.h; no longer needed.
31617 Include cycle-check.h and hash.h, since fts_.h no longer does.
31618 Remove unnecessary casts of closedir to void.
31619 (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
31620 decide whether to decrement nlinks.
31621 * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
31622 (FTS): Use struct hash_table * instead of Hash_table, so that
31623 we no longer need to include hash.h here.
31625 2005-05-18 Jim Meyering <jim@meyering.net>
31627 * modules/dirfd (License): Change to LGPL. Most of the code
31628 is already in the public domain.
31630 2005-05-18 Jim Meyering <jim@meyering.net>
31632 * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
31633 Reported by Yoann Vandoorselaere.
31635 2005-05-17 Jim Meyering <jim@meyering.net>
31637 * m4/fts.m4: New file, from coreutils.
31639 2005-05-17 Jim Meyering <jim@meyering.net>
31641 * lib/fts.c, lib/fts_.h: New files, from coreutils.
31643 2005-05-14 Paul Eggert <eggert@cs.ucla.edu>
31645 Sync from coreutils.
31646 * m4/unlinkdir.m4: New file.
31648 2005-05-14 Paul Eggert <eggert@cs.ucla.edu>
31650 Sync from coreutils.
31651 * lib/unlinkdir.c, lib/unlinkdir.h: New files.
31652 * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
31653 lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
31654 White space changes only.
31655 * lib/makepath.c (make_path): Port to hosts where leading "//" is
31657 * lib/yesno.c: Include getline.h, not ctype.h.
31658 (yesno): Don't remove leading white space; POSIX doesn't allow it.
31659 Use getline to remove arbitrary restriction on response length.
31661 2005-05-14 Paul Eggert <eggert@cs.ucla.edu>
31663 * config/srclist-update: Spell out "Street" in FSF postal
31664 mail address; this is the style the FSF seems to prefer.
31666 * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
31667 build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
31668 this updates FSF postal mail address.
31670 Sync from coreutils.
31671 * modules/unlinkdir: New file.
31672 * modules/yesno (Depends-on): Add getline.
31673 * MODULES.html.sh (File system functions): Add unlinkdir.
31675 2005-05-13 Paul Eggert <eggert@cs.ucla.edu>
31677 * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
31679 Change the initial comment to refer to GPL, not LGPL.
31680 gnulib-tool will change it to LGPL as needed.
31682 * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
31683 lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
31684 lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
31685 lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
31686 lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
31687 lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
31688 lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
31689 lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
31690 lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
31691 lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
31692 lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
31693 lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
31694 lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
31695 lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
31696 lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
31697 lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
31698 lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
31699 lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
31700 lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
31701 lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
31702 lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
31703 lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
31704 lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
31705 lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
31706 lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
31707 lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
31708 lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
31709 lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
31710 lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
31711 lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
31712 lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
31713 lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
31714 lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
31715 lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
31716 lib/getusershell.c, lib/group-member.c, lib/group-member.h,
31717 lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
31718 lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
31719 lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
31720 lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
31721 lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
31722 lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
31723 lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
31724 lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
31725 lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
31726 lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
31727 lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
31728 lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
31729 lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
31730 lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
31731 lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
31732 lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
31733 lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
31734 lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
31735 lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
31736 lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
31737 lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
31738 lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
31739 lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
31740 lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
31741 lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
31742 lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
31743 lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
31744 lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
31745 lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
31746 lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
31747 lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
31748 lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
31749 lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
31750 lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
31751 lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
31752 lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
31753 lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
31754 lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
31755 lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
31756 lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
31757 lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
31758 lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
31759 lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
31760 lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
31761 lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
31762 lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
31763 lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
31764 lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
31765 lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
31766 lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
31767 lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
31768 lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
31769 lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
31770 lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
31771 lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
31772 lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
31773 lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
31774 lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
31775 lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
31776 lib/yesno.c, lib/yesno.h:
31777 Update FSF postal mail address.
31779 2005-05-13 Paul Eggert <eggert@cs.ucla.edu>
31781 * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
31782 tests/test-memmem.c, tests/test-stpncpy.c:
31783 Update FSF postal mail address.
31785 2005-05-13 Bruno Haible <bruno@clisp.org>
31787 * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
31788 int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
31789 UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
31790 INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
31791 INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
31792 Add support for 64-bit integers in the MSVC compiler.
31794 2005-05-12 Sergey Poznyakoff <gray@Mirddin.farlep.net>
31796 * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
31798 2005-05-12 Eric Blake <ebb9@byu.net> (tiny change)
31800 * gnulib-tool (func_import): Sort and uniquify recommended includes.
31802 2005-05-11 Paul Eggert <eggert@cs.ucla.edu>
31804 * doc/getdate.texi (General date syntax): Don't say that date
31805 date --iso-8601=ns generates acceptable dates; it doesn't yet.
31806 Problem reported by Nic Ferrier.
31808 2005-05-10 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
31810 * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
31811 specified in ai_socktype. Fix invalid ai_protocol
31812 check. ai_protocol is usually set to 0 or depending on
31813 ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP. Checking for
31814 SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid. Set
31815 ai_socktype / ai_protocol in the returned addrinfo structure.
31817 2005-05-10 Simon Josefsson <jas@extundo.com>
31819 * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
31820 Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
31822 2005-05-10 Karl Berry <karl@gnu.org>
31824 * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
31825 (from http://www.gnu.org/licenses).
31826 * doc/COPYING.LIB: also rename to COPYING.LESSER.
31827 * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
31830 2005-05-10 Karl Berry <karl@gnu.org>
31832 * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
31833 (COPYING.DOC): remove.
31835 * config/srclist-update: new FSF address.
31837 2005-05-10 Derek Price <derek@ximbiot.com>
31839 * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
31842 2005-05-09 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
31843 Bruno Haible <bruno@clisp.org>
31845 * modules/inet_ntop: New file.
31846 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
31849 2005-05-09 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
31850 Bruno Haible <bruno@clisp.org>
31852 * m4/inet_ntop.m4: New file.
31854 2005-05-09 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
31855 Bruno Haible <bruno@clisp.org>
31857 * lib/inet_ntop.h: New file.
31858 * lib/inet_ntop.c: New file, from glibc with modifications.
31860 2005-05-09 Paul Eggert <eggert@cs.ucla.edu>
31862 * modules/time_r (License): Change to LGPL.
31863 * modules/extensions (License): Change to LGPL. Actually,
31864 the license is more permissive than that, but currently gnulib-tool
31865 doesn't know how to handle more-permissive licenses.
31867 * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
31868 Problem reported by Dave Love.
31870 2005-05-08 Jim Meyering <jim@meyering.net>
31872 * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
31875 2005-05-06 Paul Eggert <eggert@cs.ucla.edu>
31877 * modules/argmatch (Depends-on): Add stdbool.
31878 * modules/backupfile (Depends-on): Likewise.
31879 * modules/chdir-long (Depends-on): Likewise.
31880 * modules/closeout (Depends-on): Likewise.
31881 * modules/cycle-check (Depends-on): Likewise.
31882 * modules/dirname (Depends-on): Likewise.
31883 * modules/fnmatch (Depends-on): Likewise.
31884 * modules/fsusage (Depends-on): Likewise.
31885 * modules/fwriteerror (Depends-on): Likewise.
31886 * modules/getcwd (Depends-on): Likewise.
31887 * modules/getloadavg (Depends-on): Likewise.
31888 * modules/hard-locale (Depends-on): Likewise.
31889 * modules/makepath (Depends-on): Likewise.
31890 * modules/mountlist (Depends-on): Likewise.
31891 * modules/nanosleep (Depends-on): Likewise.
31892 * modules/posixtm (Depends-on): Likewise.
31893 * modules/quotearg (Depends-on): Likewise.
31894 * modules/readtokens (Depends-on): Likewise.
31895 * modules/readtokens0 (Depends-on): Likewise.
31896 * modules/readutmp (Depends-on): Likewise.
31897 * modules/save-cwd (Depends-on): Likewise.
31898 * modules/strftime (Depends-on): Likewise.
31899 * modules/userspec (Depends-on): Likewise.
31900 * modules/utimecmp (Depends-on): Likewise.
31901 * modules/xgetcwd (Depends-on): Likewise.
31902 * modules/xnanosleep (Depends-on): Likewise.
31903 * modules/xstrtod (Depends-on): Likewise.
31904 * modules/yesno (Depends-on): Likewise.
31906 2005-05-05 Paul Eggert <eggert@cs.ucla.edu>
31908 * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
31911 2005-05-01 Paul Eggert <eggert@cs.ucla.edu>
31913 Merge from coreutils. Among other things,
31914 add bulletproofing for cases where stdin, stdout, or stderr are closed.
31915 * lib/fd-safer.c: New file.
31916 * lib/fcntl-safer.h, open-safer.c: Remove.
31917 * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
31918 * lib/dup-safer.c: Include unistd-safer.h first.
31919 Don't include errno.h.
31920 (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
31921 * lib/file-type.h: Don't assume invoker included sys/stat.h first.
31922 * lib/file-type.c: Rely on file-type.h change.
31923 * lib/getloadavg.c: Include unistd-safer.h.
31924 (getloadavg): Use safer open.
31925 * lib/getusershell.c: Include "stdio-safer.h".
31926 (getusershell): Use safer fopen.
31927 * lib/long-options.c (long_options): Use NULL rather than 0.
31928 * lib/modechange.h (mode_free): Remove; all callers changed to invoke
31930 * lib/modechange.c: Likewise.
31931 xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
31932 (MODE_DONE): New constant.
31933 (struct mode_change): Remove 'next' member.
31934 (make_node_op_equals): New function; like the old one of the
31935 same name, except it allocates an array.
31936 (mode_compile, mode_create_from_ref): Use it.
31937 (mode_compile): Allocate result as an array, not a linked list.
31938 Parse octal string ourself, so that we catch mistakes like "+0".
31939 (mode_adjust): Arg is an array, not a linked list.
31940 * lib/modechange.c: Include stat-macros.h, xalloc.h.
31941 (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
31942 (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
31943 (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
31944 Remove. This is now stat-macros.h's job.
31945 (talloc): Remove. All callers replaced by xalloc, so that
31946 our invokers don't have to worry about reporting memory failures.
31947 (make_node_op_equals): Remove.
31948 (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
31950 (struct mode_change): Moved here from modechange.h.
31951 (mode_append_entry): Remove.
31952 (mode_compile): Remove MASKED_OPS arg, since it encouraged
31953 apps to have incorrect behavior. Use simpler algorithm for head
31954 and tail. Don't futz with umask; that's now the job of mode_adjust.
31955 Detect more invalid usages rather than having somewhat-random behavior.
31956 Don't insert an "a=" action, as that leads to incorrect behavior.
31957 (mode_compile, mode_create_from_ref): Return NULL on error instead
31958 of an enum, since now there's only one way to have an error. All
31960 (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
31961 at the correct time. Simplify calculation of "+u" and its ilk.
31962 Don't mishandle "+X".
31963 (mode_free): Remove "register" and localize decls.
31964 * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
31965 (struct mode_change): Move to modechange.c; callers don't
31966 need to see this stuff.
31967 (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
31968 (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
31969 (mode_change, mode_adjust): Reflect the new signatures noted above.
31970 * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
31971 that might redefine system include files.
31972 (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
31973 (my_usleep): Use NULL rather than (void *) 0.
31974 (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
31975 Use siginterrupt to specify that system calls should be interrupted.
31976 (rpl_nanosleep): Move initialization of suspended closer to call of
31978 * lib/readutmp.h (read_utmp): New arg OPTIONS. All uses changed.
31979 * lib/readutmp.c: Likewise. Include signal.h, stdbool.h.
31980 (desirable_utmp_entry): New function.
31981 (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
31982 using x2nrealloc, to simplify logic.
31983 (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
31984 size calculation. Do not assume utmp file is a regular file.
31985 * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
31986 (READ_UTMP_CHECK_PIDS): New constant.
31987 * lib/save-cwd.c: Include unistd-safer.h.
31988 (save_cwd): Use fd_safer.
31989 * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
31990 [!_LIBC] Include "stat-macros.h" instead.
31991 * lib/unistd-safer.h (fd_safer): New decl.
31993 2005-05-01 Paul Eggert <eggert@cs.ucla.edu>
31995 * modules/getloadavg (Depends-on): Add unistd-safer.
31996 * modules/getusershell (Depends-on): Add stdio-safer.
31997 * modules/lstat (Depends-on): Remove xalloc.
31998 * modules/mkstemp (Depends-on): Add stat-macros.
31999 * modules/modechange (Depends-on): Remove xstrtol.
32000 Add stat-macros, xalloc.
32001 * modules/save-cwd (Depends-on): Add unistd-safer.
32002 * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
32003 * modules/unistd-safer (Files): Add lib/fd-safer.c
32004 (Makefile.am): Remove lib_SOURCES.
32006 * MODULES.html.sh (Enhancements for POSIX:2001 functions):
32007 Remove fcntl-safer; unistd-safer supersedes it.
32009 2005-05-01 Paul Eggert <eggert@cs.ucla.edu>
32011 * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
32013 * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
32014 (gl_PREREQ_CHOWN): Remove.
32015 * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
32016 it. Don't require AC_HEADER_STAT.
32017 (gl_PREREQ_LSTAT): Remove.
32018 * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
32019 Don't require AC_HEADER_STAT.
32020 * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
32021 (gl_PREREQ_RMDIR): Remove.
32022 * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
32023 mention stat-macros.h or AC_HEADER_STAT, since we'll make
32024 the stat-macros module a prerequisite.
32025 * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
32026 * m4/filemode.m4 (gl_FILEMODE): Likewise.
32027 * m4/makepath.m4 (gl_MAKEPATH): Likewise.
32028 * m4/modechange.m4 (gl_MODECHANGE): Likewise.
32029 * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
32031 * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
32032 fetish_FUNC_RMDIR_NOTEMPTY. All uses changed. Use gl_ for
32034 * m4/fcntl-safer.m4: Remove.
32035 * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
32036 * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
32037 Invoke gl_PREREQ_FD_SAFER.
32038 (gl_PREREQ_FD_SAFER): New macro.
32039 * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
32040 * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
32041 Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
32042 Remove duplicate call to AC_LIBOBJ(readutmp).
32043 (gl_PREREQ_READUTMP): Remove. All uses inlined.
32045 * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
32046 MAP_ANON. Problem reported by Moriyoshi Koizumi to bug-cvs.
32048 2005-05-01 Paul Eggert <eggert@cs.ucla.edu>
32050 * MODULES.html.sh (Misc): Add byteswap.
32052 2005-05-01 Oskar Liljeblad <oskar@osk.mine.nu>
32054 * modules/getcwd (Depends-on): Add extensions.
32055 * modules/openat (Depends-on): Likewise.
32057 2005-05-01 Oskar Liljeblad <oskar@osk.mine.nu>
32059 * modules/byteswap: New file.
32061 2005-05-01 Oskar Liljeblad <oskar@osk.mine.nu>
32063 * m4/byteswap.m4: New file.
32065 2005-05-01 Oskar Liljeblad <oskar@osk.mine.nu>
32067 * lib/byteswap_.h: New file.
32069 2005-04-25 Karl Berry <karl@gnu.org>
32071 * m4/gettext.m4: Update from GNU gettext 0.14.4.
32073 2005-04-25 Albert Chin <china@thewrittenword.com>
32075 * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
32078 2005-04-21 Oskar Liljeblad <oskar@osk.mine.nu>
32080 * gnulib-tool (Options): Add -s for --symlink/--symbolic.
32081 (func_ln_if_changed) Remove forcibly for no error message
32082 in case file does not exist.
32084 2005-04-19 Simon Josefsson <jas@extundo.com>
32086 * gnulib-tool (Options): Make --symlink mean --symbolic.
32088 2005-04-18 Oskar Liljeblad <oskar@osk.mine.nu>
32090 * doc/gnulib.texi (Initial import): Fix. Mention --aux-dir.
32092 2005-04-16 Simon Josefsson <jas@extundo.com>
32094 * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
32096 2005-04-15 Simon Josefsson <jas@extundo.com>
32098 * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
32100 2005-04-15 Simon Josefsson <jas@extundo.com>
32102 * gnulib-tool: Rename --symlink to --symbolic.
32104 2005-04-15 Oskar Liljeblad <oskar@osk.mine.nu>
32106 * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
32107 symbolic links to files instead of copying/moving. Add --aux-dir,
32108 specifying directory relative --dir where auxiliary build tools
32111 2005-04-14 Bruno Haible <bruno@clisp.org>
32113 * modules/allocsa (License): Change to LGPL.
32114 Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
32116 2005-04-13 Paul Eggert <eggert@cs.ucla.edu>
32118 * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
32119 that "UTC +1 second" continues to work. Problem reported
32120 by Dmitry V. Levin.
32121 (relunit_snumber): New rule.
32124 2005-04-12 Paul Eggert <eggert@cs.ucla.edu>
32126 * lib/getdate.y (universal_time_zone_table): New constant.
32127 (time_zone_table): Remove GMT, UT, UTC entries; they're now in
32128 universal_time_zone_table.
32129 (lookup_zone): Prefer universal_time_zone_table to
32130 local_time_zone_table, so that "GMT" time stamps are allowed in
32131 London during the summer. Problem reported by Ian Abbott.
32133 2005-04-12 Jim Meyering <jim@meyering.net>
32135 * lib/human.c (humblock): Set *options even when returning due to
32136 xstrtoumax conversion failure. Thanks to a used-uninitialized
32137 warning from gcc-4.
32139 2005-04-09 Jim Meyering <jim@meyering.net>
32141 * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
32142 -Wuninitialized: initialize tm0.tm_year.
32144 2005-04-04 Paul Eggert <eggert@cs.ucla.edu>
32146 * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
32147 count, since there's no maximum. All uses changed.
32148 Add member dsts_seen.
32149 (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
32151 (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
32152 Use pc_rels_seen to decide whther a date is absolute.
32154 * lib/getdate.y (number): Don't overwrite year.
32155 (get_date): Initialize pc.year.digits to 0, not 4, to enable above
32158 2005-04-02 Simon Josefsson <jas@extundo.com>
32160 * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
32161 patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
32163 2005-03-28 Eric Blake <ebb9@byu.net> (tiny change)
32165 * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
32166 where no absolute path name can be longer than PATH_MAX.
32168 2005-03-27 Jim Meyering <jim@meyering.net>
32170 * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
32172 2005-03-26 Paul Eggert <eggert@cs.ucla.edu>
32174 * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
32175 "one's complement" -> "ones' complement" in comment, as per Knuth.
32176 "value of type" -> "type or expression" in comment.
32177 * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
32179 2005-03-26 Jim Meyering <jim@meyering.net>
32182 * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
32183 Correct typos: s/or/of/.
32185 2005-03-26 Jim Meyering <jim@meyering.net>
32187 * modules/check-include-files: Move to ../ and rename to...
32188 * check-module: ...this.
32190 2005-03-25 Jim Meyering <jim@meyering.net>
32192 * modules/xvasprintf (Files): Add xalloc.h.
32194 2005-03-23 Paul Eggert <eggert@cs.ucla.edu>
32196 * modules/gettext (Files): config/config.rpath ->
32197 build-aux/config.rpath
32198 * modules/iconv (Files): Likewise.
32199 Problem reported by Oskar Liljeblad.
32201 2005-03-23 Jim Meyering <jim@meyering.net>
32203 * modules/check-include-files: New script to check for
32204 missing dependencies, multiple includes, etc.
32206 * modules/c-strtold (Depends-on): Add xalloc.
32207 * modules/c-strtod (Depends-on): Add xalloc.
32208 * modules/hash (Depends-on): Add xalloc.
32209 (Files): Remove lib/xalloc.h.
32211 * modules/gethrxtime (Files): Add lib/gethrxtime.h.
32212 * modules/userspec (Files): Add lib/inttostr.h.
32214 2005-03-23 Jim Meyering <jim@meyering.net>
32216 * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
32218 2005-03-22 Jim Meyering <jim@meyering.net>
32220 * modules/stat-macros: New module.
32221 * modules/canonicalize, modules/euidaccess, modules/file-type,
32222 * modules/filemode, modules/lchown, modules/makepath,
32223 * modules/rmdir, modules/stat: Depend on new stat-macros module
32224 rather than listing lib/stat-macros.h manually.
32225 Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
32227 2005-03-22 Jim Meyering <jim@meyering.net>
32229 * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
32231 2005-03-22 Bruno Haible <bruno@clisp.org>
32233 * config/srclist.txt: Replace target directory 'config' with
32235 * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
32236 * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
32239 2005-03-21 Paul Eggert <eggert@cs.ucla.edu>
32241 * modules/chdir-long (Depends-on): Add mempcpy.
32243 * modules/acl, modules/backupfile, modules/c-strtod,
32244 modules/c-strtold, modules/canon-host, modules/canonicalize,
32245 modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
32246 modules/exclude, modules/exitfail, modules/file-type,
32247 modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
32248 modules/getdate, modules/getline, modules/getpagesize,
32249 modules/getpass, modules/getugroups, modules/group-member,
32250 modules/hard-locale, modules/hash, modules/human, modules/idcache,
32251 modules/inttostr, modules/long-options, modules/makepath,
32252 modules/md5, modules/memcasecmp, modules/memcoll,
32253 modules/modechange, modules/mountlist, modules/path-concat,
32254 modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
32255 modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
32256 modules/safe-read, modules/safe-write, modules/same, modules/savedir,
32257 modules/settime, modules/sha1, modules/sig2str, modules/strdup,
32258 modules/strftime, modules/strndup, modules/strverscmp,
32259 modules/timespec, modules/unlocked-io, modules/userspec,
32260 modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
32262 Remove lib_SOURCES line from Makefile.am section, as this is now
32263 done automatically by the corresponding Autoconf macro.
32265 2005-03-21 Jim Meyering <jim@meyering.net>
32267 Changes imported from coreutils.
32269 * lib/cycle-check.c: Don't include xalloc.h.
32271 * lib/path-concat.c: Don't include assert.h.
32272 (path_concat): Remove assertion that would have triggered
32273 for ABASE starting with more than one slash.
32274 Reported by Andreas Schwab.
32276 * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
32277 properly when ABASE is an absolute file name.
32278 Correct the description of this function.
32279 Include <assert.h>.
32280 Add an assertion and a test driver.
32281 This fixes a bug introduced on 2004-07-02.
32282 Andreas Schwab reported the resulting failure of cp --parents:
32283 http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
32285 2005-03-21 Jim Meyering <jim@meyering.net>
32287 * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
32288 * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
32290 2005-03-21 Jim Meyering <jim@meyering.net>
32291 and Paul Eggert <eggert@cs.ucla.edu>
32293 * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
32294 m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
32295 m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
32296 m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
32297 m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
32298 m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
32299 m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
32300 m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
32301 m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
32302 m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
32303 m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
32304 m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
32305 m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
32306 m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
32307 m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
32308 m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
32309 Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
32312 2005-03-18 Paul Eggert <eggert@cs.ucla.edu>
32314 * lib/strftime.c (my_strftime): If the underlying strftime returns 0
32315 (which shouldn't happen), generate nothing instead of returning 0
32316 immediately, so that nstrftime (NULL, ...) doesn't return 0.
32318 2005-03-16 Bruno Haible <bruno@clisp.org>
32320 * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
32321 HAVE_LONGLONG_64BIT.
32323 2005-03-16 Bruno Haible <bruno@clisp.org>
32325 * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
32326 HAVE_LONGLONG_64BIT.
32328 2005-03-16 Bruno Haible <bruno@clisp.org>
32330 * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
32331 HAVE_LONGLONG_64BIT.
32333 2005-03-15 Paul Eggert <eggert@cs.ucla.edu>
32335 * lib/strftime.c (my_strftime): Prepend space to format so that we can
32336 reliably distinguish strftime failure from empty output on POSIX
32339 2005-03-15 Paul Eggert <eggert@cs.ucla.edu>
32341 * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
32342 (iconv_string): Don't guess a size-zero buffer, as that might cause
32343 buffer overrun. Instead, avoid multiplying by MB_LEN_MAX if the
32344 result would be 'too large', where 'too large' is (heuristically)
32345 the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
32346 overflow concerns. This will prevent some unwanted malloc failures
32347 when the inputs are very large.
32349 2005-03-15 Karl Berry <karl@gnu.org>
32351 * config/srclist.txt (config.rpath): from gettext.
32352 * config/config.rpath: update.
32354 2005-03-15 Bruno Haible <bruno@clisp.org>
32356 * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
32359 * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
32362 * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
32365 2005-03-14 Simon Josefsson <jas@extundo.com>
32367 * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
32370 2005-03-14 Paul Eggert <eggert@cs.ucla.edu>
32372 * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
32373 TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
32375 * lib/strtol.c: Likewise.
32377 2005-03-14 Jim Meyering <jim@meyering.net>
32379 * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
32380 && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
32381 to be nonzero so that we (and caller) can detect the difference
32382 between a valid zero-length expansion and an error return, even
32383 when the underlying strftime fails before writing anything into
32386 2005-03-14 Bruno Haible <bruno@clisp.org>
32388 * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
32389 Update from GNU gettext 0.14.3.
32391 2005-03-10 Jim Meyering <jim@meyering.net>
32393 * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
32395 2005-03-10 Jim Meyering <jim@meyering.net>
32397 * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
32398 so that this module works on systems without fchdir.
32400 2005-03-09 Paul Eggert <eggert@cs.ucla.edu>
32402 Factor int-properties macros into a single file, except for
32403 glibc-related files.
32404 * lib/intprops.h: New file.
32405 * lib/getloadavg.c: Include it instead of limits.h.
32406 (INT_STRLEN_BOUND): Remove.
32407 * lib/human.c: Include intprops.h.
32408 (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
32409 * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
32411 * lib/inttostr.h: Include intprops.h instead of limits.h.
32412 (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
32413 * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
32414 for consistency with intprops.h.
32415 (time_t_is_integer, twos_complement_arithmetic): Use them.
32416 * lib/sig2str.h: Include <signal.h>, intprops.h.
32417 (INT_STRLEN_BOUND): Remove.
32418 * lib/strftime.c (TYPE_SIGNED): Remove.
32419 (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
32420 * lib/strtol.c: Adjust comments to match intprops.h.
32421 * lib/userspec.c: Include intprops.h.
32422 (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
32423 * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
32424 * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
32425 instead of rolling our own expressions.
32426 * lib/xstrtol.c: Include xstrtol.h first, to test interface.
32428 * lib/strftime.c: Include <stdbool.h>. Use bool where appropriate,
32430 (my_strftime): Do not mishandle years close to INT_MAX, by doing
32431 the right thing even if adding 1900 would overflow. Similarly
32432 for tm_mon + 1 and tm_yday + 1.
32433 Make %Y always equivalent to %C%y, and similarly for %G and %g.
32434 (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
32435 (DO_SIGNED_NUMBER): New macro.
32436 (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
32438 2005-03-07 Bruno Haible <bruno@clisp.org>
32440 * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
32442 2005-03-07 Bruno Haible <bruno@clisp.org>
32444 * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
32446 2005-03-04 Derek R. Price <derek@ximbiot.com>
32448 * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
32449 (func_import): Only replace files via --import when they have actually
32452 2005-03-03 Derek R. Price <derek@ximbiot.com>
32454 * m4/mmap-anon.m4: New file.
32455 * m4/pagealign_alloc.m4: New file.
32457 2005-03-03 Derek R. Price <derek@ximbiot.com>
32458 Bruno Haible <bruno@clisp.org>
32460 * modules/pagealign_alloc: New file.
32461 * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
32463 2005-03-03 Derek R. Price <derek@ximbiot.com>
32464 Bruno Haible <bruno@clisp.org>
32466 * lib/pagealign_alloc.h: New file.
32467 * lib/pagealign_alloc.c: New file.
32469 2005-03-03 Bruno Haible <bruno@clisp.org>
32471 * m4/inttypes.m4, isc-posix.m4, once-only.m4:
32472 Use an all-permissive copyright notice, recommended by RMS.
32474 2005-03-02 Bruno Haible <bruno@clisp.org>
32476 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
32477 of AIX, the replacement has to be done only after <string.h> is
32478 included, therefore not in config.h. stpncpy.h does the replacement,
32479 and stpncpy.c uses it.
32481 2005-03-02 Bruno Haible <bruno@clisp.org>
32483 * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
32486 2005-03-01 Paul Eggert <eggert@cs.ucla.edu>
32488 Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
32489 The workaround isn't strictly needed for POSIX conformance, and
32490 it's too much of a pain to configure and maintain. We'll ask
32491 people to fix their kernels instead.
32492 * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
32493 (NANOSLEEP_BUG_WORKAROUND): Remove.
32494 (xnanosleep): Remove the workaround.
32496 2005-03-01 Paul Eggert <eggert@cs.ucla.edu>
32498 * modules/gettime (Makefile.am): Remove lib_SOURCES line.
32499 Reported by Derek Price.
32500 (Include): Add "timespec.h".
32502 * modules/xnanosleep (Depends-on): Remove gethrxtime.
32504 2005-03-01 Paul Eggert <eggert@cs.ucla.edu>
32506 * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
32507 to detect nanosleep bug.
32509 2005-03-01 Bruno Haible <bruno@clisp.org>
32511 * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
32513 2005-02-26 Paul Eggert <eggert@cs.ucla.edu>
32515 * modules/gethrxtime: New file.
32516 * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
32517 (Depends-on): Add gethrxtime.
32518 (configure.ac): Add gl_XNANOSLEEP.
32519 (Makefile.am): Remove lib_SOURCES line.
32521 2005-02-25 Paul Eggert <eggert@cs.ucla.edu>
32523 * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
32524 * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
32526 2005-02-25 Paul Eggert <eggert@cs.ucla.edu>
32528 * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
32529 * lib/timespec.h (gettime): Return void, since it always
32530 succeeds now. All uses changed.
32531 * lib/gettime.c (gettime) Likewise.
32532 [HAVE_NANOTIME]: Prefer nanotime.
32533 Assume gettimeofday succeeds, as POSIX requires.
32534 Assime time () succeeds, since other code already does.
32535 * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
32536 (timespec_subtract): Remove.
32537 (NANOSLEEP_BUG_WORKAROUND): New constant.
32538 (xnanosleep): Use gethrxtime rather than gettime; this simplifies
32539 things considerably. Use it only on GNU/Linux hosts, since the
32540 workaround shouldn't be needed elsewhere.
32542 2005-02-24 Bruno Haible <bruno@clisp.org>
32544 * modules/gettext (Files): Add m4/glibc2.m4.
32546 2005-02-24 Bruno Haible <bruno@clisp.org>
32548 * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
32549 * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
32551 Update from GNU gettext 0.14.2.
32552 * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
32554 2005-02-24 Bruno Haible <bruno@clisp.org>
32556 * lib/localcharset.c: Update from GNU gettext 0.14.2.
32557 * lib/config.charset: Update from GNU gettext 0.14.2.
32559 2005-02-24 Bruno Haible <bruno@clisp.org>
32561 * lib/gettext.h: Update from GNU gettext 0.14.2.
32563 2005-02-23 Simon Josefsson <jas@extundo.com>
32565 * m4/iconvme.m4: New file.
32567 2005-02-23 Jim Meyering <jim@meyering.net>
32569 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
32571 Thanks to Bruno Haible for catching it.
32573 2005-02-22 Simon Josefsson <jas@extundo.com>
32575 * modules/iconvme: New file.
32577 * MODULES.html.sh: Add iconvme.
32579 2005-02-22 Simon Josefsson <jas@extundo.com>
32581 * lib/iconvme.h, lib/iconvme.c: New files, from libc.
32583 2005-02-22 Simon Josefsson <jas@extundo.com>
32585 * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
32587 2005-02-22 Jim Meyering <jim@meyering.net>
32589 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
32592 2005-02-20 Neil Conway <neilc@samurai.com>
32594 * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
32595 returned by OSX/Darwin if the specified buffer is not large
32596 enough for the hostname.
32598 2005-02-03 Sergey Poznyakoff <gray@Mirddin.farlep.net>
32600 * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
32601 pass it to _help, otherwise the latter coredumps trying to
32602 dereference state.root_argp.
32604 2005-02-03 Paul Eggert <eggert@cs.ucla.edu>
32606 * modules/chdir-long (Depends-on): Add memrchr.
32607 * modules/memrchr (Files): Add lib/memrchr.h.
32608 (Include): "memrchr.h".
32610 2005-02-03 Paul Eggert <eggert@cs.ucla.edu>
32612 * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
32614 2005-02-03 Paul Eggert <eggert@cs.ucla.edu>
32616 * lib/memrchr.h: New file.
32617 * lib/chdir-long.c: Include it.
32618 * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
32619 Don't bother including stddef.h.
32621 2005-02-01 Paul Eggert <eggert@cs.ucla.edu>
32623 * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
32625 Include <sys/types.h>, for dev_t.
32626 (ME_DUMMY, ME_REMOTE): Move from here....
32627 * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
32628 (ME_DUMMY): Count "subfs" as a dummy. Problem reported by
32630 Include mountlist.h first, to test the interface.
32632 2005-01-29 Bruno Haible <bruno@clisp.org>
32634 * lib/progname.c (program_name): Initialize.
32635 Needed when linking statically on MacOS X.
32637 2005-01-28 Paul Eggert <eggert@cs.ucla.edu>
32639 Sync from coreutils.
32640 * modules/getloadavg (Files): Remove m4/getloadavg.m4.
32641 (Depends-on): Add c-strtod.
32642 (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
32644 2005-01-28 Paul Eggert <eggert@cs.ucla.edu>
32646 Sync from coreutils.
32647 * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
32649 Remove files that are specific to coreutils.
32650 * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
32652 2005-01-28 Bruno Haible <bruno@clisp.org>
32654 * modules/javacomp: New file.
32655 * MODULES.html.sh (Java): Add javacomp.
32657 2005-01-28 Bruno Haible <bruno@clisp.org>
32659 * m4/javacomp.m4: New file, from GNU gettext.
32661 2005-01-28 Bruno Haible <bruno@clisp.org>
32663 * lib/javacomp.sh.in: New file, from GNU gettext.
32664 * lib/javacomp.h: New file, from GNU gettext.
32665 * lib/javacomp.c: New file, from GNU gettext.
32667 2005-01-26 Simon Josefsson <jas@extundo.com>
32669 * lib/gai_strerror.c: Use GPL in header.
32671 2005-01-26 Bruno Haible <bruno@clisp.org>
32673 * modules/javaexec: New file.
32674 * MODULES.html.sh (Java): Add javaexec.
32676 2005-01-26 Bruno Haible <bruno@clisp.org>
32678 * m4/javaexec.m4: New file, from GNU gettext.
32680 2005-01-26 Bruno Haible <bruno@clisp.org>
32682 * lib/javaexec.sh.in: New file, from GNU gettext.
32683 * lib/javaexec.h: New file, from GNU gettext.
32684 * lib/javaexec.c: New file, from GNU gettext.
32686 2005-01-24 Sergey Poznyakoff <gray@Mirddin.farlep.net>
32688 * modules/lchown (Depends-on): Remove lchown.h
32690 2005-01-24 Sergey Poznyakoff <gray@Mirddin.farlep.net>
32692 * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
32693 must be defined if the header file was not found, in order
32694 to provide a replacement. Reported by Todd Vierling <tv@duh.org>
32696 2005-01-24 Sergey Poznyakoff <gray@Mirddin.farlep.net>
32698 * lib/argp-help.c (hol_entry_help): Avoid using non-constant
32699 initializers for struct pentry_state.
32700 (__argp_error): Check return value of __asprintf
32701 (__argp_failure): Translate error message
32703 * lib/argp-parse.c: Removed braces around the expansion of N_()
32705 2005-01-23 Paul Eggert <eggert@cs.ucla.edu>
32707 * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
32708 backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
32709 c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
32710 clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
32711 dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
32712 exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
32713 file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
32714 free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
32715 getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
32716 getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
32717 getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
32718 gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
32719 group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
32720 idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
32721 link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
32722 makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
32723 memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
32724 memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
32725 modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
32726 path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
32727 posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
32728 readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
32729 restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
32730 savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
32731 sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
32732 stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
32733 strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
32734 strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
32735 strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
32736 time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
32737 uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
32738 unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
32739 utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
32740 xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
32741 xstrtol.m4, xstrtoumax.m4, yesno.m4:
32742 Use an all-permissive copyright notice, recommended by RMS.
32744 2005-01-21 Paul Eggert <eggert@cs.ucla.edu>
32746 * modules/chdir-long (Depends-on): Remove mempcpy.
32748 2005-01-21 Jim Meyering <jim@meyering.net>
32750 * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
32751 same value as for Solaris 9.
32753 * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
32754 component length. This included changing the parameter to be
32755 of type `char *' rather than `char const *'.
32756 * lib/chdir-long.h (chdir_long): Update prototype.
32758 * lib/openat.c (fdopendir, fstatat): New functions.
32759 * lib/openat.h: Include headers required for use of DIR and struct
32761 [AT_SYMLINK_NOFOLLOW]: Define.
32762 (fdopendir, fstatat): Add prototypes.
32764 2005-01-21 Bruno Haible <bruno@clisp.org>
32766 * modules/classpath: New file.
32767 * MODULES.html.sh (Java): Add classpath.
32769 2005-01-21 Bruno Haible <bruno@clisp.org>
32771 * lib/classpath.h: New file, from GNU gettext.
32772 * lib/classpath.c: New file, from GNU gettext.
32774 2005-01-20 Simon Josefsson <jas@extundo.com>
32776 * modules/version-etc-fsf: New file.
32778 2005-01-20 Simon Josefsson <jas@extundo.com>
32780 * lib/version-etc-fsf.c: New file, with version_etc_copyright.
32781 * lib/version-etc.c: Remove version_etc_copyright.
32782 * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
32783 prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
32785 2005-01-20 Simon Josefsson <jas@extundo.com>
32787 * lib/base64.h (isbase64): Add.
32789 * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
32790 using a unsigned prototype, don't inline.
32791 (base64_decode): Use it.
32793 2005-01-20 Paul Eggert <eggert@cs.ucla.edu>
32795 * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
32798 2005-01-20 Paul Eggert <eggert@cs.ucla.edu>
32800 * lib/save-cwd.c (save_cwd): Remove code to support the case
32801 where fchdir is missing or flaky.
32803 2005-01-20 Paul Eggert <eggert@cs.ucla.edu>
32805 * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
32807 2005-01-19 Paul Eggert <eggert@cs.ucla.edu>
32809 * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
32810 AC_LIBSOURCES now does this.
32811 * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
32812 with new ullong_max module.
32814 2005-01-19 Bruno Haible <bruno@clisp.org>
32816 * modules/sh-quote: New file.
32817 * MODULES.html.sh (Executing programs): Add sh-quote.
32819 2005-01-19 Bruno Haible <bruno@clisp.org>
32821 * lib/sh-quote.h: New file, from GNU gettext.
32822 * lib/sh-quote.c: New file, from GNU gettext.
32824 2005-01-18 Paul Eggert <eggert@cs.ucla.edu>
32826 Merge from coreutils.
32827 * m4/ullong_max.m4: New file.
32828 * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
32829 (gl_MACROS): Assume localeconv exists.
32831 2005-01-18 Paul Eggert <eggert@cs.ucla.edu>
32833 Merge changes from coreutils, as described below in several
32834 changelogs dated today.
32836 * lib/save-cwd.c: Include "save-cwd.h" before other include files.
32837 (O_DIRECTORY): Remove; not needed here, since "." must be
32838 a directory. All uses removed.
32839 (save_cwd): Use __sgi || __sun, not sun || __sun. __sun is
32840 universal on Suns, and we also need to test for IRIX.
32841 Revamp code to use 'if' rather than '#if'.
32842 Avoid unnecessary comparison of cwd->desc to 0.
32844 * lib/utimens.c (futimens): Robustify the previous patch, by checking
32845 for known valid error numbers rather than observed invalid ones.
32847 2005-01-18 Paul Eggert <eggert@cs.ucla.edu>
32849 * modules/ullong_max: New file.
32851 * modules/chdir-long, modules/openat: New files.
32852 * modules/save-cwd (Depends-on): Depend on chdir-long.
32853 (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
32855 2005-01-18 Jim Meyering <jim@meyering.net>
32857 Merge from coreutils.
32858 * m4/chdir-long.m4, m4/openat.m4: New files.
32859 * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
32860 save-cwd.h. Add AC_LIBOBJ for save-cwd.
32861 * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
32862 is sane and DOES follow symlinks. Besides, testing 20 different
32863 systems found no broken chown implementations.
32864 Prompted by a change in rsync's copy of this macro.
32865 * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
32867 * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
32869 * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
32870 (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
32871 NULL-means-set-to-current-time semantics.
32872 Remove temporary file immediately, rather than waiting
32873 for configure's at-exit trap code to do it.
32875 2005-01-18 Jim Meyering <jim@meyering.net>
32877 * lib/version-etc.c (version_etc_copyright): Update copyright date.
32879 * lib/utimens.c (futimens): Account for the fact that futimes
32880 can also fail with errno == ENOSYS or errno == ENOENT.
32881 Patch from Dmitry V. Levin.
32883 Change the name of the robust chdir function from chdir to chdir_long.
32884 * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
32885 (restore_cwd): Use chdir_long, not chdir.
32886 * lib/chdir-long.c: Renamed from chdir.c.
32887 * lib/chdir-long.h: Renamed from chdir.h.
32888 [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
32891 2005-01-18 Bruno Haible <bruno@clisp.org>
32893 * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
32894 * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
32895 * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
32896 * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
32897 * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
32898 * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
32899 * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
32900 * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
32901 * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
32902 * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
32903 * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
32904 * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
32905 * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
32906 * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
32907 Use an all-permissive copyright notice, recommended by RMS.
32909 2005-01-18 Bob Proulx <bob@proulx.com>
32911 * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
32912 simplify offsetof() macro construct to avoid compile failure with
32913 native HP-UX 11.0 ANSI C compiler.
32915 2005-01-17 Bruno Haible <bruno@clisp.org>
32917 * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
32918 redundant because stpncpy.m4 takes care of it.
32920 2005-01-17 Bruno Haible <bruno@clisp.org>
32922 * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
32924 2005-01-17 Bruno Haible <bruno@clisp.org>
32926 * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
32929 2005-01-17 Bruno Haible <bruno@clisp.org>
32931 * lib/fwriteerror.h (fwriteerror): Change specification to include
32933 * lib/fwriteerror.c: Include <stdbool.h>.
32934 (fwriteerror): At the end, close the file stream. Record whether
32935 stdout was already closed.
32937 2005-01-17 Bruno Haible <bruno@clisp.org>
32939 * lib/execute.c (environ): Declare if needed.
32940 * lib/pipe.c (environ): Likewise.
32941 Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
32943 2005-01-11 Sergey Poznyakoff <gray@Mirddin.farlep.net>
32945 * modules/argp: Depend on vsnprintf
32947 2005-01-10 Jim Meyering <jim@meyering.net>
32949 * modules/closeout (Depends-on): Add atexit.
32951 2005-01-06 Bruno Haible <bruno@clisp.org>
32953 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
32955 2005-01-04 Paul Eggert <eggert@cs.ucla.edu>
32957 * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
32958 definitions to be after all include files, to avoid collisions.
32959 Problem reported by Bob Proulx.
32961 2005-01-04 Jim Meyering <jim@meyering.net>
32963 Changes imported from coreutils.
32964 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
32965 as the mkstemp template, use a temporary directory and an
32966 8.3-friendly template to avoid trouble on systems like DJGPP.
32967 Reported by Juan M. Guerrero via Stepan Kasal.
32968 * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
32969 close. Remove the temporary directory right away, rather than waiting
32970 for configure's at-exit trap code to do it.
32971 Suggestion from Stepan Kasal.
32973 2005-01-01 Simon Josefsson <jas@extundo.com>
32975 * gnulib-tool: Print #include directives when --import'ing.
32977 2004-12-28 Simon Josefsson <jas@extundo.com>
32979 * tests/test-base64.c: Include required header files. Remove
32982 2004-12-28 Paul Eggert <eggert@cs.ucla.edu>
32984 * modules/error (Depends-on): Remove gettext.
32986 2004-12-28 Paul Eggert <eggert@cs.ucla.edu>
32988 * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
32989 not needed. This removes a dependency on the gettext module.
32990 [defined _LIBC]: Do not include <libintl.h>; not needed.
32992 2004-12-24 Paul Eggert <eggert@cs.ucla.edu>
32994 * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
32995 (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
32997 2004-12-24 Paul Eggert <eggert@cs.ucla.edu>
32999 * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
33002 2004-12-23 Paul Eggert <eggert@cs.ucla.edu>
33004 * modules/getdate (Depends-on): Remove alloca-opt.
33006 2004-12-23 Paul Eggert <eggert@cs.ucla.edu>
33008 * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
33010 2004-12-23 Paul Eggert <eggert@cs.ucla.edu>
33012 * lib/argp-parse.c: Include <stddef.h>.
33013 (alignof, alignto): New macros.
33014 (parser_init): Don't assume that void * is aligned sufficiently
33017 * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
33018 need to extend the stack.
33019 (YYINITDEPTH): New macro, so that the initial stack isn't overly
33022 2004-12-22 Sergey Poznyakoff <gray@Mirddin.farlep.net>
33024 * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
33026 2004-12-19 Paul Eggert <eggert@cs.ucla.edu>
33028 * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
33029 (2004-10-24) change. Apparently this was a false alarm.
33031 * modules/getdate: Depend on alloca-opt, not alloca.
33033 2004-12-19 Paul Eggert <eggert@cs.ucla.edu>
33035 * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
33036 Remove now-obsolete comment about AIX.
33037 * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
33038 (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
33039 (YYMAXDEPTH): New macro.
33041 2004-12-18 Simon Josefsson <jas@extundo.com>
33043 * modules/alloca: Depend on alloca-opt, instead of duplicating it.
33045 2004-12-18 Bruno Haible <bruno@clisp.org>
33047 * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
33049 2004-12-18 Bruno Haible <bruno@clisp.org>
33051 * lib/fatal-signal.c (fatal_signals): Make non-const.
33052 (init_fatal_signals): New function.
33053 (uninstall_handlers, install_handlers): Ignore signals that were set to
33055 (at_fatal_signal): Call init_fatal_signals.
33056 (init_fatal_signal_set): Likewise. Ignore signals that were set to
33058 Reported by Paul Eggert.
33060 2004-12-18 Bruno Haible <bruno@clisp.org>
33062 * doc/alloca.texi: New file.
33063 * doc/alloca-opt.texi: New file.
33065 2004-12-17 Jim Meyering <jim@meyering.net>
33067 * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
33068 Otherwise, install-sh could exit with improper exit status when
33069 exiting via a trapped interrupt. Thanks to a report from Bob Proulx.
33071 2004-12-16 Simon Josefsson <jas@extundo.com>
33073 * tests/test-base64.c: Add license.
33075 2004-12-15 Stepan Kasal <address@hidden>
33077 * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
33079 2004-12-12 Paul Eggert <eggert@cs.ucla.edu>
33081 * modules/getcwd (Files): Add m4/d-ino.m4.
33082 Suggested by Mark D. Baushke.
33084 2004-12-08 Paul Eggert <eggert@cs.ucla.edu>
33086 * lib/getdate.y (textint): New member "negative".
33087 (time_zone_hhmm): New function.
33088 Expect 14 shift-reduce conflicts, not 13.
33089 (o_colon_minutes): New rule.
33090 (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
33091 (yylex): Set the "negative" member of signed numbers.
33093 2004-12-08 Paul Eggert <eggert@cs.ucla.edu>
33095 * doc/getdate.texi (Time of day items, Time zone items):
33096 Describe new formats +00:00, UTC+00:00.
33098 2004-12-07 Paul Eggert <eggert@cs.ucla.edu>
33100 * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
33101 spurious "-l"s. Problem reported by Stepan Kasal.
33103 2004-12-06 Paul Eggert <eggert@cs.ucla.edu>
33105 * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
33106 in Autoconf 2.59. Problem reported by Mark D. Baushke.
33108 2004-12-04 Simon Josefsson <jas@extundo.com>
33110 * modules/getaddrinfo (License): Add LGPL, reported by Yoann
33111 Vandoorselaere <yoann@prelude-ids.org>.
33113 2004-12-04 Paul Eggert <eggert@cs.ucla.edu>
33115 Changes imported from coreutils.
33116 * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
33118 * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
33120 2004-12-04 Paul Eggert <eggert@cs.ucla.edu>
33122 Changes imported from coreutils.
33123 * lib/hard-locale.c: Assume <locale.h> exists.
33124 Include "strdup.h".
33125 (GLIBC_VERSION): New macro.
33126 (hard_locale): Assume setlocale exists.
33127 Rewrite to avoid #ifdef.
33128 Use strdup rather than malloc + strcpy.
33129 * lib/human.c: Assume <locale.h> exists.
33130 (human_readable): Assume localeconv exists.
33132 2004-12-04 Paul Eggert <eggert@cs.ucla.edu>
33134 * modules/hard-locale (Depends-on): Add strdup.
33136 2004-12-01 Jakub Jelinek <jakub@redhat.com>
33138 * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
33139 convert T2, not T. (Imported from libc.)
33141 2004-11-30 Simon Josefsson <jas@extundo.com>
33143 * modules/restrict (License): Change to LGPL.
33145 2004-11-30 Simon Josefsson <jas@extundo.com>
33147 * m4/restrict.m4: Add copyright and copying conditions.
33149 2004-11-30 Simon Josefsson <jas@extundo.com>
33151 * m4/base64.m4: New file.
33153 2004-11-30 Simon Josefsson <jas@extundo.com>
33155 * MODULES.html.sh (Extra functions based on ANSI C 89): Add
33158 * tests/test-base64.c: New file.
33160 * modules/base64: New file.
33162 2004-11-30 Paul Eggert <eggert@cs.ucla.edu>
33164 * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
33165 Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
33167 * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
33169 2004-11-30 Paul Eggert <eggert@cs.ucla.edu>
33171 * lib/getcwd.c (is_ENAMETOOLONG): New macro.
33172 (__getcwd.c): Don't restore errno; glibc doesn't.
33173 [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
33174 first, falling back to our code only if its results look suspicious.
33175 Ensure that the resulting buffer is only as large as necessary.
33177 * lib/readutmp.c: Include readutmp.h first.
33178 Include <errno.h>, since readutmp.h no longer does that.
33179 * lib/readutmp.h: Don't include <errno.h>,
33180 <sys/param.h>, <time.h>; not needed to establish interface.
33181 (errno): Remove decl.
33182 (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
33183 (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
33184 UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
33186 2004-11-28 Simon Josefsson <jas@extundo.com>
33188 * lib/base64.h, base64.c: New file.
33190 2004-11-27 Paul Eggert <eggert@cs.ucla.edu>
33192 * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
33194 2004-11-26 Paul Eggert <eggert@cs.ucla.edu>
33196 * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
33197 (Depends-on): Remove pathmax, same. Add mempcpy.
33198 (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
33199 (Makefile.am): Append getcwd.h to lib_SOURCES.
33200 (Include): Add getcwd.h.
33201 (Maintainer): Change from Jim Meyering to "all, glibc",
33202 since getdate now uses intended-for-glibc code.
33203 * modules/xgetcwd (Files): Remove m4/getcwd.m4.
33204 (Depends-on): Depend on getcwd. Do not depend on pathmax.
33206 2004-11-25 Paul Eggert <eggert@cs.ucla.edu>
33208 Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
33209 HP's ANSI C compiler.
33210 * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
33211 Declaring int functions causes warnings on some modern systems and
33212 shouldn't be needed to compile on ancient ones.
33213 * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
33216 * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
33217 with the following changes.
33218 (__set_errno): Parenthesize properly.
33219 Include <stdbool.h>.
33220 (MIN, MAX, MATCHING_INO): New macros.
33221 (__getcwd): Define with prototype, not K&R form.
33222 Use heuristics to allocate default buffer on stack if possible.
33223 If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
33224 behavior, and to avoid the PATH_MAX limit when computing
33226 Use MATCHING_INO to compare inode number to file.
33227 Check for arithmetic overflow in size calculations.
33228 Fix bug in reallocation of dot array that caused getcwd to fail
33229 on directories nested deeper than 75.
33230 Be more careful about saving errno on error.
33231 Do not use realloc; use only free+malloc, as this is a bit
33232 more flexible and avoids a needless copy operation.
33233 Do not inspect st_dev and st_ino for symbolic links; POSIX
33234 doesn't specify the latter.
33235 Check for closedir errors.
33236 Avoid needless casts.
33237 Use "#ifdef weak_alias" around weak_alias, to be like other
33239 The following changes to getcwd.c have effect only when used in
33240 gnulib; they have no effect inside glibc proper.
33241 (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
33242 as alloca isn't used.
33243 (alloca, __alloca): Likewise.
33244 [!_LIBC]: Include "getcwd.h", "mempcpy.h".
33245 Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
33246 unconditionally, as gnulib assumes C89 or better.
33247 Do not include <sys/param.h>.
33248 (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
33249 no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
33251 (NULL) [!defined NULL]: Remove; we assume C89 or better.
33252 Include <dirent.h> in a way that is compatible with modern Autoconf.
33253 (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
33254 New macros, if not already defined.
33255 Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
33256 Use "_LIBC", not "defined _LIBC", for consistency.
33257 (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
33259 (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
33260 (GETCWD_RETURN_TYPE): Remove. All uses replaced by char *.
33261 * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
33262 credit only to Jim Meyering and adjust the copyright dates.
33263 Do not include <limits.h>, <stdio.h>, <sys/types.h>,
33264 <stdlib.h>, <unistd.h>, "pathmax.h".
33265 Instead, include "xgetcwd.h" (first) and "getcwd.h".
33266 (INITIAL_BUFFER_SIZE): Remove.
33267 (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
33269 2004-11-25 Paul Eggert <eggert@cs.ucla.edu>
33271 * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
33272 GL_FUNC_GETCWD_PATH_MAX for consistency. All uses changed.
33273 Use the _ONCE methods, for efficiency.
33274 Check for fcntl.h. In test program, include <errno.h>
33275 and <fcntl.h> if available. Remove old K&R cruft from
33276 test program. Check for common errors in GNU/Linux,
33277 OpenBSD, and Solaris. Just set gl_cv_func_getcwd_path_max;
33278 don't do AC_LIBOBJ, as that's getcwd.m4's job.
33279 * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
33280 AC_FUNC_GETCWD_NULL. All used changed. Change cache variable
33282 (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros. Revamp to
33283 accommodate new getcwd.c.
33284 * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
33285 * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
33286 * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
33287 that's all we need now.
33289 2004-11-23 Sergey Poznyakoff <gray@Mirddin.farlep.net>
33291 * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
33292 argp-parse.c depends on getopt internals, that means we should
33293 always use our getopt, to be on the safe side.
33294 * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
33295 order not to spoil the result of an eventual previous invocation
33296 of gl_GETOPT_SUBSTITUTE.
33298 2004-11-23 Sergey Poznyakoff <gray@Mirddin.farlep.net>
33300 * lib/getopt_.h: Re-addition of __getopt_argv_const caused
33301 redefinition warnings. To avoid them, include the defines
33302 in `#if !defined __need_getopt ... #endif'. The only place
33303 where __getopt_argv_const is used is in definitions
33304 of getopt_long and getopt_long_only below, which are as well
33305 protected by `#ifndef __need_getopt'.
33306 [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
33307 __need_getopt after including <stdio.h> and <unistd.h> These
33308 headers might have defined it.
33310 2004-11-23 Paul Eggert <eggert@cs.ucla.edu>
33312 * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
33314 2004-11-23 Paul Eggert <eggert@cs.ucla.edu>
33316 * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
33317 (futimens): New function, which uses futimes if available.
33318 (futimens, utimens): Support timespec==NULL, with same semantics
33319 as utime and utimens.
33320 * lib/utimens.h (futimens): New decl.
33322 2004-11-23 Jim Meyering <jim@meyering.net>
33324 * lib/getopt_.h: Remove trailing blanks.
33326 2004-11-23 Jim Meyering <jim@meyering.net>
33328 * lib/__fpending.c: Add comment.
33330 2004-11-22 Paul Eggert <eggert@cs.ucla.edu>
33332 * modules/canonicalize (Depends-on): Add xreadlink.
33333 Problem reported by James Youngman.
33335 2004-11-20 Paul Eggert <eggert@cs.ucla.edu>
33337 * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
33339 (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
33340 optopt): Use them instead of invoking ## directly; otherwise, the
33341 symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
33343 2004-11-19 Bruno Haible <bruno@clisp.org>
33345 * lib/strtok_r.c: Move comments from here...
33346 * lib/strtok_r.h: ... to here.
33348 2004-11-17 Paul Eggert <eggert@cs.ucla.edu>
33350 * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
33351 implementations that mishandle size_t overflow.
33353 2004-11-17 Paul Eggert <eggert@cs.ucla.edu>
33355 * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
33356 might fail. Problem reported by Yoann Vandoorselaere.
33357 * lib/calloc.c (rpl_calloc): Defend against buggy calloc
33358 implementations that mishandle size_t overflow.
33360 2004-11-16 Paul Eggert <eggert@cs.ucla.edu>
33362 * modules/canon-host (Depends-on): Add strdup.
33364 2004-11-16 Paul Eggert <eggert@cs.ucla.edu>
33366 * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
33368 2004-11-16 Paul Eggert <eggert@cs.ucla.edu>
33370 * lib/canon-host.c: Include "strdup.h".
33371 (canon_host): Use getaddrinfo if available, so that IPv6 works.
33372 Use strdup instead of malloc/strcpy to duplicate strings.
33374 * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
33375 (human_space_before_unit): New constant.
33376 * lib/human.c (human_readable): Support it.
33378 * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
33379 (xgetcwd): Set errno correctly when failing.
33380 Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
33381 the failure is actually due to a PATH_MAX problem.
33383 Further getopt changes to make it more likely that glibc will
33384 buy the changes back.
33385 * lib/getopt.c (POSIXLY_CORRECT): New constant.
33386 (getopt): Use it, so to preserve glibc semantic
33387 * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
33388 when compiling for libc.
33389 * lib/getopt_.h (__getopt_argv_const): Bring it back.
33390 (getopt_long, getopt_long_only): Use it.
33392 * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
33393 _getopt_internal): New arg POSIXLY_CORRECT. All callers changed.
33394 (getopt): Argv is now char * const *, as per standard.
33395 (_getopt_internal_r, _getopt_internal): Argv is now char **,
33396 not char *__getopt_argv_const *.
33397 * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
33398 _getopt_long_only_r): Likewise.
33399 * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
33400 * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
33401 _getopt_long_r, _getopt_long_only_r): Likewise.
33402 * lib/getopt_.h (__getopt_argv_const): Remove.
33403 (getopt): Argv is now char * const *, as per standard.
33405 * lib/getdate.y (tORDINAL): New token.
33406 (day, relunit): Allow it for relative times.
33407 (relative_time_table): Use tORDINAL for ordinals.
33409 2004-11-16 Paul Eggert <eggert@cs.ucla.edu>
33411 * doc/getdate.texi (General date syntax): "next" is 1, not 2.
33412 Document that "second" isn't allowed as an ordinal number.
33414 2004-11-16 Jim Meyering <jim@meyering.net>
33416 * modules/closeout (Depends-on): Add fpending.
33418 2004-11-15 Jim Meyering <jim@meyering.net>
33420 * lib/closeout.c: Include "__fpending.h" once again.
33421 Include <stdbool.h>.
33422 (close_stdout): Don't fail just because stdout was closed initially,
33423 since some programs don't write to stdout in the normal course of
33424 operation (other than --version and --help), and we don't want this
33425 function to make e.g. `touch file >&-' fail.
33426 But do fail if it was closed and someone has tried to write to it.
33427 E.g., `printf foo >&-' must fail.
33429 2004-11-13 Jim Meyering <jim@meyering.net>
33431 * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
33433 2004-11-12 Simon Josefsson <jas@extundo.com>
33435 * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
33436 small doc fix is still pending.
33438 2004-11-11 Simon Josefsson <jas@extundo.com>
33440 * modules/strtok_r: New file.
33442 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
33445 2004-11-11 Simon Josefsson <jas@extundo.com>
33447 * m4/strtok_r.m4: New file.
33449 * m4/getopt.m4: Replace opterr.
33451 2004-11-11 Simon Josefsson <jas@extundo.com>
33453 * lib/strtok_r.h, strtok_r.c: New file.
33455 2004-11-11 Paul Eggert <eggert@cs.ucla.edu>
33457 * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
33458 of replacing opterr, getopt, etc. This should handle the
33459 powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
33461 2004-11-11 Paul Eggert <eggert@cs.ucla.edu>
33463 * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
33464 we can stop lying to compilers about the constness of argv when we
33465 are compiled outside glibc.
33466 (getopt, getopt_long, getopt_long_only): Use it.
33467 * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
33468 _getopt_internal, getopt): Likewise.
33469 * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
33470 _getopt_long_only_r): Likewise.
33471 * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
33472 _getopt_long_r, _getopt_long_only_r): Likewise.
33474 * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
33475 Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
33476 Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
33477 the other external symbols.
33478 (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
33479 declaration, since the above renaming now works around collisions.
33481 2004-11-11 Jim Meyering <jim@meyering.net>
33483 * lib/linebreak.c: Remove trailing blanks.
33484 * lib/alloca_.h: Likewise.
33485 * lib/acosl.c: Likewise.
33486 * lib/euidaccess.c: Likewise.
33487 * lib/allocsa.h: Likewise.
33489 2004-11-10 Simon Josefsson <jas@extundo.com>
33491 * m4/getaddrinfo.m4: New file.
33493 2004-11-10 Simon Josefsson <jas@extundo.com>
33495 * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
33497 2004-11-10 Simon Josefsson <jas@extundo.com>
33499 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
33502 * modules/getaddrinfo: New file.
33504 2004-11-10 Paul Eggert <eggert@cs.ucla.edu>
33506 * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
33508 2004-11-10 Paul Eggert <eggert@cs.ucla.edu>
33510 * lib/mktime.c (SHR): New macro, which is a portable
33511 substitute for >> that should work even on Crays.
33512 (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
33513 Problem reported by Mark D. Baushke in
33514 <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
33515 * lib/getdate.y (SHR): Likewise.
33517 * lib/strftime.c (SHR): Likewise.
33519 * lib/quotearg.c (struct quoting_options): Use unsigned int for
33520 quote_these_too, so that right shifts are well defined. All uses
33523 2004-11-10 Jim Meyering <jim@meyering.net>
33525 Ensure that no close failure goes unreported.
33526 * lib/closeout.c (close_stdout): Always close stdout. I.e., don't
33527 return early when it seems there's nothing to flush.
33528 Don't include __fpending.h.
33530 2004-11-10 Jim Meyering <jim@meyering.net>
33532 * modules/closeout (Depends-on): Remove fpending.
33534 2004-11-10 Jim Meyering <jim@meyering.net>
33536 * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
33538 2004-11-09 Paul Eggert <eggert@cs.ucla.edu>
33540 * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove. Move its body to
33542 (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
33543 and AC_REQUIRE when possible, to avoid duplicate checks.
33544 Check for <wchar.h>.
33546 2004-11-09 Paul Eggert <eggert@cs.ucla.edu>
33548 * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
33550 2004-11-09 Bruno Haible <bruno@clisp.org>
33552 * m4/sockpfaf.m4: New file.
33554 2004-11-05 Bruno Haible <bruno@clisp.org>
33556 * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
33557 Reported by Mark D. Baushke <mdb@cvshome.org>.
33559 2004-11-04 Bruno Haible <bruno@clisp.org>
33561 2004-09-11 Bruno Haible <bruno@clisp.org>
33562 * allocsa.valgrind: New file.
33563 2004-02-06 Bruno Haible <bruno@clisp.org>
33564 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
33565 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
33566 Reported by Christopher Seip <chris.seip@hp.com>.
33568 2004-11-04 Bruno Haible <bruno@clisp.org>
33570 * modules/allocsa (Files): Add lib/allocsa.valgrind.
33571 (Makefile.am): Distribute it.
33573 2004-11-03 Paul Eggert <eggert@cs.ucla.edu>
33575 * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
33576 with errno == ERANGE if the buffer is too small.
33577 Problem reported by Mark D. Baushke.
33579 2004-11-03 Albert Chin <china@thewrittenword.com>
33580 Paul Eggert <eggert@cs.ucla.edu>
33582 * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
33583 equivalent, substitute $ac_type for equivalent type rather than
33584 blindly using uint32_t *always* which won't work if uint32_t is not
33585 available. Define _UINT32_T to work around typedef of uint32_t if
33586 <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
33589 2004-11-02 Paul Eggert <eggert@cs.ucla.edu>
33591 * m4/jm-macros.m4: Sync from coreutils.
33592 (gl_MACROS): Check for mbrlen, for pathchk.
33593 (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
33595 2004-11-02 Paul Eggert <eggert@cs.ucla.edu>
33597 * lib/xreadlink.c (MAXSIZE): New macro.
33598 (xreadlink): Use it instead of SSIZE_MAX. Ensure initial buffer
33599 size does not exceed MAXSIZE. Avoid cast.
33600 As suggested by Mark D. Baushke in
33601 <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
33602 if readlink fails with buffer size just under MAXSIZE, try again
33605 2004-11-02 Paul Eggert <eggert@cs.ucla.edu>
33607 * config/srclist.txt: Add mktime.c; glibc bought all our changes.
33609 2004-11-02 Derek R. Price <derek@ximbiot.com>
33610 and Paul Eggert <eggert@cs.ucla.edu>
33612 * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
33613 (get_date): Overparenthesize to avoid GCC warning.
33615 2004-11-02 Bruno Haible <bruno@clisp.org>
33617 * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
33620 2004-11-02 Bruno Haible <bruno@clisp.org>
33622 * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
33623 function returns void.
33625 2004-11-01 Paul Eggert <eggert@cs.ucla.edu>
33627 * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
33628 fflush_unlocked, flockfile, funlockfile, funlockfile,
33629 fputs_unlocked, putc_unlocked.
33631 2004-11-01 Paul Eggert <eggert@cs.ucla.edu>
33633 * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
33634 (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
33637 2004-10-29 Paul Eggert <eggert@cs.ucla.edu>
33639 * modules/getdate (Files): Add doc/getdate.texi.
33640 (Depends-on): Add setenv, xalloc.
33642 2004-10-29 Paul Eggert <eggert@cs.ucla.edu>
33644 * lib/getdate.y: Add support for TZ="foo" within a date string.
33645 Fix some bugs near time_t boundaries. Reject dates with
33646 out-of-range components, e.g., "Sept 31".
33647 Include <stdlib.h>, "setenv.h", "xalloc.h".
33648 (ISDIGIT_LOCALE): Remove; unused.
33649 Note that the TZ and time functions used here are not reentrant.
33650 (mktime_ok, get_tz): New functions.
33651 (TZBUFSIZE): New constant.
33652 (get_date): Parse leading TZ="foo". Reject out-of-range components;.
33653 This requires that we sometimes generate our own TZ="XXX..." setting.
33655 2004-10-29 Paul Eggert <eggert@cs.ucla.edu>
33657 * doc/getdate.texi: New file, from coreutils with modifications for
33658 the new TZ parsing.
33660 2004-10-27 Derek R. Price <derek@ximbiot.com>
33662 * lib/mktime.c (not_equal_tm): Remove redundant check.
33664 2004-10-24 Paul Eggert <eggert@cs.ucla.edu>
33666 * modules/regex (lib_SOURCES): Add regex.c.
33667 Reported by James Youngman in
33668 <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
33670 2004-10-24 Paul Eggert <eggert@cs.ucla.edu>
33672 * lib/getdate.y: Use Bison 1.875 features, and some minor
33673 code cleanups. This change does not affect semantics.
33674 Don't include <stdlib.h>; no longer needed.
33675 Don't include unlocked-io.h; only the "#if TEST" code uses
33676 stdio, and performance isn't crucial there.
33677 (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
33678 Bison 1.875 features as described below.
33679 All uses of "PC." replaced by "pc->".
33680 (YYSTYPE): Add a forward declaration.
33681 (yylex, yyerror): Use full prototypes in forward decls.
33682 Use "%pure-parser" rather than obsolescent "%pure_parser".
33683 Use %parse-param and %lex-param instead of obsolescent
33684 YYPARSE_PARAM and YYLEX_PARAM.
33685 (meridian_table, month_and_day_table, time_units_table,
33686 relative_time_table, time_zone_table, military_table,
33687 lookup_zone, lookup_word, get_date):
33688 Use NULL instead of 0 where appropriate.
33689 (to_hour): Avoid abort (), to avoid a dependency on
33691 (yyerror, yylex): Now accepts parser_control * arg.
33692 (main) [TEST]: Use '\0' rather than 0 for char.
33694 2004-10-22 Paul Eggert <eggert@cs.ucla.edu>
33696 * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
33698 2004-10-22 Paul Eggert <eggert@cs.ucla.edu>
33700 * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
33701 It's now the caller's responsibility to handle the case where
33702 !HAVE_GETPAGESIZE && !defined getpagesize.
33704 * lib/mktime.c (leapyear): Arg is long int, not int.
33706 2004-10-18 Paul Eggert <eggert@cs.ucla.edu>
33708 * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
33710 2004-10-17 Paul Eggert <eggert@cs.ucla.edu>
33712 * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
33713 missing. Problem reported by James Youngman.
33715 2004-10-16 Simon Josefsson <jas@extundo.com>
33717 * gnulib-tool: Fix comments. Fix parse problem.
33718 (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
33720 2004-10-15 Paul Eggert <eggert@cs.ucla.edu>
33722 * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
33723 implementation of getopt_long. Problem reported by Alexander Taler in:
33724 http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
33726 2004-10-15 Bruno Haible <bruno@clisp.org>
33728 * gnulib-tool: Untabify. Initialize supplied_libname.
33729 (func_usage): More homogenous output.
33730 (func_modules_transitive_closure, func_modules_to_filelist,
33731 func_emit_lib_Makefile_am): New functions.
33732 (func_import): New function, extracted from big case statement. Use
33733 func_get_license, func_modules_transitive_closure,
33734 func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
33735 opt_lgpl. Don't use test -a, as it's not portable.
33736 (func_create_testdir): Use func_modules_transitive_closure,
33737 func_modules_to_filelist, func_emit_lib_Makefile_am.
33739 2004-10-15 Bruno Haible <bruno@clisp.org>
33741 * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
33743 2004-10-15 Bruno Haible <bruno@clisp.org>
33745 * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
33746 the portions belonging to each module.
33747 Suggested by Derek Robert Price <derek@ximbiot.com>.
33749 2004-10-12 Simon Josefsson <jas@extundo.com>
33751 * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
33752 (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
33755 2004-10-11 Yoann Vandoorselaere <yoann@prelude-ids.org>
33757 * modules/vsnprintf: New file.
33759 2004-10-11 Yoann Vandoorselaere <yoann@prelude-ids.org>
33761 * m4/vsnprintf.m4: New file.
33763 2004-10-11 Yoann Vandoorselaere <yoann@prelude-ids.org>
33765 * lib/vsnprintf.h: New file.
33766 * lib/vsnprintf.c: New file.
33768 2004-10-11 Bruno Haible <bruno@clisp.org>
33770 * MODULES.html.sh (Support for systems lacking ISO C 99): Add
33773 2004-10-10 Paul Eggert <eggert@cs.ucla.edu>
33775 * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
33777 2004-10-07 Bruno Haible <bruno@clisp.org>
33779 * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
33780 fits into the provided buffer.
33782 2004-10-06 Paul Eggert <eggert@cs.ucla.edu>
33784 * lib/diacrit.c, diacrit.h: Add GPL notice.
33786 * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
33788 * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
33789 * lib/logl.c (logl): Keep the code as similar to glibc as possible.
33790 This avoids a potential constant-folding bug.
33792 2004-10-05 Bruno Haible <bruno@clisp.org>
33794 * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
33795 for the declaration of strsep.
33797 2004-10-05 Bruno Haible <bruno@clisp.org>
33799 * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
33801 2004-10-04 Simon Josefsson <jas@extundo.com>
33803 * modules/memmem: New file.
33804 * tests/test-memmem.c: New file.
33805 * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
33807 2004-10-04 Simon Josefsson <jas@extundo.com>
33809 * m4/memmem.m4: New file.
33811 2004-10-04 Simon Josefsson <jas@extundo.com>
33813 * lib/memmem.h: New file.
33814 * lib/memmem.c: New file, taken from glibc.
33816 2004-10-04 Simon Josefsson <jas@extundo.com>
33818 * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
33819 '#ifdef USE_UNLOCKED_IO'.
33821 2004-10-04 Simon Josefsson <jas@extundo.com>
33823 * config/srclist.txt: Add memmem from glibc.
33825 2004-10-04 Paul Eggert <eggert@cs.ucla.edu>
33827 * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
33829 * modules/argmatch, modules/argp, modules/closeout, modules/error,
33830 modules/exclude, modules/getdate, modules/getline,
33831 modules/getndelim2, modules/getpass, modules/getpass-gnu,
33832 modules/getusershell, modules/linebuffer, modules/md5,
33833 modules/mountlist, modules/posixtm, modules/readtokens,
33834 modules/readutmp, modules/regex, modules/sha1,
33835 modules/version-etc, modules/yesno:
33836 Remove dependency on unlocked-io.
33838 2004-10-04 Paul Eggert <eggert@cs.ucla.edu>
33840 * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove. All uses removed.
33842 * m4/unlocked-io.m4: Add copyright notice.
33843 (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
33845 2004-10-04 Paul Eggert <eggert@cs.ucla.edu>
33847 * lib/xalloc.h (xmemdup): Renamed from xclone. All uses changed.
33848 * lib/xmalloc.c (xmemdup): Likewise.
33849 * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
33850 XFREE): Remove these long-obsolescent macros.
33851 * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
33852 * lib/xstrdup.c: Remove.
33854 * lib/regex.c (re_comp): Cast gettext return value to char *,
33855 Problem reported by Martin Neitzel via Mark D. Baushke.
33857 2004-10-04 Paul Eggert <eggert@cs.ucla.edu>
33859 * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
33860 getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
33861 md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
33862 regex.c, sha1.c, version-etc.c, yesno.c:
33863 Include "unlocked-io.h" only if USE_UNLOCKED_IO.
33864 * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
33865 the includer's responsibility.
33867 Sync from coreutils.
33869 * lib/modechange.c (mode_compile): Don't decrement a pointer that
33870 points to the start of a string, as the C Standard says the
33871 resulting behavior is undefined.
33873 * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
33874 simple -> simple_backups, numbered_existing ->
33875 numbered_existing_backups, numbered -> numbered_backups
33876 to avoid shadowing problems. All uses changed.
33877 * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
33878 * lib/backupfile.c (check_extension, numbered_backup):
33879 Rename locals to avoid shadowing 'basename'.
33880 * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
33883 * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
33884 * lib/.cvsignore: Add getopt.h.
33886 2004-10-04 Bruno Haible <bruno@clisp.org>
33888 * modules/README: New file.
33889 * gnulib-tool (func_all_modules, func_verify_module): modules/README is
33892 2004-10-02 Jim Meyering <jim@meyering.net>
33894 * lib/dirfd.h, getpagesize.h: Add copyright notice.
33896 2004-10-01 Yoann Vandoorselaere <yoann@prelude-ids.org>
33898 * modules/strsep: New file.
33900 2004-10-01 Yoann Vandoorselaere <yoann@prelude-ids.org>
33902 * m4/strsep.m4: New file.
33904 2004-10-01 Yoann Vandoorselaere <yoann@prelude-ids.org>
33906 * lib/strsep.h: New file.
33907 * lib/strsep.c: New file.
33909 2004-10-01 Simon Josefsson <jas@extundo.com>
33911 * lib/snprintf.c (snprintf): Handle size==0.
33913 2004-10-01 Simon Josefsson <jas@extundo.com>
33914 Bruno Haible <bruno@clisp.org>
33916 * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
33917 (snprintf): Declare 'args'.
33919 2004-10-01 Paul Eggert <eggert@cs.ucla.edu>
33921 * lib/snprintf.c: Remove comments as to why each header is needed.
33923 2004-10-01 Bruno Haible <bruno@clisp.org>
33925 * MODULES.html.sh: Add strsep.
33927 2004-09-30 Simon Josefsson <jas@extundo.com>
33929 * modules/snprintf: New file.
33931 2004-09-30 Simon Josefsson <jas@extundo.com>
33933 * m4/snprintf.m4: New file.
33935 2004-09-30 Simon Josefsson <jas@extundo.com>
33937 * lib/snprintf.h, lib/snprintf.c: New files.
33939 2004-09-30 Sergey Poznyakoff <gray@Mirddin.farlep.net>
33941 * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
33942 (hol_entry_help): Never translate an empty string.
33943 Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
33944 * lib/argp.h (OPTION_NO_TRANS): New option.
33946 2004-09-30 Paul Eggert <eggert@cs.ucla.edu>
33948 * modules/argp (Maintainer): Replace Simon Josefsson
33949 by Sergey Poznyakoff.
33951 2004-09-30 Paul Eggert <eggert@cs.ucla.edu>
33953 * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
33954 changes merged back into glibc.
33956 2004-09-30 Paul Eggert <eggert@cs.ucla.edu>
33958 * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
33960 2004-09-29 Oskar Liljeblad <oskar@osk.mine.nu>
33962 * lib/xvasprintf.c: Include xalloc.h.
33963 (xvasprintf): Use xalloc_die, not xmalloc_die.
33965 2004-09-29 Bruno Haible <bruno@clisp.org>
33967 * modules/alloca-opt: New file, derived from modules/alloca.
33968 * modules/allocsa: Depend on alloca-opt instead of alloca.
33969 * modules/setenv: Likewise.
33970 * modules/vasnprintf: Likewise.
33971 * MODULES.html.sh: Add alloca-opt.
33973 2004-09-28 Simon Josefsson <jas@extundo.com>
33975 * gnulib-tool: New parameter --lgpl, to asseert that modules are
33976 LGPL, and to replace license template from GPL to LGPL.
33978 2004-09-28 Paul Eggert <eggert@cs.ucla.edu>
33980 * modules/dummy: Change license to LGPL.
33982 2004-09-28 Paul Eggert <eggert@cs.ucla.edu>
33984 * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
33986 2004-09-24 Simon Josefsson <jas@extundo.com>
33988 * modules/minmax (License): Change from GPL to LGPL.
33990 2004-09-23 Simon Josefsson <jas@extundo.com>
33992 * gnulib-tool (--import): Typo.
33994 2004-09-23 Simon Josefsson <jas@extundo.com>
33996 * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
33998 2004-09-22 Bruno Haible <bruno@clisp.org>
34000 * modules/*: Add 'License' field.
34001 * gnulib-tool: Accept --extract-license option.
34002 (func_get_license): New function.
34004 2004-09-21 Bruno Haible <bruno@clisp.org>
34006 * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
34007 Reported by Simon Josefsson.
34009 2004-09-20 Paul Eggert <eggert@cs.ucla.edu>
34011 * modules/inttostr (Files): Add m4/longlong.m4, since it uses
34012 gl_AC_TYPE_LONG_LONG.
34014 2004-09-20 Paul Eggert <eggert@cs.ucla.edu>
34016 * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
34018 2004-09-18 Simon Josefsson <jas@extundo.com>
34019 and Paul Eggert <eggert@cs.ucla.edu>
34021 * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
34022 calls with autoreconf. Define GL_LIB.
34024 2004-09-14 Karl Berry <karl@gnu.org>
34026 * config/srclist.txt: unsync setenv.c, sigh.
34028 2004-09-13 Paul Eggert <eggert@cs.ucla.edu>
34030 * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
34031 Problem reported by Bruno Haible in:
34032 http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
34034 2004-09-13 Paul Eggert <eggert@cs.ucla.edu>
34036 * config/srclist.txt: Comment out argp-pvh.c.
34038 2004-09-11 Paul Eggert <eggert@cs.ucla.edu>
34040 * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
34041 in case some system header has #define'd it. Problem reported by
34042 Soeren D. Schulze in
34043 <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
34045 2004-09-09 Karl Berry <karl@gnu.org>
34047 * regex.[ch]: delete from the root. These were supposed to be
34048 synced with emacs cvs, but this has not happened for about
34049 a year, and anyway nothing else uses emacs regex.[ch].
34050 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
34051 lib/regex[.ch] is untouched.
34053 2004-09-09 Bruno Haible <bruno@clisp.org>
34055 * modules/vasnprintf (Files): Add m4/eoverflow.m4.
34057 2004-09-09 Bruno Haible <bruno@clisp.org>
34059 * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
34061 * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
34063 2004-09-08 Oskar Liljeblad <oskar@osk.mine.nu>
34065 * modules/xvasprintf: New file.
34066 * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
34068 2004-09-08 Oskar Liljeblad <oskar@osk.mine.nu>
34070 * lib/xvasprintf.h: New file.
34071 * lib/xvasprintf.c: New file.
34072 * lib/xasprintf.c: New file.
34074 2004-09-08 Bruno Haible <bruno@clisp.org>
34076 * m4/stdint.m4: New file, taken from GNU clisp with modifications.
34078 2004-09-08 Bruno Haible <bruno@clisp.org>
34080 * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
34081 length is > INT_MAX.
34082 * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
34085 2004-09-08 Bruno Haible <bruno@clisp.org>
34087 * lib/stdint_.h: New file, taken from GNU clisp.
34089 2004-09-08 Bruno Haible <bruno@clisp.org>
34090 Oskar Liljeblad <oskar@osk.mine.nu>
34092 * modules/stdint: New file.
34093 * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
34095 2004-08-19 Paul Eggert <eggert@cs.ucla.edu>
34097 Import from coreutils.
34098 * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
34099 strings on unbounded length. alloca's performance benefits aren't
34100 that important here.
34101 (V_STRDUP): Remove.
34102 (parse_with_separator): New function, with most of the internals
34103 of the old parse_user_spec. Allow user to omit both user and group,
34104 for compatibility with FreeBSD.
34105 Clone only the user name, not the entire spec.
34106 Do not set *uid, *gid unless entirely successful.
34107 Avoid memory leak in some failing cases.
34108 Fix regression for USER.GROUP reported by Dmitry V. Levin in
34109 <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
34110 (parse_user_spec): Rewrite to use parse_with_separator.
34112 2004-08-19 Paul Eggert <eggert@cs.ucla.edu>
34114 * modules/userspec: Don't depend on alloca.
34116 2004-08-19 Paul Eggert <eggert@cs.ucla.edu>
34118 * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
34120 2004-08-17 Paul Eggert <eggert@cs.ucla.edu>
34122 * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
34123 readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
34124 utimecmp, utimens, xnanosleep. Rename sha to sha1.
34126 2004-08-16 Simon Josefsson <jas@extundo.com>
34128 * gnulib-tool: Use sed instead of autoconf --trace, inspired by
34129 libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
34130 Add --dry-run for --import.
34131 Let user provided command line parameters override configure.ac
34134 2004-08-12 Simon Josefsson <jas@extundo.com>
34136 * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
34137 as discussed with Paul Eggert in threads rooted at
34138 <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
34140 <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
34141 Before, the test was empty, and relied on ELIDE_CODE in source
34143 (gl_PREREQ_GETOPT): New macro.
34144 (gl_GETOPT): Use them.
34146 2004-08-12 Simon Josefsson <jas@extundo.com>
34148 * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
34149 * lib/getopt_.h: Renamed from getopt.h.
34151 2004-08-12 Simon Josefsson <jas@extundo.com>
34153 * gnulib-tool: Add --source-base, --m4-base, --libtool options.
34154 Change default library name from libfoo to libgnu.
34155 Now, if you have a configure.ac that says:
34158 gl_MODULES(error getopt etcetera)
34160 you can import all you need by running:
34161 ../gnulib/gnulib-tool --import
34163 * modules/getopt (Files): Rename getopt.h to getopt_.h.
34164 (Makefile.am): Rewrite, use logic from argz.
34165 (Include): Use <getopt.h> instead of "getopt.h".
34167 2004-08-12 Paul Eggert <eggert@cs.ucla.edu>
34169 * modules/argp (Files): Add m4/unlocked-io.m4.
34170 (Depends-on): Add extensions.
34172 2004-08-12 Paul Eggert <eggert@cs.ucla.edu>
34174 * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
34175 uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
34176 Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
34177 Check for program_invocation_name, program_invocation_short_name,
34178 flockfile, funlockfile, features.h, _getopt_long_only_r.
34180 2004-08-12 Paul Eggert <eggert@cs.ucla.edu>
34182 * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
34183 its complicated substitute.
34184 * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
34185 and program_invocation_name.
34186 (__argp_basename) [!_LIBC]: Remove; the only use was
34187 replaced by its body.
34188 (__argp_short_program_name): Change condition from
34189 !defined __argp_short_program_name to
34190 ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
34191 to match argp-namefrob.h.
34192 (__argp_failure): Don't assume strerror_r returns char *.
34193 * lib/argp-parse.c (N_): Define unconditionally.
34194 (argp_default_options): Fill out initializers with 0 to avoid
34197 2004-08-12 Paul Eggert <eggert@cs.ucla.edu>
34199 * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
34202 2004-08-11 Paul Eggert <eggert@cs.ucla.edu>
34204 Merge from coreutils.
34206 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
34208 * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
34209 gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
34211 2004-08-11 Paul Eggert <eggert@cs.ucla.edu>
34213 Merge from coreutils.
34215 * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
34216 wmemchr or wmemcpy. Problem reported by Robert Dahlem
34217 for Reliant Unix 5.43.
34219 * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
34220 (union fooround): Use uintmax_t, not long int.
34221 The rest is a merge from libc:
34222 [defined _LIBC]: Include <shlib-compat.h>.
34223 (_obstack) [defined _LIBC]: Remove after 2.3.4.
34225 * lib/settime.c (settime): Recode to avoid warning with
34228 * lib/strverscmp.c: Convert to UTF-8.
34230 2004-08-11 Paul Eggert <eggert@cs.ucla.edu>
34232 * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
34235 2004-08-09 Paul Eggert <eggert@cs.ucla.edu>
34237 * modules/xalloc-die: New file.
34238 * modules/xalloc: Remove dependencies on error, gettext, exitfail.
34240 * modules/md5 (Files): Add m4/uint32_t.m4.
34241 * modules/sha1: Renamed from modules/sha.
34243 Rename lib/sha.h to lib/sha1.h.
34244 Rename lib/sha.c to lib/sha1.c.
34245 Rename m4/sha.m4 to m4/sha1.m4.
34246 (lib_SOURCES): Likewise.
34247 (configure.ac): Rename gl_SHA to gl_SHA1.
34248 (Include): sha.h -> sha1.h.
34250 2004-08-09 Paul Eggert <eggert@cs.ucla.edu>
34252 * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
34253 * m4/sha1.m4: Renamed from sha.m4.
34254 (gl_SHA1): Renamed from gl_SHA. All uses changed.
34256 2004-08-09 Paul Eggert <eggert@cs.ucla.edu>
34258 * lib/obstack.h (obstack_empty_p):
34259 Don't assume that chunk->contents is suitably aligned.
34260 * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
34261 Likewise. Problem reported by Benno in
34262 <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
34264 * lib/chown.c (rpl_chown): Work even if the file is writeable but not
34265 readable. This could be improved further but it'd take some work.
34267 2004-08-08 Simon Josefsson <jas@extundo.com>
34269 * modules/xgethostname (Depends-on): Remove exit and error (not
34272 * modules/getpass-gnu: Add getpass.h.
34273 (Depends-on): Add stdbool.
34274 * modules/getpass: Add getpass.h.
34276 2004-08-08 Simon Josefsson <jas@extundo.com>
34278 * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
34279 Check getpass declaration.
34281 2004-08-08 Simon Josefsson <jas@extundo.com>
34283 * lib/xgethostname.c: Don't include error.h (not used).
34285 * lib/getpass.h: Add.
34286 * lib/getpass.c: Include getpass.h first.
34288 2004-08-08 Paul Eggert <eggert@cs.ucla.edu>
34290 * lib/xalloc-die.c: New file.
34291 * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
34293 * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
34294 Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
34296 (_, N_, xalloc_die): Move to xalloc-die.c.
34297 * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
34298 so that we needn't mess with xalloc_msg_memory_exhausted.
34300 * lib/sha1.h: Renamed from sha.h.
34301 (SHA1_H): Renamed from _SHA_H.
34302 (sha1_ctx): Renamed from sha_ctx.
34303 (sha1_init_ctx): Renamed from sha_init_ctx.
34304 (sha1_process_block): Renamed from sha_process_block.
34305 (sha1_process_bytes): Renamed from sha_process_bytes.
34306 (sha1_finish_ctx): Renamed from sha_finish_ctx.
34307 (sha1_read_ctx): Renamed from sha_read_ctx.
34308 (sha1_stream): Renamed from sha_stream.
34309 (sha1_buffer): Renamed from sha_buffer.
34310 * lib/sha1.c: Likewise; renamed from sha.c.
34311 Do not include <sys/types.h>.
34312 Include <stddef.h> rather than <stdlib.h>.
34314 2004-08-08 Bruno Haible <bruno@clisp.org>
34316 * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
34317 FILESYSTEM_PREFIX_LEN.
34318 * lib/progreloc.c: Likewise.
34319 * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
34321 2004-08-06 Simon Josefsson <jas@extundo.com>
34323 * modules/progname (Depends-on): Don't depend on stdbool.
34325 2004-08-06 Simon Josefsson <jas@extundo.com>
34327 * modules/getsubopt: New file.
34328 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
34331 2004-08-06 Paul Eggert <eggert@cs.ucla.edu>
34333 More merge from coreutils.
34335 * m4/utimens.m4, m4/utimecmp.m4: New files.
34336 * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
34337 fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
34338 prereq.m4, sha.m4: Import changes from coreutils.
34340 2004-08-06 Paul Eggert <eggert@cs.ucla.edu>
34342 More merge from coreutils.
34343 * modules/raise, modules/readtokens0, modules/utimens:
34344 * modules/utimecmp, module/xnanosleep: New files.
34345 * modules/strftime: Add lib/strftime.h.
34346 Change include from <time.h> to "strftime.h".
34347 * modules/yesno: Add lib/yesno.h.
34348 * modules/backupfile: Remove lib/addext.c.
34349 * modules/euidaccess: Add stat-macros.h.
34350 * modules/canonicalize, modules/euidaccess,
34351 modules/filemode, modules/lchown, modules/makepath,
34352 modules/rmdir, modules/stat: Likewise.
34354 2004-08-06 Paul Eggert <eggert@cs.ucla.edu>
34357 * lib/argp-help.c (make_hol, hol_append): Don't assume that
34358 SIZE_MAX is a valid preprocessor constant.
34359 (__argp_basename): Change from "#ifndef _LIBC"
34360 to "#ifndef __argp_short_program_name", so that
34361 we don't compile these functions for tar.
34363 More merges from coreutils.
34364 * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
34365 * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
34366 * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
34367 * lib/addext.c: Remove; no longer needed.
34368 * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
34369 lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
34370 lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
34371 lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
34372 lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
34373 lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
34374 lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
34375 lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
34376 lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
34377 lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
34378 lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
34379 lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
34380 lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
34381 lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
34382 lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
34383 lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
34384 lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
34385 Import changes from coreutils.
34387 2004-08-05 Simon Josefsson <jas@extundo.com>
34389 * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
34391 2004-08-05 Simon Josefsson <jas@extundo.com>
34393 * m4/getsubopt.m4: New file.
34395 2004-08-05 Paul Eggert <eggert@cs.ucla.edu>
34397 Merge from coreutils.
34399 * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
34400 * m4/getcwd-path-max.m4: New files.
34402 * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
34403 FILESYSTEM_PREFIX_LEN ->
34404 FILE_SYSTEM_PREFIX_LEN.
34405 FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
34406 FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
34407 FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
34408 FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
34410 * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
34411 prerequisite modules now handle the DOS stuff.
34412 Don't check for unistd.h.
34414 2004-08-05 Paul Eggert <eggert@cs.ucla.edu>
34416 Merge from coreutils.
34418 * lib/.gdb-history: Remove; this doesn't belong here.
34420 * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
34421 * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
34422 * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
34423 * lib/getcwd.c: New files.
34425 * lib/dirname.h: Include <stdbool.h>.
34426 (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
34427 for consistency with POSIX terminology. All uses changed.
34428 (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
34429 (strip_trailing_slashes): Use bool for booleans.
34430 * lib/stripslash.c (strip_trailing_slashes): Likewise.
34432 * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
34433 sometimes returns a positive errno value even when it succeeds.
34434 (print_errno_message) [!LIBC]: Fall back on strerror if
34435 __strerror_r fails.
34437 * lib/path-concat.c (mempcpy): Don't define if a system header defines
34438 it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
34439 (longest_relative_suffix): New function.
34440 (path_concat): Use it. Assume first argument is not NULL.
34441 Port to DOS. Omit redundant separators.
34442 Report an error instead of returning NULL.
34443 Use mempcpy instead of memcpy.
34444 (xpath_concat): Remove: not declared or used.
34446 * lib/same.h: Include <stdbool.h>
34447 (same_name): Return bool, not int.
34448 * lib/same.c (same_name): Likewise.
34449 (errno): Don't declare; we assume C89 or better now.
34451 * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
34452 if not already defined.
34454 * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
34455 * lib/dup-safer.c (errno): Likewise.
34457 2004-08-05 Paul Eggert <eggert@cs.ucla.edu>
34459 Merge from coreutils.
34460 * modules/c-strtod, modules/c-strtold, modules/canonicalize:
34461 * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
34462 * modules/path-concat: Don't depend on strdup.
34464 2004-08-03 Simon Josefsson <jas@extundo.com>
34466 * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
34467 * lib/progname.h: Don't include stdbool.h.
34469 2004-08-03 Paul Eggert <eggert@cs.ucla.edu>
34471 * modules/fatal: Remove, as the "fatal" module wasn't used or working.
34472 * MODULES.html.sh (func_all_modules): Remove fatal.
34474 2004-08-03 Paul Eggert <eggert@cs.ucla.edu>
34476 * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
34478 2004-08-03 Paul Eggert <eggert@cs.ucla.edu>
34480 * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
34483 2004-08-02 Simon Josefsson <jas@extundo.com>
34485 * lib/getsubopt.h: New file, with comments from Bruno Haible.
34486 * lib/getsubopt.c: New file, from glibc, but slightly modified based on
34487 suggestions from Paul Eggert <eggert@cs.ucla.edu>.
34489 2004-08-01 Simon Josefsson <jas@extundo.com>
34491 * lib/xgetdomainname.c: Include stdlib.h, for free().
34493 2004-07-19 Bruno Haible <bruno@clisp.org>
34495 * MODULES.html.sh (func_all_modules): Add dummy.
34497 2004-07-16 Simon Josefsson <jas@extundo.com>
34499 * modules/dummy: New file.
34501 2004-07-16 Simon Josefsson <jas@extundo.com>
34503 * lib/dummy.c: New file.
34505 2004-07-16 Bruno Haible <bruno@clisp.org>
34507 * lib/backupfile.h: Add extern "C" for C++.
34508 * lib/closeout.h: Likewise.
34509 * lib/copy-file.h: Likewise.
34510 * lib/findprog.h: Likewise.
34511 * lib/full-write.h: Likewise.
34512 * lib/pathname.h: Likewise.
34513 * lib/progname.h: Likewise.
34514 * lib/stpcpy.h: Likewise.
34515 * lib/stpncpy.h: Likewise.
34516 * lib/strcase.h: Likewise.
34517 * lib/strstr.h: Likewise.
34518 * lib/xalloc.h: Likewise.
34520 * lib/mbswidth.h: Add extern "C" for C++.
34521 Reported by Albert Chin-A-Young <china@thewrittenword.com>.
34523 2004-07-13 Robert Millan <robertmh@gnu.org>
34525 * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
34527 2004-07-09 Simon Josefsson <jas@extundo.com>
34529 * lib/getndelim2.c: Include stddef.h, for ptrdiff_t. (FreeBSD 4.9
34530 failed without this.)
34532 2004-07-09 Paul Eggert <eggert@cs.ucla.edu>
34534 * modules/chown (Files): Add lib/fchown-stub.c, since
34535 gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
34537 2004-07-09 Paul Eggert <eggert@cs.ucla.edu>
34539 * lib/fchown-stub.c: New file.
34541 2004-06-24 Jim Meyering <jim@meyering.net>
34543 * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
34545 2004-06-22 Paul Eggert <eggert@cs.ucla.edu>
34547 * modules/argz: Omit "#include".
34549 * MODULES.html.sh (func_all_modules): Add calloc, to match
34550 2004-06-01 addition of calloc module.
34552 2004-06-22 Paul Eggert <eggert@cs.ucla.edu>
34554 * m4/argz.m4: New file, which is autoupdated from libtool.
34556 2004-06-22 Paul Eggert <eggert@cs.ucla.edu>
34558 * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
34561 2004-06-22 Paul Eggert <eggert@cs.ucla.edu>
34563 * config/srclist-update: Don't insist on "USA." before the
34564 close-comment, as libtool omits the period and puts the */ on a
34566 * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
34567 * config/srclistvars.sh: Add LIBTOOL (for eggert only).
34569 2004-06-22 Gary V. Vaughan <gary@gnu.org>
34571 * modules/argz: New file.
34572 * MODULES.html.sh (func_all_modules): Add argz.
34574 2004-06-12 Jim Meyering <jim@meyering.net>
34575 and Paul Eggert <eggert@cs.ucla.edu>
34577 * modules/hash (Files): Add lib/xalloc.h.
34578 * modules/pipe (Depends-on): Add wait-process.
34579 * modules/stat (Depends-on): Add xalloc.
34580 * modules/userspec (Files): Add lib/userspec.h.
34583 Upgrade from gettext-0.13.
34584 * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
34585 m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
34586 m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
34588 2004-06-10 Jim Meyering <jim@meyering.net>
34590 * lib/calloc.c: New file.
34592 2004-06-06 Paul Eggert <eggert@cs.ucla.edu>
34594 * lib/getdate.y (yylex): Allow space between sign and number.
34595 Problem reported by Dan Jacobson.
34597 2004-06-01 Paul Eggert <eggert@cs.ucla.edu>
34599 Merge from coreutils CVS.
34601 * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
34602 makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
34603 putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
34604 strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
34605 xstrtol.m4: Fix copyright date and/or serial number.
34607 * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
34608 See if we need an fchown replacement.
34609 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
34610 (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
34611 and use the replacement function if we detect either defect.
34613 * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
34616 2004-06-01 Paul Eggert <eggert@cs.ucla.edu>
34617 and Jim Meyering <jim@meyering.net>
34619 Merge from coreutils CVS.
34621 * lib/stat-macros.h: New file, with contents from file-type.h
34622 and coreutils' system.h.
34623 * lib/file-type.c: Include "stat-macros.h".
34624 * lib/file-type.h (file_type): Move all macro definitions to new file,
34627 * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
34628 Wrap old code with this conditional.
34629 [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
34630 function that does not dereference symlinks.
34631 * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
34633 * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
34634 dependency problems.
34635 (xreadlink): Accept new arg SIZE, for efficiency.
34636 All decls and uses changed.
34637 * lib/xreadlink.h: Include <stddef.h>, for size_t.
34639 * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
34640 gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
34642 * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
34645 2004-06-01 Jim Meyering <jim@meyering.net>
34647 * m4/calloc.m4: New file.
34649 2004-05-31 Paul Eggert <eggert@cs.ucla.edu>
34651 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
34652 C B3910B A.05.55 [Dec 04 2003]. Problem reported by Jim Meyering.
34653 Also, fix a typo in a diagnostic.
34655 2004-05-30 Paul Eggert <eggert@cs.ucla.edu>
34657 * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
34658 or AC_FUNC_REALLOC.
34660 2004-05-30 Paul Eggert <eggert@cs.ucla.edu>
34662 * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
34663 macros to be defined.
34664 (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
34665 the allocator returns NULL because the requested size is zero.
34667 2004-05-20 Paul Eggert <eggert@cs.ucla.edu>
34669 * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
34670 var. Add comment explaining why libc still defines it. This
34671 merges the following patch from glibc:
34672 http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
34674 2004-05-20 Andreas Schwab <schwab@suse.de>
34676 * m4/free.m4: Replace free if it not known to work, not the other
34679 2004-05-19 Paul Eggert <eggert@cs.ucla.edu>
34681 * lib/obstack.c (_obstack): Remove unused variable. It hasn't been
34682 present in glibc since revision 1.1 of this file.
34683 * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
34684 obstack_alignment_mask, obstack_alloc, obstack_base,
34685 obstack_blank, obstack_blank_fast, obstack_chunk_size,
34686 obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
34687 obstack_grow0, obstack_init, obstack_int_grow,
34688 obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
34689 obstack_next_free, obstack_object_size, obstack_ptr_grow,
34690 obstack_ptr_grow_fast, obstack_room): Remove declarations of
34691 nonexistent functions.
34693 2004-05-18 Karl Berry <karl@gnu.org>
34695 * config/srclist.txt: break link for vasnprintf.c.
34697 2004-05-17 Paul Eggert <eggert@cs.ucla.edu>
34699 Port obstack to the AS/400, where pointers are 16 bytes wide and
34700 you cannot cast an integer to a valid pointer. This patch is
34701 currently waiting to be integrated into glibc; see
34702 <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
34704 * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
34705 All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
34706 (__BPTR_ALIGN, __PTR_ALIGN): New macros.
34707 (struct obstack): temp member is now a union of a pointer and
34708 an integer, instead of an integer. All integer uses changed.
34709 This does not affect the physical layout of struct obstack,
34710 except on hosts (like the AS/400) where the size or alignment of
34711 void * is greater than that of ptrdiff_t.
34712 (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
34713 __STDC__)]: Store temporary in pointer member of union, not
34715 * lib/obstack.c: Include <stddef.h>, for offsetof.
34716 (struct fooalign): Remove; it doesn't need a name.
34717 (union fooround): Change double to long double, and add void *.
34718 (DEFAULT_ALIGNMENT): Use offsetof to compute.
34719 (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
34720 not a macro. Hence the values are always int; so remove all
34721 casts-to-int in uses.
34723 2004-05-17 Paul Eggert <eggert@cs.ucla.edu>
34725 * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
34726 we can get this patch merged into glibc.
34728 2004-05-17 Derek R. Price <derek@ximbiot.com>
34729 Paul Eggert <eggert@cs.ucla.edu>
34731 * m4/argp: Depend on alloca.
34733 2004-05-17 Derek R. Price <derek@ximbiot.com>
34734 Paul Eggert <eggert@cs.ucla.edu>
34736 * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
34739 2004-05-17 Bruno Haible <bruno@clisp.org>
34741 * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
34742 precision that consists of a '.' followed by an empty digit string.
34743 Patch by Tor Lillqvist <tml@iki.fi>.
34745 2004-05-16 Paul Eggert <eggert@cs.ucla.edu>
34747 * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
34748 for backward compatibility with older code. We need our own
34749 alloca.h if _AIX is defined. Define HAVE_ALLOCA if we discover
34750 it under some other name, and our alloca.h will define it.
34752 2004-05-16 Paul Eggert <eggert@cs.ucla.edu>
34753 Derek Price <derek@ximbiot.com>
34755 * lib/alloca.c: Include <alloca.h>, to get our interface.
34756 * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
34757 include <alloca.h> first. Use C89 prototype for alloca; this
34758 requires including <stddef.h> for size_t. Use extern "C" if C++.
34759 Use #elif for simplicity, since we can assume C89 now.
34760 Don't try to source the system alloca.h since it will not be found
34761 and to prevent recursively including its replacement.
34762 * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
34763 * lib/regex.c: Likewise.
34765 2004-05-16 Derek Price <derek@ximbiot.com>
34766 Paul Eggert <eggert@cs.ucla.edu>
34768 getline cleanup. This changes the getndelim2 API: both order of
34769 arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
34772 * lib/getline.c: Don't include stddef.h or stdio.h, since our
34773 interface does that.
34774 (getline): Always use getdelim, so that we don't have two
34775 copies of this code.
34776 * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
34778 (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
34779 (GETNDELIM2_MAXIMUM): New macro.
34780 (getndelim2): Reorder arguments. delim==EOF now means no delimiter,
34781 instead of the old practice of delim2==0. All callers changed.
34782 Return -1 on overflow, instead of returning junk.
34783 Do not set *linesize unless allocation succeeds.
34784 * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
34785 that we include sys/types.h.
34786 * lib/getnline.h: Likewise.
34787 * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
34788 (getndelim2): Reorder arguments.
34789 * lib/getnline.c (getnline, getndelim):
34790 Don't discard the NMAX argument.
34791 (getnline): Invoke getndelim, to avoid code duplication.
34792 * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
34793 of (size_t) -1 by callers of the getnline family.
34795 2004-05-13 Paul Eggert <eggert@cs.ucla.edu>
34797 * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
34798 Check for gettimeofday.
34799 * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
34800 Check for settimeofday, stime.
34802 2004-05-13 Paul Eggert <eggert@cs.ucla.edu>
34804 * lib/nanosleep.c (suspended): Change its type from int to
34805 sig_atomic_t volatile.
34806 (first_call): Make it private to rpl_nanosleep, and have it
34807 be zero initially as that's a bit faster.
34808 (my_usleep): Round up fractional times instead of truncating them,
34809 as this is the usual meaning for 'sleep'.
34811 * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
34813 * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
34814 (ENOSYS): Define if not defined.
34815 (settime): Fall back on stime if it exists and settimeofday fails.
34816 But don't bother with fallbacks if a method fails with errno == EPERM.
34818 2004-05-11 Jim Meyering <jim@meyering.net>
34820 Prior to this change, the save_cwd caller required read access to the
34821 current directory on most systems (ones with the fchdir function).
34823 * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
34824 fails, try write-only, and finally, resort to using xgetcwd.
34826 2004-05-06 Paul Eggert <eggert@cs.ucla.edu>
34828 * lib/obstack.c, obstack.h: Import changes from libc.
34830 2004-04-28 Bruno Haible <bruno@clisp.org>
34832 * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
34833 also implicitly appends .exe to executables.
34834 * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
34835 accepts Windows pathnames.
34836 * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
34837 Treat Cygwin like Windows, since it now accepts Windows pathnames.
34838 * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
34839 Treat Cygwin like Windows, since it now accepts Windows pathnames.
34840 Reported by Derek Robert Price <derek@ximbiot.com>.
34842 2004-04-21 Karl Berry <karl@gnu.org>
34844 * config/srclist.txt (localcharset.c): break sync.
34846 2004-04-20 Paul Eggert <eggert@twinsun.com>
34848 * m4/host-os.m4: Add a copyright notice.
34850 2004-04-20 Jim Meyering <jim@meyering.net>
34852 Change UTILS_ to gl_ in AC_DEFINE'd names.
34853 Change utils_- and jm_-prefixed variables, too.
34854 * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
34855 UTILS_FUNC_MKDIR_TRAILING_SLASH.
34856 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
34858 * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
34859 Don't emit trailing blanks.
34860 Also rename jm_-prefixed variables to have gl_ prefix.
34862 * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
34863 Also rename jm_-prefixed variables to have gl_ prefix.
34865 * m4/jm-macros.m4: Reflect the renamings.
34866 * m4/prereq.m4: Likewise.
34868 2004-04-20 Jim Meyering <jim@meyering.net>
34870 * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
34873 2004-04-20 Jim Meyering <jim@meyering.net>
34874 Bruno Haible <bruno@clisp.org>
34876 * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
34877 memory when realloc fails.
34879 2004-04-19 Jim Meyering <jim@meyering.net>
34881 * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
34882 now that readutmp.c may call `free (0)'.
34884 2004-04-19 Bruno Haible <bruno@clisp.org>
34886 * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
34887 * m4/inttypes_h.m4: Likewise.
34888 * m4/stdint_h.m4: Likewise.
34889 * m4/intmax_t.m4: Likewise.
34890 * m4/uintmax_t.m4: Likewise.
34892 2004-04-18 Jim Meyering <jim@meyering.net>
34894 * m4/prereq.m4: Don't forbid jm_ prefix.
34896 * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
34897 * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
34898 * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
34899 * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
34900 * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
34901 * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
34902 * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
34903 * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
34904 * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
34905 * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
34906 * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
34907 * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
34908 * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
34909 * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
34910 * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
34911 * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
34912 * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
34913 * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
34914 Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
34916 2004-04-18 Jim Meyering <jim@meyering.net>
34918 * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
34919 failure, don't leak memory and do call END_UTMP_ENT.
34921 2004-04-16 Jim Meyering <jim@meyering.net>
34923 * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro. It is specific to
34924 coreutils' stat program.
34925 (gl_PREREQ): Don't require jm_PREREQ_STAT.
34927 2004-04-11 Paul Eggert <eggert@twinsun.com>
34929 * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
34931 (CHAR_BIT): Remove, since we assume C89.
34932 Include <stdint.h> if available, as per current Autoconf CVS advice.
34934 2004-03-31 Jim Meyering <jim@meyering.net>
34936 * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
34937 Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
34938 * m4/xalloc.m4: Likewise.
34940 2004-03-30 Paul Eggert <eggert@twinsun.com>
34942 Merge from coreutils.
34944 * m4/inttostr.m4: New file.
34945 * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
34946 Require AM_STDBOOL_H and gl_TIMESPEC instead.
34947 Require gl_CLOCK_TIME.
34948 * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
34950 2004-03-30 Paul Eggert <eggert@twinsun.com>
34952 * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
34953 not bool, to be more consistent with Unix conventions.
34954 Suggested by Bruno Haible.
34956 Merge from coreutils.
34958 * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
34959 * lib/umaxtostr.c: New files.
34961 * lib/getdate.h: Include stdbool.h, and timespec.h instead of
34962 the usual <time.h> dance.
34963 (get_date): Change signature to support fractional time stamps.
34964 All callers changed.
34965 * lib/getdate.y: Include "getdate.h" first, as we can now
34966 assume C89 and don't need to worry about 'const'.
34967 Similarly, include "unlocked-io.h" near start, not in middle.
34968 Include <limits.h>.
34969 (textint.value): Use long int rather than int.
34970 (textint.digits): Use size_t rather than int.
34971 (BILLION, LOG10_BILLION): New constants.
34972 (parser_control): New member rel_ns. Members day_ordinal,
34973 time_zone, month, day, hour, minutes, rel_year, rel_month,
34974 rel_day, rel_hour, rel_minutes, rel_seconds
34975 are now long int, not int. Member seconds is now struct timespec,
34976 not int. New member timespec_seen. Members dates_seen, days_seen,
34977 local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
34979 (%union.intval): Now long int, not int.
34980 New member timespec.
34981 (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
34982 (seconds, signed_seconds, unsigned_seconds): New nonterminals.
34983 (spec): Now is a timespec or an item list.
34984 (timespec, items): New nonterminals.
34985 (time, rel, relunit, number, get_date):
34986 Add support for fractional seconds.
34987 (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
34988 (gmtime, localtime, mktime): Remove decls; not needed with C89.
34989 (to_hour): First arg is now long int, not int.
34990 (to_year): Returns long int, not int.
34991 Don't treat year -70 like 70.
34992 (tm_diff): Returns long int, not int.
34993 (lookup_word): Use bool instead of int when appropriate.
34994 (yylex): Use size_t for count, not int.
34995 Detect overflow when parsing large integer constants.
34996 Add support for fractions.
34997 (get_date): Make pointers 'const' if possible.
34998 Use more-portable code to detect integer overflow.
34999 (main) [TEST]: Adjust to above changes. Test for localtime failure.
35000 Don't use ctime; it's not reliable if the year has >4 digits.
35002 * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
35003 This is for compatibility with BSD.
35005 * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
35006 (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
35007 From coreutils' system.h.
35009 * lib/userspec.c: Don't include "posixver.h".
35010 (parse_user_spec): Fall back on USER.GROUP parsing, regardless
35011 of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
35012 compatible extension. Simplify code by removing a boolean int
35013 that was always nonzero if a string was nonnull.
35015 2004-03-30 Jim Meyering <jim@meyering.net>
35017 Merge from coreutils.
35019 Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
35020 * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
35021 on some systems one must include <grp.h> before it.
35022 Reported by Christian Krackowizer.
35024 2004-03-30 Jim Meyering <jim@meyering.net>
35026 Merge from coreutils.
35028 * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
35030 * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
35031 an empty input stream.
35033 * lib/readtokens.c: Include <stdbool.h>.
35034 (readtoken): Use `size_t' rather than int/long.
35035 All callers adjusted.
35036 Use `bool' rather than `int' where appropriate.
35037 Use memset rather than an explicit loop.
35038 Use x2nrealloc rather than xrealloc.
35039 Allow the use of `\0' as a delimiter.
35040 (readtokens): Likewise.
35041 * lib/readtokens.h (readtoken, readtokens): Update prototypes.
35043 2004-03-30 Jim Meyering <jim@meyering.net>
35045 * m4/realloc.m4: Remove file, since now it does no more than
35046 AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
35047 the `configure.ac' section of module/realloc.
35048 * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
35050 2004-03-30 Bruno Haible <bruno@clisp.org>
35052 * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
35055 2004-03-29 Paul Eggert <eggert@twinsun.com>
35057 Merge changes to getloadavg.c from coreutils and Emacs.
35059 * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
35060 Define to an expression, not to the empty string.
35061 Include cloexec.h and xalloc.h.
35062 (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
35063 Use set_cloexec_flag rather than rolling our own.
35064 * lib/cloexec.c, lib/cloexec.h: New files.
35066 2004-03-29 Paul Eggert <eggert@twinsun.com>
35068 * m4/cloexec.m4: New file.
35070 2004-03-18 Paul Eggert <eggert@twinsun.com>
35072 * lib/getopt.h: Sync with libc CVS.
35074 2004-03-18 Paul Eggert <eggert@twinsun.com>
35075 Bruno Haible <bruno@clisp.org>
35077 * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
35080 2004-03-18 Paul Eggert <eggert@twinsun.com>
35081 Bruno Haible <bruno@clisp.org>
35083 * lib/mbswidth.h: Include <wchar.h> only if
35084 HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
35086 * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
35088 2004-03-09 Paul Eggert <eggert@twinsun.com>
35090 * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
35091 Sync with libc CVS.
35092 * lib/getopt_int.h: New file, also synced from libc.
35094 2004-03-09 Paul Eggert <eggert@twinsun.com>
35096 * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
35097 * config/srclist.txt: Sync getopt with libc. Add getopt_int.h.
35098 Bring back getopt.c, getopt.h, getopt1.c.
35100 2004-03-07 Paul Eggert <eggert@twinsun.com>
35102 * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
35103 All uses changed. Check for sa_sigaction member; this fixes
35104 a bug first reported by Jason Andrade in
35105 <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
35107 2004-03-07 Paul Eggert <eggert@twinsun.com>
35109 * lib/c-stack.c (SIGACTION_WORKS): New macro. Use it instead of long
35110 '#if' expressions. Unlike the code it replaces, it does not
35111 depend on (defined _SC_PAGESIZE). However, it does depend on
35112 HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
35113 first reported by Jason Andrade in
35114 <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
35116 2004-02-25 Simon Josefsson <jas@extundo.com>
35118 * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
35120 2004-02-25 Simon Josefsson <jas@extundo.com>
35122 * lib/strdup.h: New file.
35123 * lib/strdup.c: Include it.
35124 * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
35125 * lib/userspec.c: Include strdup.h. Drop strdup declaration.
35127 2004-02-23 Karl Berry <karl@gnu.org>
35129 * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
35130 (from fencepost.gnu.org:/gd/gnuorg).
35132 2004-02-23 Karl Berry <karl@gnu.org>
35134 * config/srclistvars.sh (GNUORG) [karl]: redefine.
35135 * config/srclist.txt: add maintain/standards documents.
35137 2004-02-18 Bruno Haible <bruno@clisp.org>
35139 * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
35140 Reported by Derek Robert Price <derek@ximbiot.com>.
35142 2004-02-16 Karl Berry <karl@gnu.org>
35144 * config/mkinstalldirs, install-sh: update from automake.
35146 2004-02-06 Karl Berry <karl@gnu.org>
35148 * m4/po.m4: update from gettext 0.14.1.
35150 2004-02-06 Karl Berry <karl@gnu.org>
35152 * lib/config.charset: update from gettext 0.14.1.
35154 2004-02-05 Paul Eggert <eggert@twinsun.com>
35156 Add comments and code, prompted by suggestions from Bruno Haible
35158 * lib/quotearg.h (quotearg_alloc): New decl. Improve the comments
35159 describing the enum quoting_style values.
35160 * lib/quotearg.c (quotearg_alloc): New function.
35161 (quotearg_buffer_restyled): Treat lone { and } as special.
35162 Treat = as special. Work around bug with older shells
35163 that "see" a '\' that is really the 2nd byte of a multibyte char.
35164 Quote empty string with shell_quoting_style.
35166 2004-02-03 Bruno Haible <bruno@clisp.org>
35168 * m4/pipe.m4: New file, from GNU gettext.
35170 2004-02-03 Bruno Haible <bruno@clisp.org>
35172 * lib/pipe.h: New file, from GNU gettext.
35173 * lib/pipe.c: New file, from GNU gettext.
35175 2004-01-27 Bruno Haible <bruno@clisp.org>
35177 * m4/execute.m4: New file, from GNU gettext.
35179 2004-01-27 Bruno Haible <bruno@clisp.org>
35181 * lib/execute.h: New file, from GNU gettext.
35182 * lib/execute.c: New file, from GNU gettext.
35183 * lib/w32spawn.h: New file, from GNU gettext.
35185 2004-01-24 Paul Eggert <eggert@twinsun.com>
35187 Merge from diffutils.
35189 * lib/file-type.c (file_type): Add typed memory objects.
35190 * lib/file-type.h (S_TYPEISTMO): New macro.
35192 * lib/c-stack.h (c_stack_action): Remove argv argument.
35193 * lib/c-stack.c (c_stack_action): Likewise. All uses changed.
35194 (die): Don't calculate message unless segv_action returns.
35195 (get_stack_location, min_address_from_argv, max_address_from_argv,
35196 volatile stack_base, volatile_stack_size): Remove.
35197 (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
35198 that every segmentation violation is a stack overflow. (Ouch!)
35199 See Debian bug 136249 (still outstanding) for more info about why
35200 HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
35202 2004-01-24 Paul Eggert <eggert@twinsun.com>
35204 Exit-status fix from coreutils.
35206 Use exit_failure consistently in place of EXIT_FAILURE,
35207 so that program exit statuses are consistent on failure.
35209 * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
35210 Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
35211 * lib/argmatch.h: Comment fix to match the above.
35212 * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
35213 Now a macro referring to exit_failure, instead of a separate
35214 variable. Include "exitfail.h" to get it.
35215 * lib/xstrtol.h: Include "exitfail.h".
35216 (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
35218 * lib/long-options.c (parse_long_options): Use prototype
35219 for usage function arg. Pass it EXIT_SUCCESS rather than 0,
35222 2004-01-21 Jim Meyering <jim@meyering.net>
35224 * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
35225 so as not to conflict with a different-sized __mktime_internal
35226 function in GNU libc.
35227 * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
35228 Problem building statically-linked `ls' reported by Michael Brunnbauer.
35230 2004-01-20 Karl Berry <karl@gnu.org>
35232 * config/config.guess: update from config.
35234 * config/srclistvars.sh: GNUWWWLICENSES for karl.
35236 2004-01-20 Bruno Haible <bruno@clisp.org>
35238 Safer stack allocation.
35239 * lib/setenv.c: Include allocsa.h.
35240 (alloca): Remove fallback definition.
35241 (freea): Remove macro.
35242 (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
35245 2004-01-20 Bruno Haible <bruno@clisp.org>
35247 * m4/eealloc.m4: New file, from GNU gettext.
35249 2004-01-20 Bruno Haible <bruno@clisp.org>
35251 * m4/allocsa.m4: New file, from GNU gettext.
35253 2004-01-20 Bruno Haible <bruno@clisp.org>
35255 * lib/xallocsa.h: New file, from GNU gettext.
35256 * lib/xallocsa.c: New file, from GNU gettext.
35258 2004-01-20 Bruno Haible <bruno@clisp.org>
35260 * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
35262 2004-01-20 Bruno Haible <bruno@clisp.org>
35264 * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
35265 * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
35268 2004-01-20 Bruno Haible <bruno@clisp.org>
35270 * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
35273 2004-01-20 Bruno Haible <bruno@clisp.org>
35275 * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
35277 2004-01-20 Bruno Haible <bruno@clisp.org>
35279 * lib/eealloc.h: New file.
35281 2004-01-20 Bruno Haible <bruno@clisp.org>
35283 * lib/binary-io.h: Avoid warnings on Cygwin.
35285 2004-01-20 Bruno Haible <bruno@clisp.org>
35287 * lib/allocsa.h: New file, from GNU gettext.
35288 * lib/allocsa.c: New file, from GNU gettext.
35290 2004-01-18 Karl Berry <karl@gnu.org>
35292 * doc/gpl.texi, doc/lgpl.texi: new files.
35294 2004-01-18 Karl Berry <karl@gnu.org>
35296 * config/srclistvars.sh (GNUWWWLICENSES): new variable.
35297 * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
35299 2004-01-15 Paul Eggert <eggert@twinsun.com>
35301 Merge from coreutils.
35303 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
35304 * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
35305 (gl_DEFAULT_POSIX2_VERSION): Move
35306 the documentation from 'configure' into 'config.hin',
35307 so that 'configure --help' isn't burdened by it and
35308 we don't have to worry about its formatting there.
35309 Reword the documentation so that it's more succinct
35310 and can be run together into a single paragraph.
35311 * m4/same.m4 (gl_SAME): Check for pathconf.
35313 2004-01-15 Paul Eggert <eggert@twinsun.com>
35315 Merge from coreutils.
35317 * lib/posixver.c: Include posixver.h.
35319 * lib/same.c: Include <stdbool.h>, <limits.h>.
35320 (_POSIX_NAME_MAX): Define if not defined.
35322 (same_name): If file names are silently truncated, report
35323 that the file names are the same if they are the same after
35324 the silent truncation.
35326 * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
35327 conversion function.
35328 * lib/xstrtod.c (xstrtod): Likewise. All callers changed to
35329 include c-strtod.h and use c_strtod. Don't include stdlib.h; no
35332 2004-01-15 Jim Meyering <jim@meyering.net>
35334 Merge from coreutils.
35336 * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
35337 if no library is required.
35338 * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
35339 * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
35340 * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
35341 (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
35342 * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
35343 * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
35344 value, $ac_cv_search_crypt, if it's "none required".
35345 * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
35346 * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
35347 not gl_FUNC_GETLOADAVG.
35348 * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
35349 gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
35351 2004-01-15 Jim Meyering <jim@meyering.net>
35353 Merge from coreutils.
35355 * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code. These
35356 days, gcc-3.x does better all by itself. Patch from Dean Gaudet:
35357 http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
35359 * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
35360 optional configure-time default.
35362 * lib/version-etc.c (version_etc_copyright): Update copyright date.
35364 * lib/xreadlink.c (xreadlink): Correct outdated comment.
35366 2004-01-15 Alexandre Duret-Lutz <adl@gnu.org>
35368 Merge from coreutils.
35370 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
35371 value, $ac_cv_search_nanosleep, if it's "none required".
35373 2004-01-14 Paul Eggert <eggert@twinsun.com>
35375 * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
35376 with like-named macro in fnmatch.c.
35377 (EXT): Use an internal constant instead.
35379 Merge fnmatch patches from glibc.
35380 * lib/fnmatch.c (mbsinit): Remove define.
35381 Add libc_hidden_ver (__fnmatch, fnmatch).
35382 * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
35383 Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
35385 2004-01-14 Karl Berry <karl@gnu.org>
35387 * config/install-sh: update from automake.
35389 2004-01-13 Karl Berry <karl@gnu.org>
35391 * config/install-sh: update from automake.
35393 2004-01-09 Karl Berry <karl@gnu.org>
35395 * config/install-sh: update from automake.
35397 2004-01-05 Karl Berry <karl@gnu.org>
35399 * config/config.{sub,guess}: update from config.
35401 2003-12-31 Karl Berry <karl@gnu.org>
35403 * config/depcomp: update from automake.
35405 2003-12-14 Karl Berry <karl@gnu.org>
35407 * lib/config.charset: update from gettext-runtime.
35409 2003-12-03 Paul Eggert <eggert@twinsun.com>
35411 * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
35412 Bug reported by Alfred M. Szmidt.
35414 2003-12-03 Bruno Haible <bruno@clisp.org>
35416 * m4/gettext.m4: Upgrade from gettext-0.13.
35417 * m4/po.m4: Upgrade from gettext-0.13.
35418 * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
35419 * m4/intmax.m4: New file, from gettext-0.13.
35420 * m4/printf-posix.m4: New file, from gettext-0.13.
35422 2003-11-29 Karl Berry <karl@gnu.org>
35424 * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
35426 2003-11-25 Paul Eggert <eggert@twinsun.com>
35427 Bruno Haible <bruno@clisp.org>
35429 * lib/printf-parse.h: Don't include sys/types.h.
35430 (ARG_NONE): New macro.
35431 (char_directive): Change type of *arg_index fields to size_t.
35432 * lib/printf-parse.c: Don't include sys/types.h.
35433 (SSIZE_MAX): Remove macro.
35434 (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
35435 Remove unnecessary overflow check.
35436 * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
35439 2003-11-25 Bruno Haible <bruno@clisp.org>
35441 * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
35443 2003-11-25 Bruno Haible <bruno@clisp.org>
35445 * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
35448 2003-11-24 Paul Eggert <eggert@twinsun.com>
35450 * modules/alloca: Remove dependency on xalloc.
35452 2003-11-24 Paul Eggert <eggert@twinsun.com>
35454 * lib/alloca.c: Remove dependency on xalloc module.
35455 (xalloc_die): Remove.
35456 (memory_full) [!defined emacs]: New macro.
35457 [!defined emacs]: Don't include xalloc.h.
35458 (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
35459 address arithmetic overflows. Change datatypes a bit to avoid
35462 2003-11-22 Jim Meyering <jim@meyering.net>
35464 * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
35467 2003-11-21 Karl Berry <karl@gnu.org>
35469 * config/config.{sub,guess}: update from config.
35471 2003-11-18 Karl Berry <karl@gnu.org>
35473 * config/config.{sub,guess}: update from config.
35475 * config/(printf-{parse,args}.[ch]): sync broken, sigh.
35477 2003-11-17 Paul Eggert <eggert@twinsun.com>
35479 * README: Mention that S+T cannot overflow if S is the size of
35480 an existing object and T is sufficiently small.
35482 2003-11-17 Jim Meyering <jim@meyering.net>
35484 On systems without utime and without a utimes function capable of
35485 dealing with a NULL struct utimbuf* argument, this utime replacement
35486 could -- in unusual circumstances -- leak a file descriptor.
35487 * lib/utime.c: Include <unistd.h> and <errno.h>.
35488 (utime_null): Be sure to close `fd' and to preserve errno.
35489 Reported by Geoff Collyer via Arnold Robbins.
35491 2003-11-17 Bruno Haible <bruno@clisp.org>
35493 * modules/vasnprintf (Files): Add m4/ssize_t.m4.
35494 (Depends-on): Add xsize.
35496 2003-11-17 Bruno Haible <bruno@clisp.org>
35498 * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
35500 2003-11-17 Bruno Haible <bruno@clisp.org>
35502 * lib/vasnprintf.c (alloca): Remove fallback definition.
35503 (freea): Remove definition.
35504 (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
35505 Reported by Paul Eggert.
35507 2003-11-16 Paul Eggert <eggert@twinsun.com>
35508 Bruno Haible <bruno@clisp.org>
35510 Protect against address arithmetic overflow.
35511 * lib/printf-args.h: Include stddef.h.
35512 (arguments): Change type of field 'count' to size_t.
35513 * lib/printf-args.c (printf_fetchargs): Use size_t instead of
35514 'unsigned int' where appropriate.
35515 * lib/printf-parse.h: Include sys/types.h.
35516 (char_directive): Change type of *arg_index fields to ssize_t.
35517 (char_directives): Change type of fields 'count', max_*_length to
35519 * lib/printf-parse.c: Include sys/types.h and xsize.h.
35520 (SSIZE_MAX): Define fallback value.
35521 (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
35522 instead of 'int' where appropriate. Check a_allocated, d_allocated
35523 against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
35524 * lib/vasnprintf.c: Include xsize.h.
35525 (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
35526 Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
35527 overflow. Avoid wraparound when converting a width or precision from
35530 2003-11-16 Bruno Haible <bruno@clisp.org>
35532 Update from GNU gettext.
35533 * lib/printf-parse.c: Generalize to it can be compiled for wide
35535 (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
35536 * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
35537 (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
35538 SNPRINTF): New macros.
35539 Don't include <alloca.h> if the file is used inside libintl.
35540 (local_wcslen): New function, for Solaris 2.5.1.
35541 (VASNPRINTF): Use it instead of wcslen.
35543 2003-11-16 Bruno Haible <bruno@clisp.org>
35545 * lib/xsize.h (xmax): New function.
35546 (xsum, xsum3, xsum4): Declare as "pure" functions.
35548 2003-11-12 Paul Eggert <eggert@twinsun.com>
35550 * modules/xalloc (Files): Undo latest change, since xalloc.h
35551 no longer needs SIZE_MAX or PTRDIFF_MAX.
35553 2003-11-12 Paul Eggert <eggert@twinsun.com>
35555 * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
35558 2003-11-12 Paul Eggert <eggert@twinsun.com>
35560 * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
35561 "return", to pacify some unknown compiler. Problem reported
35562 by Joerg Schilling.
35564 2003-11-12 Paul Eggert <eggert@twinsun.com>
35566 * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
35567 (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
35568 the heuristic, rather than PTRDIFF_MAX and SIZE_MAX. This
35569 heuristic is just as accurate as far as we know, and it removes a
35570 dependency on size_max.m4 and ptrdiff_max.m4.
35572 2003-11-11 Bruno Haible <bruno@clisp.org>
35574 * modules/xsize (Files): Add m4/size_max.m4.
35575 * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
35577 2003-11-11 Bruno Haible <bruno@clisp.org>
35579 * m4/size_max.m4: New file.
35580 * m4/ptrdiff_max.m4: New file.
35581 * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
35582 * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
35583 (gl_XALLOC): Invoke it.
35585 2003-11-11 Bruno Haible <bruno@clisp.org>
35587 * lib/xsize.h (SIZE_MAX): Remove fallback definition.
35588 * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
35591 2003-11-10 Paul Eggert <eggert@twinsun.com>
35593 * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
35594 PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
35595 rejected some allocations of exactly SIZE_MAX - 2 bytes.
35597 [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
35598 not (size_t) -1, since it's defined here.
35600 2003-11-09 Karl Berry <karl@gnu.org>
35602 * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
35604 2003-11-06 Paul Eggert <eggert@twinsun.com>
35606 * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
35607 (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
35608 Reject sizes of exactly SIZE_MAX bytes.
35609 * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
35610 is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
35612 2003-11-05 Bruno Haible <bruno@clisp.org>
35614 * lib/xsize.h: Include limits.h, to avoid a possible collision with
35615 SIZE_MAX defined in <limits.h> on Solaris.
35617 2003-11-04 Jim Meyering <jim@meyering.net>
35619 * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
35620 variable names, rather than @VAR@.
35621 * modules/poll: Likewise.
35623 2003-11-04 Bruno Haible <bruno@clisp.org>
35625 * modules/xsize: New file.
35626 * modules/linebreak: Depend on xsize.
35627 * MODULES.html.sh (func_all_modules): Add xsize.
35629 2003-11-04 Bruno Haible <bruno@clisp.org>
35631 * m4/xsize.m4: New file.
35633 2003-11-04 Bruno Haible <bruno@clisp.org>
35635 * lib/xsize.h: New file.
35636 * lib/linebreak.c: Include xsize.h.
35637 (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
35638 argument for overflow.
35639 Suggested by Paul Eggert.
35641 2003-11-03 Karl Berry <karl@gnu.org>
35643 * config/config.{guess,sub}: update from config.
35645 2003-11-03 Jim Meyering <jim@meyering.net>
35647 * modules/userspec (lib_SOURCES): Add userspec.h.
35648 (Include): Add "userspec.h".
35649 Improve description.
35651 2003-11-03 Jim Meyering <jim@meyering.net>
35653 * lib/userspec.c: Include "userspec.h".
35654 * lib/userspec.h: New file.
35656 2003-11-03 Bruno Haible <bruno@clisp.org>
35658 * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
35660 2003-11-03 Bruno Haible <bruno@clisp.org>
35662 * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
35663 available, to avoid (extremely rare) race condition.
35664 Suggested by Paul Eggert.
35666 2003-11-02 Karl Berry <karl@gnu.org>
35668 * config/srclist.txt (vasprintf.c): sync broken, sigh.
35670 2003-10-31 Paul Eggert <eggert@twinsun.com>
35672 * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
35673 * lib/mountlist.c (SIZE_MAX): Define if not defined already.
35674 (read_filesystem_list): Set and use me_type_malloced.
35675 Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
35676 whatever the type happens to be), for brevity and consistency.
35677 Check for size calculation overflow on Alphas running OSF/1.
35679 2003-10-31 Jim Meyering <jim@meyering.net>
35681 * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
35683 * lib/linebuffer.c: Include <string.h> for declaration of memset.
35685 2003-10-30 Paul Eggert <eggert@twinsun.com>
35686 Bruno Haible <bruno@clisp.org>
35688 * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
35689 (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
35691 2003-10-30 Paul Eggert <eggert@cs.ucla.edu>
35693 * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
35694 netbsd*-gnu*. Suggested by Robert Millan.
35696 2003-10-29 Paul Eggert <eggert@twinsun.com>
35698 * modules/group-member: Depend on stdbool.
35700 2003-10-29 Paul Eggert <eggert@twinsun.com>
35702 * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
35704 2003-10-29 Paul Eggert <eggert@twinsun.com>
35706 * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu. Add comments
35707 to it, and to knetbsd*-gnu and kfreebsd*-gnu. Remove the '*' from
35708 after the 'gnu' in these cases. This fixes some bugs in the
35709 previous change, and is based on suggestions by Robert Millan.
35711 2003-10-29 Paul Eggert <eggert@twinsun.com>
35713 * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
35714 so that it works even if SIZE_MAX < N. Do not include <stdbool.h>;
35716 * lib/quotearg.c (quotearg_n_options): Use it.
35717 * lib/group-member.c: Include <stdbool.h>.
35718 (free_group_info): Arg is now const *; don't free arg.
35719 (get_group_info): Now returns bool and accepts struct group_info *,
35720 rather than returning a malloc'ed struct group_info *.
35721 All uses changed. Check for overflow in internal size calculation.
35723 * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
35724 rather than xmalloc/xrealloc.
35725 * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
35726 using x2realloc rather than xmalloc/xrealloc. Also, fix a C
35727 conformance bug: the old code used a pointer after freeing the
35728 storage that it addressed.
35729 * lib/hash.c (hash_initialize): Simplify the code by using
35730 xalloc_oversized rather than doing it by hand.
35731 * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
35732 the buffer preserved. Use free and xmalloc instead.
35733 * lib/quotearg.c (quotearg_n_options): Likewise.
35734 Use a simpler test for size overflow. Don't use xalloc_oversized
35735 because unsigned int might be wider than size_t (!); this suggests
35736 that we should switch from unsigned int to size_t for slot numbers.
35738 2003-10-28 Paul Eggert <eggert@twinsun.com>
35740 * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
35741 GNU/KNetBSD. These implementations use glibc atop the FreeBSD and
35742 NetBSD kernels. Requested by Richard Stallman.
35744 2003-10-27 Paul Eggert <eggert@twinsun.com>
35746 * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
35747 to allocate the returned structure. Do not allocate a subarray,
35748 as x2nrealloc will do that.
35749 (add_exclude): Use x2nrealloc to reallocate ex->exclude,
35750 instead of xnrealloc.
35751 (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
35753 2003-10-27 Bruno Haible <bruno@clisp.org>
35755 * lib/stdbool_.h: Better support for BeOS.
35757 2003-10-26 Paul Eggert <eggert@twinsun.com>
35759 * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
35762 2003-10-26 Paul Eggert <eggert@twinsun.com>
35764 * lib/xalloc.h (xalloc_oversized): New static inline function, for
35765 callers that want to do their own size-overflow checking. Include
35766 <stdbool.h>, since xalloc_oversized returns bool.
35767 * lib/xalloc.c (array_size_overflow): Remove. All callers changed
35768 to use xalloc_oversized.
35770 Add two functions x2realloc, x2nrealloc, for programs that grow
35771 arrays dynamically by doubling their sizes.
35772 * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
35773 * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
35776 Port to C99 semantics for 'inline' of external functions.
35777 Bug reported by Bruno Haible.
35778 * lib/xmalloc.c (xnmalloc_inline): New static inline function,
35779 with the old contents of xnmalloc.
35780 (xnmalloc, xmalloc): Use it.
35781 (xnrealloc_inline): New static inline function,
35782 with the old contents of xnrealloc.
35783 (xnrealloc, xrealloc): Use it.
35785 * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
35788 2003-10-26 Karl Berry <karl@gnu.org>
35790 * config/srclist.txt (COPYING.DOC): no longer available from
35791 /gd/gnuorg; don't know where the ultimate source is.
35793 2003-10-25 Paul Eggert <eggert@twinsun.com>
35795 Fix several address-calculation bugs in the hash modules,
35796 plus some minor code cleanup.
35798 * lib/hash.h: Include <stdbool.h>, for bool.
35799 * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
35800 * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
35801 hash_get_n_entries, hash_get_max_bucket_length,
35802 hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
35803 hash_rehash): Use size_t rather than unsigned.
35804 * lib/hash.c (struct hash_table, hash_get_n_buckets,
35805 hash_get_n_buckets_used, hash_get_n_entries,
35806 hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
35807 hash_get_entries, hash_do_for_each, hash_string, is_prime,
35808 next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
35810 (SIZE_MAX): Define if not defined.
35811 (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
35812 hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
35814 Use const * when possible.
35815 (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
35816 (check_tuning): Fix bug: if tuning parameters were very close to
35817 0 or 1, rounding errors could have caused subscript violations.
35818 (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
35819 (hash_initialize): Add 'fail:' label
35820 to free table and return NULL, and use it to simplify code.
35821 Use calloc rather than clearing the storage ourself.
35822 (hash_initialize, hash_rehash): Check for arithmetic overflow in
35823 buffer size calculations.
35824 * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
35825 Include <stddef.h>, for size_t.
35826 * lib/hash-pjw.c (hash_pjw): Likewise.
35827 Switch to method described by Bruno Haible.
35828 Include <limits.h>, for CHAR_BIT.
35829 (SIZE_BITS): New macro.
35831 2003-10-23 Paul Eggert <eggert@twinsun.com>
35833 * m4/getline.m4 (AM_FUNC_GETLINE):
35834 Don't include getndelim2.o twice into LIBOBJS; this breaks on some
35835 hosts. Problem reported by Derek Robert Price in
35836 <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
35837 This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
35838 * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
35840 2003-10-21 Paul Eggert <eggert@twinsun.com>
35842 * lib/getndelim2.c (getndelim2): When size calculation overflows,
35843 ceiling the allocation at NMAX bytes rather than silently
35844 discarding input bytes before NMAX is reached. This makes
35845 a difference only if NMAX exceeds SIZE_MAX / 2.
35847 * lib/obstack.c: Merge from glibc.
35848 [defined _LIBC]: Include <obstack.h>, not "obstack.h".
35849 Add libc_hidden_def (_obstack_newchunk).
35850 (_obstack_free) [! defined _LIBC]: Remove.
35851 [defined _LIBC]: Make a strong alias from obstack_free, rather than
35852 a clone of the function body.
35853 (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
35854 [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
35856 * lib/obstack.h: Indenting cleanup, to make it easier to merge with
35858 (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
35861 * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
35862 (obstack_ptr_grow_fast, obstack_int_grow_fast):
35863 Don't use lvalue casts, as GCC plans to remove support for them
35864 in GCC 3.5. Reported by Joseph S. Myers. This bug
35865 was also present in the non-GCC version, indicating that this
35866 code had always been buggy and had never been widely used.
35867 (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
35868 Use the fast variant of each macro, rather than copying the
35869 definiens of the fast variant; that way, we'll be more likely to
35870 catch future bugs in the fast variants.
35872 2003-10-20 Bruno Haible <bruno@clisp.org>
35874 * modules/wait-process: New file.
35875 * MODULES.html.sh (func_all_modules): Add wait-process.
35877 2003-10-20 Bruno Haible <bruno@clisp.org>
35879 * m4/wait-process.m4: New file.
35881 2003-10-20 Bruno Haible <bruno@clisp.org>
35883 * lib/wait-process.h: New file, from GNU gettext.
35884 * lib/wait-process.c: New file, from GNU gettext.
35886 2003-10-19 Jim Meyering <jim@meyering.net>
35888 * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
35891 2003-10-18 Karl Berry <karl@gnu.org>
35893 * config/config.guess: update from config.
35895 2003-10-16 Paul Eggert <eggert@twinsun.com>
35897 * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
35898 (getgroups): First arg is int, not size_t.
35899 Don't let 'free' mangle errno.
35901 2003-10-16 Paul Eggert <eggert@twinsun.com>
35903 * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
35905 2003-10-16 Karl Berry <karl@gnu.org>
35907 * config/config.{guess,sub}: update from config.
35909 2003-10-16 Jim Meyering <jim@meyering.net>
35911 * lib/xmalloc.c: Include <string.h>, for declarations of memset and
35914 2003-10-15 Paul Eggert <eggert@twinsun.com>
35916 * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
35917 (SIZE_MAX): Remove.
35918 (new_exclude, add_exclude_file): Initial size no longer needs to
35920 (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
35921 our own address arithmetic overflow checking.
35923 * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
35924 (fnmatch): Do not alloca more than 2000 wide characters;
35925 instead, use malloc for large buffers.
35926 Check for address arithmetic overflow, and return -1
35927 with errno set to ENOMEM in that case.
35928 * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
35929 (NEW_PATTERN): Do not alloca more than 8000 bytes;
35930 instead, return -1. Check for address arithmetic overflow.
35932 2003-10-14 Paul Eggert <eggert@twinsun.com>
35934 Handle invalid suffixes and overflow independently, so that
35935 callers can treat them independently as needed. Fix some bugs in
35936 suffix handling, e.g., "100k@" was not diagnosed as an invalid
35937 suffix for a human-readable blocksize. The major caller-visible
35938 change is the addition of a new
35939 LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
35940 that both overflow and suffix chars were found.
35942 * lib/human.c (humblock): Don't check separately for invalid suffix
35943 char; that is xstrtoumax's job (now that its bug is fixed).
35944 * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
35945 INTMAX_MAX]: New macros.
35946 * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
35947 TYPE_MAXIMUM): New macros.
35948 (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
35949 (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
35950 if overflow occurs, as it's what __strtol does and it's more useful
35952 (__xstrtol): If __strtol reports some error other than ERANGE,
35953 reflect it to the caller as LONGINT_INVALID. If it reports
35954 ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
35955 | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
35956 * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
35958 (_STRTOL_ERROR): Handle it. Abort when given unknown error codes.
35959 * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
35960 * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
35961 [defined UINTMAX_MAX]: New macros.
35963 2003-10-14 Bruno Haible <bruno@clisp.org>
35965 * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
35967 2003-10-14 Bruno Haible <bruno@clisp.org>
35969 * m4/sig_atomic_t: New file, from GNU gettext.
35970 * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
35972 2003-10-14 Bruno Haible <bruno@clisp.org>
35974 * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
35975 * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
35976 Also use volatile where needed.
35978 2003-10-12 Paul Eggert <eggert@twinsun.com>
35980 * modules/xalloc: Do not depend on 'exit'. Depend on 'stdbool'.
35981 Change maintainer from Bruno Haible to 'all'.
35983 2003-10-12 Paul Eggert <eggert@twinsun.com>
35985 * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
35987 2003-10-12 Paul Eggert <eggert@twinsun.com>
35989 * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
35990 (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
35991 and define in terms of the other primitives.
35992 * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
35993 (SIZE_MAX): Define if not already defined.
35994 (array_size_overflow): New function.
35995 (xalloc_die): Abort instead of exiting if 'error' returns.
35996 (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
35997 (xmalloc, xrealloc): Use them.
35998 (xcalloc): Check for address arithmetic overflow.
35999 * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
36000 a bit faster than strcpy.
36002 2003-10-10 Simon Josefsson <jas@extundo.com>
36004 * modules/argp (Depends-on): Add restrict and strcase.
36006 2003-10-10 Simon Josefsson <jas@extundo.com>
36008 * m4/argp.m4: Add AC_C_INLINE.
36010 2003-10-08 Paul Eggert <eggert@twinsun.com>
36012 Merge getpass from libc, plus a few fixes.
36014 * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
36015 Include <stdbool.h>.
36016 Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
36017 __fsetlocking to empty.
36018 [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
36019 do include <bits/libc-lock.h>.
36020 Do not include <fcntl.h>; not needed.
36021 [_LIBC]: Include <wchar.h>.
36022 (NOTCANCEL_MODE): New macro.
36023 (flockfile, funlockfile) [_LIBC]: New macros.
36024 (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
36025 [!_LIBC]: New macros.
36026 (call_fclose): New function.
36027 (getpass): Use it. Save tty stream separately; this simplifies the
36028 code and makes it more reliable if stdin happens to equal stdout.
36029 Invoke __fsetlocking on tty.
36030 Handle thread cancellation if needed.
36031 Namespace cleanup (use __tcgetattr, __getline).
36032 Use bool for Booleans.
36033 [USE_IN_LIBIO]: Handle wide streams.
36034 [!_LIBC]: Unconditionally do the fseek, since we don't know what
36035 stream might go where.
36037 * lib/unlocked-io.h: Include <stdio.h>, so that the caller
36038 doesn't have to include <stdio.h> before us.
36039 (clearerr_unlocked, feof_unlocked, ferror_unlocked,
36040 fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
36041 fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
36042 putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
36043 if not declared, so that we can use getpass.c code from libc without
36045 (flockfile, ftrylockfile, funlockfile): New macros.
36047 2003-10-08 Paul Eggert <eggert@twinsun.com>
36049 * modules/getpass: Depend on stdbool.
36051 2003-10-08 Paul Eggert <eggert@twinsun.com>
36053 * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
36055 2003-10-07 Karl Berry <karl@gnu.org>
36057 * config/config.{guess,sub}: update from config.
36059 2003-10-06 Jim Meyering <jim@meyering.net>
36060 Bruno Haible <bruno@clisp.org>
36062 This lets translators provide better translations for the
36063 "Written by ..." part of --version output.
36064 * lib/version-etc.h: Include stdarg.h.
36065 (version_etc_copyright): Declare as readonly.
36066 (version_etc): Make this function variadic with a NULL-terminated list
36067 of author name strings.
36068 (version_etc_va): New declaration.
36069 * lib/version-etc.c: Include stdarg.h, stdlib.h.
36070 (version_etc_copyright): Declare as readonly.
36071 (version_etc_va): New function. Provide a different translatable string
36072 for each possible number of authors < 10. Abbreviate when there are 10
36074 (version_etc): Make this function variadic. Call version_etc_va.
36075 Suggestion from Gary V. Vaughan.
36077 * lib/long-options.h (parse_long_options): Change prototype: the
36078 authors string is moved to the end and becomes variadic.
36079 * lib/long-options.c: Include stdarg.h.
36080 (parse_long_options): Make this function variadic, too.
36081 Call version_etc_va, not version_etc.
36083 2003-10-06 Bruno Haible <bruno@clisp.org>
36085 * modules/version-etc-2: Remove file.
36086 * MODULES.html.sh (func_all_modules): Remove version-etc-2.
36088 2003-10-06 Bruno Haible <bruno@clisp.org>
36090 * modules/fatal-signal: New file.
36091 * MODULES.html.sh (func_all_modules): Add fatal-signal.
36093 2003-10-06 Bruno Haible <bruno@clisp.org>
36095 * m4/fatal-signal.m4: New file.
36096 * m4/signalblocking.m4: New file, from GNU gettext.
36098 2003-10-06 Bruno Haible <bruno@clisp.org>
36100 * lib/version-etc-2.h: Remove file.
36101 * lib/version-etc-2.c: Remove file.
36103 2003-10-06 Bruno Haible <bruno@clisp.org>
36105 * lib/fatal-signal.h: New file, from GNU gettext.
36106 * lib/fatal-signal.c: New file, from GNU gettext.
36108 2003-10-05 Paul Eggert <eggert@twinsun.com>
36110 * README: Rework advice for preventing empty .o files.
36111 Don't recommend ELIDE constructs. Recommend <stddef.h>,
36114 2003-10-04 Karl Berry <karl@gnu.org>
36116 * lib/argp*: update from libc.
36118 2003-10-04 Karl Berry <karl@gnu.org>
36120 * config/config.{guess,sub}: update from config.
36122 2003-10-02 Bruno Haible <bruno@clisp.org>
36124 * modules/lchown (Include): Add lchown.h.
36125 * modules/time_r (Include): Use "..." syntax.
36126 * modules/xgetdomainname (Include): Add xgetdomainname.h.
36128 2003-10-01 Simon Josefsson <jas@extundo.com>
36130 * MODULES.html.sh (func_all_modules): Move gethostname from section
36131 'based on' to section 'lacking' POSIX:2001.
36133 2003-10-01 Larry Jones <lawrence.jones@eds.com>
36135 * lib/getpass.c (getpass): Use a no-op fseek when switching from input
36136 to output mode on the same stream.
36138 2003-09-29 Paul Eggert <eggert@twinsun.com>
36140 * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
36141 Fix arg typo in previous patch.
36143 2003-09-28 Jim Meyering <jim@meyering.net>
36145 * lib/error.c: Correct cpp indentation.
36147 2003-09-27 Paul Eggert <eggert@twinsun.com>
36149 * modules/free: New file.
36151 2003-09-27 Paul Eggert <eggert@twinsun.com>
36153 * m4/free.m4: New file.
36155 2003-09-27 Paul Eggert <eggert@twinsun.com>
36157 * lib/minmax.h (MIN, MAX)
36158 [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
36159 Omit the special code that used __typeof__, since we worry that
36160 it could be more trouble than it's worth. See:
36161 http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
36162 http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
36164 * lib/free.c: New file.
36166 2003-09-27 Oskar Liljeblad <oskar@osk.mine.nu>
36168 Trivial fixes to Makefile.am parts of module listings.
36169 * modules/strstr: Append strstr.h to lib_SOURCES.
36170 * modules/strcase: Likewise, for strcase.h.
36172 2003-09-27 Karl Berry <karl@gnu.org>
36174 * config/mkinstalldirs: update from automake.
36176 2003-09-26 Paul Eggert <eggert@twinsun.com>
36178 * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
36179 (error_tail): Do not loop, reallocating temporary buffer, since
36180 the output cannot contain more wide characters than the input
36181 contains bytes, the size must be big enough already. This avoids
36182 one potential size overflow calculation. Check for size overflow
36183 when calculating temporary buffer size. Free temporary buffer
36184 when done, if it was allocated with malloc; this plugs a memory
36185 leak. Remove casts from void * to pointers, that are no longer
36186 needed now that we're assuming C89 or better.
36188 Merge error changes from glibc.
36190 * lib/error.c, error.h: Update copyright notice header to match glibc.
36191 * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
36192 (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
36193 Disable cancellation while printing error.
36194 * lib/error.h: Prepend __ to parameter names.
36196 2003-09-26 Jim Meyering <jim@meyering.net>
36198 * lib/error.c (error_tail): Move some declarations
36199 into inner scope where the local variables are used.
36201 2003-09-26 Bruno Haible <bruno@clisp.org>
36203 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
36205 Don't define stpncpy through config.h; it's now done through stpncpy.h.
36207 2003-09-26 Bruno Haible <bruno@clisp.org>
36209 * lib/stpncpy.h (gnu_stpncpy): New declaration.
36210 (stpncpy): Define as alias for gnu_stpncpy.
36211 * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
36213 2003-09-25 Simon Josefsson <jas@extundo.com>
36215 * lib/xgetdomainname.h: New file.
36216 * lib/xgetdomainname.c: New file.
36218 2003-09-25 Simon Josefsson <jas@extundo.com>
36219 Bruno Haible <bruno@clisp.org>
36221 * modules/getdomainname: New file.
36222 * modules/xgetdomainname: New file.
36223 * MODULES.html.sh (func_all_modules): Add getdomainname,
36226 2003-09-25 Simon Josefsson <jas@extundo.com>
36227 Bruno Haible <bruno@clisp.org>
36229 * m4/getdomainname.m4: New file.
36231 2003-09-25 Simon Josefsson <jas@extundo.com>
36232 Bruno Haible <bruno@clisp.org>
36234 * lib/getdomainname.h: New file.
36235 * lib/getdomainname.c: New file.
36237 2003-09-25 Karl Berry <karl@gnu.org>
36239 * lib/argp-fmtstream.c, argp-help.c: update from libc.
36241 2003-09-25 Karl Berry <karl@gnu.org>
36243 * config/install-sh: update from automake.
36245 2003-09-25 Bruno Haible <bruno@clisp.org>
36247 * modules/version-etc-2: New file, from modules/version-etc with
36249 * MODULES.html.sh (func_all_modules): Add version-etc-2.
36251 2003-09-25 Bruno Haible <bruno@clisp.org>
36253 * lib/version-etc-2.h: New file, from version-etc.h with modifications.
36254 * lib/version-etc-2.c: New file, from version-etc.c with modifications.
36256 2003-09-24 Simon Josefsson <jas@extundo.com>
36258 * modules/xgethostname: Add xgethostname.h.
36260 2003-09-24 Paul Eggert <eggert@twinsun.com>
36262 * lib/linebuffer.c (freebuffer): Don't free the argument, just
36263 the buffer associated with the argument. Bug reported by
36266 2003-09-24 Paul Eggert <eggert@twinsun.com>
36268 * README: Document assumptions that 'int' is at least 32 bits
36269 wide, that integer arithmetic is 2's complement without overflow,
36270 that there are no holes in integer values, that adding sizes of
36271 two nonoverlapping objects can't overflow, and that all-bits-zero
36272 yields scalar zero. Fix spelling and capitalization typos.
36274 2003-09-19 Karl Berry <karl@gnu.org>
36276 * lib/argp.h: update from libc.
36278 2003-09-17 Paul Eggert <eggert@twinsun.com>
36280 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
36281 to avoid spurious warnings like "AC_RUN_IFELSE was called before
36282 gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
36284 2003-09-17 Paul Eggert <eggert@twinsun.com>
36286 * gnulib-tool: Use "test -h", not "test -L", for portability
36287 to Solaris 8 /bin/sh. (This bug is fixed in Solaris 9.)
36288 (tags_regexp): Remove, since \| doesn't conform to POSIX.
36289 (sed_extract_prog): Issue s commands one-by-one, rather than
36290 using \| in one s command.
36292 2003-09-16 Paul Eggert <eggert@twinsun.com>
36294 * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
36295 input error, instead of returning NULL the next time we are called
36296 (and therefore losing track of errno).
36298 2003-09-16 Bruno Haible <bruno@clisp.org>
36300 * gnulib-tool (func_create_testdir): Warn about duplicated
36303 2003-09-15 Paul Eggert <eggert@twinsun.com>
36305 * modules/argmatch, modules/fatal, modules/obstack,
36306 modules/xalloc, modules/xgethostname: Sort dependencies by
36307 importance, not alphabetically.
36309 2003-09-15 Paul Eggert <eggert@twinsun.com>
36311 * lib/getndelim2.c (getndelim2): Don't trash errno when a read
36312 fails, so that the caller gets the proper errno.
36314 * lib/readutmp.c (read_utmp): Likewise.
36315 Check for fstat error. Close stream and free storage
36318 2003-09-14 Karl Berry <karl@gnu.org>
36320 * config/srclist.txt (strdup.c): disable for c89 changes.
36322 2003-09-14 Jim Meyering <jim@meyering.net>
36324 * lib/getloadavg.c: Correct cpp indentation.
36325 * lib/strdup.c: Likewise.
36326 * lib/vasnprintf.c: Likewise.
36328 2003-09-14 Bruno Haible <bruno@clisp.org>
36330 * modules/fwriteerror: New file.
36331 * MODULES.html.sh (func_all_modules): Add fwriteerror.
36333 2003-09-14 Bruno Haible <bruno@clisp.org>
36335 * lib/fwriteerror.h: New file.
36336 * lib/fwriteerror.c: New file.
36338 2003-09-12 Paul Eggert <eggert@twinsun.com>
36340 * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
36341 modules/xgethostname, modules/xalloc: Depend on exit.
36343 2003-09-12 Paul Eggert <eggert@twinsun.com>
36345 * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
36347 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
36348 and AC_MINIX, too, so that their extensions are available.
36350 * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove. All uses removed.
36351 This macro has been superseded by gl_BACKUPFILE.
36353 More patches to assume C89 or better.
36355 * m4/error.m4 (gl_ERROR): Don't check for vprintf.
36357 * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
36359 * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
36360 * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
36361 Include <string.h>, <stdlib.h> unconditionally.
36362 * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
36363 * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
36364 * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
36365 headers or for string.h.
36366 * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
36369 * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
36371 * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
36372 * m4/userspec.m4 (gl_USERSPEC): Likewise.
36373 * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
36374 * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
36375 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
36376 * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
36378 (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
36379 * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
36380 * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
36382 * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
36383 * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
36384 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
36387 2003-09-12 Paul Eggert <eggert@twinsun.com>
36389 * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
36390 * lib/obstack.c [!defined _LIBC]: Likewise.
36391 * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
36392 * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
36393 * lib/exitfail.c: Don't include stdlib.h; no longer needed.
36395 More changes to assume C89 or better.
36397 * lib/error.c (error_tail): Assume vprintf.
36399 * lib/argmatch.c (getenv): Remove decl.
36400 * lib/progreloc.c (get_full_program_name): Define via prototype.
36401 * lib/setenv.c (clearenv): Likewise.
36402 * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
36404 * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
36405 (malloc, memcpy): Remove decls.
36406 * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
36407 (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
36408 Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
36409 (memcpy): Remove macro.
36410 (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
36411 (__P): Remove. All uses removed.
36412 (PTR): Remove. All uses changed to void *.
36413 (CHAR_BIT, NULL): Remove.
36414 (spaces, zeros, memset_space, memset_zero)
36415 [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
36417 (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
36418 (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
36419 Define with prototype.
36420 Remove now-unnecessary prototype decl.
36421 (extra_args_spec): Assume ANSI C. All uses changed.
36422 (extra_args_spec_iso): Remove.
36423 (my_strftime, emacs_strftimeu): Define via prototype.
36424 * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
36426 (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
36427 * lib/strtoimax.c: Include <stdlib.h> unconditionally.
36428 (strtoul, strtol): Remove decls.
36429 * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
36431 Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
36432 (LOCALE_PARAM_DECL): Remove. All uses changed to LOCALE_PARAM_PROTO.
36433 (LOCALE_PARAM_PROTO): New macro.
36434 (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
36435 (INTERNAL (strtol), strtol): Define with a prototype.
36436 (PARAMS): Remove. All uses removed.
36437 * lib/tempname.c: Include <string.h> unconditionally.
36438 * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
36439 * lib/xgethostname.c (main): Define with a prototype.
36440 * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
36441 Include <stdlib.h> unconditionally.
36442 (calloc, malloc, realloc, free): Remove decls.
36443 * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
36444 Include <stdlib.h> unconditionally. Sort include file names.
36446 (xstrtod): Define with a prototype.
36447 * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
36448 (strtol, strtoul): Remove decls.
36450 2003-09-11 Paul Eggert <eggert@twinsun.com>
36452 More patches to assume C89 or better.
36453 * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
36454 * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
36455 string.h, memchr, STDC_HEADERS.
36457 2003-09-11 Paul Eggert <eggert@twinsun.com>
36459 * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
36460 Include <stdlib.h>, <string.h> unconditionally.
36461 Remove now-unnecessary cast to char *.
36462 * lib/strnlen.c: Include <string.h> unconditionally.
36463 * lib/yesno.c (yesno): Define with a prototype.
36465 2003-09-11 Bruno Haible <bruno@clisp.org>
36467 * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
36469 2003-09-10 Jim Meyering <jim@meyering.net>
36471 * lib/error.c: Correct indentation of cpp directives.
36473 2003-09-10 Bruno Haible <bruno@clisp.org>
36475 * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
36476 * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
36477 * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
36478 * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
36479 * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
36480 <stdlib.h> and <string.h> checks.
36481 * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
36482 * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
36484 2003-09-10 Bruno Haible <bruno@clisp.org>
36486 * lib/strcspn.c: Include <string.h> unconditionally.
36487 * lib/strpbrk.c: Include <string.h> unconditionally.
36488 * lib/strstr.c: Include <string.h> unconditionally.
36489 * lib/unicodeio.c: Include <string.h> unconditionally.
36490 * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
36491 * lib/unsetenv.c: Likewise.
36492 * lib/xreadlink.c: Include <stdlib.h> unconditionally.
36493 * lib/yesno.c: Include <stdlib.h> unconditionally.
36494 (rpmatch): Add prototype.
36496 2003-09-09 Paul Eggert <eggert@twinsun.com>
36498 More patches to assume C89 or better.
36499 * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
36500 * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
36501 * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
36503 * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
36505 * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
36507 * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
36509 * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
36510 * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
36511 * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
36513 * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
36514 * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
36516 * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
36518 * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
36519 * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
36520 * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
36521 * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
36522 * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
36523 * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
36525 * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
36526 * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
36527 * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
36528 C headers, or for string.h.
36529 * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
36530 (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
36531 * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
36532 headers, memory.h, stdlib.h, string.h, strings.h.
36533 * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
36534 * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
36535 * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
36537 * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
36538 headers, memory.h, string.h.
36539 * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
36540 * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
36542 * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
36544 * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
36545 * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
36546 * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
36547 * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
36548 * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
36550 2003-09-09 Paul Eggert <eggert@twinsun.com>
36554 * lib/acosl.c (main): Use a prototype.
36555 * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
36558 * lib/getloadavg.c (getloadavg, main): Define via prototypes.
36560 * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
36561 (getopt, etopt_long, getopt_long_only, _getopt_internal)
36562 [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
36564 * lib/getopt.c (const): Remove macro.
36565 Include <string.h> unconditionally.
36566 (my_index): Remove; all uses changed to strchr.
36567 (strlen): Remove decl.
36568 (exchange): Remove forward decl; no longer needed.
36569 (exchange, _getopt_initialize, _getopt_internal, getopt, main):
36570 Define with prototype.
36571 * lib/getopt1.c (const): Remove macro.
36572 (getopt_long, getopt_long_only, main): Define with prototype.
36574 * lib/getugroups.c: Include <string.h> unconditionally.
36576 * lib/getusershell.c: Include <stdlib.h> unconditionally.
36577 (getusershell, setusershell, endusershell, readname, main):
36578 Define with prototypes.
36580 * lib/group-member.c: Include group-member.h first.
36581 Include <stdlib.h> unconditionally.
36583 * lib/hard-locale.c: Include hard-locale.h first.
36584 Include <stdlib.h>, <string.h> unconditionally.
36586 * lib/hash.c (free, malloc): Remove decls.
36587 Include <stdlib.h> unconditionally.
36589 * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
36590 (getenv): Do not declare.
36592 * lib/idcache.c: Include <string.h> unconditionally.
36594 * lib/long-options.c: Include long-options.h first, to test interface.
36595 Include <stdlib.h> unconditionally.
36597 * lib/makepath.c: Include makepath.h first, to test interface.
36598 Include <stdlib.h> and <string.h> unconditionally.
36600 * lib/linebuffer.c: Include <stdlib.h>.
36601 (free): Remove decl.
36603 * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
36604 stddef.h. rpl_malloc returns void *, not char *.
36605 * lib/realloc.c (rpl_realloc): Likewise. Also, define with a
36608 * lib/md5.h: Include <limits.h> unconditionally.
36609 (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
36610 (__P): Remove; all uses removed.
36611 * lib/md5.c: Include "md5.h" first.
36612 (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
36613 md5_buffer, md5_process_bytes, md5_process_block):
36614 Define with prototypes.
36615 * lib/sha.h (__P): Remove all uses. (It wasn't defined??)
36616 * lib/sha.c: Include "sha.h" first.
36617 Include <stdlib.h>, <string.h> unconditionally.
36619 * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
36620 * lib/memcmp.c (__ptr_t): Likewise.
36621 * lib/memrchr.c (__ptr_t): Likewise.
36622 * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
36623 Include <string.h> unconditionally.
36624 * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
36625 * lib/memchr.c: Include <stdlib.h> unconditionally.
36626 * lib/memchr.c (LONG_MAX): Remove.
36627 * lib/memrchr.c (LONG_MAX): Likewise.
36628 * lib/memchr.c (__memchr): Define via a prototype.
36629 * lib/memrchr.c (__memrchr): Likewise.
36630 * lib/memcmp.c (__P): Remove, and remove all uses.
36631 (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
36632 Remove forward decls; no longer needed.
36633 * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
36634 Use types required by C89 in prototype.
36636 * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
36637 * lib/savedir.c: Likewise.
36638 * lib/mkdir.c (free): Remove decl.
36639 * lib/rmdir.c (rmdir): Define with a prototype.
36640 * lib/savedir.c: Include savedir.h first, to test interface.
36642 * lib/mktime.c (STDC_HEADERS): Remove.
36643 Include <stdlib.h>, <string.h> unconditionally.
36645 * lib/modechange.c: Include <stdlib.h> unconditionally.
36646 (malloc): Remove decl.
36648 * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
36649 (free): Remove decl.
36651 * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
36652 Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
36653 (This type really should be intptr_t, but that's a C99ism.)
36654 (_obstack_memcpy): Remove: all uses changed to memcpy.
36655 Include <string.h> unconditionally.
36656 (struct obstack): Assume __STDC__ for types of members
36657 chunkfun, freefun, extra_arg.
36658 (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
36659 _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
36660 obstack_begin, obstack_specify_allocation,
36661 obstack_specify_allocation_with_arg, obstack_chunkfun,
36662 obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
36663 Remove unprototyped decls and the macros that use them.
36664 * lib/obstack.c (POINTER): Remove. All uses changed to void *.
36665 (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
36666 _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
36667 (defined __STDC__ && __STDC__)]:
36668 Remove nonprototyped code.
36669 Include <stdlib.h> unconditionally.
36670 (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
36671 _obstack_allocated_p, _obstack_free, obstack_free,
36672 _obstack_memory_used, print_and_abort):
36673 Define using prototypes.
36674 (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
36675 obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
36676 obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
36677 obstack_next_free, obstack_object_size, obstack_room) [0]:
36678 Remove unused, unprototyped code.
36680 * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
36682 * lib/physmem.c (physmem_total, physmem_available, main): Define
36685 * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
36686 (main): Define with a prototype.
36688 * lib/posixver.c (getenv): Remove decl.
36690 * lib/putenv.c (malloc): Returns void *, not char *.
36691 Include <string.h> unconditionally.
36692 (strchr, memcpy, NULL): Do not define.
36694 * lib/readtokens.c: Include readtokens.h first, to test interface.
36695 Include <stdlib.h>, <string.h> unconditionally.
36696 (init_tokenbuffer): Define with a prototype.
36698 * lib/regex.c (PARAMS): Remove. All uses removed.
36699 All uses of _RE_ARGS removed, too.
36700 Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
36702 (bzero): Assume memset exists.
36703 (memcmp, memcpy, NULL): Remove.
36704 (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
36705 char, or assignments to local vars of type signed char.
36706 (init_syntax_once, PREFIX(extract_number_and_incr),
36707 PREFIX(print_partial_compiled_pattern),
36708 PREFIX(print_compiled_pattern), PREFIX(print_double_string),
36709 convert_mbs_to_wcs, print_fastmap, re_set_syntax,
36710 PREFIX(regex_grow_registers), PREFIX(regex_compile),
36711 PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
36712 PREFIX(insert_op2), PREFIX(at_begline_loc_p),
36713 PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
36714 wcs_compile_range, byte_compile_range, truncate_wchar,
36715 PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
36716 re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
36717 count_mbs_length, wcs_re_match_2_internal,
36718 byte_re_match_2_internal, PREFIX(group_match_null_string_p),
36719 PREFIX(alt_match_null_string_p),
36720 PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
36721 re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
36722 regfree, PREFIX(extract_number)): Define with prototype. Remove
36723 now-unnecessary declaration, if any.
36724 (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
36726 Remove now-unnecessary casts among pointer types.
36727 * lib/regex.h (_RE_ARGS): Remove. All uses removed.
36729 * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
36730 (free): Remove decl.
36732 * lib/rpmatch.c: Include <stdlib.h> unconditionally.
36734 * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
36735 (free): Remove decl.
36737 * lib/save-cwd.c: Include <stdlib.h> unconditionally.
36738 * lib/xgetcwd.c: Likewise.
36740 * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
36741 (free): Remove decl.
36743 * lib/strchrnul.c (strchrnul): Define with a prototype.
36744 Fix bug: c_in was not converted to char before searching.
36746 The following changes are not K&R related:
36748 * lib/group-member.h: Include <sys/types.h>, so that this file is
36750 * lib/makepath.h: Likewise.
36752 * lib/getusershell.c (readname, default_index, line_size, readname):
36753 Use size_t, not int, for sizes.
36754 (readname): If the size overflows, report an error instead of
36757 2003-09-09 Paul Eggert <eggert@twinsun.com>
36759 * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
36762 2003-09-09 Paul Eggert <eggert@twinsun.com>
36764 * README: New section: portability guidelines.
36766 2003-09-09 Derek Robert Price <derek@ximbiot.com>
36768 * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
36771 2003-09-09 Derek Robert Price <derek@ximbiot.com>
36773 * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
36775 2003-09-08 Paul Eggert <eggert@twinsun.com>
36777 Assume C89 or better; remove K&R cruft.
36778 A few of these changes were first proposed by Derek Robert Price
36779 in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
36781 * lib/addext.c: Include <string.h> unconditionally.
36782 * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
36783 Don't declare getenv or malloc.
36785 * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
36786 (POINTER_TYPE, pointer): Remove; all uses changed to void *.
36788 (find_stack_direction, alloca): Use prototypes.
36790 * lib/atexit.c (atexit): Define using a prototype.
36792 * lib/basename.c, dirname.c, stripslash.c:
36793 Include <string.h> unconditionally.
36795 * lib/bcopy.c: Include <stddef.h>.
36796 (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
36798 * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
36800 * lib/error.h (error, error_at_line, error_print_progname)
36801 [! (defined (__STDC__) && __STDC__)]: Remove decls.
36802 * lib/error.c: Include error.h first, to check interface.
36803 Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
36804 (VA_START): Remove; all uses changeed to va_start.
36805 (exit, strerror): Remove decls.
36806 (error_print_progname): Prototype uncondionally.
36807 Don't include <errno.h>; no longer needed.
36808 (private_strerror): Remove.
36809 (error_tail): Always define.
36810 (error, error_at_line): Assume C89 or better; always use prototypes.
36811 * lib/fatal.c: Include "fatal.h" first, to test interface.
36812 Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
36813 (VA_START): Remove; all uses changed to va_start.
36814 [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
36816 (exit): Remove decl.
36817 (fatal): Prototype unconditionally. Assume va_start works.
36818 Abort at end, to pacify gcc.
36820 * lib/euidaccess.c (main): Define with a prototype.
36822 * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
36824 * lib/exitfail.c: Include <stdlib.h> unconditionally.
36826 * lib/fnmatch_.h (__P): Remove. All uses changed to assume
36828 * lib/fnmatch.c: Include fnmatch.h first, to test interface.
36829 Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
36830 (getenv): Remove decl.
36831 (fnmatch): Define using a prototype.
36832 * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
36833 (FCT): Define using a prototype.
36835 * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
36837 * lib/gethostname.c: Include <stddef.h>.
36838 (gethostname): Define with prototype. Length is size_t, not int.
36840 2003-09-08 Paul Eggert <eggert@twinsun.com>
36842 Assume C89 or better; remove K&R cruft.
36843 * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
36844 * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
36845 string.h, getenv, malloc.
36846 * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
36848 * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
36849 * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
36850 do not check for strerror.
36851 * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
36852 * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
36853 * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
36854 do not check for doprnt or vprintf.
36855 * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove. All uses removed.
36856 * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
36858 2003-09-08 Paul Eggert <eggert@twinsun.com>
36860 * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
36861 getversion.c should have been removed then, but was accidentally
36864 * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
36865 (utime_null): Fix typo: 'st' was sometimes called 'sb'.
36867 2003-09-08 Karl Berry <karl@gnu.org>
36869 * config/config.sub, config.guess, srclistvars.sh: update from savannah
36870 config, forget about prep.
36872 * config/depcomp, missing: update from automake.
36874 2003-09-07 Paul Eggert <eggert@twinsun.com>
36876 * modules/time_r: Depend on 'restrict'. Fix from Simon Josefsson in
36877 <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
36879 2003-09-07 Paul Eggert <eggert@twinsun.com>
36881 * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
36882 copy_tm_result. Bug reported by Simon Josefsson in
36883 <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
36885 2003-09-06 Paul Eggert <eggert@twinsun.com>
36887 * m4/time_r.m4: New file.
36888 * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
36889 * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
36890 is. Check for timegm declaration.
36891 (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
36892 Do not check for gmtime_r.
36893 Replace mktime if __mktime_internal does not exist and if mktime
36894 hasn't been replaced already.
36896 2003-09-06 Paul Eggert <eggert@twinsun.com>
36898 * lib/time_r.c, lib/time_r.h: New files.
36900 * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
36902 (__localtime_r) [!defined _LIBC]: New macro. Include <time_r.h>.
36903 (__mktime_internal) [!defined _LIBC]: Now extern, not static.
36905 * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
36907 (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
36908 (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
36909 Include <time_r.h>.
36911 * lib/timegm.c: Switch to glibc implementation, with the following
36913 [defined HAVE_CONFIG_H]: Include <config.h>.
36914 [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
36915 (__mktime_internal) [!defined _LIBC]: New decl.
36916 (__gmtime_r) [!defined _LIBC]: New macro and function.
36917 (timegm): Use a prototype, since gnulib assumes C89.
36918 Do not bother declaring tmp to be const, as it's not really usefu.
36919 * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
36920 (timegm): Declare only if HAVE_DECL_TIMEGM.
36922 2003-09-06 Paul Eggert <eggert@twinsun.com>
36924 * MODULES.html.sh (func_all_modules): Add time_r.
36925 * modules/time_r: New file.
36926 * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
36927 * modules/timegm: Depend on mktime. Change maintainer to "all, glibc".
36929 2003-09-03 Paul Eggert <eggert@twinsun.com>
36931 * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
36932 Bug reported by Lute Kamstra in
36933 <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
36935 * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
36936 "yesterday", "today", and "now" rather than tMINUTE_UNIT. Of
36937 course with correspondingly smaller numbers for tomorrow and
36938 yesterday. From Tadayoshi Funaba. Originally installed into
36939 sh-utils on 1999-08-07, but the patch got lost (I guess during the
36942 2003-08-31 Simon Josefsson <jas@extundo.com>
36944 * modules/timegm: New file.
36945 * MODULES.html.sh (func_all_modules): Add timegm.
36947 2003-08-31 Simon Josefsson <jas@extundo.com>
36949 * m4/timegm.m4: New file.
36951 2003-08-31 Simon Josefsson <jas@extundo.com>
36953 * lib/timegm.h: New file.
36954 * lib/timegm.c: New file. Based on
36955 wget-1.8.2/src/http.c:mktime_from_utc.
36957 2003-08-31 Karl Berry <karl@gnu.org>
36959 * lib/argp.h: update from libc.
36961 2003-08-28 Bruno Haible <bruno@clisp.org>
36963 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
36964 This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
36965 followed by '#define fnmatch fnmatch_posix' gives an error.
36967 2003-08-28 Bruno Haible <bruno@clisp.org>
36969 * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
36970 warning on QNX, which defines O_BINARY to 000000.
36972 2003-08-27 Jim Meyering <jim@meyering.net>
36974 * m4/mkstemp.m4: Require that the system mkstemp be able to create
36975 70 temporary files, not just 30. Tru64 V4.0F's mkstemp function
36976 would fail after 32. Reported by Danny Levinson. Details here:
36977 http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
36979 2003-08-24 Bruno Haible <bruno@clisp.org>
36981 * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
36982 MSVC7 <stdio.h> is included later.
36984 2003-08-22 Simon Josefsson <jas@extundo.com>
36986 * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
36988 2003-08-20 Karl Berry <karl@gnu.org>
36990 * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
36992 2003-08-20 Bruno Haible <bruno@clisp.org>
36994 * modules/progname: New file.
36995 * MODULES.html.sh (func_all_modules): Add progname.
36997 2003-08-20 Bruno Haible <bruno@clisp.org>
36999 * lib/progname.h: New file, from GNU gettext.
37000 * lib/progname.c: New file, from GNU gettext.
37001 * lib/progreloc.c: New file, from GNU gettext.
37003 2003-08-19 Jim Meyering <jim@meyering.net>
37005 * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
37006 http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
37008 2003-08-19 Bruno Haible <bruno@clisp.org>
37010 * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
37013 2003-08-19 Bruno Haible <bruno@clisp.org>
37015 * lib/xstrdup.c: Assume <string.h> exists.
37017 2003-08-18 Paul Eggert <eggert@twinsun.com>
37019 * modules/stdbool: Add BUILT_SOURCES. Prefer $@ to target name
37022 2003-08-18 Jim Meyering <jim@meyering.net>
37024 * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
37025 * m4/lib-ld.m4: Likewise.
37027 2003-08-18 Jim Meyering <jim@meyering.net>
37029 * lib/setenv.h: Indent nested cpp directive.
37030 * lib/vasnprintf.c: Remove trailing blanks.
37032 2003-08-17 Simon Josefsson <jas@extundo.com>
37034 * modules/xstrndup: New file.
37035 * MODULES.html.sh (func_all_modules): Add xstrndup.
37037 2003-08-17 Simon Josefsson <jas@extundo.com>
37039 * modules/argp: Fix autoconf macro name. Add more dependencies.
37041 2003-08-17 Simon Josefsson <jas@extundo.com>
37043 * m4/xstrndup.m4: New file.
37045 2003-08-17 Simon Josefsson <jas@extundo.com>
37047 * m4/argp.m4: New file.
37049 2003-08-17 Simon Josefsson <jas@extundo.com>
37050 Bruno Haible <bruno@clisp.org>
37052 * lib/xstrndup.h: New file.
37053 * lib/xstrndup.c: New file.
37055 2003-08-17 Bruno Haible <bruno@clisp.org>
37057 * modules/strndup (Files, Include): Add lib/strndup.h.
37059 2003-08-17 Bruno Haible <bruno@clisp.org>
37061 * modules/euidaccess (Files): Add lib/euidaccess.h.
37063 2003-08-17 Bruno Haible <bruno@clisp.org>
37065 * lib/strndup.h: New file.
37067 2003-08-17 Bruno Haible <bruno@clisp.org>
37069 * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
37070 like AC_GNU_SOURCE.
37071 * modules/extensions (configure.ac): Comment out the invocation of
37072 gl_USE_SYSTEM_EXTENSIONS.
37074 2003-08-16 Paul Eggert <eggert@twinsun.com>
37076 Merges from coreutils, etc.
37077 * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
37078 error in gl_FUNC_MATCH. This fixes a bug I introduced on 2003-05-28.
37079 * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
37081 * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
37082 * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
37084 2003-08-16 Paul Eggert <eggert@twinsun.com>
37086 Document merge from coreutils.
37087 * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
37088 * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
37089 * modules/utime: Add m4/utimes-null.m4.
37091 2003-08-16 Paul Eggert <eggert@twinsun.com>
37093 * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
37094 space, undoing this 2003-08-12 change:
37095 <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
37097 2003-08-16 Paul Eggert <eggert@twinsun.com>
37099 * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
37100 strtoul.c from libc, undoing this 2003-08-12 change:
37101 <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
37103 2003-08-16 Jim Meyering <jim@meyering.net>
37105 Merges from coreutils.
37106 * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
37107 prefix. Adjust cache variables similarly. Create 500 rather than
37108 just 300 files, to exercise bug on Darwin6.5, too.
37109 * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
37111 * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
37112 AM_SYS_POSIX_TERMIOS.
37113 Reported by mkc@mathdogs.com.
37114 Also change use of $am_cv_sys_posix_termios
37115 to $ac_cv_sys_posix_termios. Reported by Andreas Schwab.
37116 * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
37117 and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
37118 * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
37119 in /proc/mounts until it finds one with matching device number. This
37120 is unnecessary when the FILE argument *is* a mount point. No stat call
37121 is necessary in that case. So, disable the statvfs-testing code on
37122 systems with GNU libc. Reported by Andrei Gaponenko via Tim Waugh
37123 as RedHat bug# 84846.
37124 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
37125 to 1MB, so as not to render systems with no stack size limit (e.g.,
37126 linux-2.2.x) unusable. Suggestion and code from Bruno Haible.
37127 Include <unistd.h>. On some systems,
37128 it is required for the definition of _SC_PAGESIZE.
37130 2003-08-16 Jim Meyering <jim@meyering.net>
37132 Merge from coreutils.
37133 * lib/xstrtoimax.c: #else #if -> #elif.
37134 * lib/xstrtoumax.c: Likewise.
37136 2003-08-16 Jim Meyering <jim@meyering.net>
37138 * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
37139 * m4/utimes.m4: Removed.
37140 * m4/utimes-null.m4: Renamed from utimes.m4.
37142 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
37143 to 1MB, so as not to render systems with no stack size limit (e.g.,
37144 linux-2.2.x) unusable. Suggestion and code from Bruno Haible.
37145 Include <unistd.h>. On some systems,
37146 it is required for the definition of _SC_PAGESIZE.
37148 2003-08-16 Jim Meyering <jim@meyering.net>
37149 and Paul Eggert <eggert@cs.ucla.edu>
37151 Merges from coreutils, etc.
37153 * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
37154 using the latest version from cvs. This avoids problems with #line
37155 directives using a vendor (Sun) compiler.
37156 (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
37157 Don't set GETGROUPS_LIB here; now it's
37158 done via getgroups.m4's wrapper function.
37159 AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
37160 rather than just in sh-util/configure.in, so that the
37161 now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
37163 Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
37164 AC_FUNC_GETLOADAVG where to find getloadavg.c.
37165 Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
37166 UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
37167 gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
37168 Remove code that is now done by the newly-required macros.
37169 Append $(EXEEXT) to DF_PROG.
37170 AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
37171 Do not invoke or require the following here,
37172 since prereq.m4 or some gnulib .m4 now does this for us:
37173 gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
37174 jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
37175 jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
37176 jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
37177 jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
37178 AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
37179 vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
37181 Do not replace the following functions, as this is now the job
37182 of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
37183 getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
37184 strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
37185 atexit getpass, strdup, getpagesize.
37187 Do not check for the following functions, as this is now the job
37188 of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
37189 getcwd, getmntinfo, resolvepath. But check for sysctl, setreuid,
37191 (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
37192 Check for sys/sysctl.h.
37193 (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
37194 jm_CHECK_TYPE_STRUCT_TIMESPEC. Invoke gt_TYPE_SSIZE_T instead
37195 of checking for ssize_t ourselves.
37197 * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
37198 Require every macro that gnulib/modules/* suggests for us.
37199 (jm_PREREQ_ADDEXT): New macro.
37200 (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
37201 Require jm_AC_TYPE_LONG_LONG instead of invoking it.
37203 * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
37204 (gl_PHYSMEM): Use it.
37205 Also check for `table' function.
37206 Check for new headers and functions.
37207 Add check for sys/sysmp.h.
37208 With suggestions from Kaveh Ghazi.
37209 Ignore headers that are present but cannot be compiled. This
37210 avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
37213 2003-08-15 Paul Eggert <eggert@twinsun.com>
37215 Document merge from coreutils.
37216 * modules/userspec: Depend on posixver.
37217 * modules/strftime: Depend on tzset.
37219 2003-08-15 Paul Eggert <eggert@twinsun.com>
37221 * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
37222 rather than tab, after '#' in shell-script copyright notices.
37223 Suggested by Bruno Haible.
37225 2003-08-15 Paul Eggert <eggert@twinsun.com>
37227 * config/srclist-update: Use three spaces, rather than tab, after '#'
37228 in shell-script copyright notices. Suggested by Bruno Haible.
37229 Remove unnecessary parenthesization in regular expression.
37231 2003-08-15 Jim Meyering <jim@meyering.net>
37233 Merge from coreutils.
37234 * lib/xgethostname.c: Include <stdlib.h>.
37235 (xghostname): Don't exit for anything other than memory-related
37236 failure; just return NULL.
37237 * lib/userspec.c: Include "posixver.h".
37238 (parse_user_spec): Accept `.' as a separator only
37239 in pre-POSIX-200112 mode.
37240 * lib/strtoimax.c: Use #elif rather than #else #if.
37241 * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
37242 Remove function, now that we can rely on a working tzset function.
37243 [!_LIBC]: Ensure that the required autoconf test has been run.
37244 [!defined _NL_CURRENT && HAVE_STRFTIME]:
37245 Use underlying_strftime for %r.
37246 * lib/sha.c: Merge in some clean-up and optimization changes from
37248 * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
37249 Ensure that it is a multiple of 64.
37250 Rearrange loop exit tests so as to avoid performing an
37251 additional fread after encountering an error or EOF.
37252 * lib/realloc.c: Update copyright date.
37254 2003-08-15 Jim Meyering <jim@meyering.net>
37255 and Paul Eggert <eggert@twinsun.com>
37257 Merge from coreutils.
37258 * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
37259 member but strut utmpx does not. Needed for AIX 4.3.3.
37260 (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
37262 2003-08-15 Jim Meyering <jim@meyering.net>
37263 and Paul Eggert <eggert@cs.ucla.edu>
37265 Merges from coreutils, etc.
37266 * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
37267 Require gl_FUNC_TZSET_CLOBBER.
37268 * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
37269 ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
37272 2003-08-14 Paul Eggert <eggert@twinsun.com>
37274 Help the merge from coreutils.
37275 * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
37276 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
37277 * m4/tzset.m4: Use it too.
37279 2003-08-14 Paul Eggert <eggert@twinsun.com>
37281 * modules/tzset: New file.
37283 2003-08-14 Jim Meyering <jim@meyering.net>
37285 Merges from coreutils.
37286 * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
37287 variable names, rather than @FNMATCH_H@.
37288 * modules/alloca: Likewise for $(ALLOCA_H).
37290 * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
37291 the three copies of the literal target, `fnmatch.h'.
37292 * modules/alloca (alloca.h): Likewise.
37294 2003-08-14 Jim Meyering <jim@meyering.net>
37296 Merge from coreutils.
37297 * m4/tzset.m4: New file.
37298 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
37299 MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
37300 otherwise, AIX 5.1 systems would end up using the latter.
37301 MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
37302 whether a file system is remote doesn't work 2) the MOUNTED_VMOUNT
37303 code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
37304 code reports merely /MOUNT_POINT. Reported by Mike Jetzer.
37306 2003-08-14 Jim Meyering <jim@meyering.net>
37308 Merge from coreutils.
37309 * lib/obstack.h: Whitespace changes.
37310 * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
37311 and xcalloc return values.
37312 (read_filesystem_list) [MOUNTED_GETFSSTAT]:
37313 Use MNT_NOWAIT, rather than MNT_WAIT. Otherwise, `df DIR' could
37314 hang on OSF/1 5.1 for DIR on both local and remote file systems.
37315 Reported by (and fix confirmed by) Nelson H. F. Beebe.
37316 (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
37318 Use mntctl's return value to drive the entry-processing loop, since
37319 we can't rely on the value of the vmt_length member in the last
37320 entry. On some systems doing so could result in exhausting
37321 virtual memory. Based in part on a patch from Mike Jetzer.
37323 2003-08-14 Jim Meyering <jim@meyering.net>
37324 and Paul Eggert <eggert@twinsun.com>
37326 Merges from coreutils, plus other fixes.
37327 * lib/physmem.c: Merge in portability changes from gcc/libiberty
37328 to support AIX, IRIX, Tru64, and Windows. See the ChangeLog there
37329 for credits and details. Thanks to Kaveh Ghazi for helping
37330 to keep these files in sync.
37331 (ARRAY_SIZE): Define it.
37332 (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
37333 * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
37334 (memcasecmp): Don't assume size_t fits in unsigned int.
37335 Remove casts and duplicate code.
37336 * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
37337 (memcpy): Remove definition.
37338 Merge in some clean-up and optimization changes from glibc.
37339 [BLOCKSIZE]: Move definition to top of file.
37340 Ensure that it is a multiple of 64.
37341 Rearrange loop exit tests so as to avoid performing an
37342 additional fread after encountering an error or EOF.
37343 * lib/md5.h (md5_uintptr): Define.
37344 * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
37345 return to the initial working directory. Preserve errno
37347 * lib/idcache.c: Include "xalloc.h".
37348 (xmalloc, xrealloc): Remove decls.
37349 (getuser): Remove casts no longer required in C89.
37350 * lib/human.c: Include stdio.h, for sprintf.
37351 * lib/group-member.c: Include "xalloc.h".
37352 (xmalloc, xrealloc): Remove decls.
37353 (get_group_info): Remove casts no longer required in C89.
37354 * lib/getusershell.c (readname): Remove casts no longer required in
37356 * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
37357 * lib/getline.c: Whitespace fix, from coreutils.
37359 2003-08-13 Paul Eggert <eggert@twinsun.com>
37361 * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
37364 * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
37365 lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
37366 Undo previous (whitespace-only) change.
37368 2003-08-13 Paul Eggert <eggert@twinsun.com>
37370 * lib/exclude.c: Include <ctype.h>
37371 (IN_CTYPE_DOMAIN): New macro.
37372 (is_space): New fn.
37373 (add_exclude_file): If LINE_END is a space, ignore trailing spaces
37376 * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
37377 Undo previous (whitespace-only) change.
37379 2003-08-13 Paul Eggert <eggert@twinsun.com>
37381 * config/srclist-update: Change update back to the old behavior,
37382 leaving whitespace alone. Use one 'sed' command rather than a
37384 (fixlicense): Now a variable, not a function.
37385 (remove_trailing_blanks): Remove.
37386 (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
37387 * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
37388 Undo previous (whitespace-only) change.
37390 2003-08-12 Paul Eggert <eggert@twinsun.com>
37392 Merge from coreutils.
37393 * modules/euidaccess: Add lib_SOURCES, include for new
37396 2003-08-12 Paul Eggert <eggert@twinsun.com>
37398 * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
37399 lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
37400 Normalize leading white space and remove trailing white space.
37402 Merge from coreutils
37403 * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
37405 * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
37406 0.12.1. These files are now being upgraded automatically by
37407 ../config/srclist-update.
37409 2003-08-12 Paul Eggert <eggert@twinsun.com>
37411 * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
37412 Normalize leading white space and remove trailing white space.
37413 * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
37414 notice, as per ../config/srclist-update.
37416 Merge from coreutils.
37417 * lib/euidaccess.h: New file.
37418 * lib/euidaccess.c: Include it.
37419 * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
37420 vasnprintf.h, vasprintf.h. Remove strdup.c, gettext.h.
37421 * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
37423 2003-08-12 Paul Eggert <eggert@twinsun.com>
37425 * config/srclist-update: Add copyright notice.
37426 (remove_id_lines, remove_trailing_blanks): New constants.
37427 (fixfile): Use them to normalize spacing a bit in copied files.
37428 * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
37429 Normalize leading white space and remove trailing white space.
37431 * config/texinfo.tex: Sync with texinfo.
37433 * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
37434 strtoul.c from libc, to merge coreutils whitespace changes.
37436 * config/srclist.txt: Get the following m4 files from gettext:
37437 codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
37438 inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
37439 longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
37442 2003-08-12 Karl Berry <karl@gnu.org>
37444 * config/srclist.txt: can't sync vasnprintf.c any more, changes have
37447 2003-08-11 Paul Eggert <eggert@twinsun.com>
37449 * modules/gnu-source, m4/gnu-source.m4:
37450 Remove; we're assuming Autoconf 2.54 or later now.
37451 Suggested by Bruno Haible.
37452 * MODULES.html.sh (func_all_modules): Remove gnu-source.
37454 2003-08-11 Bruno Haible <bruno@clisp.org>
37456 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
37458 2003-08-11 Bruno Haible <bruno@clisp.org>
37460 * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
37461 (vasnprintf): Use it instead of wcslen.
37463 2003-08-11 Bruno Haible <bruno@clisp.org>
37465 * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
37466 value to ensure that _Bool promotes to int. Use #define for _Bool when
37467 using the Solaris C compiler. Adds comments suggested by Paul Eggert.
37469 2003-08-10 Karl Berry <karl@gnu.org>
37471 * lib/regex.h: update from libc (whitespace fix).
37473 2003-08-09 Paul Eggert <eggert@twinsun.com>
37475 Merge some files from coreutils. These changes were
37476 originally made by Jim Meyering.
37477 * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
37478 many older Unixes require this.
37479 * lib/alloca.c (alloca): Remove cast to argument of free;
37480 no longer needed in C89.
37481 * lib/alloca_.h, regex.h: Fix white space to match
37482 what GNU indent does.
37484 2003-08-09 Paul Eggert <eggert@twinsun.com>
37486 * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
37487 apparently Emacs's Unicode mode got confused before my 2003-08-05
37490 2003-08-08 Paul Eggert <eggert@twinsun.com>
37492 * m4/extensions.m4: New file.
37493 * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
37494 Require gl_USE_SYSTEM_EXTENSIONS.
37495 * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
37496 Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
37498 2003-08-08 Paul Eggert <eggert@twinsun.com>
37500 * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
37501 * modules/extensions, modules/gnu-source: New files.
37502 * modules/timespec, modules/unlocked-io: Depend on extensions.
37504 2003-08-07 Paul Eggert <eggert@twinsun.com>
37506 * modules/restrict: New file.
37507 * MODULES.html.sh (func_all_modules): Add restrict.
37508 * modules/regex: Depend on restrict.
37510 2003-08-07 Paul Eggert <eggert@twinsun.com>
37512 * m4/restrict.m4: New file.
37513 * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
37515 2003-08-07 Bruno Haible <bruno@clisp.org>
37517 * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
37518 lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
37520 2003-08-07 Bruno Haible <bruno@clisp.org>
37522 * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
37523 makes the module 'getndelim2' compatible with the module 'getline'.
37525 2003-08-05 Paul Eggert <eggert@twinsun.com>
37527 * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
37528 byte with "\201" to avoid glitches when editing that source file
37529 with multi-gnome-terminal.
37531 2003-08-05 Paul Eggert <eggert@twinsun.com>
37533 * lib/bumpalloc.h: Remove.
37535 2003-08-05 Paul Eggert <eggert@twinsun.com>
37537 * MODULES.html.sh (func_all_modules): Remove bumpalloc.
37538 * modules/bumpalloc: Remove.
37540 2003-08-04 Paul Eggert <eggert@twinsun.com>
37542 * lib/getloadavg.c: Change copyright notice and spacing to conform to
37545 Merge from coreutils.
37546 * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
37548 * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
37549 from Karl Berry, implemented by Jim Meyering.
37550 * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
37551 from Dmitry V. Levin.
37552 Remove anachronistic cast of xrealloc.
37553 * lib/fnmatch_.h (__const): Remove. Use 'const'.
37554 * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
37555 type. Otherwise, it wouldn't compile with at least /bin/cc on
37556 ymp-cray-unicos9.0.2.X.
37557 Combine two mostly-identical uses of alloca into one.
37558 Thanks to the Cray-Cyber project for access to a Cray Y-MP.
37560 2003-08-04 Dave Love <d.love@dl.ac.uk>
37564 * lib/getloadavg.c: Check `__unix' as well as `unix'. Use #ifdef, not
37565 #if. Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE. Check
37566 F_SETFD, not FD_SETFD. Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
37567 obsolete NLIST_NAME_UNION.
37568 [__GNU__]: Undef BSD and FSCALE.
37569 [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
37571 2003-08-03 Paul Eggert <eggert@twinsun.com>
37573 * lib/stdbool_.h (_Bool): Make it signed char, instead of
37574 an enum type, so that it's guaranteed to promote to int. See:
37575 <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
37577 2003-08-03 Karl Berry <karl@gnu.org>
37579 * config/depcomp: update from automake.
37581 2003-07-31 Paul Eggert <eggert@twinsun.com>
37583 * lib/strerror.c: Include config.h, limits.h. Declare sprintf.
37584 (strerror): Don't assume that a printable int fits in 14 bytes.
37586 2003-07-31 Bruno Haible <bruno@clisp.org>
37588 * modules/getpass-gnu: New file.
37589 * MODULES.html.sh (func_all_modules): Add getpass-gnu.
37591 2003-07-31 Bruno Haible <bruno@clisp.org>
37593 * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
37595 2003-07-24 Karl Berry <karl@gnu.org>
37597 * config/missing: update from automake.
37599 2003-07-24 Derek Robert Price <derek@ximbiot.com>
37600 Bruno Haible <bruno@clisp.org>
37602 * lib/getline.h (getline, getdelim): Change return type to ssize_t.
37603 * lib/getline.c (getline, getdelim): Likewise.
37604 Remove _GNU_SOURCE define; now it's defined in config.h through
37607 2003-07-23 Karl Berry <karl@gnu.org>
37609 * config/config.sub: update from prep.
37611 2003-07-22 Paul Eggert <eggert@twinsun.com>
37613 * modules/xalloc (Depends-on): Add exitfail.
37614 * modules/xmemcoll: Likewise.
37616 2003-07-22 Paul Eggert <eggert@twinsun.com>
37618 * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
37619 over-parenthesization in macros.
37621 Sync with coreutils.
37623 * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
37626 Use `exit_failure' for xalloc and xmemcoll instead of their own
37627 private exit-failure variables.
37628 * lib/xalloc.h (xalloc_exit_failure): Remove.
37629 * lib/xmalloc.c: Likewise. Include exitfail.h.
37630 (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
37631 * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
37632 * lib/xmemcoll.c: Likewise. Include exitfail.h.
37633 (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
37635 2003-07-20 Jim Meyering <jim@meyering.net>
37637 * modules/closeout (Depends-on): Add exitfail.
37638 Suggestion from Bruno Haible.
37640 2003-07-19 Karl Berry <karl@gnu.org>
37642 * config/config.sub: update from prep.
37644 2003-07-18 Paul Eggert <eggert@twinsun.com>
37646 * lib/closeout.h (close_stdout_set_status, close_stdout_status):
37648 * lib/closeout.c: Likewise. Include "closeout.h" right after config.h,
37649 to test that it can stand by itself. Include "exitfail.h".
37650 Clients should set exit_failure instead.
37651 (EXIT_FAILURE): Remove; no longer needed. Do not include <stdlib.h>.
37653 2003-07-18 Bruno Haible <bruno@clisp.org>
37655 * modules/getndelim2: New file.
37656 * modules/getline: Share files with module getndelim2.
37657 * modules/getnline: Depend on getndelim2 instead of sharing files with
37658 it. Add getnline.c to lib_SOURCES.
37659 * MODULES.html.sh (func_all_modules): Add getndelim2.
37661 2003-07-18 Bruno Haible <bruno@clisp.org>
37663 * m4/getndelim2.m4: New file.
37664 * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
37665 invoke gl_PREREQ_GETNDELIM2.
37666 (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
37667 gl_PREREQ_GETNDELIM2.
37668 * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
37671 2003-07-18 Bruno Haible <bruno@clisp.org>
37673 * lib/getndelim2.h: New file.
37674 * lib/getndelim2.c: Make into a module of its own. Include config.h,
37676 (getndelim2): Make non-static. Change return type to ssize_t.
37677 * lib/getline.h: Change argument names.
37678 * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
37679 * lib/getnline.c: Include getndelim2.h.
37681 2003-07-18 Andreas Schwab <schwab@suse.de>
37683 * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
37685 2003-07-17 Karl Berry <karl@gnu.org>
37687 * config/config.sub: update from prep.
37689 2003-07-17 Bruno Haible <bruno@clisp.org>
37691 * modules/getnline: New file.
37692 * modules/getline: Add lib/getndelim2.c to source file list.
37693 * MODULES.html.sh (func_all_modules): Add getnline.
37695 2003-07-17 Bruno Haible <bruno@clisp.org>
37697 * m4/getnline.m4: New file.
37699 2003-07-17 Bruno Haible <bruno@clisp.org>
37701 * m4/Makefile.am.in: Remove file.
37702 * m4/Makefile.am: Remove file.
37703 * m4/Makefile.in: Remove file.
37705 2003-07-17 Bruno Haible <bruno@clisp.org>
37707 * lib/getnline.h: New file.
37708 * lib/getnline.c: New file.
37709 * lib/getndelim2.c: New file, extracted from getline.c.
37710 (getndelim2): Renamed from getdelim2, with added nmax argument.
37711 * lib/getline.c: Include getndelim2.c.
37712 (getdelim2): Moved out to getndelim2.c.
37713 (getline, getdelim): Update.
37715 2003-07-17 Bruno Haible <bruno@clisp.org>
37717 * lib/Makefile.am: Remove file.
37718 * lib/Makefile.in: Remove file.
37720 2003-07-17 Bruno Haible <bruno@clisp.org>
37722 * configure.in: Remove file.
37723 * Makefile.in: Remove file.
37725 2003-07-17 Bruno Haible <bruno@clisp.org>
37727 * MODULES.html.sh: Put the </BODY> right before </HTML>.
37729 2003-07-16 Karl Berry <karl@gnu.org>
37731 * config/srclist-update: was running fixlicense twice, which caused
37732 texinfo.tex to be nullified for some reason. Simplify,
37733 $gplsrc is no longer needed as far as I can see?
37735 2003-07-16 Jim Meyering <jim@meyering.net>
37737 * modules/save-cwd: Depend on xgetcwd. From Derek Price.
37739 2003-07-15 Paul Eggert <eggert@twinsun.com>
37741 * config/srclist.txt: Get the following files from gettext-runtime/intl
37742 instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
37743 ref-del.sin. From Bruno Haible.
37744 * config/srclist-update (fixfile): Change grep pattern again, since the
37745 previous fix didn't work (there was another trailing $). Use
37746 '[$]' to escape the $s.
37748 2003-07-15 Karl Berry <karl@gnu.org>
37750 * lib/vasnprintf.c: update from gettext.
37752 2003-07-15 Karl Berry <karl@gnu.org>
37754 * config/srclist-update (fixfile): Change grep pattern, since 'Id'
37755 gets expanded when surrounded by '$'.
37757 2003-07-15 Jim Meyering <jim@meyering.net>
37759 * modules/save-cwd: Don't depend on error. From Derek Price.
37761 2003-07-15 Jim Meyering <jim@meyering.net>
37763 * lib/makepath.c (make_path): Enclose diagnostic in _(...).
37765 2003-07-14 Simon Josefsson <jas@extundo.com>
37767 * modules/mempcpy: New file.
37768 * MODULES.html.sh (func_all_modules): Add mempcpy.
37770 2003-07-14 Simon Josefsson <jas@extundo.com>
37772 * m4/mempcpy.m4: New file.
37774 2003-07-14 Simon Josefsson <jas@extundo.com>
37776 * lib/mempcpy.h: New file.
37777 * lib/mempcpy.c: New file.
37779 2003-07-14 Paul Eggert <eggert@twinsun.com>
37781 * modules/getdate, modules/posixtm: Depend on mktime.
37783 2003-07-14 Paul Eggert <eggert@twinsun.com>
37785 * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
37786 sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
37787 unicodeio.c, unicodeio.h, unlocked-io.h:
37788 Switch from LGPL to GPL.
37790 2003-07-14 Paul Eggert <eggert@twinsun.com>
37792 * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
37793 localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
37794 printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
37795 ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
37796 vasprintf.c, vasprintf.h: Regenerate. These files are now being
37797 updated automatically by ../config/srclist-update. This changes
37798 their license from LPGL to GPL.
37800 2003-07-14 Paul Eggert <eggert@twinsun.com>
37802 * config/srclist.txt: Add tons more gettext files. $GETTEXT is now
37803 assumed to refer to the root of the most recent stable gettext version.
37804 * config/srclistvars.sh: Add defaults for eggert.
37805 * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
37806 Match "This program" as well as "The program". This is needed
37809 2003-07-14 Jim Meyering <jim@meyering.net>
37811 Don't emit diagnostics. Let callers do that.
37812 * lib/save-cwd.c: Don't include "error.h".
37813 (save_cwd): Don't call error. Ensure that errno is valid
37814 when returning nonzero.
37816 * lib/save-cwd.h (restore_cwd): Update prototype.
37817 * lib/save-cwd.c (restore_cwd): Remove two parameters.
37818 Simplify. Don't call error upon failure. Let callers do that.
37819 (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
37820 when auditing is enabled. But don't bother updating the #if.
37822 2003-07-11 Alexandre Duret-Lutz <adl@gnu.org>
37824 * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
37825 it breaks C++ compilation.
37826 [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
37828 2003-07-10 Simon Josefsson <jas@extundo.com>
37830 * modules/strchrnul (Makefile.am): Add strchrnul.h.
37832 2003-07-10 Jim Meyering <jim@meyering.net>
37834 * m4/clock_time.m4: Remove trailing blank.
37835 * m4/intmax_t.m4: Likewise.
37837 2003-07-10 Jim Meyering <jim@meyering.net>
37839 * lib/vasnprintf.c: Remove trailing blanks.
37840 Make cpp indentation consistent.
37842 2003-07-09 Paul Eggert <eggert@twinsun.com>
37844 * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
37845 posixver.c, strftime.c, strnlen.c, strverscmp.c:
37846 Switch from LGPL to GPL.
37848 2003-07-09 Paul Eggert <eggert@twinsun.com>
37850 * config/srclist.txt: Sort sublists. Add
37851 $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
37852 that differ from gnulib for one reason or another; we'd like this list
37853 to be smaller but for now let's document what we have.
37855 2003-07-08 Paul Eggert <eggert@twinsun.com>
37857 * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
37858 the use of GNU extensions. Change "x=`eval echo $x`" to the shorter
37859 and sweeter "eval x=$x".
37860 * config/srclist.txt: Get lib/argp* from glibc.
37862 2003-07-07 Paul Eggert <eggert@twinsun.com>
37864 * lib/mktime.c: Fix some boundary cases and remove need for floating
37867 Issue a compile-time diagnostic if time_t is floating point, or if
37868 two's complement arithmetic is not in effect, or if arithmetic
37869 right shift does not propagate the sign. These assumptions were
37870 all in the original code but they weren't checked.
37872 (TIME_T_MIDPOINT, verify): New macros.
37873 (__isleap): Remove; it has integer overflow problems.
37874 (leapyear): New function, without those problems.
37875 (ydhms_tm_diff): Remove; splitting into two parts.
37876 (ydhms_diff): New function, containing the arithmetic part of
37877 the old ydhms_tm_diff function. Issue a compile-time
37878 diagnostic if we are not using C99 integer division.
37879 Avoid casts when possible.
37880 (guess_time_tm): New function, containing the checking part of
37881 the old ydhms_tm_diff function. Return the new value, rather than
37882 the difference between it and the old. Accept a new argument T
37883 so that *T specifies the old value. Check for overflow in the result.
37885 (__mktime_internal): Use a time_t offset, not a long int offset.
37886 This undoes the 2003-06-04 change, which is no longer needed now
37887 that we have better overflow checking.
37888 (localtime_offset): Likewise.
37890 (__mktime_internal): Avoid harmful overflow on hosts where time_t
37891 and long are 64-bit but int is only 32-bit.
37892 (ydhms_diff): Use long int to store year1 and yday1.
37893 Issue a compile-time diagnostic if long int is not wide enough.
37895 (__mktime_internal): Use long int to store adjusted year and yday.
37896 Use plain C rather than preprocessor commands, if that doesn't
37898 Check for overflow (and try to repair) after each probe
37899 rather than checking only at the very end. This avoids some bugs
37900 (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
37901 does not equal GMT offset at maximum time).
37902 Use integer to check for overflow rather than floating point; this
37903 is more portable to non-IEEE hosts, and is a tad faster.
37904 When we detect that we are oscillating between two values,
37905 don't check whether tm_isdst has the requested value, since
37906 we already know the answer. When tm_isdst has the wrong value,
37907 use a different heuristic to find the right one, based on the
37908 extreme values actually observed in practice in tz2003a,
37909 rather than the (overly optimistic) "previous 3 calendar quarters".
37911 (not_equal_tm, print_tm, check_result): Use "const T" rather than
37912 "T const" to accommodate glibc style.
37913 (check_result): Use less-confusing report format. "long" -> "long int.
37915 Don't loop if the iteration overflows time_t.
37916 Allow a negative step in the iteration.
37918 2003-07-06 Karl Berry <karl@gnu.org>
37920 * config/depcomp: update from automake.
37921 * config/config.sub: update from prep.
37923 2003-07-03 Karl Berry <karl@gnu.org>
37925 * config/config.guess: update from prep.
37927 2003-07-01 Paul Eggert <eggert@twinsun.com>
37929 * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
37930 xreadlink.c now includes it unconditionally.
37932 2003-07-01 Paul Eggert <eggert@twinsun.com>
37934 * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
37935 having it depend on HAVE_SYS_TYPES_H.
37937 2003-07-01 Bruno Haible <bruno@clisp.org>
37939 * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
37940 <sys/types.h> should be sufficient.
37941 Reported by Paul Eggert.
37943 2003-06-26 Karl Berry <karl@gnu.org>
37945 * config/depcomp: update from automake.
37947 2003-06-26 Bruno Haible <bruno@clisp.org>
37949 * modules/human: Depend on module stdbool.
37951 2003-06-25 Bruno Haible <bruno@clisp.org>
37953 * modules/readlink: New file.
37954 * modules/xreadlink: Depend on it.
37955 * MODULES.html.sh (func_all_modules): Add readlink.
37957 2003-06-25 Bruno Haible <bruno@clisp.org>
37959 * m4/readlink.m4: New file.
37961 2003-06-25 Bruno Haible <bruno@clisp.org>
37963 * lib/readlink.c: New file.
37965 2003-06-22 Karl Berry <karl@gnu.org>
37967 * config/srclist.txt: update mkinstalldirs from automake.
37968 * config/mkinstalldirs: update.
37970 2003-06-22 Bruno Haible <bruno@clisp.org>
37972 Portability to mingw32.
37973 * m4/ssize_t.m4: New file, from GNU gettext.
37974 * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
37975 * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
37977 2003-06-22 Bruno Haible <bruno@clisp.org>
37979 * modules/safe-read: Add m4/ssize_t.m4.
37980 * modules/xreadlink: Add m4/ssize_t.m4.
37982 2003-06-20 Bruno Haible <bruno@clisp.org>
37984 Assume C89, so PARAMS isn't needed.
37985 * lib/unicodeio.h (PARAMS): Remove.
37986 * lib/unicodeio.c: Don't use PARAMS.
37988 2003-06-18 Karl Berry <karl@gnu.org>
37990 * config/config.{guess,sub}: update from prep.
37992 2003-06-18 Jim Meyering <jim@meyering.net>
37994 Merge changes from coreutils.
37995 * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
37996 Remove explicit declarations of xmalloc and realloc.
37998 (read_utmp): Remove anachronistic cast of xmalloc.
38000 2003-06-17 Paul Eggert <eggert@twinsun.com>
38002 Assume C89, so PARAMS isn't needed.
38003 * lib/backupfile.h (PARAMS): Remove. All uses removed.
38004 * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
38005 lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
38006 lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
38007 lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
38008 lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
38009 lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
38010 lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
38011 lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
38012 lib/xstrtod.h, lib/xstrtol.h: Likewise.
38013 * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
38014 lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
38015 no longer needed. Anyway, config.h should always be included before any
38018 2003-06-11 Simon Josefsson <jas@extundo.com>
38020 * modules/sysexits: New file.
38021 * MODULES.html.sh (func_all_modules): Add sysexits.
38023 2003-06-11 Simon Josefsson <jas@extundo.com>
38025 * lib/sysexit_.h: New file.
38027 2003-06-11 Derek Price <derek@ximbiot.com>
38029 * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
38032 2003-06-11 Bruno Haible <bruno@clisp.org>
38034 * m4/sysexits.m4: New file.
38036 2003-06-10 Simon Josefsson <jas@extundo.com>
38038 * lib/argp.h: New file, from glibc.
38039 * lib/argp-ba.c: New file, from glibc.
38040 * lib/argp-eexst.c: New file, from glibc.
38041 * lib/argp-fmtstream.c: New file, from glibc.
38042 * lib/argp-fmtstream.h: New file, from glibc.
38043 * lib/argp-fs-xinl.c: New file, from glibc.
38044 * lib/argp-help.c: New file, from glibc.
38045 * lib/argp-namefrob.h: New file, from glibc.
38046 * lib/argp-parse.c: New file, from glibc.
38047 * lib/argp-pv.c: New file, from glibc.
38048 * lib/argp-pvh.c: New file, from glibc.
38049 * lib/argp-xinl.c: New file, from glibc.
38051 2003-06-10 Simon Josefsson <jas@extundo.com>
38053 * modules/strchrnul: New file.
38055 2003-06-10 Simon Josefsson <jas@extundo.com>
38057 * modules/argp: New file.
38059 2003-06-10 Simon Josefsson <jas@extundo.com>
38061 * m4/strchrnul.m4: New file.
38063 2003-06-10 Simon Josefsson <jas@extundo.com>
38065 * lib/strchrnul.h: New file.
38066 * lib/strchrnul.c: New file.
38068 2003-06-10 Bruno Haible <bruno@clisp.org>
38070 * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
38072 2003-06-07 Karl Berry <karl@gnu.org>
38074 * config/config.{guess,sub}: update from prep.
38076 2003-06-07 Jim Meyering <jim@meyering.net>
38078 * modules/strtod: Use $(...) notation, not @...@ for
38079 AC_REPLACE'd variables.
38080 * modules/localcharset: Likewise.
38082 2003-06-07 Jim Meyering <jim@meyering.net>
38084 * lib/readtokens.h: Put `Free Software Foundation, Inc.'
38085 in place of my name in the copyright comment.
38086 Remove definition and uses of __P.
38089 * lib/stat.c: Don't declare xmalloc explicitly.
38090 Instead, include "xalloc.h".
38091 * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
38092 xrealloc, and xcalloc return values.
38093 * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
38095 * lib/xgetcwd.h: Remove definition/uses of PARAMS.
38097 2003-06-07 Bruno Haible <bruno@clisp.org>
38099 * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
38100 avoid AC_CONFIG_LINKS.
38101 * modules/fnmatch (Makefile.am): Use explicit creation rule for
38102 fnmatch.h, to avoid AC_CONFIG_LINKS.
38103 * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
38105 2003-06-07 Bruno Haible <bruno@clisp.org>
38107 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
38108 gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
38109 AC_CONFIG_LINKS. Needed to allow for a different name of the lib
38111 * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
38112 AC_CONFIG_LINKS. Needed to allow for a different name of the lib
38115 2003-06-06 Jim Meyering <jim@meyering.net>
38117 Merge from coreutils.
38118 * lib/same.c: (same_name): Declare *_basename locals to be `const'.
38119 Consolidate declarations and initializations of *_base* locals.
38121 Merge from coreutils.
38122 This avoids a core dump on systems without GNU putenv,
38123 when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
38124 * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
38125 (unsetenv): New static function, from GNU libc.
38126 (rpl_putenv): Use it.
38128 * lib/modechange.c: Remove trailing blanks.
38130 Merge from coreutils.
38131 * lib/fsusage.c: Remove declaration of statfs.
38132 It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
38134 * lib/posixtm.c: Include <stdbool.h> unconditionally.
38136 2003-06-06 Jim Meyering <jim@meyering.net>
38138 * lib/stdbool_.h: Renamed from stdbool.h.in.
38140 2003-06-06 Jim Meyering <jim@meyering.net>
38141 Bruno Haible <bruno@clisp.org>
38143 * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
38144 Adjust Makefile.am snippet not to redirect directly to target.
38145 Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
38147 2003-06-05 Paul Eggert <eggert@twinsun.com>
38149 * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
38150 mismatch, look in future quarters as well as past. This fixes a
38151 bug when processing fall-backwards gaps immediately after a long
38152 period of daylight-saving time.
38154 * lib/mktime.c: Assume freestanding C89 or better.
38155 (HAVE_LIMITS_H): Remove. Assume it's 1.
38156 (__P): Remove; not used.
38157 (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
38158 (mktime, not_equal_tm, print_tm, check_result,
38159 main): Use prototypes. Use const * where appropriate.
38160 (main): Fix typo in testing code that uncovered by above changes.
38161 (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
38163 2003-06-04 Paul Eggert <eggert@twinsun.com>
38165 * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H. Check for
38166 locale.h, localeconv. This merges changes from coreutils.
38168 * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
38169 It can be removed after the next Autoconf is released.
38170 * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
38173 2003-06-04 Paul Eggert <eggert@twinsun.com>
38175 * lib/mktime.c: Fix Debian bug 177940
38176 <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
38177 (localtime_offset): Now long int, not time_t, because we want it
38178 to be guaranteed to be signed. All uses changed.
38179 (__mktime_internal): If overflow would occur when adding offset,
38182 Merge 'human' changes from coreutils. Rewrite to support
38183 locale-specific notations like thousands separators.
38184 * lib/human.c: Simplify authorship notice.
38185 Include human.h immediately after config.h.
38186 <sys/types.h>, <stdio.h>: Do not include; no longer needed.
38187 <limits.h>: Do not include, since human.h does.
38188 (SIZE_MAX, UINTMAX_MAX): New macros.
38189 <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
38190 <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
38191 (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
38192 (power_letter): Renamed from suffixes.
38193 (generate_suffix_backwards): Remove.
38194 (adjust_value): Now takes int style (because of human.h changes)
38195 and long double value (for greater precision on some platforms).
38196 (group_number): New function.
38197 (human_readable): Use it. Use integer options, not enum.
38198 Put the options before the sizes in the arg list.
38199 Support all the new options.
38200 The old human_readable function has been removed;
38201 use inttostr.h instead.
38202 (human_readable, default_block_size, humblock):
38203 Use uintmax_t, not int, for block sizes.
38204 (human_readable_inexact, block_size_types): Remove.
38205 (block_size_opts): New constant.
38206 (human_options): Renamed from human_block_size, with new signature
38207 that allows block sizes up to UINTMAX_MAX. All callers changed.
38208 * lib/human.h: Add copyright and authorship notice.
38209 Include <limits.h> and <stdbool.h> unconditionally.
38210 (PARAMS): Remove. All uses removed.
38211 (LONGEST_HUMAN_READABLE): Add support for thousands separator.
38212 (enum human_inexact_style): Remove tag; now a nameless enum.
38213 (human_floor, human_ceiling, human_round_to_even): Now have
38214 values 2, 0, 1 rather than -1, 1, 0.
38215 (human_group_digits, human_suppress_point_zero, human_autoscale,
38216 human_base_1024, human_SI, human_B): New constants.
38217 (human_readable_inexact, human_block_size): Remove.
38218 (human_readable): Size args are now uintmax_t, not int.
38219 (human_options): New decl.
38221 * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
38222 unnecessary now that we assume C89 or better. This change
38223 imported from coreutils.
38225 * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
38226 arbitrarily. This is the same patch as 2003-05-28, but it got lost
38227 in the 2003-05-30 sync from glibc.
38229 .h files should stand alone, but we shouldn't include <sys/types.h>
38230 if we can get away with just <stddef.h>.
38232 * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
38233 malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
38234 rather than <sys/types.h>, as we merely need size_t.
38235 * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
38237 * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
38238 Include <stdio.h>, to get FILE.
38239 * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
38240 memcasecmp.h has included <stddef.h> and all we need is size_t.
38241 * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
38242 our interface, instead of including <sys/types.h>
38244 2003-06-04 Paul Eggert <eggert@twinsun.com>
38246 * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
38247 now, as glibc mktime is buggy on non-glibc systems.
38249 2003-06-03 Karl Berry <karl@gnu.org>
38251 * config/config.sub: update from prep.
38253 2003-06-02 Paul Eggert <eggert@twinsun.com>
38256 Fix some minor time-related bugs with POSIX time arguments.
38257 Some valid time stamps were being rejected (notably -1, and
38258 time stamps before 1900 on 64-bit hosts). And some invalid
38259 time stamps were being accepted, e.g. September 31.
38261 * lib/posixtm.h (posixtime): Return bool instead of time_t, so
38262 that we can return (time_t) -1 successfully.
38263 * lib/posixtm.c: Likewise.
38264 [HAVE_STDBOOL_H]: Include <stdbool.h>.
38265 (bool, false, true) [!HAVE_STDBOOL_H]: New type.
38266 (t): Remove static var.
38267 (year, posix_time_parse): Now takes struct tm * arg to modify, instead
38268 of static var. All uses changed.
38269 (year): Do not reject years before 1900; they can occur with
38271 (posix_time_parse): Do not check for out-of-range components;
38272 that is now the caller's responsibility, since our checks were
38273 only approximations.
38274 (posixtime): Use mktime to check for out-of-range components,
38275 since it knows them exactly.
38276 If mktime returns (time_t) -1, check whether an error actually occurred
38277 by invoking localtime on -1.
38278 (main) [TEST_POSIXTIME]: Check for input data errors, and report
38279 posixtime failures better.
38280 Improve the test data (in comments only).
38282 2003-06-02 Karl Berry <karl@gnu.org>
38284 * config/mkinstalldirs (version): new variable.
38285 (--version): new option.
38286 (usage): improve message.
38288 2003-05-30 Karl Berry <karl@gnu.org>
38290 * lib/mktime.c: update from libc.
38292 2003-05-30 Bruno Haible <bruno@clisp.org>
38294 * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
38295 * config/config.rpath: Upgrade to gettext-0.12.1.
38297 2003-05-30 Bruno Haible <bruno@clisp.org>
38299 * m4/gettext.m4: Upgrade to gettext-0.12.1.
38300 * m4/nls.m4: New file, from gettext-0.12.1.
38301 * m4/po.m4: New file, from gettext-0.12.1.
38302 * m4/progtest.m4: Upgrade to gettext-0.12.1.
38304 2003-05-30 Bruno Haible <bruno@clisp.org>
38306 * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
38307 * lib/localcharset.h: Likewise.
38308 * lib/localcharset.c: Likewise.
38310 2003-05-29 Karl Berry <karl@gnu.org>
38312 * config/config.rpath: update from gettext.
38314 2003-05-28 Paul Eggert <eggert@twinsun.com>
38316 Assume the headers required for C89 freestanding compilers.
38317 * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
38318 * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
38319 * m4/human.m4 (gl_HUMAN): Likewise.
38320 * m4/pathmax.m4 (gl_PATHMAX): Likewise.
38321 * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
38322 * m4/userspec.m4 (gl_USERSPEC): Likewise.
38323 * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
38324 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
38325 * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
38327 2003-05-28 Paul Eggert <eggert@twinsun.com>
38329 Assume the headers required for C89 freestanding compilers.
38330 * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
38331 lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
38332 lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
38333 * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
38334 lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
38335 define, since <limits.h> is guaranteed to do that.
38336 * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
38337 * lib/exclude.c: Include <stdbool.h> unconditionally.
38338 * lib/tempname.c: Include <stddef.h> unconditionally.
38339 * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
38340 * lib/modechange.c, rpmatch.c (NULL): Don't define, since
38341 <stddef.h> does that.
38342 * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
38343 * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
38344 * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
38346 * lib/xstrtol.c: Likewise.
38347 * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
38348 * lib/savedir.c: Include <stddef.h> instead of defining NULL.
38350 * lib/addext.c (addext): Use assignment rather than cast, to avoid
38351 warnings on some platforms.
38353 * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
38356 2003-05-26 Jim Meyering <jim@meyering.net>
38358 Merge in a change from coreutils:
38359 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
38360 that is guaranteed to be `no'. Use `no_such_member' to indicate
38361 that condition, rather than `-1' which is slightly misleading.
38362 Change the name of the cache variable to have the gl_ prefix.
38363 Prompted by a patch from Richard Dawe for DJGPP.
38365 2003-05-24 Karl Berry <karl@gnu.org>
38367 * config/config.guess: update from prep.
38369 2003-05-22 Karl Berry <karl@gnu.org>
38371 * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
38373 2003-05-20 Karl Berry <karl@gnu.org>
38375 * config/config.guess: update from prep.
38377 2003-05-18 Karl Berry <karl@gnu.org>
38379 * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
38380 might actually be set by the user.
38382 * config/depcomp, install-sh, mdate-sh: update from automake.
38384 2003-05-17 Bruno Haible <bruno@clisp.org>
38386 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
38387 invalid expansion for AC_EGREP_CPP.
38388 * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
38389 * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
38390 Suggested by Akim Demaille <akim@epita.fr> in
38391 http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
38393 2003-05-12 Jim Meyering <jim@meyering.net>
38395 * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
38396 the space-padded-by-default conversion specifiers, %e, %k, %l.
38398 2003-05-12 Bruno Haible <bruno@clisp.org>
38400 * lib/linebreak.c (iconv_string_length): Don't return -1 just because
38401 the string is longer than 4 KB.
38403 2003-05-11 Karl Berry <karl@gnu.org>
38405 * config/config.{guess,sub}: update from prep.
38407 2003-05-09 Bruno Haible <bruno@clisp.org>
38409 * modules/error: Add m4/strerror_r.m4 to file list.
38411 2003-05-03 Bruno Haible <bruno@clisp.org>
38413 Upgrade to Unicode-4.0.
38414 * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
38415 U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
38416 U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
38417 U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
38418 from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
38419 (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
38420 of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
38421 Change width of U+E0100..U+E01EF from 1 to 0.
38423 2003-04-25 Jim Meyering <jim@meyering.net>
38425 * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
38426 of type size_t, not int.
38428 2003-04-25 Bruno Haible <bruno@clisp.org>
38430 * lib/copy-file.c: Include <stddef.h>, for size_t.
38432 2003-04-21 Paul Eggert <eggert@twinsun.com>
38434 * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
38435 code which expansion is under static control. Patch imported from
38436 Akim Demaille's patch to Bison; see
38437 <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
38439 2003-04-14 Bruno Haible <bruno@clisp.org>
38441 * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
38443 2003-04-11 Jim Meyering <jim@meyering.net>
38445 Merge changes from Coreutils.
38447 2003-03-22 Jim Meyering <jim@meyering.net>
38449 * lib/strftime.c (widen): Cast alloca return value to proper type.
38451 2003-01-19 Ulrich Drepper <drepper@redhat.com>
38454 * lib/strftime.c (my_strftime): Handle very large width
38455 specifications for numeric values correctly. Improve checks for
38458 2003-01-19 Jim Meyering <jim@meyering.net>
38460 * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
38462 (nl_get_alt_digit) [! defined my_strftime]: Define.
38463 (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
38464 _nl_get_alt_digit and _nl_get_walt_digit.
38466 * lib/strftime.c (my_strftime): Merge in locale-related changes from
38467 libc. These changes have no effect outside of _LIBC.
38469 2003-04-10 Bruno Haible <bruno@clisp.org>
38471 * modules/findprog: New file.
38472 * MODULES.html.sh (func_all_modules): Add it.
38474 2003-04-10 Bruno Haible <bruno@clisp.org>
38476 * m4/findprog.m4: New file.
38477 * m4/eaccess.m4: New file.
38479 2003-04-10 Bruno Haible <bruno@clisp.org>
38481 * lib/findprog.h: New file, from GNU gettext.
38482 * lib/findprog.c: New file, from GNU gettext.
38484 2003-04-05 Jim Meyering <jim@meyering.net>
38486 Merge changes from Coreutils.
38488 * lib/exclude.h (PARAMS): Remove definition and uses.
38489 * lib/exclude.c: Remove uses of `PARAMS'.
38491 * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
38492 Add test-cases for DOS filenames. Declare program_name.
38493 (main): Set up program_name. Patch by Rich Dawe.
38495 * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
38497 Use mntctl's return value to drive the entry-processing loop, since
38498 we can't rely on the value of the vmt_length member in the last
38499 entry. On some systems doing so could result in exhausting
38500 virtual memory. Based in part on a patch from Mike Jetzer.
38502 2003-04-04 Bruno Haible <bruno@clisp.org>
38504 * modules/linebreak: New file.
38505 * MODULES.html.sh (func_all_modules): Add it.
38507 2003-04-04 Bruno Haible <bruno@clisp.org>
38509 * m4/linebreak.m4: New file.
38511 2003-04-04 Bruno Haible <bruno@clisp.org>
38513 * lib/linebreak.h: New file, from GNU gettext.
38514 * lib/linebreak.c: New file, from GNU gettext with slight
38516 * lib/lbrkprop.h: New file, from GNU gettext.
38518 2003-04-03 Bruno Haible <bruno@clisp.org>
38520 * modules/utf8-ucs4: New file.
38521 * modules/utf16-ucs4: New file.
38522 * modules/ucs4-utf8: New file.
38523 * modules/ucs4-utf16: New file.
38524 * MODULES.html.sh (func_all_modules): Add them.
38526 2003-04-03 Bruno Haible <bruno@clisp.org>
38528 * m4/utf-ucs4.m4: New file.
38529 * m4/ucs4-utf.m4: New file.
38531 2003-04-03 Bruno Haible <bruno@clisp.org>
38533 * lib/utf8-ucs4.h: New file, from GNU gettext.
38534 * lib/utf16-ucs4.h: New file, from GNU gettext.
38535 * lib/ucs4-utf8.h: New file, from GNU gettext.
38536 * lib/ucs4-utf16.h: New file, from GNU gettext.
38538 2003-04-02 Bruno Haible <bruno@clisp.org>
38540 * modules/binary-io: New file.
38541 * MODULES.html.sh (func_all_modules): Add it.
38543 2003-04-02 Bruno Haible <bruno@clisp.org>
38545 * lib/binary-io.h: New file, from GNU gettext.
38547 2003-04-01 Bruno Haible <bruno@clisp.org>
38549 * modules/pathname: New file.
38550 * MODULES.html.sh (func_all_modules): Add it.
38552 2003-04-01 Bruno Haible <bruno@clisp.org>
38554 * lib/pathname.h: New file, from GNU gettext.
38555 * lib/concatpath.c: New file, from GNU gettext.
38557 2003-03-30 Bruno Haible <bruno@clisp.org>
38559 * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
38561 2003-03-30 Bruno Haible <bruno@clisp.org>
38563 * lib/copy-file.c (copy_file_preserving): Don't set owner if the
38564 function chown() doesn't exist.
38566 2003-03-28 Bruno Haible <bruno@clisp.org>
38568 * modules/copy-file: New file.
38569 * MODULES.html.sh (func_all_modules): Add it.
38571 2003-03-28 Bruno Haible <bruno@clisp.org>
38573 * m4/copy-file.m4: New file.
38575 2003-03-28 Bruno Haible <bruno@clisp.org>
38577 * lib/copy-file.h: New file, from GNU gettext.
38578 * lib/copy-file.c: New file, from GNU gettext.
38580 2003-03-18 Jim Meyering <jim@meyering.net>
38582 * lib/quote.c (quote_n): Fix typo in comment.
38584 2003-03-18 Bruno Haible <bruno@clisp.org>
38586 * m4/onceonly.m4: Use m4_defn instead of defn, for better error
38588 * m4/onceonly_2_57.m4: Likewise.
38590 2003-03-17 Bruno Haible <bruno@clisp.org>
38592 * m4/onceonly.m4: Require autoconf 2.54 or newer.
38593 (m4_quote): Remove macro.
38594 * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
38596 2003-03-14 Jim Meyering <jim@meyering.net>
38598 Merge changes from Coreutils.
38599 * lib/obstack.h (obstack_object_size): Declare temporary, __o,
38600 to be const, in order to avoid warnings.
38601 (obstack_room): Likewise.
38602 (obstack_empty_p): Likewise.
38604 2003-03-14 Bruno Haible <bruno@clisp.org>
38606 * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
38607 AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
38609 2003-03-13 Paul Eggert <eggert@twinsun.com>
38611 Merge changes from Bison.
38612 * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
38613 (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
38614 when compiling Bison 1.875's `bitset bset = obstack_alloc
38615 (bobstack, bytes);'. Problem reported by Nelson H. F. Beebe.
38616 * lib/hash.c: Include <stdbool.h> unconditionally.
38618 2003-03-13 Paul Eggert <eggert@twinsun.com>
38620 * m4/onceonly.m4 (m4_quote): New macro.
38621 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
38622 Quote AC_FOREACH variable-expansions properly.
38624 2003-03-13 Paul Eggert <eggert@twinsun.com>
38626 * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
38628 2003-03-09 Paul Eggert <eggert@twinsun.com>
38630 * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
38631 Reported by Bruce Becker; see:
38632 http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
38634 2003-03-03 Paul Eggert <eggert@twinsun.com>
38635 Bruno Haible <bruno@clisp.org>
38637 * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
38638 Reported by John Hughes, see
38639 http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
38641 2003-02-20 Bruno Haible <bruno@clisp.org>
38643 * MODULES.html.sh (func_all_modules): Add poll.
38645 2003-02-19 Paolo Bonzini <bonzini@gnu.org>
38647 * modules/poll: New file.
38649 2003-02-19 Paolo Bonzini <bonzini@gnu.org>
38651 * lib/poll_.h: New file.
38652 * lib/poll.c: New file.
38654 2003-02-19 Paolo Bonzini <bonzini@gnu.org>
38656 * m4/poll.m4: New file.
38658 2003-02-18 Paolo Bonzini <bonzini@gnu.org>
38660 * modules/mathl: New file.
38662 2003-02-18 Paolo Bonzini <bonzini@gnu.org>
38664 * lib/mathl.h: New file.
38665 * lib/acosl.c: New file.
38666 * lib/asinl.c: New file.
38667 * lib/atanl.c: New file.
38668 * lib/ceill.c: New file.
38669 * lib/cosl.c: New file.
38670 * lib/expl.c: New file.
38671 * lib/floorl.c: New file.
38672 * lib/frexpl.c: New file.
38673 * lib/ldexpl.c: New file.
38674 * lib/logl.c: New file.
38675 * lib/sincosl.c: New file.
38676 * lib/sinl.c: New file.
38677 * lib/sqrtl.c: New file.
38678 * lib/tanl.c: New file.
38679 * lib/trigl.c: New file.
38680 * lib/trigl.h: New file.
38682 2003-02-18 Paolo Bonzini <bonzini@gnu.org>
38684 * m4/mathl.m4: New file.
38686 2003-02-18 Bruno Haible <bruno@clisp.org>
38688 * MODULES.html.sh (func_all_modules): Add mathl.
38690 2003-02-17 Bruno Haible <bruno@clisp.org>
38692 * modules/mkdtemp: New module.
38693 * MODULES.html.sh (func_all_modules): Add it.
38695 2003-02-17 Bruno Haible <bruno@clisp.org>
38697 * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
38699 2003-02-17 Bruno Haible <bruno@clisp.org>
38701 * lib/mkdtemp.h: New file, from GNU gettext.
38702 * lib/mkdtemp.c: New file, from GNU gettext.
38704 2003-02-02 Jim Meyering <jim@meyering.net>
38706 * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
38709 2003-01-31 Bruno Haible <bruno@clisp.org>
38711 * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
38713 * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
38715 * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
38717 * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
38720 2003-01-31 Bruno Haible <bruno@clisp.org>
38722 * lib/rename.c: #undef rename before defining rpl_rename.
38723 * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
38725 2003-01-30 Bruno Haible <bruno@clisp.org>
38727 * modules/vasnprintf, modules/vasprintf: New modules.
38728 * MODULES.html.sh (func_all_modules): Add them.
38730 2003-01-30 Bruno Haible <bruno@clisp.org>
38732 * m4/signed.m4: New file, from GNU gettext.
38733 * m4/longdouble.m4: New file, from GNU gettext.
38734 * m4/wchar_t.m4: New file, from GNU gettext.
38735 * m4/wint_t.m4: New file, from GNU gettext.
38736 * m4/vasnprintf.m4: New file.
38737 * m4/vasprintf.m4: New file.
38739 2003-01-30 Bruno Haible <bruno@clisp.org>
38741 * lib/printf-args.h: New file, from GNU gettext.
38742 * lib/printf-args.c: New file, from GNU gettext.
38743 * lib/printf-parse.h: New file, from GNU gettext.
38744 * lib/printf-parse.c: New file, from GNU gettext.
38745 * lib/vasnprintf.h: New file, from GNU gettext.
38746 * lib/vasnprintf.c: New file, from GNU gettext.
38747 * lib/asnprintf.c: New file, from GNU gettext.
38748 * lib/vasprintf.h: New file, from GNU gettext with modifications.
38749 * lib/vasprintf.c: New file, from GNU gettext.
38750 * lib/asprintf.c: New file, from GNU gettext.
38752 2003-01-29 Bruno Haible <bruno@clisp.org>
38754 * modules/stpncpy: New module.
38755 * MODULES.html.sh (func_all_modules): Add it.
38757 2003-01-29 Bruno Haible <bruno@clisp.org>
38759 * m4/stpncpy.m4: New file.
38761 2003-01-29 Bruno Haible <bruno@clisp.org>
38763 * lib/stpncpy.h: New file, from GNU gettext with modifications.
38764 * lib/stpncpy.c: New file, from GNU gettext with modifications.
38766 2003-01-28 Bruno Haible <bruno@clisp.org>
38768 * modules/c-ctype: New module.
38769 * MODULES.html.sh (func_all_modules): Add it.
38771 2003-01-28 Bruno Haible <bruno@clisp.org>
38773 * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
38775 * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
38778 2003-01-27 Bruno Haible <bruno@clisp.org>
38780 * modules/xsetenv: New module.
38781 * MODULES.html.sh (func_all_modules): Add it.
38783 2003-01-27 Bruno Haible <bruno@clisp.org>
38785 * lib/xsetenv.h: New file, from GNU gettext.
38786 * lib/xsetenv.c: New file, from GNU gettext.
38788 2003-01-23 Jim Meyering <jim@meyering.net>
38790 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
38791 from working on systems without dirfd (at least Irix and OSF1/Tru64).
38793 2003-01-23 Bruno Haible <bruno@clisp.org>
38795 * modules/minmax: New module.
38796 * MODULES.html.sh (func_all_modules): Add it.
38798 2003-01-23 Bruno Haible <bruno@clisp.org>
38800 * lib/minmax.h: New file, from GNU gettext, with comments from Paul
38803 2003-01-22 Bruno Haible <bruno@clisp.org>
38805 * modules/exit: New module.
38806 * MODULES.html.sh (func_all_modules): Add it.
38808 2003-01-22 Bruno Haible <bruno@clisp.org>
38810 * lib/exit.h: New file, from GNU gettext.
38812 2003-01-19 Bruno Haible <bruno@clisp.org>
38814 * gnulib-tool: Recognize option --extract-maintainer.
38815 (func_get_maintainer): New function.
38816 * modules/*: Add Maintainer entry.
38818 2003-01-16 Jim Meyering <jim@meyering.net>
38820 * m4/regex.m4: The `regex' struct is both input and output.
38821 Initialize it before each use. Patch by Tim Waugh.
38823 2003-01-16 Bruno Haible <bruno@clisp.org>
38825 * MODULES.html.sh: Add a table of contents. Add the module name as
38826 leftmost column. Add hyperlinks.
38828 2003-01-15 Bruno Haible <bruno@clisp.org>
38830 * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
38832 2003-01-15 Bruno Haible <bruno@clisp.org>
38834 * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
38835 * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
38838 2003-01-15 Bruno Haible <bruno@clisp.org>
38840 * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
38842 2003-01-15 Bruno Haible <bruno@clisp.org>
38844 * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
38845 * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
38847 2003-01-14 Jim Meyering <jim@meyering.net>
38849 * lib/same.c (same_name): Tweak a comment.
38851 2003-01-14 Bruno Haible <bruno@clisp.org>
38853 * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
38854 when a string comparison is sufficient.
38856 2003-01-14 Bruno Haible <bruno@clisp.org>
38858 * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
38861 2003-01-14 Bruno Haible <bruno@clisp.org>
38863 * lib/hash-pjw.c: Add comment about low quality of this function.
38865 2003-01-13 Bruno Haible <bruno@clisp.org>
38867 * modules/stpcpy: Distribute lib/stpcpy.h.
38868 * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
38870 2003-01-13 Bruno Haible <bruno@clisp.org>
38872 * modules/*: Add a description.
38873 * modules/strpbrk: Fix Makefile.am snippet.
38874 * modules/strtoimax: Fix dependencies.
38875 * modules/strtoumax: Likewise.
38877 2003-01-13 Bruno Haible <bruno@clisp.org>
38879 * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
38880 * modules/alloca (Makefile.am): All object files depend on alloca.h.
38881 * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
38883 2003-01-13 Bruno Haible <bruno@clisp.org>
38885 * gnulib-tool (func_create_testdir): Store config/* files in the main
38887 * config.rpath: Move to ...
38888 * config/config.rpath: ... here.
38889 * modules/gettext: Contains config/config.rpath, not config.rpath.
38890 * modules/iconv: Likewise.
38892 2003-01-12 Paul Eggert <eggert@twinsun.com>
38894 Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
38895 to avoid collisions with libcurses and libreadline.
38897 * m4/getstr.m4: Remove.
38898 * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
38900 2003-01-12 Paul Eggert <eggert@twinsun.com>
38902 Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
38903 to avoid collisions with libcurses and libreadline.
38905 * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
38906 * lib/getstr.h, getstr.c: Remove.
38907 * lib/getline.c: Include "getline.h", to check interface.
38908 Move body of old getstr.c here: this defines MIN_CHUNK and
38909 declares getdelim2, which is renamed from getstr.
38910 (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
38912 * lib/linebuffer.c (readlinebuffer): Renamed from readline.
38914 * lib/linebuffer.h: Likewise.
38915 (readline): Remove backward-compatibility macro.
38917 2003-01-12 Paul Eggert <eggert@twinsun.com>
38919 Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
38920 to avoid collisions with libcurses and libreadline.
38922 * MODULES.html.sh: Remove getstr.
38923 * modules/getline: Depend on unlocked-io, not getstr.
38925 2003-01-12 Jim Meyering <jim@meyering.net>
38927 * lib/makepath.c: Don't test HAVE_ERRNO_H. It's not necessary.
38929 2003-01-10 Bruno Haible <bruno@clisp.org>
38931 * modules/alloca: Change Makefile.am requirements. Simplify Include
38932 requirements. Add lib/alloca_.h to file list.
38934 2003-01-10 Bruno Haible <bruno@clisp.org>
38936 * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
38938 2003-01-10 Bruno Haible <bruno@clisp.org>
38940 * lib/alloca_.h: New file.
38941 * lib/getdate.y: Unconditionally include alloca.h.
38942 * lib/makepath.c: Likewise.
38943 * lib/setenv.c: Likewise.
38944 * lib/userspec.c: Likewise.
38946 2003-01-09 Karl Berry <karl@gnu.org>
38948 * MODULES.html.sh: include `dirname $0` in PATH, to find
38951 2003-01-09 Bruno Haible <bruno@clisp.org>
38953 * modules/stdbool: Change configure.ac, Makefile.am requirements.
38954 Simplify Include requirements. Add lib/stdbool.h.in to file list.
38956 2003-01-09 Bruno Haible <bruno@clisp.org>
38958 * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
38960 2003-01-09 Bruno Haible <bruno@clisp.org>
38962 * lib/stdbool.h.in: New file.
38964 2003-01-09 Bruno Haible <bruno@clisp.org>
38966 * gnulib-tool (func_all_modules): Ignore files ending in ~.
38967 * MODULES.html.sh: Likewise.
38969 2003-01-08 Jim Meyering <jim@meyering.net>
38971 * lib/full-write.c: Undefine and define-away `const' after inclusion
38972 of errno.h, not before. Suggestion from Bruno Haible.
38974 2003-01-08 Bruno Haible <bruno@clisp.org>
38976 * modules/full-read: Depend on full-write.
38978 2003-01-08 Bruno Haible <bruno@clisp.org>
38980 * lib/safe-read.c: Include specification header first, to ensure its
38982 * lib/full-write.c: Likewise.
38984 2003-01-07 Jim Meyering <jim@meyering.net>
38986 * lib/full-write.c: Rework so that it may serve to define full_read,
38988 * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
38990 2003-01-07 Bruno Haible <bruno@clisp.org>
38992 * lib/strtoimax.c: Include <stdint.h> as an alternative to
38994 * lib/xstrtol.h: Likewise.
38995 * lib/xstrtoimax.c: Likewise.
38996 * lib/xstrtoumax.c: Likewise.
38997 * lib/human.h: Likewise.
38999 * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
39000 on systems that have <inttypes.h> but not <stdint.h>.
39002 2003-01-07 Bruno Haible <bruno@clisp.org>
39004 * MODULES.html.sh: Add copyright notice.
39005 (missed_files): Omit CVS directory entries.
39006 (func_module): Make it work with sed-3.02.
39007 * MODULES.txt: Remove file.
39009 2003-01-06 Jim Meyering <jim@meyering.net>
39011 * lib/version-etc.c: Update year in translatable copyright string.
39013 2003-01-03 Karl Berry <karl@gnu.org>
39015 * config/config.{guess,sub}: update from prep.
39017 2003-01-02 Karl Berry <karl@gnu.org>
39019 * doc/COPYING.DOC: belatedly updated to 1.2.
39021 2003-01-01 Karl Berry <karl@gnu.org>
39023 * gnulib-tool (func_verify_module): report module name $module in
39024 error message, not $1.
39025 * gnulib-tool (create-testdir): don't complain if destdir couldn't
39026 be created, only if it doesn't exist.
39027 * gnulib-tool (last_checkin_date): don't expand the $Date here.
39029 2002-12-31 Paul Eggert <eggert@twinsun.com>
39031 * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
39033 2002-12-31 Paul Eggert <eggert@twinsun.com>
39035 * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
39036 memcmp if strcoll doesn't work.
39038 2002-12-31 Bruno Haible <bruno@clisp.org>
39040 * lib/utime.c (utime_null): No need to call ftruncate if the file was
39043 2002-12-31 Bruno Haible <bruno@clisp.org>
39045 * lib/memcoll.c (STRCOLL): New macro.
39048 2002-12-31 Bruno Haible <bruno@clisp.org>
39050 * lib/localcharset.h: New file.
39051 * lib/localcharset.c: Include it.
39052 * lib/unicodeio.c: Likewise.
39054 2002-12-31 Bruno Haible <bruno@clisp.org>
39056 * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
39057 * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
39059 2002-12-31 Bruno Haible <bruno@clisp.org>
39061 * lib/getline.h: Include <stddef.h>, for size_t.
39063 * lib/unicodeio.h: Include <stddef.h>, for size_t.
39064 * lib/unicodeio.c: Don't include <stddef.h>.
39066 2002-12-31 Bruno Haible <bruno@clisp.org>
39068 * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
39071 2002-12-24 Karl Berry <karl@gnu.org>
39073 * config/config.guess: update from prep.
39075 2002-12-24 Bruno Haible <bruno@clisp.org>
39077 General infrasructure.
39078 * m4/README: Rewritten.
39079 * m4/onceonly.m4: New file.
39080 * m4/onceonly_2_57.m4: New file.
39083 * m4/atexit.m4: New file.
39086 * m4/strtod.m4: New file.
39089 * m4/strtol.m4: New file.
39092 * m4/strtoul.m4: New file.
39095 * m4/memchr.m4: New file.
39098 * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
39099 (jm_FUNC_MEMCMP): Invoke it.
39102 * m4/memcpy.m4: New file.
39105 * m4/memmove.m4: New file.
39108 * m4/memset.m4: New file.
39111 * m4/strcspn.m4: New file.
39114 * m4/strpbrk.m4: New file.
39117 * m4/strstr.m4: New file.
39120 * m4/strerror.m4: New file.
39123 * m4/mktime.m4: Renamed from jm-mktime.m4.
39124 (gl_PREREQ_MKTIME): New macro.
39125 (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
39128 * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
39129 (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
39130 Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
39133 * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
39134 (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
39135 Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
39138 * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
39139 * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
39140 Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
39142 (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
39145 * m4/xalloc.m4: New file.
39148 * m4/alloca.m4: New file.
39151 * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
39152 (jm_FUNC_PUTENV): Invoke it.
39155 * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
39156 (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
39157 when invoked twice.
39158 (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
39162 * m4/memrchr.m4: New file.
39165 * m4/stpcpy.m4: New file.
39168 * m4/strcase.m4: New file.
39171 * m4/strdup.m4: New file.
39174 * m4/strnlen.m4: New file.
39177 * m4/strndup.m4: New file.
39180 * m4/xstrtod.m4: New file.
39183 * m4/xstrtol.m4: New file.
39186 * m4/getdate.m4: New file.
39188 Module unlocked-io.
39189 * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
39190 (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
39191 * m4/jm-glibc-io.m4n: Remove file.
39193 Module long-options.
39194 * m4/long-options.m4: New file.
39197 * m4/md5.m4: New file.
39200 * m4/sha.m4: New file.
39203 * m4/getstr.m4: New file.
39206 * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
39207 (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
39208 <sys/types.h>, for size_t. Use the function name gnu_getline, not
39209 simply getline. Infoke gl_PREREQ_GETLINE.
39212 * m4/obstack.m4: New file.
39215 * m4/hash.m4: New file.
39218 * m4/readtokens.m4: New file.
39221 * m4/strverscmp.m4: New file.
39224 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
39228 * m4/strtoll.m4: New file.
39231 * m4/strtoull.m4: New file.
39234 * m4/strtoimax.m4: New file.
39237 * m4/strtoumax.m4: New file.
39240 * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
39241 jm_AC_PREREQ_XSTRTOIMAX.
39242 Moved the strtol prerequisites to strtol.m4.
39243 Moved the strtoll prerequisites to strtoll.m4.
39244 Moved the strtoimax prerequisites to strtoimax.m4.
39247 * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
39248 jm_AC_PREREQ_XSTRTOUMAX.
39249 Moved the strtoul prerequisites to strtoul.m4.
39250 Moved the strtoull prerequisites to strtoull.m4.
39251 Moved the strtoumax prerequisites to strtoumax.m4.
39254 * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
39255 (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
39258 * m4/dup2.m4: New file.
39261 * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
39262 (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
39265 * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
39266 (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
39268 Module gettimeofday.
39269 * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
39270 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
39271 gl_PREREQ_GETTIMEOFDAY.
39274 * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
39275 (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
39278 * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
39279 (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
39280 jm_AC_TYPE_UINTMAX_T.
39281 (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
39284 * m4/stat.m4 (gl_PREREQ_STAT): New macro.
39285 (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
39288 * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
39289 (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
39292 * m4/timespec.m4 (gl_TIMESPEC): New macro.
39293 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
39294 * m4/st_mtim.m4: Indentation.
39297 * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
39298 (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
39299 gl_PREREQ_NANOSLEEP.
39302 * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
39303 (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
39304 (gl_REGEX): New macro.
39307 * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
39308 (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
39311 * m4/rmdir.m4: New file.
39314 * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
39315 * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
39316 (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
39319 * m4/dirname.m4: New file.
39322 * m4/getopt.m4: New file.
39324 Module unistd-safer.
39325 * m4/unistd-safer.m4: New file.
39328 * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
39330 (gl_PREREQ_FNMATCH_EXTRA): New macro.
39331 (gl_FUNC_FNMATCH_POSIX): New macro.
39332 (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
39333 gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
39337 * m4/exclude.m4: New file.
39340 * m4/human.m4: New file.
39346 * m4/backupfile.m4: New file.
39347 * m4/d-ino.m4: Indentation.
39350 * m4/fsusage.m4 (gl_FSUSAGE): New macro.
39351 (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
39352 (gl_PREREQ_FSUSAGE_EXTRA): New macro.
39355 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
39359 * m4/euidaccess.m4: New file.
39362 * m4/file-type.m4: New file.
39365 * m4/fileblocks.m4: New file.
39368 * m4/filemode.m4: New file.
39371 * m4/isdir.m4: New file.
39374 * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
39375 (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
39378 * m4/makepath.m4: New file.
39381 * m4/modechange.m4: New file.
39384 * m4/mountlist.m4: New file.
39385 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
39388 Module path-concat.
39389 * m4/path-concat.m4: New file.
39392 * m4/pathmax.m4: New file.
39395 * m4/same.m4: New file.
39398 * m4/save-cwd.m4: New file.
39401 * m4/savedir.m4: New file.
39404 * m4/xgetcwd.m4: New file.
39405 * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
39408 * m4/xreadlink.m4: New file.
39411 * m4/safe-read.m4: New file.
39414 * m4/safe-write.m4: New file.
39417 * m4/closeout.m4: New file.
39419 Module stdio-safer.
39420 * m4/stdio-safer.m4: New file.
39423 * m4/getpass.m4: New file.
39426 * m4/getugroups.m4: New file.
39428 Module group-member.
39429 * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
39430 (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
39433 * m4/idcache.m4: New file.
39436 * m4/userspec.m4: New file.
39439 * m4/clock_time.m4: New file.
39440 * m4/gettime.m4: New file.
39443 * m4/settime.m4: New file.
39446 * m4/posixtm.m4: New file.
39448 Module gethostname.
39449 * m4/gethostname.m4: New file.
39452 * m4/canon-host.m4: New file.
39455 * m4/codeset.m4: New file, from gettext-0.11.5.
39456 * m4/gettext.m4: New file, from gettext-0.11.5.
39457 * m4/glibc21.m4: New file, from gettext-0.11.5.
39458 * m4/iconv.m4: New file, from gettext-0.11.5.
39459 * m4/intdiv0.m4: New file, from gettext-0.11.5.
39460 * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
39461 * m4/inttypes.m4: New file, from gettext-0.11.5.
39462 * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
39463 * m4/isc-posix.m4: New file, from gettext-0.11.5.
39464 * m4/lcmessage.m4: New file, from gettext-0.11.5.
39465 * m4/lib-ld.m4: New file, from gettext-0.11.5.
39466 * m4/lib-link.m4: New file, from gettext-0.11.5.
39467 * m4/lib-prefix.m4: New file, from gettext-0.11.5.
39468 * m4/progtest.m4: New file, from gettext-0.11.5.
39469 * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
39470 * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
39471 * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
39473 Module localcharset.
39474 * m4/localcharset.m4: New file.
39476 Module hard-locale.
39477 * m4/hard-locale.m4: New file.
39480 * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
39482 * m4/mbrtowc.m4: Add comment.
39485 * m4/memcasecmp.m4: New file.
39488 * m4/memcoll.m4: New file.
39491 * m4/unicodeio.m4: New file.
39494 * m4/rpmatch.m4: New file.
39497 * m4/yesno.m4: New file.
39500 * m4/exitfail.m4: New file.
39503 * m4/c-stack.m4 (gl_C_STACK): New macro.
39504 (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
39507 * m4/error.m4 (gl_ERROR): New macro.
39508 (jm_PREREQ_ERROR): Use onceonly macros.
39511 * m4/fatal.m4: New file.
39514 * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
39515 (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
39517 Module getpagesize.
39518 * m4/getpagesize.m4: New file.
39520 Module getusershell.
39521 * m4/getusershell.m4: New file.
39524 * m4/physmem.m4: New file.
39527 * m4/posixver.m4: New file.
39530 * m4/quotearg.m4: New file.
39533 * m4/quote.m4: New file.
39536 * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
39539 * m4/sig2str.m4: New file.
39542 * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
39544 * m4/intmax_t.m4: New file.
39545 * m4/d-type.m4: Indentation.
39546 * m4/jm-macros.m4: Update.
39547 * m4/prereq.m4 (jm_PREREQ): Update.
39548 (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
39549 (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
39550 (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
39551 (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
39552 (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
39553 (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
39554 (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
39555 (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
39556 (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
39557 (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
39558 (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
39559 (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
39560 (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
39561 (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
39562 (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
39563 (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
39564 (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
39565 (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
39566 * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
39568 2002-12-24 Bruno Haible <bruno@clisp.org>
39570 * MODULES.txt: Update according to m4/ changes.
39573 * config.rpath: New file, from gettext-0.11.5.
39575 * modules/*: New module descriptions.
39576 * gnulib-tool: New file.
39577 * MODULES.html.sh: New file.
39579 2002-12-21 Karl Berry <karl@gnu.org>
39581 * doc/fdl.texi: update to version 1.2.
39583 2002-12-19 Karl Berry <karl@gnu.org>
39585 * config/config.guess: update from prep.
39587 2002-12-18 Bruno Haible <bruno@clisp.org>
39589 * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
39590 * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
39592 2002-12-17 Bruno Haible <bruno@clisp.org>
39594 * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
39595 stdlib.h, string.h.
39597 2002-12-17 Bruno Haible <bruno@clisp.org>
39599 * lib/canon-host.c (strdup): Remove unused declaration.
39601 * lib/fsusage.c: Include full_read.h.
39602 (get_fs_usage): Use full_read instead of safe_read.
39604 * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
39606 2002-12-12 Karl Berry <karl@gnu.org>
39608 * config/config.guess: update from prep.
39610 2002-12-11 Bruno Haible <bruno@clisp.org>
39612 * m4/setenv.m4: New file, from gettext-0.11.5.
39614 2002-12-11 Bruno Haible <bruno@clisp.org>
39616 * lib/setenv.h: Rewritten to cope with systems that have setenv() but
39618 * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
39621 2002-12-11 Bruno Haible <bruno@clisp.org>
39623 * setenv.c (alloca): Fall back to malloc.
39624 (freea): New macro.
39625 (setenv): Use freea() to free memory allocated with alloca().
39627 2002-11-13 Bruno Haible <bruno@clisp.org>
39629 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
39630 function declarations.
39631 * unsetenv.c (unsetenv): Likewise.
39633 2002-03-04 Bruno Haible <bruno@clisp.org>
39635 Portability to AIX 4.3.3.
39636 * unsetenv.c: New file, extracted from setenv.c.
39637 * setenv.c: Move the unsetenv() function to unsetenv.c.
39639 2001-12-20 Bruno Haible <bruno@clisp.org>
39641 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
39642 use malloc instead. For SunOS 4.
39644 2001-12-11 Bruno Haible <bruno@clisp.org>
39646 * setenv.c: Declare alloca.
39647 (compar_fn_t): New typedef.
39648 (KNOWN_VALUE, STORE_VALUE): Use it.
39650 * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
39653 2002-12-10 Paul Eggert <eggert@twinsun.com>
39655 Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
39656 * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
39657 Choose values that are less likely to collide with system fnmatch
39659 * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
39660 defined (e.g., a pure POSIX system).
39661 (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
39662 instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
39664 2002-12-06 Paul Eggert <eggert@twinsun.com>
39666 Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
39667 a pain in practice to deal with generated m4 files. This change
39668 goes together with the 2002-12-04 unlocked-io.h change in ../lib.
39670 * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
39671 and jm-glibc-io.m4, as they are no longer a special case.
39672 * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
39673 kludge and the auto-generation stuff. Check only whether the
39674 functions are declared, not whether they exist, since older hosts
39675 that don't declare the functions can't use the optimization anyway.
39677 2002-12-06 Jim Meyering <jim@meyering.net>
39679 * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
39681 Merge in changes from libc's misc/error.c, in preparation
39682 for the merge of gnulib's changes back into libc.
39684 * lib/error.c (_): Define only if not already defined.
39685 Move definition to follow all #include directives.
39686 Include unlocked-io.h only if !_LIBC.
39687 [_LIBC]: Include <libio/libioP.h>.
39688 [USE_IN_LIBIO]: Include <libio/iolibio.h>
39689 (fflush): Tweak definition to use INTUSE.
39692 2002-12-05 Paul Eggert <eggert@twinsun.com>
39694 * lib/alloca.c [defined emacs]: Include "lisp.h".
39695 (xalloc_die) [defined emacs]: New macro.
39696 (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
39697 [! defined emacs]: Include <xalloc.h>.
39698 (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
39699 (pointer): Typedef to POINTER_TYPE *.
39700 (malloc): Remove decl; we now always use xmalloc.
39701 (alloca): Use old-style definition, since Emacs needs this.
39702 Check for arithmetic overflow when computing combined size.
39704 2002-12-04 Paul Eggert <eggert@twinsun.com>
39706 Do not generate unlocked-io.h automatically, since it's easier to
39707 maintain it by hand.
39709 * lib/unlocked-io.h: New file, from GNU diffutils,
39710 but with proper copyright notice and attribution.
39711 * lib/gen-uio: Remove.
39712 * lib/Makefile.am: Add copyright notice.
39713 (libfetish_a_SOURCES): Add unlocked-io.h.
39714 (BUILT_SOURCES, all-local): Remove unlocked-io.h.
39715 (DISTCLEANFILES, io_functions): Remove macros.
39716 (EXTRA_DIST): Remove gen_uio.
39717 (unlocked-io.h): Remove rule.
39719 2002-12-04 Jim Meyering <jim@meyering.net>
39721 Reflect the fact that stat.c and lstat.c are no longer generated.
39722 * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
39723 (DISTCLEANFILES): Likewise.
39724 (EXTRA_DIST): Likewise.
39725 (all_local): Don't depend on stat.c or lstat.c.
39726 (stat.c, lstat.c): Remove rules.
39727 (EXTRA_DIST): Remove xstat.in.
39729 * lib/xstat.in: Remove file. Contents moved into stat.c.
39730 * lib/stat.c: New file. Contents mostly from xstat.in.
39731 * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
39732 * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
39734 * lib/safe-read.c: Rework so that it may serve to define safe_write,
39736 * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
39738 2002-12-03 Jim Meyering <jim@meyering.net>
39740 * lib/safe-read.c, safe-write.c: Change variable names and comments,
39741 but not semantics, to minimize the differences between these two files.
39742 (safe_read): Change comment to mention SAFE_READ_ERROR.
39744 * lib/safe-read.c (IS_EINTR): Define.
39745 (safe_read): Use IS_EINTR in place of in-function cpp directives.
39747 2002-12-02 Jim Meyering <jim@meyering.net>
39749 * lib/safe-read.c (EINTR): Define.
39750 (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
39751 (INT_MAX): Provide fallback.
39752 (safe_read): Rewrite to iterate IFF the read fails with EINTR.
39754 * lib/safe-read.h (SAFE_READ_ERROR): Define.
39756 2002-12-02 Bruno Haible <bruno@clisp.org>
39758 * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
39759 Define, taken from safe-read.c.
39760 (INT_MAX): Provide fallback.
39761 (safe_write): Rewrite to iterate IFF the write fails with EINTR.
39762 * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
39764 * lib/safe-read.c (EINTR): Remove definition.
39765 (safe_read): Don't use EINTR if it is absent.
39767 2002-12-01 Jim Meyering <jim@meyering.net>
39769 * lib/safe-read.c: (safe_read): Also exit the loop when read returns
39771 (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
39773 2002-11-27 Paul Eggert <eggert@twinsun.com>
39775 * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
39776 hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
39777 with `if (! (value < limit)) abort ();', for readability.
39779 2002-11-26 Karl Berry <karl@gnu.org>
39781 * lib/strdup.c: copy from libc again, with jim's ok.
39782 * lib/.cppi-disable: re-add strdup.c
39784 2002-11-25 Karl Berry <karl@gnu.org>
39786 * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
39787 instead of "strtol.c".
39789 2002-11-25 Karl Berry <karl@gnu.org>
39791 * config/install-sh: update from automake for variable quoting, $0 in
39794 * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
39795 * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
39798 2002-11-25 Jim Meyering <jim@meyering.net>
39800 * lib/mktime.c: Sync from libc, now that it has the latest fix.
39802 2002-11-24 Karl Berry <karl@gnu.org>
39804 * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
39805 regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
39807 2002-11-24 Jim Meyering <jim@meyering.net>
39809 Update from coreutils:
39811 * lib/mktime.c: Merge in changes from libc.
39813 Avoid a link-time failure on some Linux systems.
39814 * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
39816 (__mon_yday): Declare with the STATIC attribute.
39817 (__mktime_internal): Likewise.
39818 Based on a report from Greg Schafer.
39820 2002-11-23 Jim Meyering <jim@meyering.net>
39822 * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
39823 Use `unsigned', not `int', as type of index.
39825 * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
39827 * lib/fsusage.c: Remove unneeded parentheses around operands of
39830 2002-11-22 Paul Eggert <eggert@twinsun.com>
39832 * lib/quotearg.h: Allow multiple inclusion by surrounding with
39833 "#ifndef QUOTEARG_H_". Include <stddef.h>, for size_t,
39834 so that we can be included first.
39835 (PARAMS): Remove; we now assume C89 or later. All uses removed.
39836 * lib/quotearg.c: Include quotearg.h immediately after config.h.
39837 No need to include stddef.h or sys/types.h any more.
39838 Surround local include files with "", not "<>".
39839 Assume HAVE_LIMITS_H unconditionally, as we assume C89.
39840 Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
39841 HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
39842 (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
39843 (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
39844 (ISPRINT): Remove; no longer needed now that we assume C89.
39846 (clone_quoting_options, quotearg_buffer, quotearg_n_options):
39849 (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
39850 quotearg_char): Use SIZE_MAX rather than
39851 (size_t) -1 when we are talking about "infinity".
39853 (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
39855 2002-11-22 Paul Eggert <eggert@twinsun.com>
39857 * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
39858 hint that one should use `if (! x) abort ();' rather than `assert
39859 (x);', and anyway it's one less thing to worry about configuring.
39860 (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
39861 hash_rehash, hash_insert): Use abort rather than assert.
39863 2002-11-22 Bruno Haible <bruno@clisp.org>
39865 * lib/safe-read.h: Assume C89. Add comments.
39866 (safe_read): Change return type to size_t.
39867 * lib/safe-read.c (safe_read): Change return type to size_t. Handle
39868 byte counts > SSIZE_MAX correctly.
39869 * lib/safe-write.h: New file.
39870 * lib/safe-write.c: New file.
39871 * lib/full-read.h: New file.
39872 * lib/full-read.c: New file.
39873 * lib/full-write.h: Assume C89. Add comments.
39874 * lib/full-write.c: Include safe-write.h.
39875 (full_write): Rewritten to use safe_write.
39876 Suggested by Jim Meyering and Paul Eggert.
39878 2002-11-21 Jim Meyering <jim@meyering.net>
39880 * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
39882 Merge in changes from the coreutils.
39884 2002-09-25 Paul Eggert <eggert@twinsun.com>
39885 * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
39887 (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
39888 (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
39889 int. Work more efficiently if X is the same width as uintmax_t.
39890 Do not compare X to -1, to avoid bogus compiler warning.
39891 (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
39892 Don't assume that f_frsize and f_bsize are the same type.
39894 * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
39895 warning on FreeBSD.
39897 * lib/makepath.c (make_path): Restore umask *before* creating the final
39899 (make_path): Minor reformatting.
39901 * lib/xmalloc.c: Adjust to work with new autoconf macros,
39902 AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
39903 HAVE_MALLOC/HAVE_REALLOC.
39905 * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
39906 dummy ones. At least on GNU/Linux systems, `auto' means something
39908 From Michael Stone.
39910 2002-11-21 Bruno Haible <bruno@clisp.org>
39912 Remove case insensitive option matching.
39913 * lib/argmatch.h (argcasematch): Remove declaration.
39914 (ARGCASEMATCH): Remove macro.
39915 (__xargmatch_internal): Remove case_sensitive argument.
39916 (XARGMATCH): Update.
39917 (XARGCASEMATCH): Remove macro.
39918 * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
39919 case_sensitive argument.
39920 (argcasematch): Remove function.
39921 (__xargmatch_internal): Remove case_sensitive argument.
39922 (main): Use XARGMATCH instead of XARGCASEMATCH.
39924 * lib/xmalloc.c: Change compile-time error message. Add comment about
39925 required autoconf version.
39927 2002-11-20 Paul Eggert <eggert@twinsun.com>
39929 Merge argmatch cleanups from Bison. Assume C89.
39931 * lib/argmatch.c: Include config.h here, not in argmatch.h.
39932 Include stdlib.h, for EXIT_FAILURE.
39933 Always include <string.h>, since we assume C89.
39934 (EXIT_FAILURE): Remove pre-C89 bug workaround.
39935 * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
39936 Include <stddef.h> instead, since it's all we need for size_t.
39937 (PARAMS): Remove. All uses removed.
39938 (ARRAY_CARDINALITY): Do not bother to #undef.
39939 (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
39940 ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
39941 Remove unnecessary parentheses.
39942 (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
39943 Insert necessary parentheses.
39944 (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
39945 (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
39947 2002-11-19 Bruno Haible <bruno@clisp.org>
39949 * lib/mbswidth.c: Include mbswidth.h right at the beginning.
39950 * lib/mbswidth.h: Include <stddef.h>, for size_t.
39952 * lib/mbswidth.h (PARAMS): Remove macro.
39953 (mbswidth, mbsnwidth): Use ANSI C function declarations.
39954 * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
39956 * lib/gcd.h (PARAMS): Remove macro.
39957 (gcd): Use ANSI C function declarations.
39958 * lib/gcd.c (gcd): Likewise.
39960 2002-11-15 Bruno Haible <bruno@clisp.org>
39962 * lib/strcspn.c: Include <stddef.h>.
39963 (strcspn): Use ANSI C function declaration. Change return type to
39965 * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
39966 (strpbrk): Use NULL.
39967 * lib/strpbrk.h (PARAMS): Remove macro.
39968 (strpbrk): Use ANSI C function declaration.
39969 * lib/strstr.c: Don't include <sys/types.h>.
39970 * lib/strstr.h (PARAMS): Remove macro.
39971 (strstr): Use ANSI C function declarations.
39973 2002-11-14 Karl Berry <karl@gnu.org>
39975 * config/mkinstalldirs: `do' on separate line, instead of
39978 2002-11-06 Bruno Haible <bruno@clisp.org>
39980 * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
39981 * lib/gcd.c (gcd): Likewise.
39983 2002-11-05 Bruno Haible <bruno@clisp.org>
39985 * lib/gcd.h: New file, from gettext-0.11.5.
39986 * lib/gcd.c: New file, from gettext-0.11.5.
39988 2002-11-05 Bruno Haible <bruno@clisp.org>
39990 * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
39991 * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
39992 * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
39993 * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
39995 * lib/argmatch.c: Include gettext.h instead of <locale.h> and
39997 * lib/makepath.c: Include gettext.h instead of <locale.h> and
40000 * lib/closeout.c: Include gettext.h instead of <libintl.h>.
40001 * lib/human.c: Include gettext.h instead of <libintl.h>.
40002 * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
40003 * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
40004 * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
40005 * lib/userspec.c: Include gettext.h instead of <libintl.h>.
40006 * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
40007 * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
40008 (textdomain): Remove definition.
40009 * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
40011 * lib/long-options.c: Remove include of <libintl.h> and definition of
40013 * lib/same.c: Remove include of <libintl.h> and definition of _.
40015 2002-11-04 Owen Taylor <otaylor@redhat.com>
40017 * lib/config.charset: A few additions for Solaris.
40019 2002-11-04 Bruno Haible <haible@clisp.cons.org>
40021 Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
40022 * lib/localcharset.c (locale_charset): Declare as extern "C".
40024 2002-11-04 Bruno Haible <haible@clisp.cons.org>
40026 * lib/config.charset: msdos in uk_UA uses CP1125.
40028 2002-11-04 Bruno Haible <bruno@clisp.org>
40030 * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
40031 * lib/strcase.h: New file, from GNU gettext-0.11.5.
40032 * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
40033 * lib/strstr.h: New file, from GNU gettext-0.11.5.
40034 * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
40036 2002-11-04 Bruno Haible <bruno@clisp.org>
40038 * lib/localcharset.c (locale_charset): Don't return an empty string.
40040 2002-11-04 Bruno Haible <bruno@clisp.org>
40042 * lib/localcharset.c (get_charset_aliases): Add more Windows specific
40045 2002-11-04 Bruno Haible <bruno@clisp.org>
40047 * lib/config.charset: Update for newest glibc. Add canonical names
40048 ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
40050 2002-11-04 Bruno Haible <bruno@clisp.org>
40052 * lib/config.charset: Add support for NetBSD.
40054 2002-11-04 Bruno Haible <bruno@clisp.org>
40056 * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
40058 2002-11-01 Bruno Haible <bruno@clisp.org>
40060 * configure.in: Add AC_CONFIG_AUX_DIR call.
40061 (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
40063 * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
40065 2002-09-28 Karl Berry <karl@gnu.org>
40067 * config/srclist.txt: can't copy install-sh/mkinstalldirs from
40068 installed automake until the next release, since changes have been
40071 2002-09-25 Karl Berry <karl@gnu.org>
40073 * lib/strdup.c: copy from libc/string (via ../config/srclist*).
40074 * lib/getopt*: copy from libc/posix.
40075 * lib/gettext.h: copy from gettext.
40076 * lib/.cppi-disable: add strdup.c, gettext.h.
40078 2002-09-25 Karl Berry <karl@gnu.org>
40080 * config/srclist.txt: enable gettext.h check.
40081 * config/config.{guess,sub}: update from prep.
40082 * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
40083 from automake 1.6.3.
40086 2002-08-23 Stefan Monnier <monnier@cs.yale.edu>
40088 * regex.c (PATFETCH): Remove the translating fetch.
40089 (PATFETCH_RAW): Rename to PATFETCH.
40090 (set_image_of_range): New fun.
40091 (SET_RANGE_TABLE_WORK_AREA): Use it.
40092 (regex_compile): Don't translate the pattern chars so eagerly.
40093 Only do it when inserting an `exactn' bytecode or when handling
40095 (mutually_exclusive_p): Avoid empty statement.
40097 2002-07-06 Jim Meyering <meyering@lucent.com>
40099 * m4/README: Don't mention Makefile.am.in.
40100 Outline how I've tested changes to .m4 files. Yep, it's a pain.
40102 2002-07-01 Jim Meyering <meyering@lucent.com>
40104 * lib/c-stack.c: Include sys/time.h.
40105 From Volker Borchert.
40107 2002-06-26 Paul Eggert <eggert@twinsun.com>
40109 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
40111 2002-06-26 Paul Eggert <eggert@twinsun.com>
40113 * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
40114 New macro. Use it uniformly instead of
40115 (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
40116 It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
40117 reported by Vin Shelton.
40119 2002-06-22 Paul Eggert <eggert@twinsun.com>
40121 * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
40122 Do not assume SA_SIGINFO behavior.
40123 Bug reported by Jim Meyering on NetBSD 1.5.2.
40125 2002-06-22 Jim Meyering <meyering@lucent.com>
40127 * m4/c-stack.m4: New file, from diffutils-2.8.2.
40128 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
40130 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
40131 now that configure.ac uses AC_GNU_SOURCE.
40132 (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
40133 * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
40135 Update to latest tools. Suggestions from Paul Eggert.
40136 * m4/stdbool.m4: New file, from diffutils-2.8.2.
40137 * m4/gnu-source.m4: Update from diffutils-2.8.2.
40138 * m4/fnmatch.m4: Likewise.
40139 * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
40140 to AC_HEADER_STDBOOL
40142 2002-06-22 Jim Meyering <meyering@lucent.com>
40144 * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
40145 redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
40147 2002-06-22 Jim Meyering <meyering@lucent.com>
40149 * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
40151 * lib/exitfail.c, exitfail.h: Likewise.
40152 * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
40154 * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
40156 (EXTRA_DIST): Add fnmatch_loop.c.
40157 (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
40159 * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
40160 * lib/fnmatch.c: Update from diffutils-2.8.2.
40161 * lib/fnmatch_.h: New file. From diffutils-2.8.2.
40162 * lib/fnmatch.h: Remove file.
40164 2002-06-21 Jim Meyering <meyering@lucent.com>
40166 * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
40167 * m4/mbrtowc.m4: Likewise.
40169 * m4/mbstate_t.m4: Update from diffutils-2.8.2.
40170 * m4/mbswidth.m4: Reflect name change:
40171 s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
40172 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
40174 * m4/lib-link.m4: Update from gettext-0.11.2.
40175 * m4/gettext.m4: Likewise.
40177 * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
40178 From Alfred M. Szmidt.
40180 2002-06-18 Paul Eggert <eggert@twinsun.com>
40182 * lib/file-type.h: Report an error if neither S_ISREG nor
40183 S_IFREG is defined, instead of using a test specific to glibc
40184 2.2. This should be safe, since POSIX requires S_ISREG and
40185 Unix Version 7 had S_IFREG. We don't need to check for
40186 <sys/types.h> since we don't use any symbols that it defines.
40188 2002-06-15 Richard Dawe <richdawe@bigfoot.com>
40190 * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
40191 $@-t, so that each temporary file name is unique and valid in the first
40192 8 characters, for operation under DOS.
40194 2002-06-15 Paul Eggert <eggert@twinsun.com>
40196 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
40198 2002-06-15 Jim Meyering <meyering@lucent.com>
40200 Work even with DJGPP 2.03, which lacks support for symlinks.
40202 * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
40204 * lib/lchown.c (S_ISLNK): Likewise.
40206 2002-06-15 Jim Meyering <meyering@lucent.com>
40208 * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
40209 For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
40210 have been included before this file.
40212 2002-06-14 Jim Meyering <meyering@lucent.com>
40214 * lib/file-type.h: Use the version from diffutils-2.8.2.
40215 * lib/file-type.c: Likewise.
40217 2002-06-07 Jim Meyering <meyering@lucent.com>
40219 * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
40220 They're needed at least for NetBSD 1.5.2.
40221 ($statxfs_includes): Include those same headers.
40222 ($statxfs_includes): Include sys/vfs.h if available.
40223 ($statxfs_includes): Likewise for sys/statvfs.h.
40224 Check for the following members in both structs statfs and statvfs:
40225 f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
40227 2002-06-01 Jim Meyering <meyering@lucent.com>
40229 * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
40230 s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
40232 2002-05-28 Jim Meyering <meyering@lucent.com>
40234 * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
40235 Reported by Volker Borchert.
40237 2002-05-27 Jim Meyering <meyering@lucent.com>
40239 Fix a problem seen only on nonconforming systems whereby ls.c's
40240 use of localtime, and then of gettimeofday would cause trouble:
40241 the localtime call used to initialize rpl_gettimeofday's save
40242 mechanism would clobber ls's current local time information so
40243 that in any long listing the first file would always be listed
40244 with date 1970-01-01. Analysis by Volker Borchert.
40246 * lib/gettimeofday.c (localtime): Undefine.
40247 (rpl_localtime): New function.
40249 2002-05-27 Jim Meyering <meyering@lucent.com>
40251 * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
40254 * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
40255 use the replacement function; it wouldn't resolve at link time.
40256 Reported by Volker Borchert.
40258 2002-05-22 Jim Meyering <meyering@lucent.com>
40260 * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
40262 * lib/file-type.h: New file.
40263 * lib/file-type.c (file_type): New file/function. Extracted from
40266 2002-04-30 Jim Meyering <meyering@lucent.com>
40268 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
40270 2002-04-29 Paul Eggert <eggert@twinsun.com>
40272 * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
40274 2002-04-29 Paul Eggert <eggert@twinsun.com>
40276 * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
40277 Do not check for alloca.h (no longer used) or stdbool.h (was never
40278 used?). Add AM_C_PROTOTYPES since hard-locale.h uses it.
40280 2002-04-29 Paul Eggert <eggert@twinsun.com>
40282 * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
40284 2002-04-29 Jim Meyering <meyering@lucent.com>
40286 * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
40287 * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
40288 Use AC_FUNC_STRNLEN here instead.
40290 * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
40291 With autoconf-2.53a, it's part of AC_PROG_CC.
40293 2002-04-28 Paul Eggert <eggert@twinsun.com>
40295 * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
40296 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
40298 2002-04-28 Paul Eggert <eggert@twinsun.com>
40300 * lib/sig2str.h, lib/sig2str.c: New files.
40301 * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
40303 2002-04-28 Paul Eggert <eggert@twinsun.com>
40305 * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
40306 depending on <sys/wait.h> and WTERMSIG. Default to 64 instead
40307 of 127, since 64 is the largest conceivable number for ancient
40309 * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
40311 2002-04-28 Jim Meyering <meyering@lucent.com>
40313 * lib/sig2str.c (WTERMSIG): Remove definition (unused).
40315 2002-04-24 Jim Meyering <meyering@lucent.com>
40317 * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
40318 (jm_PREREQ): Use it.
40320 * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
40321 mach/mach.h fcntl.h.
40322 Check for this function: setlocale.
40324 2002-04-24 Jim Meyering <meyering@lucent.com>
40326 * lib/gettext.h: New file, from Gettext.
40327 * lib/Makefile.am (INCLUDES): Remove -I../intl.
40328 (libfetish_a_SOURCES): Add gettext.h.
40330 2002-04-16 Jim Meyering <meyering@lucent.com>
40332 * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
40333 ut_pid, ut_id, ut_exit.
40335 2002-04-16 Jim Meyering <meyering@lucent.com>
40337 * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
40338 (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
40339 (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
40341 2002-04-12 Jim Meyering <meyering@lucent.com>
40343 * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
40344 now-bogus check for f_type in sys/mount.h. Instead, just test for the
40345 existence of the getmntinfo function. Needed for Darwin 5.3.
40347 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
40348 This is necessary at least on Darwin 5.3.
40350 * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
40351 AC_FUNC_STRNLEN. Otherwise, we'd end up putting two copies of
40352 strnlen.o in the library, and that makes some versions of ranlib
40355 2002-04-12 Jim Meyering <meyering@lucent.com>
40357 * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
40359 2002-04-09 Jim Meyering <meyering@lucent.com>
40361 * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
40362 to be more precise. Rather than saying we're checking whether the
40363 function `works', say what we're testing.
40364 * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
40365 Reported by Bruno Haible.
40367 2002-03-10 Jim Meyering <meyering@lucent.com>
40369 * lib/makepath.c (make_path): Remove a comma from a diagnostic.
40370 Suggestion from Santiago Vila.
40372 2002-03-08 Jim Meyering <meyering@lucent.com>
40374 * lib/rename.c: Mention that this wrapper is needed also on
40375 mips-dec-ultrix4.4 systems.
40377 2002-03-02 Jim Meyering <meyering@lucent.com>
40379 * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
40380 not HAVE_CLOCK_SETTIME.
40382 2002-02-27 Paul Eggert <eggert@twinsun.com>
40384 * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
40385 Check for clock_settime.
40387 2002-02-27 Paul Eggert <eggert@twinsun.com>
40389 * lib/nanosleep.h: Rename to....
40390 * lib/timespec.h: New name for nanosleep.h. All uses changed.
40392 * lib/gettime.c: New file.
40393 * lib/settime.c: New file.
40394 * lib/stime.c: Remove.
40396 * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
40397 timespec.h. Remove nanosleep.h.
40399 2002-02-25 Paul Eggert <eggert@twinsun.com>
40401 * m4/acl.m4: New file.
40402 * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
40403 Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
40405 2002-02-25 Paul Eggert <eggert@twinsun.com>
40407 * lib/acl.c, lib/acl.h: New files.
40408 * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
40410 2002-02-24 Jim Meyering <meyering@lucent.com>
40412 * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
40413 prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
40414 cause trouble. Reported by Nelson Beebe.
40416 2002-02-23 Paul Eggert <eggert@twinsun.com>
40418 * lib/path-concat.c (xpath_concat): Reorder code to pacify
40419 compilers that don't know that xalloc_die never returns.
40421 2002-02-20 Jim Meyering <meyering@lucent.com>
40423 * lib/getdate.c: Regenerate using bison-1.33.
40425 2002-02-17 Jim Meyering <meyering@lucent.com>
40427 * config/config.guess (main): Don't use `head -1'; it's no longer
40428 portable. Use `sed 1q' instead.
40430 2002-02-16 gettextize <bug-gnu-gettext@gnu.org>
40432 * m4/codeset.m4: Upgrade to gettext-0.11.
40433 * m4/gettext.m4: Upgrade to gettext-0.11.
40434 * m4/glibc21.m4: Upgrade to gettext-0.11.
40435 * m4/iconv.m4: Upgrade to gettext-0.11.
40436 * m4/isc-posix.m4: Upgrade to gettext-0.11.
40437 * m4/lcmessage.m4: Upgrade to gettext-0.11.
40438 * m4/lib-ld.m4: New file, from gettext-0.11.
40439 * m4/lib-link.m4: New file, from gettext-0.11.
40440 * m4/lib-prefix.m4: New file, from gettext-0.11.
40441 * m4/progtest.m4: Upgrade to gettext-0.11.
40443 2002-02-15 Paul Eggert <eggert@twinsun.com>
40445 * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
40446 (jm_PREREQ): Use it.
40448 2002-02-15 Paul Eggert <eggert@twinsun.com>
40450 * lib/posixver.c, lib/posixver.h: New files.
40451 * lib/Makefile.am (libfetish_a_SOURCES): Add them.
40453 2002-02-02 Paul Eggert <eggert@twinsun.com>
40454 Bruno Haible <bruno@clisp.org>
40456 * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
40457 (fwrite_success_callback): New declaration.
40458 * lib/unicodeio.c (unicode_to_mb): New function, extracted from
40459 print_unicode_char. Call failure callback instead of error.
40460 (fwrite_success_callback): New function.
40461 (exit_failure_callback): New function.
40462 (fallback_failure_callback): New function.
40463 (print_unicode_char): Call unicode_to_mb.
40465 2002-01-26 Jim Meyering <meyering@lucent.com>
40467 * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
40468 * m4/strnlen.m4: Remove file, now that it's part of autoconf.
40470 2002-01-26 Jim Meyering <meyering@lucent.com>
40472 * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
40474 2002-01-22 Paul Eggert <eggert@twinsun.com>
40476 * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
40478 2002-01-22 Jim Meyering <meyering@lucent.com>
40480 * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
40481 Otherwise, some versions of automake would omit the rule that makes
40482 Makefile from Makefile.in.
40484 2002-01-21 Paul Eggert <eggert@twinsun.com>
40486 * lib/xmemcoll.h, lib/xmemcoll.c: New files.
40487 * lib/Makefile.am (libfetish_a_SOURCES): Add them.
40488 * lib/memcoll.c: Include errno.h, and declare errno if not defined.
40489 (memcoll): Set errno to zero if there is no error.
40491 * lib/quotearg.c (quotearg_buffer_restyled):
40492 Fix bug with quoting buffers containing NUL when backslashing escapes.
40493 This bug was exposed by the other changes in this patch.
40494 (quotearg_n_options): New arg ARGSIZE.
40495 All callers changed.
40496 (quoting_options_from_style): New function.
40497 (quotearg_n_style): Use it.
40498 (quotearg_n_style_mem): New function.
40500 * lib/quotearg.h (quotearg_n_style_mem): New function.
40502 2002-01-19 Jim Meyering <meyering@lucent.com>
40504 * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
40505 Remove useless quotes: DF_PROG="df".
40506 * m4/strnlen.m4: New file.
40508 2002-01-16 Paul Eggert <eggert@twinsun.com>
40510 * lib/backupfile.c (ISDIGIT): Comment fix.
40511 * lib/getdate.y (ISDIGIT): Likewise.
40512 * lib/posixtm.c (ISDIGIT, year): Likewise.
40513 * lib/strverscmp.c (ISDIGIT): Likewise.
40514 * lib/userspec.c (ISDIGIT): Likewise.
40516 2002-01-16 Jim Meyering <meyering@lucent.com>
40518 * lib/getdate.y: Add three semicolons, each just before a closing
40519 brace. Bison (as of version 1.31) no longer papers over that mistake.
40521 2002-01-05 Jim Meyering <meyering@lucent.com>
40523 * lib/version-etc.c (version_etc_copyright): Update copyright year.
40525 2001-12-19 Paul Eggert <eggert@twinsun.com>
40527 * lib/closeout.c (close_stdout_status): If ferror (stdout), do
40528 not silently exit merely because the output buffer happens to
40529 have nothing pending.
40531 2001-12-18 Paul Eggert <eggert@twinsun.com>
40533 See the big note in ../ChangeLog.
40534 * lib/human.c (suffixes): Prefer K to k for 1024.
40535 (generate_suffix_backwards): New function.
40536 (human_readable_inexact): Use it.
40537 * lib/xstrtol.c (__xstrtol): If there is no number but there
40538 is a valid suffix, assume 1. "MB" now means decimal, "MiB" binary.
40539 Accept 'K' as well as 'k'.
40541 2001-12-15 Jim Meyering <meyering@lucent.com>
40543 * lib/regex.h (__restrict_arr): Update from libc.
40545 * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
40546 as `remote' if the name starts with `//'. Suggested by Michael Stone.
40549 2001-12-14 Jim Meyering <meyering@lucent.com>
40551 * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
40552 Suggestion from Bruno Haible.
40554 2001-12-10 Jim Meyering <meyering@lucent.com>
40556 * lib/linebuffer.c: Remove explicit declarations of xmalloc and
40557 xrealloc, Instead, include "xalloc.h".
40558 (initbuffer): Don't cast xmalloc return value to char*.
40559 (readline): Reword comment.
40560 Don't cast xrealloc return value to char*
40561 Return NULL, not 0.
40563 2001-12-09 Jim Meyering <meyering@lucent.com>
40565 * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
40566 about `signed and unsigned type in conditional expression'.
40567 * lib/posixtm.c (posix_time_parse): Likewise.
40569 * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
40571 * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
40572 to avoid a pedantic warning.
40574 * lib/getstr.c: Don't include assert.h.
40575 (getstr): Remove warning-evoking assertions.
40576 Return -1 if offset parameter is out of bounds.
40577 Change the type of a local from int to size_t.
40579 * lib/strftime.c (my_strftime_localtime_r): Include this function
40580 definition in the `#if ! HAVE_TM_GMTOFF' block.
40582 * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
40583 Include xalloc.h instead.
40585 2001-12-02 Jim Meyering <meyering@lucent.com>
40587 * lib/tempname.c: Don't declare getenv, thus reverting the change of
40588 2001-11-18. It's no longer necessary, now that stdlib.h is always
40591 * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
40592 __unbounded, and __ptrvalue. Reported by Uwe H. Steinfeld.
40594 2001-11-30 Akim Demaille <akim@epita.fr>
40596 * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
40597 before being defined.
40599 2001-11-27 Paul Eggert <eggert@twinsun.com>
40601 * lib/quotearg.h (quotearg_n, quotearg_n_style):
40602 First arg is int, not unsigned.
40603 * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
40604 (SIZE_MAX, UINT_MAX): New macros.
40605 (quotearg_n_options): Abort if N is negative.
40606 Avoid overflow check on hosts where size_t is 64 bits and int
40607 is 32 bits, as overflow is impossible there.
40608 Fix off-by-one typo that caused unnecessary reallocation.
40610 2001-11-27 Jim Meyering <meyering@lucent.com>
40612 * lib/tempname.c: Merge with version from libc.
40613 * lib/regex.c: Likewise.
40615 * lib/tempname.c: Include stdlib.h unconditionally. On some old
40616 systems for which STDC_HEADERS is 0, it was not included, resulting in
40617 a warning about an integer-to-pointer conversion problem with getenv.
40618 Reported by Volker Borchert.
40620 2001-11-26 Jim Meyering <meyering@lucent.com>
40622 * lib/gtod.h: Remove file.
40623 * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
40624 * lib/gettimeofday.c: Don't include gtod.h.
40625 (GTOD_init): Remove function.
40626 (rpl_gettimeofday): Do its job here instead, rather than aborting.
40627 Suggestion from Volker Borchert.
40629 2001-11-23 Jim Meyering <meyering@lucent.com>
40631 * lib/hash.h (struct hash_table): Don't define here. Merely declare
40633 * lib/hash.c (struct hash_table): Define it here instead.
40635 2001-11-22 Jim Meyering <meyering@lucent.com>
40637 * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
40639 2001-11-20 Jim Meyering <meyering@lucent.com>
40641 * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
40642 SunOS 4.1.4 and Solaris 2.5.1 lose, too.
40644 2001-11-19 Jim Meyering <meyering@lucent.com>
40646 * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
40647 directory. Use "conftestXXXXXX" as the template.
40648 Suggestion from Paul Eggert.
40650 * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
40651 immediately, so the test doesn't mistakenly hit the max-open-files
40654 2001-11-18 Paul Eggert <eggert@twinsun.com>
40656 * lib/tempname.c (TMP_MAX): Remove; no longer needed.
40657 (TEMPORARIES): New macro.
40658 (__gen_tempname): Use TEMPORARIES rather than TMP_MAX. This
40659 removes an artificial limitation (e.g. HP-UX 10.20, where
40662 2001-11-18 Jim Meyering <meyering@lucent.com>
40664 * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
40666 2001-11-18 Jim Meyering <meyering@lucent.com>
40668 * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
40671 * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
40672 files will be created before anything else.
40674 2001-11-17 Paul Eggert <eggert@twinsun.com>
40676 * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
40677 WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
40679 2001-11-17 Jim Meyering <meyering@lucent.com>
40681 * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
40682 Prompted by a report from Bob Proulx.
40684 * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
40685 Instead, require UTILS_FUNC_MKSTEMP.
40687 2001-11-17 Jim Meyering <meyering@lucent.com>
40689 * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
40690 Now, that's done as part of AC_FUNC_STRTOD.
40692 2001-11-17 Jim Meyering <meyering@lucent.com>
40694 * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
40695 that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
40696 rather than group writable. Patch by Juan F. Codagnone.
40698 * lib/readtokens.c: Remove explicit declarations of xmalloc and
40699 xrealloc, Instead, include "xalloc.h".
40701 * lib/mountlist.c: Include unlocked-io.h after all system headers.
40702 Remove explicit declarations of xmalloc, xrealloc,
40703 and xstrdup. Instead, include "xalloc.h".
40705 * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
40707 * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
40709 * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
40711 * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
40712 Reported by Padraig Brady.
40714 * lib/mkstemp.c: #undef mkstemp.
40716 (rpl_mkstemp): Rename from mkstemp.
40719 2001-11-16 Jim Meyering <meyering@lucent.com>
40721 * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
40722 (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
40723 determine the amount of total physical memory, use pstat_getstatic.
40724 HPUX-11 doesn't define _SC_PHYS_PAGES.
40725 (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
40726 If sysconf couldn't be used to determine the amount of available
40727 physical memory, use both pstat_getstatic and pstat_getdynamic.
40728 Based on a patch from Bob Proulx.
40730 2001-11-10 Jim Meyering <meyering@lucent.com>
40732 * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
40733 (jm_PREREQ): Use it.
40735 2001-11-09 Jim Meyering <meyering@lucent.com>
40737 * m4/jm-macros.m4: Require autoconf-2.52f.
40738 (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
40739 Use these AC_-prefixed names, not the AM_-prefixed ones.
40741 * m4/afs.m4 (jm_AFS): Quote the body. Patch by Akim Demaille.
40743 2001-11-05 Jim Meyering <meyering@lucent.com>
40745 * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
40747 2001-11-04 Jim Meyering <meyering@lucent.com>
40749 * m4/fpending.m4: Remove unused cruft that saved, set, and restored
40752 2001-11-03 Jim Meyering <meyering@lucent.com>
40754 * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
40757 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
40758 know the name of the variable in the macro definition.
40760 2001-11-03 Jim Meyering <meyering@lucent.com>
40762 * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
40763 in argmatch_to_argument call.
40765 * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
40768 * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
40769 e.g., a fault due to an attempt to free a NULL pointer.
40771 2001-11-01 Jim Meyering <meyering@lucent.com>
40773 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
40774 * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
40776 2001-11-01 Jim Meyering <meyering@lucent.com>
40778 * lib/dirfd.c, lib/dirfd.h: New files.
40779 * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
40781 * lib/hash.c (hash_print) [TESTING]: Clean up.
40783 2001-10-22 Paul Eggert <eggert@twinsun.com>
40785 * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
40786 to avoid a warning if -Wall.
40788 2001-10-22 Jeff Bailey <jbailey@outpost.dnsalias.org>
40791 * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
40792 (per RMS's instructions, this is now the canonical source)
40793 * lgpl/, gpl/: New directories.
40795 2001-10-21 Paul Eggert <eggert@twinsun.com>
40797 * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
40799 2001-10-21 Jim Meyering <meyering@lucent.com>
40801 * lib/obstack.c (_): Honor the setting of ENABLE_NLS. Otherwise,
40802 this code would end up calling gettext even in packages built
40803 with --disable-nls.
40804 * lib/getopt.c (_): Likewise.
40805 * lib/regex.c (_): Likewise.
40807 2001-10-20 Paul Eggert <eggert@twinsun.com>
40809 * m4/error.m4 (jm_PREREQ_ERROR):
40810 Do not invoke AC_CHECK_FUNCS with strerror_r, as
40811 AC_FUNC_STRERROR_R does that.
40812 Check for strerror declaration.
40814 * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
40815 are supposed to have them these days.
40816 (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
40817 Merge changes from latest Autoconf CVS.
40818 Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
40819 and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
40820 POSIX decided to standardize on the int flavor of strerror_r.
40822 2001-10-20 Paul Eggert <eggert@twinsun.com>
40824 * lib/error.c (strerror_r): Do not declare unless !_LIBC.
40825 Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
40826 Use strerror_r that is only a macro, even if it is not a function.
40827 (strerror): Check for HAVE_DECL_STRERROR before declaring.
40828 (private_strerror): Use prototypes, not old-style function definition.
40829 (print_errno_message): New function.
40830 Support the POSIX 'int'-flavored strerror_r, as well as the traditional
40831 char*-flavored one.
40832 (error_tail, error, error_at_line): Use it.
40834 2001-10-11 Jim Meyering <meyering@lucent.com>
40836 * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
40837 and quote_n (1, ... to avoid clobbering a buffer.
40839 2001-10-05 Jim Meyering <meyering@lucent.com>
40841 * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
40843 * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
40844 * lib/hash-pjw.h: New file.
40846 2001-09-30 Jim Meyering <meyering@lucent.com>
40848 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
40849 `struct fsstat' has the `f_fstypename' member.
40850 Use that to define FS_TYPE, which is now used to make
40851 the getfsstat link test tighter.
40853 2001-09-30 Jim Meyering <meyering@lucent.com>
40855 * lib/mountlist.c [MOUNTED_GETFSSTAT]:
40856 Include <sys/ucred.h>, for Apple Darwin.
40857 Include sys/mount.h and sys/fs_types.h only if available.
40859 (read_filesystem_list): Use FS_TYPE.
40861 2001-09-29 Paul Eggert <eggert@twinsun.com>
40863 * lib/exclude.c (excluded_filename): 0 -> false, since it's
40866 2001-09-29 Jim Meyering <meyering@lucent.com>
40868 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
40869 [one-argument getmntent function]): Include stdio.h before mntent.h.
40870 SunOS 4.1.x needs it for the declaration of `FILE'.
40871 Patch by Volker Borchert.
40873 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
40874 Check for these headers: sys/param.h sys/ucred.h sys/mount.h
40875 sys/fs_types.h, and make the link-test for getfsstat guard #include
40876 directives with appropriate #if HAVE_*_H tests so that we can
40877 detect getfsstat on Apple Darwin1.3.7 systems.
40878 Reported by Nelson Beebe.
40879 Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
40881 2001-09-28 Paul Eggert <eggert@twinsun.com>
40883 Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
40884 #defines strtoimax. Also treat the other strto* functions
40887 * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
40888 Check for strtoul and strtoumax,
40889 as those declarations are made even in the signed case.
40890 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
40891 Likewise, for strtol and strtoimax.
40893 2001-09-28 Paul Eggert <eggert@twinsun.com>
40895 Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
40896 #defines strtoimax. Also treat the other strto* functions
40899 * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
40900 (strtoul): Do not declare if HAVE_DECL_STRTOUL.
40901 (strtoimax, strtoumax): Do not declare if already defined as a macro.
40903 2001-09-26 Jim Meyering <meyering@lucent.com>
40905 Most macros in unlocked-io.h had the wrong number of arguments.
40906 * lib/gen-uio: New script.
40907 (USE_UNLOCKED_IO): Define to 1 if not already defined.
40908 * lib/unlocked-io.hin: Remove file.
40909 * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
40910 rather than trying to embed it here.
40911 (EXTRA_DIST): Add gen-uio. Remove unlocked-io.hin
40912 Reported by Padraig Brady.
40914 2001-09-25 Volker Borchert <bt@teknon.de>
40916 * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
40919 2001-09-24 Jim Meyering <meyering@lucent.com>
40921 * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
40923 2001-09-23 Jim Meyering <meyering@lucent.com>
40925 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
40926 instead of the mere test for existence of mntent.h. The latter
40927 would get a false-positive on AIX 3.4 systems.
40928 In the outer getmntent if-block, don't die if neither of the getmntent
40929 tests succeeds. Instead, just fall through and continue with the
40932 2001-09-23 Jim Meyering <meyering@lucent.com>
40934 * lib/mountlist.c: Remove useless parentheses in #if directives.
40935 (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
40936 the deprecated MOUNTED symbol is no longer defined in mntent.h.
40938 2001-09-22 Jim Meyering <meyering@lucent.com>
40940 * m4/gettext.m4: New file. From gettext.
40941 * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
40942 * m4/progtest.m4: Likewise
40943 * m4/isc-posix.m4: Decrement serial number to sync with gettext.
40944 * m4/glibc21.m4: Likewise.
40946 * m4/libintl.m4: Remove. No longer used.
40948 2001-09-22 Jim Meyering <meyering@lucent.com>
40950 * lib/localcharset.c: Update from latest gettext.
40951 * lib/config.charset: Likewise.
40953 2001-09-20 Jim Meyering <meyering@lucent.com>
40955 * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
40957 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
40960 2001-09-20 Jim Meyering <meyering@lucent.com>
40962 * lib/xstrtol.c (strtoimax): Guard declaration with
40963 `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
40964 The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
40965 have their own, conflicting declaration of strtoimax in sys/inttypes.h.
40966 (strtoumax): Likewise, for completeness (it wasn't necessary).
40968 2001-09-17 Paul Eggert <eggert@twinsun.com>
40970 * lib/strtoimax.c (HAVE_LONG_LONG):
40971 Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
40972 (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
40973 to work around bug in IBM C compiler.
40975 2001-09-17 Jim Meyering <meyering@lucent.com>
40977 * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
40978 * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
40979 * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
40980 * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
40981 * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
40982 whenever the right hand side need not be expanded by the shell.
40984 2001-09-16 Paul Eggert <eggert@twinsun.com>
40986 * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
40987 library. It's not correct, as some older glibcs are buggy.
40988 fnmatch wasn't fixed until glibc 2.2.
40990 Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
40991 special shell magic here.
40993 2001-09-16 Jim Meyering <meyering@lucent.com>
40995 * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
40996 * m4/jm-macros.m4: Require it.
40998 2001-09-16 Jim Meyering <meyering@lucent.com>
41000 * lib/mkdir.c: New file.
41002 2001-09-15 Jim Meyering <meyering@lucent.com>
41004 * m4/jm-macros.m4: Check for help2man.
41006 2001-09-11 Jim Meyering <meyering@lucent.com>
41008 * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
41009 The body, by Paul Eggert, was moved here from configure.in.
41010 * m4/jm-macros.m4: Require UTILS_HOST_OS.
41012 2001-09-04 Paul Eggert <eggert@twinsun.com>
41014 * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
41015 (jm_PREREQ): Use it.
41017 2001-09-04 Paul Eggert <eggert@twinsun.com>
41019 * lib/xreadlink.c (xreadlink): Omit size_t* arg. All uses changed.
41020 Use ssize_t, not int, to store result of readlink.
41021 Check for ssize_t overflow as well as size_t overflow,
41022 as POSIX says the result of readlink is implementation-defined
41023 when ssize_t overflows.
41024 Remove unnecessary cast to char*.
41025 Use free+malloc instead of realloc, as the storage doesn't need
41026 to be preserved and it's clearer and can be more efficient that way.
41027 (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
41028 * lib/xreadlink.h (xreadlink): Update prototype.
41030 2001-09-04 Paul Eggert <eggert@twinsun.com>
41032 * lib/xgetcwd.c: Revert some of the previous change; intead,
41033 fix the HAVE_GETCWD_NULL code to behave more like the
41034 !HAVE_GETCWD_NULL code used to.
41036 Include "xalloc.h".
41037 (xgetcwd): Do not return NULL when memory is exhausted; instead,
41040 2001-09-03 Paul Eggert <eggert@twinsun.com>
41042 * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
41043 sys/param.h, as pathmax.h includes them.
41045 2001-09-03 Paul Eggert <eggert@twinsun.com>
41047 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
41048 (jm_PREREQ_XGETCWD): New macro.
41050 * m4/getcwd.m4: New file.
41052 2001-09-03 Paul Eggert <eggert@twinsun.com>
41054 * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
41055 like the HAVE_GETCWD_NULL code.
41056 Include pathmax.h if not HAVE_GETCWD.
41057 Do not include xalloc.h.
41058 (INITIAL_BUFFER_SIZE): New symbol.
41059 Do not use xmalloc / xrealloc, since the caller is responsible for
41060 handling errors. Preserve errno around `free' during failure.
41061 Do not overrun buffer when using getwd.
41063 2001-09-03 Paul Eggert <eggert@twinsun.com>
41065 * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
41066 __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
41069 2001-09-03 Paul Eggert <eggert@twinsun.com>
41071 * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
41072 usage of FNM_CASEFOLD and FNM_LEADING_DIR. The bug was
41073 spotted by Jim Meyering.
41075 2001-09-03 Jim Meyering <meyering@lucent.com>
41077 * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
41080 2001-09-02 Jim Meyering <meyering@lucent.com>
41082 * lib/error.c: Update from GNU libc.
41084 2001-09-01 Jim Meyering <meyering@lucent.com>
41086 * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
41089 2001-09-01 Jim Meyering <meyering@lucent.com>
41091 * lib/xreadlink.c: New file.
41092 * lib/xreadlink.h: New file.
41093 * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
41096 * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
41097 doesn't conflict with sparc Solaris 7's definition in
41098 /usr/include/sys/int_types.h.
41100 * lib/exclude.c: Use `""', not `<>' to #include non-system header
41102 (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
41103 and strncasecmp as r-values. Unixware didn't have declarations.
41105 2001-08-31 Paul Eggert <eggert@twinsun.com>
41107 * lib/xstrtol.h: Add copyright notice.
41108 (_DECLARE_XSTRTOL): Improve quality of diagnostic for
41109 LONGINT_INVALID_SUFFIX_CHAR.
41111 2001-08-31 Paul Eggert <eggert@twinsun.com>
41113 * lib/xstrtol.c (strtoimax): New decl.
41115 2001-08-31 Paul Eggert <eggert@twinsun.com>
41117 * lib/xgetcwd.c: Don't include pathmax.h.
41118 Include stdlib.h and unistd.h if available.
41120 (xmalloc, xstrdup, free): Remove decls.
41121 (xgetcwd): Don't assume sizes fit in unsigned.
41122 Check for overflow when computing sizes.
41123 Simplify reallocation code.
41125 2001-08-31 Paul Eggert <eggert@twinsun.com>
41127 * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
41128 a directory's st_size can have an arbitrary value, so the old
41129 usage could waste an arbitrary amount of memory. All uses
41131 * lib/savedir.h: Update prototype.
41133 2001-08-31 Paul Eggert <eggert@twinsun.com>
41135 * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
41137 * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
41140 Also, make the following further changes to make this file's
41141 configuration more similar to that of strtol.c:
41142 (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED. All uses changed.
41143 (strtoumax, uintmax_t, strtoull, strtol): Remove.
41144 (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
41145 (strtoimax): Renamed from strtoumax. All uses of unsigned values
41146 changed to signed values.
41148 And make the following changes as well:
41149 Fix copyright notice, as 1999 was missing.
41150 (verify): New macro.
41151 (strtoimax): Check sizes at compile-time, not run-time.
41152 Prefer strtol to strtoll if both work.
41153 (main): Remove; it was not that useful and was a pain to maintain.
41155 * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
41157 2001-08-31 Jim Meyering <meyering@lucent.com>
41159 * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
41160 Use an initial, malloc'd, buffer of length 128 rather than
41161 a statically allocated one of length 1024.
41163 2001-08-30 Paul Eggert <eggert@twinsun.com>
41165 Simplify code, partly by assuming autoconf 2.52 semantics.
41167 * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
41169 * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
41170 (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
41172 (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
41173 Move AC_REQUIRE to next-to-top level, to avoid confusion.
41174 Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
41175 * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
41176 jm_AC_HEADER_INTTYPES_H.
41177 * m4/jm-macros.m4 (jm_MACROS): Likewise.
41179 * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
41181 * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
41182 Quote first arg of AC_DEFUN.
41183 Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
41184 since they are needed to parse the include file even if we need
41185 only xstrtoimax. Simplify logic behind the args to AC_REPLACE.
41186 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
41187 but with opposite signedness.
41189 2001-08-30 Paul Eggert <eggert@twinsun.com>
41191 Merge 'exclude' changes from tar 1.13.22.
41192 This fixes one or two unlikely storage allocation overflow bugs,
41193 but doesn't change user-visible behavior otherwise.
41195 2001-08-30 Paul Eggert <eggert@twinsun.com>
41197 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
41198 (jm_PREREQ_EXCLUDE): New macro.
41200 2001-08-30 Paul Eggert <eggert@twinsun.com>
41202 * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
41205 2001-08-30 Paul Eggert <eggert@twinsun.com>
41207 * lib/hash.c: Remove '2001' from copyright notice.
41209 2001-08-30 Paul Eggert <eggert@twinsun.com>
41211 * lib/full-write.h: New file.
41212 * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
41213 * lib/full-write.c: Correct credits, as cccp.c no longer
41214 exists and anyway it was so heavily changed from the old cccp
41215 code as to be unrecognizable. Include full-write.h.
41216 (full_write) Return size_t, with short writes meaning failure.
41217 All callers changed. This fixes a bug with large buffers
41219 * lib/utime.c: Include full-write.h.
41221 2001-08-30 Paul Eggert <eggert@twinsun.com>
41223 * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
41224 (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
41225 (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
41226 Include if available.
41227 (<xalloc.h>): Include
41228 (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
41229 (verify): New macro. Use it to verify that EXCLUDE macros do not
41230 collide with FNM macros.
41231 (struct patopts): New struct.
41232 (struct exclude): Use it, as exclude patterns now come with options.
41233 (new_exclude): Support above changes.
41234 (new_exclude, add_exclude_file):
41235 Initial size must now be a power of two to simplify overflow checking.
41236 (free_exclude, fnmatch_no_wildcards): New function.
41237 (excluded_filename): No longer requires options arg, as the options
41238 are determined by add_exclude. Now returns bool, not int.
41239 (excluded_filename, add_exclude):
41240 Add support for the fancy new exclusion options.
41241 (add_exclude, add_exclude_file): Now takes int options arg.
41242 Check for arithmetic overflow when computing sizes.
41243 (add_exclude_file): xrealloc might modify errno, so don't
41244 realloc until after errno might be used.
41246 * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
41248 (free_exclude): New decl.
41249 (add_exclude, add_exclude_file): Now takes int options arg.
41250 (excluded_filename): No longer requires options arg, as the options
41251 are determined by add_exclude. Now returns bool, not int.
41253 2001-08-30 Paul Eggert <eggert@twinsun.com>
41255 * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
41257 2001-08-27 Jim Meyering <meyering@lucent.com>
41259 * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
41261 * lib/version-etc.c (N_): Remove definition.
41262 Revert most of last change.
41263 Instead, simply don't mark the `Copyright...' string for translation.
41264 Based on advice from Paul Eggert.
41266 * lib/strtoxmax.c: Tweak comment.
41268 2001-08-26 Jim Meyering <meyering@lucent.com>
41270 * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
41272 * m4/xstrtoimax.m4: New file.
41273 * m4/xstrtoumax.m4: Add comments explaining why we
41274 AC_REPLACE_FUNCS(strtol).
41276 2001-08-26 Jim Meyering <meyering@lucent.com>
41278 * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
41279 of copyright with `%s' so translators don't get an untranslated
41281 (COPYRIGHT_YEAR): Define.
41282 (version_etc): Use fprintf rather than fputs.
41283 Suggestion from Ulrich Drepper.
41285 * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
41287 * lib/strtoll.c: New file, from GNU libc.
41288 * lib/xstrtoimax.c: New file.
41290 * lib/xstrtol.h: Add xstrtoimax.
41291 * lib/strtoumax.c: New file. Simply include "strtoumax.c".
41292 * lib/strtoimax.c: New file. Likewise, but first define
41295 * lib/strtoumax.c: Factor to work both for unsigned and signed types,
41297 * lib/strtoxmax.c: ... then renamed to this.
41299 2001-08-18 Paul Eggert <eggert@twinsun.com>
41301 * m4/inttypes.m4: Add AC_PREREQ(2.13).
41302 (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
41303 (jm_AC_TYPE_INTMAX_T): New macro.
41304 (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
41306 * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
41308 * m4/longlong.m4: Renamed from ulonglong.m4.
41309 * m4/inttypes.m4: Renamed from inttypes_h.m4.
41310 * m4/uintmax_t.m4: Removed.
41312 2001-08-13 Paul Eggert <eggert@twinsun.com>
41314 * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
41315 Port to Solaris 8, where 'sed' requires a space after the 'r'
41316 command, and where sh dislikes "$/". Clean up the spacing a bit.
41317 Redirect output to $tmp just once.
41319 2001-08-12 Paul Eggert <eggert@sic.twinsun.com>
41321 * lib/addext.c (<errno.h>): Include.
41322 (errno): Declare if not defined.
41323 (addext): Work correctly when pathconf returns -1 and leaves
41324 errno alone because there is no limit. Also, work even if
41325 pathconf returns a value greater than SIZE_MAX.
41327 2001-08-12 Jim Meyering <meyering@lucent.com>
41329 * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
41330 d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
41331 fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
41332 group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
41333 jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
41334 link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
41335 mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
41336 prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
41337 rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
41338 strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
41339 utime.m4, utimes.m4, xstrtoumax.m4:
41340 Quote the first argument in each use of AC_DEFUN.
41342 2001-08-12 Jim Meyering <meyering@lucent.com>
41344 * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
41345 Simply `return getcwd (NULL, 0);'.
41346 [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
41347 Use 1300 as initial value for length, not PATH_MAX.
41349 * lib/pathmax.h: Clean up cpp syntax.
41351 2001-08-12 Jim Meyering <meyering@lucent.com>
41353 * lib/gettimeofday.c: New file.
41354 * lib/gtod.h: New file.
41355 * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
41357 2001-08-05 Jim Meyering <meyering@lucent.com>
41359 * m4/jm-macros.m4: Require autoconf-2.52.
41361 2001-08-04 Jim Meyering <meyering@lucent.com>
41363 * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
41364 stmt, to get in sync with glibc.
41366 2001-08-03 Paul Eggert <eggert@twinsun.com>
41368 The following changes are from gettext 0.10.39 as maintained by
41371 * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
41372 Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
41373 with inverted sense. All uses changed.
41375 * lib/mbswidth.c: Don't include <limits.h>.
41376 Include <stdlib.h> and <string.h> unconditionally.
41377 (iswcntrl, mbsinit, ISCNTRL): New macros.
41378 (mbsnwidth): Use K&R style function declarations.
41379 Don't bother checking for MB_LEN_MAX == 1, since the compiler
41380 can optimize it when MB_CUR_MAX == 1.
41381 The width of control characters is zero, not 1.
41383 2001-08-03 Paul Eggert <eggert@twinsun.com>
41385 The following changes are from gettext 0.10.39 as maintained by
41386 Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
41388 * m4/codeset.m4: Upgrade to serial AM1.
41389 (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
41390 all uses changed. Quote first arg of AC_DEFUN.
41391 (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
41393 * m4/iconv.m4: Upgrade to serial AM2.
41394 (AM_ICONV): Renamed from jm_ICONV; all uses changed.
41395 Add --with-libconv-prefix.
41396 Quote first arg of AC_DEFUN. Add description for ICONV_CONST.
41397 (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
41398 (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
41399 (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
41400 * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
41402 * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
41403 * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
41404 * m4/glibc21.m4 (jm_GLIBC21): Likewise.
41405 * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
41406 * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
41407 * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
41408 * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
41409 * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
41410 * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
41412 * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
41415 * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
41416 not the default value.
41418 2001-06-25 Bruno Haible <haible@clisp.cons.org>
41419 * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
41420 Also check for mbsinit. Needed for SCO 3.2v5.0.2.
41421 Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
41422 Also check for iswcntrl, used for wcwidth fallback.
41423 Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
41426 2001-08-03 Jim Meyering <meyering@lucent.com>
41428 * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
41429 as it was in the original. Reported by Paul Eggert.
41431 2001-07-16 Jim Meyering <meyering@lucent.com>
41433 * m4/gettimeofday.m4: New file.
41434 Prompted by a report from Bernhard Baehr.
41436 2001-07-15 Jim Meyering <meyering@lucent.com>
41438 * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
41439 stuff. Now it's in ../Makefile.cfg.
41441 2001-07-15 Jim Meyering <meyering@lucent.com>
41443 * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
41444 (BUILT_SOURCES): Add unlocked-io.h.
41445 (io_functions): Define.
41446 (unlocked-io.h): New rule.
41447 (DISTCLEANFILES): Add unlocked-io.h.
41448 (all-local): Depend on unlocked-io.h, to ensure it is created.
41450 * lib/unlocked-io.hin: New file
41452 * lib/regex.c: Update from glibc.
41454 2001-07-05 Jim Meyering <meyering@lucent.com>
41456 * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
41458 (libfetish_a_SOURCES): Put all .h files here instead.
41459 Remove a thus-exposed (better checks in automake) duplicate and
41460 two unnecessary .h files.
41462 2001-07-04 Jim Meyering <meyering@lucent.com>
41464 * m4/Makefile.am.in (glibc-io.struct): New target. Rework the code
41465 that generates jm-glibc-io.m4 so that it doesn't trigger any make
41468 2001-07-02 Jim Meyering <meyering@lucent.com>
41470 The following changes were prompted by suggestions from Bruno Haible.
41472 * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
41474 * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
41475 definition of EXTRA_DIST.
41476 (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
41477 ensure that the generated file is created/updated whenever the list
41478 of $(unlocked_functions) is changed.
41479 (jm-glibc-io.m4): New rule.
41480 (unlocked-io.h): New rule -- currently unused.
41482 2001-06-24 Jim Meyering <meyering@lucent.com>
41484 * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
41485 unmatched right bracket, rather than kludging it with an extra,
41486 falsely-matching quote in a comment. Patch by Akim Demaille.
41488 2001-06-11 Jim Meyering <meyering@lucent.com>
41490 * lib/regex.c: Update from GNU libc.
41492 2001-05-27 Jim Meyering <meyering@lucent.com>
41494 * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
41495 Check for ut_type in struct utmp.
41497 2001-05-27 Jim Meyering <meyering@lucent.com>
41499 * lib/readutmp.h (UT_TYPE): Define.
41501 2001-05-24 Jim Meyering <meyering@lucent.com>
41503 * lib/argmatch.c: Include "quote.h".
41504 (argmatch_invalid): Remove explicit `' quotes. Instead, use the
41505 quote function. Reported by Göran Uddeborg.
41507 2001-05-22 Jim Meyering <meyering@lucent.com>
41509 * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
41510 now that we use the package-supplied version unconditionally.
41511 (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
41513 2001-05-21 Jim Meyering <meyering@lucent.com>
41515 * m4/regex.m4: Change a couple backticks to single quotes to avoid
41516 shell syntax errors.
41518 2001-05-21 Alexandre Duret-Lutz <duret_g@epita.fr>
41520 * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
41522 2001-05-20 Paul Eggert <eggert@twinsun.com>
41524 * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
41525 Don't bother to check library strftime, since
41526 we'll be using our own my_strftime function anyway.
41527 Define my_strftime instead of strftime.
41529 2001-05-20 Alexandre Duret-Lutz <duret_g@epita.fr>
41531 * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
41532 which is not yet declared.
41534 2001-05-15 Jim Meyering <meyering@lucent.com>
41536 * m4/regex.m4: Use proper quoting so brackets appear in the test
41538 Reported by, and with help from, Bruno Haible.
41540 2001-05-13 Jim Meyering <meyering@lucent.com>
41542 * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
41545 2001-05-11 Paul Eggert <eggert@twinsun.com>
41547 dirname code cleanup. base_name now behaves more compatibly
41548 with POSIX basename when given file names that have trailing
41549 slashes, and similarly for dir_name. Add new primitives
41550 base_len and dir_len. Put the directory-name-related decls
41553 * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
41554 * lib/backupfile.c (base_name): Likewise.
41555 * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
41556 * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
41557 * lib/makepath.c (strip_trailing_slashes): Likewise.
41558 * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
41559 ISSLASH): Likewise.
41560 * lib/rename.c (strip_trailing_slashes): Likewise.
41561 * lib/same.c (base_name): Likewise.
41562 * lib/stripslash.c (ISSLASH): Likewise.
41564 * lib/addext.c: Include <dirname.h> after size_t is defined.
41565 * lib/backupfile.c: Likewise.
41567 * lib/addext.c (addext): Use base_len to trim redundant
41568 trailing slashes instead of doing it ourselves.
41569 But do not trim the last slash if it is not redundant.
41571 * lib/backupfile.c (find_backup_file_name,
41572 max_backup_version): Use base_len instead of rolling it ourselves.
41573 Handle the case of "" and (on DOS) "C:" correctly.
41575 * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
41576 needed. Include <string.h>, <dirname.h>.
41577 (base_name): Allow file names ending in slashes, other than names
41578 that are all slashes. In this case, return the basename followed
41579 by the slashes. This is more general, and can be used in places
41580 where the original base_name purposely had an assertion failure.
41581 (base_len): New function.
41583 * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
41584 Do not include <assert.h>; no longer needed.
41586 (memrchr): Remove decl.
41587 (dir_name_r): Remove.
41588 (dir_len): Renamed from dirlen. All callers changed.
41589 Rewrite in terms of base_name, for simplicity and consistency.
41590 (dir_name): Never return NULL. All callers changed.
41591 Do not include <stdlib.h> in test program; no longer needed.
41592 return 0; is fine for test program.
41594 * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
41596 (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
41598 * lib/path-concat.c (path_concat): Use base_len to compute
41599 base length, not strlen; this means we cannot rely on memcpy
41602 * lib/same.c (STREQ): Remove.
41603 (same_name): Handle the case where the basename ends in trailing '/'.
41605 * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
41606 a slash was stripped. Do not strip the last slash after a
41607 file system prefix.
41609 2001-05-11 Paul Eggert <eggert@twinsun.com>
41611 * lib/Makefile.am (libfetish_a_SOURCES):
41612 Add strftime.c, since we now compile it on all hosts.
41614 * lib/strftime.c (my_strftime):
41615 Define to nstrftime if emacs, but only if my_strftime is not defined.
41616 (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
41617 ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
41618 Add one more extra argument: a nanoseconds value.
41621 (my_strftime function): Add %N format.
41622 (emacs_strftimeu): Renamed from emacs_strftime,
41623 with extra ut argument.
41625 2001-05-09 Paul Eggert <eggert@twinsun.com>
41627 * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
41629 2001-04-21 Jim Meyering <meyering@lucent.com>
41631 * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
41634 2001-04-21 Alexandre Duret-Lutz <duret_g@epita.fr>
41636 * m4/ftruncate.m4: Check for chsize.
41637 Link with ftruncate.o unconditionally if ftruncate is missing.
41638 This was required when cross-compiling to i586-mingw32msvc.
41640 2001-04-08 Jim Meyering <meyering@lucent.com>
41642 * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
41643 recomputed; that's necessary when the offset spans a DST transition.
41644 Patch by David J. MacKenzie. Reported by Hon-Yin Kok.
41646 2001-04-02 Jim Meyering <meyering@lucent.com>
41648 * lib/regex.h, regex.c: Update from GNU libc.
41650 2001-03-24 Jim Meyering <meyering@lucent.com>
41652 * m4/jm-macros.m4: Require autoconf-2.49d.
41654 2001-03-20 Bruno Haible <haible@clisp.cons.org>
41656 * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
41658 2001-03-19 Paul Eggert <eggert@twinsun.com>
41660 * lib/version-etc.c (version_etc_copyright): Update to 2001.
41662 2001-03-17 Jim Meyering <meyering@lucent.com>
41664 * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
41665 now that the version in autoconf is equivalent.
41666 (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
41668 * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
41669 Suggestion from Akim Demaille.
41671 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
41672 (jm_PREREQ_TEMPNAME): New function.
41674 2001-03-16 Paul Eggert <eggert@twinsun.com>
41676 * lib/tempname.c (uint64_t): Define to uintmax_t if
41677 not defined, and if UINT64_MAX is not defined.
41678 Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
41679 Reported by John David Anglin.
41681 2001-03-15 Bruno Haible <haible@clisp.cons.org>
41683 * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
41684 resolve alias if codeset is empty.
41685 * lib/config.charset (BeOS): Use wildcard syntax.
41687 2001-03-13 Jim Meyering <meyering@lucent.com>
41689 * lib/path-concat.c (path_concat)
41690 [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
41691 concatenating e.g., `C:' and `foo'.
41694 2001-03-06 Bruno Haible <haible@clisp.cons.org>
41696 * lib/localcharset.c (locale_charset): Don't use
41697 setlocale(LC_CTYPE,NULL). Don't return NULL.
41698 * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
41700 2001-03-06 Bruno Haible <haible@clisp.cons.org>
41702 * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
41703 support for DOS/DJGPP.
41705 2001-03-01 Paul Eggert <eggert@twinsun.com>
41707 * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
41708 lacks mkstemp. Compile our own tempname.c if we compile our own
41709 mkstemp.c, as mkstemp relies on tempname.
41711 2001-03-01 Jim Meyering <meyering@lucent.com>
41713 * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
41714 AH_VERBATIM really does output its argument verbatim.
41716 2001-02-28 Paul Eggert <eggert@twinsun.com>
41718 * lib/Makefile.am (libfetish_a_SOURCES):
41719 Add dup-safer.c, fopen-safer.c.
41720 (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
41722 * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
41723 * lib/unistd-safer.h: New files.
41725 2001-02-25 Paul Eggert <eggert@twinsun.com>
41727 The mkstemp replacement is taken from glibc 2.2.2, with some
41728 portability fixes for use outside glibc, as follows:
41730 * lib/tempname.c (struct_stat64): New macro.
41731 (direxists, __gen_tempname): Use it.
41732 This avoids a portability problem with Solaris 8.
41734 * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
41735 (<stddef.h>, <stdint.h>, <string.h>):
41736 Include only if STDC_HEADERS || _LIBC.
41737 (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
41738 (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
41739 (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
41740 (__set_errno): Define this macro if <errno.h> doesn't.
41741 (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
41742 Define these macros if <stdio.h> doesn't.
41743 (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
41744 Define these macros if <sys/stat.h>
41745 doesn't. Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
41746 (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
41747 __xstat64): Define if not _LIBC.
41748 (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
41749 (__gen_tempname): Invoke gettimeofday only if
41750 HAVE_GETTIMEOFDAY || _LIBC;
41751 otherwise, fall back on plain "time".
41752 Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
41754 * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
41756 * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
41758 2001-02-18 Paul Eggert <eggert@twinsun.com>
41760 * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
41762 2001-02-17 Paul Eggert <eggert@twinsun.com>
41764 * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
41765 * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
41766 Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
41767 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
41769 2001-02-17 Paul Eggert <eggert@twinsun.com>
41771 * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
41772 Remove workaround macros for hosts that have mbrtowc but not
41773 mbstate_t, as we now insist on proper declarations for both
41774 before using mbrtowc.
41776 2001-02-17 Jim Meyering <meyering@lucent.com>
41778 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
41779 getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
41780 further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
41783 * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
41784 rather than AC_CACHE_VAL.
41786 2001-02-17 Jim Meyering <meyering@lucent.com>
41788 * lib/strtoul.c: Sync from GNU libc. Use double quotes, not <...>
41789 around included file name.
41791 * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
41793 * lib/strftime.c: Update from GNU libc (the only changes were to
41796 2001-02-17 Jim Meyering <meyering@lucent.com>
41798 * lib/regex.c: Update from libc.
41800 2001-02-17 Bruno Haible <haible@clisp.cons.org>
41802 * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
41805 2001-02-16 Paul Eggert <eggert@twinsun.com>
41807 * lib/alloca.c (malloc): Undef before defining, since stdlib.h
41808 may have defined it. Needed for Encore Umax-3.0.9.16b systems.
41809 Reported by Mark Hounschell via Paul Eggert.
41811 2001-02-07 Jim Meyering <meyering@lucent.com>
41813 * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
41815 2001-02-05 Jim Meyering <meyering@lucent.com>
41817 * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
41818 it includes the patch required for `large file' support with at least
41819 HP-UX's 10.20 /bin/cc.
41821 2001-02-03 Jim Meyering <meyering@lucent.com>
41823 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
41824 AS_IF, now that it works once again (mysteriously).
41825 * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
41827 2001-01-30 Jim Meyering <meyering@lucent.com>
41829 Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
41830 * m4/chown.m4: Rename conftestchown to conftest.chown.
41831 * m4/rename.m4: s/conftestdir/conftest.d1/ and
41832 s/conftestdir2/conftest.d2/.
41833 * m4/utimes.m4: s/conftestdata/conftest.data/
41834 Inspired by Pavel Roskin's change in autoconf.
41836 2001-01-30 Bruno Haible <haible@clisp.cons.org>
41838 * lib/config.charset: Update for FreeBSD 4.2.
41840 2001-01-27 Jim Meyering <meyering@lucent.com>
41842 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
41844 * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
41846 2001-01-26 Jim Meyering <meyering@lucent.com>
41848 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
41849 quotearg.c includes it.
41851 2001-01-26 Jim Meyering <meyering@lucent.com>
41853 * lib/quotearg.c: Include stddef.h.
41854 * lib/quote.c: Include stddef.h.
41855 Reported by Axel Kittenberger.
41857 * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
41858 line in double quotes so that it evokes a better diagnostic.
41859 [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
41860 Reported by Axel Kittenberger.
41862 2001-01-24 Stefan Monnier <monnier@cs.yale.edu>
41864 * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
41865 as if it was a `charset'.
41867 2001-01-21 Bruno Haible <haible@clisp.cons.org>
41869 * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
41872 2001-01-21 Bruno Haible <haible@clisp.cons.org>
41874 * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
41875 to avoid a warning. Add back 'const' to inptr.
41877 2001-01-20 Jim Meyering <meyering@lucent.com>
41879 Be sure that headers are checked before used in code compiled
41880 for the type checks.
41881 * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
41882 In place of that, invoke jm_CHECK_ALL_TYPES.
41883 (jm_CHECK_ALL_HEADERS): New functions with the above checks.
41884 (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
41885 Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
41886 The check for ssize_t was mistakenly run before the test for unistd.h.
41888 The configure-time check for stdbool.h was missing.
41889 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
41890 (jm_PREREQ_HASH): New function.
41892 2001-01-17 Jim Meyering <meyering@lucent.com>
41894 * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
41895 for autoconf-2.49c.
41896 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
41898 2001-01-16 Jim Meyering <meyering@lucent.com>
41900 * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
41903 2001-01-14 Jim Meyering <meyering@lucent.com>
41905 * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
41906 foo and bar. Create conftestdir/ in the script, not in the C code.
41907 Remove directories in the script, not in the C code.
41908 Remove conftestdir{,2} before trying to create the directory.
41909 Make the entire configure script fail if the mkdir fails.
41911 2001-01-14 Jim Meyering <meyering@lucent.com>
41913 * lib/rename.c: New file. From Volker Borchert.
41914 Include stdlib.h, string.h or strings.h, and xalloc.h.
41915 Use strip_trailing_slashes rather than open-coding it.
41917 2001-01-03 Paul Eggert <eggert@twinsun.com>
41919 * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
41921 2001-01-03 Jim Meyering <meyering@lucent.com>
41923 * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
41924 of local `inptr' to avoid warning with some system declarations of
41927 2001-01-02 Volker Borchert <bt@teknon.de>
41929 * m4/rename.m4: New file.
41930 * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
41932 2001-01-01 Jim Meyering <meyering@lucent.com>
41934 * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
41935 even on systems with utmpx.h. It's necessary for the declaration of
41936 utmp's ut_user member. Reported by Andreas Jaeger.
41938 * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
41939 available. They are required for the declarations of getgrgid and
41941 (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
41942 Reported by Andreas Jaeger.
41944 2001-01-01 Alexandre Duret-Lutz <duret_g@epita.fr>
41946 * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
41947 expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
41948 so `make install' also works in VPATH builds.
41950 2000-12-31 Alexandre Duret-Lutz <duret_g@epita.fr>
41952 * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
41953 prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
41954 can be used in subdirectories.
41956 2000-12-29 Paul Eggert <eggert@twinsun.com>
41958 * lib/modechange.c: Do not assume that mode_t uses the
41959 traditional octal encoding. E.g. "chmod 1 FOO" should set
41960 the other-execute bit of FOO even if S_IXOTH != 1.
41962 (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
41963 WOTH, XOTH, ALLM): New macros.
41964 (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
41965 S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
41967 (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
41968 (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
41970 No need to use uintmax_t; unsigned long is long enough.
41971 Don't bother to get suffix since we don't use it.
41973 2000-12-26 Jim Meyering <meyering@lucent.com>
41975 * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
41976 better with autoheader.
41978 2000-12-24 Jim Meyering <meyering@lucent.com>
41980 * lib/hash.c (is_prime): Return explicit boolean values.
41981 (hash_get_first): Return NULL to appease Irix5.6's 89.
41982 Reported by Nelson Beebe.
41984 2000-12-19 Bruno Haible <haible@clisp.cons.org>
41986 * lib/localcharset.c (locale_charset): Add support for Win32.
41988 2000-12-18 Paul Eggert <eggert@twinsun.com>
41990 * lib/physmem.h, lib/physmem.c: New files.
41992 * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
41993 (noinst_HEADERS): Add physmem.h.
41995 * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
41996 't' for compatibility with Solaris 8 sort.
41998 2000-12-18 Bruno Haible <haible@clisp.cons.org>
42000 * lib/config.charset: Add support for BeOS.
42002 2000-12-17 Jim Meyering <meyering@lucent.com>
42004 * m4/dos.m4 (jm_AC_DOS): New file and macro.
42005 * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
42007 2000-12-16 Jim Meyering <meyering@lucent.com>
42009 This bug had a serious impact on chown: `chown N:M FILE' (for integer
42010 N and M) would have treated it like `chown N:N FILE'.
42012 * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
42014 2000-12-16 Jim Meyering <meyering@lucent.com>
42016 * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
42017 SHELLS_FILE to a file name that's useful on djgpp systems.
42019 (ADDITIONAL_DEFAULT_SHELLS): Define.
42020 (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
42021 Based mostly on a patch from Prashant TR.
42023 2000-12-16 Bruno Haible <haible@clisp.cons.org>
42025 * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
42026 VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
42027 CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
42029 2000-12-08 Andreas Schwab <schwab@suse.de>
42031 * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
42032 invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
42034 2000-12-07 Jim Meyering <meyering@lucent.com>
42036 * lib/stripslash.c (ISSLASH): Define.
42037 (strip_trailing_slashes): Use ISSLASH rather than comparing against
42041 * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
42042 (dir_name_r): Declare this function as static.
42043 [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
42044 manifest itself on a name containing a mix of slashes and
42046 Make this function work with names starting with a DOS-style
42047 drive letter and colon prefix.
42048 (dir_name): Append `.' if necessary.
42049 Based mostly on patches from Prashant TR and Eli Zaretskii.
42051 * lib/dirname.h (dir_name_r): Remove prototype.
42053 2000-12-06 Paul Eggert <eggert@twinsun.com>
42055 * m4/off_t-format.m4: Remove this file.
42056 * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
42058 2000-12-06 Jim Meyering <meyering@lucent.com>
42060 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
42061 replacement strtoull, we may well need the replacement strtoul, too.
42062 Check for declarations of strtoul and strtoull.
42063 Check for strtol. Mainly as a cue to cause automake to include
42064 strtol.c -- that file is included by each of strtoul.c and strtoull.c.
42065 Check for limits.h -- strtol.c needs it.
42067 2000-12-05 Jim Meyering <meyering@lucent.com>
42069 * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
42071 2000-12-04 Jim Meyering <meyering@lucent.com>
42073 * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
42074 Also include memory.h, stdlib.h, unistd.h if appropriate.
42075 Reported by Andreas Jaeger (conflicting declaration of malloc).
42077 2000-12-02 Jim Meyering <meyering@lucent.com>
42079 * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
42080 * m4/jm-macros.m4 (jm_MACROS): require it.
42082 2000-12-02 Jim Meyering <meyering@lucent.com>
42084 * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
42086 2000-12-01 Paul Eggert <eggert@twinsun.com>
42088 * lib/memrchr.c: Include <config.h> before any system include file.
42090 2000-11-30 Jim Meyering <meyering@lucent.com>
42092 * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
42094 2000-11-30 Jim Meyering <meyering@lucent.com>
42096 * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
42098 2000-11-29 Paul Eggert <eggert@twinsun.com>
42100 * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
42102 2000-11-26 Jim Meyering <meyering@lucent.com>
42104 * lib/memcoll.c: Include sys/types.h. From Werner Almesberger.
42106 2000-11-22 Paul Eggert <eggert@twinsun.com>
42108 * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
42109 size of (size_t) -1; it's not portable.
42111 2000-11-17 Jim Meyering <meyering@lucent.com>
42113 * lib/strstr.c: Update from GNU libc.
42115 2000-11-17 Akim Demaille <akim@epita.fr>
42117 * lib/obstack.h: Formatting changes.
42118 (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
42119 prevent type checking.
42120 (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
42121 cast the value to (void *): assigning a `foo *' to a `void *'
42123 (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
42125 2000-11-16 Jim Meyering <meyering@lucent.com>
42127 * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
42129 2000-11-11 Jim Meyering <meyering@lucent.com>
42131 * lib/error.c: Add a couple #includes, merging from GNU libc version.
42133 2000-11-10 Jim Meyering <meyering@lucent.com>
42135 * lib/obstack.h: Update from GNU libc.
42136 * lib/obstack.c: Likewise.
42138 2000-11-08 Bruno Haible <haible@clisp.cons.org>
42140 * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
42142 2000-11-06 Paul Eggert <eggert@twinsun.com>
42144 * lib/getusershell.c (setusershell): Use rewind rather than
42145 fseek/fseeko, to avoid configuration hassles with fseeko.
42146 Don't bother opening SHELLS_FILE if shellstream is NULL;
42147 it's not necessary.
42149 2000-11-05 Jim Meyering <meyering@lucent.com>
42151 * lib/makepath.h (make_dir): Declare.
42152 * lib/makepath.c (make_dir): Remove `static' attribute.
42155 2000-11-04 Jim Meyering <meyering@lucent.com>
42157 * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
42159 2000-11-04 Alexandre Duret-Lutz <duret_g@epita.fr>
42161 * lib/hash.c (hash_get_next): Fix a thinko: when ENTRY is the
42162 last one in a bucket, advance to the next bucket.
42164 2000-11-02 Vesselin Atanasov <vesselin@bgnet.bg>
42166 * lib/fnmatch.c: Do not comment out all the code if we are using
42167 the GNU C library, because in some cases we are replacing buggy
42168 code in the GNU C library itself.
42170 2000-10-30 Stefan Monnier <monnier@cs.yale.edu>
42172 * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
42173 (regex_compile): Catch bogus \(\1\).
42175 2000-10-30 Paul Eggert <eggert@twinsun.com>
42177 * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
42178 (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
42179 e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
42181 2000-10-30 Paul Eggert <eggert@twinsun.com>
42183 * lib/error.h, getline.h, modechange.h:
42184 Remove "2000" from Copyright line, as the file hasn't been
42185 changed this year other than in the copyright notice.
42187 * lib/xalloc.h: Add "2000" to Copyright line, as this file
42188 was changed this year.
42190 2000-10-29 Jim Meyering <meyering@lucent.com>
42192 * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
42194 * m4/ls-mntd-fs.m4: Likewise
42196 2000-10-29 Jim Meyering <meyering@lucent.com>
42198 * lib/xstat.in: Fix grammar in comment.
42200 2000-10-29 Greg Louis <glouis@dynamicro.on.ca>
42202 * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
42203 Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
42204 doesn't define __restrict_arr.
42206 2000-10-28 Jim Meyering <meyering@lucent.com>
42208 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
42209 (jm_PREREQ_MEMCHR): New function.
42211 2000-10-28 Jim Meyering <meyering@lucent.com>
42213 * lib/memchr.c: Update from libc.
42214 Adjust for portability:
42215 [HAVE_STDLIB_H]: Include stdlib.h.
42216 [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
42217 Undef __memchr, too.
42218 [!weak_alias]: Define __memchr to memchr.
42220 * lib/regex.c: Update from libc.
42221 * lib/regex.h: Likewise.
42222 * lib/getopt1.c: Likewise.
42223 * lib/memcmp.c: Likewise.
42225 * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
42226 Avoid using fseek, when possible -- it's broken by design.
42227 Patch by Ulrich Drepper.
42229 2000-10-27 Stefan Monnier <monnier@cs.yale.edu>
42231 * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
42232 (re_match_2_internal, re_match_2_internal, re_match_2_internal):
42233 Giving in to popular pressure to shut up the compiler with casts.
42235 2000-10-26 Jim Meyering <meyering@lucent.com>
42237 * lib/strftime.c: Update from libc.
42239 2000-10-25 Stefan Monnier <monnier@cs.yale.edu>
42241 * regex.c: More `unsigned char' -> `re_char' changes.
42242 Also change several `int' into `re_wchar_t'.
42243 (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
42244 (PUSH_FAILURE_POINTER): Don't cast any more.
42245 (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
42246 We want GCC to complain, since this piece of code makes
42247 re_match non-reentrant, which *should* be fixed.
42248 (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
42249 (EXTEND_BUFFER): Use RETALLOC.
42250 (SET_LIST_BIT): Don't cast.
42251 (re_wchar_t): New type.
42252 (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
42253 that those two functions will always properly return.
42254 (IMMEDIATE_QUIT_CHECK): Cast to void.
42255 (analyse_first): Use recursion rather than an explicit stack.
42256 (re_compile_fastmap): Can't fail anymore.
42257 (re_search_2): Don't check re_compile_fastmap for failure.
42258 (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
42259 Now also sets the new value (passed in a new argument).
42260 (re_match_2_internal): Use it.
42261 Also, use a new var `reg' of type size_t when looping through regs
42262 rather than reuse the inappropriate `mcnt'.
42264 2000-10-25 Jim Meyering <meyering@lucent.com>
42266 * lib/obstack.c: Update from libc.
42268 2000-10-24 Kenichi Handa <handa@etl.go.jp>
42270 * regex.c (regex_compile): Change the way of handling a range from
42271 a char less than 256 to a char not less than 256.
42273 2000-10-24 Andrew Innes <andrewi@gnu.org>
42275 * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
42277 (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
42278 so that re_search functions only quit when callers expect them to.
42280 2000-10-23 Jim Meyering <meyering@lucent.com>
42282 * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
42283 wrong. That set_locale call must not have any side effects.
42286 2000-10-22 Jim Meyering <meyering@lucent.com>
42288 * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
42289 [CYCLIC]: Remove now-unused definition.
42291 * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
42292 (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
42293 Suggestion from Ulrich Drepper.
42295 2000-10-21 Jim Meyering <meyering@lucent.com>
42297 * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
42298 * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
42299 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
42301 2000-10-21 Jim Meyering <meyering@lucent.com>
42303 * lib/dirname.c (memrchr): Declare if necessary.
42304 (dir_name): Remove the restriction that there be no
42305 trailing slashes. Now, this code skips past them, effectively
42307 [TEST_DIRNAME] (main): New unit tests.
42309 * lib/memrchr.c: New file from GNU libc.
42310 Undef __memrchr, too.
42311 [!weak_alias]: Define __memrchr to memrchr.
42312 Guard weak_alias use with `#ifdef weak_alias'.
42314 2000-10-21 Jim Meyering <meyering@lucent.com>
42316 * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
42317 (dir_name): Use dir_name_r.
42318 * lib/dirname.h (dir_name_r): Declare it.
42320 2000-10-17 Jim Meyering <meyering@lucent.com>
42322 * lib/quote.h (PARAMS): Define and use.
42323 Reported by Akim Demaille.
42325 * lib/getopt.c: Update from libc.
42327 2000-10-16 Jim Meyering <meyering@lucent.com>
42329 * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
42333 2000-10-15 Stefan Monnier <monnier@cs.yale.edu>
42335 * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
42337 2000-09-25 Jim Meyering <meyering@lucent.com>
42339 * lib/md5.h (rol): Define (from GnuPG).
42341 * lib/sha.c: Give credit (GnuPG) where due.
42342 (M): Use rol rather than open-coding it.
42343 Add a FIXME comment.
42345 2000-09-21 Jim Meyering <meyering@lucent.com>
42347 * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
42348 Reported by Michael Stone.
42350 2000-09-20 Jim Meyering <meyering@lucent.com>
42352 * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
42353 (noinst_HEADERS): Add sha.h.
42354 Based on code from Scott G. Miller and from GnuPG.
42356 2000-09-18 Jim Meyering <meyering@lucent.com>
42358 * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
42359 LIBS. Otherwise, everyone ends up linking with -lelf for some
42361 Reported by Mike Stone.
42363 2000-09-15 Jim Meyering <meyering@lucent.com>
42365 * lib/regex.c: Update from libc.
42367 2000-09-10 Jim Meyering <meyering@lucent.com>
42369 * lib/getopt.c (_getopt_internal): Update from glibc.
42371 2000-09-09 Jim Meyering <meyering@lucent.com>
42373 * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
42374 think it should be used as a general replacement for isascii.
42375 * lib/fnmatch.c: Likewise.
42376 * lib/mbswidth.c: Likewise
42377 * lib/regex.c: Likewise.
42380 * lib/userspec.c: Include sys/param.h and limits.h.
42382 (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
42383 (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
42384 (parse_user_spec): Use xstrtoul, not atoi when converting numeric
42385 UID, GID. Check range.
42387 2000-09-06 Jim Meyering <meyering@lucent.com>
42389 * lib/getopt.c (_getopt_internal): Update from glibc.
42391 2000-08-30 Jim Meyering <meyering@lucent.com>
42393 * lib/strftime.c: Merge in changes from GNU libc.
42395 2000-08-26 Jim Meyering <meyering@lucent.com>
42397 * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
42398 * m4/fpending.m4: New file.
42400 2000-08-26 Jim Meyering <meyering@lucent.com>
42402 * lib/closeout.c: Include "__fpending.h".
42403 (close_stdout_status): Return right away if there's nothing to flush.
42405 * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
42406 * lib/__fpending.c: New file.
42407 * lib/__fpending.h: New file.
42409 2000-08-20 Jim Meyering <meyering@lucent.com>
42411 * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
42412 `#if !HAVE_UTMPX_H'. The latter would lose on systems with neither
42413 utmp.h nor utmpx.h. Reported by Eli Zaretskii.
42415 2000-08-11 J. David Anglin <dave@hiauly1.hia.nrc.ca>
42417 Improve fileutils installation on systems where running
42418 programs (like install) can't be unlinked.
42419 * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
42420 * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
42422 2000-08-07 Paul Eggert <eggert@twinsun.com>
42424 Standardize on "memory exhausted" instead of "Memory exhausted"
42425 or "virtual memory exhausted".
42426 * lib/obstack.c (print_and_abort): Use "memory exhausted", not
42427 "virtual memory exhausted".
42428 * lib/same.c (same_name): Invoke xalloc_die instead of printing
42430 * lib/userspec.c (parse_user_spec): Likewise.
42431 * lib/bumpalloc.h: comment fix
42432 * lib/same.c, userspec.c: Include xalloc.h.
42434 * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
42435 not char *const and pointing to a constant array.
42436 * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
42437 (xrealloc): Comment fix.
42439 * lib/userspec.c (parse_user_spec):
42440 Don't translate a message until just before returning,
42441 to avoid unnecessary translation.
42443 2000-08-07 Jim Meyering <meyering@lucent.com>
42445 * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
42446 chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
42447 fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
42448 getgroups.c, gethostname.c, getopt.h, group-member.c,
42449 hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
42450 linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
42451 memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
42452 pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
42453 stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
42454 strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
42455 utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
42456 yesno.c: Back out Copyright date changes for each file with no change
42457 this year. This eases coordination with other programs using the same
42458 source code modules. From Paul Eggert.
42460 2000-08-06 Paul Eggert <eggert@twinsun.com>
42462 * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
42463 not char, for compatibility with glibc 2.1.3 strftime.c.
42465 2000-08-03 Greg McGary <greg@mcgary.org>
42467 * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
42468 ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
42469 (EXTEND_BUFFER): Use them.
42471 2000-08-01 Jim Meyering <meyering@lucent.com>
42473 * lib/dirname.c (ISSLASH): Define.
42474 (BACKSLASH_IS_PATH_SEPARATOR): Define.
42475 (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
42476 both `\' and `/' may be use as path separators.
42477 Based on a patch from Prashant TR.
42479 2000-07-31 Paul Eggert <eggert@twinsun.com>
42481 * lib/quotearg.c (quotearg_n_options): Don't make the initial
42482 slot vector a constant, since it might get modified.
42484 2000-07-31 Jim Meyering <meyering@lucent.com>
42486 * lib/xmalloc.c: Use `virtual memory exhausted', not
42487 `Memory exhausted'.
42488 * lib/obstack.c (print_and_abort): Likewise.
42490 2000-07-30 Paul Eggert <eggert@twinsun.com>
42492 * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
42493 buffer, so that the caller can always quote one small
42494 component of a "memory exhausted" message in slot 0.
42495 From a suggestion by Jim Meyering.
42497 2000-07-30 Jim Meyering <meyering@lucent.com>
42499 * lib/makepath.c (make_path): Quote the other instance, too.
42501 * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
42502 (STATIC_BUF_SIZE): Define.
42503 (quotearg_n_options): Use only statically allocated storage when
42504 N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
42505 than STATIC_BUF_SIZE.
42507 2000-07-29 Jim Meyering <meyering@lucent.com>
42509 * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
42510 * lib/dirname.c (dir_name): Likewise.
42512 * lib/basename.c (base_name): Use ISSLASH rather than comparing against
42515 * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
42516 (dir_name): Assert that there are no trailing slashes.
42518 2000-07-29 Bruno Haible <haible@clisp.cons.org>
42520 * lib/mbswidth.h (mbswidth): Add a flags argument.
42521 (mbswidth): New declaration.
42522 (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
42523 * lib/mbswidth.c (mbswidth): Add a flags argument.
42524 (mbsnwidth): New function.
42526 2000-07-24 Jim Meyering <meyering@lucent.com>
42528 * lib/mbswidth.c: Remove useless #else. From Bruno Haible.
42530 2000-07-23 Paul Eggert <eggert@twinsun.com>
42532 * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
42534 2000-07-23 Paul Eggert <eggert@twinsun.com>
42536 * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
42537 <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
42538 (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
42539 (quotearg_buffer_restyled): If a unibyte locale, don't bother to
42540 invoke multibyte primitives.
42542 2000-07-23 Paul Eggert <eggert@twinsun.com>
42545 Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
42546 so that mbstate_t is always defined.
42548 Do not inspect MB_LEN_MAX, since it's incorrectly defined to
42549 be 1 in at least one GCC installation, and this configuration
42550 error is likely to be common. Ignoring MB_LEN_MAX hurts
42551 performance on hosts that have mbrtowc but have only unibyte
42552 locales, but I assume these hosts are rare.
42554 2000-07-23 Paul Eggert <eggert@twinsun.com>
42556 * lib/mbswidth.c (_XOPEN_SOURCE):
42557 Don't define; this causes problems on Solaris 7.
42558 (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
42560 2000-07-23 Jim Meyering <meyering@lucent.com>
42562 * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
42563 too: getgrgid, getpwuid, getuid.
42565 2000-07-23 Jim Meyering <meyering@lucent.com>
42567 * lib/basename.c (base_name): Add an assertion.
42569 2000-07-23 Bruno Haible <haible@clisp.cons.org>
42571 * lib/quotearg.c: When the system forces us to redefine mbstate_t,
42572 shadow its mbsinit function.
42574 2000-07-17 Bruno Haible <haible@clisp.cons.org>
42576 * lib/mbswidth.h: New file.
42577 * lib/mbswidth.c: New file.
42578 * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
42579 (noinst_HEADERS): Add mbswidth.h.
42581 2000-07-17 Bruno Haible <haible@clisp.cons.org>
42583 * lib/config.charset: Add support for FreeBSD. Improve support for
42586 2000-07-16 Bruno Haible <haible@clisp.cons.org>
42588 * m4/mbswidth.m4: New file.
42589 * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
42591 2000-07-15 Jim Meyering <meyering@lucent.com>
42593 * lib/makepath.c: Include quote.h.
42594 (make_path): Convert "`%s'" in format strings to "%s", and wrap each
42595 corresponding argument in a `quote (...)' call.
42596 Give better diagnostics.
42598 * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
42599 (noinst_HEADERS): Add quote.h.
42601 * lib/quote.c (quote, quote_n): New file. Two functions taken verbatim
42602 from tar's src/misc.c.
42603 * lib/quote.h: New file. Prototypes for same.
42605 2000-07-14 Paul Eggert <eggert@twinsun.com>
42607 From a suggestion by Bruno Haible.
42608 * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
42609 Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
42610 to decide whether to define the BeOS workaround macro;
42611 this adjusts to the change to AC_MBSTATE_T.
42613 2000-07-14 Jim Meyering <meyering@lucent.com>
42615 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
42616 jm_AC_TYPE_UINTMAX_T.
42618 2000-07-13 Paul Eggert <eggert@twinsun.com>
42620 * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
42622 * lib/quotearg.c (quoting_style_args, quoting_style_vals,
42623 quotearg_buffer_restyled): Add support for
42624 clocale_quoting_style. Undo previous change to
42625 locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
42626 and "{RIGHT QUOTATION MARK}" msgids.
42628 2000-07-10 Paul Eggert <eggert@twinsun.com>
42630 From a suggestion by Bruno Haible.
42631 * m4/mbstate_t.m4 (AC_MBSTATE_T):
42632 Renamed from AC_MBSTATE_T_OBJECT. All uses changed.
42633 Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
42634 and mbstate_t, to a single-part test that simply defines mbstate_t.
42635 * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
42636 s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
42638 2000-07-10 Jim Meyering <meyering@lucent.com>
42640 * m4/strerror_r.m4: Mirror the correction made in autoconf.
42642 * m4/gnu-source.m4: Output to confdefs.h directly.
42643 Suggestion from Akim Demaille.
42645 2000-07-09 Paul Eggert <eggert@twinsun.com>
42647 The old behavior of quoting `like this' doesn't look good with
42648 newer, ISO-style fonts. See:
42649 http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
42651 Instead, quote "like this" by default. Let the translator
42652 tailor the locale-specific quoting behavior by providing
42653 translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
42655 * lib/quotearg.c (N_): New macro.
42656 (gettext_default): New function.
42657 (quotearg_buffer_restyled): Use
42658 gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
42659 gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
42661 2000-07-09 Jim Meyering <meyering@lucent.com>
42663 * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
42664 to link seq. If so, set SEQ_LIBM to -lm. From Bruno Haible.
42666 * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
42667 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
42669 2000-07-09 Jim Meyering <meyering@lucent.com>
42671 * lib/Most files: Update copyright dates to include 2000.
42673 2000-07-08 Jim Meyering <meyering@lucent.com>
42675 * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
42677 (xgethostname): Remove now-unnecessary #ifdef.
42678 Move declaration of `err' into loop where it's used.
42680 2000-07-05 Paul Eggert <eggert@twinsun.com>
42681 and Bruno Haible <haible@clisp.cons.org>
42683 * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
42684 only if the test for an object-type mbstate_t fails. This
42685 prevents us from mistakenly reporting that mbstate_t is a
42686 system object type after we "#define mbstate_t int" to work
42689 2000-07-05 Paul Eggert <eggert@twinsun.com>
42690 and Bruno Haible <haible@clisp.cons.org>
42692 * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
42694 2000-07-05 Bruno Haible <haible@clisp.cons.org>
42696 * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
42698 Include <ctype.h> for use of isalpha.
42700 2000-07-05 Bruno Haible <haible@clisp.cons.org>
42702 * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
42703 by allocating a larger buffer. Test the gethostname return value for
42704 being >= 0, not == 0, for BeOS. Don't exhaust memory if gethostname
42705 returns an error and ENAMETOOLONG isn't defined.
42707 2000-07-05 Bruno Haible <haible@clisp.cons.org>
42709 * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
42712 2000-07-04 Jim Meyering <meyering@lucent.com>
42714 * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
42715 of the deprecated AC_CHECKING.
42717 2000-07-04 Jim Meyering <meyering@lucent.com>
42719 * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
42720 Reported by Bruno Haible.
42722 2000-07-04 Jim Meyering <meyering@lucent.com>
42724 * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
42725 HAVE_MBRTOWC is set. Required at least for irix-5.6, which
42728 2000-07-03 Paul Eggert <eggert@twinsun.com>
42730 * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
42731 Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
42733 2000-07-03 Paul Eggert <eggert@twinsun.com>
42734 and Bruno Haible <haible@clisp.cons.org>
42736 * lib/quotearg.c (mbrtowc):
42737 Assign to *pwc, and return 1 only if result is nonzero.
42738 (iswprint): Use ISPRINT when substituting our own mbrtowc.
42740 2000-07-03 Jim Meyering <meyering@lucent.com>
42742 * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
42744 2000-07-03 Jim Meyering <meyering@lucent.com>
42746 * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
42747 This is necessary to get a definition of e.g., UTMP_FILE on
42751 2000-07-02 Jim Meyering <meyering@lucent.com>
42753 * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
42755 * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
42756 AC_LIBOBJ(function_name).
42757 * m4/chown.m4: Likewise.
42758 * m4/fnmatch.m4: Likewise.
42759 * m4/ftruncate.m4: Likewise.
42760 * m4/getgroups.m4: Likewise.
42761 * m4/getline.m4: Likewise.
42762 * m4/group-member.m4: Likewise.
42763 * m4/jm-macros.m4: Likewise.
42764 * m4/lstat.m4: Likewise.
42765 * m4/malloc.m4: Likewise.
42766 * m4/memcmp.m4: Likewise.
42767 * m4/nanosleep.m4: Likewise.
42768 * m4/putenv.m4: Likewise.
42769 * m4/realloc.m4: Likewise.
42770 * m4/regex.m4: Likewise.
42771 * m4/stat.m4: Likewise.
42772 * m4/strftime.m4: Likewise.
42774 2000-07-02 Jim Meyering <meyering@lucent.com>
42776 * lib/quotearg.c (mbstate_t): Don't define here.
42778 2000-07-02 Jim Meyering <meyering@lucent.com>
42780 * lib/nanosleep.c (SIGCONT): Define if not already defined.
42782 2000-07-01 Jim Meyering <meyering@lucent.com>
42784 * m4/uptime.m4: Put double quotes around use of $cross_compiling.
42786 2000-07-01 Jim Meyering <meyering@lucent.com>
42788 * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
42791 2000-07-01 Bruno Haible <haible@clisp.cons.org>
42793 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
42794 macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
42796 2000-07-01 Bruno Haible <haible@clisp.cons.org>
42798 * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
42799 per change in ../m4/ls-mntd-fs.m4.
42800 (read_filesystem_list): Ignore symbolic links.
42802 2000-06-29 Jim Meyering <meyering@lucent.com>
42804 * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
42805 for declaration of strcmp.
42807 * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
42809 * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
42810 Avoid warning by casting result to `char *' to remove `const'.
42812 2000-06-28 Jim Meyering <meyering@lucent.com>
42814 * m4/mbstate_t.m4: Use stdlib.h, not stdio.h. The latter is not
42815 included by quotearg.c, for which we perform this test. From
42818 2000-06-27 Bruno Haible <haible@clisp.cons.org>
42820 * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
42821 * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
42822 <utmpx.h> exists, put readutmp.o into LIBOBJS.
42824 2000-06-27 Bruno Haible <haible@clisp.cons.org>
42826 * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
42828 2000-06-26 Paul Eggert <eggert@twinsun.com>
42830 savedir now sets errno on failure and invokes xmalloc to get memory.
42831 Fix a couple of other minor bugs while we're at it.
42833 * lib/savedir.c (<unistd.h>): Do not include; there's no need.
42834 (NAMLEN): Remove macro.
42835 (malloc, realloc): Remove decls.
42836 (stpcpy): Likewise.
42837 ("xalloc.h"): Include.
42838 (NAME_SIZE_DEFAULT): New macro.
42839 (savedir): Use xmalloc / xrealloc to allocate memory.
42840 Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
42841 Skip "" directory entries.
42842 Use strlen to calculate directory entry length, since the old method
42843 is rarely used these days and isn't worth supporting.
42844 Don't use a pointer after freeing it.
42845 Check for integer overflow when calculating allocation size.
42846 Use memcpy to copy entries, instead of stpcpy.
42847 Set errno properly when returning NULL.
42848 Check for readdir error.
42850 2000-06-26 Jim Meyering <meyering@lucent.com>
42852 * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
42854 2000-06-25 Jim Meyering <meyering@lucent.com>
42856 * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
42857 Linux header bug when _XOPEN_SOURCE is defined to 500.
42859 2000-06-25 Bruno Haible <haible@clisp.cons.org>
42861 * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
42864 2000-06-25 Bruno Haible <haible@clisp.cons.org>
42866 * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
42868 Don't include <stdlib.h>. Don't declare malloc, realloc.
42870 2000-06-24 Jim Meyering <meyering@lucent.com>
42872 * m4/strerror_r.m4: Revive this file -- to try out an experimental
42873 version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
42874 for which strerror does return char*, but which lacks a conveniently
42875 accessible declaration of the function. If the compile-test says
42876 strerror_r doesn't work, then resort to a `run'-test that works on
42877 BeOS and segfaults on DEC Unix.
42879 2000-06-24 Jim Meyering <meyering@lucent.com>
42881 * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
42883 2000-06-23 Paul Eggert <eggert@twinsun.com>
42885 * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
42886 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it. Add check for iswprint.
42888 2000-06-23 Paul Eggert <eggert@twinsun.com>
42890 * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
42891 (mbrtowc, mbstate_t): Define substitutes if
42892 HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
42893 (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
42894 not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
42896 2000-06-23 Jim Meyering <meyering@lucent.com>
42898 * m4/afs.m4: Add missing AC_MSG_RESULT.
42899 Reported by Bruno Haible.
42901 * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
42902 Suggestion from Bruno Haible.
42904 2000-06-23 Jim Meyering <meyering@lucent.com>
42906 * lib/getpass.c: New file, from Bruno Haible. Required for BeOS.
42908 2000-06-21 Jim Meyering <meyering@lucent.com>
42910 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
42912 2000-06-21 Jim Meyering <meyering@lucent.com>
42914 * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
42915 (noinst_HEADERS): Add getstr.h.
42917 * lib/getline.c (getstr): Move into a separate file.
42918 * lib/getstr.c (getstr): New file, extracted from getline.c, with
42919 the following changes: new parameter, delim2; both delim[12]
42920 parameters have type `int', not `char'. The latter would lose
42921 with 8-bit delimiters.
42922 * lib/getstr.h: New file.
42924 2000-06-21 Bruno Haible <haible@clisp.cons.org>
42926 * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
42927 than 1024, return a memory chunk of least possible size, instead
42928 of size PATH_MAX + 2. In the loop, increment the size proportionally.
42929 Use free/xmalloc instead of xrealloc to avoid copying for very long
42932 2000-06-21 Bruno Haible <haible@clisp.cons.org>
42934 * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
42937 2000-06-21 Bruno Haible <haible@clisp.cons.org>
42939 * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
42940 address, not strdup. Include <stdlib.h> and don't declare free().
42942 2000-06-19 Jim Meyering <meyering@lucent.com>
42944 * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
42946 2000-06-18 Jim Meyering <meyering@lucent.com>
42948 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
42950 * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
42951 `checking whether...' message to be consistent with that of the
42954 2000-06-18 Jim Meyering <meyering@lucent.com>
42956 * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
42957 Besides, these days every porting target provides a mkdir function.
42959 * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
42960 needed. (this snippet comes from src/system.h).
42962 2000-06-16 Bruno Haible <haible@clisp.cons.org>
42964 * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
42966 2000-06-15 Paul Eggert <eggert@twinsun.com>
42968 * lib/human.c (adjust_value): New function.
42969 (human_readable_inexact): Apply rounding style even when
42970 printing approximate values.
42972 2000-06-14 Paul Eggert <eggert@twinsun.com>
42974 * lib/human.c (human_readable_inexact): Allow an input block
42975 size that is not a multiple of the output block size, and vice versa.
42976 Reported by Piergiorgio Sartor.
42978 2000-06-14 Paul Eggert <eggert@twinsun.com>
42980 * lib/getdate.y (get_date): Apply relative times after time
42981 zone indicator, not before. Reported by Todd A. Jacobs.
42983 2000-06-13 Jim Meyering <meyering@lucent.com>
42985 * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
42987 * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
42989 2000-06-12 Paul Eggert <eggert@twinsun.com>
42991 * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
42993 2000-06-12 Jim Meyering <meyering@lucent.com>
42995 * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
42996 AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
42998 * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
42999 the optional argument, `lib'.
43001 2000-06-08 Jim Meyering <meyering@lucent.com>
43003 * m4/largefile.m4: Remove file (now that it's part of autoconf).
43005 2000-06-04 Paul Eggert <eggert@twinsun.com>
43007 Rewrite largefile configuration so that we don't need to run
43008 getconf and don't need AC_CANONICAL_HOST. [I'm leaving the use of
43009 AC_CANONICAL_HOST in configure.in -- jmm]
43011 * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
43012 AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
43013 (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
43014 (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
43015 CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
43017 Instead of inspecting the output of getconf, try to compile the
43018 test program without and with the macro definition.
43019 (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
43020 for getconf. Instead, check for the needed flags by compiling
43023 2000-06-04 Paul Eggert <eggert@twinsun.com>
43025 * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
43027 2000-06-04 Jim Meyering <meyering@lucent.com>
43029 * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
43030 SunOS 4.1.4 for which gid_t is an unsigned type.
43032 2000-06-03 Jim Meyering <meyering@lucent.com>
43034 * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
43035 now that autoconf requires that.
43037 * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
43038 #undefs. E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
43039 Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
43041 2000-06-03 Jim Meyering <meyering@lucent.com>
43043 * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
43045 2000-06-03 Bruno Haible <haible@clisp.cons.org>
43047 * m4/glibc21.m4: New file.
43048 * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
43050 2000-06-03 Bruno Haible <haible@clisp.cons.org>
43052 * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
43053 newer, don't install charset.alias.
43054 * lib/config.charset: Change the Linux/glibc rules so they become empty
43055 on glibc-2.1 or newer.
43057 2000-06-02 Jim Meyering <meyering@lucent.com>
43059 * lib/mountlist.c: Back out last change. Instead, do this...
43060 * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
43061 me_dummy member using the same `ignore'-testing code.
43062 * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
43066 2000-05-29 Jim Meyering <meyering@lucent.com>
43068 * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
43069 mounts with the `ignore' attribute. Based on a patch from
43072 2000-05-28 Jim Meyering <meyering@lucent.com>
43074 * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
43075 jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
43076 * m4/stat.m4: Likewise.
43077 * m4/lstat.m4: Likewise.
43078 * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
43080 * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
43081 * m4/strerror_r.m4: Remove file (absorbed into autoconf).
43083 2000-05-26 Jim Meyering <meyering@lucent.com>
43085 * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
43087 2000-05-24 Jim Meyering <meyering@lucent.com>
43089 * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
43090 autoconf requires that.
43091 * m4/lib-check.m4: Likewise.
43092 * m4/jm-macros.m4: Likewise.
43093 * m4/strftime.m4: Likewise.
43095 * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
43096 AC_CHECK_DECLS, now that autoconf requires that.
43098 2000-05-22 Jim Meyering <meyering@lucent.com>
43100 * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
43101 * m4/lstat.m4: Likewise.
43103 2000-05-22 Jim Meyering <meyering@lucent.com>
43105 * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
43107 2000-05-20 Jim Meyering <meyering@lucent.com>
43109 * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
43110 (jm_PREREQ): Use it.
43112 2000-05-18 Jim Meyering <meyering@lucent.com>
43114 * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
43115 back, too, since it may have been modified by allocate_entry.
43116 (hash_delete): Rewrite to use neither the assignment operator
43117 nor the comma operator in an if-expression.
43119 2000-05-15 Paul Eggert <eggert@twinsun.com>
43122 <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
43123 Remove; no longer needed.
43124 "quotearg.h": Add include.
43125 (file_name): Do not bother to explicitly initialize to NULL; it's less
43126 efficient on some hosts.
43127 (close_stdout_status): Remove test as to whether stdout was already
43128 closed; it breaks for the case "echo x | sort >&-".
43129 Quote file name colons.
43130 Do not assume that _("write error") lacks format strings.
43132 2000-05-15 Jim Meyering <meyering@lucent.com>
43134 * lib/version-etc.c (version_etc_copyright): Update the copyright
43135 string used in all --version output.
43137 2000-05-14 Jim Meyering <meyering@lucent.com>
43139 * lib/closeout.c (close_stdout_set_file_name): New function.
43140 (close_stdout_status): Use new file-scoped global.
43141 Return right away if fstat says the stdout file descriptor is invalid.
43142 * lib/closeout.h (close_stdout_set_file_name): Declare.
43144 2000-05-10 Jim Meyering <meyering@lucent.com>
43146 * lib/closeout.c [default_exit_status]: New file-scoped variable.
43147 (close_stdout_set_status): New function.
43148 * lib/closeout.h (close_stdout_set_status): Declare.
43150 2000-05-09 Jim Meyering <meyering@lucent.com>
43152 * m4/gettext.m4: Rename this...
43153 * m4/libintl.m4: ...to this.
43155 2000-05-08 Jim Meyering <meyering@lucent.com>
43157 * lib/long-options.c: Don't include closeout.h.
43158 (parse_long_options): Don't call close_stdout for --version.
43160 2000-05-06 Paul Eggert <eggert@twinsun.com>
43162 * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
43163 be 500, instead of _GNU_SOURCE to be 1, to work around glibc
43164 2.1.3 bug. This avoids a clash when files like regex.c define
43167 2000-05-06 Jim Meyering <meyering@lucent.com>
43169 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
43170 (AC_REPLACE_FUNCS): Add strnlen.
43172 * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
43173 * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
43175 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
43176 AC_SEARCH_LIBS call for nanosleep.
43177 (LIB_NANOSLEEP): Set and AC_SUBST.
43179 2000-05-06 Jim Meyering <meyering@lucent.com>
43181 * lib/strnlen.c: Undefine __strnlen and strnlen.
43182 [!weak_alias]: Define __strnlen to strnlen.
43184 * lib/atexit.c: New file, from libiberty.
43186 2000-05-06 Jim Meyering <meyering@lucent.com>
43188 * lib/closeout.c (close_stdout_status): Also check for errors on the
43191 2000-05-05 Jim Meyering <meyering@lucent.com>
43193 * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
43194 AC_SEARCH_LIBS call for clock_gettime.
43195 (LIB_CLOCK_GETTIME): Set and AC_SUBST.
43197 * m4/search-libs.m4: Update from autoconf.
43199 su doesn't work on Solaris 2.6.
43200 * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
43201 <shadow.h>. Reported by Dragos Harabor.
43203 2000-05-05 Bruno Haible <haible@clisp.cons.org>
43205 * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
43206 memcpy instead of xmalloc, xrealloc, path_concat.
43207 (locale_charset): Treat empty environment variables as absent.
43208 (DIRECTORY_SEPARATOR, ISSLASH): New macros.
43210 2000-05-04 Jim Meyering <meyering@lucent.com>
43212 * lib/getopt.c: Update from glibc.
43213 * lib/obstack.c: Likewise.
43214 * lib/obstack.h: Likewise.
43215 * lib/regex.c: Likewise. NB: K&R compiler support is dropped for this
43218 * lib/regex.h: Likewise.
43219 * lib/strndup.c: Likewise.
43220 * lib/strnlen.c: New file, from glibc.
43222 2000-05-03 Jim Meyering <meyering@lucent.com>
43224 * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
43226 2000-05-02 Paul Eggert <eggert@twinsun.com>
43228 * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
43229 this is needed to make ftello visible (e.g. glibc 2.1.3). Use
43230 compile-time test, rather than inspecting host and OS, to
43231 decide whether to define _LARGEFILE_SOURCE.
43233 2000-05-01 Jim Meyering <meyering@lucent.com>
43235 * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
43237 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
43238 Based on a patch from Bruno Haible.
43240 2000-05-01 Jim Meyering <meyering@lucent.com>
43242 * lib/full-write.c (full_write): Remove `FIXME' part of comment.
43244 2000-04-29 Jim Meyering <meyering@lucent.com>
43246 * lib/path-concat.c: Declare strdup only if it's not defined.
43247 * lib/canon-host.c: Likewise.
43249 2000-04-28 Jim Meyering <meyering@lucent.com>
43251 * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
43252 avoid redefinition warning on some systems (HPUX). Otherwise, regex.h
43253 is included first, then limits.h is included by locale.h by libintl.h.
43254 From John David Anglin.
43256 2000-04-25 Jim Meyering <meyering@lucent.com>
43258 * lib/makepath.c (S_IRWXUGO): Define.
43259 (make_path): Always perform explicit chmod if MODE specifies any
43260 of the `special' permission bits. Prompted by a bug report against
43261 install from Mate Wierdl and Joost van Baal.
43263 2000-04-18 Jim Meyering <meyering@lucent.com>
43265 * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
43266 (jm_PREREQ): Use it.
43268 2000-04-18 Jim Meyering <meyering@lucent.com>
43270 * lib/README: New file.
43272 * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
43273 getpagesize. For BeOS. Based on a patch from Bruno Haible.
43275 2000-04-17 Jim Meyering <meyering@lucent.com>
43278 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
43279 actual #define via AH_VERBATIM. Don't need separate AC_DEFINE.
43280 Suggestion from Akim Demaille.
43282 2000-04-17 Jim Meyering <meyering@lucent.com>
43284 * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
43285 the definition of it to rpl_strftime also defined-away the system's
43288 2000-04-15 Jim Meyering <meyering@lucent.com>
43290 Use `C' to denote so-called `contiguous' files, the same way
43292 * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
43293 (ftypelet): Use S_ISCTG.
43294 From Michael Deutschmann.
43296 2000-04-14 Jim Meyering <meyering@lucent.com>
43298 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
43299 form of AC_DEFINE. Otherwise, the #ifndef in AH_VERBATIM gets
43302 2000-04-14 Jim Meyering <meyering@lucent.com>
43304 * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
43306 2000-04-13 Jim Meyering <meyering@lucent.com>
43308 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
43309 AH_VERBATIM to insert required #ifndef into config.h.in.
43310 Suggestion from Akim Demaille.
43312 2000-04-12 Jim Meyering <meyering@lucent.com>
43314 * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
43315 `AC_CHECK_HEADER' to check for locale.h. Thanks to a report from
43316 Christian Krackowizer.
43318 More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
43319 * m4/jm-macros.m4 (_GNU_SOURCE): Define.
43320 (AC_SYS_LARGEFILE): Require.
43321 (AM_C_PROTOTYPES): Require.
43323 2000-04-08 Jim Meyering <meyering@lucent.com>
43325 * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
43326 names don't conflict. Reported by Eli Zaretskii.
43328 2000-04-07 Jim Meyering <meyering@lucent.com>
43330 * lib/putenv.c: Move inclusion of errno.h so it follows that of
43331 sys/types.h, to work around system header problems on AIX 3.2.5.
43334 2000-04-07 Bruno Haible <haible@clisp.cons.org>
43336 * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
43337 bug. Deal with the different error behavior of Irix iconv.
43339 2000-04-05 Paul Eggert <eggert@twinsun.com>
43341 * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
43342 IRIX if the installer said otherwise.
43344 2000-04-05 Jim Meyering <meyering@lucent.com>
43346 Portability tweaks required for ultrix4.3.
43347 * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
43348 (jm_CHECK_DECLS): Add getutent to the list of functions.
43349 (_jm_DECL_HEADERS): Add utmpx.h.
43350 From John David Anglin.
43352 * m4/strftime.m4: Back out the 2000-04-02 change.
43353 Instead of that change, simply undefine putenv in the test program.
43355 2000-04-05 Jim Meyering <meyering@lucent.com>
43357 Portability tweaks required for ultrix4.3.
43358 * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
43360 * lib/readutmp.c: Include sys/types.h before sys/stat.h.
43361 * lib/canon-host.c: Declare strdup.
43362 * lib/path-concat.c: Likewise.
43363 From John David Anglin.
43365 2000-04-04 Jim Meyering <meyering@lucent.com>
43367 Be more DOS 8.3-friendly.
43368 * lib/ref-add.sin: Renamed from ref-add.sed.in.
43369 * lib/ref-del.sin: Renamed from ref-del.sed.in.
43370 * lib/Makefile.am: Reflect renaming.
43371 Reported by Eli Zaretskii.
43373 Use a temporary file name that won't clash with `charset.alias'
43374 in the DOS 8.3 name space.
43375 * lib/Makefile.am (charset_tmp): Define.
43376 (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
43377 (uninstall-local): Likewise.
43378 Reported by Eli Zaretskii.
43380 2000-04-03 Jim Meyering <meyering@lucent.com>
43382 * m4/gettext.m4: Fix typo in comment.
43384 * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
43385 textutils/configure.in). Suggestion from Paul Eggert.
43386 (AC_CHECK_FUNCS): Add nl_langinfo. (also from textutils/configure.in)
43388 2000-04-02 Paul Eggert <eggert@twinsun.com>
43390 * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
43391 variable in the shell rather than using putenv, which isn't
43392 portable. This avoids the configure-time inter-test dependency
43393 on the potentially-renamed putenv function.
43395 2000-03-30 Paul Eggert <eggert@twinsun.com>
43397 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
43398 before checking struct stat.st_blksize, so that
43399 HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
43401 2000-03-29 Paul Eggert <eggert@twinsun.com>
43403 * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
43404 since strftime.c uses HAVE_STRFTIME to decide whether to use
43405 the underlying strftime.
43407 2000-03-29 Paul Eggert <eggert@twinsun.com>
43409 * lib/time/strftime.c (my_strftime): Make sure we call the system
43410 strftime, not ourselves, when invoking the underlying strftime.
43412 2000-03-24 Jim Meyering <meyering@lucent.com>
43414 * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
43415 (charset_alias): Define.
43416 (install-exec-local): Factor out common code.
43417 (uninstall-local): Split lines longer than 80.
43418 (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
43419 (SUFFIXES): Define.
43420 (.sed.in.sed): New rule. Don't redirect directly to $@.
43421 (CLEANFILES): Add ref-add.sed and ref-del.sed.
43423 2000-03-19 Bruno Haible <haible@clisp.cons.org>
43425 * lib/config.charset: Output a line containing "Packages using this
43427 * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
43428 * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
43429 ref-del.sed): New rules.
43431 2000-03-17 Jim Meyering <meyering@lucent.com>
43433 * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
43434 Otherwise, include <strings.h>
43436 2000-03-17 Bruno Haible <haible@clisp.cons.org>
43438 * lib/unicodeio.c (utf8_wctomb): New function.
43439 (print_unicode_char): Pass the Unicode character to iconv in UTF-8
43440 format instead of in UCS-4 with platform dependent endianness.
43442 2000-03-10 Jim Meyering <meyering@lucent.com>
43444 * m4/lib-check.m4: Look for getspnam in -lgen, too.
43445 From Marco Franzen.
43447 2000-03-07 Paul Eggert <eggert@twinsun.com>
43449 * lib/savedir.c (savedir): Work even if directory size is
43450 negative; this can happen with some screwy NFS configurations.
43452 2000-03-06 Jim Meyering <meyering@lucent.com>
43454 * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
43455 if it's NULL (because we ran out of memory). From Bruno Haible.
43457 2000-03-05 Jim Meyering <meyering@lucent.com>
43459 * lib/localcharset.c ("path-concat.h"): Include.
43460 (get_charset_aliases): Use path_concat instead of ANSI string
43463 * lib/unicodeio.h (PARAMS): Define.
43464 Use it to guard prototype.
43466 2000-03-04 Jim Meyering <meyering@lucent.com>
43468 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
43469 for lib/localcharset.c.
43471 2000-03-04 Jim Meyering <meyering@lucent.com>
43473 * lib/Makefile.am (install-exec-local): Create $(libdir) before
43474 installing into it.
43475 (uninstall-local): Uncomment this rule so `make distcheck' works
43478 * lib/unicodeio.c (<errno.h>): Include it.
43479 (errno): Declare if not defined.
43481 * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
43483 * lib/config.charset: New version, incorporating remarks from a linux
43484 i18n mailing list. From Bruno Haible.
43486 2000-03-04 Bruno Haible <haible@clisp.cons.org>
43488 * m4/codeset.m4: New file.
43489 * m4/iconv.m4: New file.
43490 * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
43492 2000-03-03 Jim Meyering <meyering@lucent.com>
43494 * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
43496 2000-03-02 Jim Meyering <meyering@lucent.com>
43498 * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
43499 the messages come out on separate lines.
43501 * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
43502 rather than jm_CHECK_DECLARATIONS.
43503 * m4/decl.m4: Remove now-unused file.
43505 * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
43508 2000-03-02 Jim Meyering <meyering@lucent.com>
43510 * lib/Makefile.am (EXTRA_DIST): Add config.charset.
43512 2000-03-01 Jim Meyering <meyering@lucent.com>
43514 * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
43515 * lib/unicodeio.c: Likewise.
43517 2000-03-01 Bruno Haible <haible@clisp.cons.org>
43519 * lib/config.charset: New file.
43520 * lib/localcharset.c: New file.
43521 * lib/unicodeio.h, lib/unicodeio.c: New files.
43522 * lib/Makefile.am (DEFS): Add -DLIBDIR=...
43523 (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
43524 (noinst_HEADERS): Add unicodeio.h.
43525 (all-local, install-exec-local, charset.alias): New targets.
43527 2000-02-28 Paul Eggert <eggert@twinsun.com>
43529 * lib/quotearg.c (ALERT_CHAR): New macro.
43530 (quotearg_buffer_restyled): Use it.
43532 2000-02-27 Jim Meyering <meyering@lucent.com>
43534 * m4/check-decl.m4: Add getenv to the list.
43536 2000-02-27 Jim Meyering <meyering@lucent.com>
43538 * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
43539 Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
43541 * lib/backupfile.c: Guard inclusion of stdlib.h with
43542 `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
43543 Declare malloc if needed.
43545 * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
43546 `#ifndef HAVE_DECL..'
43547 now that autoconf always defines the HAVE_DECL_ symbols.
43548 * lib/human.c: Likewise.
43549 * lib/same.c: Likewise.
43550 * lib/strtoumax.c: Likewise.
43552 * lib/backupfile.c: Arrange for cpp to fail if the configure-time
43553 declaration check was not run.
43554 * lib/hash.c: Likewise.
43555 * lib/human.c: Likewise.
43556 * lib/same.c: Likewise.
43557 * lib/strtoumax.c: Likewise.
43559 * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
43560 `.', then first look up the entire `.'-containing string as a login
43563 2000-02-23 Jim Meyering <meyering@lucent.com>
43565 * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
43566 in place of my hack.
43568 2000-02-18 Paul Eggert <eggert@twinsun.com>
43570 * lib/getdate.y: Handle two-digit years with leading zeros correctly.
43571 (textint): New typedef.
43572 (parser_control): Member year changed from int to textint.
43574 (YYSTYPE): Removed; replaced by %union with int and textint members.
43575 (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
43576 tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
43577 tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
43578 (tSNUMBER, tUNUMBER): Now of type <textintval>.
43579 (date, number, to_year): Use width of number in digits, not its value,
43580 to determine whether it's a 2-digit year, or a 2-digit time.
43581 (yylex): Store number of digits of numeric tokens.
43582 Reported by John Kendall.
43584 (parser_control): Changed from struct parser_control to typedef (for
43585 consistency). All uses changed.
43587 (tID): Removed; not used.
43588 (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
43590 2000-02-14 Paul Eggert <eggert@twinsun.com>
43592 * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
43593 adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
43595 2000-02-12 Jim Meyering <meyering@lucent.com>
43597 * lib/userspec.c (ISDIGIT): Define it.
43598 (isdigit): Remove definition.
43599 (is_number): Use ISDIGIT, not isdigit.
43600 <libintl.h>: Include.
43601 (_ and N_): Define.
43602 (parse_user_spec): Mark translatable strings.
43604 2000-02-10 Jim Meyering <meyering@lucent.com>
43606 With these changes, nanosleep.[ch] are finally enough like the other
43607 lib/* replacement files to compile on a few more losing systems.
43609 * lib/nanosleep.h: Don't include config.h.
43610 Remove prototype from declaration of nanosleep.
43611 (PARAMS): Remove now-unneeded definition.
43612 * lib/nanosleep.c: #undef nanosleep.
43613 (rpl_nanosleep): Rename from nanosleep.
43615 2000-02-10 Jim Meyering <meyering@lucent.com>
43617 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
43618 gnu_nanosleep to rpl_nanosleep.
43620 2000-02-09 Jim Meyering <meyering@lucent.com>
43622 * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
43623 struct spwd, rather than in struct passwd. Reported by Gaël Quéri.
43625 2000-02-08 Akim Demaille <akim@epita.fr>
43627 * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
43628 `[' and `]' and remove uses of `changequote'.
43629 (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
43630 (AC_SYS_LARGEFILE): Likewise.
43631 * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
43632 * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
43634 * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
43635 * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
43636 * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
43637 * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
43639 2000-02-05 Jim Meyering <meyering@lucent.com>
43641 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
43642 Remove explicit use of AC_HEADER_TIME. It is required by
43643 jm_CHECK_TYPE_STRUCT_TIMESPEC. Using AC_HEADER_TIME and
43644 `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
43645 in autoconf whereby the expansion of the latter ended up preceding
43646 the expansion of its prerequisite, AC_HEADER_TIME.
43647 Reported by Volker Borchert.
43649 2000-02-03 Jim Meyering <meyering@lucent.com>
43651 * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
43653 2000-02-03 Jim Meyering <meyering@lucent.com>
43655 * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
43656 rather than with `#if HAVE_UTMPNAME'.
43658 2000-02-02 Jim Meyering <meyering@lucent.com>
43660 * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
43661 definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
43662 Reported by Eli Zaretskii.
43664 2000-02-01 Jim Meyering <meyering@lucent.com>
43666 * lib/readutmp.h (UT_USER): Add parens. From Andreas Schwab.
43668 2000-01-31 Jim Meyering <meyering@lucent.com>
43670 * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
43671 functions. Add the time.h and sys/time.h headers along with the
43672 AC_REQUIRE'ment of AC_HEADER_TIME.
43674 2000-01-31 Jim Meyering <meyering@lucent.com>
43676 * lib/nanosleep.h (nanosleep): Guard declaration with
43677 `#if ! HAVE_DECL_NANOSLEEP'.
43678 Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
43679 the declaration in that vendor's sys/timers.h.
43680 Reported by Christian Krackowizer.
43682 * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
43683 inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
43684 (ISPRINT): Likewise.
43685 Reported by Tom Tromey.
43687 2000-01-30 Jim Meyering <meyering@lucent.com>
43689 * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
43691 * m4/prereq.m4 (utmp_includes): Define.
43692 Check for ut_user and ut_name members in both struct utmpx
43695 2000-01-30 Jim Meyering <meyering@lucent.com>
43697 * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
43698 hard-coding uses of ->ut_name. The latter doesn't work with new Linux
43699 header files where only utmpx.ut_user is declared.
43701 * lib/readutmp.h (UT_USER): Define.
43703 2000-01-29 Jim Meyering <meyering@lucent.com>
43705 * m4/lib-check.m4: New file containing library-related checks from
43706 fileutils and sh-utils (textutils had none).
43708 2000-01-28 Jim Meyering <meyering@lucent.com>
43710 * m4/perl.m4: Change format of warning message to look more like that
43711 from the missing script. Suggestion from François Pinard.
43713 2000-01-25 Jim Meyering <meyering@lucent.com>
43715 * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
43716 well as time.h in the compile check.
43717 * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
43718 Fix typo in cross-compiling case: s/yes/no/.
43720 2000-01-23 Jim Meyering <meyering@lucent.com>
43722 * m4/jm-macros.m4: Move df-related tests here from
43723 fileutils/configure.in
43725 * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
43726 (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
43728 * m4/fsusage.m4: New file. Extracted from fileutils/configure.in.
43729 s/space/ac_fsusage_space/.
43730 (jm_FILE_SYSTEM_USAGE): Take two parameters.
43732 * m4/ftruncate.m4: New file (derived from part of
43733 fileutils/configure.in).
43734 * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
43735 (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
43737 * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
43738 AC_SUBST these here, rather than just in sh-util/configure.in, so
43739 that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
43741 (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
43742 (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
43743 (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
43744 (AC_SUBST(POW_LIBM)): Likewise.
43745 (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
43747 2000-01-23 Jim Meyering <meyering@lucent.com>
43749 * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
43752 2000-01-22 Jim Meyering <meyering@lucent.com>
43754 * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
43756 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
43758 * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
43760 (AC_CHECK_HEADERS): Likewise for sh-utils.
43761 (AC_CHECK_HEADERS): Likewise for textutils.
43762 Merge the three lists of headers.
43764 * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro. Parts moved here
43765 from fileutils' configure.in.
43767 * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
43768 code. Moved tests into their own function (_jm_DECL_HEADERS) in
43771 * m4/check-decl.m4: Use #if rather than #ifdef.
43772 Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
43773 (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
43774 (_jm_DECL_HEADERS): Define new function.
43775 (jm_CHECK_DECLARATIONS): Require it.
43777 2000-01-22 Jim Meyering <meyering@lucent.com>
43779 * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
43780 [! HAVE_DECL_STRTOULL]: Declare strtoull.
43781 Required for some AIX systems. Reported by Christian Krackowizer.
43782 [TESTING] (main): New function.
43784 1997-10-17 Eli Zaretskii <eliz@is.elta.co.il>
43785 * lib/dirname.c (dir_name): Support for DOS-style file names with drive
43788 * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
43791 * lib/strverscmp.c (ISDIGIT): Define.
43792 (strverscmp): Use ISDIGIT, not isdigit.
43794 2000-01-19 Jim Meyering <meyering@lucent.com>
43796 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
43797 Use AC_HEADER_TIME. Volker Borchert reported that OpenBSD-2.3/sparc
43798 defines `struct timespec' in <sys/time.h>
43800 * m4/c-bs-a.m4: Remove uses of changequote altogether.
43801 Thanks to Akim for explaining.
43803 2000-01-17 Paul Eggert <eggert@twinsun.com>
43805 * lib/nanosleep.c (nanosleep):
43806 Don't use SA_INTERRUPT to decide whether to call sigaction, as
43807 POSIX.1 doesn't require SA_INTERRUPT and some systems
43808 (e.g. Solaris 7) don't define it. Use SA_NOCLDSTOP instead;
43809 it's been part of POSIX.1 since day 1 (in 1988).
43811 2000-01-17 Jim Meyering <meyering@lucent.com>
43813 * lib/interlock: Remove unused file. Reported by François Pinard.
43815 2000-01-16 Paul Eggert <eggert@twinsun.com>
43817 * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
43818 alert, backslash, formfeed, and vertical tab unnecessarily in
43819 shell quoting style.
43821 2000-01-16 Jim Meyering <meyering@lucent.com>
43823 * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
43824 AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
43825 jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
43826 AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
43828 2000-01-16 Jim Meyering <meyering@lucent.com>
43830 * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
43831 because the latter didn't work.
43833 2000-01-15 Jim Meyering <meyering@lucent.com>
43835 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
43836 (AC_REPLACE_FUNCS): Add memcpy and memset.
43837 Add these, too: stime strcspn stpcpy strstr strtol strtoul.
43839 Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
43841 2000-01-12 Jim Meyering <meyering@lucent.com>
43843 * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
43844 (jm_PREREQ): Use it.
43845 (jm_PREREQ_READUTMP): New macro.
43846 (jm_PREREQ): Use it.
43848 2000-01-11 Paul Eggert <eggert@twinsun.com>
43850 Quote multibyte characters correctly.
43851 * m4/c-bs-a.m4: New file.
43852 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
43853 (jm_PREREQ): Use it.
43855 2000-01-11 Paul Eggert <eggert@twinsun.com>
43857 * m4/uintmax_t.m4: Port to autoconf 2.13.
43859 2000-01-08 Jim Meyering <meyering@ascend.com>
43861 * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
43862 * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
43864 2000-01-04 Jim Meyering <meyering@ascend.com>
43866 * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
43867 jm_STRUCT_DIRENT_D_TYPE.
43868 * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
43869 jm_STRUCT_DIRENT_D_INO.
43870 * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
43872 * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
43874 * m4/utime.m4: Likewise.
43876 * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
43877 * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
43879 2000-01-03 Paul Eggert <eggert@twinsun.com>
43881 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
43882 (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
43884 2000-01-02 Jim Meyering <meyering@ascend.com>
43886 * m4/search-libs.m4: Escape `$' in $3 of dnl comment. I no longer
43887 remember if this is necessary.
43889 1999-12-26 Jim Meyering <meyering@ascend.com>
43891 * m4/jm-macros.m4: Use it here.
43892 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
43894 1999-12-23 Jim Meyering <meyering@ascend.com>
43896 * m4/jm-macros.m4: Check for clock_gettime (moved from
43897 fileutils/configure.in)
43898 Check for gettimeofday.
43900 1999-12-20 Jim Meyering <meyering@ascend.com>
43902 * m4/strftime.m4: Remove kludge, now that I'm using the fixed
43903 autoconf-2.14a-1999-12-20.
43905 1999-12-19 Jim Meyering <meyering@ascend.com>
43907 * m4/lstat-slash.m4: New file.
43908 * m4/jm-macros.m4: Use the new macro:
43909 jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
43911 1999-12-07 Jim Meyering <meyering@ascend.com>
43913 * m4/perl.m4: Require that File::Compare be available, too.
43914 Too many systems seem to lack it.
43916 * m4/strftime.m4: Add checks for most of the cpp macros tested in
43917 GNU's strftime.c. Prompted by a patch from Paul Eggert.
43919 1999-11-18 Paul Eggert <eggert@twinsun.com>
43921 * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
43922 problem with the QNX 4.25 shell, which doesn't propagate exit
43923 status of failed commands inside shell assignments.
43925 1999-11-17 Jim Meyering <meyering@ascend.com>
43927 * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
43929 1999-11-07 Jim Meyering <meyering@ascend.com>
43931 * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
43933 1999-11-06 Jim Meyering <meyering@ascend.com>
43935 * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
43936 * m4/jm-macros.m4 (jm_MACROS): Use it here.
43938 1999-11-05 Jim Meyering <meyering@ascend.com>
43940 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
43941 configure.in of textutils, fileutils, and sh-utils into this one
43942 (shared between those packages) file.
43943 Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
43944 AC_STRUCT_ST_BLKSIZE.
43946 1999-11-03 Jim Meyering <meyering@ascend.com>
43948 * m4/ssize_t.m4: Remove file. No longer needed since the new version
43949 of AC_CHECK_TYPE checks includes unistd.h.
43950 * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
43951 Suggestion from Akim Demaille.
43953 1999-10-30 Jim Meyering <meyering@ascend.com>
43955 * m4/uintmax_t.m4: Require 2.14a. Remove backslash before backtick in
43957 * m4/ls-mntd-fs.m4: Likewise.
43958 * m4/jm-macros.m4: Likewise. Also, use AC_TYPE_SSIZE_T instead
43959 * m4/jm-winsz1.m4: Likewise.
43961 * m4/const.m4: Remove file, since the fix made it into the experimental
43962 version of autoconf.
43963 * m4/mktime.m4: Likewise.
43965 * m4/check-type.m4: Remove file, now that the latest version of
43966 AC_CHECK_TYPE takes a third arg to specify additional #includes.
43968 * m4/ssize_t.m4: New file, requires experimental version of autoconf.
43969 * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
43972 1999-10-04 Jim Meyering <meyering@ascend.com>
43974 * m4/jm-macros.m4: Don't require autoconf-2.14.1.
43976 1999-09-22 Paul Eggert <eggert@twinsun.com>
43978 * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
43979 2.95.1 bug with HP-UX 10.20.
43981 1999-09-17 Jim Meyering <meyering@ascend.com>
43983 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
43984 Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
43985 due to missing strdup (against sh-utils-2.0).
43987 1999-08-29 Jim Meyering <meyering@ascend.com>
43989 * m4/jm-macros.m4: Require jm_BISON.
43990 * m4/bison.m4: New file.
43992 1999-08-17 Paul Eggert <eggert@twinsun.com>
43994 * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
43995 in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
43997 1999-08-05 Jim Meyering <meyering@ascend.com>
43999 * m4/getline.m4: Rename test file from conftestdata to conftest.data
44000 to avoid conflicts with `conftest' on 8+3 filesystems.
44001 Suggestion from Eli Zaretskii.
44003 1999-08-04 Jim Meyering <meyering@ascend.com>
44005 * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
44006 fileutils and sh-utils (textutils's getline test was inadequate).
44007 (AM_FUNC_GETLINE): Run this test.
44008 (AC_CHECK_FUNCS): Check for getdelim.
44009 Reported by Bob Proulx.
44011 1999-08-02 Jim Meyering <meyering@ascend.com>
44013 * m4/jm-macros.m4: Add a comment.
44015 1999-08-01 Paul Eggert <eggert@twinsun.com>
44017 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
44018 <inttypes.h> defines strtoumax as a macro (and not as a
44021 1999-08-01 Paul Eggert <eggert@twinsun.com>
44023 * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
44024 that we can shift, multiply and divide unsigned long long
44025 values; Ultrix cc can't do it.
44027 1999-08-01 Paul Eggert <eggert@twinsun.com>
44029 * m4/mktime.m4: New file, which is a preview of what should appear
44030 in the next public autoconf release.
44032 1999-08-01 Paul Eggert <eggert@twinsun.com>
44034 * m4/lfs.m4: Remove this file.
44035 * m4/largefile.m4: New file. It contains the old contents of
44036 lfs.m4, except that all names with prefix AC_LFS have been
44037 changed to use the prefix AC_SYS_LARGEFILE instead, to be
44038 compatible with future autoconf versions. Also, some minor m4
44039 quoting problems have been fixed.
44041 1999-08-01 Paul Eggert <eggert@twinsun.com>
44043 * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
44044 Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
44045 (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
44046 and simplify the shell code.
44048 1999-08-01 Jim Meyering <meyering@ascend.com>
44050 * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
44053 1999-07-20 Jim Meyering <meyering@ascend.com>
44055 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
44057 1999-07-15 Jim Meyering <meyering@ascend.com>
44059 * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
44061 1999-05-22 Jim Meyering <meyering@ascend.com>
44063 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
44065 1999-05-20 Jim Meyering <meyering@ascend.com>
44067 * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
44068 Add a colon after each `then' in case $4 is empty.
44070 1999-05-16 Jim Meyering <meyering@ascend.com>
44072 * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
44074 1999-05-10 Jim Meyering <meyering@ascend.com>
44076 * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
44078 * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
44081 1999-05-10 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
44083 * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
44085 1999-05-04 Paul Eggert <eggert@twinsun.com>
44087 * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
44088 not CPPFLAGS, so that linking works correctly in IRIX.
44090 1999-04-30 Paul Eggert <eggert@twinsun.com>
44092 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
44094 1999-04-20 Paul Eggert <eggert@twinsun.com>
44096 * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
44097 long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
44098 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
44099 jm_AC_TYPE_UNSIGNED_LONG_LONG.
44100 * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
44102 * m4/lfs.m4: Port to AIX and HP-UX. Support cross-compilation.
44104 1999-04-20 Jim Meyering <meyering@ascend.com>
44106 * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
44107 AC_REPLACE xstroull if necessary. From Paul Eggert.
44108 (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
44110 1999-04-18 Jim Meyering <meyering@ascend.com>
44112 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
44113 * m4/jm-macros.m4: Use it.
44115 1999-04-06 Jim Meyering <meyering@ascend.com>
44117 * m4/strftime.m4: Remove test for %f.
44119 1999-03-29 Jim Meyering <meyering@ascend.com>
44121 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
44122 superset of the AC_TYPE_* checks in the textutils, fileutils,
44123 and sh-utils, plus AC_TYPE_PID_T. Paul Eggert suggested adding
44126 1999-03-28 Jim Meyering <meyering@ascend.com>
44128 * m4/jm-macros.m4: Define GNU_PACKAGE here.
44129 Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
44130 replaced e.g., in the *.sh files of the sh-utils.
44132 1999-03-20 Jim Meyering <meyering@ascend.com>
44134 * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
44135 * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
44136 Don't depend on AM_GLIBC. Suggestions from Alain Magloire.
44138 1999-03-19 Jim Meyering <meyering@ascend.com>
44140 * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
44142 1999-03-12 Jim Meyering <meyering@ascend.com>
44144 * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
44146 1999-03-07 Jim Meyering <meyering@ascend.com>
44148 * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
44151 1999-02-17 Jim Meyering <meyering@ascend.com>
44153 * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
44154 brackets in macro definition. From Eli Zaretskii and Alain Magloire.
44156 1999-02-07 Jim Meyering <meyering@ascend.com>
44158 * m4/group-member.m4: New file -- extracted from sh-utils'
44161 1999-02-05 Eli Zaretskii <eliz@is.elta.co.il>
44162 * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
44164 1999-02-06 Jim Meyering <meyering@ascend.com>
44166 * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
44167 * m4/fnmatch.m4: Likewise.
44168 * m4/getgroups.m4: Likewise.
44169 * m4/lstat.m4: Likewise.
44170 * m4/malloc.m4: Likewise.
44171 * m4/putenv.m4: Likewise.
44172 * m4/realloc.m4: Likewise.
44173 * m4/regex.m4: Likewise.
44174 * m4/stat.m4: Likewise.
44175 * m4/strftime.m4: Likewise.
44176 Suggestion from Alain Magloire.
44178 * m4/chown.m4: Use `.$ac_objext', not `.o'.
44179 * m4/fnmatch.m4: Likewise.
44180 * m4/getgroups.m4: Likewise.
44181 * m4/getline.m4: Likewise.
44182 * m4/lstat.m4: Likewise.
44183 * m4/malloc.m4: Likewise.
44184 * m4/memcmp.m4: Likewise.
44185 * m4/putenv.m4: Likewise.
44186 * m4/realloc.m4: Likewise.
44187 * m4/regex.m4: Likewise.
44188 * m4/stat.m4: Likewise.
44189 * m4/strftime.m4: Likewise.
44190 Suggestion from Alain Magloire.
44192 * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
44195 * m4/regex.m4: Add a run-time Test for proper operation of
44196 re_compile_pattern.
44198 1999-01-31 Jim Meyering <meyering@ascend.com>
44200 * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
44202 1999-01-30 Jim Meyering <meyering@ascend.com>
44204 * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
44206 * m4/jm-mktime.m4: Make this a wrapper around the official
44207 AM_FUNC_MKTIME rather than my private copy, now that the official one
44209 * m4/mktime.m4: Remove file.
44211 * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
44212 * m4/uptime.m4: Likewise.
44213 * m4/uintmax_t.m4: Likewise.
44215 1999-01-28 Jim Meyering <meyering@ascend.com>
44217 * m4/jm-macros.m4: Use jm_AFS.
44218 * m4/afs.m4: New file (from fileutils' configure.in).
44220 * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
44221 * m4/chown.m4: Likewise.
44222 * m4/d-ino.m4: Likewise.
44223 * m4/d-type.m4: Likewise.
44224 * m4/fnmatch.m4: Likewise.
44225 * m4/getgroups.m4: Likewise.
44226 * m4/gettext.m4: Likewise.
44227 * m4/jm-mktime.m4: Likewise.
44228 * m4/jm-winsz2.m4: Likewise.
44229 * m4/lcmessage.m4: Likewise.
44230 * m4/ls-mntd-fs.m4: Likewise.
44231 * m4/malloc.m4: Likewise.
44232 * m4/memcmp.m4: Likewise.
44233 * m4/putenv.m4: Likewise.
44234 * m4/realloc.m4: Likewise.
44235 * m4/st_mtim.m4: Likewise.
44236 * m4/strftime.m4: Likewise.
44238 1999-01-16 Jim Meyering <meyering@ascend.com>
44240 * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
44241 (ARGMATCH_DIE_DECL): Define.
44243 1999-01-12 Jim Meyering <meyering@ascend.com>
44245 * m4/Makefile.am.in: Rewrite to avoid using fmt.
44246 Reported by Lars Hecking.
44248 1999-01-10 Jim Meyering <meyering@ascend.com>
44250 * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
44252 * m4/inttypes_h.m4: Likewise.
44253 * m4/lstat.m4: Likewise.
44254 * m4/malloc.m4: Likewise.
44255 * m4/readdir.m4: Likewise.
44256 * m4/realloc.m4: Likewise.
44257 * m4/st_dm_mode.m4: Likewise.
44258 * m4/stat.m4: Likewise.
44259 * m4/utimbuf.m4: Likewise.
44260 * m4/utimes.m4: Likewise.
44262 * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
44263 AC_CHECK_FUNCS hack. Now, it's still a hack, but at least the
44264 comments in config.h.in are meaningful.
44266 * m4/jm-macros.m4: Require autoconf-2.13 here.
44268 * m4/regex.m4: By default, don't use the included regex.c on systems
44269 with glibc 2. Suggestion from Uli Drepper.
44271 1999-01-02 Jim Meyering <meyering@ascend.com>
44273 * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
44275 1998-12-18 Jim Meyering <meyering@ascend.com>
44277 * m4/Makefile.am.in (Makefile.am): Simplify rule.
44278 Based on a suggestion from Lars Hecking.
44280 1998-11-16 Paul Eggert <eggert@twinsun.com>
44282 * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
44284 1998-11-16 Jim Meyering <meyering@ascend.com>
44286 * m4/lfs.m4: Double-quote the `uname...` expression.
44288 1998-11-14 Jim Meyering <meyering@ascend.com>
44290 * m4/lstat.m4: Correct comment. POSIX does not permit it to succeed.
44291 * m4/stat.m4: Likewise.
44293 1998-11-03 Jim Meyering <meyering@ascend.com>
44295 * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
44296 * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
44298 1998-10-18 Jim Meyering <meyering@ascend.com>
44300 * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
44302 1998-10-17 Jim Meyering <meyering@ascend.com>
44304 * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
44305 include, though we still hard-code the `require'-like AC_CHECK_HEADERS
44306 calls for those previously hard-coded headers. Instead, take a new
44308 (jm_CHECK_DECLARATIONS): Reflect interface change.
44309 * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
44310 (jm_CHECK_DECL_LOCALTIME_R): New macro.
44312 * m4/mktime.m4: Test for spring-forward gap before long-running test.
44314 1998-10-14 Jim Meyering <meyering@ascend.com>
44316 * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
44317 instead of "TZ=America/Vancouver". From Paul Eggert.
44319 1998-10-11 Jim Meyering <meyering@ascend.com>
44321 * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
44322 This adds a test for a recently added compatibility fix for mktime.c.
44323 * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
44325 1998-09-27 Jim Meyering <meyering@ascend.com>
44327 * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
44329 * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro. Extracted from
44330 ../configure.in, including a change from Gordon Matzigkeit to allow
44331 cross-compiling for the Hurd.
44333 * m4/glibc.m4: New file/macro to test for the GNU C Library
44334 versions 1 and 2. From Gordon Matzigkeit.
44337 1998-09-21 Jim Meyering <meyering@ascend.com>
44339 * m4/chown.m4: Declare locals: before, after. From Andries Brouwer.
44341 1998-08-18 Paul Eggert <eggert@twinsun.com>
44343 Port nanosecond-resolution times to UnixWare 2.1.2 and
44344 pedantic Solaris 2.6.
44346 * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
44348 * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
44349 Generate name of ns member, instead of just 1 or undef.
44350 Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
44352 1998-08-15 Jim Meyering <meyering@ascend.com>
44354 * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
44355 * m4/check-type.m4: New file. Replacement for AC_CHECK_TYPE.
44356 * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
44357 instead of jm_TYPE_SSIZE_T.
44359 1998-08-12 Jim Meyering <meyering@ascend.com>
44361 * m4/st_dm_mode.m4: New file. From Johan Danielsson.
44363 1998-08-02 Jim Meyering <meyering@ascend.com>
44365 * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
44366 in acconfig.h manually.
44368 1998-07-31 Paul Eggert <eggert@twinsun.com>
44370 * m4/st_mtim.m4: New file.
44372 1998-07-28 Jim Meyering <meyering@ascend.com>
44374 * m4/utimes.m4: Undef stat.
44376 1998-07-25 Jim Meyering <meyering@ascend.com>
44378 * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
44379 * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
44381 1998-07-09 Manfred Hollstein <manfred@s-direktnet.de>
44383 * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
44384 uid and gid actually remain unchanged.
44386 1998-07-07 Jim Meyering <meyering@ascend.com>
44388 * m4/jm-glibc-io.m4: Remove fclose_unlocked.
44390 1998-07-04 Jim Meyering <meyering@ascend.com>
44392 * m4/regex.m4: Use syscmd, ifelse, and sysval. Mainly as an exercise
44393 to prove that this macro can be used in packages without regex.c.
44395 1998-07-04 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
44397 * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
44400 1998-07-03 Jim Meyering <meyering@ascend.com>
44402 * m4/gettext.m4: Add -lintl if it's found to be necessary.
44404 * m4/gettext.m4: New file -- from gettext-0.10.35.
44405 * m4/lcmessage.m4: Likewise.
44406 * m4/progtest.m4: Likewise.
44408 * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
44409 * m4/jm-macros.m4: Require the new macro.
44411 1998-06-29 Jim Meyering <meyering@ascend.com>
44413 * m4/fstypename.m4: Include sys/param.h. NetBSD 1.3.1 requires this
44414 for the definition of NGROUPS (used in a system header included
44417 1998-06-28 Jim Meyering <meyering@ascend.com>
44419 * m4/ls-mntd-fs.m4: New file.
44420 * m4/fstypename.m4: New file.
44422 * m4/jm-macros.m4: Require the new macro.
44423 * m4/jm-glibc-io.m4: New file.
44425 1998-05-19 Jim Meyering <meyering@ascend.com>
44427 * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
44428 * m4/lchown.m4: New file.
44430 * m4/Makefile.am.in: New file.
44431 * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
44433 1998-05-14 Jim Meyering <meyering@ascend.com>
44435 * m4/Makefile.am (EXTRA_DIST): Add them.
44436 * m4/jm-macros.m4: New file.
44437 * m4/utimbuf.m4: New file.
44439 1998-05-12 Jim Meyering <meyering@ascend.com>
44441 * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
44443 1998-05-11 Jim Meyering <meyering@ascend.com>
44445 * m4/isc-posix.m4: New file.
44447 1998-05-10 Jim Meyering <meyering@ascend.com>
44449 * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
44451 1998-05-09 Jim Meyering <meyering@ascend.com>
44453 * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
44454 (EXTRA_DIST): Remove mktime.m4, now that the new version is included
44457 * m4/ssize_t.m4: New file.
44458 * m4/mktime.m4: Remove file -- the new automake has this now.
44460 1998-04-26 Jim Meyering <meyering@ascend.com>
44462 * m4/assert.m4: New file.
44463 * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
44465 1998-04-05 Jim Meyering <meyering@ascend.com>
44467 * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
44468 (jm_PREREQ): Use it here.
44470 1998-03-23 Jim Meyering <meyering@eng.ascend.com>
44472 * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
44475 1998-03-15 Jim Meyering <meyering@eng.ascend.com>
44477 * m4/prereq.m4: New file.
44478 * m4/error.m4: New file.
44479 * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
44481 1998-02-07 Jim Meyering <meyering@eng.ascend.com>
44483 * m4/getline.m4: Don't set am_cv_func_working_getline before the
44484 cache-check for the same variable -- that defeated the purpose of
44485 the test; the test program was never run. This was a problem only
44486 on systems with losing getline functions -- HP-UX 10.20 is one.
44487 Reported by Bjorn Helgaas.
44489 1998-02-06 Jim Meyering <meyering@eng.ascend.com>
44491 * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
44493 1998-01-10 Jim Meyering <meyering@na-net.ornl.gov>
44495 * m4/Makefile.am (EXTRA_DIST): Add const.m4.
44497 * m4/const.m4: New file. Use an initializer in this declaration
44498 typedef int charset[2]; const charset x;
44499 Reported by Bob Glickstein.
44501 1997-12-21 Jim Meyering <meyering@na-net.ornl.gov>
44503 * m4/chown.m4: Fix reversed types on -1 args to chown.
44506 1997-12-14 Jim Meyering <meyering@na-net.ornl.gov>
44508 * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
44509 Add lseek and memchr.
44511 * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
44512 T.E.Dickey <dickey@clark.net> said that some older preprocessors
44513 have a 20-character limit on names.
44515 1997-11-30 Jim Meyering <meyering@na-net.ornl.gov>
44517 * m4/inttypes_h.m4: New file.
44518 * m4/uintmax_t.m4: New file.
44519 * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
44528 Copyright (C) 1997-2008 Free Software Foundation, Inc.
44530 Copying and distribution of this file, with or without
44531 modification, are permitted provided the copyright notice
44532 and this notice are preserved.