1 2008-10-11 Yoann Vandoorselaere <yoann@prelude-ids.org>
2 Bruno Haible <bruno@clisp.org>
4 Provide a Win32 implementation of the 'cond' module.
5 * lib/glthread/cond.h [USE_WIN32]: New implementation.
6 * lib/glthread/cond.c (glthread_cond_init_func,
7 glthread_cond_wait_func, glthread_cond_timedwait_func,
8 glthread_cond_signal_func, glthread_cond_broadcast_func,
9 glthread_cond_destroy_func) [USE_WIN32]: New functions.
10 * modules/cond (Dependencies): Add gettimeofday.
12 2008-10-11 Bruno Haible <bruno@clisp.org>
14 Make sleep work on older versions of mingw.
15 * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
16 only whether it exists.
17 * doc/posix-functions/sleep.texi: Mention the problem with older
20 2008-10-11 Bruno Haible <bruno@clisp.org>
22 New module 'shutdown'.
23 * modules/shutdown: New file.
24 * lib/sys_socket.in.h (shutdown): New declaration.
25 * lib/winsock.c (shutdown): New function.
26 * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
28 * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
29 * doc/posix-functions/shutdown.texi: Document the new module.
31 2008-10-11 Jim Meyering <meyering@redhat.com>
33 * lib/fclose.c: Fix typo in comment: s/close/fclose/.
35 2008-10-11 Bruno Haible <bruno@clisp.org>
38 * modules/fclose: New file.
39 * lib/stdio.in.h (fclose): New declaration.
40 * lib/fclose.c: New file.
41 * m4/fclose.m4: New file.
42 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
44 * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
45 * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
47 * modules/close (Depends-on): fclose.
48 * doc/posix-functions/fclose.texi: Mention the problem on Windows.
50 2008-10-11 Bruno Haible <bruno@clisp.org>
52 * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
53 set errno and don't call _close.
55 2008-10-10 Bruno Haible <bruno@clisp.org>
57 * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
58 ACL, not afterwards. Fixes test failure on Cygwin.
60 2008-10-09 Ben Pfaff <blp@gnu.org>
62 * build-aux/announce-gen: Fix gnulib version related part of usage
63 message. Die with a useful error message if no tarballs are
66 2008-10-10 Jim Meyering <meyering@redhat.com>
68 bootstrap: use git's --depth=N option only if it's supported
69 * build-aux/bootstrap: Work with git-1.4.4.4, which does not
70 recognize the --depth option. Reported by Pádraig Brady.
72 2008-10-09 Bruno Haible <bruno@clisp.org>
75 * modules/ioctl: New file.
76 * lib/sys_socket.in.h (ioctl): Remove declaration.
77 * lib/winsock.c: Include <sys/ioctl.h>.
78 (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
79 * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
80 gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
81 * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
82 * doc/posix-functions/ioctl.texi: Mention the new module.
84 2008-10-09 Bruno Haible <bruno@clisp.org>
86 New module 'sys_ioctl'.
87 * lib/sys_ioctl.in.h: New file.
88 * m4/sys_ioctl_h.m4: New file.
89 * modules/sys_ioctl: New file.
90 * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
92 2008-10-09 Bruno Haible <bruno@clisp.org>
94 * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
95 * lib/winsock.c: Include <stdarg.h>.
96 (rpl_ioctl): Change to second argument 'int' and then varargs.
98 2008-10-09 Bruno Haible <bruno@clisp.org>
100 * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
101 when the sys_socket module is present and the system has <winsock2.h>.
103 2008-10-09 Bruno Haible <bruno@clisp.org>
105 * doc/posix-functions/close.texi: Mention module 'close' instead of
108 2008-10-09 Bruno Haible <bruno@clisp.org>
110 * doc/glibc-headers/sys_ioctl.texi: New file.
111 * doc/gnulib.texi: Include it.
113 2008-10-09 Paolo Bonzini <bonzini@gnu.org>
114 Bruno Haible <bruno@clisp.org>
116 Combine the two replacements of 'close'.
117 * lib/sys_socket.in.h (close): Define to a reminder to include
119 (_gl_close_fd_maybe_socket): New declaration.
120 (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
121 * lib/winsock.c (close): Remove undefinition.
122 (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
123 needed for the gnulib module 'close'.
124 * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
125 define to an error symbol or to a warning, if suitable.
126 * lib/close.c: Include <sys/socket.h>.
127 (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
128 * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
129 UNISTD_H_HAVE_WINSOCK2_H.
130 (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
131 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
132 UNISTD_H_HAVE_WINSOCK2_H.
133 * modules/sys_socket (Files): Add m4/unistd_h.m4.
134 (configure.ac): Set a module indicator.
135 (Makefile.am): Substitute GNULIB_CLOSE.
136 * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
137 * modules/poll-tests (Depends-on): Add close.
138 * modules/select-tests (Depends-on): Likewise.
140 2008-10-09 Paolo Bonzini <bonzini@gnu.org>
141 Bruno Haible <bruno@clisp.org>
144 * modules/close: New file.
145 * lib/unistd.in.h (close): Move declaration out of the
146 FCHDIR_REPLACEMENT scope.
147 (_gl_unregister_fd): New declaration.
148 * lib/close.c: New file.
149 * lib/fchdir.c (rpl_close): Remove function.
150 * m4/close.m4: New file.
151 * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
153 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
155 * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
157 * modules/fchdir (Depends-on): Add close.
159 2008-10-09 Paolo Bonzini <bonzini@gnu.org>
160 Bruno Haible <bruno@clisp.org>
162 * lib/fcntl.in.h (open): Simplify conditionals.
163 (_gl_register_fd): New declaration.
164 * lib/fchdir.c (rpl_open): Remove function.
165 * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
167 (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
168 * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
171 2008-10-09 Jim Meyering <meyering@redhat.com>
173 GNUmakefile: use the more name-space-friendly "_version"
174 * top/GNUmakefile (_dummy): Update.
175 (_version): Rename from "version".
177 2008-10-09 Paolo Bonzini <bonzini@gnu.org>
178 Bruno Haible <bruno@clisp.org>
180 * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
182 (_gl_register_fd): New function, extracted from rpl_open.
183 (rpl_close, rpl_closedir): Use _gl_unregister_fd.
184 (rpl_open, rpl_opendir): Use _gl_register_fd.
186 2008-10-09 Paolo Bonzini <bonzini@gnu.org>
188 Fix organization of 'open' replacement.
189 * m4/open.m4 (gl_REPLACE_OPEN): New macro.
190 (gl_FUNC_OPEN): Use it.
191 (gl_PREREQ_OPEN): Add a : to make the body non-empty.
193 2008-10-08 Bruno Haible <bruno@clisp.org>
195 * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
197 2008-10-08 Simon Josefsson <simon@josefsson.org>
199 * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock). The file is
200 AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
203 2008-10-08 Eric Blake <ebb9@byu.net>
205 GNUmakefile: add 'make version' target
206 * top/GNUmakefile (_curr-ver): Split version update rules...
207 (version): ...into a target.
209 2008-10-07 Bruno Haible <bruno@clisp.org>
211 Use a more portable replacement expression for -0.0L.
212 * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
213 instead of -0.0L. Fix m4 quotation.
215 * tests/test-signbit.c: Include <float.h>.
216 (minus_zero): New variable.
217 (test_signbitl): Use minus_zero instead of -zero.
218 * modules/signbit-tests (Depends-on): Add float.
220 * tests/test-ceill.c: Include <float.h>.
221 (zero): Remove variable.
222 (minus_zero): New variable.
223 (main): Use minus_zero instead of -zero.
224 * modules/ceill-tests (Depends-on): Add float.
226 * tests/test-floorl.c: Include <float.h>.
227 (zero): Remove variable.
228 (minus_zero): New variable.
229 (main): Use minus_zero instead of -zero.
230 * modules/floorl-tests (Depends-on): Add float.
232 * tests/test-roundl.c: Include <float.h>.
233 (zero): Remove variable.
234 (minus_zero): New variable.
235 (main): Use minus_zero instead of -zero.
236 * modules/roundl-tests (Depends-on): Add float.
238 * tests/test-truncl.c: Include <float.h>.
239 (zero): Remove variable.
240 (minus_zero): New variable.
241 (main): Use minus_zero instead of -zero.
242 * modules/truncl-tests (Depends-on): Add float.
244 * tests/test-frexpl.c (zero): Remove variable.
245 (minus_zero): New variable.
246 (main): Use minus_zero instead of -zero.
247 * modules/frexpl-tests (Depends-on): Add float.
249 * tests/test-isnan.c (zerol): Remove variable.
250 (minus_zerol): New variable.
251 (test_long_double): Use minus_zerol instead of -zerol.
252 * modules/isnan-tests (Depends-on): Add float.
254 * tests/test-isnanl.h (zero): Remove variable.
255 (minus_zero): New variable.
256 (main): Use minus_zero instead of -zero.
257 * modules/isnanl-nolibm-tests (Depends-on): Add float.
258 * modules/isnanl-tests (Depends-on): Add float.
260 * tests/test-ldexpl.c (zero): Remove variable.
261 (minus_zero): New variable.
262 (main): Use minus_zero instead of -zero.
263 * modules/ldexpl-tests (Depends-on): Add float.
265 * tests/test-snprintf-posix.h (zerol): Remove variable.
266 (minus_zerol): New variable.
267 (test_function): Use minus_zerol instead of -zerol.
268 * modules/snprintf-posix-tests (Depends-on): Add float.
269 * modules/vsnprintf-posix-tests (Depends-on): Add float.
271 * tests/test-sprintf-posix.h (zerol): Remove variable.
272 (minus_zerol): New variable.
273 (test_function): Use minus_zerol instead of -zerol.
274 * modules/sprintf-posix-tests (Depends-on): Add float.
275 * modules/vsprintf-posix-tests (Depends-on): Add float.
277 * tests/test-vasnprintf-posix.c (zerol): Remove variable.
278 (minus_zerol): New variable.
279 (test_function): Use minus_zerol instead of -zerol.
280 * modules/vasnprintf-posix-tests (Depends-on): Add float.
282 * tests/test-vasprintf-posix.c (zerol): Remove variable.
283 (minus_zerol): New variable.
284 (test_function): Use minus_zerol instead of -zerol.
285 * modules/vasprintf-posix-tests (Depends-on): Add float.
287 2008-10-07 Simon Josefsson <simon@josefsson.org>
289 * MODULES.html.sh (Support for building documentation): Mention
290 pmccabe2html. Sort entries.
292 Add pmccabe2html module, from gnupdf.
293 * build-aux/pmccabe.css: New file.
294 * build-aux/pmccabe2html: New file.
295 * m4/pmccabe2html.m4: New file.
296 * modules/pmccabe2html: New file.
298 2008-10-07 Richard W.M. Jones <rjones@redhat.com>
301 * MODULES.html.sh: Add to list of modules.
302 * lib/flock.c: flock implementation for Windows and Unix systems
304 * doc/glibc-functions/flock.texi: Update documentation.
305 * lib/sys_file.in.h: <sys/file.h> header file.
306 * m4/flock.m4: M4 macros.
307 * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
308 * modules/flock: flock module.
309 * modules/flock-tests: flock tests module.
310 * modules/sys_file: sys/file.h module.
311 * tests/test-flock.c: test suite for flock.
313 2008-10-06 Jim Meyering <meyering@redhat.com>
315 bootstrap: check for LT_INIT more portably still ;-)
316 * build-aux/bootstrap: Don't rely on \>, since it's not portable.
317 Spotted by Bruno Haible.
319 2008-10-06 Eric Blake <ebb9@byu.net>
321 test-signbit: avoid tripping Irix cc bug on -0.0L
322 * tests/test-signbit.c (minus_zerol): Delete, and replace with
323 '-zerol'. This may break on HP-UX/hppa, but at least makes the
324 entire testsuite consistent and avoids an Irix 6.2 bug.
326 2008-10-05 Bruno Haible <bruno@clisp.org>
327 Jim Meyering <jim@meyering.net>
329 Add an option for ignoring EPIPE during close_stdout.
330 * lib/closeout.h: Include <stdbool.h>.
331 (close_stdout_set_ignore_EPIPE): New declaration.
332 * lib/closeout.c: Include <stdbool.h>.
333 (ignore_EPIPE): New variable.
334 (close_stdout_set_ignore_EPIPE): New function.
335 (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
336 * lib/close-stream.c (close_stream): Mention the possible EPIPE
338 * modules/closeout (Depends-on): Add stdbool.
340 2008-10-05 Bruno Haible <bruno@clisp.org>
342 * modules/accept: New file.
343 * modules/bind: New file.
344 * modules/connect: New file.
345 * modules/getpeername: New file.
346 * modules/getsockname: New file.
347 * modules/getsockopt: New file.
348 * modules/listen: New file.
349 * modules/recv: New file.
350 * modules/recvfrom: New file.
351 * modules/send: New file.
352 * modules/sendto: New file.
353 * modules/setsockopt: New file.
354 * modules/socket: New file.
355 * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
356 (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
357 listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
358 the particular module is requested. Add a link warning when the
359 particular module is not requested.
360 * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
361 rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
362 rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
363 the particular module is requested.
364 * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
365 gl_SYS_SOCKET_H_DEFAULTS): New macros.
366 (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
367 * modules/sys_socket (Depends-on): Add link-warning.
368 (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
369 GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
370 GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
371 GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
373 * doc/posix-functions/accept.texi: Mention the new module 'accept'.
374 * doc/posix-functions/bind.texi: Mention the new module 'bind'.
375 * doc/posix-functions/connect.texi: Mention the new module 'connect'.
376 * doc/posix-functions/getpeername.texi: Mention the new module
378 * doc/posix-functions/getsockname.texi: Mention the new module
380 * doc/posix-functions/getsockopt.texi: Mention the new module
382 * doc/posix-functions/listen.texi: Mention the new module 'listen'.
383 * doc/posix-functions/recv.texi: Mention the new module 'recv'.
384 * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
385 * doc/posix-functions/send.texi: Mention the new module 'send'.
386 * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
387 * doc/posix-functions/setsockopt.texi: Mention the new module
389 * doc/posix-functions/socket.texi: Mention the new module 'socket'.
390 * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
391 listen, connect, accept.
392 * modules/select-tests (Depends-on): Likewise.
394 2008-10-05 Bruno Haible <bruno@clisp.org>
396 * lib/winsock.c (strerror): Remove unused #undef.
397 (rpl_close): Remove unused local variable.
399 * modules/sys_socket (Depends-on); Add errno.
401 2008-10-05 Bruno Haible <bruno@clisp.org>
403 * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
404 (select): Add a link warning when the 'select' module is not used.
405 * modules/sys_select (Depends-on): Add link-warning.
406 (Makefile.am): Substitute the definition of GL_LINK_WARNING.
407 Suggested by Paolo Bonzini.
409 2008-10-05 Jim Meyering <meyering@redhat.com>
411 bootstrap: check for LT_INIT more portably
412 * build-aux/bootstrap: Avoid using grep -E, since it's not
413 portable enough. Suggestion from Bruno Haible.
415 2008-10-05 Bruno Haible <bruno@clisp.org>
417 * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
418 as being fixed by gnulib.
420 2008-10-05 Bruno Haible <bruno@clisp.org>
422 * modules/select-tests: New file, mostly copied from
423 modules/sys_select-tests.
424 * tests/test-select.c: New file, mostly copied from
425 tests/test-sys_select.c.
426 * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
427 * modules/sys_select-tests (Depends-on): Remove all dependencies.
428 (Makefile.am): Remove test_sys_select_LDADD.
430 * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
431 to an undefined symbol, for an error message.
432 * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
433 (gl_SYS_SELECT_H_DEFAULTS): New macro.
434 (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
435 winsock-select.c here.
436 * modules/sys_select (Files): Remove lib/winsock-select.c.
437 (Depends-on): Remove alloca.
438 (Makefile.am): Substitute GNULIB_SELECT.
439 * modules/select: New file.
440 * doc/posix-functions/select.texi: Update.
442 2008-10-05 Bruno Haible <bruno@clisp.org>
444 * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
445 * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
446 * lib/spawn_faction_addopen.c (__sysconf): Likewise.
447 * modules/posix_spawn_file_actions_addclose (Depends-on): Add
449 * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
450 * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
452 2008-10-05 Bruno Haible <bruno@clisp.org>
454 * modules/getdtablesize-tests: New file.
455 * tests/test-getdtablesize.c: New file.
457 New module 'getdtablesize'.
458 * lib/unistd.in.h (getdtablesize): New declaration.
459 * lib/getdtablesize.c: New file.
460 * m4/getdtablesize.m4: New file.
461 * modules/getdtablesize: New file.
462 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
463 GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
464 * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
466 * doc/glibc-functions/getdtablesize.texi: Mention the new module.
468 2008-10-05 Bruno Haible <bruno@clisp.org>
470 * modules/sched (Makefile.am): Fix typo.
471 Reported by Simon Josefsson.
473 2008-10-05 Jim Meyering <meyering@redhat.com>
475 bootstrap: check for LT_INIT, too
476 * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
477 are deprecated. Suggestion from Ralf Wildenhues.
479 2008-10-05 Bruno Haible <bruno@clisp.org>
481 * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
482 overriding them by ours.
483 (POSIX_SPAWN_USEVFORK): Use the next free bit position.
485 2008-10-05 Jim Meyering <meyering@redhat.com>
487 bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
488 * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
489 obsolete AM_PROG_LIBTOOL. Spotted by Debarshi Ray <rishi@gnu.org>.
491 2008-10-04 Bruno Haible <bruno@clisp.org>
493 * modules/dup2 (License): Change to LGPLv2+.
494 * modules/sleep (License): Likewise.
495 * modules/perror (License): Likewise.
496 * modules/fopen (License): Change to LGPLv2+, with approval by Eric
498 * modules/signal (License): Likewise.
499 * modules/sigprocmask (License): Likewise.
500 * modules/raise (License): Change to LGPLv2+, with approval by Jim
503 2008-10-04 Bruno Haible <bruno@clisp.org>
505 * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
506 Reported by Rainer Tammer <tammer@tammer.net>.
508 2008-10-03 Paolo Bonzini <bonzini@gnu.org>
509 Bruno Haible <bruno@clisp.org>
511 * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
512 * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
513 * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
515 2008-10-03 Kamil Dudka <kdudka@redhat.com>
517 filevercmp: new module
518 * lib/filevercmp.h: New function filevercmp comparing version strings.
519 * lib/filevercmp.c: Implementation of filevercmp function.
520 * modules/filevercmp: Module metadata.
521 * tests/test-filevercmp.c: Unit test for new module.
522 * modules/filevercmp-tests: Unit test metadata.
523 * MODULES.html.sh: Add filevercmp module.
525 2008-10-03 Bruno Haible <bruno@clisp.org>
527 * lib/c-ctype.h: Add comment.
528 Reported by Jim Meyering.
530 2008-10-02 Bruno Haible <bruno@clisp.org>
532 * modules/posix_spawn-internal (Depends-on): Add 'open'.
534 2008-10-02 Paolo Bonzini <bonzini@gnu.org>
536 * build-aux/bootstrap: Allow renaming bootstrap, and change the
537 name of bootstrap.conf accordingly.
539 2008-10-02 Paolo Bonzini <bonzini@gnu.org>
541 * build-aux/bootstrap: Install git-merge-changelog configuration
542 items into .gitconfig if needed.
544 2008-10-02 Paolo Bonzini <bonzini@gnu.org>
546 * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
547 git repository, and initialize/update it accordingly.
549 2008-10-02 Richard W.M. Jones <rjones@redhat.com>
551 * modules/fsync-tests: New file.
552 * tests/test-fsync.c: New file.
555 * lib/fsync.c: New file.
556 * m4/fsync.m4: New file.
557 * modules/fsync: New file.
558 * lib/unistd.in.h (fsync): New declaration.
559 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
560 GNULIB_FSYNC and HAVE_FSYNC.
561 * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
562 * MODULES.html.sh (posix_functions): Add fsync.
563 * doc/posix-functions/fsync.texi: Mention the new module.
565 2008-10-02 Jim Meyering <meyering@redhat.com>
567 fts.c: sync with similar code from coreutils' remove.c
568 * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
569 Guard also with "#if defined __linux__", since for now at least,
570 this code is Linux-kernel-specific.
572 2008-10-02 Jim Meyering <meyering@redhat.com>
575 * lib/fts.c: Remove unnecessary "defined" in cpp directive.
576 Include <sys/vfs.h>, not <sys/statfs.h>.
578 * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
579 Include <sys/vfs.h>, not <sys/statfs.h>.
581 2008-10-01 Bruno Haible <bruno@clisp.org>
583 Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
584 * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
585 (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
586 * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
587 * doc/posix-functions/posix_spawnp.texi: Likewise.
588 * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
589 whether posix_spawn actually works.
590 * m4/pipe.m4 (gl_PIPE): Likewise.
591 * modules/execute (Files): Add m4/posix_spawn.m4.
592 * modules/pipe (Files): Add m4/posix_spawn.m4.
593 Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
595 2008-10-01 Jim Meyering <meyering@redhat.com>
597 remove trailing spaces
599 * lib/poll.c (poll): Likewise.
600 * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
601 * lib/winsock.c (rpl_close): Likewise.
602 * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
603 * modules/yield: Likewise.
604 * tests/test-poll.c (connect_to_socket, poll1): Likewise.
605 * tests/test-sys_select.c (connect_to_socket): Likewise.
607 fts.c: adjust a new interface to be more generally useful
608 * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
609 (fts_build): Adjust caller.
611 2008-09-30 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
613 * modules/cond-tests: New file.
614 * tests/test-cond.c: New file.
616 2008-09-30 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
617 Bruno Haible <bruno@clisp.org>
619 * modules/cond (Dependencies): Add errno, time.
620 * lib/glthread/cond.h: Include <time.h>.
621 (gl_cond_define, gl_cond_define_initialized): Use the same definition
624 2008-09-30 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
625 Bruno Haible <bruno@clisp.org>
627 * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
629 2008-09-30 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
630 Bruno Haible <bruno@clisp.org>
632 * modules/tls-tests (Depends-on): Add thread, yield.
633 (configure.ac): Remove all checks.
634 (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
635 * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
636 gl_thread_self): Remove definitions. Include glthread/thread.h and
637 glthread/yield.h instead.
638 (test_tls): Pass an additional NULL argument to gl_thread_join.
640 2008-09-30 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
641 Bruno Haible <bruno@clisp.org>
643 * modules/lock-tests (Depends-on): Add thread, yield.
644 (configure.ac): Remove all checks.
645 (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
646 * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
647 gl_thread_self): Remove definitions. Include glthread/thread.h and
648 glthread/yield.h instead.
649 (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
650 additional NULL argument to gl_thread_join.
652 2008-09-30 Bruno Haible <bruno@clisp.org>
654 Fix the Win32 implementation of the 'thread' module.
655 * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
657 (gl_thread_self): Invoke gl_thread_self_func.
658 (gl_thread_self_func): New declaration.
659 * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
660 (do_init_self_key, init_self_key): New functions.
661 (struct gl_thread_struct): Renamed from 'struct thread_extra'.
663 (running_threads, running_lock): Remove variables.
664 (get_current_thread_handle): New function.
665 (gl_thread_self_func, wrapper_func, glthread_create_func,
666 glthread_join_func, gl_thread_exit_func): Largely rewritten and
669 2008-09-30 Bruno Haible <bruno@clisp.org>
671 * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
674 2008-09-30 Jim Meyering <meyering@redhat.com>
676 fts.m4: correct the test for statfs.f_type
677 * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
678 when checking for statfs.f_type.
680 2008-09-15 Simon Josefsson <simon@josefsson.org>
682 tests: avoid some compiler warnings
683 * tests/test-memchr.c (main): Pass NULL indirectly.
684 * tests/test-getdate.c (main): Remove unused variable 'ret'.
686 2008-09-29 Ondřej Vašík <ovasik@redhat.com>
688 getdate.y: disallow countable dayshifts like "4 yesterday ago"
689 * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
690 exactly specified dayshifts.
691 (dayshift): New rule.
693 (relative_time_table) [tomorrow, yesterday, today, now]:
694 Use tDAY_SHIFT in place of tDAY_UNIT.
695 * tests/test-getdate.c: Add tests for now-disallowed countable
696 dayshifts, e.g., "4 yesterday ago".
698 2008-09-29 Bruno Haible <bruno@clisp.org>
700 * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
701 * tests/test-posix_spawn1.in.sh: Renamed from
702 tests/test-posix_spawn.in.sh.
703 * tests/test-posix_spawn2.c: New file.
704 * tests/test-posix_spawn2.in.sh: New file.
705 * modules/posix_spawnp-tests (Files): Update.
706 (Makefile.am): Update. Add test-posix_spawn2 to the tests.
708 2008-09-29 Bruno Haible <bruno@clisp.org>
710 Propagate effects of putenv/setenv/unsetenv to child processes.
711 * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
712 * lib/pipe.c (create_pipe): Likewise.
714 2008-09-29 Bruno Haible <bruno@clisp.org>
716 Enable use of shell scripts as executables in mingw.
717 * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
718 run the program as a shell script.
719 * lib/pipe.c (create_pipe): Likewise.
720 * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
723 2008-09-29 Eric Blake <ebb9@byu.net>
725 * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
727 2008-08-24 Paolo Bonzini <bonzini@gnu.org>
729 * doc/posix-functions/accept.texi: Update mingw problems.
730 * doc/posix-functions/bind.texi: Update mingw problems.
731 * doc/posix-functions/close.texi: Update mingw problems.
732 * doc/posix-functions/connect.texi: Update mingw problems.
733 * doc/posix-functions/getpeername.texi: Update mingw problems.
734 * doc/posix-functions/getsockname.texi: Update mingw problems.
735 * doc/posix-functions/getsockopt.texi: Update mingw problems.
736 * doc/posix-functions/ioctl.texi: Update mingw problems.
737 * doc/posix-functions/listen.texi: Update mingw problems.
738 * doc/posix-functions/recv.texi: Update mingw problems.
739 * doc/posix-functions/recvfrom.texi: Update mingw problems.
740 * doc/posix-functions/select.texi: Update mingw problems.
741 * doc/posix-functions/send.texi: Update mingw problems.
742 * doc/posix-functions/sendto.texi: Update mingw problems.
743 * doc/posix-functions/setsockopt.texi: Update mingw problems.
744 * doc/posix-functions/socket.texi: Update mingw problems.
746 2008-09-29 Paolo Bonzini <bonzini@gnu.org>
747 Bruno Haible <bruno@clisp.org>
749 * lib/sys_select.in.h: Include sys/time.h.
750 * m4/sys_select.h.m4: Test that struct timeval is fully defined.
751 * modules/sys_select: Depend on sys_time.
752 * tests/test-sys_select.c: Test that sys/select.h defines struct
755 2008-09-29 Bruno Haible <bruno@clisp.org>
757 * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
758 * lib/sys_select.in.h: Likewise.
760 2008-09-29 Bruno Haible <bruno@clisp.org>
762 * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
764 2008-09-29 Bruno Haible <bruno@clisp.org>
766 * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
767 Set LIBSOCKET instead of augmenting LIBS.
768 * modules/sockets (Link): New section.
769 * modules/sockets-tests (test_sockets_LDADD): New variable.
770 * modules/sys_select-tests (test_sys_select_LDADD): New variable.
771 * modules/poll-tests (test_poll_LDADD): New variable.
772 * NEWS: Document the change.
774 2008-09-29 Bruno Haible <bruno@clisp.org>
776 * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
777 * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
778 ARPA_INET_H directly.
779 * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
781 2008-09-28 Bruno Haible <bruno@clisp.org>
783 * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
784 from gl_HEADER_SYS_SOCKET.
785 (gl_HEADER_SYS_SOCKET): Invoke it.
786 * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
788 2008-09-28 Bruno Haible <bruno@clisp.org>
790 * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
791 * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
794 2008-09-28 Bruno Haible <bruno@clisp.org>
796 Override open more carefully.
797 * lib/open.c (orig_open): New function.
798 (rpl_open): Use orig_open instead of open.
799 * lib/fcntl.in.h: Add special invocation convention.
800 * m4/open.m4 (gl_PREREQ_OPEN): New macro.
801 (gl_FUNC_OPEN): Invoke it.
803 Override freopen more carefully.
804 * lib/freopen.c (orig_freopen): New function.
805 (rpl_freopen): Use orig_freopen instead of freopen.
806 * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
807 (gl_FUNC_FREOPEN): Invoke it.
809 Override fopen more carefully.
810 * lib/fopen.c (orig_fopen): New function.
811 (rpl_fopen): Use orig_fopen instead of fopen.
812 * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
813 (gl_FUNC_FOPEN): Invoke it.
814 Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
816 2008-09-28 Bruno Haible <bruno@clisp.org>
818 * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
821 2008-09-28 Bruno Haible <bruno@clisp.org>
823 * tests/test-sigaction.c (handler, main): Disable the check whether
824 SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
825 glibc systems with LinuxThreads.
827 2008-09-28 Bruno Haible <bruno@clisp.org>
829 * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
831 * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
833 * lib/fcntl.in.h (open): Likewise.
834 Reported by Rainer Tammer <tammer@tammer.net>.
836 2008-09-28 Bruno Haible <bruno@clisp.org>
838 * modules/posix_spawnp-tests: New file.
839 * tests/test-posix_spawn.c: New file.
840 * tests/test-posix_spawn.in.sh: New file.
842 New module 'posix_spawnp'.
843 * modules/posix_spawnp: New file.
844 * lib/spawnp.c: New file, from GNU libc with modifications.
845 * doc/posix-functions/posix_spawnp.texi: Mention the new module.
847 New module 'posix_spawn'.
848 * modules/posix_spawn: New file.
849 * lib/spawn.c: New file, from GNU libc with modifications.
850 * doc/posix-functions/posix_spawn.texi: Mention the new module.
852 New module 'posix_spawnattr_destroy'.
853 * modules/posix_spawnattr_destroy: New file.
854 * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
855 * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
858 New module 'posix_spawnattr_setsigmask'.
859 * modules/posix_spawnattr_setsigmask: New file.
860 * lib/spawnattr_setsigmask.c: New file, from GNU libc with
862 * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
865 New module 'posix_spawnattr_getsigmask'.
866 * modules/posix_spawnattr_getsigmask: New file.
867 * lib/spawnattr_getsigmask.c: New file, from GNU libc with
869 * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
872 New module 'posix_spawnattr_setsigdefault'.
873 * modules/posix_spawnattr_setsigdefault: New file.
874 * lib/spawnattr_setdefault.c: New file, from GNU libc with
876 * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
879 New module 'posix_spawnattr_getsigdefault'.
880 * modules/posix_spawnattr_getsigdefault: New file.
881 * lib/spawnattr_getdefault.c: New file, from GNU libc with
883 * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
886 New module 'posix_spawnattr_setschedpolicy'.
887 * modules/posix_spawnattr_setschedpolicy: New file.
888 * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
890 * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
893 New module 'posix_spawnattr_getschedpolicy'.
894 * modules/posix_spawnattr_getschedpolicy: New file.
895 * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
897 * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
900 New module 'posix_spawnattr_setschedparam'.
901 * modules/posix_spawnattr_setschedparam: New file.
902 * lib/spawnattr_setschedparam.c: New file, from GNU libc with
904 * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
907 New module 'posix_spawnattr_getschedparam'.
908 * modules/posix_spawnattr_getschedparam: New file.
909 * lib/spawnattr_getschedparam.c: New file, from GNU libc with
911 * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
914 New module 'posix_spawnattr_setpgroup'.
915 * modules/posix_spawnattr_setpgroup: New file.
916 * lib/spawnattr_setpgroup.c: New file, from GNU libc with
918 * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
921 New module 'posix_spawnattr_getpgroup'.
922 * modules/posix_spawnattr_getpgroup: New file.
923 * lib/spawnattr_getpgroup.c: New file, from GNU libc with
925 * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
928 New module 'posix_spawnattr_setflags'.
929 * modules/posix_spawnattr_setflags: New file.
930 * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
931 * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
934 New module 'posix_spawnattr_getflags'.
935 * modules/posix_spawnattr_getflags: New file.
936 * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
937 * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
940 New module 'posix_spawnattr_init'.
941 * modules/posix_spawnattr_init: New file.
942 * lib/spawnattr_init.c: New file, from GNU libc with modifications.
943 * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
946 New module 'posix_spawn_file_actions_destroy'.
947 * modules/posix_spawn_file_actions_destroy: New file.
948 * lib/spawn_faction_destroy.c: New file, from GNU libc with
950 * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
953 New module 'posix_spawn_file_actions_addopen'.
954 * modules/posix_spawn_file_actions_addopen: New file.
955 * lib/spawn_faction_addopen.c: New file, from GNU libc with
957 * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
960 New module 'posix_spawn_file_actions_adddup2'.
961 * modules/posix_spawn_file_actions_adddup2: New file.
962 * lib/spawn_faction_adddup2.c: New file, from GNU libc with
964 * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
967 New module 'posix_spawn_file_actions_addclose'.
968 * modules/posix_spawn_file_actions_addclose: New file.
969 * lib/spawn_faction_addclose.c: New file, from GNU libc with
971 * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
974 New module 'posix_spawn_file_actions_init'.
975 * modules/posix_spawn_file_actions_init: New file.
976 * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
977 * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
980 New module 'posix_spawn-internal'.
981 * modules/posix_spawn-internal: New file.
982 * lib/spawn_int.h: New file, from GNU libc with modifications.
983 * lib/spawni.c: New file, from GNU libc with modifications.
984 * m4/posix_spawn.m4: New file.
987 * modules/spawn: New file.
988 * lib/spawn.in.h: New file, from GNU libc with modifications.
989 * m4/spawn_h.m4: New file.
990 * doc/posix-headers/spawn.texi: Mention the new module.
992 2008-09-28 Bruno Haible <bruno@clisp.org>
994 * modules/sched-tests: New file.
995 * tests/test-sched.c: New file.
998 * modules/sched: New file.
999 * lib/sched.in.h: New file.
1000 * m4/sched_h.m4: New file.
1001 * doc/posix-headers/sched.texi: Mention the new module.
1003 2008-09-27 Eric Blake <ebb9@byu.net>
1005 Fix previous patch, and tweak references to $0.
1006 * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
1007 (func_version, func_gnulib_dir): Don't call this program
1009 (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
1010 with using $0 in function.
1011 * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
1012 (func_fatal_error): Reuse the name the user invoked us with.
1014 2008-09-27 Bruno Haible <bruno@clisp.org>
1016 * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
1017 (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
1018 (gl_ICONV_H): Not here.
1019 * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
1020 instead of assigning ICONV_H directly.
1022 * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
1023 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
1026 2008-09-27 Bruno Haible <bruno@clisp.org>
1028 * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
1029 * modules/arpa_inet (Depends-on): Add link-warning.
1030 (Makefile.am): Insert the definition of GL_LINK-WARNING.
1031 * modules/unistd (Makefile.am): Likewise.
1033 2008-09-26 Bruno Haible <bruno@clisp.org>
1035 * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
1037 (func_version): Essentially copied from gnulib-tool.
1038 (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
1039 func_readlink): Copied from gnulib-tool.
1041 2008-09-26 Bruno Haible <bruno@clisp.org>
1043 * gnulib-tool (func_version): Change directory to $gnulib_dir before
1044 invoking git-version-gen.
1046 2008-09-26 Bruno Haible <bruno@clisp.org>
1048 * posix-modules: Update to directory names changed on 2008-01-19.
1049 Remove commas in output before splitting into words. No more need to
1050 avoid 'ftruncate' since 2007-02-19.
1052 2008-09-26 Bruno Haible <bruno@clisp.org>
1054 * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
1056 2008-09-26 Bruno Haible <bruno@clisp.org>
1058 * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
1059 * modules/fwriteerror (Depends-on): Add errno.
1061 2008-09-26 Bruno Haible <bruno@clisp.org>
1063 * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
1064 * tests/test-vc-list-files-cvs.sh: Likewise.
1066 2008-09-26 Bruno Haible <bruno@clisp.org>
1068 * doc/posix-headers/sys_resource.texi: Reorder items.
1070 2008-09-26 Jim Meyering <meyering@redhat.com>
1072 fts: tweak inode comparison function
1073 * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
1074 inode numbers, as documented.
1076 fts: sort dirent entries on inode number before traversing
1077 This avoids a quadratic, seek-related performance penalty when
1078 operating on a directory containing many entries (measurable at 10k;
1079 3.5 hours at 2 million entries with a cold cache) on certain types
1080 of file systems, including ext3 and ext4, but not tmpfs.
1081 * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
1082 (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
1083 (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
1084 (fs_handles_readdir_ordered_dirents_efficiently): New function.
1085 (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
1086 (fts_build): Set the stat.st_ino member from D_INO.
1087 If it is likely to be useful, sort dirent entries on inode number.
1089 * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
1090 and the struct statfs.f_type member.
1091 * modules/fts (Depends-on): Add d-ino.
1093 2008-09-26 Bruno Haible <bruno@clisp.org>
1095 * modules/sigpipe-die (Depends-on): Add sigpipe.
1097 * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
1098 putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
1099 and GNULIB_STDIO_H_SIGPIPE are set.
1100 * lib/stdio-write.c: New file.
1101 * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
1102 GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
1103 GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
1104 REPLACE_STDIO_WRITE_FUNCS.
1105 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
1106 GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
1107 GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
1108 GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
1109 * modules/stdio (Files): Add lib/stdio-write.c.
1110 (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
1111 GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
1112 GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
1113 GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
1114 * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
1115 REPLACE_FPRINTF_POSIX.
1116 * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
1117 REPLACE_PRINTF_POSIX.
1118 * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
1119 REPLACE_VFPRINTF_POSIX.
1120 * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
1121 REPLACE_VPRINTF_POSIX.
1122 * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
1124 * doc/posix-functions/fputc.texi: Likewise.
1125 * doc/posix-functions/fputs.texi: Likewise.
1126 * doc/posix-functions/fwrite.texi: Likewise.
1127 * doc/posix-functions/printf.texi: Likewise.
1128 * doc/posix-functions/putc.texi: Likewise.
1129 * doc/posix-functions/putchar.texi: Likewise.
1130 * doc/posix-functions/puts.texi: Likewise.
1131 * doc/posix-functions/vfprintf.texi: Likewise.
1132 * doc/posix-functions/vprintf.texi: Likewise.
1134 * modules/safe-write (Depends-on): Add write.
1136 * modules/sigpipe-tests: New file.
1137 * tests/test-sigpipe.c: New file.
1138 * tests/test-sigpipe.sh: New file.
1140 * modules/write: New file.
1141 * lib/unistd.in.h: Include <sys/types.h>.
1142 (write): New declaration.
1143 * lib/write.c: New file.
1144 * m4/write.m4: New file.
1145 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
1146 GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
1147 * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
1148 GNULIB_WRITE, REPLACE_WRITE.
1149 * doc/posix-functions/write.texi: Mention the write, sigpipe modules
1150 and the SIGPIPE issue.
1152 * lib/signal.in.h (SIGPIPE): Define to a replacement value.
1153 (raise): New declaration.
1154 * lib/sigprocmask.c (SIGPIPE_handler): New variable.
1155 (ext_signal): New function.
1156 (rpl_raise): New function.
1157 * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
1158 GNULIB_SIGNAL_H_SIGPIPE.
1159 * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
1160 * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
1162 * modules/sigpipe: New file.
1163 * m4/sigpipe.m4: New file.
1165 2008-09-25 Derek Price <derek@ximbiot.com>
1166 Bruno Haible <bruno@clisp.org>
1168 * gnulib-tool (func_import): Report all license incompatibilities, not
1171 2008-09-25 Bruno Haible <bruno@clisp.org>
1173 * gnulib-tool (func_import): When computing the edits, consider not
1174 only the Makefile.ams that exist but also those that will be generated.
1176 2008-09-25 Simon Josefsson <simon@josefsson.org>
1178 * modules/sys_select-tests (Depends-on): Remove sys_select itself,
1179 fixes gnulib-tool --test warning about duplicate dependency.
1181 2008-09-25 Bruno Haible <bruno@clisp.org>
1183 * gnulib-tool: Don't ask the user to perform edits in the generated
1185 (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
1186 apply to the Makefile.am being generated.
1187 (func_emit_tests_Makefile_am): Execute edits that apply to the
1188 Makefile.am being generated.
1189 (func_import): Setup list of Makefile.am edits before emitting the
1190 Makefile.ams, not at the end.
1191 (func_create_testdir): Update.
1192 Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
1194 2008-09-25 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
1196 * gnulib-tool (func_import): Store the --tests-base option in the
1197 comment in gnulib-cache.m4.
1199 2008-09-24 Paolo Bonzini <bonzini@gnu.org>
1201 * NEWS: Document increased portability that sys_select now provides.
1203 * lib/sys_select.in.h: Install select wrapper.
1204 * lib/sys_socket.in.h: Use more descriptive name when there is no
1206 * lib/winsock-select.c: New.
1207 * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
1208 Require gl_HEADER_SYS_SOCKET.
1209 * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
1210 * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
1211 * tests/test-sys_select.c: Add functional tests.
1213 2008-09-24 Eric Blake <ebb9@byu.net>
1215 open, fopen: close fd leak in last patch
1216 * lib/open.c (rpl_open): Close fd before returning error.
1217 * lib/fopen.c (rpl_fopen): Close fd before returning error.
1218 * doc/posix-functions/open.texi (open): Document that Irix also
1220 * doc/posix-functions/fopen.texi (fopen): Likewise.
1221 Reported by Paolo Bonzini.
1223 2008-09-24 Bruno Haible <bruno@clisp.org>
1225 Ensure that a filename ending in a slash cannot be used to access a
1227 * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
1228 to check whether it's really a directory.
1229 * lib/fopen.c: Include fcntl.h, unistd.h.
1230 (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
1232 * modules/fopen (Depends-on): Add unistd.
1233 * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
1234 * tests/test-fopen.c (main): Likewise.
1235 * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
1236 * doc/posix-functions/fopen.texi: Likewise.
1237 Reported by Eric Blake.
1239 2008-09-23 Eric Blake <ebb9@byu.net>
1241 c-stack: avoid compiler optimizations when provoking overflow
1242 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
1243 recursion harder to optimize, to ensure a stack overflow occurs.
1244 * tests/test-c-stack.c (recurse): Likewise.
1245 Borrowed from libsigsegv.
1247 c-stack: work around Irix sigaltstack bug
1248 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
1249 whether sigaltstack uses wrong end of stack_t (copied in part from
1251 * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
1252 Irix bug, without requiring an over-allocation.
1253 * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
1256 fopen: document mingw bug on directories
1257 * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
1258 not allowing a stream visiting a directory, even though reading
1259 from such a stream is not portable.
1261 2008-09-23 Paolo Bonzini <bonzini@gnu.org>
1263 * lib/poll.c: Rewrite.
1264 * modules/poll: Depend on alloca.
1266 2008-09-23 Paolo Bonzini <bonzini@gnu.org>
1268 * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
1269 instead define prototypes for a full set of wrappers. Ensure
1270 that Cygwin does not use the compatibility code, which is only
1272 * lib/winsock.c: New.
1273 * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
1274 * modules/sys_socket: Add lib/winsock.c.
1276 * modules/poll-tests: Add errno and perror.
1277 * tests/test-poll.c: Use ioctl, not ioctlsocket.
1279 2008-09-23 Paolo Bonzini <bonzini@gnu.org>
1281 * tests/test-poll.c: Downgrade minimum needed Winsock version.
1283 2008-09-23 Bruno Haible <bruno@clisp.org>
1285 * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
1286 * doc/glibc-functions/*: Likewise.
1288 2008-09-23 Simon Josefsson <simon@josefsson.org>
1290 * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
1293 2008-09-22 Eric Blake <ebb9@byu.net>
1294 Bruno Haible <bruno@clisp.org>
1296 vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
1297 * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
1298 supply %A but mishandle pseudo-NaN.
1299 Reported by Simon Josefsson.
1301 2008-09-21 Bruno Haible <bruno@clisp.org>
1303 * tests/test-lock.c (main): Tweak skip message.
1304 * tests/test-tls.c (main): Likewise.
1306 2008-09-21 Bruno Haible <bruno@clisp.org>
1308 * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
1309 whether 'struct sigaction' has sa_sigaction here...
1310 (gl_PREREQ_SIG_HANDLER_H): ... not here.
1311 (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
1313 2008-09-21 Bruno Haible <bruno@clisp.org>
1315 * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
1317 (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
1318 strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
1320 (Support for obsolete systems lacking POSIX:2001): New section.
1321 (String handling <string.h>): Move strdup to the new section.
1322 Suggested by Simon Josefsson and Paolo Bonzini.
1324 2008-09-21 Bruno Haible <bruno@clisp.org>
1326 * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
1327 exponents in %e and %g results on 'long double'. Needed for mingw's
1328 improved *printf functions.
1329 * tests/test-vasprintf-posix.c (test_function): Likewise.
1330 * tests/test-snprintf-posix.h (test_function): Likewise.
1331 * tests/test-sprintf-posix.h (test_function): Likewise.
1332 Reported by Eric Blake.
1334 2008-09-21 Bruno Haible <bruno@clisp.org>
1336 * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
1337 * tests/test-sprintf-posix.h (test_function): Likewise.
1339 2008-09-21 Bruno Haible <bruno@clisp.org>
1341 * modules/getpass (Depends-on): Add strdup-posix.
1343 New module 'strdup-posix'.
1344 * modules/strdup-posix: New file.
1345 * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
1346 * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
1347 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
1349 * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
1350 * doc/posix-functions/strdup.texi: Mention module strdup-posix.
1351 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
1354 * modules/strdup (Depends-on): Remove malloc-posix.
1356 2008-09-20 Bruno Haible <bruno@clisp.org>
1358 * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
1361 2008-09-20 Bruno Haible <bruno@clisp.org>
1363 Ensure that wint_t gets defined on IRIX 5.3.
1364 * lib/wchar.in.h (wint_t): Define if not defined by the system.
1365 * lib/wctype.in.h (wint_t): Likewise.
1366 (__wctype_wint_t): Remove type.
1367 (isw*): Use wint_t instead of __wctype_wint_t.
1368 * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
1369 * modules/wchar (Files): Add m4/wint_t.m4.
1370 (Makefile.am): Substitute HAVE_WINT_T.
1371 * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
1372 * tests/test-wctype.c: Check that wint_t is defined.
1373 * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
1374 * doc/posix-headers/wctype.texi: Likewise.
1375 Reported by Tom G. Christensen <tgc@jupiterrise.com>.
1377 2008-09-18 Bruno Haible <bruno@clisp.org>
1379 * gnulib-tool (func_exit): Update comment.
1381 2008-09-18 Simon Josefsson <simon@josefsson.org>
1383 * modules/getaddrinfo (Depends-on): Remove strdup, this module
1384 assumes strdup exists and does not depend on strdup to return
1385 ENOMEM on out of memory conditions.
1387 2008-09-18 Bruno Haible <bruno@clisp.org>
1389 * lib/vasnprintf.c (VASNPRINTF): When printing ±0.0L in
1390 NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
1391 digits for the exponent.
1393 2008-09-18 Jim Meyering <meyering@redhat.com>
1394 Bruno Haible <bruno@clisp.org>
1396 * lib/vasnprintf.c (decimal_point_char): Define also if
1397 NEED_PRINTF_INFINITE_LONG_DOUBLE.
1399 2008-09-16 Bruno Haible <bruno@clisp.org>
1400 and Eric Blake <ebb9@byu.net>
1402 vasnprintf: support Irix 5.3
1403 * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
1404 that mishandle long double infinity.
1405 Reported by Tom G. Christensen.
1407 2008-09-16 Bruno Haible <bruno@clisp.org>
1409 * doc/glibc-functions/scandir.texi: Mention the function is missing on
1411 * doc/glibc-functions/alphasort.texi: Likewise.
1412 Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
1414 2008-09-16 Jim Meyering <meyering@redhat.com>
1416 posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
1417 * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
1418 a umask modification leak out of a subshell. Otherwise, the
1419 opensolaris /bin/sh would be accepted and thus cause unwarranted
1420 failures in the coreutils test suite.
1422 2008-09-16 Paolo Bonzini <bonzini@gnu.org>
1424 * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
1427 2008-09-16 Jim Meyering <meyering@redhat.com>
1429 avoid spurious test failure when library is built without ACL support
1430 * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
1431 * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
1432 * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
1433 * tests/test-copy-acl.sh: Likewise.
1435 2008-09-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1437 * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
1438 based on character occurrence counts.
1440 2008-09-15 Eric Blake <ebb9@byu.net>
1442 tests: avoid some compiler warnings
1443 * tests/test-memchr.c (main): Pass NULL indirectly.
1444 * tests/test-closein.c (main): Avoid unused variable.
1446 2008-09-15 Bruno Haible <bruno@clisp.org>
1448 * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
1449 are missing on OpenBSD 4.0 individually.
1450 Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
1452 2008-09-15 Bruno Haible <bruno@clisp.org>
1454 * doc/posix-headers/errno.texi: Mention the Cygwin problem.
1455 * doc/posix-functions/strerror.texi: Mention also Cygwin.
1456 * doc/posix-functions/perror.texi: Likewise.
1457 * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
1459 Reported by Eric Blake.
1461 * lib/errno.in.h: Use replacement values >= 2000.
1462 Reported by Eric Blake.
1464 2008-09-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1466 * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
1467 (EARLY_ABORT): Return true when the edit_count has grown too beyond the
1469 (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
1470 compareseq was aborted.
1472 2008-09-14 Bruno Haible <bruno@clisp.org>
1474 * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
1476 (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
1477 (fstrcmp_bounded): Simplify result computation accordingly.
1479 2008-09-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1481 * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
1482 (fstrcmp): Define in terms of fstrcmp_bounded.
1483 * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
1484 lower_bound argument.
1485 Return quickly if the result is certainly < lower_bound.
1486 * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
1488 2008-09-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1490 * lib/diffseq.h (EARLY_ABORT): New macro.
1491 (compareseq): Change return type to bool. Return true when EARLY_ABORT
1494 2008-09-14 Bruno Haible <bruno@clisp.org>
1496 * modules/perror-tests: New file.
1497 * tests/test-perror.sh: New file.
1498 * tests/test-perror.c: New file.
1500 New module 'perror'.
1501 * lib/stdio.in.h (perror): New declaration.
1502 * lib/perror.c: New file.
1503 * m4/perror.m4: New file.
1504 * modules/perror: New file.
1505 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
1506 * doc/posix-functions/perror.texi: Mention the perror module.
1507 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
1509 * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
1512 2008-09-14 Bruno Haible <bruno@clisp.org>
1514 * modules/stdio (Makefile.am): Reorder to match the order in
1516 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
1518 2008-09-13 Bruno Haible <bruno@clisp.org>
1520 * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
1522 2008-09-13 Bruno Haible <bruno@clisp.org>
1524 Extend strerror to cover the added errno values.
1525 * lib/strerror.c: Include errno.h and winsock2.h if it exists.
1526 (rpl_strerror): Provide error messages for the added errno values and
1527 for the WSA* values.
1528 * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
1529 (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
1531 (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
1532 * modules/strerror (Depends-on): Add errno.
1533 * doc/posix-functions/strerror.texi: Document the change.
1534 * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
1537 2008-09-13 Bruno Haible <bruno@clisp.org>
1539 * modules/EOVERFLOW: Remove file.
1540 * m4/eoverflow.m4: Remove file.
1541 * modules/EOVERFLOW-tests: Remove file.
1542 * tests/test-EOVERFLOW.c: Remove file.
1543 * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
1544 * modules/ftell (Depends-on): Likewise.
1545 * modules/getdelim (Depends-on): Likewise.
1546 * modules/getugroups (Depends-on): Likewise.
1547 * modules/poll (Depends-on): Likewise.
1548 * modules/snprintf (Depends-on): Likewise.
1549 * modules/sprintf-posix (Depends-on): Likewise.
1550 * modules/vasnprintf (Depends-on): Likewise.
1551 * modules/vasprintf (Depends-on): Likewise.
1552 * modules/vfprintf-posix (Depends-on): Likewise.
1553 * modules/vsnprintf (Depends-on): Likewise.
1554 * modules/vsprintf-posix (Depends-on): Likewise.
1555 * modules/xvasprintf (Depends-on): Likewise.
1556 * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
1557 * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
1558 * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
1559 * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
1560 * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
1561 * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
1562 * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
1563 * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
1564 * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
1565 * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
1566 * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
1567 * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
1568 * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
1569 * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
1570 * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
1571 * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
1572 * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
1573 * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
1574 * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
1575 * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
1576 * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
1577 * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
1578 * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
1579 * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
1580 * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
1581 * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
1582 * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
1583 * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
1584 * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
1585 * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
1586 * MODULES.html.sh: Remove EOVERFLOW.
1587 * NEWS: Mention the change.
1589 2008-09-13 Bruno Haible <bruno@clisp.org>
1591 * modules/errno-tests: New file.
1592 * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
1594 * lib/errno.in.h: New file.
1595 * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
1596 * modules/errno: New file.
1597 * doc/posix-headers/errno.texi: Update documentation.
1598 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
1600 2008-09-13 Bruno Haible <bruno@clisp.org>
1602 * tests/test-poll.c: Use #if for native Windows, rather than testing
1605 2008-09-13 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
1606 Bruno Haible <bruno@clisp.org>
1608 * lib/glob.c: Don't include <pwd.h> on native Windows.
1609 (WINDOWS32): New macro.
1610 (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
1612 2008-09-13 Bruno Haible <bruno@clisp.org>
1614 * lib/glthread/cond.h [USE_SOLARIS_THREADS]
1615 (ETIMEDOUT): Remove macro.
1616 (glthread_cond_timedwait_multithreaded): New declaration.
1617 (glthread_cond_timedwait): Use it.
1618 * lib/glthread/cond.c [USE_SOLARIS_THREADS]
1619 (glthread_cond_timedwait_multithreaded): New function.
1621 2008-09-12 Paolo Bonzini <bonzini@gnu.org>
1623 * modules/poll-tests: Do not check for io.h.
1624 * tests/test-poll.c: Check for __MSVCRT__ instead.
1626 2008-09-12 Paolo Bonzini <bonzini@gnu.org>
1628 * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
1629 * modules/poll-tests: Add inet_pton, stdbool, sockets.
1630 * tests/test-poll.c: Use them. Use _pipe on Windows.
1632 2008-09-12 Paolo Bonzini <bonzini@gnu.org>
1634 * modules/poll-tests: New.
1635 * tests/test-poll.c: New.
1637 2008-09-12 Eric Blake <ebb9@byu.net>
1639 frexp: test for NetBSD failure on -0.0
1640 * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
1641 not all, bugs from NetBSD 3.0 have been fixed.
1642 * doc/posix-functions/frexp.texi (frexp): Document bug.
1643 Reported by Thomas Klausner.
1645 signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
1646 * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
1648 Reported by Jonathan C. Patschke <jp@centtech.com>.
1650 2008-09-11 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
1652 * lib/glthread/cond.h: Use dummy implementation also if
1655 2008-09-11 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
1657 * modules/fnmatch-posix (License): Change to LGPLv2+.
1658 * modules/fnmatch-gnu (License): Likewise.
1660 2008-09-11 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
1662 * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
1664 2008-09-11 Jim Meyering <meyering@redhat.com>
1666 * users.txt: Add gtk-vnc.
1668 2008-09-08 Simon Josefsson <simon@josefsson.org>
1670 * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
1673 * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
1674 required for 16-bit and 8-bit rotates.
1675 * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
1676 rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
1677 UINT8_MAX instead of hard-coded constants.
1678 Suggested by Paul Eggert.
1680 2008-09-07 Bruno Haible <bruno@clisp.org>
1682 * tests/test-striconveh.c (main): Check behaviour when converting from
1685 Make striconveh work better with stateful encodings.
1686 * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
1687 that iconv does not increment the inptr when returning -1/EINVAL.
1689 2008-09-07 Bruno Haible <bruno@clisp.org>
1691 * build-aux/config.rpath: Update according to libtool-2.2.6.
1692 * build-aux/config.libpath: Likewise.
1694 2008-09-06 Bruno Haible <bruno@clisp.org>
1696 * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
1697 * lib/freadptr.c (freadptr): Likewise.
1698 * lib/freadseek.c (freadptrinc): Likewise.
1699 Reported by Simon Josefsson.
1701 2008-09-06 Bruno Haible <bruno@clisp.org>
1703 * modules/freadptr (License): Change to LGPLv2+.
1704 * modules/freadseek (License): Likewise.
1705 Suggested by Eric Blake.
1707 * modules/memchr2 (License): Change to LGPLv2+.
1708 Approved by Eric Blake.
1710 2008-09-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1711 Bruno Haible <bruno@clisp.org>
1713 Make gnulib-tool work with native 'sed' on AIX.
1714 * gnulib-tool (sed_noop): New variable.
1715 (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
1716 func_add_or_update, func_create_testdir): Use it to initialize sed
1718 Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
1720 2008-09-04 Albert Chin <bug-gnulib@mlists.thewrittenword.com>
1721 Bruno Haible <bruno@clisp.org>
1723 * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
1724 also works after #include directives.
1726 2008-09-04 Ondřej Vašík <ovasik@redhat.com>
1728 getdate.y: reject an out-of-range timezone value
1729 * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
1730 the range [-24...+24]. When specified with only one or two digits,
1731 * tests/test-getdate.c: Tests for the fix.
1732 * doc/getdate.texi: Document this change.
1734 2008-09-03 Bruno Haible <bruno@clisp.org>
1736 * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
1738 2008-09-02 Simon Josefsson <simon@josefsson.org>
1740 * lib/bitrotate.h (rotl64, rotr64): Add. Suggested by Bruce Korb
1741 <bruce.korb@gmail.com> with ideas from Ben Pfaff
1742 <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
1743 Blake <ebb9@byu.net>.
1745 * tests/test-bitrotate.c: Add more test vectors.
1747 2008-09-02 Eric Blake <ebb9@byu.net>
1749 vasnprintf-posix: handle large precision via %.*d
1750 * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
1751 when handling it ourselves.
1752 * tests/test-vasnprintf-posix.c (test_function): Add test.
1753 * tests/test-snprintf-posix.h (test_function): Likewise.
1754 * tests/test-sprintf-posix.h (test_function): Likewise.
1755 * tests/test-vasprintf-posix.c (test_function): Likewise.
1756 Reported by Alain Guibert.
1758 2008-09-01 Eric Blake <ebb9@byu.net>
1760 c-stack: make configure-time check more robust
1761 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
1762 successful sigaction call.
1763 Reported by Tom G. Christensen.
1765 2008-09-01 Bruno Haible <bruno@clisp.org>
1767 New module 'findprog-lgpl'.
1768 * modules/findprog-lgpl: New file.
1769 * lib/findprog-lgpl.c: New file.
1770 * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
1771 also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
1772 to decide whether to use strdup or xstrdup, concatenated_filename or
1773 xconcatenated_filename.
1775 2008-09-01 Bruno Haible <bruno@clisp.org>
1777 Split module 'concat-filename' into 'concat-filename' (LGPL) and
1778 'xconcat-filename' (GPL).
1779 * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
1780 (License): Change to LGPLv2+.
1781 * modules/xconcat-filename: New file.
1782 * lib/concat-filename.h (concatenated_filename): Change specification.
1783 (xconcatenated_filename): New declaration.
1784 * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
1785 (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
1787 * lib/xconcat-filename.c: New file.
1788 * NEWS: Mention the change.
1789 * lib/findprog.c: Include concat-filename.h, not filename.h.
1790 (find_in_path): Use xconcatenated_filename instead of
1791 concatenated_filename.
1792 * lib/javacomp.c: Include concat-filename.h, not filename.h.
1793 (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
1794 is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
1795 is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
1796 is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
1797 instead of concatenated_filename.
1798 * lib/javaexec.c: Include concat-filename.h, not filename.h.
1799 (execute_java_class): Use xconcatenated_filename instead of
1800 concatenated_filename.
1801 * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
1802 * modules/javacomp (Depends-on): Likewise.
1803 * modules/javaexec (Depends-on): Likewise.
1805 2008-09-01 Bruno Haible <bruno@clisp.org>
1807 Split module 'filename' into 'filename' and 'concat-filename'.
1808 * modules/filename: Keep only lib/filename.h.
1809 (License): Change to LGPLv2+.
1810 * modules/concat-filename: New file, extracted from modules/filename.
1811 * lib/filename.h (concatenated_filename): Remove declaration.
1812 * lib/concat-filename.h: New file, extracted from lib/filename.h.
1813 * lib/concat-filename.c: Include concat-filename.h.
1814 * NEWS: Mention the change.
1816 2008-09-01 Simon Josefsson <simon@josefsson.org>
1818 * lib/bitrotate.h (rotl8, rotr8): Add.
1820 * modules/bitrotate (configure.ac): Need
1821 AC_REQUIRE([AC_C_INLINE]).
1822 (Description): Mention stdint.h. Reported by Bruno Haible
1825 * lib/bitrotate.h (rotr16, rotl16): Fix mask value. Reported by
1826 Paolo Bonzini <bonzini@gnu.org>.
1828 2008-08-31 Bruno Haible <bruno@clisp.org>
1830 Assume Solaris specific bi-arch conventions on Solaris systems.
1831 * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
1832 mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
1833 * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
1834 work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
1835 like acl_libdirstem.
1836 (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
1838 * NEWS: Mention the change.
1839 Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
1841 2008-08-31 Jim Meyering <meyering@redhat.com>
1843 * lib/strftime.h: Add comments describing the two added arguments.
1845 remove duplicate #include directives
1846 * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
1847 * lib/putenv.c: Remove duplicate #include <stdlib.h>.
1849 2008-08-31 Bruno Haible <bruno@clisp.org>
1851 New module 'sigpipe-die'.
1852 * modules/sigpipe-die: New file.
1853 * lib/sigpipe-die.h: New file.
1854 * lib/sigpipe-die.c: New file.
1855 * MODULES.html.sh (Signal handling): Add sigpipe-die.
1857 2008-08-31 Bruno Haible <bruno@clisp.org>
1859 Don't override previously installed signal handlers.
1860 * lib/fatal-signal.c (saved_sigactions): New variable.
1861 (uninstall_handlers): Reset the signal to the saved handler, not
1862 to SIG_DFL (except when ignored).
1863 (install_handlers): Save the previous handlers.
1865 2008-08-30 Bruno Haible <bruno@clisp.org>
1867 * gnulib-tool (func_reset_sigpipe): New function.
1868 (func_get_automake_snippet, func_modules_transitive_closure,
1869 func_import): Invoke it before a join command that reads from stdin,
1870 to avoid "echo: write error: Broken pipe" error messages on stderr.
1871 Reported by Sam Steingold <sds@gnu.org>.
1873 2008-08-30 Bruno Haible <bruno@clisp.org>
1875 * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
1876 Code copied from m4/open.m4.
1877 * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
1878 access and the filename ends in a slash. Code copied from lib/open.c.
1879 * doc/posix-functions/fopen.texi: Document bug with trailing slash.
1880 * tests/test-fopen.c (main): Check against bug with trailing slash.
1882 2008-08-29 Bruno Haible <bruno@clisp.org>
1884 Avoid some "gcc -pedantic" warnings.
1885 * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
1886 * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
1887 * lib/dirent.in.h: Likewise.
1888 * lib/fcntl.in.h: Likewise.
1889 * lib/float.in.h: Likewise.
1890 * lib/iconv.in.h: Likewise.
1891 * lib/inttypes.in.h: Likewise.
1892 * lib/locale.in.h: Likewise.
1893 * lib/math.in.h: Likewise.
1894 * lib/netinet_in.in.h: Likewise.
1895 * lib/search.in.h: Likewise.
1896 * lib/signal.in.h: Likewise.
1897 * lib/stdarg.in.h: Likewise.
1898 * lib/stdint.in.h: Likewise.
1899 * lib/stdio.in.h: Likewise.
1900 * lib/stdlib.in.h: Likewise.
1901 * lib/string.in.h: Likewise.
1902 * lib/strings.in.h: Likewise.
1903 * lib/sys_select.in.h: Likewise.
1904 * lib/sys_socket.in.h: Likewise.
1905 * lib/sys_stat.in.h: Likewise.
1906 * lib/sys_time.in.h: Likewise.
1907 * lib/sysexits.in.h: Likewise.
1908 * lib/time.in.h: Likewise.
1909 * lib/unistd.in.h: Likewise.
1910 * lib/wchar.in.h: Likewise.
1911 * lib/wctype.in.h: Likewise.
1912 * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
1913 * modules/fchdir (Makefile.am): Likewise.
1914 * modules/fcntl (Makefile.am): Likewise.
1915 * modules/float (Makefile.am): Likewise.
1916 * modules/iconv_open (Makefile.am): Likewise.
1917 * modules/inttypes (Makefile.am): Likewise.
1918 * modules/locale (Makefile.am): Likewise.
1919 * modules/math (Makefile.am): Likewise.
1920 * modules/netinet_in (Makefile.am): Likewise.
1921 * modules/search (Makefile.am): Likewise.
1922 * modules/signal (Makefile.am): Likewise.
1923 * modules/stdarg (Makefile.am): Likewise.
1924 * modules/stdint (Makefile.am): Likewise.
1925 * modules/stdio (Makefile.am): Likewise.
1926 * modules/stdlib (Makefile.am): Likewise.
1927 * modules/string (Makefile.am): Likewise.
1928 * modules/strings (Makefile.am): Likewise.
1929 * modules/sys_select (Makefile.am): Likewise.
1930 * modules/sys_socket (Makefile.am): Likewise.
1931 * modules/sys_stat (Makefile.am): Likewise.
1932 * modules/sys_time (Makefile.am): Likewise.
1933 * modules/sysexits (Makefile.am): Likewise.
1934 * modules/time (Makefile.am): Likewise.
1935 * modules/unistd (Makefile.am): Likewise.
1936 * modules/wchar (Makefile.am): Likewise.
1937 * modules/wctype (Makefile.am): Likewise.
1938 Reported by Reuben Thomas <rrt@sc3d.org>.
1940 2008-08-29 Bruno Haible <bruno@clisp.org>
1942 * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
1945 2008-08-29 Simon Josefsson <simon@josefsson.org>
1947 * MODULES.html.sh (Misc): Add bitrotate.
1949 * modules/bitrotate: New file.
1951 * lib/bitrotate.h: New file.
1953 * modules/bitrotate-tests: New file.
1955 * tests/test-bitrotate.c: New file.
1957 * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
1958 on the bitrotate module.
1960 * lib/arctwo.c: Use new bitrotate module.
1962 2008-08-29 Jim Meyering <meyering@redhat.com>
1964 bootstrap: merge changes from coreutils
1965 * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
1966 of copied files. Remove a kludge, now that this is fixed.
1967 * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
1968 * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
1969 * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
1971 2008-08-29 Bruno Haible <bruno@clisp.org>
1973 * MODULES.html.sh: Remove --cvs-urls option.
1975 2008-08-28 Jose E. Marchesi <jemarch@gnu.org> (tiny change)
1977 maint.mk: adjust to file name change
1978 * top/maint.mk: s/Makefile.cfg/cfg.mk/.
1980 2008-08-28 Jim Meyering <meyering@redhat.com>
1982 * modules/getndelim2 (License): Relicense to LGPLv2+.
1983 Approved by Richard Stallman for the version of 1995, and by
1984 Paul Eggert, Bruno Haible, Eric Blake for their contributions.
1986 2008-08-27 Paolo Bonzini <bonzini@gnu.org>
1988 * lib/getdelim.c (flockfile, funlockfile): Make all of them
1989 dummy if one is not available. Do not touch them if
1990 USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
1991 (getc_maybe_unlocked): New.
1992 * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
1994 2008-08-26 Eric Blake <ebb9@byu.net>
1996 doc/INSTALL: resync from autoconf
1997 * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
1998 (INSTALL_PRELUDE): Delete; this is done more efficiently by
2000 * install.texi [!autoconf]: ...here. Resync from autoconf.
2001 * INSTALL: Regenerate.
2002 * INSTALL.ISO: New file.
2003 * INSTALL.UTF-8: Likewise.
2005 2008-08-26 Jim Meyering <meyering@redhat.com>
2007 GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
2008 * top/GNUmakefile (_is-dist-target, _is-install-target): Make
2009 these definitions conditional, so that they may be overridden, too.
2011 2008-08-26 Bruno Haible <bruno@clisp.org>
2013 Generate INSTALL file variants with prettier quotes.
2014 * doc/Makefile (INSTALL_PRELUDE): New macro.
2016 (INSTALL.ISO, INSTALL.UTF-8): New rules.
2018 2008-08-26 Bruno Haible <bruno@clisp.org>
2020 Run makeinfo in an English locale.
2021 * doc/Makefile (MAKEINFO): New variable.
2023 2008-08-26 Bruno Haible <bruno@clisp.org>
2025 * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
2026 Suggested by Eric Blake.
2028 2008-08-25 Bruno Haible <bruno@clisp.org>
2030 * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
2032 2008-08-25 Eric Blake <ebb9@byu.net>
2034 c-stack: test that stack overflow can be caught
2035 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
2036 that platform allows handling stack overflow; at least OS/2 EMX
2037 has sigaltstack, but crashes before transferring control to
2038 handler on stack overflow.
2039 * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
2040 check for HAVE_STACK_OVERFLOW_HANDLING.
2041 Reported by Elbert Pol.
2043 2008-08-25 Bruno Haible <bruno@clisp.org>
2045 * doc/posix-functions/strftime.texi: Fix description of strftime
2048 2008-08-24 Bruno Haible <bruno@clisp.org>
2050 * tests/uniwidth/test-uc_width2.c: New file.
2051 * tests/uniwidth/test-uc_width2.sh: New file.
2052 * modules/uniwidth/width-tests (Files): Add the new files.
2053 (TESTS): Add uniwidth/test-uc_width2.sh.
2054 (TESTS_ENVIRONMENT): New variable.
2055 (check_PROGRAMS): Add test-uc_width2.
2056 (test_uc_width2_SOURCES): New variable.
2058 Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
2059 * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
2061 Reported by Alexander V. Lukyanov <lav@netis.ru>.
2063 2008-08-22 Eric Blake <ebb9@byu.net>
2065 test-lock, test-tls: mention why a test is skipped
2066 * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
2068 * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
2070 count-one-bits: relax license
2071 * modules/count-one-bits (License): Relicense to LGPLv2+.
2072 Suggested by Ludovic Courtès, approved by Ben Pfaff.
2074 2008-08-22 Andreas Schwab <schwab@suse.de>
2076 * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
2077 Remove spurious space in assignment.
2079 2008-08-21 Simon Josefsson <simon@josefsson.org>
2081 * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC. Reported by
2082 Paul Eggert <eggert@CS.UCLA.EDU>.
2084 2008-08-20 Paolo Bonzini <bonzini@gnu.org>
2086 * modules/gettext: Add m4/threadlib.m4.
2088 2008-08-19 Eric Blake <ebb9@byu.net>
2090 test-c-stack: fix compilation failure on FreeBSD 5.0
2091 * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
2092 headers before <sys/resource.h>.
2093 * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
2095 Reported by Nelson H. F. Beebe.
2097 strverscmp: migrate from "strverscmp.h" to <string.h>
2098 * modules/string (Makefile.am): Add new hooks.
2099 * modules/strverscmp (Files): Remove strverscmp.h.
2100 (Depends-on): Add string.
2101 (configure.ac): Add indicator.
2102 (Include): Mention new header.
2103 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
2105 * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
2107 * lib/strverscmp.h: Delete.
2108 * lib/string.in.h (strverscmp): Provide declaration, when needed.
2109 * tests/test-strverscmp.c (includes): Adjust client.
2110 * lib/check-version.c (includes): Likewise.
2111 * NEWS: Document the change.
2113 strverscmp: add unit test
2114 * modules/strverscmp-tests: New file.
2115 * tests/test-strverscmp.c: Likewise.
2117 2008-08-19 Simon Josefsson <simon@josefsson.org>
2119 * lib/gc-gnulib.c: Indentation cleanup. Add some comments
2120 regarding Windows crypto stuff, from Mono.
2122 2008-08-19 Adam Strzelecki <ono@java.pl> (tiny change)
2124 * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT. Try to use Intel CSP
2125 if present, for intel RND. Return error on failures.
2127 2008-08-18 Ben Pfaff <blp@gnu.org>
2129 gitlog-to-changelog: give better diagnostic for failed pipe-open
2130 * build-aux/gitlog-to-changelog: Improve error message: suggest
2131 that the version of Git may be too old.
2133 2008-08-18 Simon Josefsson <simon@josefsson.org>
2135 * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity. Use
2136 ISO 8601 format. Suggested by Greg Troxel <gdt@ir.bbn.com>.
2138 2008-08-18 Bruno Haible <bruno@clisp.org>
2140 * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
2143 2008-08-18 Bruno Haible <bruno@clisp.org>
2145 * lib/glthread/threadlib.c: Include <pthread.h>.
2147 2008-08-18 Bruno Haible <bruno@clisp.org>
2149 * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
2150 glthread_recursive_lock_* macros.
2151 * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
2154 2008-08-18 Bruno Haible <bruno@clisp.org>
2156 * lib/glthread/thread.c: Avoid forcing a context switch right after
2159 2008-08-17 Bruno Haible <bruno@clisp.org>
2161 * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
2162 * lib/glthread/thread.h: Provide Win32 specific implementation.
2163 * modules/thread (Files): Add lib/glthread/thread.c.
2164 (Depends-on): Add lock.
2165 (Makefile.am): Add glthread/thread.c to lib_SOURCES.
2167 2008-08-17 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
2170 * modules/yield: New file.
2171 * lib/glthread/yield.h: New file.
2172 * m4/yield.m4: New file.
2173 * MODULES.html.sh (Multithreading): Add yield.
2175 2008-08-17 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
2177 New module 'thread'.
2178 * modules/thread: New file.
2179 * lib/glthread/thread.h: New file.
2180 * m4/thread.m4: New file.
2181 * MODULES.html.sh (Multithreading): Add thread.
2183 2008-08-17 Bruno Haible <bruno@clisp.org>
2185 * lib/glthread/lock.h: Include <stdlib.h> always.
2186 * lib/glthread/tls.h: Likewise.
2187 * lib/glthread/cond.h: Likewise.
2189 2008-08-17 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
2192 * modules/cond: New file.
2193 * lib/glthread/cond.h: New file.
2194 * lib/glthread/cond.c: New file.
2195 * m4/cond.m4: New file.
2196 * MODULES.html.sh (Multithreading): Add cond.
2198 2008-08-16 Eric Blake <ebb9@byu.net>
2200 c-stack: fix regression on Irix 5.3 from 2008-06-21
2201 * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
2203 * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
2204 (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
2205 * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
2206 * modules/signal (Makefile.am): Use the value.
2207 * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
2208 && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
2209 * doc/posix-headers/signal.texi (signal.h): Document this
2211 * doc/posix-functions/sigaction.texi (sigaction): Likewise.
2212 Reported by Tom G. Christensen.
2214 2008-08-17 Bruno Haible <bruno@clisp.org>
2216 New module 'threadlib'.
2217 * modules/threadlib: New file.
2218 * lib/glthread/threadlib.c: New file, extracted from
2219 lib/glthread/lock.c.
2220 * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
2222 * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
2223 gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
2224 * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
2226 (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
2227 (gl_DISABLE_THREADS): Remove macro.
2228 * modules/lock (Files): Remove build-aux/config.rpath.
2229 (Depends-on): Remove havelib. Add threadlib.
2230 (configure.ac-early): Remove section.
2231 * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
2232 * modules/tls (Depends-on): Remove lock. Add threadlib.
2233 (Link): New section, copied from threadlib.
2234 * MODULES.html.sh (Multithreading): Add threadlib.
2236 2008-08-14 Bruno Haible <bruno@clisp.org>
2238 * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
2239 glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
2240 glthread_rwlock_unlock, glthread_rwlock_destroy,
2241 glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
2242 glthread_recursive_lock_destroy): Define as macros always.
2243 * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
2245 (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
2246 (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
2247 (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
2248 (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
2249 (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
2250 (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
2251 (glthread_recursive_lock_lock_func): Renamed from
2252 glthread_recursive_lock_lock.
2253 (glthread_recursive_lock_unlock_func): Renamed from
2254 glthread_recursive_lock_unlock.
2255 (glthread_recursive_lock_destroy_func): Renamed from
2256 glthread_recursive_lock_destroy.
2258 2008-08-14 Bruno Haible <bruno@clisp.org>
2260 * lib/glthread/lock.h: Renamed from lib/lock.h.
2261 * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
2262 * lib/glthread/tls.h: Renamed from lib/tls.h.
2263 * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
2264 * lib/fstrcmp.c: Update includes.
2265 * lib/strsignal.c: Update includes.
2266 * modules/lock (Files, Makefile.am): Update.
2267 (Include): Change to "glthread/lock.h".
2268 * modules/tls (Files, Makefile.am): Update.
2269 (Include): Change to "glthread/tls.h".
2270 * tests/test-lock.c: Update includes.
2271 * tests/test-tls.c: Update includes.
2272 * NEWS: Mention the renamed header files.
2274 2008-08-11 Jim Meyering <meyering@redhat.com>
2276 * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
2278 2008-08-11 Eric Blake <ebb9@byu.net>
2280 test-c-stack: avoid C99-ism
2281 * tests/test-c-stack.c (main): Fix whitespace, move declaration
2283 Reported by Alain Guibert.
2285 2008-08-10 Jim Meyering <meyering@redhat.com>
2287 ensure that return value of uinttostr et al are not ignored
2288 * lib/inttostr.h (__GNUC_PREREQ): Define.
2289 (__attribute_warn_unused_result__): Define.
2290 (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
2292 2008-08-07 Paolo Bonzini <bonzini@gnu.org>
2294 * lib/lock.c (glthread_recursive_lock_init_multithreaded)
2295 [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
2297 2008-08-07 Jim Meyering <meyering@redhat.com>
2299 * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
2301 * modules/mkstemp (License): Relicense under LGPLv2+.
2302 * modules/tempname (License): Likewise.
2304 2008-08-06 Bruno Haible <bruno@clisp.org>
2306 * lib/poll.c (poll): Further micro-optimization.
2308 2008-08-06 Jim Meyering <meyering@redhat.com>
2310 inet_pton.c: use locale-independent tolower
2311 * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
2312 (inet_pton6): Use c_tolower rather than tolower.
2313 * modules/inet_pton (Depends-on): Add c-ctype.
2315 2008-08-06 Paolo Bonzini <bonzini@gnu.org>
2317 * lib/poll.c (poll): Avoid division when timeout is 0, cache
2318 _SC_OPEN_MAX, avoid repeated access to errno. Check for nfd < 0.
2320 2008-08-06 Jim Meyering <meyering@redhat.com>
2322 * modules/inet_pton (License): Relicense under LGPLv2+.
2324 2008-08-03 Bruno Haible <bruno@clisp.org>
2326 Additional non-aborting API for lock and tls.
2327 * lib/lock.h: Include <errno.h>.
2328 (glthread_lock_init): New macro/function.
2329 (gl_lock_init): Define as wrapper around glthread_lock_init.
2330 (glthread_lock_lock): New macro/function.
2331 (gl_lock_lock): Define as wrapper around glthread_lock_lock.
2332 (glthread_lock_unlock): New macro/function.
2333 (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
2334 (glthread_lock_destroy): New macro/function.
2335 (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
2336 (glthread_rwlock_init): New macro/function.
2337 (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
2338 (glthread_rwlock_rdlock): New macro/function.
2339 (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
2340 (glthread_rwlock_wrlock): New macro/function.
2341 (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
2342 (glthread_rwlock_unlock): New macro/function.
2343 (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
2344 (glthread_rwlock_destroy): New macro/function.
2345 (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
2346 (glthread_recursive_lock_init): New macro/function.
2347 (gl_recursive_lock_init): Define as wrapper around
2348 glthread_recursive_lock_init.
2349 (glthread_recursive_lock_lock): New macro/function.
2350 (gl_recursive_lock_lock): Define as wrapper around
2351 glthread_recursive_lock_lock.
2352 (glthread_recursive_lock_unlock): New macro/function.
2353 (gl_recursive_lock_unlock): Define as wrapper around
2354 glthread_recursive_lock_unlock.
2355 (glthread_recursive_lock_destroy): New macro/function.
2356 (gl_recursive_lock_destroy): Define as wrapper around
2357 glthread_recursive_lock_destroy.
2358 (glthread_once): New macro/function.
2359 (gl_once): Define as wrapper around glthread_once.
2360 Update function declarations.
2361 * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
2362 glthread_rwlock_init. Return error code.
2363 (glthread_rwlock_rdlock_multithreaded): Renamed from
2364 glthread_rwlock_rdlock. Return error code.
2365 (glthread_rwlock_wrlock_multithreaded): Renamed from
2366 glthread_rwlock_wrlock. Return error code.
2367 (glthread_rwlock_unlock_multithreaded): Renamed from
2368 glthread_rwlock_unlock. Return error code.
2369 (glthread_rwlock_destroy_multithreaded): Renamed from
2370 glthread_rwlock_destroy. Return error code.
2371 (glthread_recursive_lock_init_multithreaded): Renamed from
2372 glthread_recursive_lock_init. Return error code.
2373 (glthread_recursive_lock_lock_multithreaded): Renamed from
2374 glthread_recursive_lock_lock. Return error code.
2375 (glthread_recursive_lock_unlock_multithreaded): Renamed from
2376 glthread_recursive_lock_unlock. Return error code.
2377 (glthread_recursive_lock_destroy_multithreaded): Renamed from
2378 glthread_recursive_lock_destroy. Return error code.
2379 (glthread_once_call): Make static.
2380 (glthread_once_multithreaded): Renamed from glthread_once.
2381 * lib/tls.h: Include <errno.h>.
2382 (glthread_tls_key_init): New macro/function.
2383 (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
2384 (glthread_tls_set): New macro/function.
2385 (gl_tls_set): Define as wrapper around glthread_tls_set.
2386 (glthread_tls_key_destroy): New macro/function.
2387 (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
2388 Update function declarations.
2389 * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
2391 Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
2393 2008-08-04 Eric Blake <ebb9@byu.net>
2395 gnumakefile: use space, not TAB, outside of targets
2396 * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
2398 2008-08-02 Jim Meyering <meyering@redhat.com>
2400 getdate.y: avoid locale-dependent date parsing failure
2401 In Turkish locales, getdate would fail to recognize keywords
2402 containing a lowercase "i". The solution is not to rely on
2403 locale-sensitive case-conversion.
2404 * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
2405 (lookup_word): Use c_toupper in place of toupper.
2406 (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
2407 Reported by Vefa Bicakci <bicave@superonline.com> in
2408 <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
2409 * modules/getdate (Depends-on): Add c-ctype.
2411 2008-08-02 Bruno Haible <bruno@clisp.org>
2413 * gnulib-tool (func_import): When updating or creating a .gitignore
2414 file, prepend each added line with a slash, and ignore leading slashes
2415 from the existing lines.
2416 Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
2418 2008-08-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2420 Portability fix for GNU make 3.79.1.
2421 * top/GNUmakefile: Avoid 'else COND', which older GNU make
2422 versions do not understand.
2424 2008-08-01 Bruno Haible <bruno@clisp.org>
2426 Work around bug of HP-UX 10.20 cc with -0.0 literal.
2427 * tests/test-isnanf.h (zero): New variable.
2428 (main): Avoid literal -0.0f.
2429 * tests/test-isnand.h (zero): New variable.
2430 (main): Avoid literal -0.0.
2431 * tests/test-isnanl.h (zero): New variable.
2432 (main): Avoid literal -0.0L.
2433 * tests/test-isnan.c (zerof, zerod, zerol): New variables.
2434 (test_float, test_double, test_long_double): Avoid literals -0.0f,
2436 * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
2437 (test_signbitd): Avoid literal -0.0.
2438 (test_signbitl): Avoid literal -0.0L.
2439 * tests/test-ceilf1.c (zero): New variable.
2440 (main): Avoid literal -0.0f.
2441 * tests/test-ceill.c (zero): New variable.
2442 (main): Avoid literal -0.0L.
2443 * tests/test-floorf1.c (zero): New variable.
2444 (main): Avoid literal -0.0f.
2445 * tests/test-floorl.c (zero): New variable.
2446 (main): Avoid literal -0.0L.
2447 * tests/test-roundf1.c (zero): New variable.
2448 (main): Avoid literal -0.0f.
2449 * tests/test-round1.c (zero): New variable.
2450 (main): Avoid literal -0.0.
2451 * tests/test-roundl.c (zero): New variable.
2452 (main): Avoid literal -0.0L.
2453 * tests/test-truncf1.c (zero): New variable.
2454 (main): Avoid literal -0.0f.
2455 * tests/test-trunc1.c (zero): New variable.
2456 (main): Avoid literal -0.0.
2457 * tests/test-truncl.c (zero): New variable.
2458 (main): Avoid literal -0.0L.
2459 * tests/test-frexp.c (zero): New variable.
2460 (main): Avoid literal -0.0.
2461 * tests/test-frexpl.c (zero): New variable.
2462 (main): Avoid literal -0.0L.
2463 * tests/test-ldexpl.c (zero): New variable.
2464 (main): Avoid literal -0.0L.
2465 * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
2466 (zerod, zerol): New variables.
2467 (test_function): Avoid literals -0.0, -0.0L.
2468 * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
2469 (zerod, zerol): New variables.
2470 (test_function): Avoid literals -0.0, -0.0L.
2471 * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
2472 (zerod, zerol): New variables.
2473 (test_function): Avoid literals -0.0, -0.0L.
2474 * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
2475 (zerod, zerol): New variables.
2476 (test_function): Avoid literals -0.0, -0.0L.
2477 * tests/test-strtod.c (zero): New variable.
2478 (main): Avoid literal -0.0.
2479 Reported by Jonathan C. Patschke <jp@centtech.com>.
2481 2008-07-31 Jim Meyering <meyering@redhat.com>
2483 sha256.h: correct definition of SHA224_DIGEST_SIZE
2484 * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
2485 Reported by Paulie Pena IV <paulie4@gmail.com>.
2486 Define as 224 / 8, rather than as a literal.
2487 (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
2488 * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
2489 (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
2491 2008-07-31 Bruno Haible <bruno@clisp.org>
2493 * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
2494 on HP-UX 10.20 with "cc -Ae". Fix second conditional.
2495 Reported by Jonathan Patschke <jp@centtech.com>.
2497 2008-07-31 Bruno Haible <bruno@clisp.org>
2499 * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
2500 Reported by Paolo Bonzini <bonzini@gnu.org>.
2502 2008-07-30 Eric Blake <ebb9@byu.net>
2504 test-strtod: allow compilation without -lm
2505 * tests/test-strtod.c (main): Avoid link dependence on fabs.
2506 Reported by Dennis Clarke <blastwave@gmail.com>.
2508 2008-07-28 Jim Meyering <meyering@redhat.com>
2510 bootstrap: work also when there are no .po files in po/
2511 * build-aux/bootstrap (update_po_files): Complete the change
2512 that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
2514 2008-07-27 Jim Meyering <meyering@redhat.com>
2516 * users.txt: Add zile.
2518 2008-07-26 Ben Pfaff <blp@gnu.org>
2520 Add missing dependencies on new m4/exponent[fdl].m4 files.
2521 * modules/isnanf-nolibm: Add m4/exponentf.m4.
2522 * modules/isnand-nolibm: Add m4/exponentd.m4.
2523 * modules/isnanl-nolibm: Add m4/exponentl.m4.
2524 * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
2525 m4/isnan[fdl].m4, because the macros actually used moved.
2526 Reported by Jim Meyering.
2528 2008-07-14 Ben Pfaff <blp@gnu.org>
2531 * lib/isinf.c: New file.
2532 * lib/math.in.h: Define isinf macro if we have decided to replace
2534 * m4/isinf.m4: New file.
2535 * m4/math_h.m4: Initialize and substitute variables for isinf
2537 * modules/isinf: New file.
2538 * modules/isinf-tests: New file.
2539 * modules/math: Add substitutions for new module.
2540 * tests/test-isinf.c: New file.
2541 * doc/posix-functions/isinf.texi: Mention new module.
2542 * MODULES.html.sh: Mention new module.
2544 2008-07-14 Ben Pfaff <blp@gnu.org>
2546 Factor out some macros for use by additional modules.
2547 * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
2549 * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
2551 * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
2553 * m4/exponentf.m4: New file.
2554 * m4/exponentd.m4: New file.
2555 * m4/exponentl.m4: New file.
2556 * modules/isnanf: Use new file m4/exponentf.m4.
2557 * modules/isnand: Use new file m4/exponentd.m4.
2558 * modules/isnanl: Use new file m4/exponentl.m4.
2560 2008-07-23 Ulrich Drepper <drepper@redhat.com>
2562 mktime.c: normalize tp->tm_isdst value to -1/0/1.
2563 * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
2564 Reported by Michael Ringe <Michael.Ringe@gmx.de> in
2565 <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
2567 * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
2568 readlink on platforms without PATH_MAX.
2570 2008-07-21 Eric Blake <ebb9@byu.net>
2572 Warn, not fail, on stale version.
2573 * top/GNUmakefile (_curr-ver): Tone down previous patch.
2575 Don't allow installation with stale devel version number.
2576 * top/GNUmakefile (_is-install-target): New macro.
2577 (_curr-ver): Forbid installation with stale version number.
2579 2008-07-20 Bruno Haible <bruno@clisp.org>
2581 * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
2583 * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
2585 2008-07-20 Bruno Haible <bruno@clisp.org>
2587 * lib/c-stack.h (c_stack_action): Add documentation.
2588 * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
2590 2008-07-20 Bruno Haible <bruno@clisp.org>
2592 * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
2593 * modules/readlink (License): Likewise.
2595 2008-07-17 Eric Blake <ebb9@byu.net>
2597 * modules/c-stack (Link): Fix typo.
2599 Make c-stack use libsigsegv, when available.
2600 * modules/c-stack (Depends-on): Add libsigsegv.
2601 * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
2603 * lib/c-stack.c (SIGSTKSZ): Define fallback.
2604 (segv_handler, overflow_handler, c_stack_action)
2605 [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
2606 implementation when libsigsegv is available, but only when using
2607 the library is necessary.
2608 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
2609 comment, explaining why XSI check fails on Linux.
2610 (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
2611 * tests/test-c-stack2.sh: Tweak skip message.
2612 * NEWS: Document new link-time requirements.
2614 2008-07-16 Eric Blake <ebb9@byu.net>
2616 c-stack: Expose false positives when not using libsigsegv.
2617 * modules/c-stack-tests (Files): Expand test.
2618 * tests/test-c-stack.c (main): Add means to conditionally trigger
2619 non-overflow SIGSEGV.
2620 * tests/test-c-stack2.sh: New file.
2622 2008-07-14 Bruno Haible <bruno@clisp.org>
2624 * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
2625 Reported by Eric Blake.
2627 2008-07-14 Sam Steingold <sds@gnu.org>
2628 Bruno Haible <bruno@clisp.org>
2630 New module libsigsegv.
2631 * modules/libsigsegv: New file.
2632 * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
2634 * MODULES.html.sh (Signal handling): New section.
2636 2008-07-14 Bruno Haible <bruno@clisp.org>
2638 * modules/unictype/ctype-* (Description): Add the word "function".
2639 Improves the resulting doc in MODULES.html.
2641 2008-07-12 Ben Pfaff <blp@gnu.org>
2643 Add longlong module.
2644 * modules/longlong: New file.
2646 2008-07-12 Bruno Haible <bruno@clisp.org>
2648 * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
2651 2008-07-10 Ben Pfaff <blp@gnu.org>
2654 * doc/posix-functions/isnan.texi: Mention new module.
2655 * lib/math.in.h: Define isnan macro if we have decided to replace
2657 * m4/isnan.m4: New file.
2658 * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
2659 macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
2661 (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
2663 * m4/math_h.m4: Initialize and substitute variables for isnan
2665 * modules/isnan: New file.
2666 * modules/isnan-tests: New file.
2667 * modules/math: Add substitutions for new module.
2668 * tests/test-isnan.c: New file.
2669 * MODULES.html.sh: Mention new module.
2671 2008-07-10 Ben Pfaff <blp@gnu.org>
2674 * lib/isnanf.m4: New file.
2675 * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
2676 (gl_HAVE_ISNANF_IN_LIBM): New macro.
2677 (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
2678 gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
2679 * modules/isnanf: New file.
2680 * modules/isnanf-tests: New file.
2681 * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
2683 * tests/test-isnanf-nolibm.c: factored most of its contents into
2684 new file tests/test-isnanf.h.
2685 * tests/test-isnanf.h: New file.
2686 * tests/test-isnanf.c: New file.
2687 * MODULES.html.sh: Mention new module.
2688 * doc/glibc-functions/isnanf.texi: Mention new module.
2690 2008-07-10 Ben Pfaff <blp@gnu.org>
2693 * lib/isnand.h: New file.
2694 * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
2695 (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
2696 gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
2698 (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
2699 gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
2700 (gl_HAVE_ISNAND_IN_LIBM): New macro.
2701 * modules/isnand: New file.
2702 * modules/isnand-tests: New file.
2703 * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
2705 * tests/test-isnand-nolibm.c: factored most of its contents into
2706 new file tests/test-isnand.h.
2707 * tests/test-isnand.h: New file.
2708 * tests/test-isnand.c: New file.
2709 * MODULES.html.sh: Mention new module.
2711 2008-07-10 Ben Pfaff <blp@gnu.org>
2713 * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
2714 * lib/isnand.h: Rename lib/isnand-nolibm.h.
2715 * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
2716 * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
2717 * modules/isnanf-nolibm: Update references to renamed files.
2718 * modules/isnand-nolibm: Likewise.
2719 * modules/isnanf-nolibm-tests: Likewise.
2720 * modules/isnand-nolibm-tests: Likewise.
2721 * lib/frexp.c: Likewise.
2722 * lib/isfinite.c: Likewise.
2723 * lib/signbitd.c: Likewise.
2724 * lib/signbitf.c: Likewise.
2725 * lib/vasnprintf.c: Likewise.
2726 * tests/test-ceilf1.c: Likewise.
2727 * tests/test-ceilf2.c: Likewise.
2728 * tests/test-floorf1.c: Likewise.
2729 * tests/test-floorf2.c: Likewise.
2730 * tests/test-frexp.c: Likewise.
2731 * tests/test-round1.c: Likewise.
2732 * tests/test-round2.c: Likewise.
2733 * tests/test-roundf1.c: Likewise.
2734 * tests/test-strtod.c: Likewise.
2735 * tests/test-trunc1.c: Likewise.
2736 * tests/test-trunc2.c: Likewise.
2737 * tests/test-truncf1.c: Likewise.
2738 * tests/test-truncf2.c: Likewise.
2739 * NEWS: Mention the renamed header files.
2741 2008-07-11 Jim Meyering <meyering@redhat.com>
2743 vc-list-files: make the last-resort awk code more portable
2744 * build-aux/vc-list-files: Don't rely on awk's "sub" command.
2745 /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
2746 does not support it.
2748 2008-07-10 Eric Blake <ebb9@byu.net>
2750 Work with tar's bootstrap.
2751 * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
2752 where LIBSOURCES_DIR contains .#bootmp but must not be treated as
2755 2008-07-09 Jim Meyering <meyering@redhat.com>
2757 posix-shell.m4: fix typo that made this test malfunction
2758 * m4/posix-shell.m4: Remove capitalization in variable name.
2760 2008-07-08 Bruno Haible <bruno@clisp.org>
2762 * m4/onceonly.m4: Update comments.
2763 Reported by Ben Pfaff <blp@cs.stanford.edu>.
2765 2008-07-04 Jim Meyering <meyering@redhat.com>
2767 * users.txt: Add vc-dwim.
2768 (bison, coreutils): Use the gitweb URL.
2770 2008-07-03 Jim Meyering <meyering@redhat.com>
2772 * users.txt: Add libffcall. From Sam Steingold.
2774 2008-07-03 Ondřej Vašík <ovasik@redhat.com>
2776 getdate.y: do not ignore TZ with relative day, month or year offset
2777 * lib/getdate.y (get_date): Move the tz-handling block to follow the
2778 relative-date-handling, since otherwise, the latter would clobber the
2779 sole output (an updated Start value) of the tz-handling block.
2780 * tests/test-getdate.c: Tests for the fix
2782 2008-07-03 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2784 Recognize 'foo_LIBRARIES += libgnu.a'.
2785 * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
2786 makefile snippet has already specified an installation location,
2789 2008-07-02 Ondřej Vašík <ovasik@redhat.com>
2791 getdate.y: factor out common actions
2792 * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
2793 Use them in place of open-coded actions.
2795 2008-07-01 Simon Josefsson <simon@josefsson.org>
2797 Add self-test for getdate module.
2798 * modules/getdate-tests: New file.
2799 * tests/test-getdate.c: New file.
2801 2008-06-29 Bruno Haible <bruno@clisp.org>
2803 * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
2805 Reported by Sylvain Beucler <beuc@beuc.net>.
2807 2008-06-29 Bruno Haible <bruno@clisp.org>
2809 * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
2810 * m4/gnulib-tool.m4: Update to match current gnulib-tool.
2812 2008-06-29 Bruno Haible <bruno@clisp.org>
2814 * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
2816 Reported by Sylvain Beucler <beuc@beuc.net>.
2818 2008-06-26 Jim Meyering <meyering@redhat.com>
2820 make several modules depend on the "open" module
2821 This provides slightly increased consistency when opening-for-write
2822 the name of a non-directory spelled with a trailing slash.
2823 * modules/chdir-safer: Likewise.
2824 * modules/chown: Likewise.
2825 * modules/clean-temp: Likewise.
2826 * modules/copy-file: Likewise.
2827 * modules/fchdir: Likewise.
2828 * modules/fcntl-safer: Likewise.
2829 * modules/pipe: Likewise.
2830 * modules/utime: Likewise.
2831 Prompted by Eric Blake and Bruno Haible.
2833 2008-06-24 Andreas Schwab <schwab@suse.de>
2835 * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
2836 literals can be used as initializers for global variables.
2838 2008-06-23 Eric Blake <ebb9@byu.net>
2840 Make gnulib-cache.m4 easier to diff.
2841 * gnulib-tool (func_import): Allow newlines when reading cached
2842 gl_MODULES, and generate newlines when creating gnulib-cache.m4.
2844 2008-06-23 Bruno Haible <bruno@clisp.org>
2846 * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
2847 (gl_PREREQ_SIGPROCMASK): Don't invoke it.
2848 * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
2849 m4/signalblocking.m4.
2850 (gl_PREREQ_SIGACTION): Don't invoke it.
2851 * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
2852 gl_PREREQ_SIG_HANDLER_H.
2853 * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
2854 Don't check for sigaction here.
2856 2008-06-23 Bruno Haible <bruno@clisp.org>
2858 * lib/fatal-signal.c (fatal_signal_handler): Update comment.
2859 (install_handlers): Don't set the SA_RESETHAND flag.
2861 2008-06-23 Bruno Haible <bruno@clisp.org>
2863 * m4/sigaction.m4: Comment fixes.
2864 * lib/signal.in.h: Likewise.
2866 2008-06-23 Eric Blake <ebb9@byu.net>
2869 * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
2871 Avoid SA_ namespace.
2872 * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
2873 Reported by Ralf Wildenhues.
2875 Avoid test failure due to SA_RESTORER.
2876 * tests/test-sigaction.c (SA_MASK): New macro.
2877 (main): Avoid failing due to extension flags being set.
2878 Reported by Jim Meyering.
2880 Revert use of sig-handler.h in sigprocmask.c.
2881 * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
2882 it requires the existence of struct sigaction.
2883 * lib/sigprocmask.c (handler_t): Restore typedef.
2884 (rpl_signal, old_handlers): Use local type.
2886 2008-06-22 Bruno Haible <bruno@clisp.org>
2888 * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
2890 Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
2892 2008-06-22 Bruno Haible <bruno@clisp.org>
2894 * doc/posix-functions/siginterrupt.texi: Move note.
2896 * lib/signal.in.h (SA_RESTART): New macro.
2897 * lib/sigaction.c: Update comment.
2899 * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
2901 * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
2902 (gl_PREREQ_SIGPROCMASK): Invoke it.
2903 * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
2905 * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
2907 * lib/sigprocmask.c: Update a comment.
2909 2008-06-21 Eric Blake <ebb9@byu.net>
2911 Use sigaction module rather than signal().
2912 * modules/c-stack (Depends-on): Add sigaction.
2913 * modules/fatal-signal (Depends-on): Likewise.
2914 * modules/nanosleep (Depends-on): Likewise.
2915 * modules/sigprocmask (Files): Add sig-handler.h.
2916 * modules/sigaction (Files): Likewise.
2917 * lib/sig-handler.h (get_handler): New file, suggested by Paul
2919 * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
2920 (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
2921 * lib/fatal-signal.c (uninstall_handlers, install_handlers)
2922 (init_fatal_signals): Likewise.
2923 * lib/nanosleep.c (rpl_nanosleep): Likewise.
2924 (siginterrupt): Delete fallback.
2925 * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
2927 * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
2930 New module sigaction, for mingw.
2931 * modules/sigaction: New module...
2932 * modules/sigaction-tests: ...and its test.
2933 * m4/sigaction.m4: New file.
2934 * lib/sigaction.c: Likewise.
2935 * tests/test-sigaction.c: Likewise.
2936 * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
2937 * modules/signal (Makefile.am): Likewise.
2938 * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
2940 * doc/posix-headers/signal.texi (signal.h): Mention provided
2942 * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
2943 that sigaction is preferable.
2944 * doc/posix-functions/sigaction.texi (sigaction): Mention new
2946 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
2949 Improve robustness of sigprocmask by overriding signal.
2950 * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
2952 * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
2953 (SIGKILL, SIGSTOP): Provide fallbacks.
2954 (rpl_signal): Implement.
2955 (old_handlers, blocked_set): Mark volatile, since sigprocmask and
2956 signal can be called inside handlers.
2958 Fix nanosleep module on mingw.
2959 * modules/nanosleep (Depends-on): Add sys_select.
2960 * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
2962 Fix licensing of sigprocmask.
2963 * modules/raise (License): Relicense as LGPL.
2965 2008-06-21 Bruno Haible <bruno@clisp.org>
2967 * lib/propername.c (proper_name_utf8): Don't use the transliterated
2968 result if it contains question marks.
2969 Reported by Michael Geng <linux@michaelgeng.de>.
2971 2008-06-19 Bruno Haible <bruno@clisp.org>
2974 * doc/gnulib.texi: Include updated-stamp.texi.
2975 * doc/Makefile (GNULIB_TEXI_FILES): New variable.
2976 (updated-stamp.texi): New rule.
2977 (gnulib.info): Depend on it.
2978 * doc/.gitignore: Add updated-stamp.texi.
2979 Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
2981 2008-06-19 Bruno Haible <bruno@clisp.org>
2983 * doc/Makefile (gnulib.info): Update and simplify dependencies.
2984 Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
2986 2008-06-19 Eric Blake <ebb9@byu.net>
2988 Fix VPATH 'make dist' with GNU make and non-VCS tarball.
2989 * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
2990 Reported by Stepan Kasal.
2992 2008-06-18 Bruno Haible <bruno@clisp.org>
2994 * lib/fatal-signal.c (init_fatal_signals): Add comment.
2995 Reported by Eric Blake.
2997 2008-06-18 Eric Blake <ebb9@byu.net>
2999 Work around cygwin 1.5.25 strsignal bug.
3000 * tests/test-strsignal.c: Allow for const char *.
3001 * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
3003 2008-06-18 Simon Josefsson <simon@josefsson.org>
3005 * users.txt: Update URL to article and add author/date
3008 2008-06-17 Bruno Haible <bruno@clisp.org>
3010 New macro gl_DISABLE_THREADS.
3011 * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
3012 if the user did not pass --enable-threads or --disable-threads option.
3013 (gl_DISABLE_THREADS): New macro.
3014 Reported by Eric Blake <ebb9@byu.net>.
3016 2008-06-17 Bruno Haible <bruno@clisp.org>
3018 * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
3019 when the macro ignores it.
3020 Based on a patch by Eric Blake <ebb9@byu.net>.
3022 2008-06-17 Bruno Haible <bruno@clisp.org>
3024 * modules/tls (License): Change to LGPLv2+.
3025 Reported by Eric Blake.
3027 2008-06-17 Eric Blake <ebb9@byu.net>
3029 Simplify c-stack prerequisites.
3030 * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
3031 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
3032 no longer requires <ucontext.h> to exist. Optimize setrlimit
3034 (gl_PREREQ_C_STACK): Remove check for unused getcontext and
3037 Move c-stack test into testsuite.
3038 * modules/c-stack-tests: New file.
3039 * lib/c-stack.c [DEBUG]: Move test program...
3040 * tests/test-c-stack.c: ...into this new file. Skip rather than
3041 fail test if sigaltstack is lacking.
3042 * tests/test-c-stack.sh: New driver file.
3044 2008-06-16 Eric Blake <ebb9@byu.net>
3046 Use raise module consistently.
3047 * modules/fatal-signal (Depends-on): Add raise.
3048 * modules/sigprocmask (Depends-on): Likewise.
3049 * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
3050 * lib/sigprocmask.c (sigprocmask): Likewise.
3051 * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
3052 * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
3054 Fix compliance bug in sigpending.
3055 * lib/sigprocmask.c (sigpending): Return pending array via
3056 parameter, not return value.
3058 2008-06-14 Eric Blake <ebb9@byu.net>
3060 Improve obstack-printf test code.
3061 * tests/test-obstack-printf.c (test_function): Fix comment, and
3062 simplify usage of obstack_* in macros. Add a test for coverage.
3063 Reported by Bruno Haible.
3065 2008-06-14 Bruno Haible <bruno@clisp.org>
3067 * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
3068 array size as a constant, not as a const variable.
3069 * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
3070 AC_USE_SYSTEM_EXTENSIONS.
3071 * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
3072 Test whether the obstack_printf function actually exists.
3073 * modules/obstack-printf (Depends-on): Add extensions.
3074 (Include): Remove obstack.h.
3075 * modules/obstack-printf-posix (Depends-on): Add extensions.
3076 (Include): Remove obstack.h.
3078 2008-06-13 Eric Blake <ebb9@byu.net>
3080 Add obstack-printf and obstack-printf-posix modules.
3081 * modules/obstack-printf: New file.
3082 * modules/obstack-printf-posix: Likewise.
3083 * MODULES.html.sh (Misc): Mention them.
3084 * doc/glibc-functions/obstack_printf.texi (obstack_printf):
3086 * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
3088 * modules/stdio (Makefile.am): Accomodate new modules.
3089 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
3090 * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
3092 * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
3094 * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
3095 (gl_REPLACE_OBSTACK_PRINTF): New macros
3096 * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
3097 * tests/test-obstack-printf.c: New file.
3098 * modules/obstack-printf-tests: Likewise.
3099 * modules/obstack-printf-posix-tests: Likewise.
3101 2008-06-11 Bruno Haible <bruno@clisp.org>
3103 * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
3104 * lib/open.c: Include errno.h.
3105 (open): Fail when attempting to write to a file that has a trailing
3107 * tests/test-open.c (main): Test against trailing slash bug.
3108 * doc/posix-functions/open.texi: Mention the trailing slash bug.
3110 2008-06-10 Bruno Haible <bruno@clisp.org>
3112 * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
3113 for $? to work inside the trap command, with various /bin/sh-s.
3114 * tests/test-vc-list-files-cvs.sh: Likewise.
3116 2008-06-10 Bruno Haible <bruno@clisp.org>
3118 * lib/acl-internal.h: Don't include gettext.h here.
3119 * lib/set-mode-acl.c: Include gettext.h here.
3120 * lib/copy-acl.c: Likewise.
3122 2008-06-10 Bruno Haible <bruno@clisp.org>
3124 * lib/wait-process.h (wait_subprocess): Add termsigp argument.
3125 * lib/wait-process.c (wait_subprocess): Likewise.
3126 * lib/execute.h (execute): Add termsigp argument.
3127 * lib/execute.c (execute): Likewise.
3128 * lib/csharpcomp.c (compile_csharp_using_pnet,
3129 compile_csharp_using_mono, compile_csharp_using_sscli): Update.
3130 * lib/csharpexec.c (execute_csharp_using_pnet,
3131 execute_csharp_using_mono, execute_csharp_using_sscli): Update.
3132 * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
3133 compile_using_javac, compile_using_jikes, is_envjavac_gcj,
3134 is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
3135 is_jikes_present): Update.
3136 * lib/javaexec.c (execute_java_class): Update.
3137 * lib/javaversion.c (execute_and_read_line): Update.
3138 * NEWS: Document the changes.
3139 Reported by Eric Blake.
3141 2008-06-10 Eric Blake <ebb9@byu.net>
3143 Add missing include.
3144 * tests/test-strstr.c (includes): Add <signal.h>.
3145 * tests/test-strcasestr.c (includes): Likewise.
3146 * tests/test-memmem.c (includes): Likewise.
3148 2008-06-10 Bruno Haible <bruno@clisp.org>
3150 * lib/wait-process.c (wait_subprocess): Add an assertion.
3152 2008-06-10 Bruno Haible <bruno@clisp.org>
3154 * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
3156 2008-06-10 Bruno Haible <bruno@clisp.org>
3158 * tests/test-memmem.c (main): Reset SIGALRM to default handling before
3160 * tests/test-strcasestr.c (main): Likewise.
3161 * tests/test-strstr.c (main): Likewise.
3163 2008-06-09 Bruno Haible <bruno@clisp.org>
3165 Work around the Solaris 10 ACE ACLs ABI change.
3166 * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
3167 declare if ACL_NO_TRIVIAL is present.
3168 (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
3169 NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
3170 NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
3171 * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
3172 define if ACL_NO_TRIVIAL is present.
3173 (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
3174 and use the current ABI.
3175 (file_has_acl): Use same #if condition as elsewhere.
3176 * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
3177 in use, and use the current ABI.
3178 * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
3179 Reported by Jim Meyering.
3181 2008-06-09 Eric Blake <ebb9@byu.net>
3183 Work around environments that (stupidly) ignore SIGALRM.
3184 * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
3185 before using alarm().
3186 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
3187 * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
3188 Reported by Ian Beckwith <ianb@erislabs.net>.
3190 Produce autobuild blurb earlier in log.
3191 * modules/autobuild (configure.ac-early): Move AB_INIT here.
3193 2008-06-09 Jim Meyering <meyering@redhat.com>
3194 and Ondřej Vašík <ovasik@redhat.com>
3196 utimens.c: correct kernel bug work-around
3197 Ondřej Vašík found that the invalid return value of 280 indicates
3198 failure, not success, and the kernel bug we're trying to work
3199 around affects not just the utimensat call, but also the fallback
3201 * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
3203 [HAVE_FUTIMENS]: Use the same work-around, here.
3205 2008-06-09 Jim Meyering <meyering@redhat.com>
3207 add more guards around definition of ACE_-related code
3208 * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
3209 ALLOW and ACE_OWNER are also defined.
3211 2008-06-08 Bruno Haible <bruno@clisp.org>
3213 * lib/acl-internal.h: Add me as co-author.
3214 * lib/file-has-acl.c: Likewise.
3215 * lib/set-mode-acl.c: Likewise.
3216 * lib/copy-acl.c: Likewise.
3218 2008-06-08 Bruno Haible <bruno@clisp.org>
3220 Add support for AIX ACLs.
3221 * lib/acl-internal.h (acl_nontrivial): New declaration.
3222 * lib/file-has-acl.c (acl_nontrivial): New function.
3223 (file_has_acl): Add implementation using AIX 4 ACL API.
3224 * lib/set-mode-acl.c (qset_acl): Likewise.
3225 * lib/copy-acl.c (qcopy_acl): Likewise.
3227 2008-06-08 Bruno Haible <bruno@clisp.org>
3229 Add support for HP-UX ACLs.
3230 * lib/acl-internal.h (acl_nontrivial): New declaration.
3231 * lib/file-has-acl.c (acl_nontrivial): New function.
3232 (file_has_acl): Add implementation using HP-UX 11 ACL API.
3233 * lib/set-mode-acl.c (qset_acl): Likewise.
3234 * lib/copy-acl.c (qcopy_acl): Likewise.
3236 2008-06-08 Bruno Haible <bruno@clisp.org>
3238 Add support for Cygwin ACLs.
3239 * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
3240 * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
3241 the chmod_or_fchmod call.
3242 * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
3244 2008-06-08 Bruno Haible <bruno@clisp.org>
3246 Fix bug with setuid modes in Solaris 10+ code.
3247 * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
3248 succeeded, when the mode contains some special bits.
3250 2008-06-08 Bruno Haible <bruno@clisp.org>
3252 Add support for Solaris 7..10 ACLs.
3253 * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
3255 * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
3257 (file_has_acl): Add implementation using Solaris 7..10 ACL API.
3258 * lib/set-mode-acl.c (qset_acl): Likewise.
3259 * lib/copy-acl.c (qcopy_acl): Likewise.
3261 2008-06-08 Bruno Haible <bruno@clisp.org>
3263 * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
3265 * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
3266 (acl_access_nontrivial): Remove MacOS X case.
3267 (file_has_acl): Use acl_extended_nontrivial.
3268 * lib/copy-acl.c (qcopy_acl): Likewise.
3270 2008-06-08 Bruno Haible <bruno@clisp.org>
3272 * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
3274 2008-06-08 Jim Meyering <meyering@redhat.com>
3276 * modules/acl (Maintainer): Add Bruno Haible.
3278 2008-06-07 Bruno Haible <bruno@clisp.org>
3280 Improve support for Tru64 ACLs.
3281 * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
3284 2008-06-07 Bruno Haible <bruno@clisp.org>
3286 Add support for MacOS X ACLs.
3287 * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
3288 ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
3289 * lib/set-mode-acl.c (qset_acl): Likewise.
3290 * lib/copy-acl.c (qcopy_acl): Likewise.
3292 2008-06-07 Bruno Haible <bruno@clisp.org>
3294 Fix memory leak introduced on 2008-05-22.
3295 * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
3298 2008-06-07 Bruno Haible <bruno@clisp.org>
3300 * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
3301 to construct an empty ACL.
3303 2008-06-07 Bruno Haible <bruno@clisp.org>
3305 * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
3307 * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
3309 2008-06-07 Bruno Haible <bruno@clisp.org>
3311 * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
3312 * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
3314 2008-06-07 Bruno Haible <bruno@clisp.org>
3316 * doc/posix-functions/_setjmp.texi: Explain the use of this function
3317 regardless of POSIX.
3318 * doc/posix-functions/_longjmp.texi: Likewise.
3319 * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
3320 SystemV platform in this case.
3322 2008-06-06 Eric Blake <ebb9@byu.net>
3324 Document abort() bugs.
3325 * doc/posix-functions/abort.texi (abort): Mention anomalies.
3327 * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
3328 * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
3330 * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
3331 siglongjmp, but only as a macro.
3332 * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
3334 * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
3336 Tweak documentation to cover cygwin argz bugs.
3337 * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
3338 argz bug fix; no code change needed since no cygwin releases
3339 occurred between the last fix and the bug being tested.
3340 * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
3341 module and recently fixed cygwin bugs.
3342 * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
3343 * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
3344 * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
3345 * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
3346 * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
3348 * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
3349 * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
3350 * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
3351 * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
3352 * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
3353 * doc/glibc-functions/argz_stringify.texi (argz_stringify):
3356 Avoid gcc warning on cygwin.
3357 * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
3358 !ACL_NO_TRIVIAL]: Avoid unused variable.
3360 2008-06-05 Eric Blake <ebb9@byu.net>
3362 Be tolerant of UNKNOWN version in gnulib-tool test dir.
3363 * top/GNUmakefile (_dummy): Warn rather than reconfigure if
3364 git-version-gen fails to come up with a version.
3365 Reported by Simon Josefsson.
3367 2008-06-05 Jim Meyering <meyering@redhat.com>
3368 Paul Eggert <eggert@cs.ucla.edu>
3370 utimens.c: work around a probable Linux kernel bug
3371 * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
3372 appears to be a kernel bug that causes utimensat to return 280
3373 instead of 0, indicating success.
3375 2008-06-04 Bruno Haible <bruno@clisp.org>
3377 * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
3380 2008-06-04 Bruno Haible <bruno@clisp.org>
3382 * lib/acl-internal.h (acl_access_nontrivial): New declaration.
3383 * lib/file-has-acl.c (acl_access_nontrivial): New function.
3384 (file_has_acl): Use it. Save errno afterwards.
3385 * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
3387 2008-06-03 Bruno Haible <bruno@clisp.org>
3389 * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
3390 draft code. Simplify #ifs.
3391 * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
3392 Put Solaris code after POSIX-draft code. Fix comments regarding
3393 Solaris 10, HP-UX. Mention Cygwin.
3394 * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
3396 2008-06-03 Eric Blake <ebb9@byu.net>
3398 Provide fallback for older kernels.
3399 * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
3400 Provide runtime fallback if kernel lacks support.
3401 Reported by Mike Frysinger.
3403 2008-06-02 Bruno Haible <bruno@clisp.org>
3405 * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
3408 2008-06-02 Bruno Haible <bruno@clisp.org>
3410 * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
3411 * lib/copy-acl.c (qcopy_acl): Update comment.
3413 2008-06-02 Bruno Haible <bruno@clisp.org>
3415 * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
3418 2008-06-02 Bruno Haible <bruno@clisp.org>
3420 * tests/test-file-has-acl.sh: Use different code for Cygwin.
3421 * tests/test-set-mode-acl.sh: Likewise.
3422 * tests/test-copy-acl.sh: Likewise.
3423 * tests/test-copy-file.sh: Likewise.
3425 2008-06-02 Bruno Haible <bruno@clisp.org>
3427 * tests/test-file-has-acl.sh: Remove unused code.
3429 2008-06-01 Bruno Haible <bruno@clisp.org>
3431 * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
3432 (copy_acl): Just a wrapper around qcopy_acl that emits the error
3434 * lib/set-mode-acl.c (qset_acl): Document return value precisely.
3436 2008-06-01 Bruno Haible <bruno@clisp.org>
3438 * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
3439 tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
3440 needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
3442 * modules/acl-tests (configure.ac): Remove tests now contained in
3445 2008-06-02 Jim Meyering <meyering@redhat.com>
3447 announce-gen: use a better key-server host name
3448 * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
3449 it may be more consistently reliable. Suggested by Werner Koch
3450 in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
3452 2008-06-01 Bruno Haible <bruno@clisp.org>
3454 * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
3455 Reported by Voroskoi Andras <voroskoi@gmail.com>.
3457 2008-06-01 Voroskoi Andras <voroskoi@gmail.com> (tiny change)
3459 * lib/stdio-impl.h [__DragonFly__]: Fix typo.
3461 2008-06-01 Bruno Haible <bruno@clisp.org>
3464 * tests/test-file-has-acl.sh: New file.
3465 * tests/test-file-has-acl.c: New file.
3466 * tests/test-set-mode-acl.sh: New file.
3467 * tests/test-set-mode-acl.c: New file.
3468 * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
3469 * tests/test-copy-acl.c: New file.
3470 * modules/acl-tests: New file, based on modules/copy-file-tests.
3471 * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
3472 (Depends-on): Add acl-tests.
3473 (configure.ac): Remove checks.
3474 (Makefile.am): Don't create test-sameacls program here any more.
3476 2008-06-01 Bruno Haible <bruno@clisp.org>
3478 * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
3479 * tests/test-sameacls.c: Include progname.h.
3480 (main): Invoke set_program_name. Portability fixes for MacOS X,
3483 2008-06-01 Bruno Haible <bruno@clisp.org>
3485 * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
3487 Reported by VOROSKOI Andras <voroskoi@gmail.com>.
3489 2008-06-01 Bruno Haible <bruno@clisp.org>
3491 * modules/rpmatch (Depends-on): Add strdup.
3493 2008-06-01 Bruno Haible <bruno@clisp.org>
3495 * lib/pipe.c: Include unistd-safer.h.
3496 (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
3497 * modules/pipe (Depends-on): Add unistd-safer.
3499 2008-05-30 Simon Josefsson <simon@josefsson.org>
3501 * modules/autobuild (configure.ac): Call AB_INIT.
3503 2008-05-30 Simon Josefsson <simon@josefsson.org>
3505 * tests/test-getaddrinfo.c: Don't print debug messages by default.
3506 Suggested by Bruno Haible <bruno@clisp.org>.
3508 2008-05-30 Simon Josefsson <simon@josefsson.org>
3510 * tests/test-base64.c: Cast size_t to unsigned long when invoking
3511 printf. Use %lu instead of %d. Reported by Bruno Haible
3514 2008-05-29 Eric Blake <ebb9@byu.net>
3516 Prefer new POSIX 200x interfaces over futimesat.
3517 * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
3518 * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
3520 [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
3522 2008-05-28 Bruno Haible <bruno@clisp.org>
3524 * modules/stpcpy (License): Change to LGPLv2+.
3525 Requested by David Lutterkort <dlutter@redhat.com>.
3527 2008-05-27 Bruno Haible <bruno@clisp.org>
3529 * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
3531 Reported by Jose E. Marchesi <jemarch@gnu.org>.
3533 2008-05-27 Bruno Haible <bruno@clisp.org>
3535 * modules/iconv_open (Link): New section, from module 'iconv'.
3536 * modules/striconv (Link): Likewise.
3537 * modules/striconveh (Link): Likewise.
3538 * modules/xstriconv (Link): Likewise.
3539 * modules/unicodeio (Link): Likewise.
3540 * modules/propername (Link): Likewise.
3541 Reported by Jim Meyering.
3543 2008-05-26 Jim Meyering <meyering@redhat.com>
3545 sha256: do not artificially restrict buffer length to be < 2^32
3546 * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
3548 * lib/sha256.c (sha256_conclude_ctx): Change type of a local
3551 avoid unaligned access errors, e.g., on sparc
3552 * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
3553 direct access through a possibly-unaligned uint64* pointer.
3554 * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
3555 direct access through a possibly-unaligned uint32* pointer.
3556 Prompted by this patch from Tom "spot" Callaway:
3557 http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
3559 sha512.c: fix typo in comment
3560 * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
3562 2008-05-25 Bruno Haible <bruno@clisp.org>
3564 * lib/set-mode-acl.c: Renamed from lib/acl.c.
3565 * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
3566 (Makefile.am): Update lib_SOURCES.
3568 2008-05-25 Bruno Haible <bruno@clisp.org>
3570 * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
3572 2008-05-25 Jim Meyering <meyering@redhat.com>
3574 useless-if-before-free: freed expr may have white-space differences
3575 * build-aux/useless-if-before-free: Recognize cases in which the
3576 freed expression differs from the tested one in embedded white
3577 space, e.g., if (p[i + 1]) free(p[i+1]). Correct thinko in prev:
3578 $1 was used, so we can't make any regexp shy. Improved tests now
3581 useless-if-before-free: accept white space in the expression.
3582 * build-aux/useless-if-before-free: For now, any white space
3583 in the expression must be identical in the free argument.
3585 useless-if-before-free: efficiency tweak
3586 * build-aux/useless-if-before-free: Make the expression-matching
3588 Make the *outer* regexp shy, not the expr-matching one.
3590 update code-in-comment to accept cast of free arg
3591 * build-aux/useless-if-before-free: Update regexp.
3593 2008-05-25 Bruno Haible <bruno@clisp.org>
3595 * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
3596 * modules/copy-file-tests (Files, Makefile.am): Update.
3597 * tests/test-copy-file.c (func_test_copy): Update.
3599 2008-05-24 Andreas Färber <andreas.faerber@web.de> (tiny change)
3601 * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
3603 2008-05-23 Bruno Haible <bruno@clisp.org>
3605 Improve support for ACLs on OSF/1.
3606 * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
3607 Remove fallback for unknown flavors of ACLs.
3609 2008-05-22 Bruno Haible <bruno@clisp.org>
3611 Add support for ACLs on OSF/1.
3612 * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
3614 (acl_free_text): New macro fallback.
3615 * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
3617 * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
3618 acl_free_text function. Require AC_C_INLINE.
3620 2008-05-22 Bruno Haible <bruno@clisp.org>
3622 Make copy_acl work on MacOS X 10.5.
3623 * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
3624 (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
3625 * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
3626 If MODE_INSIDE_ACL, don't assume that every system has the same text
3627 representation for ACLs as FreeBSD.
3628 * lib/copy-acl.c (copy_acl): Add support for platforms with
3630 * lib/file-has-acl.c (file_has_acl): Likewise.
3631 * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
3632 FreeBSD, MacOS X, or IRIX, respectively.
3634 2008-05-22 Bruno Haible <bruno@clisp.org>
3636 * lib/acl.h: Don't include <sys/acl.h>.
3637 (GETACLCNT): Move fallback to lib/acl-internal.h.
3638 * lib/acl-internal.h: Include <sys/acl.h> here.
3639 (GETACLCNT): New macro fallback, moved here from lib/acl.h.
3641 2008-05-22 Bruno Haible <bruno@clisp.org>
3643 Split off copy_acl function to separate file.
3644 * lib/copy-acl.c: New file, extracted from lib/acl.c.
3645 * lib/acl.c (copy_acl): Moved function to separate file.
3646 * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
3647 * modules/acl (Files): Add lib/copy-acl.c.
3648 (Makefiles.am): Augment lib_SOURCES.
3650 2008-05-22 Bruno Haible <bruno@clisp.org>
3652 * modules/copy-file-tests: New file.
3653 * tests/test-copy-file.sh: New file.
3654 * tests/test-copy-file.c: New file.
3655 * tests/test-copy-file-sameacls.c: New file.
3657 2008-05-22 Eric Blake <ebb9@byu.net>
3660 * tests/test-memcmp.c (main): Pass NULL indirectly.
3662 2008-05-21 Bruno Haible <bruno@clisp.org>
3664 Add reference doc about ACLs.
3665 * doc/acl-resources.txt: New file.
3666 * doc/acl-cygwin.txt: New file.
3668 2008-05-21 Bruno Haible <bruno@clisp.org>
3670 Avoid one more warning from gcc.
3671 * lib/vasnprintf.c (IF_LINT): Update comments.
3672 (VASNPRINTF): Use it also for the 'prefix' array initializer.
3674 2008-05-21 Jim Meyering <meyering@redhat.com>
3676 avoid a warning from gcc
3677 * lib/vasnprintf.c (IF_LINT): Define.
3678 (scale10_round_decimal_long_double):
3679 Use it to avoid a "may be used uninitialized" warning.
3680 (scale10_round_decimal_double): Likewise.
3682 2008-05-21 Simon Josefsson <simon@josefsson.org>
3684 * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
3687 2008-05-20 Bruno Haible <bruno@clisp.org>
3689 * tests/test-memcmp.c (main): Test also the sign of the result. Test
3690 against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
3692 2008-05-20 Simon Josefsson <simon@josefsson.org>
3694 * modules/memcmp-tests: New file.
3695 * tests/test-memcmp.c: New file.
3697 2008-05-19 Bruno Haible <bruno@clisp.org>
3699 * modules/propername (Notice, configure.ac): Put quoted "..." into
3701 * lib/propername.h: Update comments accordingly.
3702 Reported by Eric Blake.
3704 2008-05-19 Martin Lambers <marlam@marlam.de> (tiny change)
3706 * modules/getpass-gnu (Depends-on): Add fseeko.
3708 2008-05-19 Simon Josefsson <simon@josefsson.org>
3710 * modules/base64-tests: New file.
3712 2008-05-19 Bo Borgerson <gigabo@gmail.com>
3714 * lib/base64.c (base64_decode_ctx): If a decode context structure
3715 was passed in use it to ignore newlines. If a context structure
3716 was _not_ passed in, continue to treat newlines as garbage (this
3717 is the historical behavior). Formerly base64_decode.
3718 (base64_decode_alloc_ctx): Formerly base64_decode_alloc. Now
3719 takes a decode context structure.
3720 * lib/base64.h (base64_decode): Macro for four-argument calls.
3721 (base64_decode_alloc): Likewise.
3722 * lib/base64.c (base64_decode_ctx): If a decode context structure
3723 was passed in use it to ignore newlines. If a context structure
3724 was _not_ passed in, continue to treat newlines as garbage (this
3725 is the historical behavior). Formerly base64_decode.
3726 (base64_decode_alloc_ctx): Formerly base64_decode_alloc. Now
3727 takes a decode context structure.
3728 * lib/base64.h (base64_decode): Macro for four-argument calls.
3729 (base64_decode_alloc): Likewise.
3731 2008-05-19 Jim Meyering <meyering@redhat.com>
3733 avoid a warning from gcc
3734 * lib/trim.c (IF_LINT): Define.
3735 (trim2): Use it to avoid a "may be used uninitialized" warning.
3738 * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
3740 2008-05-19 Bruno Haible <bruno@clisp.org>
3742 * doc/glibc-functions/getpass.texi: Document limits of other
3745 2008-05-19 Simon Josefsson <simon@josefsson.org>
3746 Bruno Haible <bruno@clisp.org>
3748 * doc/glibc-functions/getpass.texi: Document gnulib implementation.
3750 2008-05-18 Bruno Haible <bruno@clisp.org>
3752 * modules/propername: New file, from GNU gettext.
3753 * lib/propername.h: New file, from GNU gettext.
3754 * lib/propername.c: New file, from GNU gettext.
3755 * MODULES.html.sh (Internationalization functions): Add propername.
3757 2008-05-16 Jim Meyering <meyering@redhat.com>
3758 Bruno Haible <bruno@clisp.org>
3760 Avoid some warnings from "gcc -Wshadow".
3761 * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
3763 2008-05-15 Eric Blake <ebb9@byu.net>
3765 Extend previous patch to cygwin 1.7.0.
3766 * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
3767 fast implementation in cygwin >= 1.7.0.
3768 * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
3769 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
3771 2008-05-15 Bruno Haible <bruno@clisp.org>
3773 * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
3774 implementation in glibc >= 2.9.
3775 * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
3776 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
3778 2008-05-15 Bruno Haible <bruno@clisp.org>
3780 * MODULES.html.sh (Internationalization functions): Remove linebreak.
3781 (Unicode string functions): Add unilbrk/*.
3782 Reported by Karl Berry.
3784 2008-05-15 Eric Blake <ebb9@byu.net>
3786 Fix violation of <stdbool.h> replacement in regex.
3787 * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
3788 * lib/regexec.c (re_search_internal): Likewise.
3789 Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
3791 2008-05-15 Jim Meyering <meyering@redhat.com>
3793 avoid distracting test output when git or cvs is not found
3794 * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
3795 * tests/test-vc-list-files-git.sh: Likewise.
3797 2008-05-15 Eric Blake <ebb9@byu.net>
3799 Glibc finally accepted the memmem speedup code, bugzilla #5514.
3800 * doc/glibc-functions/memmem.texi (memmem): Mention last broken
3802 * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
3803 * doc/posix-functions/strstr.texi (strstr): Likewise.
3804 * lib/str-two-way.h (MAX): Sychronize with glibc.
3806 2008-05-15 Paolo Bonzini <bonzini@gnu.org>
3808 * lib/regcomp.c (optimize_utf8): Add a note on why we test
3810 (calc_first): Initialize constraint field.
3811 (duplicate_node_closure): Use it instead of special casing ANCHORS.
3813 (duplicate_node): Merge constraint field for all node types.
3814 (calc_eclosure_iter): Look at constraint field for all node types.
3815 * lib/regex_internal.c (create_cd_newstate): Don't look at
3818 2008-05-14 Bruno Haible <bruno@clisp.org>
3820 Help GCC to do better code generation.
3821 * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
3822 * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
3823 * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
3824 (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
3825 Declare with attribute 'malloc' if supported.
3827 2008-05-14 Lasse Collin <lasse.collin@tukaani.org>
3829 use "echo STR|wc -c" rather than unportable "expr length STR"
3830 * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
3831 OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
3833 2008-05-14 Jim Meyering <meyering@redhat.com>
3835 use dd ibs=$n count=1 ... rather than less-portable head -c$n
3836 * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
3837 by Solaris 10's /bin/head or by the one from HP-UX 11.x.
3838 Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
3841 2008-05-14 Eric Blake <ebb9@byu.net>
3843 Avoid quadratic growth in gl_LIBSOURCES.
3844 * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
3845 Suggested by Bruno Haible.
3848 * modules/xmemdup0-tests: New file.
3849 * tests/test-xmemdup0.c: Likewise.
3851 2008-05-13 Eric Blake <ebb9@byu.net>
3853 Split xmemdup0 into its own module.
3854 * modules/xmemdup0: New file.
3855 * lib/xmemdup0.h: Likewise.
3856 * lib/xmemdup0.c: Likewise.
3857 * MODULES.html.sh (Memory management functions): Add xmemdup0.
3858 * lib/xalloc.h (xmemdup0): Remove.
3859 * lib/xmalloc.c (xmemdup0): Likewise.
3861 2008-05-13 Eric Blake <ebb9@byu.net>
3862 Bruno Haible <bruno@clisp.org>
3864 Reduce number of forks required during autoconf.
3865 * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
3866 and gl_LIBSOURCES_DIR.
3867 (func_emit_initmacro_end): Use them here in a single m4_syscmd...
3868 (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
3870 <m4_foreach_w>: Move...
3871 * m4/gnulib-common.m4 (m4_foreach_w): ...here.
3873 2008-05-13 Eric Blake <ebb9@byu.net>
3875 * gnulib-tool: Fix various comment typos.
3877 2008-05-12 Bruno Haible <bruno@clisp.org>
3879 Tailor the linebreaking algorithm.
3880 * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
3882 2008-05-12 Bruno Haible <bruno@clisp.org>
3884 Update to Unicode 5.0.0.
3885 * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
3886 LBP_JV, LBP_JT. Redistribute values.
3887 (unilbrk_table): Change size.
3888 * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
3889 Unicode TR#14 rev. 22.
3890 * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
3891 LBP_JV, LBP_JT. Redistribute values.
3892 (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
3893 (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
3895 * lib/unilbrk/lbrkprop1.h: Regenerated.
3896 * lib/unilbrk/lbrkprop2.h: Regenerated.
3897 * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
3898 Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
3899 * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
3901 * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
3903 * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
3905 * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
3906 * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
3907 * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
3908 * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
3909 * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
3910 * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
3912 2008-05-11 Bruno Haible <bruno@clisp.org>
3914 * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
3916 2008-05-11 Bruno Haible <bruno@clisp.org>
3918 * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
3919 * modules/unilbrk/gen-lbrk: New file.
3921 2008-05-11 Bruno Haible <bruno@clisp.org>
3923 * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
3924 * m4/sha512.m4 (gl_SHA512): Likewise.
3926 2008-05-11 Jim Meyering <meyering@redhat.com>
3928 New modules: crypto/sha256, crypto/sha512 (from coreutils)
3929 * modules/crypto/sha256: New file.
3930 * modules/crypto/sha512: Likewise.
3931 * lib/sha256.c: Likewise.
3932 * lib/sha256.h: Likewise.
3933 * lib/sha512.c: Likewise.
3934 * lib/sha512.h: Likewise.
3935 * lib/u64.h: Likewise.
3936 * m4/sha256.m4: Likewise.
3937 * m4/sha512.m4: Likewise.
3938 * MODULES.html.sh (Cryptographic computations (low-level)): List them.
3940 2008-05-10 Bruno Haible <bruno@clisp.org>
3942 * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
3943 (Input/Output <stdio.h>): Add xprintf.
3944 (Signal handling <signal.h>): Add strsignal.
3945 (Cryptographic computations (high-level)): Add crypto/gc-camellia.
3946 (Core language properties): Add func.
3947 (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
3948 (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
3950 (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
3951 (Input/output): New section.
3952 (File system functions): Add openat-die, stat-macros.
3953 (Networking functions): Add sockets.
3954 (Unicode string functions): Add unictype/*.
3955 (Support for building libraries and executables): Add gperf.
3956 (Support for building documentation): Add agpl-3.0.
3957 (Misc): Add nocrash.
3959 2008-05-10 Bruno Haible <bruno@clisp.org>
3961 * modules/unictype/gen-ctype: New file.
3963 2008-05-10 Jim Meyering <meyering@redhat.com>
3965 Make chdir-safer.c more efficient on a system with no symlinks.
3966 * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
3967 also if ELOOP is zero. Suggested by Bruno Haible.
3969 Make chdir-safer.c slightly safer.
3970 * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
3971 not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
3973 Avoid compile failure on systems without ELOOP (like mingw).
3974 * lib/chdir-safer.c (ELOOP): Define if not already defined.
3975 Reported by Bruno Haible.
3977 2008-05-10 Bruno Haible <bruno@clisp.org>
3979 * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
3980 (is_utf8_encoding): Use a case-insensitive comparison.
3981 * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
3984 2008-05-10 Bruno Haible <bruno@clisp.org>
3986 * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
3987 (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
3988 * lib/unilbrk/ulc-common.h (iconv_string_length,
3989 iconv_string_keeping_offsets): Remove declarations.
3990 * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
3991 Don't include <iconv.h>, streq.h, xsize.h.
3992 (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
3994 * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
3995 <iconv.h>, streq.h, xsize.h.
3996 (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
3998 * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
3999 * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
4000 uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
4001 * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
4003 2008-05-10 Bruno Haible <bruno@clisp.org>
4005 * modules/unilbrk/ulc-width-linebreaks-tests: New file.
4006 * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
4008 * modules/unilbrk/u32-width-linebreaks-tests: New file.
4009 * tests/unilbrk/test-u32-width-linebreaks.c: New file.
4011 * modules/unilbrk/u16-width-linebreaks-tests: New file.
4012 * tests/unilbrk/test-u16-width-linebreaks.c: New file.
4014 * modules/unilbrk/u8-width-linebreaks-tests: New file.
4015 * tests/unilbrk/test-u8-width-linebreaks.c: New file.
4017 * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
4018 * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
4020 * modules/unilbrk/u32-possible-linebreaks-tests: New file.
4021 * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
4023 * modules/unilbrk/u16-possible-linebreaks-tests: New file.
4024 * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
4026 * modules/unilbrk/u8-possible-linebreaks-tests: New file.
4027 * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
4029 2008-05-10 Bruno Haible <bruno@clisp.org>
4031 Split up 'linebreak' module.
4032 * lib/unilbrk.h: New file, based on lib/linebreak.h.
4033 * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
4034 * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
4036 * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
4037 * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
4038 * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
4040 * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
4042 * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
4044 * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
4045 * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
4046 * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
4048 * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
4050 * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
4052 * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
4054 * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
4056 * modules/unilbrk/base: New file.
4057 * modules/unilbrk/tables: New file.
4058 * modules/unilbrk/u8-possible-linebreaks: New file.
4059 * modules/unilbrk/u16-possible-linebreaks: New file.
4060 * modules/unilbrk/u32-possible-linebreaks: New file.
4061 * modules/unilbrk/ulc-common: New file.
4062 * modules/unilbrk/ulc-possible-linebreaks: New file.
4063 * modules/unilbrk/u8-width-linebreaks: New file.
4064 * modules/unilbrk/u16-width-linebreaks: New file.
4065 * modules/unilbrk/u32-width-linebreaks: New file.
4066 * modules/unilbrk/ulc-width-linebreaks: New file.
4067 * lib/linebreak.h: Remove file.
4068 * lib/linebreak.c: Remove file.
4069 * m4/linebreak.m4: Remove file.
4070 * modules/linebreak: Remove file.
4071 * NEWS: Mention the changes.
4073 2008-05-09 Eric Blake <ebb9@byu.net>
4076 * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
4078 * lib/xmalloc.c (xmemdup0): New C implementation.
4080 2008-05-08 Bruno Haible <bruno@clisp.org>
4082 * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
4084 2008-05-07 Eric Blake <ebb9@byu.net>
4086 Support cross-compilation of <wctype.h>.
4087 * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
4090 2008-05-06 Soren Hansen <soren@ubuntu.com> (tiny change)
4092 * build-aux/vc-list-files: Add support for bzr.
4094 2008-05-03 Jim Meyering <meyering@redhat.com>
4096 avoid failed assertion with tight malloc
4097 * tests/test-getndelim2.c: Correct an off-by-one assertion.
4099 2008-05-03 Simon Josefsson <simon@josefsson.org>
4101 * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
4102 are needed from arpa/inet.h.
4103 * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
4104 Reported by Bruno Haible.
4106 2008-05-02 Jim Meyering <meyering@redhat.com>
4108 avoid compilation error on FreeBSD 6
4109 * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
4111 2008-05-01 Jim Meyering <meyering@redhat.com>
4113 useless-if-before-free: correct --help's exit status description
4114 * build-aux/useless-if-before-free (usage): Like grep, exit 0
4115 for one or more matches, etc. Reported by Bruno Haible.
4117 vc-list-files: make the stand-alone gnulib test work
4118 * modules/vc-list-files-tests (configure.ac):
4119 Define and AC_SUBST abs_aux_dir.
4120 (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
4121 $(abs_top_srcdir) to each script and having each of them
4122 duplicate the work of setting PATH, set PATH here, using
4123 the new variable, abs_aux_dir instead.
4124 * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
4125 * tests/test-vc-list-files-git.sh: Likewise.
4126 Reported by Bruno Haible.
4128 2008-05-01 Bruno Haible <bruno@clisp.org>
4130 * lib/getndelim2.c (getndelim2): Fix newsize computation during
4131 reallocation. Rename 'done' to 'found_delimiter'.
4133 2008-05-01 Jim Meyering <meyering@redhat.com>
4135 vc-list-files: accommodate /bin/sh like the one from Solaris 10
4136 * build-aux/vc-list-files: Use `...`, not $(...).
4138 2008-04-30 Jim Meyering <meyering@redhat.com>
4140 add tests for vc-list-files
4141 * modules/vc-list-files-tests: New module.
4142 * tests/test-vc-list-files-cvs.sh: New file.
4143 * tests/test-vc-list-files-git.sh: New file.
4145 avoid a warning from gcc
4146 * lib/getndelim2.c (IF_LINT): Define.
4147 (getndelim2): Use it to avoid a "may be used uninitialized" warning.
4149 vc-list-files: work properly with build-aux/cvsu, too
4150 * build-aux/vc-list-files: Hoist the "./"-removing code to apply
4151 to all cvs-based clauses.
4153 vc-list-files: work properly in the CVS+awk case, too
4154 * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
4156 vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
4157 * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
4158 take more than one file argument, so . Add quotes, just in case $dir
4159 ever contains a shell meta-character. Prompted by Soren Hansen in
4160 <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
4162 2008-04-29 Eric Blake <ebb9@byu.net>
4164 Optimize getndelim2 to use block operations when possible.
4165 * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
4166 freadseek, and memchr2.
4167 * lib/getndelim2.c (getndelim2): Use them for block reads.
4169 2008-04-29 Bruno Haible <bruno@clisp.org>
4171 * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
4172 * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
4173 * modules/inet_ntop (Depends-on): Add extensions.
4174 * modules/inet_pton (Depends-on): Likewise.
4175 Reported by Simon Josefsson.
4177 2008-04-29 Jim Meyering <meyering@redhat.com>
4179 When the is more than one match in a block, match all of them.
4180 * build-aux/useless-if-before-free: Iterate through each block
4181 until there are no more matches.
4183 Fix broken useless-if-before-free script.
4184 * build-aux/useless-if-before-free: Fix typo: missing "?" after
4185 the expression to match cast of argument to free-like function.
4187 2008-04-29 Eric Blake <ebb9@byu.net>
4190 * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
4192 2008-04-29 Jim Meyering <meyering@redhat.com>
4194 Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
4195 * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
4196 by gnulib to exist and to declare e.g., inet_ntop.
4197 Don't include "inet_ntop.h", now removed.
4199 * m4/arpa_inet_h.m4: Remove trailing blanks.
4201 2008-04-29 Eric Blake <ebb9@byu.net>
4203 Silence valgrind on safe reads beyond potential array bounds.
4204 * lib/rawmemchr.valgrind: New file.
4205 * lib/strchrnul.valgrind: Likewise.
4206 * modules/rawmemchr (Files): Distribute new file.
4207 * modules/strchrnul (Files): Likewise.
4208 Suggested by Bruno Haible.
4210 2008-04-29 Bruno Haible <bruno@clisp.org>
4212 * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
4213 (inet_ntop, inet_pton): Change portability warning's wording.
4214 * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
4215 Invoke gl_CHECK_NEXT_HEADERS.
4216 (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
4217 * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
4219 * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
4220 * modules/arpa_inet (Description): No longer only for systems that
4222 (Depends-on): Add include_next.
4223 (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
4226 2008-04-29 Jim Meyering <meyering@redhat.com>
4228 * modules/mkdir (License): Re-license as LGPLv2+.
4230 2008-04-29 Bruno Haible <bruno@clisp.org>
4232 * modules/rawmemchr (Maintainer): Set to Eric.
4233 * modules/strchrnul (Maintainer): Likewise.
4235 2008-04-29 Simon Josefsson <simon@josefsson.org>
4237 * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
4238 HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
4240 * modules/arpa_inet (arpa/inet.h): Use them.
4242 2008-04-28 Eric Blake <ebb9@byu.net>
4245 * modules/getndelim2-tests: New file.
4246 * tests/test-getndelim2.c: Likewise.
4247 * lib/getndelim2.c (getndelim2): Never return 0. Lock the
4249 * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
4251 * MODULES.html.sh: Document new module.
4253 2008-04-20 Bruno Haible <bruno@clisp.org>
4255 * lib/c-stack.c (die): Use raise.
4256 * modules/c-stack (Depends-on): Add raise.
4258 2008-04-28 Bruno Haible <bruno@clisp.org>
4260 Expect rpmatch to be declared.
4261 * lib/yesno.c (rpmatch): Remove declaration.
4264 * lib/stdlib.in.h (rpmatch): New declaration.
4265 * lib/rpmatch.c: Include <stdlib.h> first.
4266 * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
4267 gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
4268 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
4270 * modules/rpmatch (Depends-on): Add stdlib, extensions.
4271 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
4272 (Include): Set to <stdlib.h>.
4273 * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
4275 * NEWS: Document the change.
4277 2008-04-28 Bruno Haible <bruno@clisp.org>
4279 Change rpmatch to use nl_langinfo when appropriate.
4280 * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
4282 (localized_pattern): New function/macro.
4283 (try): Remove match, nomatch arguments. Copy the pattern into safe
4284 memory before caching it.
4285 (rpmatch): Use localized_pattern. Add translator comments.
4286 * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
4287 Suggested by Eric Blake.
4288 * modules/rpmatch (Depends-on): Add stdbool.
4290 2008-04-28 Eric Blake <ebb9@byu.net>
4292 Add rawmemchr module, matching glibc.
4293 * modules/string (Makefile.am): New indicator.
4294 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
4295 * lib/string.in.h (rawmemchr): Declare when appropriate.
4296 * modules/rawmemchr: New file.
4297 * m4/rawmemchr.m4: Likewise.
4298 * lib/rawmemchr.c: Likewise.
4299 * modules/rawmemchr-tests: Likewise.
4300 * tests/test-rawmemchr.c: Likewise.
4301 * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
4303 * modules/strchrnul (Depends-on): Add rawmemchr.
4304 * lib/strchrnul.c (strchrnul): Optimize a corner case.
4307 * tests/test-strchrnul.c: Reindent.
4308 * lib/strchrnul.c: Likewise.
4310 Optimize and test strchrnul.
4311 * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
4312 * modules/strchrnul-tests: New file.
4313 * tests/test-strchrnul.c: Likewise.
4315 Remove intprops dependency.
4316 * modules/memchr (Depends-on): Remove intprops.
4317 * modules/memrchr (Depends-on): Likewise.
4318 * modules/memchr2 (Depends-on): Likewise.
4319 * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
4320 * lib/memrchr.c (__memrchr): Likewise.
4321 * lib/memrchr2.c (memchr2): Likewise.
4322 Reported by Simon Josefsson.
4324 2008-04-28 Simon Josefsson <simon@josefsson.org>
4326 * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
4327 Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
4329 2008-04-28 Simon Josefsson <simon@josefsson.org>
4331 * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
4333 * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
4335 * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
4337 * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
4339 [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
4341 * m4/inet_pton.m4: Don't check for header files.
4343 * m4/inet_ntop.m4: Don't check for header files.
4345 2008-04-28 Simon Josefsson <simon@josefsson.org>
4347 * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
4348 * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
4349 trigger for cygwin).
4350 Reported by Bruno Haible <bruno@clisp.org>.
4352 2008-04-28 Bruno Haible <bruno@clisp.org>
4354 * doc/posix-functions/strdup.texi: Mention mingw problem.
4356 2008-04-27 Bruno Haible <bruno@clisp.org>
4358 * modules/stat-time-tests (Depends-on): Add sleep.
4359 * tests/test-stat-time.c (force_unlink): New function.
4361 (test_mtime): Remove the ctime related tests.
4362 (test_ctime): New function, containing the ctime related tests.
4363 (main): Call test_ctime, except on native Windows platforms.
4365 2008-04-27 Bruno Haible <bruno@clisp.org>
4367 * lib/rpmatch.c (rpmatch): Add some comments.
4368 Reported by James Youngman <jay@gnu.org>.
4370 2008-04-27 Bruno Haible <bruno@clisp.org>
4372 * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
4375 2008-04-27 Bruno Haible <bruno@clisp.org>
4377 Make test-yesno.sh work on mingw.
4378 * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
4379 * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
4380 (main): Set stdin to binary mode.
4381 * modules/yesno-tests (Depends-on): Add binary-io.
4383 2008-04-27 Bruno Haible <bruno@clisp.org>
4385 Fix 'isfinite' on x86, x86_64, ia64 platforms.
4386 * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
4387 argument that lie outside the IEEE 854 domain.
4388 * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
4389 (gl_ISFINITE): Use it.
4390 * doc/posix-functions/isfinite.texi: Document the fixed bugs.
4392 2008-04-27 Bruno Haible <bruno@clisp.org>
4394 Allow local renaming in config.h.
4395 * lib/memrchr.c (memrchr): Don't undefine outside libc.
4397 2008-04-27 Bruno Haible <bruno@clisp.org>
4399 * lib/memchr.c (__memchr): Change type of 'i'.
4400 * lib/memchr2.c (memchr2): Likewise.
4402 2008-04-26 Eric Blake <ebb9@byu.net>
4403 and Bruno Haible <bruno@clisp.org>
4405 Optimize and test memrchr.
4406 * modules/memrchr (Depends-on): Add intprops.
4407 * lib/memrchr.c (__memrchr): Avoid false positives in loop.
4408 * modules/memrchr-tests: New file.
4409 * tests/test-memrchr.c: New file.
4411 2008-04-26 Bruno Haible <bruno@clisp.org>
4413 Add tentative support for DragonFly BSD.
4414 * lib/stdio-impl.h: Add macros for DragonFly BSD.
4415 * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
4417 * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
4418 restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
4419 * lib/fpurge.c (fpurge): Likewise.
4420 * lib/freadable.c (freaadable): Likewise.
4421 * lib/freadahead.c (freadahead): Likewise.
4422 * lib/freading.c (freading): Likewise.
4423 * lib/freadptr.c (freadptr): Likewise.
4424 * lib/freadseek.c (freadptrinc): Likewise.
4425 * lib/fseeko.c (fseeko): Likewise.
4426 * lib/fseterr.c (fseterr): Likewise.
4427 * lib/fwritable.c (fwritable): Likewise.
4428 * lib/fwriting.c (fwriting): Likewise.
4430 2008-04-26 Bruno Haible <bruno@clisp.org>
4432 * lib/stdio-impl.h: New file.
4433 * lib/fbufmode.c: Include stdio-impl.h.
4434 (fbufmode): Use fp_, remove redundant #defines.
4435 * lib/fflush.c: Include stdio-impl.h.
4436 (clear_ungetc_buffer): Remove redundant #defines.
4437 * lib/fpurge.c: Include stdio-impl.h.
4438 (fpurge): Remove redundant #defines.
4439 * lib/freadable.c: Include stdio-impl.h.
4440 (freadable): Remove redundant #defines.
4441 * lib/freadahead.c: Include stdio-impl.h.
4442 (freadahead): Remove redundant #defines.
4443 * lib/freading.c: Include stdio-impl.h.
4444 (freading): Remove redundant #defines.
4445 * lib/freadptr.c: Include stdio-impl.h.
4446 (freadptr): Remove redundant #defines.
4447 * lib/freadseek.c: Include stdio-impl.h.
4448 (freadptrinc): Remove redundant #defines.
4449 * lib/fseeko.c: Include stdio-impl.h.
4450 (rpl_fseeko): Remove redundant #defines.
4451 * lib/fseterr.c: Include stdio-impl.h.
4452 (fseterr): Remove redundant #defines.
4453 * lib/fwritable.c: Include stdio-impl.h.
4454 (fwritable: Remove redundant #defines.
4455 * lib/fwriting.c: Include stdio-impl.h.
4456 (fwriting): Remove redundant #defines.
4457 * modules/fbufmode (Files): Add lib/stdio-impl.h.
4458 * modules/fflush (Files): Likewise.
4459 * modules/fpurge (Files): Likewise.
4460 * modules/freadable (Files): Likewise.
4461 * modules/freadahead (Files): Likewise.
4462 * modules/freading (Files): Likewise.
4463 * modules/freadptr (Files): Likewise.
4464 * modules/freadseek (Files): Likewise.
4465 * modules/fseeko (Files): Likewise.
4466 * modules/fseterr (Files): Likewise.
4467 * modules/fwritable (Files): Likewise.
4468 * modules/fwriting (Files): Likewise.
4470 2008-04-26 Bruno Haible <bruno@clisp.org>
4472 * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
4473 restore_seek_optimization, update_fpos_cache): New functions, extracted
4475 (rpl_fflush): Use them.
4476 * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
4477 (gl_REPLACE_FFLUSH): Use it.
4479 2008-04-26 Bruno Haible <bruno@clisp.org>
4481 * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
4483 * tests/test-xstrtoimax.sh: Likewise.
4484 * tests/test-xstrtoumax.sh: Likewise.
4485 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
4487 2008-04-26 Bruno Haible <bruno@clisp.org>
4489 * modules/memchr-tests: New file.
4490 * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
4492 2008-04-26 Eric Blake <ebb9@byu.net>
4493 Bruno Haible <bruno@clisp.org>
4495 * lib/memchr.c: Include intprops.h.
4496 (__memchr): Optimize parallel detection of matching bytes. Rename local
4497 variables. Add explanatory comments.
4499 2008-04-26 Bruno Haible <bruno@clisp.org>
4501 Fix module 'memchr', broken since 2000-10-28.
4502 * lib/memchr.c: Outside glibc, define memchr, not __memchr.
4504 2008-04-26 Bruno Haible <bruno@clisp.org>
4506 * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
4509 2008-04-25 Eric Blake <ebb9@byu.net>
4511 Use native fstatat on cygwin 1.7.0.
4512 * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
4515 2008-04-23 Eric Blake <ebb9@byu.net>
4517 Improve memchr2 performance.
4518 * lib/memchr2.c (memchr2): Further optimize parallel detection of
4520 * modules/memchr2 (Depends-on): Use intprops.h.
4522 2008-04-23 Simon Josefsson <simon@josefsson.org>
4524 * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
4525 an inline function instead of a CPP macro. Patch by Ben Pfaff
4526 <blp@cs.stanford.edu>.
4528 2008-04-23 Simon Josefsson <simon@josefsson.org>
4530 * lib/arpa_inet.in.h: New file.
4532 * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
4533 (Makefile.am): Sed in substitute header file.
4535 * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
4536 gl_ARPA_INET_MODULE_INDICATOR. Use them.
4538 * modules/inet_ntop (configure.ac): Use
4539 gl_ARPA_INET_MODULE_INDICATOR.
4541 * modules/inet_pton (configure.ac): Use
4542 gl_ARPA_INET_MODULE_INDICATOR.
4544 2008-04-22 Jim Meyering <meyering@redhat.com>
4546 * modules/verify (License): Re-license as LGPLv2+.
4548 2008-04-22 Simon Josefsson <simon@josefsson.org>
4550 * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
4551 parameter to void* as per POSIX standard (MinGW uses char*).
4553 2008-04-21 Bruno Haible <bruno@clisp.org>
4555 * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
4556 iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
4557 Define to replacements if REPLACE_ISWCNTRL is 1.
4558 * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
4559 If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
4560 * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
4561 * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
4563 * doc/posix-functions/iswalpha.texi: Likewise.
4564 * doc/posix-functions/iswblank.texi: Likewise.
4565 * doc/posix-functions/iswcntrl.texi: Likewise.
4566 * doc/posix-functions/iswdigit.texi: Likewise.
4567 * doc/posix-functions/iswgraph.texi: Likewise.
4568 * doc/posix-functions/iswlower.texi: Likewise.
4569 * doc/posix-functions/iswprint.texi: Likewise.
4570 * doc/posix-functions/iswpunct.texi: Likewise.
4571 * doc/posix-functions/iswspace.texi: Likewise.
4572 * doc/posix-functions/iswupper.texi: Likewise.
4573 * doc/posix-functions/iswxdigit.texi: Likewise.
4574 Reported by Alain Guibert.
4576 2008-04-21 Bruno Haible <bruno@clisp.org>
4578 * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
4579 Patch by Alain Guibert.
4581 2008-04-21 Bruno Haible <bruno@clisp.org>
4583 Fix test failures on mingw.
4584 * tests/test-xstrtol.c (print_no_progname): New function.
4585 (main): Install it in error_print_progname hook.
4586 * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
4587 * tests/test-xstrtoimax.sh: Likewise.
4588 * tests/test-xstrtoumax.sh: Likewise.
4590 2008-04-21 Bruno Haible <bruno@clisp.org>
4592 Fix test failure on mingw.
4593 * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
4595 2008-04-21 Bruno Haible <bruno@clisp.org>
4597 * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
4598 Actually assign a value.
4600 2008-04-20 Bruno Haible <bruno@clisp.org>
4602 Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
4604 * lib/canonicalize.c (canonicalize_file_name): Elide if the
4605 'canonicalize-lgpl' module is also used.
4606 * lib/canonicalize-lgpl.c: Undo last change.
4607 * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
4609 2008-04-20 Bruno Haible <bruno@clisp.org>
4611 * lib/mkdir.c (mkdir): Undefine after the includes, not right after
4612 config.h. Provide _mkdir based fallback for mingw.
4613 * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
4614 if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
4615 * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
4616 gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
4617 rather than defining mkdir in config.h.
4618 * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
4619 (gl_SYS_STAT_H_DEFAULTS): New macro.
4620 (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
4622 * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
4623 HAVE_DECL_MKDIR and HAVE_IO_H.
4625 2008-04-20 Bruno Haible <bruno@clisp.org>
4627 * lib/isapipe.c: Port to native Windows platforms.
4629 2008-04-20 Bruno Haible <bruno@clisp.org>
4631 * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
4633 2008-04-21 Eric Blake <ebb9@byu.net>
4635 Work around preprocessors that don't handle UINTMAX_MAX.
4636 * lib/memchr2.c (memchr2): Avoid embedded #if.
4637 Reported by Alain Guibert, fix suggested by Bruno Haible.
4639 2008-04-21 Simon Josefsson <simon@josefsson.org>
4641 * doc/posix-functions/strftime.texi (strftime): Explain better
4642 Windows incompatibility. Suggested by Micah Cowan
4645 2008-04-20 Bruno Haible <bruno@clisp.org>
4647 * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
4650 2008-04-20 Bruno Haible <bruno@clisp.org>
4652 Fix test failure on platforms with non-GNU iconv.
4653 * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
4654 (U_TO_U8): Use it, rather than u16_to_u8.
4655 * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
4656 units at the end of the input string.
4657 * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
4659 2008-04-20 Bruno Haible <bruno@clisp.org>
4661 * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
4662 when the resulting length is 0.
4663 * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
4665 2008-04-20 Bruno Haible <bruno@clisp.org>
4667 * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
4669 * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
4671 2008-04-20 Bruno Haible <bruno@clisp.org>
4673 * tests/test-tsearch.c (main): Don't use initstate if it is missing.
4674 * modules/tsearch-tests (configure.ac): Test for initstate function.
4676 2008-04-20 Bruno Haible <bruno@clisp.org>
4678 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
4679 for nlink_t if missing.
4680 * tests/test-sys_stat.c: Check the existence of the nlink_t type.
4682 2008-04-19 Bruno Haible <bruno@clisp.org>
4684 Work around snprintf bug on Linux libc5.
4685 * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
4686 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
4688 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
4689 * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
4691 * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
4692 * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
4693 * modules/snprintf (Files): Add m4/printf.m4.
4694 * modules/vsnprintf (Files): Likewise.
4695 * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
4696 * doc/posix-functions/vsnprintf.texi: Likewise.
4698 2008-04-19 Bruno Haible <bruno@clisp.org>
4700 * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
4701 from 0.0058 to less than 10^-7.
4703 2008-04-19 Bruno Haible <bruno@clisp.org>
4705 Fix rounding when a precision is given.
4706 * lib/vasnprintf.c (is_borderline): New function.
4707 (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
4709 * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
4711 * tests/test-vasprintf-posix.c (test_function): Likewise.
4712 * tests/test-snprintf-posix.h (test_function): Likewise.
4713 * tests/test-sprintf-posix.h (test_function): Likewise.
4714 * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
4715 * tests/test-printf-posix.h (test_function): Likewise.
4716 * tests/test-printf-posix.output: Update.
4717 Reported by John Darrington <john@darrington.wattle.id.au> via
4718 Ben Pfaff <blp@cs.stanford.edu>.
4720 2008-04-18 Simon Josefsson <simon@josefsson.org>
4722 * doc/posix-functions/strftime.texi (strftime): Clarify platform.
4723 Suggested by Bruno Haible <bruno@clisp.org>.
4725 2008-04-17 Bruno Haible <bruno@clisp.org>
4727 * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
4728 gl_recursive_lock_destroy): Provide no-op definitions for the dummy
4730 Patch by Bruce Merry <bmerry@gmail.com>.
4732 2008-04-17 Simon Josefsson <simon@josefsson.org>
4734 * doc/posix-functions/strftime.texi (strftime): Mention that %e
4735 doesn't work under Windows.
4737 2008-04-16 Bruno Haible <bruno@clisp.org>
4739 * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
4741 (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
4742 SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
4743 SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
4744 SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
4745 SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
4746 SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
4747 SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
4749 (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
4750 Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
4751 Northern Sotho, Uighur.
4753 2008-04-16 Bruno Haible <bruno@clisp.org>
4755 * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
4756 (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
4757 (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
4758 Reported by Daniel Bergström <daniel@octocode.com>.
4760 2007-12-25 KJK::Hyperion <hackbunny@reactos.com>
4761 Bruno Haible <bruno@clisp.org>
4763 * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
4765 (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
4766 New functions, mostly extracted from gl_locale_name_default.
4767 (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
4769 2008-04-16 Eric Blake <ebb9@byu.net>
4771 Adjust strtod detection to catch glibc 2.7 bug.
4772 * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
4773 Reported by John Gatewood Ham.
4775 2008-04-16 Bruno Haible <bruno@clisp.org>
4777 Add tentative support for Linux libc5.
4778 * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
4779 * lib/fpurge.c (fpurge): Likewise.
4780 * lib/freadable.c (freadable): Likewise.
4781 * lib/freadahead.c (freadahead): Likewise.
4782 * lib/freading.c (freading): Likewise.
4783 * lib/freadptr.c (freadptr): Likewise.
4784 * lib/freadseek.c (freadptrinc): Likewise.
4785 * lib/fseeko.c (rpl_fseeko): Likewise.
4786 * lib/fseterr.c (fseterr): Likewise.
4787 * lib/fwritable.c (fwritable): Likewise.
4788 * lib/fwriting.c (fwriting): Likewise.
4789 Reported by Alain Guibert <alguibert+bts@free.fr>.
4791 2008-04-15 Bruno Haible <bruno@clisp.org>
4793 * modules/mathl (configure.ac): Define module indicator.
4795 2008-04-15 Bruno Haible <bruno@clisp.org>
4797 * lib/logl.c (logl): Remove unused variables.
4799 2008-04-15 Bruno Haible <bruno@clisp.org>
4801 * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
4804 2008-04-15 Bruno Haible <bruno@clisp.org>
4806 * lib/trim.c (trim2): Fix argument of isspace() macro.
4808 2008-04-15 Paolo Bonzini <bonzini@gnu.org>
4810 * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
4812 * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
4814 2008-04-14 Bruno Haible <bruno@clisp.org>
4816 * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
4817 AC_LANG_PROGRAM argument.
4818 * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
4819 * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
4820 * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
4821 * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
4822 * m4/math_h.m4 (gl_MATH_H): Likewise.
4823 * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
4824 * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
4825 * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
4826 * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
4827 * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
4828 * m4/regex.m4 (gl_REGEX): Likewise.
4829 * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
4830 * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
4831 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
4832 * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
4833 * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
4834 * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
4835 * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
4836 * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
4838 2008-04-14 Jim Meyering <meyering@redhat.com>
4840 test-strtod: fix typos: s/abs/fabs/
4841 * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
4843 2008-04-13 Bruno Haible <bruno@clisp.org>
4845 Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
4846 * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
4847 module is also used and while not building the reloc-wrapper.
4849 2008-04-13 Bruno Haible <bruno@clisp.org>
4851 * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
4853 2008-04-13 Bruno Haible <bruno@clisp.org>
4855 Fix AIX compilation failure introduced on 2008-04-02.
4856 * tests/test-frexp.c (exp): Undefine before redefining.
4857 * tests/test-frexpl.c (exp): Likewise.
4859 2008-04-13 Bruno Haible <bruno@clisp.org>
4861 Work around a HP-UX stdio bug.
4862 * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
4863 * tests/test-ftello.c (main): Likewise.
4864 * doc/posix-functions/ftell.texi: Mention HP-UX bug.
4865 * doc/posix-functions/ftello.texi: Likewise.
4867 2008-04-13 Bruno Haible <bruno@clisp.org>
4869 Make test-signbit pass on HP-UX/hppa.
4870 * tests/test-signbit.c (minus_zerol): New variable.
4871 (test_signbitl): Use it.
4873 2008-04-13 Bruno Haible <bruno@clisp.org>
4875 Make truncl work on OSF/1 4.0.
4876 * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
4877 Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
4878 * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
4879 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
4881 * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
4883 * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
4885 2008-04-13 Bruno Haible <bruno@clisp.org>
4887 * lib/unictype.h: Remove trailing comma from enumeration definitions.
4889 2008-04-13 Bruno Haible <bruno@clisp.org>
4891 * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
4892 expression, so as to avoid HP-UX 11 cc compiler bug.
4894 2008-04-13 Bruno Haible <bruno@clisp.org>
4896 * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
4898 2008-04-13 Bruno Haible <bruno@clisp.org>
4900 * lib/git-merge-changelog.c: Remove empty declaration outside of
4903 2008-04-13 Bruno Haible <bruno@clisp.org>
4905 * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
4907 2008-04-13 Bruno Haible <bruno@clisp.org>
4909 * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
4910 * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
4911 * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
4912 also if it exists but lacks definitions of the SHUT_* macros.
4913 * modules/sys_socket (Description): Update.
4914 Reported by Elbert Pol <e.pol@chello.nl>.
4916 2008-04-13 Bruno Haible <bruno@clisp.org>
4918 * lib/localcharset.c (OS2): Don't redefine if already defined.
4919 Reported by Elbert Pol <e.pol@chello.nl>.
4921 2008-04-13 Bruno Haible <bruno@clisp.org>
4923 * lib/binary-io.h [__EMX__]: Include <io.h>.
4924 Reported by Elbert Pol <e.pol@chello.nl>.
4926 2008-04-12 Bruno Haible <bruno@clisp.org>
4928 * lib/fpucw.h: Enable the definitions also for x86_64.
4929 Needed for NetBSD/x86_64.
4930 Reported by Thomas Klausner <tk@giga.or.at>.
4932 2008-04-12 Bruno Haible <bruno@clisp.org>
4934 * tests/test-strtod.c: Include isnand.h.
4935 (main): Use isnand instead of isnan.
4936 Reported by Jim Meyering.
4938 2008-04-12 Bruno Haible <bruno@clisp.org>
4940 * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
4941 Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
4943 2008-04-12 Jim Meyering <meyering@redhat.com>
4945 * m4/math_h.m4 (gl_MATH_H): Fix typos.
4947 2008-04-12 Bruno Haible <bruno@clisp.org>
4949 * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
4950 Reported by Elbert Pol <e.pol@chello.nl>.
4952 2008-04-12 Eric Blake <ebb9@byu.net>
4954 Work around Solaris 10 math.h bug.
4955 * m4/math_h.m4 (gl_MATH_H): Check for bug.
4956 (gl_MATH_H_DEFAULTS): Set up default.
4957 * modules/math (Makefile.am): Replace new indicators.
4958 * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
4959 * tests/test-math.c (main): Test this.
4960 * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
4961 * doc/posix-headers/math.texi (math.h): Mention bug.
4962 Reported by Nelson H. F. Beebe and Jim Meyering.
4964 2008-04-11 Bruno Haible <bruno@clisp.org>
4966 Adapt to future versions of Apple GCC.
4967 * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
4968 Reported by Peter O'Gorman <peter@pogma.com>.
4970 2008-04-11 Bruno Haible <bruno@clisp.org>
4972 * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
4974 2008-04-11 Bruno Haible <bruno@clisp.org>
4976 * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
4978 * modules/getaddrinfo-tests (Makefile.am): Define
4979 test_getaddrinfo_LDADD.
4981 2008-04-11 Bruno Haible <bruno@clisp.org>
4983 * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
4984 (init): Fix syntax error.
4985 * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
4988 2008-04-11 Bruno Haible <bruno@clisp.org>
4990 * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
4991 * modules/glob (Depends-on): Add stdbool.
4993 2008-04-11 Bruno Haible <bruno@clisp.org>
4995 * lib/trim.c: Include <string.h>.
4997 2008-04-11 Eric Blake <ebb9@byu.net>
4999 Avoid compile failure on OS/2.
5000 * lib/regex_internal.h (internal_function): Disable optimization
5001 on OS/2 (__EMX__), where it caused compiler error.
5002 Reported by Elbert Pol.
5004 2008-04-11 Bruno Haible <bruno@clisp.org>
5006 Flush the standard error stream before aborting. Needed on mingw.
5007 * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
5008 * tests/test-array_list.c (ASSERT): Likewise.
5009 * tests/test-array_oset.c (ASSERT): Likewise.
5010 * tests/test-avltree_list.c (ASSERT): Likewise.
5011 * tests/test-avltree_oset.c (ASSERT): Likewise.
5012 * tests/test-avltreehash_list.c (ASSERT): Likewise.
5013 * tests/test-binary-io.c (ASSERT): Likewise.
5014 * tests/test-byteswap.c (ASSERT): Likewise.
5015 * tests/test-c-ctype.c (ASSERT): Likewise.
5016 * tests/test-c-strcasecmp.c (ASSERT): Likewise.
5017 * tests/test-c-strcasestr.c (ASSERT): Likewise.
5018 * tests/test-c-strncasecmp.c (ASSERT): Likewise.
5019 * tests/test-c-strstr.c (ASSERT): Likewise.
5020 * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
5021 * tests/test-canonicalize.c (ASSERT): Likewise.
5022 * tests/test-carray_list.c (ASSERT): Likewise.
5023 * tests/test-ceilf1.c (ASSERT): Likewise.
5024 * tests/test-ceilf2.c (ASSERT): Likewise.
5025 * tests/test-ceill.c (ASSERT): Likewise.
5026 * tests/test-count-one-bits.c (ASSERT): Likewise.
5027 * tests/test-fbufmode.c (ASSERT): Likewise.
5028 * tests/test-fflush2.c (ASSERT): Likewise.
5029 * tests/test-floorf1.c (ASSERT): Likewise.
5030 * tests/test-floorf2.c (ASSERT): Likewise.
5031 * tests/test-floorl.c (ASSERT): Likewise.
5032 * tests/test-fopen.c (ASSERT): Likewise.
5033 * tests/test-fpending.c (ASSERT): Likewise.
5034 * tests/test-fprintf-posix.c (ASSERT): Likewise.
5035 * tests/test-fpurge.c (ASSERT): Likewise.
5036 * tests/test-freadable.c (ASSERT): Likewise.
5037 * tests/test-freadahead.c (ASSERT): Likewise.
5038 * tests/test-freading.c (ASSERT): Likewise.
5039 * tests/test-freadptr.c (ASSERT): Likewise.
5040 * tests/test-freadptr2.c (ASSERT): Likewise.
5041 * tests/test-freadseek.c (ASSERT): Likewise.
5042 * tests/test-freopen.c (ASSERT): Likewise.
5043 * tests/test-frexp.c (ASSERT): Likewise.
5044 * tests/test-frexpl.c (ASSERT): Likewise.
5045 * tests/test-fseek.c (ASSERT): Likewise.
5046 * tests/test-fseeko.c (ASSERT): Likewise.
5047 * tests/test-fstrcmp.c (ASSERT): Likewise.
5048 * tests/test-ftell.c (ASSERT): Likewise.
5049 * tests/test-ftello.c (ASSERT): Likewise.
5050 * tests/test-func.c (ASSERT): Likewise.
5051 * tests/test-fwritable.c (ASSERT): Likewise.
5052 * tests/test-fwriting.c (ASSERT): Likewise.
5053 * tests/test-getdelim.c (ASSERT): Likewise.
5054 * tests/test-getline.c (ASSERT): Likewise.
5055 * tests/test-i-ring.c (ASSERT): Likewise.
5056 * tests/test-iconv-utf.c (ASSERT): Likewise.
5057 * tests/test-iconv.c (ASSERT): Likewise.
5058 * tests/test-isfinite.c (ASSERT): Likewise.
5059 * tests/test-isnand.c (ASSERT): Likewise.
5060 * tests/test-isnanf.c (ASSERT): Likewise.
5061 * tests/test-isnanl.h (ASSERT): Likewise.
5062 * tests/test-ldexpl.c (ASSERT): Likewise.
5063 * tests/test-linked_list.c (ASSERT): Likewise.
5064 * tests/test-linkedhash_list.c (ASSERT): Likewise.
5065 * tests/test-localename.c (ASSERT): Likewise.
5066 * tests/test-lseek.c (ASSERT): Likewise.
5067 * tests/test-mbscasecmp.c (ASSERT): Likewise.
5068 * tests/test-mbscasestr1.c (ASSERT): Likewise.
5069 * tests/test-mbscasestr2.c (ASSERT): Likewise.
5070 * tests/test-mbscasestr3.c (ASSERT): Likewise.
5071 * tests/test-mbscasestr4.c (ASSERT): Likewise.
5072 * tests/test-mbschr.c (ASSERT): Likewise.
5073 * tests/test-mbscspn.c (ASSERT): Likewise.
5074 * tests/test-mbsncasecmp.c (ASSERT): Likewise.
5075 * tests/test-mbspbrk.c (ASSERT): Likewise.
5076 * tests/test-mbspcasecmp.c (ASSERT): Likewise.
5077 * tests/test-mbsrchr.c (ASSERT): Likewise.
5078 * tests/test-mbsspn.c (ASSERT): Likewise.
5079 * tests/test-mbsstr1.c (ASSERT): Likewise.
5080 * tests/test-mbsstr2.c (ASSERT): Likewise.
5081 * tests/test-mbsstr3.c (ASSERT): Likewise.
5082 * tests/test-memchr2.c (ASSERT): Likewise.
5083 * tests/test-memmem.c (ASSERT): Likewise.
5084 * tests/test-open.c (ASSERT): Likewise.
5085 * tests/test-printf-frexp.c (ASSERT): Likewise.
5086 * tests/test-printf-frexpl.c (ASSERT): Likewise.
5087 * tests/test-printf-posix.c (ASSERT): Likewise.
5088 * tests/test-quotearg.c (ASSERT): Likewise.
5089 * tests/test-rbtree_list.c (ASSERT): Likewise.
5090 * tests/test-rbtree_oset.c (ASSERT): Likewise.
5091 * tests/test-rbtreehash_list.c (ASSERT): Likewise.
5092 * tests/test-round1.c (ASSERT): Likewise.
5093 * tests/test-roundf1.c (ASSERT): Likewise.
5094 * tests/test-roundl.c (ASSERT): Likewise.
5095 * tests/test-signbit.c (ASSERT): Likewise.
5096 * tests/test-sleep.c (ASSERT): Likewise.
5097 * tests/test-snprintf-posix.c (ASSERT): Likewise.
5098 * tests/test-snprintf.c (ASSERT): Likewise.
5099 * tests/test-sprintf-posix.c (ASSERT): Likewise.
5100 * tests/test-stat-time.c (ASSERT): Likewise.
5101 * tests/test-strcasestr.c (ASSERT): Likewise.
5102 * tests/test-strerror.c (ASSERT): Likewise.
5103 * tests/test-striconv.c (ASSERT): Likewise.
5104 * tests/test-striconveh.c (ASSERT): Likewise.
5105 * tests/test-striconveha.c (ASSERT): Likewise.
5106 * tests/test-strsignal.c (ASSERT): Likewise.
5107 * tests/test-strstr.c (ASSERT): Likewise.
5108 * tests/test-strtod.c (ASSERT): Likewise.
5109 * tests/test-trunc1.c (ASSERT): Likewise.
5110 * tests/test-trunc2.c (ASSERT): Likewise.
5111 * tests/test-truncf1.c (ASSERT): Likewise.
5112 * tests/test-truncf2.c (ASSERT): Likewise.
5113 * tests/test-truncl.c (ASSERT): Likewise.
5114 * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
5115 * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
5116 * tests/test-vasnprintf.c (ASSERT): Likewise.
5117 * tests/test-vasprintf-posix.c (ASSERT): Likewise.
5118 * tests/test-vasprintf.c (ASSERT): Likewise.
5119 * tests/test-vfprintf-posix.c (ASSERT): Likewise.
5120 * tests/test-vprintf-posix.c (ASSERT): Likewise.
5121 * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
5122 * tests/test-vsnprintf.c (ASSERT): Likewise.
5123 * tests/test-vsprintf-posix.c (ASSERT): Likewise.
5124 * tests/test-wcwidth.c (ASSERT): Likewise.
5125 * tests/test-xfprintf-posix.c (ASSERT): Likewise.
5126 * tests/test-xprintf-posix.c (ASSERT): Likewise.
5127 * tests/test-xvasprintf.c (ASSERT): Likewise.
5128 * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
5129 * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
5130 * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
5131 * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
5132 * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
5133 * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
5134 * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
5135 * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
5136 * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
5137 * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
5138 * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
5139 * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
5140 * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
5141 * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
5142 * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
5143 * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
5144 * tests/unictype/test-block_list.c (ASSERT): Likewise.
5145 * tests/unictype/test-block_of.c (ASSERT): Likewise.
5146 * tests/unictype/test-block_test.c (ASSERT): Likewise.
5147 * tests/unictype/test-categ_and.c (ASSERT): Likewise.
5148 * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
5149 * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
5150 * tests/unictype/test-categ_name.c (ASSERT): Likewise.
5151 * tests/unictype/test-categ_none.c (ASSERT): Likewise.
5152 * tests/unictype/test-categ_of.c (ASSERT): Likewise.
5153 * tests/unictype/test-categ_or.c (ASSERT): Likewise.
5154 * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
5155 * tests/unictype/test-combining.c (ASSERT): Likewise.
5156 * tests/unictype/test-decdigit.c (ASSERT): Likewise.
5157 * tests/unictype/test-digit.c (ASSERT): Likewise.
5158 * tests/unictype/test-mirror.c (ASSERT): Likewise.
5159 * tests/unictype/test-numeric.c (ASSERT): Likewise.
5160 * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
5161 * tests/unictype/test-pr_test.c (ASSERT): Likewise.
5162 * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
5163 * tests/unictype/test-scripts.c (ASSERT): Likewise.
5164 * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
5165 * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
5166 * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
5167 * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
5168 * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
5169 * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
5170 * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
5171 * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
5172 * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
5173 * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
5174 * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
5175 * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
5176 * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
5177 * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
5178 * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
5179 * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
5180 * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
5181 * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
5182 * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
5183 * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
5184 * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
5185 * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
5186 * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
5187 * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
5188 * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
5189 * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
5190 * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
5191 * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
5192 * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
5193 * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
5194 * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
5195 * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
5196 * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
5197 * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
5198 * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
5199 * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
5200 * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
5201 Reported by Eric Blake.
5203 2008-04-11 Bruno Haible <bruno@clisp.org>
5205 * lib/wchar.in.h: Tweak comment.
5207 2008-04-11 Bruno Haible <bruno@clisp.org>
5209 Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
5210 * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
5212 * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
5214 2008-04-11 Bruno Haible <bruno@clisp.org>
5216 * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
5218 2008-04-11 Simon Josefsson <simon@josefsson.org>
5220 * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
5221 of attempting to use non-existing /dev/*random. Based on patch
5222 from Adam Strzelecki <ono@java.pl> in
5223 <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
5225 2008-04-08 Bruno Haible <bruno@clisp.org>
5227 Add tentative support for emx+gcc.
5228 * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
5229 * lib/fpurge.c (fpurge): Likewise.
5230 * lib/freadable.c (freadable): Likewise.
5231 * lib/freadahead.c (freadahead): Likewise.
5232 * lib/freading.c (freading): Likewise.
5233 * lib/freadptr.c (freadptr): Likewise.
5234 * lib/freadseek.c (freadptrinc): Likewise.
5235 * lib/fseeko.c (rpl_fseeko): Likewise.
5236 * lib/fseterr.c (fseterr): Likewise.
5237 * lib/fwritable.c (fwritable): Likewise.
5238 * lib/fwriting.c (fwriting): Likewise.
5239 * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
5241 2008-04-09 Eric Blake <ebb9@byu.net>
5243 Avoid some autoconf warnings.
5244 * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
5245 * m4/acl.m4 (gl_FUNC_ACL): Likewise.
5246 * m4/afs.m4 (gl_AFS): Likewise.
5247 * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
5248 * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
5249 * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
5250 * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
5251 (gl_INTEGER_TYPE_SUFFIX): Likewise.
5252 * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
5253 (AC_CHECK_DECLS_ONCE): Likewise.
5255 * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
5256 gnulib-tool requires autoconf 2.59 or better.
5257 * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
5259 2008-04-08 Eric Blake <ebb9@byu.net>
5261 Use 'git describe --match' if present (added in git 1.5.5).
5262 * build-aux/git-version-gen: Limit result to tags that match 'v*'
5265 2008-04-08 Bruno Haible <bruno@clisp.org>
5267 Add tentative support for OpenServer.
5268 * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
5270 * lib/fpurge.c (fpurge): Likewise.
5271 * lib/freadable.c (freadable): Likewise.
5272 * lib/freadahead.c (freadahead): Likewise.
5273 * lib/freading.c (freading): Likewise.
5274 * lib/freadptr.c (freadptr): Likewise.
5275 * lib/freadseek.c (freadptrinc): Likewise.
5276 * lib/fseeko.c (rpl_fseeko): Likewise.
5277 * lib/fseterr.c (fseterr): Likewise.
5278 * lib/fwritable.c (fwritable): Likewise.
5279 * lib/fwriting.c (fwriting): Likewise.
5280 Reported by Roger Cornelius <rac@tenzing.org> and
5281 Brian K. White <brian@aljex.com>.
5283 2008-04-06 Jim Meyering <meyering@redhat.com>
5285 * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
5287 2008-04-06 Bruno Haible <bruno@clisp.org>
5289 Avoid possible error with non-ASCII bytes in UTF-8 locales.
5290 * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
5291 * tests/test-printf-posix.sh: Likewise.
5292 * tests/test-vfprintf-posix.sh: Likewise.
5293 * tests/test-vprintf-posix.sh: Likewise.
5294 * tests/test-xprintf-posix.sh: Likewise.
5296 2008-04-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5298 * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
5299 hide error from 'ls', needed on OS/2.
5300 Report by Elbert Pol <elbert.pol@gmail.com>.
5302 2008-04-04 Eric Blake <ebb9@byu.net>
5304 Make test-fseeko.c failures meaningful.
5305 * tests/test-fseeko.c: Print line number on failure.
5306 * tests/test-fseek.c: Likewise.
5307 Reported by Nelson H. F. Beebe.
5309 Improve strtod bug detection check.
5310 * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
5311 required for Solaris 10.
5312 Reported by Bob Friesenhahn and Nelson H. F. Beebe.
5314 2008-04-04 Bruno Haible <bruno@clisp.org>
5316 * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
5319 2008-04-03 Eric Blake <ebb9@byu.net>
5321 Ensure sane .version contents.
5322 * top/GNUmakefile (_dummy): Also delete .version when rebuilding
5324 * build-aux/git-version-gen: Improve documentation.
5326 Make GNU make output nicer.
5327 * top/GNUmakefile [!_have-Makefile]: Add dependency on
5328 MAKECMDGOALS to enforce message for all command line targets. Set
5329 srcdir for use in maint.mk.
5331 Another maintainer tweak.
5332 * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
5333 a target that regenerates version.
5335 2008-04-03 Jim Meyering <meyering@redhat.com>
5337 vc-list-files: don't cause coreutils "make po-check" failure
5338 * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
5340 2008-04-03 Eric Blake <ebb9@byu.net>
5342 Allow VPATH usage of vc-list-files.
5343 * build-aux/vc-list-files (scriptversion): Add timestamp.
5344 (options): Add --help, --version, -C.
5345 (CVS): Support installed cvsu.
5347 2008-04-02 Bruno Haible <bruno@clisp.org>
5349 Avoid some "statement with no effect" warnings from gcc.
5350 * tests/test-wctype.c (main): Explicitly ignore unused values.
5351 Reported by Jim Meyering.
5353 2008-04-02 Jim Meyering <meyering@redhat.com>
5355 Avoid some warnings from "gcc -Wshadow".
5356 * tests/test-frexp.c (exp): Define to a different identifier.
5357 * tests/test-frexpl.c (exp): Likewise.
5359 2008-04-03 Jim Meyering <meyering@redhat.com>
5361 bootstrap: remove dangling *.[ch] symlinks from lib
5362 * build-aux/bootstrap [dangling symlink removal]: Move find's
5363 -depth option to precede all others, to avoid a warning.
5364 Remove *.[ch] files too, and from "$source_base" (usually lib/).
5366 2008-04-02 Bruno Haible <bruno@clisp.org>
5368 Avoid some warnings from "gcc -Wshadow".
5369 * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
5370 * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
5371 * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
5372 * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
5373 Reported by Jim Meyering.
5375 2008-04-01 Bruno Haible <bruno@clisp.org>
5377 Fix test to work on IRIX 6.5 with cc.
5378 * tests/test-math.c (numeric_equal): New function.
5381 2008-04-01 Bruno Haible <bruno@clisp.org>
5383 * doc/posix-headers/math.texi: Refine documentation of NAN problem.
5385 2008-04-01 Bruno Haible <bruno@clisp.org>
5387 * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
5388 (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
5389 * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
5390 (Depends-on): Remove math.
5392 * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
5393 (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
5394 * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
5395 (Depends-on): Remove math.
5397 * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
5398 (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
5399 * modules/snprintf-posix-tests (Files): Add tests/nan.h.
5400 (Depends-on): Remove math.
5401 * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
5402 (Depends-on): Remove math.
5404 * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
5405 (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
5406 * modules/sprintf-posix-tests (Files): Add tests/nan.h.
5407 (Depends-on): Remove math.
5408 * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
5409 (Depends-on): Remove math.
5411 * tests/test-round1.c: Include nan.h.
5412 (main): Use NaNd instead of NAN.
5413 * modules/round-tests (Files): Add tests/nan.h.
5415 * tests/test-trunc1.c: Include nan.h.
5416 (main): Use NaNd instead of NAN.
5417 * modules/trunc-tests (Files): Add tests/nan.h.
5419 * tests/test-roundf1.c: Include nan.h.
5420 (main): Use NaNf instead of NAN.
5421 * modules/roundf-tests (Files): Add tests/nan.h.
5423 * tests/test-truncf1.c: Include nan.h.
5424 (main): Use NaNf instead of NAN.
5425 * modules/truncf-tests (Files): Add tests/nan.h.
5427 * tests/test-ceilf1.c: Include nan.h.
5428 (main): Use NaNf instead of NAN.
5429 * modules/ceilf-tests (Files): Add tests/nan.h.
5431 * tests/test-floorf1.c: Include nan.h.
5432 (main): Use NaNf instead of NAN.
5433 * modules/floorf-tests (Files): Add tests/nan.h.
5435 * tests/test-isnanf.c: Include nan.h instead of <math.h>.
5436 (main): Use NaNf instead of NAN.
5437 * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
5439 * tests/test-isnand.c: Include nan.h instead of <math.h>.
5440 (main): Use NaNd instead of NAN.
5441 * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
5443 * tests/test-frexp.c: Include nan.h.
5444 (main): Use NaNd instead of NAN.
5445 * modules/frexp-tests (Files): Add tests/nan.h.
5447 * lib/isnan.c: Don't include <math.h>.
5448 (FUNC): Don't use NAN macro.
5449 * modules/isnand-nolibm (Depends-on): Remove math.
5450 * modules/isnanf-nolibm (Depends-on): Remove math.
5451 * modules/isnanl (Depends-on): Remove math.
5452 * modules/isnanl-nolibm (Depends-on): Remove math.
5454 * tests/nan.h: New file.
5456 2008-04-01 Eric Blake <ebb9@byu.net>
5459 * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
5460 values to be the right type.
5462 For now, cater to gnulib strtod inaccuracies.
5463 * tests/test-strtod.c (main): Allow 1-ulp error on expected
5464 fractional results. While not as nice from a QoI perspective, it
5465 is a quicker patch than correctly implementing decimal to binary
5468 2008-03-31 Eric Blake <ebb9@byu.net>
5470 Guarantee a definition of NAN.
5471 * lib/math.in.h (NAN): Define if missing.
5472 * tests/test-math.c (main): Test it.
5473 * doc/posix-headers/math.texi (math.h): Document this.
5474 * lib/isnan.c (rpl_isnand): Use it.
5475 * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
5476 * tests/test-floorf1.c (NaN): Likewise.
5477 * tests/test-frexp.c (NaN): Likewise.
5478 * tests/test-isnand.c (NaN): Likewise.
5479 * tests/test-isnanf.c (NaN): Likewise.
5480 * tests/test-round1.c (NaN): Likewise.
5481 * tests/test-roundf1.c (NaN): Likewise.
5482 * tests/test-snprintf-posix.h (NaN): Likewise.
5483 * tests/test-sprintf-posix.h (NaN): Likewise.
5484 * tests/test-trunc1.c (NaN): Likewise.
5485 * tests/test-truncf1.c (NaN): Likewise.
5486 * tests/test-vasnprintf-posix.c (NaN): Likewise.
5487 * tests/test-vasprintf-posix.c (NaN): Likewise.
5488 * modules/isnand-nolibm (Depends-on): Add math.
5489 * modules/isnanf-nolibm (Depends-on): Likewise.
5490 * modules/isnanl (Depends-on): Likewise.
5491 * modules/isnanl-nolibm (Depends-on): Likewise.
5492 * modules/snprintf-posix-tests (Depends-on): Likewise.
5493 * modules/sprintf-posix-tests (Depends-on): Likewise.
5494 * modules/vsnprintf-posix-tests (Depends-on): Likewise.
5495 * modules/vsprintf-posix-tests (Depends-on): Likewise.
5496 * modules/vasnprintf-posix-tests (Depends-on): Likewise.
5497 * modules/vasprintf-posix-tests (Depends-on): Likewise.
5499 2008-03-31 Bruno Haible <bruno@clisp.org>
5501 * tests/test-strtod.c (main): Update results for OSF/1 platforms.
5502 * doc/posix-functions/strtod.texi: Likewise.
5504 2008-03-31 Bruno Haible <bruno@clisp.org>
5506 * tests/test-strtod.c (main): Don't use C99 syntax.
5508 2008-03-31 Bruno Haible <bruno@clisp.org>
5510 * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
5511 Reported by Eric Blake.
5513 2008-03-31 Jim Meyering <meyering@redhat.com>
5515 Don't compare actual signbit return values.
5516 * tests/test-strtod.c (main): Rather, compare only their
5517 zero/non-zero nature.
5519 2008-03-31 Eric Blake <ebb9@byu.net>
5521 More strtod documentation.
5522 * doc/posix-functions/strtod.texi (strtod): Interpret more test
5523 failures as distinct bugs.
5525 2008-03-30 Paul Eggert <eggert@cs.ucla.edu>
5527 * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
5528 Problem reported by Erik Benada in
5529 <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
5531 2008-03-30 Bruno Haible <bruno@clisp.org>
5533 * tests/test-strtod.c: Add comments about which assertion fails on which
5535 * doc/posix-functions/strtod.texi: Add info about many more platforms.
5537 2008-03-30 Eric Blake <ebb9@byu.net>
5539 Test signbit behavior on zeros.
5540 * tests/test-signbit.c (test_signbitf): Add tests for zero.
5541 (test_signbitd, test_signbitl): Likewise.
5543 More strtod touchups.
5544 * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
5545 sign of negative underflow, for now. Use .5, not .1.
5546 * doc/posix-functions/strtod.texi (strtod): Mention these
5548 Reported by Jim Meyering.
5550 2008-03-30 Bruno Haible <bruno@clisp.org>
5552 * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
5553 from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
5555 2008-03-30 Bruno Haible <bruno@clisp.org>
5557 Avoid failure when attempting to return empty iconv results on some
5559 * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
5560 allocation, don't report ENOMEM when the resulting string is empty.
5562 2008-03-30 Bruno Haible <bruno@clisp.org>
5565 * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
5566 Don't consider the width for tmp_length. Check count against tmp_length
5567 before doing the padding. Ensure enough allocation during padding.
5569 2008-03-30 Eric Blake <ebb9@byu.net>
5572 * lib/strtod.c (strtod): Avoid compiler warnings.
5573 Reported by Jim Meyering.
5575 2008-03-30 Bruno Haible <bruno@clisp.org>
5577 * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
5578 * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
5579 * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
5580 * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
5581 * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
5582 * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
5583 * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
5584 * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
5586 * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
5587 * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
5588 * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
5589 * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
5590 * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
5591 * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
5592 * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
5593 * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
5595 * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
5596 * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
5597 * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
5598 * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
5599 * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
5600 * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
5601 * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
5602 * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
5604 * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
5605 * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
5607 * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
5608 * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
5610 * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
5611 * modules/xvasprintf (Depends-on): Add EOVERFLOW.
5613 * lib/vsprintf.c (EOVERFLOW): Remove fallback.
5614 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
5615 * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
5617 * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
5618 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
5619 * modules/vsnprintf (Depends-on): Add EOVERFLOW.
5621 * lib/vfprintf.c (EOVERFLOW): Remove fallback.
5622 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
5623 * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
5625 * lib/vasprintf.c (EOVERFLOW): Remove fallback.
5626 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
5627 * modules/vasprintf (Depends-on): Add EOVERFLOW.
5629 * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
5630 * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
5631 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
5632 * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
5633 (Depends-on): Add EOVERFLOW.
5634 * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
5635 (Depends-on): Add EOVERFLOW.
5636 * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
5637 (Depends-on): Add EOVERFLOW.
5638 * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
5639 (Depends-on): Add EOVERFLOW.
5640 * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
5641 (Depends-on): Add EOVERFLOW.
5642 * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
5643 (Depends-on): Add EOVERFLOW.
5644 * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
5645 (Depends-on): Add EOVERFLOW.
5646 * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
5647 (Depends-on): Add EOVERFLOW.
5649 * lib/sprintf.c (EOVERFLOW): Remove fallback.
5650 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
5651 * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
5653 * lib/snprintf.c (EOVERFLOW): Remove fallback.
5654 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
5655 * modules/snprintf (Depends-on): Add EOVERFLOW.
5657 * lib/poll.c (EOVERFLOW): Remove fallback.
5658 * modules/poll (Depends-on): Add EOVERFLOW.
5660 * lib/getugroups.c (EOVERFLOW): Remove fallback.
5661 * modules/getugroups (Depends-on): Add EOVERFLOW.
5663 * lib/getdelim.c (EOVERFLOW): Remove fallback.
5664 * modules/getdelim (Depends-on): Add EOVERFLOW.
5666 * lib/ftell.c (EOVERFLOW): Remove fallback.
5667 * modules/ftell (Depends-on): Add EOVERFLOW.
5669 * lib/fprintf.c (EOVERFLOW): Remove fallback.
5670 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
5671 * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
5673 * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
5675 * modules/EOVERFLOW-tests: New file.
5676 * tests/test-EOVERFLOW.c: New file.
5678 * modules/EOVERFLOW: New file.
5679 * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
5681 2008-03-30 Bruno Haible <bruno@clisp.org>
5683 Fix bug introduced on 2007-06-10.
5684 * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
5685 spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
5687 2008-03-30 Bruno Haible <bruno@clisp.org>
5689 Improve freadseek's efficiency after ungetc.
5690 * lib/freadseek.c: Include freadahead.h.
5691 (freadptrinc): New function, extracted from freadseek.
5692 (freadseek): Use it in a loop. Use freadahead to determine the number
5694 * modules/freadseek (Depends-on): Add freadahead.
5695 (configure.ac): Require AC_C_INLINE.
5697 2008-03-30 Bruno Haible <bruno@clisp.org>
5699 * lib/freadseek.c (freadseek): Don't ignore the return value of
5702 2008-03-29 Eric Blake <ebb9@byu.net>
5704 Add hex float support.
5705 * modules/strtod (Depends-on): Add c-ctype.
5706 (Link): Mention POW_LIB.
5707 * lib/strtod.c (strtod): Recognize hex floats. Don't allow
5708 whitespace between 'e' and exponent.
5709 * tests/test-strtod.c (main): Enable hex float tests.
5710 * doc/posix-functions/strtod.texi (strtod): Document what gnulib
5713 Document various strtod bugs, with some fixes.
5714 * doc/posix-functions/strtod.texi (strtod): Document bugs with
5715 "-0x", "inf", "nan", and hex constants.
5716 * doc/posix-functions/atof.texi (atof): Likewise.
5717 * modules/stdlib (Makefile.am): Support strtod.
5718 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
5719 * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
5720 detect additional strtod bugs.
5721 * lib/stdlib.in.h (rpl_strtod): Add declarations.
5722 * lib/strtod.c (strtod): Return -0.0 on negative underflow. Use
5723 bool where appropriate. Parse 'inf' and 'nan'.
5724 * tests/test-strtod.c: New file.
5725 * modules/strtod (Depends-on): Add stdbool, stdlib.
5726 (configure.ac): Turn on module indicator.
5727 * modules/strtod-tests: New module.
5729 2008-03-29 Eric Blake <ebb9@byu.net>
5732 * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
5733 * modules/ftell-tests (Depends-on): Add binary-io.
5734 * modules/ftello-tests (Depends-on): Likewise.
5735 * tests/test-ftell.c (main): Enhance test to cover behavior after
5736 ungetc. Enforce binary mode.
5737 * tests/test-ftello.c (main): Likewise.
5739 Pass test-freadseek on cygwin.
5740 * modules/freadseek (Depends-on): Use freadptr, not freadahead.
5741 * lib/freadseek.c (freadseek): Don't increment beyond bounds of
5744 * tests/test-fflush2.c (main): Fix typo.
5746 2008-03-29 Bruno Haible <bruno@clisp.org>
5748 * tests/test-fflush2.c (main): Temporarily disable the contents of
5750 * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
5751 Reported by Eric Blake.
5753 2008-03-28 Simon Josefsson <simon@josefsson.org>
5755 * lib/gc.h (enum Gc_hash): Add GC_SHA224.
5756 (GC_SHA224_DIGEST_SIZE): Add.
5758 * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
5759 (gc_hash_digest_length): Likewise.
5760 (gc_hash_buffer): Likewise.
5762 2008-03-25 Bruno Haible <bruno@clisp.org>
5764 * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
5765 detail which gettext release to use.
5766 Reported by Simon Josefsson.
5768 2008-03-26 Jim Meyering <meyering@redhat.com>
5770 gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
5771 * modules/gnumakefile (clean-GNUmakefile): Also, use
5772 test ... && ... || : syntax rather than if-then ... fi.
5774 gnumakefile: Don't double-quote-expand $(VPATH) value.
5775 * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
5777 2008-03-24 Eric Blake <ebb9@byu.net>
5779 Alter GNUmakefile to install into top directory.
5780 * modules/maintainer-makefile: Split, and add dependency...
5781 * modules/gnumakefile: to this new module.
5782 * build-aux/GNUmakefile: Move...
5783 * top/GNUmakefile: ...here.
5784 * build-aux/maint.mk: Move...
5785 * top/maint.mk: ...here.
5786 * MODULES.html.sh (Support for maintaining...): Document new
5789 2008-03-23 Bruno Haible <bruno@clisp.org>
5791 * gnulib-tool: New options --vc-files, --no-vc-files.
5792 (func_usage): Document them.
5793 (vc_files): New variable.
5794 (func_import): Consider vc_files.
5795 (func_create_testdir): Set vc_files to empty.
5796 Suggested by Jim Meyering and Karl Berry.
5798 2008-03-23 Bruno Haible <bruno@clisp.org>
5800 Fix regex compilation error on HP-UX 11.
5801 * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
5802 * modules/regex (Files): Add m4/mbstate_t.m4.
5803 Reported by Ton Voon <ton.voon@altinity.com>.
5805 2008-03-23 Bruno Haible <bruno@clisp.org>
5807 * doc/gnulib-tool.texi (gettextize and autopoint): New section.
5809 2008-03-23 Eric Blake <ebb9@byu.net>
5810 Bruno Haible <bruno@clisp.org>
5812 Install files from top/ in the destination directory.
5813 * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
5814 augmentation also for the files from top/.
5815 (func_import, func_create_testdir): Rewrite file names:
5816 top/filename -> filename.
5818 2008-03-23 Bruno Haible <bruno@clisp.org>
5820 Tweak "gnulib --version" output.
5821 * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
5823 2008-03-23 Bruno Haible <bruno@clisp.org>
5825 Tweak "gnulib --version" output.
5826 * gnulib-tool (func_version): Use date of last commit to ChangeLog,
5827 rather than contents of ChangeLog, when possible.
5829 2008-03-21 Eric Blake <ebb9@byu.net>
5831 More --version tweaks.
5832 * gnulib-tool (func_version): Obey GNU Coding Standards. Output
5833 date of last ChangeLog entry.
5835 2008-03-21 Jim Meyering <meyering@redhat.com>
5837 * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
5839 2008-03-20 Eric Blake <ebb9@byu.net>
5842 * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
5844 2008-03-20 Simon Josefsson <simon@josefsson.org>
5846 * build-aux/GNUmakefile: Make git-version-gen optional. Add
5847 _build-aux variable. Suggested by Eric Blake <ebb9@byu.net>.
5849 2008-03-20 Eric Blake <ebb9@byu.net>
5851 Sync GNUmakefile with coreutils.
5852 * build-aux/GNUmakefile (have-Makefile): Rename...
5853 (_have-Makefile): ...to this, for namespace consideration.
5854 (GNUmakefile.cfg): Include, if present.
5855 (_autoreconf): Define a default.
5856 (_is-dist-target): New rule for rebuilds to pick up intra-release
5858 (maint-cfg.mk): Rename...
5859 (cfg.mk): ...to this.
5861 2008-03-18 Jim Meyering <meyering@redhat.com>
5863 New script and module: mktempd
5864 * MODULES.html.sh (maint+release support): Add mktempd.
5865 * build-aux/mktempd: New file.
5866 * modules/mktempd: New file.
5868 2008-03-15 Jim Meyering <meyering@redhat.com>
5871 * lib/sha1.c, lib/md5.c: 63 != ~63.
5872 Reported by Andreas Schwab.
5874 sha1.c, md5.c: Hoist a redundant expression.
5875 * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
5876 "ctx->buflen" only once, before calling *_process_block.
5877 * lib/md5.c (md5_process_bytes): Likewise.
5879 2008-03-14 Eric Blake <ebb9@byu.net>
5881 Bump copyright year in files generated by gnulib-tool.
5882 * gnulib-tool (func_emit_copyright_notice): Extract copyright from
5883 gnulib-tool, rather than hard-coding it.
5885 Fix 'gnulib-tool --version' output to work with git.
5886 * gnulib-tool (func_gnulib_dir): New function, extracted from...
5888 (func_version): Use it to invoke git-version-gen, rather than
5889 relying on CVS keyword expansion. Modernize wording.
5890 (cvsdatestamp, last_checkin_date, version): Kill unused
5893 2008-03-12 Jim Meyering <meyering@redhat.com>
5895 Recognize optional cast of the argument to free.
5896 * build-aux/useless-if-before-free: Update regexps.
5898 * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
5900 2008-03-11 Bruno Haible <bruno@clisp.org>
5902 Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
5903 by a single package.
5904 * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
5905 (AC_LIB_LINKFLAGS_BODY): Use the information stored by
5906 AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
5907 Reported by Sam Steingold <sds@gnu.org>.
5909 2008-03-12 Sergey Poznyakoff <gray@gnu.org.ua>
5911 * build-aux/bootstrap (version_controlled_file): Adapt for SVN
5914 2008-03-11 Bruno Haible <bruno@clisp.org>
5916 Avoid conflicts between local macro definitions.
5917 * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
5918 AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
5920 2008-03-10 Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>
5921 Bruno Haible <bruno@clisp.org>
5923 Make va_copy work with some version of xlc on AIX 5.1.
5924 * lib/stdarg.in.h: New file.
5925 * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
5926 On AIX, use a <stdarg.h> file substitute.
5927 * modules/stdarg (Files): Add lib/stdarg.in.h.
5928 (Depends-on): Add include_next.
5929 (Makefile.am): Build a stdarg.h substitute if requested.
5930 * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
5932 2008-03-10 Bruno Haible <bruno@clisp.org>
5934 * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
5935 * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
5936 Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
5938 2008-03-10 Bruno Haible <bruno@clisp.org>
5940 * modules/stdlib (Depends-on): Add include_next, remove
5943 2008-03-09 Bruno Haible <bruno@clisp.org>
5945 * lib/freadahead.h (freadahead): Document more precisely.
5946 * lib/freadahead.c (freadahead): When an ungetc is in effect, return
5947 the sum of both buffer sizes.
5948 * tests/test-freadahead.c (main): Also test behaviour after ungetc.
5949 * NEWS: Document the change.
5951 2008-03-09 Bruno Haible <bruno@clisp.org>
5953 Extend freadptr to return also the buffer size.
5954 * lib/freadptr.h (freadptr): Add sizep argument.
5955 * lib/freadptr.c: Include freadptr.h, not freadahead.h.
5956 (freadptr): Add sizep argument. Determine buffer size like freadahead
5958 * tests/test-freadptr.c: Don't include freadahead.h.
5959 (main): Adapt for new calling convention of freadptr.
5960 * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
5961 * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
5962 * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
5963 tests/test-freadptr2.sh.
5964 (Depends): Remove freadahead.
5965 (TESTS): Add test-freadptr2.sh.
5966 (check_PROGRAMS): Add test-freadptr2.
5968 2008-03-09 Bruno Haible <bruno@clisp.org>
5970 * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
5971 Report and solution by Simon Josefsson.
5973 2008-03-06 Bruno Haible <bruno@clisp.org>
5975 Make fflush after ungetc work on BSD platforms.
5976 * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
5977 * tests/test-fflush2.c: New file.
5978 * tests/test-fflush2.sh: New file.
5979 * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
5980 tests/test-fflush2.c.
5981 (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
5982 * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
5984 2008-03-06 Eric Blake <ebb9@byu.net>
5986 Likewise for ftello.
5987 * modules/ftello (Dependencies): Add extensions.
5988 * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
5990 2008-03-06 Bruno Haible <bruno@clisp.org>
5992 * modules/fseeko (Dependencies): Add extensions.
5993 * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
5994 Needed on glibc systems.
5996 2008-03-06 Bruno Haible <bruno@clisp.org>
5998 * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
6000 Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
6002 2008-03-06 Bruno Haible <bruno@clisp.org>
6004 * users.txt: Add libgnupdf.
6006 2008-03-06 Thien-Thi Nguyen <ttn@gnuvola.org> (tiny change)
6008 * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
6009 (Header File Substitutes, Function Substitutes,
6010 Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
6011 (Build robot for gnulib): Fix typo.
6013 2008-03-06 Bruno Haible <bruno@clisp.org>
6015 * doc/gnulib-tool.texi (VCS Issues): Small updates.
6016 Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
6018 2008-03-06 Bruno Haible <bruno@clisp.org>
6020 * doc/func.texi: New file, extracted from doc/gnulib.texi.
6021 * doc/gnulib.texi: Include it.
6023 2008-03-06 Simon Josefsson <simon@josefsson.org>
6025 * modules/func (License): Change license to unlimited; there was
6026 no LGPL parts in the module anyway.
6028 2008-03-06 Simon Josefsson <simon@josefsson.org>
6030 * modules/__func__: Renamed to modules/func.
6031 * modules/__func__-tests: Renamed to modules/func-tests.
6032 * tests/test-__func__.c: Renamed to tests/test-func.c.
6033 * m4/__func__.m4: Renamed to m4/func.m4.
6034 * doc/gnulib.texi (__func__): Section renamed to func.
6035 Suggested by Eric Blake <ebb9@byu.net>.
6037 2008-03-06 Simon Josefsson <simon@josefsson.org>
6039 * doc/gnulib.texi (__func__): Use C99 terminology when talking
6040 about __func__. Make example self-contained. Suggested by Eric
6041 Blake <ebb9@byu.net>.
6043 * tests/test-__func__.c (main): Avoid extraneous () around __func.
6044 Suggested by Eric Blake <ebb9@byu.net>.
6046 2008-03-06 Simon Josefsson <simon@josefsson.org>
6048 * modules/__func__: New file.
6049 * modules/__func__-tests: New file.
6050 * tests/test-__func__.c: New file.
6051 * m4/__func__.m4: New file.
6052 * doc/gnulib.texi (__func__): Document __func__ module.
6054 2008-03-05 Simon Josefsson <simon@josefsson.org>
6056 * modules/byteswap (License): Re-license as LGPLv2+.
6058 2008-03-05 Simon Josefsson <simon@josefsson.org>
6060 * doc/Makefile: Add pdf target.
6062 2008-03-05 Simon Josefsson <simon@josefsson.org>
6064 * modules/inline (License): Use 'unlimited', since there are only
6065 *.m4 files in this module.
6067 2008-03-03 John E. Malmberg <wb8tyw@qsl.net> (tiny change)
6068 Bruno Haible <bruno@clisp.org>
6070 Add support for HP C 7.1 on OpenVMS 8.3.
6071 * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
6073 2008-03-03 John E. Malmberg <wb8tyw@qsl.net> (tiny change)
6075 Update VMS specifics.
6076 * lib/getopt.c [VMS]: Remove include of unixlib.h.
6078 2008-03-02 Jim Meyering <meyering@redhat.com>
6080 Remove the last dependency on the "free" module.
6081 * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
6082 Reported by Bob Proulx.
6084 * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
6086 Remove useless "if" tests before free. Deprecate "free" module.
6087 * doc/posix-functions/free.texi: Mention that this
6088 module is no longer useful.
6089 * modules/free (Notice): Say this module is obsolete.
6090 * modules/readutmp (Depends-on): Remove free.
6091 * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
6092 * lib/putenv.c (putenv): Likewise.
6093 * lib/gc-gnulib.c (gc_cipher_close): Likewise.
6094 * lib/getaddrinfo.c (freeaddrinfo): Likewise.
6095 * tests/test-c-strcasestr.c (main): Likewise.
6096 * tests/test-c-strstr.c (main): Likewise.
6097 * tests/test-mbscasestr1.c (main): Likewise.
6098 * tests/test-mbscasestr2.c (main): Likewise.
6099 * tests/test-mbsstr1.c (main): Likewise.
6100 * tests/test-mbsstr2.c (main): Likewise.
6101 * tests/test-memmem.c (main): Likewise.
6102 * tests/test-strcasestr.c (main): Likewise.
6103 * tests/test-striconv.c (main): Likewise.
6104 * tests/test-striconveh.c (main): Likewise.
6105 * tests/test-striconveha.c (main): Likewise.
6106 * tests/test-strstr.c (main): Likewise.
6108 * build-aux/git-version-gen: Adjust a comment and the Usage string.
6110 bootstrap: sync from coreutils again
6111 * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
6113 2008-03-01 Jim Meyering <meyering@redhat.com>
6115 bootstrap: sync from coreutils
6116 * build-aux/bootstrap (update_po_files): Copy a .po file into place
6117 also when the target doesn't exist.
6119 2008-03-01 Eric Blake <ebb9@byu.net>
6121 Fix bugs in last patch.
6122 * lib/memchr2.c (memchr2): Fix typo.
6123 * tests/test-memchr2.c: Test previous bug, and don't use GNU
6125 Reported by Bruce Korb.
6127 New module 'memchr2'.
6128 * modules/memchr2: New file.
6129 * modules/memchr2-tests: Likewise.
6130 * lib/memchr2.h: Likewise.
6131 * lib/memchr2.c: Likewise, based on memchr.c.
6132 * tests/test-memchr2.c: New test.
6133 * MODULES.html.sh (String handling): Add memchr2.
6135 2008-02-29 Bruno Haible <bruno@clisp.org>
6137 * modules/freadseek-tests: New file.
6138 * tests/test-freadseek.sh: New file.
6139 * tests/test-freadseek.c: New file.
6141 New module 'freadseek'.
6142 * modules/freadseek: New file.
6143 * lib/freadseek.h: New file.
6144 * lib/freadseek.c: New file.
6145 * MODULES.html.sh (File stream based Input/Output): Add freadseek.
6147 2008-02-29 Sergey Poznyakoff <gray@gnu.org.ua>
6149 * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
6152 * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
6153 program_invocation_name and program_invocation_short_name are
6156 2008-02-28 Bruno Haible <bruno@clisp.org>
6158 * tests/test-freadptr.c: Add a test for behaviour after ungetc.
6159 * tests/test-freadptr.sh: Also test non-seekable stdin.
6161 2008-02-28 Sergey Poznyakoff <gray@gnu.org.ua>
6163 * build-aux/bootstrap (source_base, m4_base)
6164 (doc_base, tests_base): New variables.
6165 (gnulib_tool_options): Do not hardcode base directories, use
6166 the above variables instead.
6168 2008-02-28 Atsushi SAKAI <sakaia@jp.fujitsu.com>
6170 * lib/xsize.h: Fix typo in comment: s/tupe/type/.
6172 2008-02-28 Bruno Haible <bruno@clisp.org>
6174 * modules/freadptr-tests: New file.
6175 * tests/test-freadptr.sh: New file.
6176 * tests/test-freadptr.c: New file.
6178 New module 'freadptr'.
6179 * modules/freadptr: New file.
6180 * lib/freadptr.h: New file.
6181 * lib/freadptr.c: New file.
6182 * MODULES.html.sh (File stream based Input/Output): Add freadptr.
6184 2008-02-26 Karl Berry <karl@freefriends.org>
6187 * libltdl/argz.c (argz_add, argz_count): New functions.
6188 * libltdl/argz.in.h: Declare them.
6189 Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
6191 2008-02-22 Bruno Haible <bruno@clisp.org>
6193 * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
6194 is a pointer type. Needed for HP-UX 10.
6195 * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
6196 * doc/posix-functions/gmtime_r.texi: Likewise.
6197 Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
6199 2008-02-24 Bruno Haible <bruno@clisp.org>
6201 * modules/environ-tests: New file.
6202 * tests/test-environ.c: New file.
6204 New module 'environ'.
6205 * modules/environ: New file.
6206 * lib/unistd.in.h (environ): New declaration.
6207 * m4/environ.m4: New file.
6208 (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
6210 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
6212 * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
6214 * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
6215 wrong claim that 'environ' is missing on some systems.
6216 * modules/execute (Depends-on): Add environ.
6217 * lib/execute.c (environ): Remove fallback declaration.
6218 * modules/pipe (Depends-on): Add environ.
6219 * lib/pipe.c (environ): Remove fallback declaration.
6220 * modules/setenv (Depends-on): Add environ.
6221 * lib/setenv.c (environ): Remove fallback declaration.
6222 * modules/unsetenv (Depends-on): Add environ.
6223 * lib/unsetenv.c (environ): Remove fallback declaration.
6224 * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
6226 (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
6227 (gl_PREREQ_UNSETENV): Likewise.
6229 2008-02-24 Bruno Haible <bruno@clisp.org>
6231 * doc/posix-functions/environ.texi: Document the MacOS X problem.
6233 2008-02-20 Bob Proulx <bob@proulx.com>
6235 Enable use of older two part flavor 'git describe'.
6236 * build-aux/git-version-gen: If using the older two part flavor of
6237 git version then recreate the third part now present in the
6238 newer three part flavor of git describe.
6240 2008-02-20 Martin Buchholz <martin@xemacs.org> (tiny change)
6242 * lib/fts.c (fts_build): Typo correction to comment.
6244 2008-02-17 Bruno Haible <bruno@clisp.org>
6246 * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
6247 generating no-op conflicts.
6249 2008-02-17 Bruno Haible <bruno@clisp.org>
6252 * lib/git-merge-changelog.c (main): Use the iterator to iterate through
6253 result_entries, rather than an index-based loop.
6255 2008-02-17 Bruno Haible <bruno@clisp.org>
6258 * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
6260 (entry_create): New function.
6261 (entry_hashcode): Use the cached hashcode if possible.
6262 (read_changelog_file, try_split_merged_entry): Use entry_create.
6264 2008-02-17 Bruno Haible <bruno@clisp.org>
6266 Speed up from O(n^2) to O(n) for long ChangeLog files.
6267 * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
6268 (read_changelog_file): Change implementation of entries_reversed list
6270 * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
6272 2008-02-17 Bruno Haible <bruno@clisp.org>
6274 New option --split-merged-entry.
6275 * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
6276 (find_paragraph_end, try_split_merged_entry): New functions.
6277 (long_options): Add option --split-merged-entry.
6278 (usage): Document option --split-merged-entry.
6279 (main): Implement option --split-merged-entry.
6280 Reported by Eric Blake.
6282 2008-02-17 Bruno Haible <bruno@clisp.org>
6284 * lib/git-merge-changelog.c: Include c-strstr.h.
6285 (main): Support the "git pull --rebase" situation.
6286 * modules/git-merge-changelog (Depends-on): Add c-strstr.
6287 Reported by Eric Blake.
6289 2008-02-16 Eric Blake <ebb9@byu.net>
6291 Avoid doubling \ in common case of "c-maybe" quoting style.
6292 * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
6293 eliding outer quotes.
6294 * lib/quotearg.h: Document this.
6295 * tests/test-quotearg.c (result_strings, inputs, results_g)
6296 (flag_results, locale_results): Test it by adding a new string to
6298 (compare_strings): Test new string.
6300 2008-02-13 Eric Blake <ebb9@byu.net>
6302 Avoid trigraph quoting in default output.
6303 * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
6304 * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
6305 unless explicitly requested.
6306 * tests/test-quotearg.c (flag_results, main): Add additional tests.
6308 2008-02-13 Lasse Collin <lasse.collin@tukaani.org>
6310 Don't rely on signed integer overflowing to negative value.
6311 * lib/getugroups.c (getugroups): Include <limits.h>.
6312 Instead, compare against INT_MAX, and increment only if the test passes.
6314 2008-02-13 Jim Meyering <meyering@redhat.com>
6315 and Eric Blake <ebb9@byu.net>
6317 Avoid shadowing warning and compile errors on Linux.
6318 * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
6319 forwarding macros on Linux.
6320 (dcgettext): Define a stub, for Linux.
6321 (results_g, main): Avoid warnings.
6323 2008-02-12 Eric Blake <ebb9@byu.net>
6325 Silence warning in last patch.
6326 * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
6328 Quotearg part 4: add tests, fix c-maybe colon quoting.
6329 * lib/quotearg.h: Improve documentation.
6330 * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
6331 escapes when adding outer quotes. When quoting trigraphs, use
6332 valid C notation. When quoting NUL, omit extra characters if next
6333 character is not digit. Alter prototype.
6334 (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
6336 * modules/quotearg-tests: New module.
6337 * tests/test-quotearg.c: New test.
6339 2008-02-07 Eric Blake <ebb9@byu.net>
6341 Quotearg part 3: add flag to control outer quote elision.
6342 * lib/quotearg.h (c_maybe_quoting_style): New style.
6343 (enum quoting_flags): Better documentation of flags.
6344 * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
6346 (quotearg_buffer_restyled): Handle new flag to elide outer
6349 Quotearg part 2: add flag that can control NUL elision.
6350 * lib/quotearg.h (set_quoting_flags): New prototype.
6351 * lib/quotearg.c (struct quoting_options): Add flag field.
6352 (set_quoting_flags): New function.
6353 (quotearg_buffer_restyled): Add flags parameter.
6354 (quotearg_alloc_mem): Set the flag if length cannot be returned.
6355 (quotearg_n_options): Set the flag, since length cannot be
6357 (quoting_options_from_style): Default flags correctly.
6359 Quotearg part 1: more wrappers, restore quotearg_char state.
6360 * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
6361 (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
6362 (quotearg_colon_mem): New wrappers.
6363 * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
6364 (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
6366 (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
6367 (quotearg_colon_mem): New functions.
6369 2008-02-11 Bruno Haible <bruno@clisp.org>
6371 * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
6372 library in the current directory: it does not work with parallel make.
6373 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
6375 2008-02-11 Bruno Haible <bruno@clisp.org>
6377 * .gitattributes: New file.
6379 2008-02-11 Jim Meyering <meyering@redhat.com>
6381 useless-if-before-free: Fix reversed exit values.
6382 * build-aux/useless-if-before-free: Use correct values
6383 for EXIT_MATCH and EXIT_NO_MATCH.
6385 * build-aux/useless-if-before-free: Close stdout carefully.
6387 2008-02-10 Bruno Haible <bruno@clisp.org>
6389 New module 'git-merge-changelog'.
6390 * modules/git-merge-changelog: New file.
6391 * lib/git-merge-changelog.c: New file.
6393 2008-02-10 Jim Meyering <meyering@redhat.com>
6395 useless-if-before-free: New option: --list (-l).
6397 useless-if-before-free: Don't exit immediately upon open failure.
6398 * build-aux/useless-if-before-free: Exit 2 for errors.
6399 Upon failure to open a file, don't exit immediately.
6400 Rather, just warn and continue with any remaining files.
6402 2008-02-10 Bruno Haible <bruno@clisp.org>
6404 New abstract list operation 'node_set_value'.
6405 * lib/gl_list.h (gl_list_node_set_value): New function.
6406 (struct gl_list_implementation): New field node_set_value.
6407 * lib/gl_list.c (gl_list_node_set_value): New function.
6408 * lib/gl_array_list.c (gl_array_node_set_value): New function.
6409 (gl_array_list_implementation): Update.
6410 * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
6411 (gl_carray_list_implementation): Update.
6412 * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
6413 * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
6414 * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
6415 * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
6416 * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
6417 * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
6418 * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
6420 * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
6421 * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
6422 (gl_sublist_list_implementation): Update.
6424 2008-02-10 Bruno Haible <bruno@clisp.org>
6426 * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
6427 Needed when ELEMENT is #defined to 'some_type *'.
6429 2008-02-10 Jim Meyering <meyering@redhat.com>
6431 New script and module: useless-if-before-free
6432 * MODULES.html.sh (maint+release support): Add useless-if-before-free.
6433 * build-aux/useless-if-before-free: New file.
6434 * modules/useless-if-before-free: New file.
6436 * build-aux/gitlog-to-changelog: Use committer date, not author date.
6438 xstrtol_error: Fix typo.
6439 * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
6440 s/exit_failure/exit_status/.
6442 2008-02-09 Jim Meyering <meyering@redhat.com>
6444 New script and module: gitlog-to-changelog
6445 * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
6446 * modules/gitlog-to-changelog: New file.
6447 * build-aux/gitlog-to-changelog: New file.
6449 2008-02-08 Jim Meyering <meyering@redhat.com>
6451 Avoid two "parameter unused" warnings.
6452 * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
6455 Use "git COMMAND", not "git-COMMAND".
6456 * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
6457 * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
6458 * build-aux/git-version-gen: Use "git status", not "git-status".
6460 2008-02-07 Bruno Haible <bruno@clisp.org>
6462 * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
6463 Avoids a crash on Windows Vista.
6464 Reported by Adam Strzelecki <ono@java.pl> via
6465 Simon Josefsson <simon@josefsson.org>.
6467 2008-02-06 Bruno Haible <bruno@clisp.org>
6469 Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
6470 * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
6471 * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
6472 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
6473 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
6474 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
6475 gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
6476 gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
6477 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
6478 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
6479 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
6480 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
6481 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
6482 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
6483 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
6484 * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
6486 * tests/test-snprintf-posix.h (test_function): Likewise.
6487 * tests/test-sprintf-posix.h (test_function): Likewise.
6488 * tests/test-vasprintf-posix.c (test_function): Likewise.
6489 * doc/posix-functions/fprintf.texi: Update.
6490 * doc/posix-functions/printf.texi: Update.
6491 * doc/posix-functions/snprintf.texi: Update.
6492 * doc/posix-functions/sprintf.texi: Update.
6493 * doc/posix-functions/vfprintf.texi: Update.
6494 * doc/posix-functions/vprintf.texi: Update.
6495 * doc/posix-functions/vsnprintf.texi: Update.
6496 * doc/posix-functions/vsprintf.texi: Update.
6497 Reported by Peter Fales <psfales@alcatel-lucent.com>.
6499 2008-02-06 Bruno Haible <bruno@clisp.org>
6501 Fix bug introduced on 2008-01-26.
6502 * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
6504 2008-02-06 Bruno Haible <bruno@clisp.org>
6506 Fix bug introduced on 2007-06-10.
6507 * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
6508 !NEED_PRINTF_FLAG_ZERO.
6510 2008-02-05 Peter O'Gorman <pogma@thewrittenword.com>
6512 getloadavg: use libperfstat on AIX5
6513 * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
6515 2008-02-03 Bruno Haible <bruno@clisp.org>
6517 * lib/diffseq.h: Add comments about required #includes.
6518 Reported by Michael Biggs <gnulib@doubleplum.net>.
6520 2008-02-01 Bruno Haible <bruno@clisp.org>
6522 * users.txt: Add gnuit.
6524 2008-01-31 Bruno Haible <bruno@clisp.org>
6526 * lib/md4.c (set_uint32): Mark as inline.
6527 * lib/md5.c (set_uint32): Likewise.
6528 * lib/sha1.c (set_uint32): Likewise.
6529 * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
6530 * m4/md5.m4 (gl_MD5): Likewise.
6531 * m4/sha1.m4 (gl_SHA1): Likewise.
6533 2008-01-31 Jim Meyering <meyering@redhat.com>
6535 Use "sizeof VAR", rather than a literal "4".
6536 * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
6537 * lib/md4.c (md4_read_ctx): Likewise.
6538 * lib/sha1.c (sha1_read_ctx): Likewise.
6540 2008-01-31 Simon Josefsson <simon@josefsson.org>
6542 * tests/test-sha1.c: New file, based on test-md5.c.
6544 * modules/crypto/sha1-tests: New file.
6546 2008-01-31 Simon Josefsson <simon@josefsson.org>
6548 * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
6550 2008-01-31 Jim Meyering <meyering@redhat.com>
6552 Prefer "sizeof v" over the equivalent "4".
6553 * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
6554 * lib/md5.c (set_uint32): Likewise.
6555 * lib/sha1.c (set_uint32): Likewise.
6557 2008-01-31 Simon Josefsson <simon@josefsson.org>
6559 * lib/sha1.c (set_uint32): Mark function as static.
6561 2008-01-31 Simon Josefsson <simon@josefsson.org>
6563 md2: clarify comments to say that alignment is not required.
6564 * lib/md2.h: Remove warning about alignment in comment.
6565 * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
6566 never been required.
6568 2008-01-31 Simon Josefsson <simon@josefsson.org>
6570 md4: adapt alignment constraint fix from sha1.
6571 * lib/md4.c (set_uint32): New function, from sha1.c
6572 (md4_read_ctx): Use it.
6573 (md4_finish_ctx): Doc fix.
6574 * lib/md4.h: Doc fix.
6576 2008-01-31 Simon Josefsson <simon@josefsson.org>
6578 md5: adapt alignment constraint fix from sha1.
6579 * lib/md5.c (set_uint32): New function, from sha1.c
6580 (md5_read_ctx): Use it.
6581 (md5_finish_ctx): Doc fix.
6582 * lib/md5.h: Doc fix.
6584 2008-01-30 Peter Palfrader <weasel@debian.org>
6586 sha1: remove the result buffer alignment constraint
6587 * lib/sha1.c (set_uint32): New function.
6588 (sha1_read_ctx): Rewrite to remove the result buffer alignment
6590 (sha1_finish_ctx): Remove comment warning about alignment constraint.
6591 * lib/sha1.h: Likewise.
6593 2008-01-30 Andreas Schwab <schwab@suse.de>
6594 Bruno Haible <bruno@clisp.org>
6596 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
6597 correct definition of LDBL_MIN_EXP.
6599 2008-01-30 Karl Berry <karl@gnu.org>
6601 * config/srclist-update: try to preserve x bit on updates.
6602 * config/srclistvars.sh: update for karl.
6604 2008-01-29 Jim Meyering <meyering@redhat.com>
6606 vasnprintf.c: Avoid warning about unused label
6607 * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
6608 "overflow" label definition and associated code with the
6609 same cpp condition that guards the sole use of that label.
6611 2008-01-26 Bruno Haible <bruno@clisp.org>
6613 * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
6614 gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
6615 * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
6616 * lib/isnanl-nolibm.h (isnanl): Likewise.
6617 Reported by Paul Eggert <eggert@cs.ucla.edu>.
6619 2008-01-26 Bruno Haible <bruno@clisp.org>
6621 * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
6622 * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
6624 2008-01-26 Bruno Haible <bruno@clisp.org>
6626 * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
6627 GCC >= 4.0 built-in.
6628 * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
6630 2008-01-26 Bruno Haible <bruno@clisp.org>
6632 Rename isnan, applicable to 'double' only, to isnand.
6633 * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
6634 (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
6635 (configure.ac): Update.
6636 (Include): Replace "isnan.h" with "isnand.h".
6637 * m4/isnand.m4: Renamed from m4/isnan.m4.
6638 (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
6639 HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
6641 * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
6642 instead of HAVE_ISNAN_IN_LIBC.
6643 (isnand): Renamed from isnan.
6644 * lib/isnand.c: New file.
6645 * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
6646 (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
6647 (Makefile.am): Update.
6648 * tests/test-isnand.c: Renamed from tests/test-isnan.c.
6649 Include isnand.h instead of isnan.h.
6650 (main): Test isnand instead of isnan.
6651 * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
6653 * modules/frexp (Depends-on): Likewise.
6654 * modules/frexp-tests (Depends-on): Likewise.
6655 * modules/frexp-nolibm (Depends-on): Likewise.
6656 * modules/frexp-nolibm-tests (Depends-on): Likewise.
6657 * modules/isfinite (Depends-on): Likewise.
6658 * modules/round-tests (Depends-on): Likewise.
6659 * modules/signbit (Depends-on): Likewise.
6660 * modules/signbit-tests (Depends-on): Likewise.
6661 * modules/snprintf-posix (Depends-on): Likewise.
6662 * modules/sprintf-posix (Depends-on): Likewise.
6663 * modules/trunc-tests (Depends-on): Likewise.
6664 * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
6665 * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
6666 * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
6667 * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
6668 * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
6669 * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
6670 * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
6671 * modules/vasnprintf-posix (Depends-on): Likewise.
6672 * modules/vasprintf-posix (Depends-on): Likewise.
6673 * modules/vfprintf-posix (Depends-on): Likewise.
6674 * modules/vsnprintf-posix (Depends-on): Likewise.
6675 * modules/vsprintf-posix (Depends-on): Likewise.
6676 * lib/frexp.c: Include isnand.h instead of isnan.h.
6677 (ISNAN): Set to isnand instead of isnan.
6678 * lib/isfinite.c: Include isnand.h instead of isnan.h.
6679 (gl_isfinited): Use isnand instead of isnan.
6680 * lib/signbitd.c: Include isnand.h instead of isnan.h.
6681 (gl_signbitd): Use isnand instead of isnan.
6682 * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
6683 (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
6684 * tests/test-frexp.c: Include isnand.h instead of isnan.h.
6685 (main): Use isnand instead of isnan.
6686 * tests/test-round1.c: Include isnand.h.
6687 (main): Use isnand instead of isnan.
6688 * tests/test-round2.c: Include isnand.h instead of isnan.h.
6689 (ISNAN): Set to isnand instead of isnan.
6690 * tests/test-trunc1.c: Include isnand.h.
6691 (main): Use isnand instead of isnan.
6692 * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
6693 (equal): Use isnand instead of isnan.
6694 * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
6696 * NEWS: Mention the change.
6698 2008-01-25 Paul Eggert <eggert@cs.ucla.edu>
6699 Bruno Haible <bruno@clisp.org>
6701 * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
6702 the GCC builtins for signbits are present and set
6703 REPLACE_SIGNBIT_USING_GCC if so.
6704 * lib/math.in.h (signbit): Define using GCC builtins if
6705 REPLACE_SIGNBIT_USING_GCC is set.
6706 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
6707 REPLACE_SIGNBIT_USING_GCC.
6708 * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
6710 2008-01-25 Jim Meyering <meyering@redhat.com>
6712 Prefer <config.h> over "config.h". See autoconf doc for explanation.
6713 * lib/poll.c: Include <config.h>, not "config.h".
6714 * tests/test-getaddrinfo.c: Likewise.
6716 2008-01-25 Simon Josefsson <simon@josefsson.org>
6718 * modules/sockets-tests: New file.
6720 2008-01-24 Simon Josefsson <simon@josefsson.org>
6722 * modules/sockets: New module, can be used to call WSA_Startup and
6723 WSA_Cleanup when needed.
6725 * lib/sockets.h, lib/sockets.c: New files.
6727 * m4/sockets.m4: New file.
6729 * tests/test-sockets.c: New file.
6731 2008-01-19 Bruno Haible <bruno@clisp.org>
6733 * doc/posix-headers: Renamed from doc/headers.
6734 * doc/posix-functions: Renamed from doc/functions.
6735 * doc/gnulib.texi: Update.
6737 2008-01-19 Bruno Haible <bruno@clisp.org>
6739 * doc/glibc-functions/strcasestr.texi: Include contents of
6740 doc/functions/strcasestr.texi, fixing the list of platforms.
6741 * doc/functions/strcasestr.texi: Remove file.
6743 2008-01-19 Bruno Haible <bruno@clisp.org>
6745 * doc/glibc-functions/memmem.texi: Include contents of
6746 doc/functions/memmem.texi.
6747 * doc/functions/memmem.texi: Remove file.
6749 2008-01-18 Bruno Haible <bruno@clisp.org>
6751 * doc/glibc-functions/*.texi: New files.
6752 * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
6753 to use the new files.
6755 2008-01-17 Bruno Haible <bruno@clisp.org>
6757 * tests/test-gethostname.c (main): Fix printf statement.
6759 2008-01-17 Simon Josefsson <simon@josefsson.org>
6761 * modules/gethostname-tests: New file.
6763 * tests/test-gethostname.c: New file.
6765 2008-01-17 Simon Josefsson <simon@josefsson.org>
6767 * lib/gethostname.c: Include string.h unconditionally, strncpy is
6768 used by the UNAME case. Reported by Bruno Haible
6771 2008-01-17 Eric Blake <ebb9@byu.net>
6773 Convert c-strcasestr to be more efficient.
6774 * modules/c-strcasestr (Files): Use Two-Way, not KMP.
6775 (Depends-on): Add c-strcase, remove malloca, strnlen.
6776 * tests/test-c-strcasestr.c (main): Enhance test.
6777 * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
6779 2007-01-16 Paolo Bonzini <bonzini@gnu.org>
6781 * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
6782 Use it in creating po/Makevars.
6784 2008-01-15 Simon Josefsson <simon@josefsson.org>
6786 * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
6787 Applications that requires it should initialize libgcrypt
6790 2008-01-16 Simon Josefsson <simon@josefsson.org>
6792 * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
6794 2008-01-15 Paul Eggert <eggert@cs.ucla.edu>
6796 Fix problem with getdate on mingw32 reported by Simon Josefsson
6797 in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
6798 * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
6799 tzname", when deciding whether to declare tzname.
6800 * lib/strftime.c (tzname): Likewise.
6802 2008-01-15 Bruno Haible <bruno@clisp.org>
6804 Work around a MacOS X 10.5 bug in frexpl().
6805 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
6806 * doc/functions/frexpl.texi: Document the bug.
6807 Reported by Elias Pipping <pipping@gentoo.org>.
6809 2008-01-14 Eric Blake <ebb9@byu.net>
6811 Touch up previous patch.
6812 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
6813 * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
6815 Convert strcasestr module to use Two-Way algorithm.
6816 * modules/strcasestr-simple: New module, based on the old
6817 strcasestr, but with Two-Way rather than KMP.
6818 * modules/strcasestr (Depends-on): Change to strcasestr-simple.
6819 * lib/string.in.h (rpl_strcasestr): Declare.
6820 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
6822 * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
6823 * modules/string (Makefile.am): Support strcasestr.
6824 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
6825 * modules/strcasestr-tests (Depends-on): Check for alarm.
6826 * tests/test-strcasestr.c: Augment test.
6827 * lib/str-two-way.h: Clean up stray macro.
6828 * NEWS: Document new module.
6829 * MODULES.html.sh (string handling): Likewise.
6830 * doc/functions/strcasestr.texi: New file.
6831 * doc/gnulib.texi (Function Substitutes): New node. Move memmem
6832 here, since it is not a POSIX function.
6834 2008-01-14 Colin Watson <cjwatson@debian.org>
6835 Bruno Haible <bruno@clisp.org>
6837 * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
6838 works fine; if not, set REPLACE_STRSIGNAL.
6839 (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
6840 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
6842 * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
6843 * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
6844 * tests/test-strsignal.c (main): Check out-of-range signal numbers.
6846 2008-01-14 Bruno Haible <bruno@clisp.org>
6848 * modules/strsignal (Include): Change to <string.h>.
6850 2008-01-14 Colin Watson <cjwatson@debian.org>
6852 * modules/argp (Notice): Add a notice recommending to change
6854 (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
6856 2008-01-13 Colin Watson <cjwatson@debian.org>
6858 * modules/strsignal-tests: New file.
6859 * tests/test-strsignal.c: New file.
6861 * lib/strsignal.c: New file, from glibc with modifications.
6862 * lib/siglist.h: New file, from glibc with modifications.
6863 * lib/string.in.h (strsignal): New declaration.
6864 * m4/strsignal.m4: New file.
6865 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
6866 GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
6867 * modules/strsignal: New file.
6868 * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
6869 HAVE_DECL_STRSIGNAL.
6871 2008-01-13 Bruno Haible <bruno@clisp.org>
6873 * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
6874 locale encoding is not ASCII. Needed for OpenBSD 4.0.
6875 * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
6876 * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
6878 2008-01-13 Bruno Haible <bruno@clisp.org>
6880 * lib/argp-fmtstream.h (__attribute__): Don't redefine if
6881 __STRICT_ANSI__ is set: it's not needed by any version of gcc.
6882 * lib/argp.h (__attribute__): Likewise.
6883 * lib/c-stack.c (__attribute__): Likewise.
6884 * lib/error.h (__attribute__): Likewise.
6885 * lib/fts.c (__attribute__): Likewise.
6886 * lib/openat.h (__attribute__): Likewise.
6887 * lib/stdio.in.h (__attribute__): Likewise.
6888 * lib/string.in.h (__attribute__): Likewise.
6889 * lib/utimens.c (__attribute__): Likewise.
6890 * lib/vasnprintf.h (__attribute__): Likewise.
6891 * lib/xalloc.h (__attribute__): Likewise.
6892 * lib/xprintf.h (__attribute__): Likewise.
6893 * lib/xstrtol.h (__attribute__): Likewise.
6894 * lib/xvasprintf.h (__attribute__): Likewise.
6896 2008-01-12 Bruno Haible <bruno@clisp.org>
6898 * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
6899 * doc/glibc-headers/a.out.texi: New file.
6900 * doc/glibc-headers/aliases.texi: New file.
6901 * doc/glibc-headers/alloca.texi: New file.
6902 * doc/glibc-headers/ar.texi: New file.
6903 * doc/glibc-headers/argp.texi: New file.
6904 * doc/glibc-headers/argz.texi: New file.
6905 * doc/glibc-headers/byteswap.texi: New file.
6906 * doc/glibc-headers/crypt.texi: New file.
6907 * doc/glibc-headers/endian.texi: New file.
6908 * doc/glibc-headers/envz.texi: New file.
6909 * doc/glibc-headers/err.texi: New file.
6910 * doc/glibc-headers/error.texi: New file.
6911 * doc/glibc-headers/execinfo.texi: New file.
6912 * doc/glibc-headers/fpu_control.texi: New file.
6913 * doc/glibc-headers/fstab.texi: New file.
6914 * doc/glibc-headers/fts.texi: New file.
6915 * doc/glibc-headers/getopt.texi: New file.
6916 * doc/glibc-headers/ieee754.texi: New file.
6917 * doc/glibc-headers/ifaddrs.texi: New file.
6918 * doc/glibc-headers/libintl.texi: New file.
6919 * doc/glibc-headers/mcheck.texi: New file.
6920 * doc/glibc-headers/mntent.texi: New file.
6921 * doc/glibc-headers/obstack.texi: New file.
6922 * doc/glibc-headers/paths.texi: New file.
6923 * doc/glibc-headers/printf.texi: New file.
6924 * doc/glibc-headers/pty.texi: New file.
6925 * doc/glibc-headers/resolv.texi: New file.
6926 * doc/glibc-headers/shadow.texi: New file.
6927 * doc/glibc-headers/sysexits.texi: New file.
6928 * doc/glibc-headers/ttyent.texi: New file.
6930 2008-01-12 Jim Meyering <meyering@redhat.com>
6932 announce-gen: emit Gnulib's git-based version string.
6933 * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
6934 New option --gnulib-version=V, where V is expected to be
6935 the output of running git describe in the gnulib directory.
6936 (get_tool_versions): Request feedback on xdelta. I suspect it's
6937 not useful, and plan to stop publishing an xdelta file with each
6940 * build-aux/announce-gen: Also check for lzma-compressed files.
6942 2008-01-11 Bruno Haible <bruno@clisp.org>
6944 * tests/test-memmem.c (main): Increase maximum allowed time.
6945 * tests/test-strstr.c (main): Likewise.
6947 2008-01-11 Bruno Haible <bruno@clisp.org>
6949 * doc/functions/memmem.texi: Add more precisions about platforms.
6950 * doc/functions/strstr.texi: Likewise.
6952 2008-01-10 Eric Blake <ebb9@byu.net>
6954 * m4/strstr.m4: Delete cruft from copy-n-paste.
6955 Reported by Bruno Haible.
6957 2008-01-10 Bruno Haible <bruno@clisp.org>
6959 Make c-strstr rely on strstr.
6960 * lib/c-strstr.c: Don't include str-kmp.h.
6961 (c_strstr): Define in terms of strstr.
6962 * modules/c-strstr (Files): Remove lib/str-kmp.h.
6963 (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
6965 2008-01-10 Bruno Haible <bruno@clisp.org>
6967 * doc/gnulib.texi (String Functions in C Locale): New section.
6968 * doc/c-ctype.texi: New file.
6969 * doc/c-strcase.texi: New file.
6970 * doc/c-strcaseeq.texi: New file.
6971 * doc/c-strcasestr.texi: New file.
6972 * doc/c-strstr.texi: New file.
6973 * doc/c-strtod.texi: New file.
6974 * doc/c-strtold.texi: New file.
6976 2008-01-10 Eric Blake <ebb9@byu.net>
6978 * lib/relocatable.h: Fix a comment.
6980 2008-01-10 Eric Blake <ebb9@byu.net>
6982 Share two-way algorithm.
6983 * lib/str-two-way.h: New file, merged from...
6984 * lib/memmem.c: ...here...
6985 * lib/strstr.c: ...and here.
6986 * modules/memmem (Files): Use it.
6987 * modules/strstr (Files): Likewise.
6989 Avoid quadratic strstr implementations.
6990 * lib/strstr.c: New file.
6991 * m4/strstr.m4: Likewise.
6992 * modules/strstr: Likewise.
6993 * modules/strstr-tests: Likewise.
6994 * tests/test-strstr.c: Likewise.
6995 * lib/string.in.h (rpl_strstr): Declare.
6996 (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
6997 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
6998 * modules/string (Makefile.am): Likewise.
6999 * MODULES.html.sh (string handling): Mention new module.
7000 * doc/functions/strstr.texi (strstr): Document the bug.
7002 2008-01-10 Bruno Haible <bruno@clisp.org>
7004 * lib/relocatable.h (relocate): State whether result is freshly
7006 * lib/relocatable.c (relocate): Return a freshly allocated string
7007 instead of a pointer to a privately held string.
7008 Reported by Sylvain Beucler <beuc@gnu.org>.
7010 2008-01-10 Colin Watson <cjwatson@debian.org>
7012 * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
7015 2008-01-09 Bruno Haible <bruno@clisp.org>
7017 * doc/functions/memmem.texi: Use the same structure as snprintf.texi
7019 * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
7020 if it's only a guess.
7021 * modules/memmem: Simplify by depending on memmem-simple.
7023 2008-01-09 Bruno Haible <bruno@clisp.org>
7025 Work around OpenBSD 4.0 tdelete() bug.
7026 * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
7027 * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
7028 macros and don't redefine the enum values.
7029 * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
7030 * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
7031 * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
7033 2008-01-09 Bruno Haible <bruno@clisp.org>
7035 * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
7036 (main): Don't perform the tests if setlocale did not install a UTF-8
7037 locale. Needed on OpenBSD 4.0.
7038 * modules/wcwidth-tests (Depends-on): Add localcharset.
7040 2008-01-09 Paul Eggert <eggert@cs.ucla.edu>
7042 gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
7043 See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
7044 * NEWS: announce this.
7045 * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
7047 2008-01-09 Simon Josefsson <simon@josefsson.org>
7048 and Eric Blake <ebb9@byu.net>
7050 Add memmem-simple module.
7051 * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
7052 (gl_FUNC_MEMMEM): Separate performance from presence checks.
7053 * modules/memmem-simple: New file.
7054 * modules/memmem (Description): Tweak.
7055 * MODULES.html.sh (string handling): Mention new module.
7056 * doc/functions/memmem.texi (memmem): Distinguish which flaws are
7057 addressed by memmem-simple.
7058 * NEWS: Document the difference.
7060 2008-01-09 Eric Blake <ebb9@byu.net>
7062 Give gcc some memmem optimization hints.
7063 * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
7064 (strcasestr): Declare as pure.
7065 * modules/memmem (Maintainer): Claim my implementation.
7067 2008-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7069 Support AIX 6.1 and higher.
7070 * build-aux/config.libpath: Likewise.
7071 * build-aux/config.rpath: Likewise.
7073 2008-01-08 Jim Meyering <meyering@redhat.com>
7074 Bruno Haible <bruno@clisp.org>
7076 * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
7077 on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
7078 Reported by Peter Fales in
7079 <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
7081 2008-01-08 Bruno Haible <bruno@clisp.org>
7083 * modules/unictype/category-of (Depends-on): Add
7084 unictype/category-none.
7085 * modules/unictype/category-and-tests (Depends-on): Add
7086 unictype/category-{L,N,Lu,Nd}.
7087 * modules/unictype/category-and-not-tests (Depends-on): Likewise.
7088 * modules/unictype/category-or-tests (Depends-on): Add
7089 unictype/category-{L,N}.
7090 * modules/unictype/category-name-tests (Depends-on): Add
7091 unictype/category-{Z,Nl}.
7092 Reported by Simon Josefsson.
7094 2008-01-08 Bruno Haible <bruno@clisp.org>
7096 * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
7098 * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
7099 * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
7100 Reported by Peter Miller <millerp@canb.auug.org.au>.
7102 2008-01-08 Eric Blake <ebb9@byu.net>
7104 Rewrite memmem to guarantee linear complexity without malloc.
7105 * lib/memmem.c (memmem): Use Two-Way rather than
7106 Knuth-Morris-Pratt, to allow O(1) space usage.
7107 (critical_factorization, two_way_short_needle)
7108 (two_way_long_needle): New functions.
7109 (knuth_morris_pratt): Delete.
7110 * modules/memmem (Depends-on): No longer need malloca or stdbool.
7112 * tests/test-memmem.c (main): Add tests for periodic needle and
7113 sublinear performance.
7114 * doc/functions/memmem.texi (memmem): Document other deficiencies
7115 in cygwin and older glibc.
7117 2008-01-08 Bruno Haible <bruno@clisp.org>
7119 * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
7122 2008-01-08 Mike Frysinger <vapier@gentoo.org>
7124 Add a configure time option: --disable-acl.
7125 * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
7128 2008-01-06 Simon Josefsson <simon@josefsson.org>
7130 * tests/test-localename.c: Don't include obsolete "setenv.h".
7132 * modules/localename-tests (Depends-on): Need unsetenv.
7134 2008-01-08 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7136 * DEPENDENCIES: Require Texinfo version 4.6 or newer.
7138 2008-01-06 Colin Watson <cjwatson@debian.org>
7140 * users.txt: Add man-db.
7142 2008-01-07 Bruno Haible <bruno@clisp.org>
7144 * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
7145 previous section name.
7147 2008-01-07 Bruno Haible <bruno@clisp.org>
7149 * lib/progname.c (set_program_name): Don't strip off a leading
7150 "lt-" prefix outside a .libs directory.
7151 Suggested by Paul Eggert.
7153 2008-01-01 Sylvain Beucler <beuc@gnu.org>
7154 Bruno Haible <bruno@clisp.org>
7156 Improve memory cleanup in 'relocatable' module.
7157 * lib/relocatable.h (compute_curr_prefix): Change return type to
7159 * lib/relocatable.c (compute_curr_prefix): Change return type to
7160 'char *'. Free curr_installdir after use.
7161 (relocate): Free curr_prefix_better after use.
7162 * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
7164 2008-01-01 Bruno Haible <bruno@clisp.org>
7166 * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
7167 failure on older glibc systems.
7168 Reported by Peter Fales <psfales@alcatel-lucent.com>.
7170 2008-01-05 Eric Blake <ebb9@byu.net>
7172 Avoid quadratic system memmem.
7173 * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
7174 Reported by Ralf Wildenhues.
7176 Fix memmem test for mingw.
7177 * modules/memmem-tests (configure.ac): Check for alarm.
7178 * tests/test-memmem.c (main): Avoid alarm on platforms that lack
7180 * doc/functions/memmem.texi: New file.
7181 * doc/gnulib.texi (Function Substitutes): Add memmem.
7182 Reported by Bruno Haible.
7184 2008-01-04 Bruno Haible <bruno@clisp.org>
7186 * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
7187 Require gl_HEADER_STRINGS_H_DEFAULTS, not
7188 gl_HEADER_STRING_H_DEFAULTS.
7190 2008-01-04 Eric Blake <ebb9@byu.net>
7192 Shorten duration of memmem test.
7193 * tests/test-memmem.c (main): Use alarm to declare failure if test
7195 Reported by Ralf Wildenhues.
7197 2007-12-21 Simon Josefsson <simon@josefsson.org>
7199 * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
7200 string, needed by strerror.
7202 2008-01-03 Colin Watson <cjwatson@debian.org>
7203 Bruno Haible <bruno@clisp.org>
7205 * doc/gnulib-tool.texi (Localization): New section.
7207 2008-01-02 Bruno Haible <bruno@clisp.org>
7209 * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
7210 variables to 'unsigned char *' type.
7211 Reported by Paul Eggert.
7213 2008-01-02 Jim Meyering <jim@meyering.net>
7215 * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
7217 2007-12-31 Jim Meyering <jim@meyering.net>
7219 Avoid use of private FTS type name.
7220 * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
7222 2007-12-30 Karl Berry <karl@gnu.org>
7224 * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
7225 work around defect in Texinfo and/or the standalone Info browser.
7227 2007-12-30 Bruno Haible <bruno@clisp.org>
7229 Unify 5 copies of the KMP code.
7230 * lib/str-kmp.h: New file.
7231 * lib/c-strcasestr.c: Include str-kmp.h.
7232 (knuth_morris_pratt): Remove function.
7233 (c_strcasestr): Update.
7234 * lib/c-strstr.c: Include str-kmp.h.
7235 (knuth_morris_pratt): Remove function.
7236 (c_strcasestr): Update.
7237 * lib/mbscasestr.c: Include str-kmp.h.
7238 (knuth_morris_pratt_unibyte): Remove function.
7239 * lib/mbsstr.c: Include str-kmp.h.
7240 (knuth_morris_pratt_unibyte): Remove function.
7241 * lib/strcasestr.c: Include str-kmp.h.
7242 (knuth_morris_pratt): Remove function.
7243 (strcasestr): Update.
7244 * modules/c-strcasestr (Files): Add lib/str-kmp.h.
7245 * modules/c-strstr (Files): Likewise.
7246 * modules/mbscasestr (Files): Likewise.
7247 * modules/mbsstr (Files): Likewise.
7248 * modules/strcasestr (Files): Likewise.
7249 Suggested by Paul Eggert.
7251 2007-12-30 Bruno Haible <bruno@clisp.org>
7253 * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
7256 2007-12-30 Bruno Haible <bruno@clisp.org>
7258 * lib/xmalloca.h: Include xalloc.h.
7259 (xnmalloca): New macro.
7261 2007-12-30 Bruno Haible <bruno@clisp.org>
7263 * lib/malloca.h (nmalloca): New macro.
7264 * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
7265 * lib/c-strstr.c (knuth_morris_pratt): Likewise.
7266 * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
7267 knuth_morris_pratt_multibyte): Likewise.
7268 * lib/mbsstr.c (knuth_morris_pratt_unibyte,
7269 knuth_morris_pratt_multibyte): Likewise.
7270 * lib/memmem.c (knuth_morris_pratt): Likewise.
7271 * lib/strcasestr.c (knuth_morris_pratt): Likewise.
7273 2007-12-25 Bruno Haible <bruno@clisp.org>
7275 Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
7276 * lib/glob.c: Don't include openat.h.
7277 (link_exists2_p): Add back the code that deals with the
7278 !GLOB_ALTDIRFUNC case.
7279 (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
7280 let it do the filename concatenation.
7281 * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
7282 * modules/glob (Depends-on): Remove openat.
7284 2007-12-31 Bruno Haible <bruno@clisp.org>
7286 * modules/dirfd (License): Change to LGPLv2+.
7287 Approved by Jim Meyering.
7289 2007-12-29 Paul Eggert <eggert@cs.ucla.edu>
7291 * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
7292 when multiplying M by sizeof (size_t).
7294 2007-12-10 Martin Lambers <marlam@marlam.de>
7296 Override getpagesize on mingw.
7297 * lib/getpagesize.c: New file.
7298 * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
7299 * modules/getpagesize (Files): Add lib/getpagesize.c.
7300 * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
7301 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
7302 REPLACE_GETPAGESIZE.
7303 * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
7305 2007-12-25 Bruno Haible <bruno@clisp.org>
7307 * modules/localcharset (Notice): New field.
7308 (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
7309 Suggested by Ben Pfaff <blp@cs.stanford.edu>.
7311 2007-12-25 Paul Eggert <eggert@cs.ucla.edu>
7312 Bruno Haible <bruno@clisp.org>
7314 Avoid using the syntax symbol() in formatted documentation.
7315 * MODULES.html.sh (func_module): When replacing symbol() with a
7316 hyperlink, remove the parentheses. Show an error if some remain.
7317 Recognize and render the '...' syntax.
7318 * doc/alloca-opt.texi: Remove parentheses from symbol reference.
7319 Rework. Add paragraph about GCC's inlining.
7320 * doc/alloca.texi: Likewise.
7321 * doc/error.texi: Remove parentheses from symbol reference.
7322 * doc/gnulib-intro.texi: Likewise.
7323 * doc/gnulib.texi (alloca, alloca-opt): New nodes.
7324 * modules/fnmatch (Description): Reword to say "the ... function".
7325 * modules/full-read (Description): Likewise.
7326 * modules/full-write (Description): Likewise.
7327 * modules/safe-read (Description): Likewise.
7328 * modules/safe-write (Description): Likewise.
7329 * modules/strchrnul (Description): Likewise.
7330 * modules/trim (Description): Likewise.
7331 * modules/error (Description): Remove parentheses from symbol
7333 * modules/verror (Description): Likewise.
7334 Reported by Karl Berry.
7336 2007-12-25 Bruno Haible <bruno@clisp.org>
7338 Fixup after 2007-10-16 commit.
7339 * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
7341 2007-12-24 Bruno Haible <bruno@clisp.org>
7343 Make --enable-relocatable work with DESTDIR.
7344 * build-aux/install-reloc: Accept another argument 'destdir'. Use it
7345 to compute installdir from destprog.
7346 * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
7347 also set the RELOC_DESTDIR variable.
7348 Reported by Левашев Иван <octagram@bluebottle.com>.
7350 2007-12-24 Bruno Haible <bruno@clisp.org>
7352 Fix link error due to xalloc_die().
7353 * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
7355 * lib/relocwrapper.c: Update comments.
7356 * build-aux/install-reloc: Remove xreadlink.c from file list.
7357 * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
7359 Reported by Левашев Иван <octagram@bluebottle.com>.
7361 2007-12-24 Bruno Haible <bruno@clisp.org>
7363 Split setenv module into setenv and unsetenv. Get rid of setenv.h.
7364 * lib/setenv.h: Remove file.
7365 * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
7367 * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
7368 (Depends-on): Add stdlib.
7369 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
7371 (Include): Replace setenv.h with <stdlib.h>.
7372 * modules/unsetenv: New file.
7373 * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
7374 * lib/unsetenv.c: Include <stdlib.h> first.
7375 * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
7376 gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
7377 (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
7378 HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
7379 * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
7380 HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
7381 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
7382 HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
7383 * doc/functions/unsetenv.texi: Update.
7384 * modules/xsetenv (Depends-on): Add unsetenv.
7385 * modules/getdate (Depends-on): Likewise.
7386 * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
7387 * lib/xsetenv.c: Don't include setenv.h.
7388 * lib/getdate.y: Likewise.
7389 * lib/relocwrapper.c: Likewise.
7390 * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
7391 (Depends-on): Add stdlib.
7392 * NEWS: Mention the changes.
7393 Reported by Левашев Иван <octagram@bluebottle.com>.
7395 2007-12-23 Bruno Haible <bruno@clisp.org>
7397 * lib/memmem.c (memmem): Use lowercase variable names. Tab
7400 2007-12-23 Bruno Haible <bruno@clisp.org>
7402 * lib/c-strcasestr.c: Add more comments.
7403 * lib/c-strstr.c: Likewise.
7404 * lib/mbscasestr.c: Likewise.
7405 * lib/mbsstr.c: Likewise.
7406 * lib/strcasestr.c: Likewise.
7407 * lib/memmem.c: Likewise.
7409 2007-12-23 Bruno Haible <bruno@clisp.org>
7411 * tests/test-memmem.c: Include <string.h> first.
7413 2007-12-22 Bruno Haible <bruno@clisp.org>
7415 * gnulib-tool (func_create_testdir): Change $auxdir while generating
7416 the contents of $testsbase.
7417 Reported by Ralf Wildenhues.
7419 2007-12-22 Bruno Haible <bruno@clisp.org>
7421 * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
7422 two variables local_ldadd_before, local_ldadd_last.
7424 2007-12-20 Eric Blake <ebb9@byu.net>
7426 Work around circular library issue when cross-compiling.
7427 * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
7428 that progname.o does not need to pull in rpl_memcmp.
7430 2007-12-19 Eric Blake <ebb9@byu.net>
7432 Fix memmem to avoid O(n^2) worst-case complexity.
7433 * lib/memmem.c (knuth_morris_pratt): New function.
7434 (memmem): Use it if first few naive iterations fail.
7435 * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
7436 * modules/memcmp (License): Set to LGPLv2+, not LGPL.
7437 * modules/memchr (License): Likewise.
7438 * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
7440 * tests/test-memmem.c: Rewrite, borrowing ideas from
7441 test-mbsstr1.c; the old version wouldn't even compile!
7442 * modules/memmem-tests: New file.
7443 * lib/string.in.h (rpl_memmem): Add declaration.
7444 * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
7445 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
7448 2007-12-18 Paul Eggert <eggert@cs.ucla.edu>
7450 Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
7451 * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
7452 before any system include files, and undef after them all. This
7453 should fix a problem on VMS reported by John E. Malmberg in
7454 <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
7456 2007-12-17 Eric Blake <ebb9@byu.net>
7458 Revert addition of verify, for BSD/OS.
7459 * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
7460 can't handle large files, for the sake of obsolete platforms.
7461 * modules/fseeko (Depends-on): Remove verify.
7462 * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
7463 * doc/functions/ftello.texi (ftello): Likewise.
7464 * doc/functions/fgetpos.texi (fgetpos): Likewise.
7465 Reported by Larry Jones.
7467 2007-12-17 Petr Salinger <Petr.Salinger@seznam.cz>
7469 getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
7470 * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
7472 2007-12-17 Jim Meyering <meyering@redhat.com>
7474 Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
7475 which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
7476 * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
7477 * modules/getcwd (Depends-on): Add openat.
7478 Reported by Petr Salinger.
7480 2007-12-17 Bruno Haible <bruno@clisp.org>
7482 * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
7483 avoid a segmentation fault of the configure test on x86_64 systems.
7485 2007-12-15 Jim Meyering <meyering@redhat.com>
7487 * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
7489 2007-12-13 Eric Blake <ebb9@byu.net>
7492 * tests/test-fseek.c (main): Also test ungetc handling.
7493 * tests/test-fseeko.c (main): Likewise.
7494 * modules/fseeko (Depends-on): Add verify.
7495 * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
7497 Reported by Larry Jones.
7499 Fix fseeko on mingw.
7500 * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
7503 Beef up fseek tests.
7504 * tests/test-fseek.c (main): Also test eof handling.
7505 * tests/test-fseeko.c (main): Likewise.
7506 Reported by Larry Jones.
7508 2007-12-13 Larry Jones <lawrence.jones@siemens.com> (tiny change)
7510 Fix fseeko on BSD-based platforms.
7511 * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
7514 2007-12-12 Eric Blake <ebb9@byu.net>
7516 Allow circular dependency of separate libtests.a
7517 * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
7520 2007-12-11 Eric Blake <ebb9@byu.net>
7522 Fix bug with -0.0L in previous patch.
7523 * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
7524 * tests/test-isnan.c (main): Also test on zeroes.
7525 * tests/test-isnanf.c (main): Likewise.
7526 * tests/test-isnanl.h (main): Likewise.
7528 Detect pseudo-denormals on x86 even when cross-compiling.
7529 * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
7530 && USE_LONG_DOUBLE && x86]: Add one more check to filter out
7531 invalid bit patterns that happen to satisfy ==.
7533 Avoid link failures with separate libtests.a.
7534 * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
7535 last, to satisfy circular dependencies.
7537 2007-12-11 Eric Blake <ebb9@byu.net>
7538 and Bruno Haible <bruno@clisp.org>
7540 Fix OpenBSD 4.0 <float.h> handling of long double.
7541 * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
7542 * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
7543 * doc/headers/float.texi (float.h): Document OpenBSD bug.
7545 2007-12-11 Jim Meyering <meyering@redhat.com>
7547 * users.txt: Add libvirt.
7549 Support versions of autoconf prior to 2.59c.
7550 * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
7551 if it is not already defined.
7553 2007-12-09 Bruno Haible <bruno@clisp.org>
7555 Let 'gnulib-tool --import' collect sources needed for the tests in
7556 tests/ rather than in lib/.
7557 * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
7558 argument. If true, add rules to generate libtests.a, and put libtests.a
7559 into $(LDADD). Consider source files in subdirectories and set
7561 (func_emit_initmacro_start, func_emit_initmacro_end,
7562 func_emit_initmacro_done): Pass all arguments explicitly.
7563 (func_import): Determine two module lists main_modules,
7564 testsrelated_modules. Determine use_libtests. Determine two variables
7565 sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
7566 instead of just sed_transform_lib_file. Determine two variables
7567 main_files and testsrelated_files. Compute 'files' as the union of
7568 both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
7569 func_add_or_update. In the generated gnulib-comp.m4, collect the
7570 object files for tests/ in different variables than those for lib/.
7571 Substitute LIBTESTS_LIBDEPS.
7572 (func_create_testdir): Combine the uses_subdirs results from
7573 func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
7575 2007-12-09 Bruno Haible <bruno@clisp.org>
7577 * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
7578 the build-aux directory.
7580 2007-12-09 Bruno Haible <bruno@clisp.org>
7582 * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
7583 introduced on 2006-09-09.
7585 2007-12-07 Jim Meyering <meyering@redhat.com>
7587 Let these macros work also with autoconf-2.59.
7588 * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59. 2.60
7589 is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
7590 * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
7592 2007-12-06 Jim Meyering <meyering@redhat.com>
7594 Avoid a configure-time syntax error in gl_FUNC_ACL.
7595 * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
7596 function in each branch, before testing the cache variable.
7598 2007-12-04 Eric Blake <ebb9@byu.net>
7600 Make scripts executable.
7601 * build-aux/config.guess: Add execute permissions.
7602 * build-aux/config.sub: Likewise.
7603 * build-aux/gendocs.sh: Likewise.
7606 * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
7608 * doc/functions/frexp.texi (frexp): Document the bug.
7610 Make cygwin fseeko check more reliable.
7611 * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
7612 version numbers, rather than unrelated feature check.
7613 * doc/functions/fseeko.texi (fseeko): Tweak failure report.
7614 * doc/functions/ftello.texi (ftello): Likewise.
7615 Reported by Bruno Haible.
7617 * m4/strerror.m4: Bump version number.
7619 2007-12-03 Bruno Haible <bruno@clisp.org>
7621 * doc/functions/mprotect.texi: Mention the mingw problem.
7623 2007-12-03 Eric Blake <ebb9@byu.net>
7625 * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
7626 REPLACE_STRERROR is initialized before this macro.
7628 2007-12-03 Paul Eggert <eggert@cs.ucla.edu>
7630 Add support for Solaris 10 ACLs. Also, ACLs are Gnulib, not Autoconf.
7631 * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
7632 * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL. On Solaris,
7633 put -lsec in even for programs other than 'ls'. This fixes a problem
7634 for gettext reported by Bruno Haible in
7635 <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
7636 * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
7637 Add support for Solaris 10. This isn't efficient, but should get the
7640 2007-12-03 James Youngman <jay@gnu.org>
7642 * doc/regexprops-generic.texi: change "an close-group" to "a
7643 close-group" and "illegal" to "not allowed".
7645 2007-11-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7647 * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
7648 pr_byname.h. Needed for the rare case when the maintainer has done
7649 "make maintainer-clean" in the source directory and then attempts a
7650 build outside the source directory.
7651 * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
7654 2007-12-02 Martin Lambers <marlam@marlam.de>
7655 Bruno Haible <bruno@clisp.org>
7657 * lib/getpagesize.h: Remove file.
7658 * lib/unistd.in.h: Include declaration of getpagesize here.
7659 * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
7660 Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
7662 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
7663 HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
7664 * modules/getpagesize (Files): Remove lib/getpagesize.h.
7665 (Depends-on): Add unistd.
7666 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
7667 (Include): Use <unistd.h> instead of getpagesize.h.
7668 * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
7669 HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
7670 * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
7671 gl_GETPAGESIZE invocation, already handled by module dependency.
7672 * lib/pagealign_alloc.c: Don't include getpagesize.h.
7674 2007-12-02 Bruno Haible <bruno@clisp.org>
7676 * modules/strings-tests: New file.
7677 * tests/test-strings.c: New file.
7679 Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
7680 * lib/strings.in.h: New file.
7681 * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
7682 * m4/strings_h.m4: New file.
7683 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
7684 of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
7685 * modules/strings: New file.
7686 * modules/string (Makefile.am): Update.
7687 * modules/strcase (Include): Mention <strings.h>, not <string.h>.
7688 Reported by Karl Berry.
7690 2007-12-01 Eric Blake <ebb9@byu.net>
7692 * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
7693 accomodate fix in cygwin 1.5.25.
7695 2007-12-01 Jim Meyering <meyering@redhat.com>
7697 Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
7698 * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
7699 that would inhibit utf8-optimization of a regexp containing line-
7700 or buffer-anchors, e.g., `^', `$'.
7702 2007-11-30 Bruno Haible <bruno@clisp.org>
7704 * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
7705 PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
7706 glthread_recursive_lock_init.
7707 * lib/lock.c (glthread_recursive_lock_init)
7708 [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
7709 Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
7711 2007-11-28 Paul Eggert <eggert@cs.ucla.edu>
7713 New function qset_acl, like set_acl but with syscall semantics.
7714 * lib/acl.h (qset_acl): New decl.
7715 * lib/acl.c (qset_acl): New function.
7716 (set_acl): Use new function. Use more-consistent diagnostics.
7718 2007-11-28 Jim Meyering <meyering@redhat.com>
7720 * modules/physmem (License): Change from GPL to LGPLv2+.
7722 2007-11-26 Bruno Haible <bruno@clisp.org>
7724 * lib/vasnprintf.c (decode_long_double): Don't abort if the
7725 'long double' type has excess precision.
7726 Reported by Jim Meyering in
7727 <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
7729 2007-11-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7731 * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
7732 Sync from <http://gnu.org/licenses>.
7733 * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
7734 with license text from same location.
7735 * doc/maintain.texi, doc/standards.texi: Sync from
7736 <http://savannah.gnu.org/projects/gnustandards>.
7738 2007-11-22 Ondřej Vašík <ovasik@redhat.com>
7739 and Jim Meyering <meyering@redhat.com>
7741 Adjust getdate' grammar to accept a slightly more regular language.
7742 E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
7743 Before, the former was rejected.
7744 * lib/getdate.y (digits_to_date_time): New function, factored
7746 (number): ...here. Just call digits_to_date_time.
7747 (hybrid): New non-terminal to handle an <unsigned number,
7748 signed relative offset> sequence consistently.
7750 2007-11-18 Jim Meyering <meyering@redhat.com>
7752 Pull my changes from coreutils:
7753 bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
7754 * build-aux/bootstrap (gnulib_tool_options): Add a space before the
7755 use of $gnulib_tool_option_extras, so that it's separated from the
7758 Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
7759 * build-aux/bootstrap (cp_mark_as_generated): Create any required
7760 parent destination directories before copying a file into place.
7762 2007-11-18 Sergey Poznyakoff <gray@gnu.org.ua>
7764 bootstrap: work also with 4-argument variant of AC_INIT
7765 * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
7767 2007-11-16 Paul Eggert <eggert@cs.ucla.edu>
7769 Port test-getaddrinfo to Solaris.
7770 Problem reported by Bruno Haible in
7771 <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
7772 * tests/test-getaddrinfo.c (simple): Add a comment asking for an
7773 explanation of setting 'hints'.
7774 Don't reject an implementation merely because it returns EAI_SERVICE.
7775 (EAI_SERVICE): Define to 0 if not defined.
7777 2007-11-15 Paul Eggert <eggert@cs.ucla.edu>
7779 The license of gnu-make and posix-shell is now "GPLed build tool".
7780 * modules/gnu-make (License): Likewise.
7781 * modules/posix-shell (License): Likewise.
7783 New module posix-shell, for determining a POSIX shell
7784 or perhaps something that is close enough to a POSIX shell.
7785 * m4/posix-shell.m4: New file.
7786 * modules/posix-shell: New file.
7788 * MODULES.html.sh: Mention new module.
7790 New module gnu-make, for determining whether we're using GNU Make.
7791 * m4/gnu-make.m4: New file.
7792 * modules/gnu-make: New file.
7793 * MODULES.html.sh: Mention new module.
7795 2007-11-14 Jim Meyering <meyering@redhat.com>
7797 Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
7798 * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
7799 use this macro to create a function _definition_.
7800 Remove useless "#undef ARGMATCH_DIE".
7802 2007-11-14 Bruno Haible <bruno@clisp.org>
7804 * lib/config.charset: Update for OpenBSD 4.1.
7805 Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
7807 2007-11-12 Paul Eggert <eggert@cs.ucla.edu>
7809 Document 64-bit #if problems in stdint.texi.
7810 * doc/headers/stdint.texi (stdint.h): Mention problems with
7811 64-bit-#if, and how to work around them.
7813 Don't insist on 'long long int' support in the preprocessor. It
7814 breaks too many things. For example, PRIdMAX still uses a 'long
7815 long int' format with the latest Sun compiler, even though
7816 HAVE_LONG_LONG_INT isn't defined due to that compiler's
7817 preprocessor problem. This causes the latest coreutils to dump
7818 core on Solaris 10 sparc with the Sun C compiler.
7819 Instead, fix the 2007-10-16 problem in a different way, by evaluating
7820 the troublesome expressions at configure-time, not at #if-time.
7821 * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
7823 * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
7824 compile-time C checks, done at 'configure'-time.
7825 (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
7826 * modules/inttypes (Makefile): Substitute the new symbols that
7827 gl_INTTYPES_H now generates.
7828 * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
7830 2007-11-12 Bruno Haible <bruno@clisp.org>
7832 Tests for Unicode character classification functions.
7834 * modules/unictype/bidicategory-byname-tests: New file.
7835 * modules/unictype/bidicategory-name-tests: New file.
7836 * modules/unictype/bidicategory-of-tests: New file.
7837 * modules/unictype/bidicategory-test-tests: New file.
7838 * modules/unictype/block-list-tests: New file.
7839 * modules/unictype/block-of-tests: New file.
7840 * modules/unictype/block-test-tests: New file.
7841 * modules/unictype/category-C-tests: New file.
7842 * modules/unictype/category-Cc-tests: New file.
7843 * modules/unictype/category-Cf-tests: New file.
7844 * modules/unictype/category-Cn-tests: New file.
7845 * modules/unictype/category-Co-tests: New file.
7846 * modules/unictype/category-Cs-tests: New file.
7847 * modules/unictype/category-L-tests: New file.
7848 * modules/unictype/category-Ll-tests: New file.
7849 * modules/unictype/category-Lm-tests: New file.
7850 * modules/unictype/category-Lo-tests: New file.
7851 * modules/unictype/category-Lt-tests: New file.
7852 * modules/unictype/category-Lu-tests: New file.
7853 * modules/unictype/category-M-tests: New file.
7854 * modules/unictype/category-Mc-tests: New file.
7855 * modules/unictype/category-Me-tests: New file.
7856 * modules/unictype/category-Mn-tests: New file.
7857 * modules/unictype/category-N-tests: New file.
7858 * modules/unictype/category-Nd-tests: New file.
7859 * modules/unictype/category-Nl-tests: New file.
7860 * modules/unictype/category-No-tests: New file.
7861 * modules/unictype/category-P-tests: New file.
7862 * modules/unictype/category-Pc-tests: New file.
7863 * modules/unictype/category-Pd-tests: New file.
7864 * modules/unictype/category-Pe-tests: New file.
7865 * modules/unictype/category-Pf-tests: New file.
7866 * modules/unictype/category-Pi-tests: New file.
7867 * modules/unictype/category-Po-tests: New file.
7868 * modules/unictype/category-Ps-tests: New file.
7869 * modules/unictype/category-S-tests: New file.
7870 * modules/unictype/category-Sc-tests: New file.
7871 * modules/unictype/category-Sk-tests: New file.
7872 * modules/unictype/category-Sm-tests: New file.
7873 * modules/unictype/category-So-tests: New file.
7874 * modules/unictype/category-Z-tests: New file.
7875 * modules/unictype/category-Zl-tests: New file.
7876 * modules/unictype/category-Zp-tests: New file.
7877 * modules/unictype/category-Zs-tests: New file.
7878 * modules/unictype/category-and-not-tests: New file.
7879 * modules/unictype/category-and-tests: New file.
7880 * modules/unictype/category-byname-tests: New file.
7881 * modules/unictype/category-name-tests: New file.
7882 * modules/unictype/category-none-tests: New file.
7883 * modules/unictype/category-of-tests: New file.
7884 * modules/unictype/category-or-tests: New file.
7885 * modules/unictype/category-test-withtable-tests: New file.
7886 * modules/unictype/combining-class-tests: New file.
7887 * modules/unictype/ctype-alnum-tests: New file.
7888 * modules/unictype/ctype-alpha-tests: New file.
7889 * modules/unictype/ctype-blank-tests: New file.
7890 * modules/unictype/ctype-cntrl-tests: New file.
7891 * modules/unictype/ctype-digit-tests: New file.
7892 * modules/unictype/ctype-graph-tests: New file.
7893 * modules/unictype/ctype-lower-tests: New file.
7894 * modules/unictype/ctype-print-tests: New file.
7895 * modules/unictype/ctype-punct-tests: New file.
7896 * modules/unictype/ctype-space-tests: New file.
7897 * modules/unictype/ctype-upper-tests: New file.
7898 * modules/unictype/ctype-xdigit-tests: New file.
7899 * modules/unictype/decimal-digit-tests: New file.
7900 * modules/unictype/digit-tests: New file.
7901 * modules/unictype/mirror-tests: New file.
7902 * modules/unictype/numeric-tests: New file.
7903 * modules/unictype/property-alphabetic-tests: New file.
7904 * modules/unictype/property-ascii-hex-digit-tests: New file.
7905 * modules/unictype/property-bidi-arabic-digit-tests: New file.
7906 * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
7907 * modules/unictype/property-bidi-block-separator-tests: New file.
7908 * modules/unictype/property-bidi-boundary-neutral-tests: New file.
7909 * modules/unictype/property-bidi-common-separator-tests: New file.
7910 * modules/unictype/property-bidi-control-tests: New file.
7911 * modules/unictype/property-bidi-embedding-or-override-tests: New file.
7912 * modules/unictype/property-bidi-eur-num-separator-tests: New file.
7913 * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
7914 * modules/unictype/property-bidi-european-digit-tests: New file.
7915 * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
7916 * modules/unictype/property-bidi-left-to-right-tests: New file.
7917 * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
7918 * modules/unictype/property-bidi-other-neutral-tests: New file.
7919 * modules/unictype/property-bidi-pdf-tests: New file.
7920 * modules/unictype/property-bidi-segment-separator-tests: New file.
7921 * modules/unictype/property-bidi-whitespace-tests: New file.
7922 * modules/unictype/property-byname-tests: New file.
7923 * modules/unictype/property-combining-tests: New file.
7924 * modules/unictype/property-composite-tests: New file.
7925 * modules/unictype/property-currency-symbol-tests: New file.
7926 * modules/unictype/property-dash-tests: New file.
7927 * modules/unictype/property-decimal-digit-tests: New file.
7928 * modules/unictype/property-default-ignorable-code-point-tests: New file.
7929 * modules/unictype/property-deprecated-tests: New file.
7930 * modules/unictype/property-diacritic-tests: New file.
7931 * modules/unictype/property-extender-tests: New file.
7932 * modules/unictype/property-format-control-tests: New file.
7933 * modules/unictype/property-grapheme-base-tests: New file.
7934 * modules/unictype/property-grapheme-extend-tests: New file.
7935 * modules/unictype/property-grapheme-link-tests: New file.
7936 * modules/unictype/property-hex-digit-tests: New file.
7937 * modules/unictype/property-hyphen-tests: New file.
7938 * modules/unictype/property-id-continue-tests: New file.
7939 * modules/unictype/property-id-start-tests: New file.
7940 * modules/unictype/property-ideographic-tests: New file.
7941 * modules/unictype/property-ids-binary-operator-tests: New file.
7942 * modules/unictype/property-ids-trinary-operator-tests: New file.
7943 * modules/unictype/property-ignorable-control-tests: New file.
7944 * modules/unictype/property-iso-control-tests: New file.
7945 * modules/unictype/property-join-control-tests: New file.
7946 * modules/unictype/property-left-of-pair-tests: New file.
7947 * modules/unictype/property-line-separator-tests: New file.
7948 * modules/unictype/property-logical-order-exception-tests: New file.
7949 * modules/unictype/property-lowercase-tests: New file.
7950 * modules/unictype/property-math-tests: New file.
7951 * modules/unictype/property-non-break-tests: New file.
7952 * modules/unictype/property-not-a-character-tests: New file.
7953 * modules/unictype/property-numeric-tests: New file.
7954 * modules/unictype/property-other-alphabetic-tests: New file.
7955 * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
7956 * modules/unictype/property-other-grapheme-extend-tests: New file.
7957 * modules/unictype/property-other-id-continue-tests: New file.
7958 * modules/unictype/property-other-id-start-tests: New file.
7959 * modules/unictype/property-other-lowercase-tests: New file.
7960 * modules/unictype/property-other-math-tests: New file.
7961 * modules/unictype/property-other-uppercase-tests: New file.
7962 * modules/unictype/property-paired-punctuation-tests: New file.
7963 * modules/unictype/property-paragraph-separator-tests: New file.
7964 * modules/unictype/property-pattern-syntax-tests: New file.
7965 * modules/unictype/property-pattern-white-space-tests: New file.
7966 * modules/unictype/property-private-use-tests: New file.
7967 * modules/unictype/property-punctuation-tests: New file.
7968 * modules/unictype/property-quotation-mark-tests: New file.
7969 * modules/unictype/property-radical-tests: New file.
7970 * modules/unictype/property-sentence-terminal-tests: New file.
7971 * modules/unictype/property-soft-dotted-tests: New file.
7972 * modules/unictype/property-space-tests: New file.
7973 * modules/unictype/property-terminal-punctuation-tests: New file.
7974 * modules/unictype/property-test-tests: New file.
7975 * modules/unictype/property-titlecase-tests: New file.
7976 * modules/unictype/property-unassigned-code-value-tests: New file.
7977 * modules/unictype/property-unified-ideograph-tests: New file.
7978 * modules/unictype/property-uppercase-tests: New file.
7979 * modules/unictype/property-variation-selector-tests: New file.
7980 * modules/unictype/property-white-space-tests: New file.
7981 * modules/unictype/property-xid-continue-tests: New file.
7982 * modules/unictype/property-xid-start-tests: New file.
7983 * modules/unictype/property-zero-width-tests: New file.
7984 * modules/unictype/scripts-tests: New file.
7985 * modules/unictype/syntax-c-ident-tests: New file.
7986 * modules/unictype/syntax-c-whitespace-tests: New file.
7987 * modules/unictype/syntax-java-ident-tests: New file.
7988 * modules/unictype/syntax-java-whitespace-tests: New file.
7989 * tests/unictype/test-bidi_byname.c: New file.
7990 * tests/unictype/test-bidi_name.c: New file.
7991 * tests/unictype/test-bidi_of.c: New file.
7992 * tests/unictype/test-bidi_test.c: New file.
7993 * tests/unictype/test-block_list.c: New file.
7994 * tests/unictype/test-block_of.c: New file.
7995 * tests/unictype/test-block_test.c: New file.
7996 * tests/unictype/test-categ_and.c: New file.
7997 * tests/unictype/test-categ_and_not.c: New file.
7998 * tests/unictype/test-categ_byname.c: New file.
7999 * tests/unictype/test-categ_name.c: New file.
8000 * tests/unictype/test-categ_none.c: New file.
8001 * tests/unictype/test-categ_of.c: New file.
8002 * tests/unictype/test-categ_or.c: New file.
8003 * tests/unictype/test-categ_test_withtable.c: New file.
8004 * tests/unictype/test-combining.c: New file.
8005 * tests/unictype/test-decdigit.c: New file.
8006 * tests/unictype/test-digit.c: New file.
8007 * tests/unictype/test-mirror.c: New file.
8008 * tests/unictype/test-numeric.c: New file.
8009 * tests/unictype/test-pr_byname.c: New file.
8010 * tests/unictype/test-pr_test.c: New file.
8011 * tests/unictype/test-predicate-part1.h: New file.
8012 * tests/unictype/test-predicate-part2.h: New file.
8013 * tests/unictype/test-scripts.c: New file.
8014 * tests/unictype/test-sy_c_ident.c: New file.
8015 * tests/unictype/test-sy_java_ident.c: New file.
8017 * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
8019 * tests/unictype/test-categ_Cc.c: Likewise.
8020 * tests/unictype/test-categ_Cf.c: Likewise.
8021 * tests/unictype/test-categ_Cn.c: Likewise.
8022 * tests/unictype/test-categ_Co.c: Likewise.
8023 * tests/unictype/test-categ_Cs.c: Likewise.
8024 * tests/unictype/test-categ_L.c: Likewise.
8025 * tests/unictype/test-categ_Ll.c: Likewise.
8026 * tests/unictype/test-categ_Lm.c: Likewise.
8027 * tests/unictype/test-categ_Lo.c: Likewise.
8028 * tests/unictype/test-categ_Lt.c: Likewise.
8029 * tests/unictype/test-categ_Lu.c: Likewise.
8030 * tests/unictype/test-categ_M.c: Likewise.
8031 * tests/unictype/test-categ_Mc.c: Likewise.
8032 * tests/unictype/test-categ_Me.c: Likewise.
8033 * tests/unictype/test-categ_Mn.c: Likewise.
8034 * tests/unictype/test-categ_N.c: Likewise.
8035 * tests/unictype/test-categ_Nd.c: Likewise.
8036 * tests/unictype/test-categ_Nl.c: Likewise.
8037 * tests/unictype/test-categ_No.c: Likewise.
8038 * tests/unictype/test-categ_P.c: Likewise.
8039 * tests/unictype/test-categ_Pc.c: Likewise.
8040 * tests/unictype/test-categ_Pd.c: Likewise.
8041 * tests/unictype/test-categ_Pe.c: Likewise.
8042 * tests/unictype/test-categ_Pf.c: Likewise.
8043 * tests/unictype/test-categ_Pi.c: Likewise.
8044 * tests/unictype/test-categ_Po.c: Likewise.
8045 * tests/unictype/test-categ_Ps.c: Likewise.
8046 * tests/unictype/test-categ_S.c: Likewise.
8047 * tests/unictype/test-categ_Sc.c: Likewise.
8048 * tests/unictype/test-categ_Sk.c: Likewise.
8049 * tests/unictype/test-categ_Sm.c: Likewise.
8050 * tests/unictype/test-categ_So.c: Likewise.
8051 * tests/unictype/test-categ_Z.c: Likewise.
8052 * tests/unictype/test-categ_Zl.c: Likewise.
8053 * tests/unictype/test-categ_Zp.c: Likewise.
8054 * tests/unictype/test-categ_Zs.c: Likewise.
8055 * tests/unictype/test-ctype_alnum.c: Likewise.
8056 * tests/unictype/test-ctype_alpha.c: Likewise.
8057 * tests/unictype/test-ctype_blank.c: Likewise.
8058 * tests/unictype/test-ctype_cntrl.c: Likewise.
8059 * tests/unictype/test-ctype_digit.c: Likewise.
8060 * tests/unictype/test-ctype_graph.c: Likewise.
8061 * tests/unictype/test-ctype_lower.c: Likewise.
8062 * tests/unictype/test-ctype_print.c: Likewise.
8063 * tests/unictype/test-ctype_punct.c: Likewise.
8064 * tests/unictype/test-ctype_space.c: Likewise.
8065 * tests/unictype/test-ctype_upper.c: Likewise.
8066 * tests/unictype/test-ctype_xdigit.c: Likewise.
8067 * tests/unictype/test-decdigit.h: Likewise.
8068 * tests/unictype/test-digit.h: Likewise.
8069 * tests/unictype/test-numeric.h: Likewise.
8070 * tests/unictype/test-pr_alphabetic.c: Likewise.
8071 * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
8072 * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
8073 * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
8074 * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
8075 * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
8076 * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
8077 * tests/unictype/test-pr_bidi_control.c: Likewise.
8078 * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
8079 * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
8080 * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
8081 * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
8082 * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
8083 * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
8084 * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
8085 * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
8086 * tests/unictype/test-pr_bidi_pdf.c: Likewise.
8087 * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
8088 * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
8089 * tests/unictype/test-pr_combining.c: Likewise.
8090 * tests/unictype/test-pr_composite.c: Likewise.
8091 * tests/unictype/test-pr_currency_symbol.c: Likewise.
8092 * tests/unictype/test-pr_dash.c: Likewise.
8093 * tests/unictype/test-pr_decimal_digit.c: Likewise.
8094 * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
8095 * tests/unictype/test-pr_deprecated.c: Likewise.
8096 * tests/unictype/test-pr_diacritic.c: Likewise.
8097 * tests/unictype/test-pr_extender.c: Likewise.
8098 * tests/unictype/test-pr_format_control.c: Likewise.
8099 * tests/unictype/test-pr_grapheme_base.c: Likewise.
8100 * tests/unictype/test-pr_grapheme_extend.c: Likewise.
8101 * tests/unictype/test-pr_grapheme_link.c: Likewise.
8102 * tests/unictype/test-pr_hex_digit.c: Likewise.
8103 * tests/unictype/test-pr_hyphen.c: Likewise.
8104 * tests/unictype/test-pr_id_continue.c: Likewise.
8105 * tests/unictype/test-pr_id_start.c: Likewise.
8106 * tests/unictype/test-pr_ideographic.c: Likewise.
8107 * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
8108 * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
8109 * tests/unictype/test-pr_ignorable_control.c: Likewise.
8110 * tests/unictype/test-pr_iso_control.c: Likewise.
8111 * tests/unictype/test-pr_join_control.c: Likewise.
8112 * tests/unictype/test-pr_left_of_pair.c: Likewise.
8113 * tests/unictype/test-pr_line_separator.c: Likewise.
8114 * tests/unictype/test-pr_logical_order_exception.c: Likewise.
8115 * tests/unictype/test-pr_lowercase.c: Likewise.
8116 * tests/unictype/test-pr_math.c: Likewise.
8117 * tests/unictype/test-pr_non_break.c: Likewise.
8118 * tests/unictype/test-pr_not_a_character.c: Likewise.
8119 * tests/unictype/test-pr_numeric.c: Likewise.
8120 * tests/unictype/test-pr_other_alphabetic.c: Likewise.
8121 * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
8122 * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
8123 * tests/unictype/test-pr_other_id_continue.c: Likewise.
8124 * tests/unictype/test-pr_other_id_start.c: Likewise.
8125 * tests/unictype/test-pr_other_lowercase.c: Likewise.
8126 * tests/unictype/test-pr_other_math.c: Likewise.
8127 * tests/unictype/test-pr_other_uppercase.c: Likewise.
8128 * tests/unictype/test-pr_paired_punctuation.c: Likewise.
8129 * tests/unictype/test-pr_paragraph_separator.c: Likewise.
8130 * tests/unictype/test-pr_pattern_syntax.c: Likewise.
8131 * tests/unictype/test-pr_pattern_white_space.c: Likewise.
8132 * tests/unictype/test-pr_private_use.c: Likewise.
8133 * tests/unictype/test-pr_punctuation.c: Likewise.
8134 * tests/unictype/test-pr_quotation_mark.c: Likewise.
8135 * tests/unictype/test-pr_radical.c: Likewise.
8136 * tests/unictype/test-pr_sentence_terminal.c: Likewise.
8137 * tests/unictype/test-pr_soft_dotted.c: Likewise.
8138 * tests/unictype/test-pr_space.c: Likewise.
8139 * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
8140 * tests/unictype/test-pr_titlecase.c: Likewise.
8141 * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
8142 * tests/unictype/test-pr_unified_ideograph.c: Likewise.
8143 * tests/unictype/test-pr_uppercase.c: Likewise.
8144 * tests/unictype/test-pr_variation_selector.c: Likewise.
8145 * tests/unictype/test-pr_white_space.c: Likewise.
8146 * tests/unictype/test-pr_xid_continue.c: Likewise.
8147 * tests/unictype/test-pr_xid_start.c: Likewise.
8148 * tests/unictype/test-pr_zero_width.c: Likewise.
8149 * tests/unictype/test-sy_c_whitespace.c: Likewise.
8150 * tests/unictype/test-sy_java_whitespace.c: Likewise.
8152 2007-11-12 Bruno Haible <bruno@clisp.org>
8154 Unicode character classification functions.
8155 * lib/unictype.h: New file.
8156 * modules/unictype/base: New file.
8157 * modules/unictype/category-L: New file.
8158 * modules/unictype/category-Lu: New file.
8159 * modules/unictype/category-Ll: New file.
8160 * modules/unictype/category-Lt: New file.
8161 * modules/unictype/category-Lm: New file.
8162 * modules/unictype/category-Lo: New file.
8163 * modules/unictype/category-M: New file.
8164 * modules/unictype/category-Mn: New file.
8165 * modules/unictype/category-Mc: New file.
8166 * modules/unictype/category-Me: New file.
8167 * modules/unictype/category-N: New file.
8168 * modules/unictype/category-Nd: New file.
8169 * modules/unictype/category-Nl: New file.
8170 * modules/unictype/category-No: New file.
8171 * modules/unictype/category-P: New file.
8172 * modules/unictype/category-Pc: New file.
8173 * modules/unictype/category-Pd: New file.
8174 * modules/unictype/category-Ps: New file.
8175 * modules/unictype/category-Pe: New file.
8176 * modules/unictype/category-Pi: New file.
8177 * modules/unictype/category-Pf: New file.
8178 * modules/unictype/category-Po: New file.
8179 * modules/unictype/category-S: New file.
8180 * modules/unictype/category-Sm: New file.
8181 * modules/unictype/category-Sc: New file.
8182 * modules/unictype/category-Sk: New file.
8183 * modules/unictype/category-So: New file.
8184 * modules/unictype/category-Z: New file.
8185 * modules/unictype/category-Zs: New file.
8186 * modules/unictype/category-Zl: New file.
8187 * modules/unictype/category-Zp: New file.
8188 * modules/unictype/category-C: New file.
8189 * modules/unictype/category-Cc: New file.
8190 * modules/unictype/category-Cf: New file.
8191 * modules/unictype/category-Cs: New file.
8192 * modules/unictype/category-Co: New file.
8193 * modules/unictype/category-Cn: New file.
8194 * modules/unictype/category-or: New file.
8195 * modules/unictype/category-of: New file.
8196 * modules/unictype/category-test: New file.
8197 * modules/unictype/category-test-withtable: New file.
8198 * modules/unictype/category-byname: New file.
8199 * modules/unictype/category-none: New file.
8200 * modules/unictype/category-and: New file.
8201 * modules/unictype/category-and-not: New file.
8202 * modules/unictype/category-name: New file.
8203 * modules/unictype/combining-class: New file.
8204 * modules/unictype/category-all: New file.
8205 * modules/unictype/bidicategory-all: New file.
8206 * modules/unictype/bidicategory-byname: New file.
8207 * modules/unictype/bidicategory-name: New file.
8208 * modules/unictype/bidicategory-of: New file.
8209 * modules/unictype/bidicategory-test: New file.
8210 * modules/unictype/decimal-digit: New file.
8211 * modules/unictype/digit: New file.
8212 * modules/unictype/numeric: New file.
8213 * modules/unictype/mirror: New file.
8214 * modules/unictype/property-white-space: New file.
8215 * modules/unictype/property-alphabetic: New file.
8216 * modules/unictype/property-other-alphabetic: New file.
8217 * modules/unictype/property-not-a-character: New file.
8218 * modules/unictype/property-default-ignorable-code-point: New file.
8219 * modules/unictype/property-other-default-ignorable-code-point: New
8221 * modules/unictype/property-deprecated: New file.
8222 * modules/unictype/property-logical-order-exception: New file.
8223 * modules/unictype/property-variation-selector: New file.
8224 * modules/unictype/property-private-use: New file.
8225 * modules/unictype/property-unassigned-code-value: New file.
8226 * modules/unictype/property-uppercase: New file.
8227 * modules/unictype/property-other-uppercase: New file.
8228 * modules/unictype/property-lowercase: New file.
8229 * modules/unictype/property-other-lowercase: New file.
8230 * modules/unictype/property-titlecase: New file.
8231 * modules/unictype/property-soft-dotted: New file.
8232 * modules/unictype/property-id-start: New file.
8233 * modules/unictype/property-other-id-start: New file.
8234 * modules/unictype/property-id-continue: New file.
8235 * modules/unictype/property-other-id-continue: New file.
8236 * modules/unictype/property-xid-start: New file.
8237 * modules/unictype/property-xid-continue: New file.
8238 * modules/unictype/property-pattern-white-space: New file.
8239 * modules/unictype/property-pattern-syntax: New file.
8240 * modules/unictype/property-join-control: New file.
8241 * modules/unictype/property-grapheme-base: New file.
8242 * modules/unictype/property-grapheme-extend: New file.
8243 * modules/unictype/property-other-grapheme-extend: New file.
8244 * modules/unictype/property-grapheme-link: New file.
8245 * modules/unictype/property-bidi-control: New file.
8246 * modules/unictype/property-bidi-left-to-right: New file.
8247 * modules/unictype/property-bidi-hebrew-right-to-left: New file.
8248 * modules/unictype/property-bidi-arabic-right-to-left: New file.
8249 * modules/unictype/property-bidi-european-digit: New file.
8250 * modules/unictype/property-bidi-eur-num-separator: New file.
8251 * modules/unictype/property-bidi-eur-num-terminator: New file.
8252 * modules/unictype/property-bidi-arabic-digit: New file.
8253 * modules/unictype/property-bidi-common-separator: New file.
8254 * modules/unictype/property-bidi-block-separator: New file.
8255 * modules/unictype/property-bidi-segment-separator: New file.
8256 * modules/unictype/property-bidi-whitespace: New file.
8257 * modules/unictype/property-bidi-non-spacing-mark: New file.
8258 * modules/unictype/property-bidi-boundary-neutral: New file.
8259 * modules/unictype/property-bidi-pdf: New file.
8260 * modules/unictype/property-bidi-embedding-or-override: New file.
8261 * modules/unictype/property-bidi-other-neutral: New file.
8262 * modules/unictype/property-hex-digit: New file.
8263 * modules/unictype/property-ascii-hex-digit: New file.
8264 * modules/unictype/property-ideographic: New file.
8265 * modules/unictype/property-unified-ideograph: New file.
8266 * modules/unictype/property-radical: New file.
8267 * modules/unictype/property-ids-binary-operator: New file.
8268 * modules/unictype/property-ids-trinary-operator: New file.
8269 * modules/unictype/property-zero-width: New file.
8270 * modules/unictype/property-space: New file.
8271 * modules/unictype/property-non-break: New file.
8272 * modules/unictype/property-iso-control: New file.
8273 * modules/unictype/property-format-control: New file.
8274 * modules/unictype/property-dash: New file.
8275 * modules/unictype/property-hyphen: New file.
8276 * modules/unictype/property-punctuation: New file.
8277 * modules/unictype/property-line-separator: New file.
8278 * modules/unictype/property-paragraph-separator: New file.
8279 * modules/unictype/property-quotation-mark: New file.
8280 * modules/unictype/property-sentence-terminal: New file.
8281 * modules/unictype/property-terminal-punctuation: New file.
8282 * modules/unictype/property-currency-symbol: New file.
8283 * modules/unictype/property-math: New file.
8284 * modules/unictype/property-other-math: New file.
8285 * modules/unictype/property-paired-punctuation: New file.
8286 * modules/unictype/property-left-of-pair: New file.
8287 * modules/unictype/property-combining: New file.
8288 * modules/unictype/property-composite: New file.
8289 * modules/unictype/property-decimal-digit: New file.
8290 * modules/unictype/property-numeric: New file.
8291 * modules/unictype/property-diacritic: New file.
8292 * modules/unictype/property-extender: New file.
8293 * modules/unictype/property-ignorable-control: New file.
8294 * modules/unictype/property-test: New file.
8295 * modules/unictype/property-byname: New file.
8296 * modules/unictype/property-all: New file.
8297 * modules/unictype/scripts: New file.
8298 * modules/unictype/scripts-all: New file.
8299 * modules/unictype/block-of: New file.
8300 * modules/unictype/block-test: New file.
8301 * modules/unictype/block-list: New file.
8302 * modules/unictype/block-all: New file.
8303 * modules/unictype/syntax-c-whitespace: New file.
8304 * modules/unictype/syntax-java-whitespace: New file.
8305 * modules/unictype/syntax-c-ident: New file.
8306 * modules/unictype/syntax-java-ident: New file.
8307 * modules/unictype/ctype-alnum: New file.
8308 * modules/unictype/ctype-alpha: New file.
8309 * modules/unictype/ctype-cntrl: New file.
8310 * modules/unictype/ctype-digit: New file.
8311 * modules/unictype/ctype-graph: New file.
8312 * modules/unictype/ctype-lower: New file.
8313 * modules/unictype/ctype-print: New file.
8314 * modules/unictype/ctype-punct: New file.
8315 * modules/unictype/ctype-space: New file.
8316 * modules/unictype/ctype-upper: New file.
8317 * modules/unictype/ctype-xdigit: New file.
8318 * modules/unictype/ctype-blank: New file.
8319 * lib/unictype/bidi_byname.c: New file.
8320 * lib/unictype/bidi_name.c: New file.
8321 * lib/unictype/bidi_of.c: New file.
8322 * lib/unictype/bidi_test.c: New file.
8323 * lib/unictype/bitmap.h: New file.
8324 * lib/unictype/block_test.c: New file.
8325 * lib/unictype/blocks.c: New file.
8326 * lib/unictype/categ_C.c: New file.
8327 * lib/unictype/categ_Cc.c: New file.
8328 * lib/unictype/categ_Cf.c: New file.
8329 * lib/unictype/categ_Cn.c: New file.
8330 * lib/unictype/categ_Co.c: New file.
8331 * lib/unictype/categ_Cs.c: New file.
8332 * lib/unictype/categ_L.c: New file.
8333 * lib/unictype/categ_Ll.c: New file.
8334 * lib/unictype/categ_Lm.c: New file.
8335 * lib/unictype/categ_Lo.c: New file.
8336 * lib/unictype/categ_Lt.c: New file.
8337 * lib/unictype/categ_Lu.c: New file.
8338 * lib/unictype/categ_M.c: New file.
8339 * lib/unictype/categ_Mc.c: New file.
8340 * lib/unictype/categ_Me.c: New file.
8341 * lib/unictype/categ_Mn.c: New file.
8342 * lib/unictype/categ_N.c: New file.
8343 * lib/unictype/categ_Nd.c: New file.
8344 * lib/unictype/categ_Nl.c: New file.
8345 * lib/unictype/categ_No.c: New file.
8346 * lib/unictype/categ_P.c: New file.
8347 * lib/unictype/categ_Pc.c: New file.
8348 * lib/unictype/categ_Pd.c: New file.
8349 * lib/unictype/categ_Pe.c: New file.
8350 * lib/unictype/categ_Pf.c: New file.
8351 * lib/unictype/categ_Pi.c: New file.
8352 * lib/unictype/categ_Po.c: New file.
8353 * lib/unictype/categ_Ps.c: New file.
8354 * lib/unictype/categ_S.c: New file.
8355 * lib/unictype/categ_Sc.c: New file.
8356 * lib/unictype/categ_Sk.c: New file.
8357 * lib/unictype/categ_Sm.c: New file.
8358 * lib/unictype/categ_So.c: New file.
8359 * lib/unictype/categ_Z.c: New file.
8360 * lib/unictype/categ_Zl.c: New file.
8361 * lib/unictype/categ_Zp.c: New file.
8362 * lib/unictype/categ_Zs.c: New file.
8363 * lib/unictype/categ_and.c: New file.
8364 * lib/unictype/categ_and_not.c: New file.
8365 * lib/unictype/categ_byname.c: New file.
8366 * lib/unictype/categ_name.c: New file.
8367 * lib/unictype/categ_none.c: New file.
8368 * lib/unictype/categ_of.c: New file.
8369 * lib/unictype/categ_or.c: New file.
8370 * lib/unictype/categ_test.c: New file.
8371 * lib/unictype/combining.c: New file.
8372 * lib/unictype/ctype_alnum.c: New file.
8373 * lib/unictype/ctype_alpha.c: New file.
8374 * lib/unictype/ctype_blank.c: New file.
8375 * lib/unictype/ctype_cntrl.c: New file.
8376 * lib/unictype/ctype_digit.c: New file.
8377 * lib/unictype/ctype_graph.c: New file.
8378 * lib/unictype/ctype_lower.c: New file.
8379 * lib/unictype/ctype_print.c: New file.
8380 * lib/unictype/ctype_punct.c: New file.
8381 * lib/unictype/ctype_space.c: New file.
8382 * lib/unictype/ctype_upper.c: New file.
8383 * lib/unictype/ctype_xdigit.c: New file.
8384 * lib/unictype/decdigit.c: New file.
8385 * lib/unictype/digit.c: New file.
8386 * lib/unictype/identsyntaxmap.h: New file.
8387 * lib/unictype/mirror.c: New file.
8388 * lib/unictype/numeric.c: New file.
8389 * lib/unictype/pr_alphabetic.c: New file.
8390 * lib/unictype/pr_ascii_hex_digit.c: New file.
8391 * lib/unictype/pr_bidi_arabic_digit.c: New file.
8392 * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
8393 * lib/unictype/pr_bidi_block_separator.c: New file.
8394 * lib/unictype/pr_bidi_boundary_neutral.c: New file.
8395 * lib/unictype/pr_bidi_common_separator.c: New file.
8396 * lib/unictype/pr_bidi_control.c: New file.
8397 * lib/unictype/pr_bidi_embedding_or_override.c: New file.
8398 * lib/unictype/pr_bidi_eur_num_separator.c: New file.
8399 * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
8400 * lib/unictype/pr_bidi_european_digit.c: New file.
8401 * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
8402 * lib/unictype/pr_bidi_left_to_right.c: New file.
8403 * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
8404 * lib/unictype/pr_bidi_other_neutral.c: New file.
8405 * lib/unictype/pr_bidi_pdf.c: New file.
8406 * lib/unictype/pr_bidi_segment_separator.c: New file.
8407 * lib/unictype/pr_bidi_whitespace.c: New file.
8408 * lib/unictype/pr_byname.c: New file.
8409 * lib/unictype/pr_byname.gperf: New file.
8410 * lib/unictype/pr_combining.c: New file.
8411 * lib/unictype/pr_composite.c: New file.
8412 * lib/unictype/pr_currency_symbol.c: New file.
8413 * lib/unictype/pr_dash.c: New file.
8414 * lib/unictype/pr_decimal_digit.c: New file.
8415 * lib/unictype/pr_default_ignorable_code_point.c: New file.
8416 * lib/unictype/pr_deprecated.c: New file.
8417 * lib/unictype/pr_diacritic.c: New file.
8418 * lib/unictype/pr_extender.c: New file.
8419 * lib/unictype/pr_format_control.c: New file.
8420 * lib/unictype/pr_grapheme_base.c: New file.
8421 * lib/unictype/pr_grapheme_extend.c: New file.
8422 * lib/unictype/pr_grapheme_link.c: New file.
8423 * lib/unictype/pr_hex_digit.c: New file.
8424 * lib/unictype/pr_hyphen.c: New file.
8425 * lib/unictype/pr_id_continue.c: New file.
8426 * lib/unictype/pr_id_start.c: New file.
8427 * lib/unictype/pr_ideographic.c: New file.
8428 * lib/unictype/pr_ids_binary_operator.c: New file.
8429 * lib/unictype/pr_ids_trinary_operator.c: New file.
8430 * lib/unictype/pr_ignorable_control.c: New file.
8431 * lib/unictype/pr_iso_control.c: New file.
8432 * lib/unictype/pr_join_control.c: New file.
8433 * lib/unictype/pr_left_of_pair.c: New file.
8434 * lib/unictype/pr_line_separator.c: New file.
8435 * lib/unictype/pr_logical_order_exception.c: New file.
8436 * lib/unictype/pr_lowercase.c: New file.
8437 * lib/unictype/pr_math.c: New file.
8438 * lib/unictype/pr_non_break.c: New file.
8439 * lib/unictype/pr_not_a_character.c: New file.
8440 * lib/unictype/pr_numeric.c: New file.
8441 * lib/unictype/pr_other_alphabetic.c: New file.
8442 * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
8443 * lib/unictype/pr_other_grapheme_extend.c: New file.
8444 * lib/unictype/pr_other_id_continue.c: New file.
8445 * lib/unictype/pr_other_id_start.c: New file.
8446 * lib/unictype/pr_other_lowercase.c: New file.
8447 * lib/unictype/pr_other_math.c: New file.
8448 * lib/unictype/pr_other_uppercase.c: New file.
8449 * lib/unictype/pr_paired_punctuation.c: New file.
8450 * lib/unictype/pr_paragraph_separator.c: New file.
8451 * lib/unictype/pr_pattern_syntax.c: New file.
8452 * lib/unictype/pr_pattern_white_space.c: New file.
8453 * lib/unictype/pr_private_use.c: New file.
8454 * lib/unictype/pr_punctuation.c: New file.
8455 * lib/unictype/pr_quotation_mark.c: New file.
8456 * lib/unictype/pr_radical.c: New file.
8457 * lib/unictype/pr_sentence_terminal.c: New file.
8458 * lib/unictype/pr_soft_dotted.c: New file.
8459 * lib/unictype/pr_space.c: New file.
8460 * lib/unictype/pr_terminal_punctuation.c: New file.
8461 * lib/unictype/pr_test.c: New file.
8462 * lib/unictype/pr_titlecase.c: New file.
8463 * lib/unictype/pr_unassigned_code_value.c: New file.
8464 * lib/unictype/pr_unified_ideograph.c: New file.
8465 * lib/unictype/pr_uppercase.c: New file.
8466 * lib/unictype/pr_variation_selector.c: New file.
8467 * lib/unictype/pr_white_space.c: New file.
8468 * lib/unictype/pr_xid_continue.c: New file.
8469 * lib/unictype/pr_xid_start.c: New file.
8470 * lib/unictype/pr_zero_width.c: New file.
8471 * lib/unictype/scripts.c: New file.
8472 * lib/unictype/sy_c_ident.c: New file.
8473 * lib/unictype/sy_c_whitespace.c: New file.
8474 * lib/unictype/sy_java_ident.c: New file.
8475 * lib/unictype/sy_java_whitespace.c: New file.
8477 * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
8479 * lib/unictype/blocks.h: Likewise.
8480 * lib/unictype/categ_C.h: Likewise.
8481 * lib/unictype/categ_Cc.h: Likewise.
8482 * lib/unictype/categ_Cf.h: Likewise.
8483 * lib/unictype/categ_Cn.h: Likewise.
8484 * lib/unictype/categ_Co.h: Likewise.
8485 * lib/unictype/categ_Cs.h: Likewise.
8486 * lib/unictype/categ_L.h: Likewise.
8487 * lib/unictype/categ_Ll.h: Likewise.
8488 * lib/unictype/categ_Lm.h: Likewise.
8489 * lib/unictype/categ_Lo.h: Likewise.
8490 * lib/unictype/categ_Lt.h: Likewise.
8491 * lib/unictype/categ_Lu.h: Likewise.
8492 * lib/unictype/categ_M.h: Likewise.
8493 * lib/unictype/categ_Mc.h: Likewise.
8494 * lib/unictype/categ_Me.h: Likewise.
8495 * lib/unictype/categ_Mn.h: Likewise.
8496 * lib/unictype/categ_N.h: Likewise.
8497 * lib/unictype/categ_Nd.h: Likewise.
8498 * lib/unictype/categ_Nl.h: Likewise.
8499 * lib/unictype/categ_No.h: Likewise.
8500 * lib/unictype/categ_P.h: Likewise.
8501 * lib/unictype/categ_Pc.h: Likewise.
8502 * lib/unictype/categ_Pd.h: Likewise.
8503 * lib/unictype/categ_Pe.h: Likewise.
8504 * lib/unictype/categ_Pf.h: Likewise.
8505 * lib/unictype/categ_Pi.h: Likewise.
8506 * lib/unictype/categ_Po.h: Likewise.
8507 * lib/unictype/categ_Ps.h: Likewise.
8508 * lib/unictype/categ_S.h: Likewise.
8509 * lib/unictype/categ_Sc.h: Likewise.
8510 * lib/unictype/categ_Sk.h: Likewise.
8511 * lib/unictype/categ_Sm.h: Likewise.
8512 * lib/unictype/categ_So.h: Likewise.
8513 * lib/unictype/categ_Z.h: Likewise.
8514 * lib/unictype/categ_Zl.h: Likewise.
8515 * lib/unictype/categ_Zp.h: Likewise.
8516 * lib/unictype/categ_Zs.h: Likewise.
8517 * lib/unictype/categ_of.h: Likewise.
8518 * lib/unictype/combining.h: Likewise.
8519 * lib/unictype/ctype_alnum.h: Likewise.
8520 * lib/unictype/ctype_alpha.h: Likewise.
8521 * lib/unictype/ctype_blank.h: Likewise.
8522 * lib/unictype/ctype_cntrl.h: Likewise.
8523 * lib/unictype/ctype_digit.h: Likewise.
8524 * lib/unictype/ctype_graph.h: Likewise.
8525 * lib/unictype/ctype_lower.h: Likewise.
8526 * lib/unictype/ctype_print.h: Likewise.
8527 * lib/unictype/ctype_punct.h: Likewise.
8528 * lib/unictype/ctype_space.h: Likewise.
8529 * lib/unictype/ctype_upper.h: Likewise.
8530 * lib/unictype/ctype_xdigit.h: Likewise.
8531 * lib/unictype/decdigit.h: Likewise.
8532 * lib/unictype/digit.h: Likewise.
8533 * lib/unictype/mirror.h: Likewise.
8534 * lib/unictype/numeric.h: Likewise.
8535 * lib/unictype/pr_alphabetic.h: Likewise.
8536 * lib/unictype/pr_ascii_hex_digit.h: Likewise.
8537 * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
8538 * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
8539 * lib/unictype/pr_bidi_block_separator.h: Likewise.
8540 * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
8541 * lib/unictype/pr_bidi_common_separator.h: Likewise.
8542 * lib/unictype/pr_bidi_control.h: Likewise.
8543 * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
8544 * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
8545 * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
8546 * lib/unictype/pr_bidi_european_digit.h: Likewise.
8547 * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
8548 * lib/unictype/pr_bidi_left_to_right.h: Likewise.
8549 * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
8550 * lib/unictype/pr_bidi_other_neutral.h: Likewise.
8551 * lib/unictype/pr_bidi_pdf.h: Likewise.
8552 * lib/unictype/pr_bidi_segment_separator.h: Likewise.
8553 * lib/unictype/pr_bidi_whitespace.h: Likewise.
8554 * lib/unictype/pr_combining.h: Likewise.
8555 * lib/unictype/pr_composite.h: Likewise.
8556 * lib/unictype/pr_currency_symbol.h: Likewise.
8557 * lib/unictype/pr_dash.h: Likewise.
8558 * lib/unictype/pr_decimal_digit.h: Likewise.
8559 * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
8560 * lib/unictype/pr_deprecated.h: Likewise.
8561 * lib/unictype/pr_diacritic.h: Likewise.
8562 * lib/unictype/pr_extender.h: Likewise.
8563 * lib/unictype/pr_format_control.h: Likewise.
8564 * lib/unictype/pr_grapheme_base.h: Likewise.
8565 * lib/unictype/pr_grapheme_extend.h: Likewise.
8566 * lib/unictype/pr_grapheme_link.h: Likewise.
8567 * lib/unictype/pr_hex_digit.h: Likewise.
8568 * lib/unictype/pr_hyphen.h: Likewise.
8569 * lib/unictype/pr_id_continue.h: Likewise.
8570 * lib/unictype/pr_id_start.h: Likewise.
8571 * lib/unictype/pr_ideographic.h: Likewise.
8572 * lib/unictype/pr_ids_binary_operator.h: Likewise.
8573 * lib/unictype/pr_ids_trinary_operator.h: Likewise.
8574 * lib/unictype/pr_ignorable_control.h: Likewise.
8575 * lib/unictype/pr_iso_control.h: Likewise.
8576 * lib/unictype/pr_join_control.h: Likewise.
8577 * lib/unictype/pr_left_of_pair.h: Likewise.
8578 * lib/unictype/pr_line_separator.h: Likewise.
8579 * lib/unictype/pr_logical_order_exception.h: Likewise.
8580 * lib/unictype/pr_lowercase.h: Likewise.
8581 * lib/unictype/pr_math.h: Likewise.
8582 * lib/unictype/pr_non_break.h: Likewise.
8583 * lib/unictype/pr_not_a_character.h: Likewise.
8584 * lib/unictype/pr_numeric.h: Likewise.
8585 * lib/unictype/pr_other_alphabetic.h: Likewise.
8586 * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
8587 * lib/unictype/pr_other_grapheme_extend.h: Likewise.
8588 * lib/unictype/pr_other_id_continue.h: Likewise.
8589 * lib/unictype/pr_other_id_start.h: Likewise.
8590 * lib/unictype/pr_other_lowercase.h: Likewise.
8591 * lib/unictype/pr_other_math.h: Likewise.
8592 * lib/unictype/pr_other_uppercase.h: Likewise.
8593 * lib/unictype/pr_paired_punctuation.h: Likewise.
8594 * lib/unictype/pr_paragraph_separator.h: Likewise.
8595 * lib/unictype/pr_pattern_syntax.h: Likewise.
8596 * lib/unictype/pr_pattern_white_space.h: Likewise.
8597 * lib/unictype/pr_private_use.h: Likewise.
8598 * lib/unictype/pr_punctuation.h: Likewise.
8599 * lib/unictype/pr_quotation_mark.h: Likewise.
8600 * lib/unictype/pr_radical.h: Likewise.
8601 * lib/unictype/pr_sentence_terminal.h: Likewise.
8602 * lib/unictype/pr_soft_dotted.h: Likewise.
8603 * lib/unictype/pr_space.h: Likewise.
8604 * lib/unictype/pr_terminal_punctuation.h: Likewise.
8605 * lib/unictype/pr_titlecase.h: Likewise.
8606 * lib/unictype/pr_unassigned_code_value.h: Likewise.
8607 * lib/unictype/pr_unified_ideograph.h: Likewise.
8608 * lib/unictype/pr_uppercase.h: Likewise.
8609 * lib/unictype/pr_variation_selector.h: Likewise.
8610 * lib/unictype/pr_white_space.h: Likewise.
8611 * lib/unictype/pr_xid_continue.h: Likewise.
8612 * lib/unictype/pr_xid_start.h: Likewise.
8613 * lib/unictype/pr_zero_width.h: Likewise.
8614 * lib/unictype/scripts.h: Likewise.
8615 * lib/unictype/scripts_byname.gperf: Likewise.
8616 * lib/unictype/sy_c_ident.h: Likewise.
8617 * lib/unictype/sy_c_whitespace.h: Likewise.
8618 * lib/unictype/sy_java_ident.h: Likewise.
8619 * lib/unictype/sy_java_whitespace.h: Likewise.
8621 * lib/unictype/Makefile: New file.
8622 * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
8624 * lib/unictype/3level.h: New file, copied from glibc.
8625 * lib/unictype/3levelbit.h: New file.
8627 2007-11-11 Bruno Haible <bruno@clisp.org>
8629 * modules/gperf: New file.
8630 * modules/iconv_open (Depends-on): Add it.
8631 (Makefile.am): Remove the GPERF definition.
8633 2007-11-11 Bruno Haible <bruno@clisp.org>
8635 * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
8636 * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
8638 2007-11-11 Bruno Haible <bruno@clisp.org>
8640 * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
8641 (usage): Remove function.
8643 2007-11-11 Bruno Haible <bruno@clisp.org>
8645 * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
8647 * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
8649 * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
8651 * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
8652 * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
8653 * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
8655 2007-11-11 Bruno Haible <bruno@clisp.org>
8657 * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
8658 roundf were declared but do not exist on functions.
8659 * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
8660 roundl were declared but do not exist on functions.
8661 * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
8662 HAVE_FLOORL_AND_CEILL, respectively.
8663 Needed for Sun C on Solaris 10.
8665 2007-11-11 Bruno Haible <bruno@clisp.org>
8667 * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
8668 HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
8669 * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
8670 HAVE_DECL_ROUND. Remove redundant AC_SUBST.
8671 * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
8672 HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
8673 * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
8675 (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
8676 (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
8677 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
8678 of HAVE_DECL_ROUND*.
8679 * modules/math (Makefile.am): Update.
8681 2007-11-10 Bruno Haible <bruno@clisp.org>
8683 * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
8684 ptrdiff_t as m4/intl.m4.
8686 2007-11-10 Jim Meyering <meyering@redhat.com>
8688 Avoid link failure for the argmatch test.
8689 * tests/test-argmatch.c (usage): Define function to avoid a link
8690 failure: argmatch_die requires a usage function.
8692 2007-11-09 Bruno Haible <bruno@clisp.org>
8694 * doc/functions/snprintf.texi: Mention BeOS deficiency.
8695 * doc/functions/vsnprintf.texi: Likewise.
8696 * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
8697 with a size argument < 2.
8699 2007-11-09 Bruno Haible <bruno@clisp.org>
8701 * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
8702 buffer. Fixes an inefficiency introduced on 2007-11-03.
8704 2007-11-09 Bruno Haible <bruno@clisp.org>
8706 * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
8707 none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
8709 2007-11-08 Jim Meyering <meyering@redhat.com>
8711 Change cache variable name prefix "jm_" to "gl_" everywhere.
8712 * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
8713 * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
8714 * m4/uptime.m4: s/gl_/jm_/
8716 2007-11-07 Bruno Haible <bruno@clisp.org>
8718 Update to GNU gettext 0.17.
8719 * m4/intl.m4: Update to GNU gettext 0.17.
8720 * m4/po.m4: Likewise.
8721 * modules/gettext (Files): Remove m4/ulonglong.m4.
8722 (configure.ac): Require gettext infrastructure from version 0.17.
8724 2007-11-06 Bruno Haible <bruno@clisp.org>
8726 * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
8727 symbolic values are not defined in a public header.
8728 * lib/freadable.c (freadable) [QNX]: Likewise.
8729 * lib/freadahead.c (freadahead) [QNX]: Likewise.
8730 * lib/freading.c (freading) [QNX]: Likewise.
8731 * lib/fseterr.c (fseterr) [QNX]: Likewise.
8732 * lib/fwritable.c (fwritable) [QNX]: Likewise.
8733 * lib/fwriting.c (fwriting) [QNX]: Likewise.
8734 * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
8735 Reported by Alain Magloire.
8737 * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
8739 2007-11-05 Bruno Haible <bruno@clisp.org>
8741 * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
8742 code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
8743 Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
8744 Reported by Eric Blake.
8746 2007-10-27 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8747 Bruno Haible <bruno@clisp.org>
8749 * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
8750 * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
8751 * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
8752 (malloc): Undefine also before including <stdlib.h>.
8753 (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
8754 Needed on OSF/1 4.0.
8756 2007-11-05 Jim Meyering <meyering@redhat.com>
8758 git-version-gen: sync from coreutils.
8759 * build-aux/git-version-gen: Add comments.
8760 Change the first '-' to '.' in the snapshot version string,
8761 e.g., 6.9-377-08144 -> 6.9.377-08144
8762 Remove first parameter.
8763 Don't declare a version "-dirty" merely because a time
8766 2007-11-04 Bruno Haible <bruno@clisp.org>
8768 * lib/lock.h: Protect all macro definitions containing an 'if'
8769 statement through a "do { ... } while (0)".
8770 * lib/tls.h: Likewise.
8772 2007-11-04 Bruno Haible <bruno@clisp.org>
8774 * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
8776 2007-11-04 Bruno Haible <bruno@clisp.org>
8778 * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
8779 * modules/fprintf-posix (Depends-on): Add nocrash.
8780 * modules/snprintf-posix (Depends-on): Likewise.
8781 * modules/sprintf-posix (Depends-on): Likewise.
8782 * modules/vasnprintf-posix (Depends-on): Likewise.
8783 * modules/vasprintf-posix (Depends-on): Likewise.
8784 * modules/vfprintf-posix (Depends-on): Likewise.
8785 * modules/vsnprintf-posix (Depends-on): Likewise.
8786 * modules/vsprintf-posix (Depends-on): Likewise.
8787 * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
8788 * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
8789 * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
8790 * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
8791 * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
8792 * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
8793 * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
8795 2007-11-04 Bruno Haible <bruno@clisp.org>
8797 * modules/nocrash: New file.
8798 * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
8799 GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
8801 2007-11-04 Bruno Haible <bruno@clisp.org>
8803 * tests/test-vasnprintf-posix.c (test_function): Add some tests of
8805 * tests/test-vasprintf-posix.c (test_function): Likewise.
8806 * tests/test-snprintf-posix.h (test_function): Likewise.
8807 * tests/test-sprintf-posix.h (test_function): Likewise.
8809 Fix *printf behaviour for large precisions on mingw and BeOS.
8810 * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
8811 * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
8812 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
8813 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
8814 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
8815 gl_PRINTF_PRECISION and test its result. Invoke
8816 gl_PREREQ_VASNPRINTF_PRECISION.
8817 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
8818 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
8819 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
8820 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
8821 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
8822 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
8823 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
8824 * doc/functions/fprintf.texi: Update.
8825 * doc/functions/printf.texi: Update.
8826 * doc/functions/snprintf.texi: Update.
8827 * doc/functions/sprintf.texi: Update.
8828 * doc/functions/vfprintf.texi: Update.
8829 * doc/functions/vprintf.texi: Update.
8830 * doc/functions/vsnprintf.texi: Update.
8831 * doc/functions/vsprintf.texi: Update.
8833 2007-11-04 Bruno Haible <bruno@clisp.org>
8835 * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
8837 2007-11-04 Bruno Haible <bruno@clisp.org>
8839 * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
8840 Reported by Sylvain Beucler <beuc@gnu.org>.
8842 2007-11-03 Bruno Haible <bruno@clisp.org>
8844 * tests/test-fprintf-posix2.sh: New file.
8845 * tests/test-fprintf-posix2.c: New file.
8846 * modules/fprintf-posix-tests (Files): Add them.
8847 (TESTS): Add test-fprintf-posix2.sh.
8848 (configure.ac): Check for getrlimit and setrlimit.
8849 (check_PROGRAMS): Add test-fprintf-posix2.
8851 * tests/test-printf-posix2.sh: New file.
8852 * tests/test-printf-posix2.c: New file.
8853 * modules/printf-posix-tests (Files): Add them.
8854 (TESTS): Add test-printf-posix2.sh.
8855 (configure.ac): Check for getrlimit and setrlimit.
8856 (check_PROGRAMS): Add test-printf-posix2.
8858 Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
8859 * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
8860 * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
8861 (decode_double): New function, copied from decode_long_double.
8862 (scale10_round_decimal_decoded): New function, extracted from
8863 scale10_round_decimal_long_double.
8864 (scale10_round_decimal_long_double): Use it.
8865 (scale10_round_decimal_double): New function.
8866 (floorlog10): New function.
8867 (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
8868 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
8869 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
8870 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
8871 gl_PRINTF_ENOMEM and test its result. Invoke
8872 gl_PREREQ_VASNPRINTF_ENOMEM.
8873 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
8874 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
8875 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
8876 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
8877 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
8878 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
8879 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
8880 * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
8881 * modules/snprintf-posix (Depends-on): Likewise.
8882 * modules/sprintf-posix (Depends-on): Likewise.
8883 * modules/vasnprintf-posix (Depends-on): Likewise.
8884 * modules/vasprintf-posix (Depends-on): Likewise.
8885 * modules/vfprintf-posix (Depends-on): Likewise.
8886 * modules/vsnprintf-posix (Depends-on): Likewise.
8887 * modules/vsprintf-posix (Depends-on): Likewise.
8888 * doc/functions/fprintf.texi: Update.
8889 * doc/functions/printf.texi: Update.
8890 * doc/functions/snprintf.texi: Update.
8891 * doc/functions/sprintf.texi: Update.
8892 * doc/functions/vfprintf.texi: Update.
8893 * doc/functions/vprintf.texi: Update.
8894 * doc/functions/vsnprintf.texi: Update.
8895 * doc/functions/vsprintf.texi: Update.
8897 2007-11-03 Bruno Haible <bruno@clisp.org>
8899 * modules/frexp-nolibm-tests: New file.
8901 * modules/frexp-nolibm: New file.
8902 * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
8904 2007-11-03 Bruno Haible <bruno@clisp.org>
8906 * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
8907 value is C99 compliant.
8908 Needed for OSF/1 5.1.
8910 2007-11-03 Bruno Haible <bruno@clisp.org>
8912 Fix out-of-memory handling of vasnprintf.
8913 * lib/printf-parse.c: Include <errno.h>.
8914 (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
8915 * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
8918 2007-11-02 Eric Blake <ebb9@byu.net>
8920 Fix tests on cygwin.
8921 * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
8923 2007-11-01 Bruno Haible <bruno@clisp.org>
8925 * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
8927 * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
8928 needed for POSIX compatibility.
8930 2007-11-01 Paul Eggert <eggert@cs.ucla.edu>
8932 * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
8933 for compatibility with GNU.
8935 2007-11-01 Bruno Haible <bruno@clisp.org>
8937 * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
8938 (putenv): Renamed from rpl_putenv. Change argument type from
8939 'const char *' to 'char *'.
8940 * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
8941 of defining putenv in config.h, just set REPLACE_PUTENV.
8942 * modules/putenv (Depends-on): Add stdlib.
8943 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
8944 (Include): Use <stdlib.h>.
8945 * lib/stdlib.in.h (putenv): New declaration.
8946 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
8948 * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
8950 Needed for MacOS X 10.5.0.
8951 Reported by Peter O'Gorman <peter@pogma.com>.
8953 2007-11-01 Jim Meyering <meyering@redhat.com>
8955 Treat an empty date string exactly like "0".
8956 * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
8957 if the remaining date string (to be parsed) is empty, use "0".
8958 Reported by Mischa Molhoek and discussed in this thread:
8959 <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
8961 2007-10-31 Bruno Haible <bruno@clisp.org>
8963 * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
8964 AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
8965 * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
8966 AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
8967 * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
8968 * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
8970 2007-10-31 Bruno Haible <bruno@clisp.org>
8972 * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
8973 from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
8974 (AC_TYPE_LONG_LONG_INT): Use it.
8975 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
8977 * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
8979 * modules/stdint (Files): Remove m4/ulonglong.m4.
8980 * modules/strtoull (Files): Use m4/longlong.m4 instead of
8982 * modules/strtoumax (Files): Likewise.
8984 2007-10-30 Bruno Haible <bruno@clisp.org>
8986 * modules/xvasprintf-posix: New file.
8987 Suggested by Eric Blake.
8989 2007-10-30 Bruno Haible <bruno@clisp.org>
8991 * modules/xprintf-posix-tests: New file.
8992 * tests/test-xprintf-posix.sh: New file.
8993 * tests/test-xprintf-posix.c: New file.
8994 * tests/test-xfprintf-posix.c: New file.
8996 * modules/xprintf-posix: New file.
8998 2007-10-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9000 * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
9001 * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
9002 * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
9004 2007-10-29 Bruno Haible <bruno@clisp.org>
9006 * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
9007 contain the special marker '_cv_'.
9008 * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
9009 * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
9010 * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
9011 * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
9012 * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
9013 Reported by Ralf Wildenhues.
9015 2007-10-29 Bruno Haible <bruno@clisp.org>
9017 * gnulib-tool (func_import): When --lgpl is not specified, set
9018 sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
9020 Reported by Simon Josefsson.
9022 2007-10-28 Bruno Haible <bruno@clisp.org>
9024 * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
9025 * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
9027 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
9028 * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
9031 2007-10-28 Bruno Haible <bruno@clisp.org>
9033 * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
9034 integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
9036 2007-10-28 Bruno Haible <bruno@clisp.org>
9038 Fix link errors with Sun C 5.0 on Solaris 10.
9039 * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
9040 function is declared but not present in the compiler's libm.
9041 * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
9042 * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
9043 * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
9044 * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
9045 Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
9046 Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
9047 Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
9048 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
9049 * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
9050 HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
9051 REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
9054 2007-10-28 Bruno Haible <bruno@clisp.org>
9056 * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
9057 gl_FUNC_FLOORL. Cache the result.
9058 (gl_FUNC_FLOORL): Use it.
9059 * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
9060 gl_FUNC_CEILL. Cache the result.
9061 (gl_FUNC_CEILL): Use it.
9063 * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
9064 gl_FUNC_FLOOR. Cache the result.
9065 (gl_FUNC_FLOOR): Use it.
9066 * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
9067 gl_FUNC_CEIL. Cache the result.
9068 (gl_FUNC_CEIL): Use it.
9070 * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
9071 gl_FUNC_FLOORF. Cache the result.
9072 (gl_FUNC_FLOORF): Use it.
9073 * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
9074 gl_FUNC_CEILF. Cache the result.
9075 (gl_FUNC_CEILF): Use it.
9077 2007-10-28 Bruno Haible <bruno@clisp.org>
9079 * gnulib-tool: Allow specifying the LGPL version number through
9080 --lgpl=2 or --lgpl=3.
9081 (func_usage): Document --lgpl with argument.
9082 Handle --lgpl=... arguments.
9083 (func_import): Recognize also gl_LGPL calls with an argument. When
9084 --lgpl=2 is used and the module's license is just LGPL, report an
9085 error. Set sed_transform_lib_file according to the lgpl variable. In
9086 the generated files, use --lgpl or gl_LGPL invocations with argument,
9088 * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
9090 * doc/gnulib-tool.texi (Modified imports): Update explanation of
9093 2007-10-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9094 Bruno Haible <bruno@clisp.org>
9096 * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
9097 (u16_uctomb_aux): Likewise.
9098 * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
9100 * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
9102 2007-10-28 Bruno Haible <bruno@clisp.org>
9104 * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
9105 Invoke AM_GETTEXT_OPTION if it exists.
9106 * modules/vasprintf: Likewise.
9107 * modules/verror: Likewise.
9108 * modules/xprintf: Likewise.
9109 * modules/xvasprintf: Likewise.
9111 2007-10-27 Ben Pfaff <blp@gnu.org>
9113 * lib/math.in.h: Define isfinite macro and prototypes for
9114 gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
9116 * m4/math_h.m4: New substitutions for isfinite module.
9117 * lib/isfinite.c: New file.
9118 * m4/isfinite.m4: New file.
9119 * modules/math: Replace isfinite-related @VARS@ in math.in.h.
9120 * modules/isfinite: New file.
9121 * modules/isfinite-tests: New file.
9122 * tests/tests-isfinite.c: New file.
9123 * doc/functions/isfinite.texi: Mention isfinite module.
9124 * MODULES.html.sh: Mention new module.
9126 2007-10-27 Ben Pfaff <blp@gnu.org>
9128 Ralf Wildenhues reported that Tru64 4.0D declares the round
9129 functions but does not have definitions.
9130 * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
9131 cannot be found in any library, set the output variable to
9132 "missing" instead of "".
9133 * m4/round.m4: Also use our substitute if we cannot find round in
9134 any library, even if it is declared.
9135 * m4/roundf.m4: Likewise for roundf.
9136 * m4/roundl.m4: Likewise for roundl.
9137 * lib/math.in.h: Undefine roundf, round, roundl before defining
9138 their replacements, to allow for hypothetical systems where these
9139 may be defined as macros but not available in libraries.
9141 2007-10-27 Bruno Haible <bruno@clisp.org>
9143 * doc/gnulib.texi: Invoke @firstparagraphindent.
9144 * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
9146 (Source changes): New section.
9148 2007-10-26 Bruno Haible <bruno@clisp.org>
9150 * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
9151 borrowed from autoconf.
9153 2007-10-26 Bruno Haible <bruno@clisp.org>
9155 * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
9156 strerror returned the empty string. Needed on HP-UX 11.00.
9158 2007-10-24 Micah Cowan <micah@cowan.name>
9160 Remove vestiges of cvs-gnulib-checkout process. Now we use git.
9161 * build-aux/bootstrap: Remove support for now-unnecessary option,
9162 --cvs-user, and envvars CVS_USER, CVS_RSH.
9164 2007-10-24 Jim Meyering <meyering@redhat.com>
9166 Avoid diagnostics from sha1sum when there is no cached checksum.
9167 * build-aux/bootstrap (update_po_files): Skip the sha1sum check
9168 if the po.s1 file hasn't been created yet.
9170 * build-aux/bootstrap: Sync from coreutils:
9171 2007-10-24 Jim Meyering <meyering@redhat.com>
9172 Get gnulib from the git repository, not from an obsolete cvs one.
9173 * build-aux/bootstrap: Suggestion from Micah Cowan.
9174 2007-10-04 Jim Meyering <jim@meyering.net>
9175 * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
9176 (update_po_files): Work also when there are no .po files in po/.
9178 2007-10-24 Paul Eggert <eggert@cs.ucla.edu>
9180 * README: Append ".git" to git and cg examples.
9181 Problem reported by Benoit Sigoure.
9183 2007-10-23 Micah Cowan <micah@cowan.name>
9185 * users.txt: Add wget.
9187 2007-10-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9189 Fix linking of some unistdio tests on FreeBSD.
9190 * modules/unistdio/u16-vsnprintf-tests
9191 (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
9192 * modules/unistdio/u16-vsprintf-tests
9193 (test_u16_vsnprintf1_LDADD): Likewise.
9194 * modules/unistdio/u32-vsnprintf-tests
9195 (test_u32_vsnprintf1_LDADD): Likewise.
9196 * modules/unistdio/u32-vsprintf-tests
9197 (test_u32_vsprintf1_LDADD): Likewise.
9198 * modules/unistdio/u8-vsnprintf-tests
9199 (test_u8_vsnprintf1_LDADD): Likewise.
9200 * modules/unistdio/u8-vsprintf-tests
9201 (test_u8_vsprintf1_LDADD): Likewise.
9202 * modules/unistdio/ulc-vsnprintf-tests
9203 (test_ulc_vsnprintf1_LDADD): Likewise.
9204 * modules/unistdio/ulc-vsprintf-tests
9205 (test_ulc_vsprintf1_LDADD): Likewise.
9207 Fix linking of some uniconv tests on FreeBSD.
9208 * modules/uniconv/u16-conv-from-enc-tests
9209 (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
9210 * modules/uniconv/u16-conv-to-enc-tests
9211 (test_u16_conv_to_enc_LDADD): Likewise.
9212 * modules/uniconv/u16-strconv-from-enc-tests
9213 (test_u16_strconv_from_enc_LDADD): Likewise.
9214 * modules/uniconv/u16-strconv-to-enc-tests
9215 (test_u16_strconv_to_enc_LDADD): Likewise.
9216 * modules/uniconv/u32-conv-from-enc-tests
9217 (test_u32_conv_from_enc_LDADD): Likewise.
9218 * modules/uniconv/u32-conv-to-enc-tests
9219 (test_u32_conv_to_enc_LDADD): Likewise.
9220 * modules/uniconv/u32-strconv-from-enc-tests
9221 (test_u32_strconv_from_enc_LDADD): Likewise.
9222 * modules/uniconv/u32-strconv-to-enc-tests
9223 (test_u32_strconv_to_enc_LDADD): Likewise.
9224 * modules/uniconv/u8-conv-from-enc-tests
9225 (test_u8_conv_from_enc_LDADD): Likewise.
9226 * modules/uniconv/u8-conv-to-enc-tests
9227 (test_u8_conv_to_enc_LDADD): Likewise.
9228 * modules/uniconv/u8-strconv-from-enc-tests
9229 (test_u8_strconv_from_enc_LDADD): Likewise.
9230 * modules/uniconv/u8-strconv-to-enc-tests
9231 (test_u8_strconv_to_enc_LDADD): Likewise.
9233 2007-10-22 Bruno Haible <bruno@clisp.org>
9235 * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
9238 2007-10-22 Eric Blake <ebb9@byu.net>
9240 Tweak x*printf documentation.
9241 * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
9242 variable name and comments.
9243 Suggested by Bruno Haible.
9245 2007-10-22 Bruno Haible <bruno@clisp.org>
9247 * lib/acl.c (copy_acl): Fix file name in comment.
9249 2007-10-22 Paul Eggert <eggert@cs.ucla.edu>
9251 Fix Tru64 problem with stdbool.h.
9252 * lib/stdbool.in.h (false, true):
9253 [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
9254 Don't declare as an enum in this situation; it runs afoul of Tru64.
9255 Problem reported by Steven M. Schweda in
9256 <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
9258 2007-10-22 Eric Blake <ebb9@byu.net>
9260 Also wrap vf?printf.
9261 * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
9262 * lib/xprintf.c (xprintf, xfprintf): Work for C89.
9263 (xvprintf, xvfprintf): New functions.
9265 2007-10-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9267 * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
9268 @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
9270 * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
9271 * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
9273 2007-10-22 Paul Eggert <eggert@cs.ucla.edu>
9275 * lib/acl.c (copy_acl): Adjust to IRIX 6.5. Problem reported
9278 2007-10-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9281 [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
9282 Undef `sys' after including sys/table.h, for Tru64 4.0D.
9284 * tests/test-i-ring.c: Work for C89.
9286 2007-10-22 Bruno Haible <bruno@clisp.org>
9288 * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
9289 -1u, in preprocessor expression, so that we don't test for the bug
9290 in HP-UX 11.00 cpp. Testing for this bug caused problems; see
9291 <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
9293 2007-10-22 Eric Blake <ebb9@byu.net>
9295 * tests/test-yesno.sh: Silence stderr during test.
9297 2007-10-22 Simon Josefsson <simon@josefsson.org>
9299 * modules/crypto/gc-camellia: New file.
9301 * m4/gc-camellia.m4: New file.
9303 * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
9305 * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
9307 2007-10-22 Simon Josefsson <simon@josefsson.org>
9309 * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
9310 --help to stdout. Reported by sms@antinode.org (Steven
9313 2007-10-22 Simon Josefsson <simon@josefsson.org>
9315 * users.txt: Fix link to libksba.
9317 2007-10-21 Ben Pfaff <blp@gnu.org>
9319 * modules/roundf-tests: Add dependency on floorf, ceilf to allow
9320 round.c roundf implementation that depends on floorf and ceilf to
9321 be tested unconditionally.
9323 2007-10-21 Ben Pfaff <blp@gnu.org>
9325 * m4/check-libm-func.m4: Removed.
9326 * m4/check-math-lib.m4: New file.
9327 * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
9328 * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
9329 definition and lack of AC_LIBOBJ([roundf]).
9330 * m4/roundl.m4: Ditto, and similarly for roundl.
9331 * modules/round: Reference new m4 file.
9332 * modules/roundf: Ditto.
9333 * modules/roundl: Ditto.
9334 * tests/test-round2.c (main): Use ROUND instead of round.
9335 Bug report from Bruno Haible.
9337 2007-10-21 Bruno Haible <bruno@clisp.org>
9339 * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
9342 2007-10-21 Bruno Haible <bruno@clisp.org>
9344 * tests/test-wcwidth.c (main): Allow negative result for some control
9347 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
9348 Needed on OSF/1 5.1.
9350 2007-10-21 Bruno Haible <bruno@clisp.org>
9352 * tests/test-floorf1.c: Include isnanf.h.
9353 (main): Use isnanf() instead of isnan().
9354 * tests/test-ceilf1.c: Include isnanf.h.
9355 (main): Use isnanf() instead of isnan().
9356 * tests/test-truncf1.c: Include isnanf.h.
9357 (main): Use isnanf() instead of isnan().
9358 * tests/test-roundf1.c: Include isnanf.h.
9359 (main): Use isnanf() instead of isnan().
9361 2007-10-21 Eric Blake <ebb9@byu.net>
9363 * users.txt: Update URL for m4.
9365 2007-10-21 Bruno Haible <bruno@clisp.org>
9367 * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
9369 2007-10-21 Bruno Haible <bruno@clisp.org>
9371 * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
9372 Git's management files if the CVS files are not present.
9374 2007-10-20 Bruno Haible <bruno@clisp.org>
9376 * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
9379 2007-10-20 Ben Pfaff <blp@gnu.org>
9381 * lib/math.in.h: Declare round, roundf, roundl if we are providing
9383 * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
9384 * lib/round.c: New file.
9385 * lib/roundf.c: New file.
9386 * lib/roundl.c: New file.
9387 * m4/round.m4: New file.
9388 * m4/roundf.m4: New file.
9389 * m4/roundl.m4: New file.
9390 * m4/check-libm-func-m4: New file.
9391 * modules/math: Replace round, roundf, roundl related @VARS@ in
9393 * modules/round: New file.
9394 * modules/round-tests: New file.
9395 * modules/roundf: New file.
9396 * modules/roundf-tests: New file.
9397 * modules/roundl: New file.
9398 * modules/roundl-tests: New file.
9399 * tests/test-round1.c: New file.
9400 * tests/test-round2.c: New file.
9401 * tests/test-roundf1.c: New file.
9402 * tests/test-roundf2.c: New file.
9403 * tests/test-roundl.c: New file.
9404 * doc/functions/round.texi: Mention round module.
9405 * doc/functions/roundf.texi: Mention roundf module.
9406 * doc/functions/roundl.texi: Mention roundl module.
9407 * MODULES.html.sh: Mention new modules.
9408 Thanks to Bruno Haible for suggestions.
9410 2007-10-20 Jim Meyering <meyering@redhat.com>
9412 * lib/xprintf.c: Include <config.h> unconditionally.
9414 Change xprintf's license to GPL.
9415 * modules/xprintf (License): s/LGPL/GPL/, since this module
9416 depends on modules (exit and exitfail) which are GPL.
9417 Suggestion from Bruno Haible.
9420 * lib/xprintf.c (xprintf, xfprintf): Use va_end.
9421 Use a clearer diagnostic.
9422 Patch from Bruno Haible.
9424 2007-10-20 Bruno Haible <bruno@clisp.org>
9426 * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
9427 length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
9428 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
9430 2007-10-20 Bruno Haible <bruno@clisp.org>
9432 * tests/test-floorf2.c (correct_result_p): Don't rely on excess
9433 precision in the comparison result > x - 1 or similar.
9434 * tests/test-ceilf2.c (correct_result_p): Likewise.
9435 * tests/test-truncf2.c (correct_result_p): Likewise.
9436 * tests/test-trunc2.c (correct_result_p): Likewise.
9437 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
9439 2007-10-20 Bruno Haible <bruno@clisp.org>
9441 * modules/ceil: New file.
9442 * m4/ceil.m4: New file.
9443 * doc/functions/ceil.texi: Mention the 'ceil' module.
9445 2007-10-20 Bruno Haible <bruno@clisp.org>
9447 * modules/floor: New file.
9448 * m4/floor.m4: New file.
9449 * doc/functions/floor.texi: Mention the 'floor' module.
9451 2007-10-20 Bruno Haible <bruno@clisp.org>
9453 * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
9455 * modules/floorf-tests (Depends-on): Likewise.
9456 * modules/truncf-tests (Depends-on): Likewise.
9457 * modules/trunc-tests (Depends-on): Likewise.
9458 Reported by Ben Pfaff.
9460 2007-10-19 Jim Meyering <meyering@redhat.com>
9462 * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
9463 Don't bother testing specific errno values. Just test ferror.
9466 * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
9468 2007-10-19 Bruno Haible <bruno@clisp.org>
9470 * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
9472 * modules/javaexec (Makefile.am): Likewise.
9473 * modules/relocatable-prog (Makefile.am): Likewise.
9474 Suggested by Jim Meyering.
9476 2007-10-18 Bruno Haible <bruno@clisp.org>
9478 * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
9479 Reported by Jim Meyering.
9481 2007-10-18 Eric Blake <ebb9@byu.net>
9483 * modules/filenamecat-tests (Makefile.am): Link against -lintl.
9485 2007-10-18 Bruno Haible <bruno@clisp.org>
9487 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
9488 the format string into writable memory. Needed in Fortify conditions.
9490 2007-10-18 Colin Watson <cjwatson@debian.org> (tiny change)
9491 Bruno Haible <bruno@clisp.org>
9493 * lib/trim.c: Include config.h unconditionally. Include trim.h always.
9494 Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
9495 * modules/trim (Depends-on): Add mbchar.
9496 (configure.ac): Add gl_FUNC_MBRTOWC.
9497 (Makefile.am): Augment lib_SOURCES.
9499 2007-10-17 Paul Eggert <eggert@cs.ucla.edu>
9501 Modify glob.c to use fstatat and dirfd, to simplify it.
9502 Suggested by Eric Blake.
9503 * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
9504 Don't include <stdbool.h>; not used.
9505 (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
9506 (link_exists_p): Simplify implementation, since we can now assume
9508 * modules/glob (Depends-on): Add dirfd, openat. Remove stdbool.
9510 2007-10-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9512 * gnulib-tool (func_get_dependencies): Fix sed script to
9515 2007-10-17 Bruno Haible <bruno@clisp.org>
9517 * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
9518 allow locale names without encoding suffix.
9519 * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
9520 * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
9522 2007-10-16 Bruno Haible <bruno@clisp.org>
9524 * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
9525 * lib/getgroups.c (getgroups): Likewise.
9526 * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
9528 2007-10-16 Bruno Haible <bruno@clisp.org>
9530 * modules/absolute-header (License): Change from LGPL to LGPLv2+.
9531 * modules/malloc-posix (License): Likewise.
9532 * modules/realloc-posix (License): Likewise.
9533 * modules/calloc-posix (License): Likewise.
9534 * modules/intprops (License): Change from GPL to LGPL, with
9535 Paul Eggert's approval.
9537 2007-10-16 Paul Eggert <eggert@cs.ucla.edu>
9539 Merge glibc changes into lib/glob.c.
9541 * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
9542 2007-10-15 04:59:03 UTC. Here are the changes:
9544 2007-10-14 Ulrich Drepper <drepper@redhat.com>
9546 * lib/glob.c: Reimplement link_exists_p to use fstatat64.
9548 * lib/glob.c: Add some branch prediction throughout.
9550 2007-10-07 Ulrich Drepper <drepper@redhat.com>
9553 * lib/glob.c (glob): Recognize patterns starting \/.
9555 2007-02-14 Jakub Jelinek <jakub@redhat.com>
9558 * lib/glob.c (attribute_hidden): Define if not defined.
9559 (glob): Unescape dirname, filename or username when needed and not
9560 GLOB_NOESCAPE. Handle \/ correctly. Handle GLOB_MARK if filename
9561 is NULL. Handle unescaped [ in pattern without closing ].
9562 Don't pass GLOB_CHECK down to recursive glob for directories.
9563 (__glob_pattern_type): New function.
9564 (__glob_pattern_p): Implement using __glob_pattern_type.
9565 (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
9566 characters and backslashes if not GLOB_NOESCAPE or unterminated [.
9567 Remove unreachable code.
9569 2006-09-30 Ulrich Drepper <drepper@redhat.com>
9571 * lib/glob.c (glob_in_dir): Add some comments and asserts to
9572 explain why there are no leaks.
9574 2006-09-25 Jakub Jelinek <jakub@redhat.com>
9577 * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
9578 time, rather allocate increasingly bigger arrays of pointers, if
9579 possible with alloca, if too large with malloc.
9581 2007-10-16 Paul Eggert <eggert@cs.ucla.edu>
9583 Check for 64-bit int errors in HP-UX 10.20 preprocessor.
9584 Problem reported by H.Merijn Brand in
9585 <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
9586 * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
9587 * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
9589 2007-10-15 Bruno Haible <bruno@clisp.org>
9591 * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
9592 with explicit rpl_ prefix.
9593 * lib/fopen.c (fopen): Likewise.
9594 * lib/freopen.c (freopen): Likewise.
9595 * lib/iconv.c (iconv): Likewise.
9596 * lib/iconv_close.c (iconv_close): Likewise.
9598 2007-10-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9600 * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
9602 2007-10-15 Bruno Haible <bruno@clisp.org>
9604 * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
9605 <stddef.h> instead of <stdlib.h> since we only need NULL.
9606 Reported by Ben Pfaff <blp@cs.stanford.edu>.
9608 2007-10-15 Bruno Haible <bruno@clisp.org>
9610 * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
9611 Replace paragraph talking about LIBOBJS.
9612 Reported by Colin Watson <cjwatson@debian.org>.
9614 2007-10-15 Bruno Haible <bruno@clisp.org>
9616 * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
9617 <stdlib.h> before using NULL.
9619 2007-10-15 Simon Josefsson <simon@josefsson.org>
9621 * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
9622 Reported by Albert Chin <china@thewrittenword.com>.
9624 2007-10-14 Bruno Haible <bruno@clisp.org>
9626 * modules/iconv_open-utf-tests: New file.
9627 * tests/test-iconv-utf.c: New file.
9629 Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
9630 * modules/iconv_open-utf: New file.
9631 * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
9632 (iconv, iconv_close): New declarations.
9633 * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
9635 (iconv_open): Add special handling of conversion between UTF-8 and
9637 * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
9638 * lib/iconv_close.c: New file.
9639 * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
9641 (gl_FUNC_ICONV_OPEN): Use it.
9642 (gl_FUNC_ICONV_OPEN_UTF): New macro.
9643 * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
9644 and REPLACE_ICONV_UTF.
9645 * modules/iconv_open (Depends-on): Add c-strcase.
9646 (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
9648 * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
9650 2007-10-13 Albert Chin <china@thewrittenword.com>
9651 Bruno Haible <bruno@clisp.org>
9653 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
9654 through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
9656 2007-10-13 Bruno Haible <bruno@clisp.org>
9658 * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
9659 defined, use the ISO C99 inline semantics.
9660 * lib/argp.h (ARGP_EI): Likewise.
9662 2007-10-13 Bruno Haible <bruno@clisp.org>
9664 Handle 'inline' change in gcc 4.3.0.
9665 * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
9666 argp_fmtstream_write, argp_fmtstream_set_lmargin,
9667 argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
9668 argp_fmtstream_point): Disable 'extern' declaration if the function
9669 definition is going to be provided inline.
9670 (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
9671 semantics, not the ISO C99 inline semantics.
9672 * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
9673 'extern' declaration if the function definition is going to be provided
9675 (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
9676 the GNU C inline semantics, not the ISO C99 inline semantics. With
9677 GCC 4.2, avoid a warning.
9679 2007-10-13 Bruno Haible <bruno@clisp.org>
9681 * lib/freading.h (freading): Enable the use of __freading for
9683 * lib/freading.c (freading): Likewise.
9685 2007-10-12 Paul Eggert <eggert@cs.ucla.edu>
9687 * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
9688 "warning: C99 inline functions are not supported; using GNU89".
9690 2007-10-12 Bruno Haible <bruno@clisp.org>
9692 * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
9694 * tests/test-ceilf2.c: New file.
9695 * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
9697 * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
9698 * modules/ceilf-tests: Update.
9700 2007-10-12 Bruno Haible <bruno@clisp.org>
9702 * lib/floor.c (FUNC): Avoid rounding errors for values near a power
9704 * tests/test-floorf2.c: New file.
9705 * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
9707 * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
9708 * modules/floorf-tests: Update.
9710 2007-10-12 Bruno Haible <bruno@clisp.org>
9712 * tests/test-trunc2.c: New file.
9713 * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
9715 * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
9716 * modules/trunc-tests: Update.
9718 2007-10-12 Bruno Haible <bruno@clisp.org>
9720 * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
9722 * tests/test-truncf2.c: New file.
9723 * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
9725 * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
9726 * modules/truncf-tests: Update.
9728 2007-10-11 Eric Blake <ebb9@byu.net>
9730 Don't claim strerror is broken on Interix.
9731 * doc/functions/strerror.texi (strerror): Known broken systems are
9732 now Solaris 8, and not Interix.
9733 * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
9734 Interix on cross-compile.
9735 Reported by Martin Koeppe in
9736 http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
9738 2007-10-11 Bruno Haible <bruno@clisp.org>
9740 * modules/i-ring-tests: New file.
9741 * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
9744 2007-10-11 Bruno Haible <bruno@clisp.org>
9746 * modules/filenamecat-tests: New file.
9747 * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
9748 * lib/filenamecat.c: Remove test code.
9750 2007-10-11 Paul Eggert <eggert@cs.ucla.edu>
9752 Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
9754 * lib/strerror.c: Include <string.h> always, to test interface,
9755 and to remove the need for the dummy.
9756 Include intprops.h to compute width instead of doing it ourselves
9757 and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
9758 (strerror): Define it to return NULL if there's no system strerror.
9759 (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
9760 Omit !HAVE_STRERROR code. We don't need to worry about supporting
9761 ancient pre-strerror Unix systems well any more. Saying "unknown
9762 system error" is enough.
9763 * lib/string.in.h (strerror): Simplify the ifdef to reflect the
9764 simpler strerror.c implementation.
9765 * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
9766 Simplify the tests to reflect the simpler strerror implementation.
9767 * modules/strerror (Depends-on): Add intprops.
9769 2007-10-09 Eric Blake <ebb9@byu.net>
9771 Silence test-fpending.
9772 * modules/fpending-tests (Files): Add wrapper script.
9773 * tests/test-fpending.sh: New file.
9775 2007-10-09 Bruno Haible <bruno@clisp.org>
9777 * MODULES.html.sh (func_module): Don't create a hyperlink for
9778 function names like 'printf_frexp'.
9779 (Misc): Add crc, memxor.
9780 (Characteristics of floating types): New section.
9781 (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
9782 isnanf-nolibm, signbit, trunc, truncf, truncl.
9783 (Enhancements for ISO C 99 functions): New subsection Input/output.
9784 (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
9785 fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
9786 locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
9787 (Compatibility checks for POSIX:2001 functions): Add clock-time.
9788 (Enhancements for POSIX:2001 functions): Add chdir-long.
9789 (File system functions): Add areadlink, chdir-safer, read-file.
9791 (File system as inode set): New section.
9792 (Date and time): Add gethrxtime.
9793 (Multithreading): Add openmp.
9794 (Internationalization functions): Add localename.
9795 (Unicode string functions): Add unistr/u*-mbsnlen.
9796 (Support for maintaining and releasing projects): Add git-version-gen.
9797 (Lone files): Remove directories.
9799 2007-10-08 Ben Pfaff <blp@gnu.org>
9801 * lib/xmalloca.h: Fix typo in comment.
9803 2007-10-08 Paul Eggert <eggert@cs.ucla.edu>
9805 * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
9806 when avoiding problems with integer overflow. Use a portable test
9809 2007-10-08 Simon Josefsson <simon@josefsson.org>
9811 * modules/dummy (License): Change to LGPLv2+.
9812 * modules/float (License): Likewise
9813 * modules/realloc (License): Likewise
9814 * modules/stdlib (License): Likewise
9816 2007-10-07 Bruno Haible <bruno@clisp.org>
9818 * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
9819 * floor.c (TWO_MANT_DIG): Likewise.
9820 * ceil.c (TWO_MANT_DIG): Likewise.
9821 Reported by Ben Pfaff.
9823 2007-10-07 Bruno Haible <bruno@clisp.org>
9825 Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
9826 * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
9827 * lib/frexp.c (FUNC): Likewise.
9828 * lib/printf-frexp.h (printf_frexp): Likewise.
9829 * lib/printf-frexpl.h (printf_frexpl): Likewise.
9830 * lib/printf-frexp.c (FUNC): Likewise.
9831 Suggested by Jim Meyering.
9833 2007-10-07 Jim Meyering <meyering@redhat.com>
9835 Make xnanosleep's integer overflow test more robust.
9836 * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
9837 so that gcc-4.3.0 doesn't optimize away this test for overflow.
9839 2007-10-07 Bruno Haible <bruno@clisp.org>
9841 * NEWS: Mention the license change.
9843 * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
9844 abbreviations in the modules files.
9846 Change copyright notice from GPLv2+ to GPLv3+.
9847 * README: Change copyright notice.
9848 * MODULES.html.sh: Likewise.
9849 * build-aux/bootstrap.conf: Likewise.
9850 * build-aux/config.libpath: Likewise.
9851 * build-aux/csharpcomp.sh.in: Likewise.
9852 * build-aux/csharpexec.sh.in: Likewise.
9853 * build-aux/install-reloc: Likewise.
9854 * build-aux/javacomp.sh.in: Likewise.
9855 * build-aux/javaexec.sh.in: Likewise.
9856 * build-aux/ldd.sh.in: Likewise.
9857 * build-aux/reloc-ldflags: Likewise.
9858 * build-aux/relocatable.sh.in: Likewise.
9859 * build-aux/x-to-1.in: Likewise.
9860 * check-module: Likewise.
9861 * config/srclistvars.sh: Likewise.
9862 * gnulib-tool: Likewise.
9863 * lib/acl-internal.h: Likewise.
9864 * lib/acl.c: Likewise.
9865 * lib/acl.h: Likewise.
9866 * lib/acl_entries.c: Likewise.
9867 * lib/areadlink-with-size.c: Likewise.
9868 * lib/areadlink.c: Likewise.
9869 * lib/areadlink.h: Likewise.
9870 * lib/argmatch.c: Likewise.
9871 * lib/argmatch.h: Likewise.
9872 * lib/argp-ba.c: Likewise.
9873 * lib/argp-eexst.c: Likewise.
9874 * lib/argp-fmtstream.c: Likewise.
9875 * lib/argp-fmtstream.h: Likewise.
9876 * lib/argp-fs-xinl.c: Likewise.
9877 * lib/argp-help.c: Likewise.
9878 * lib/argp-namefrob.h: Likewise.
9879 * lib/argp-parse.c: Likewise.
9880 * lib/argp-pin.c: Likewise.
9881 * lib/argp-pv.c: Likewise.
9882 * lib/argp-pvh.c: Likewise.
9883 * lib/argp-xinl.c: Likewise.
9884 * lib/argp.h: Likewise.
9885 * lib/at-func.c: Likewise.
9886 * lib/atanl.c: Likewise.
9887 * lib/backupfile.c: Likewise.
9888 * lib/backupfile.h: Likewise.
9889 * lib/basename.c: Likewise.
9890 * lib/binary-io.h: Likewise.
9891 * lib/byteswap.in.h: Likewise.
9892 * lib/c-stack.c: Likewise.
9893 * lib/c-stack.h: Likewise.
9894 * lib/c-strcasestr.c: Likewise.
9895 * lib/c-strcasestr.h: Likewise.
9896 * lib/c-strstr.c: Likewise.
9897 * lib/c-strstr.h: Likewise.
9898 * lib/c-strtod.c: Likewise.
9899 * lib/calloc.c: Likewise.
9900 * lib/canon-host.c: Likewise.
9901 * lib/canon-host.h: Likewise.
9902 * lib/canonicalize-lgpl.c: Likewise.
9903 * lib/canonicalize.c: Likewise.
9904 * lib/canonicalize.h: Likewise.
9905 * lib/ceil.c: Likewise.
9906 * lib/ceilf.c: Likewise.
9907 * lib/ceill.c: Likewise.
9908 * lib/chdir-long.c: Likewise.
9909 * lib/chdir-long.h: Likewise.
9910 * lib/chdir-safer.c: Likewise.
9911 * lib/chdir-safer.h: Likewise.
9912 * lib/chown.c: Likewise.
9913 * lib/classpath.c: Likewise.
9914 * lib/classpath.h: Likewise.
9915 * lib/clean-temp.c: Likewise.
9916 * lib/clean-temp.h: Likewise.
9917 * lib/cloexec.c: Likewise.
9918 * lib/close-stream.c: Likewise.
9919 * lib/closein.c: Likewise.
9920 * lib/closein.h: Likewise.
9921 * lib/closeout.c: Likewise.
9922 * lib/closeout.h: Likewise.
9923 * lib/concat-filename.c: Likewise.
9924 * lib/copy-file.c: Likewise.
9925 * lib/copy-file.h: Likewise.
9926 * lib/count-one-bits.h: Likewise.
9927 * lib/crc.c: Likewise.
9928 * lib/crc.h: Likewise.
9929 * lib/creat-safer.c: Likewise.
9930 * lib/csharpcomp.c: Likewise.
9931 * lib/csharpcomp.h: Likewise.
9932 * lib/csharpexec.c: Likewise.
9933 * lib/csharpexec.h: Likewise.
9934 * lib/cycle-check.c: Likewise.
9935 * lib/cycle-check.h: Likewise.
9936 * lib/diacrit.c: Likewise.
9937 * lib/diacrit.h: Likewise.
9938 * lib/diffseq.h: Likewise.
9939 * lib/dirchownmod.c: Likewise.
9940 * lib/dirent.in.h: Likewise.
9941 * lib/dirfd.c: Likewise.
9942 * lib/dirfd.h: Likewise.
9943 * lib/dirname.c: Likewise.
9944 * lib/dirname.h: Likewise.
9945 * lib/dummy.c: Likewise.
9946 * lib/dup-safer.c: Likewise.
9947 * lib/dup2.c: Likewise.
9948 * lib/eealloc.h: Likewise.
9949 * lib/error.c: Likewise.
9950 * lib/error.h: Likewise.
9951 * lib/euidaccess.c: Likewise.
9952 * lib/exclude.c: Likewise.
9953 * lib/exclude.h: Likewise.
9954 * lib/execute.c: Likewise.
9955 * lib/execute.h: Likewise.
9956 * lib/exitfail.c: Likewise.
9957 * lib/exitfail.h: Likewise.
9958 * lib/expl.c: Likewise.
9959 * lib/fatal-signal.c: Likewise.
9960 * lib/fatal-signal.h: Likewise.
9961 * lib/fbufmode.c: Likewise.
9962 * lib/fbufmode.h: Likewise.
9963 * lib/fchdir.c: Likewise.
9964 * lib/fchmodat.c: Likewise.
9965 * lib/fchownat.c: Likewise.
9966 * lib/fcntl--.h: Likewise.
9967 * lib/fcntl-safer.h: Likewise.
9968 * lib/fcntl.in.h: Likewise.
9969 * lib/fd-safer.c: Likewise.
9970 * lib/fflush.c: Likewise.
9971 * lib/file-has-acl.c: Likewise.
9972 * lib/file-set.c: Likewise.
9973 * lib/file-type.c: Likewise.
9974 * lib/file-type.h: Likewise.
9975 * lib/fileblocks.c: Likewise.
9976 * lib/filemode.c: Likewise.
9977 * lib/filemode.h: Likewise.
9978 * lib/filename.h: Likewise.
9979 * lib/filenamecat.c: Likewise.
9980 * lib/filenamecat.h: Likewise.
9981 * lib/findprog.c: Likewise.
9982 * lib/findprog.h: Likewise.
9983 * lib/float.in.h: Likewise.
9984 * lib/floor.c: Likewise.
9985 * lib/floorf.c: Likewise.
9986 * lib/floorl.c: Likewise.
9987 * lib/fopen-safer.c: Likewise.
9988 * lib/fopen.c: Likewise.
9989 * lib/fpending.c: Likewise.
9990 * lib/fpending.h: Likewise.
9991 * lib/fprintf.c: Likewise.
9992 * lib/fprintftime.h: Likewise.
9993 * lib/fpucw.h: Likewise.
9994 * lib/fpurge.c: Likewise.
9995 * lib/fpurge.h: Likewise.
9996 * lib/freadable.c: Likewise.
9997 * lib/freadable.h: Likewise.
9998 * lib/freadahead.c: Likewise.
9999 * lib/freadahead.h: Likewise.
10000 * lib/freading.c: Likewise.
10001 * lib/freading.h: Likewise.
10002 * lib/free.c: Likewise.
10003 * lib/freopen.c: Likewise.
10004 * lib/frexp.c: Likewise.
10005 * lib/frexpl.c: Likewise.
10006 * lib/fseek.c: Likewise.
10007 * lib/fseterr.c: Likewise.
10008 * lib/fseterr.h: Likewise.
10009 * lib/fstatat.c: Likewise.
10010 * lib/fstrcmp.c: Likewise.
10011 * lib/fstrcmp.h: Likewise.
10012 * lib/fsusage.c: Likewise.
10013 * lib/fsusage.h: Likewise.
10014 * lib/ftell.c: Likewise.
10015 * lib/ftello.c: Likewise.
10016 * lib/fts-cycle.c: Likewise.
10017 * lib/fts.c: Likewise.
10018 * lib/fts_.h: Likewise.
10019 * lib/full-read.c: Likewise.
10020 * lib/full-read.h: Likewise.
10021 * lib/full-write.c: Likewise.
10022 * lib/full-write.h: Likewise.
10023 * lib/fwritable.c: Likewise.
10024 * lib/fwritable.h: Likewise.
10025 * lib/fwriteerror.c: Likewise.
10026 * lib/fwriteerror.h: Likewise.
10027 * lib/fwriting.c: Likewise.
10028 * lib/fwriting.h: Likewise.
10029 * lib/gcd.c: Likewise.
10030 * lib/gcd.h: Likewise.
10031 * lib/getcwd.c: Likewise.
10032 * lib/getdate.h: Likewise.
10033 * lib/getdate.y: Likewise.
10034 * lib/getdomainname.c: Likewise.
10035 * lib/getdomainname.h: Likewise.
10036 * lib/getgroups.c: Likewise.
10037 * lib/gethostname.c: Likewise.
10038 * lib/gethrxtime.c: Likewise.
10039 * lib/gethrxtime.h: Likewise.
10040 * lib/getloadavg.c: Likewise.
10041 * lib/getndelim2.c: Likewise.
10042 * lib/getndelim2.h: Likewise.
10043 * lib/getnline.c: Likewise.
10044 * lib/getnline.h: Likewise.
10045 * lib/getopt.c: Likewise.
10046 * lib/getopt.in.h: Likewise.
10047 * lib/getopt1.c: Likewise.
10048 * lib/getopt_int.h: Likewise.
10049 * lib/getpagesize.h: Likewise.
10050 * lib/getsubopt.c: Likewise.
10051 * lib/gettime.c: Likewise.
10052 * lib/getugroups.c: Likewise.
10053 * lib/getugroups.h: Likewise.
10054 * lib/getusershell.c: Likewise.
10055 * lib/gl_anyavltree_list1.h: Likewise.
10056 * lib/gl_anyavltree_list2.h: Likewise.
10057 * lib/gl_anyhash_list1.h: Likewise.
10058 * lib/gl_anyhash_list2.h: Likewise.
10059 * lib/gl_anylinked_list1.h: Likewise.
10060 * lib/gl_anylinked_list2.h: Likewise.
10061 * lib/gl_anyrbtree_list1.h: Likewise.
10062 * lib/gl_anyrbtree_list2.h: Likewise.
10063 * lib/gl_anytree_list1.h: Likewise.
10064 * lib/gl_anytree_list2.h: Likewise.
10065 * lib/gl_anytree_oset.h: Likewise.
10066 * lib/gl_anytreehash_list1.h: Likewise.
10067 * lib/gl_anytreehash_list2.h: Likewise.
10068 * lib/gl_array_list.c: Likewise.
10069 * lib/gl_array_list.h: Likewise.
10070 * lib/gl_array_oset.c: Likewise.
10071 * lib/gl_array_oset.h: Likewise.
10072 * lib/gl_avltree_list.c: Likewise.
10073 * lib/gl_avltree_list.h: Likewise.
10074 * lib/gl_avltree_oset.c: Likewise.
10075 * lib/gl_avltree_oset.h: Likewise.
10076 * lib/gl_avltreehash_list.c: Likewise.
10077 * lib/gl_avltreehash_list.h: Likewise.
10078 * lib/gl_carray_list.c: Likewise.
10079 * lib/gl_carray_list.h: Likewise.
10080 * lib/gl_linked_list.c: Likewise.
10081 * lib/gl_linked_list.h: Likewise.
10082 * lib/gl_linkedhash_list.c: Likewise.
10083 * lib/gl_linkedhash_list.h: Likewise.
10084 * lib/gl_list.c: Likewise.
10085 * lib/gl_list.h: Likewise.
10086 * lib/gl_oset.c: Likewise.
10087 * lib/gl_oset.h: Likewise.
10088 * lib/gl_rbtree_list.c: Likewise.
10089 * lib/gl_rbtree_list.h: Likewise.
10090 * lib/gl_rbtree_oset.c: Likewise.
10091 * lib/gl_rbtree_oset.h: Likewise.
10092 * lib/gl_rbtreehash_list.c: Likewise.
10093 * lib/gl_rbtreehash_list.h: Likewise.
10094 * lib/gl_sublist.c: Likewise.
10095 * lib/gl_sublist.h: Likewise.
10096 * lib/group-member.c: Likewise.
10097 * lib/group-member.h: Likewise.
10098 * lib/hard-locale.c: Likewise.
10099 * lib/hard-locale.h: Likewise.
10100 * lib/hash-pjw.c: Likewise.
10101 * lib/hash-pjw.h: Likewise.
10102 * lib/hash-triple.c: Likewise.
10103 * lib/hash.c: Likewise.
10104 * lib/hash.h: Likewise.
10105 * lib/human.c: Likewise.
10106 * lib/human.h: Likewise.
10107 * lib/i-ring.c: Likewise.
10108 * lib/i-ring.h: Likewise.
10109 * lib/idcache.c: Likewise.
10110 * lib/imaxabs.c: Likewise.
10111 * lib/imaxdiv.c: Likewise.
10112 * lib/inet_pton.c: Likewise.
10113 * lib/inet_pton.h: Likewise.
10114 * lib/intprops.h: Likewise.
10115 * lib/inttostr.c: Likewise.
10116 * lib/inttostr.h: Likewise.
10117 * lib/inttypes.in.h: Likewise.
10118 * lib/isapipe.c: Likewise.
10119 * lib/isdir.c: Likewise.
10120 * lib/isnan.c: Likewise.
10121 * lib/isnan.h: Likewise.
10122 * lib/isnanf.c: Likewise.
10123 * lib/isnanf.h: Likewise.
10124 * lib/isnanl-nolibm.h: Likewise.
10125 * lib/isnanl.c: Likewise.
10126 * lib/isnanl.h: Likewise.
10127 * lib/javacomp.c: Likewise.
10128 * lib/javacomp.h: Likewise.
10129 * lib/javaexec.c: Likewise.
10130 * lib/javaexec.h: Likewise.
10131 * lib/javaversion.c: Likewise.
10132 * lib/javaversion.h: Likewise.
10133 * lib/javaversion.java: Likewise.
10134 * lib/lbrkprop.h: Likewise.
10135 * lib/lchmod.h: Likewise.
10136 * lib/lchown.c: Likewise.
10137 * lib/ldexpl.c: Likewise.
10138 * lib/linebreak.c: Likewise.
10139 * lib/linebreak.h: Likewise.
10140 * lib/linebuffer.c: Likewise.
10141 * lib/linebuffer.h: Likewise.
10142 * lib/locale.in.h: Likewise.
10143 * lib/logl.c: Likewise.
10144 * lib/long-options.c: Likewise.
10145 * lib/long-options.h: Likewise.
10146 * lib/lstat.c: Likewise.
10147 * lib/lstat.h: Likewise.
10148 * lib/math.in.h: Likewise.
10149 * lib/mbchar.c: Likewise.
10150 * lib/mbchar.h: Likewise.
10151 * lib/mbfile.h: Likewise.
10152 * lib/mbiter.h: Likewise.
10153 * lib/mbscasecmp.c: Likewise.
10154 * lib/mbscasestr.c: Likewise.
10155 * lib/mbschr.c: Likewise.
10156 * lib/mbscspn.c: Likewise.
10157 * lib/mbslen.c: Likewise.
10158 * lib/mbsncasecmp.c: Likewise.
10159 * lib/mbsnlen.c: Likewise.
10160 * lib/mbspbrk.c: Likewise.
10161 * lib/mbspcasecmp.c: Likewise.
10162 * lib/mbsrchr.c: Likewise.
10163 * lib/mbssep.c: Likewise.
10164 * lib/mbsspn.c: Likewise.
10165 * lib/mbsstr.c: Likewise.
10166 * lib/mbstok_r.c: Likewise.
10167 * lib/mbswidth.c: Likewise.
10168 * lib/mbswidth.h: Likewise.
10169 * lib/mbuiter.h: Likewise.
10170 * lib/memcasecmp.c: Likewise.
10171 * lib/memcasecmp.h: Likewise.
10172 * lib/memchr.c: Likewise.
10173 * lib/memcmp.c: Likewise.
10174 * lib/memcoll.c: Likewise.
10175 * lib/memcoll.h: Likewise.
10176 * lib/memcpy.c: Likewise.
10177 * lib/memrchr.c: Likewise.
10178 * lib/mkancesdirs.c: Likewise.
10179 * lib/mkdir-p.c: Likewise.
10180 * lib/mkdir-p.h: Likewise.
10181 * lib/mkdir.c: Likewise.
10182 * lib/mkdirat.c: Likewise.
10183 * lib/mkdtemp.c: Likewise.
10184 * lib/mkstemp-safer.c: Likewise.
10185 * lib/mkstemp.c: Likewise.
10186 * lib/modechange.c: Likewise.
10187 * lib/modechange.h: Likewise.
10188 * lib/mountlist.c: Likewise.
10189 * lib/mountlist.h: Likewise.
10190 * lib/mpsort.c: Likewise.
10191 * lib/nanosleep.c: Likewise.
10192 * lib/obstack.c: Likewise.
10193 * lib/obstack.h: Likewise.
10194 * lib/open-safer.c: Likewise.
10195 * lib/open.c: Likewise.
10196 * lib/openat-die.c: Likewise.
10197 * lib/openat-priv.h: Likewise.
10198 * lib/openat-proc.c: Likewise.
10199 * lib/openat.c: Likewise.
10200 * lib/openat.h: Likewise.
10201 * lib/pagealign_alloc.c: Likewise.
10202 * lib/pagealign_alloc.h: Likewise.
10203 * lib/physmem.c: Likewise.
10204 * lib/physmem.h: Likewise.
10205 * lib/pipe-safer.c: Likewise.
10206 * lib/pipe.c: Likewise.
10207 * lib/pipe.h: Likewise.
10208 * lib/posixtm.c: Likewise.
10209 * lib/posixtm.h: Likewise.
10210 * lib/posixver.c: Likewise.
10211 * lib/printf-frexp.c: Likewise.
10212 * lib/printf-frexp.h: Likewise.
10213 * lib/printf-frexpl.c: Likewise.
10214 * lib/printf-frexpl.h: Likewise.
10215 * lib/printf.c: Likewise.
10216 * lib/progname.c: Likewise.
10217 * lib/progname.h: Likewise.
10218 * lib/progreloc.c: Likewise.
10219 * lib/putenv.c: Likewise.
10220 * lib/quote.c: Likewise.
10221 * lib/quote.h: Likewise.
10222 * lib/quotearg.c: Likewise.
10223 * lib/quotearg.h: Likewise.
10224 * lib/raise.c: Likewise.
10225 * lib/readline.c: Likewise.
10226 * lib/readline.h: Likewise.
10227 * lib/readlink.c: Likewise.
10228 * lib/readtokens.c: Likewise.
10229 * lib/readtokens.h: Likewise.
10230 * lib/readtokens0.c: Likewise.
10231 * lib/readtokens0.h: Likewise.
10232 * lib/readutmp.c: Likewise.
10233 * lib/readutmp.h: Likewise.
10234 * lib/realloc.c: Likewise.
10235 * lib/relocwrapper.c: Likewise.
10236 * lib/rename-dest-slash.c: Likewise.
10237 * lib/rename.c: Likewise.
10238 * lib/rmdir.c: Likewise.
10239 * lib/rpmatch.c: Likewise.
10240 * lib/safe-read.c: Likewise.
10241 * lib/safe-read.h: Likewise.
10242 * lib/safe-write.c: Likewise.
10243 * lib/safe-write.h: Likewise.
10244 * lib/same-inode.h: Likewise.
10245 * lib/same.c: Likewise.
10246 * lib/same.h: Likewise.
10247 * lib/save-cwd.c: Likewise.
10248 * lib/save-cwd.h: Likewise.
10249 * lib/savedir.c: Likewise.
10250 * lib/savedir.h: Likewise.
10251 * lib/savewd.c: Likewise.
10252 * lib/savewd.h: Likewise.
10253 * lib/search.in.h: Likewise.
10254 * lib/setenv.c: Likewise.
10255 * lib/setenv.h: Likewise.
10256 * lib/settime.c: Likewise.
10257 * lib/sh-quote.c: Likewise.
10258 * lib/sh-quote.h: Likewise.
10259 * lib/sig2str.c: Likewise.
10260 * lib/sig2str.h: Likewise.
10261 * lib/signal.in.h: Likewise.
10262 * lib/signbitd.c: Likewise.
10263 * lib/signbitf.c: Likewise.
10264 * lib/signbitl.c: Likewise.
10265 * lib/sigprocmask.c: Likewise.
10266 * lib/sincosl.c: Likewise.
10267 * lib/sleep.c: Likewise.
10268 * lib/sprintf.c: Likewise.
10269 * lib/sqrtl.c: Likewise.
10270 * lib/stat-time.h: Likewise.
10271 * lib/stdio--.h: Likewise.
10272 * lib/stdio-safer.h: Likewise.
10273 * lib/stdlib--.h: Likewise.
10274 * lib/stdlib-safer.h: Likewise.
10275 * lib/stdlib.in.h: Likewise.
10276 * lib/stpcpy.c: Likewise.
10277 * lib/stpncpy.c: Likewise.
10278 * lib/strchrnul.c: Likewise.
10279 * lib/strcspn.c: Likewise.
10280 * lib/strerror.c: Likewise.
10281 * lib/strftime.c: Likewise.
10282 * lib/strftime.h: Likewise.
10283 * lib/striconveh.c: Likewise.
10284 * lib/striconveh.h: Likewise.
10285 * lib/striconveha.c: Likewise.
10286 * lib/striconveha.h: Likewise.
10287 * lib/stripslash.c: Likewise.
10288 * lib/strnlen1.c: Likewise.
10289 * lib/strnlen1.h: Likewise.
10290 * lib/strtod.c: Likewise.
10291 * lib/strtoimax.c: Likewise.
10292 * lib/strtok_r.c: Likewise.
10293 * lib/strtol.c: Likewise.
10294 * lib/strtoll.c: Likewise.
10295 * lib/strtoul.c: Likewise.
10296 * lib/strtoull.c: Likewise.
10297 * lib/sysexits.in.h: Likewise.
10298 * lib/tempname.c: Likewise.
10299 * lib/tempname.h: Likewise.
10300 * lib/timespec.h: Likewise.
10301 * lib/tls.c: Likewise.
10302 * lib/tls.h: Likewise.
10303 * lib/tmpdir.c: Likewise.
10304 * lib/tmpdir.h: Likewise.
10305 * lib/tmpfile-safer.c: Likewise.
10306 * lib/tmpfile.c: Likewise.
10307 * lib/trigl.c: Likewise.
10308 * lib/trigl.h: Likewise.
10309 * lib/trim.c: Likewise.
10310 * lib/trim.h: Likewise.
10311 * lib/trunc.c: Likewise.
10312 * lib/truncf.c: Likewise.
10313 * lib/truncl.c: Likewise.
10314 * lib/tsearch.c: Likewise.
10315 * lib/unicodeio.c: Likewise.
10316 * lib/unicodeio.h: Likewise.
10317 * lib/unistd--.h: Likewise.
10318 * lib/unistd-safer.h: Likewise.
10319 * lib/unistdio/ulc-fprintf.c: Likewise.
10320 * lib/unistdio/ulc-vfprintf.c: Likewise.
10321 * lib/unlinkdir.c: Likewise.
10322 * lib/unlinkdir.h: Likewise.
10323 * lib/unlocked-io.h: Likewise.
10324 * lib/unsetenv.c: Likewise.
10325 * lib/userspec.c: Likewise.
10326 * lib/utime.c: Likewise.
10327 * lib/utimecmp.c: Likewise.
10328 * lib/utimecmp.h: Likewise.
10329 * lib/utimens.c: Likewise.
10330 * lib/verify.h: Likewise.
10331 * lib/verror.c: Likewise.
10332 * lib/verror.h: Likewise.
10333 * lib/version-etc-fsf.c: Likewise.
10334 * lib/version-etc.c: Likewise.
10335 * lib/version-etc.h: Likewise.
10336 * lib/vfprintf.c: Likewise.
10337 * lib/vprintf.c: Likewise.
10338 * lib/vsprintf.c: Likewise.
10339 * lib/w32spawn.h: Likewise.
10340 * lib/wait-process.c: Likewise.
10341 * lib/wait-process.h: Likewise.
10342 * lib/wcwidth.c: Likewise.
10343 * lib/write-any-file.c: Likewise.
10344 * lib/xalloc-die.c: Likewise.
10345 * lib/xalloc.h: Likewise.
10346 * lib/xasprintf.c: Likewise.
10347 * lib/xgetcwd.c: Likewise.
10348 * lib/xgetcwd.h: Likewise.
10349 * lib/xgetdomainname.c: Likewise.
10350 * lib/xgetdomainname.h: Likewise.
10351 * lib/xgethostname.c: Likewise.
10352 * lib/xmalloc.c: Likewise.
10353 * lib/xmalloca.c: Likewise.
10354 * lib/xmalloca.h: Likewise.
10355 * lib/xmemcoll.c: Likewise.
10356 * lib/xnanosleep.c: Likewise.
10357 * lib/xreadlink.c: Likewise.
10358 * lib/xreadlink.h: Likewise.
10359 * lib/xsetenv.c: Likewise.
10360 * lib/xsetenv.h: Likewise.
10361 * lib/xstriconv.c: Likewise.
10362 * lib/xstriconv.h: Likewise.
10363 * lib/xstrndup.c: Likewise.
10364 * lib/xstrndup.h: Likewise.
10365 * lib/xstrtod.c: Likewise.
10366 * lib/xstrtod.h: Likewise.
10367 * lib/xstrtol-error.c: Likewise.
10368 * lib/xstrtol.c: Likewise.
10369 * lib/xstrtol.h: Likewise.
10370 * lib/xtime.h: Likewise.
10371 * lib/xvasprintf.c: Likewise.
10372 * lib/xvasprintf.h: Likewise.
10373 * lib/yesno.c: Likewise.
10374 * lib/yesno.h: Likewise.
10375 * posix-modules: Likewise.
10376 * tests/test-alloca-opt.c: Likewise.
10377 * tests/test-arcfour.c: Likewise.
10378 * tests/test-arctwo.c: Likewise.
10379 * tests/test-argmatch.c: Likewise.
10380 * tests/test-argp-2.sh: Likewise.
10381 * tests/test-argp.c: Likewise.
10382 * tests/test-arpa_inet.c: Likewise.
10383 * tests/test-array_list.c: Likewise.
10384 * tests/test-array_oset.c: Likewise.
10385 * tests/test-atexit.c: Likewise.
10386 * tests/test-avltree_list.c: Likewise.
10387 * tests/test-avltree_oset.c: Likewise.
10388 * tests/test-avltreehash_list.c: Likewise.
10389 * tests/test-base64.c: Likewise.
10390 * tests/test-binary-io.c: Likewise.
10391 * tests/test-byteswap.c: Likewise.
10392 * tests/test-c-ctype.c: Likewise.
10393 * tests/test-c-strcasecmp.c: Likewise.
10394 * tests/test-c-strcasestr.c: Likewise.
10395 * tests/test-c-strncasecmp.c: Likewise.
10396 * tests/test-c-strstr.c: Likewise.
10397 * tests/test-canonicalize-lgpl.c: Likewise.
10398 * tests/test-canonicalize.c: Likewise.
10399 * tests/test-carray_list.c: Likewise.
10400 * tests/test-ceilf.c: Likewise.
10401 * tests/test-ceill.c: Likewise.
10402 * tests/test-count-one-bits.c: Likewise.
10403 * tests/test-crc.c: Likewise.
10404 * tests/test-dirname.c: Likewise.
10405 * tests/test-fbufmode.c: Likewise.
10406 * tests/test-fcntl.c: Likewise.
10407 * tests/test-fflush.c: Likewise.
10408 * tests/test-floorf.c: Likewise.
10409 * tests/test-floorl.c: Likewise.
10410 * tests/test-fopen.c: Likewise.
10411 * tests/test-fprintf-posix.c: Likewise.
10412 * tests/test-fprintf-posix.h: Likewise.
10413 * tests/test-fpurge.c: Likewise.
10414 * tests/test-freadable.c: Likewise.
10415 * tests/test-freadahead.c: Likewise.
10416 * tests/test-freading.c: Likewise.
10417 * tests/test-freopen.c: Likewise.
10418 * tests/test-frexp.c: Likewise.
10419 * tests/test-frexpl.c: Likewise.
10420 * tests/test-fseek.c: Likewise.
10421 * tests/test-fseeko.c: Likewise.
10422 * tests/test-fseterr.c: Likewise.
10423 * tests/test-fstrcmp.c: Likewise.
10424 * tests/test-ftell.c: Likewise.
10425 * tests/test-ftello.c: Likewise.
10426 * tests/test-fwritable.c: Likewise.
10427 * tests/test-fwriting.c: Likewise.
10428 * tests/test-getaddrinfo.c: Likewise.
10429 * tests/test-getpass.c: Likewise.
10430 * tests/test-gettimeofday.c: Likewise.
10431 * tests/test-hmac-md5.c: Likewise.
10432 * tests/test-hmac-sha1.c: Likewise.
10433 * tests/test-iconv.c: Likewise.
10434 * tests/test-iconvme.c: Likewise.
10435 * tests/test-inttypes.c: Likewise.
10436 * tests/test-isnan.c: Likewise.
10437 * tests/test-isnanf.c: Likewise.
10438 * tests/test-isnanl-nolibm.c: Likewise.
10439 * tests/test-isnanl.c: Likewise.
10440 * tests/test-isnanl.h: Likewise.
10441 * tests/test-ldexpl.c: Likewise.
10442 * tests/test-linked_list.c: Likewise.
10443 * tests/test-linkedhash_list.c: Likewise.
10444 * tests/test-locale.c: Likewise.
10445 * tests/test-localename.c: Likewise.
10446 * tests/test-lock.c: Likewise.
10447 * tests/test-lseek.c: Likewise.
10448 * tests/test-malloca.c: Likewise.
10449 * tests/test-math.c: Likewise.
10450 * tests/test-mbscasecmp.c: Likewise.
10451 * tests/test-mbscasestr1.c: Likewise.
10452 * tests/test-mbscasestr2.c: Likewise.
10453 * tests/test-mbscasestr3.c: Likewise.
10454 * tests/test-mbscasestr4.c: Likewise.
10455 * tests/test-mbschr.c: Likewise.
10456 * tests/test-mbscspn.c: Likewise.
10457 * tests/test-mbsncasecmp.c: Likewise.
10458 * tests/test-mbspbrk.c: Likewise.
10459 * tests/test-mbspcasecmp.c: Likewise.
10460 * tests/test-mbsrchr.c: Likewise.
10461 * tests/test-mbsspn.c: Likewise.
10462 * tests/test-mbsstr1.c: Likewise.
10463 * tests/test-mbsstr2.c: Likewise.
10464 * tests/test-mbsstr3.c: Likewise.
10465 * tests/test-md5.c: Likewise.
10466 * tests/test-memmem.c: Likewise.
10467 * tests/test-netinet_in.c: Likewise.
10468 * tests/test-open.c: Likewise.
10469 * tests/test-printf-frexp.c: Likewise.
10470 * tests/test-printf-frexpl.c: Likewise.
10471 * tests/test-printf-posix.c: Likewise.
10472 * tests/test-printf-posix.h: Likewise.
10473 * tests/test-rbtree_list.c: Likewise.
10474 * tests/test-rbtree_oset.c: Likewise.
10475 * tests/test-rbtreehash_list.c: Likewise.
10476 * tests/test-read-file.c: Likewise.
10477 * tests/test-rijndael.c: Likewise.
10478 * tests/test-search.c: Likewise.
10479 * tests/test-signbit.c: Likewise.
10480 * tests/test-sleep.c: Likewise.
10481 * tests/test-snprintf-posix.c: Likewise.
10482 * tests/test-snprintf-posix.h: Likewise.
10483 * tests/test-snprintf.c: Likewise.
10484 * tests/test-sprintf-posix.c: Likewise.
10485 * tests/test-sprintf-posix.h: Likewise.
10486 * tests/test-stat-time.c: Likewise.
10487 * tests/test-stdbool.c: Likewise.
10488 * tests/test-stdint.c: Likewise.
10489 * tests/test-stdio.c: Likewise.
10490 * tests/test-stdlib.c: Likewise.
10491 * tests/test-stpncpy.c: Likewise.
10492 * tests/test-strcasestr.c: Likewise.
10493 * tests/test-striconv.c: Likewise.
10494 * tests/test-striconveh.c: Likewise.
10495 * tests/test-striconveha.c: Likewise.
10496 * tests/test-string.c: Likewise.
10497 * tests/test-sys_select.c: Likewise.
10498 * tests/test-sys_socket.c: Likewise.
10499 * tests/test-sys_stat.c: Likewise.
10500 * tests/test-sys_time.c: Likewise.
10501 * tests/test-sysexits.c: Likewise.
10502 * tests/test-time.c: Likewise.
10503 * tests/test-tls.c: Likewise.
10504 * tests/test-trunc.c: Likewise.
10505 * tests/test-truncf.c: Likewise.
10506 * tests/test-truncl.c: Likewise.
10507 * tests/test-unistd.c: Likewise.
10508 * tests/test-vasnprintf-posix.c: Likewise.
10509 * tests/test-vasnprintf-posix2.c: Likewise.
10510 * tests/test-vasnprintf.c: Likewise.
10511 * tests/test-vasprintf-posix.c: Likewise.
10512 * tests/test-vasprintf.c: Likewise.
10513 * tests/test-verify.c: Likewise.
10514 * tests/test-vfprintf-posix.c: Likewise.
10515 * tests/test-vprintf-posix.c: Likewise.
10516 * tests/test-vsnprintf-posix.c: Likewise.
10517 * tests/test-vsnprintf.c: Likewise.
10518 * tests/test-vsprintf-posix.c: Likewise.
10519 * tests/test-wchar.c: Likewise.
10520 * tests/test-wctype.c: Likewise.
10521 * tests/test-wcwidth.c: Likewise.
10522 * tests/test-xstrtol.c: Likewise.
10523 * tests/test-xvasprintf.c: Likewise.
10524 * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
10525 * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
10526 * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
10527 * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
10528 * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
10529 * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
10530 * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
10531 * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
10532 * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
10533 * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
10534 * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
10535 * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
10536 * tests/uniname/test-uninames.c: Likewise.
10537 * tests/unistdio/test-u16-asnprintf1.c: Likewise.
10538 * tests/unistdio/test-u16-asnprintf1.h: Likewise.
10539 * tests/unistdio/test-u16-printf1.h: Likewise.
10540 * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
10541 * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
10542 * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
10543 * tests/unistdio/test-u16-vasprintf1.c: Likewise.
10544 * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
10545 * tests/unistdio/test-u16-vsprintf1.c: Likewise.
10546 * tests/unistdio/test-u32-asnprintf1.c: Likewise.
10547 * tests/unistdio/test-u32-asnprintf1.h: Likewise.
10548 * tests/unistdio/test-u32-printf1.h: Likewise.
10549 * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
10550 * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
10551 * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
10552 * tests/unistdio/test-u32-vasprintf1.c: Likewise.
10553 * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
10554 * tests/unistdio/test-u32-vsprintf1.c: Likewise.
10555 * tests/unistdio/test-u8-asnprintf1.c: Likewise.
10556 * tests/unistdio/test-u8-asnprintf1.h: Likewise.
10557 * tests/unistdio/test-u8-printf1.h: Likewise.
10558 * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
10559 * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
10560 * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
10561 * tests/unistdio/test-u8-vasprintf1.c: Likewise.
10562 * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
10563 * tests/unistdio/test-u8-vsprintf1.c: Likewise.
10564 * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
10565 * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
10566 * tests/unistdio/test-ulc-printf1.h: Likewise.
10567 * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
10568 * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
10569 * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
10570 * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
10571 * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
10572 * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
10573 * tests/uniwidth/test-u16-strwidth.c: Likewise.
10574 * tests/uniwidth/test-u16-width.c: Likewise.
10575 * tests/uniwidth/test-u32-strwidth.c: Likewise.
10576 * tests/uniwidth/test-u32-width.c: Likewise.
10577 * tests/uniwidth/test-u8-strwidth.c: Likewise.
10578 * tests/uniwidth/test-u8-width.c: Likewise.
10579 * tests/uniwidth/test-uc_width.c: Likewise.
10580 * config/srclist-update: Likewise.
10581 (fixlicense): Update to GPLv3+.
10583 Change copyright notice from LGPLv2.1+ to LGPLv3+.
10584 * tests/test-tsearch.c: Change copyright notice.
10586 Change copyright notice from LGPLv2.0+ to LGPLv3+.
10587 * lib/c-strcaseeq.h: Change copyright notice.
10588 * lib/streq.h: Likewise.
10589 * lib/uniconv.h: Likewise.
10590 * lib/uniconv/u-conv-from-enc.h: Likewise.
10591 * lib/uniconv/u-conv-to-enc.h: Likewise.
10592 * lib/uniconv/u-strconv-from-enc.h: Likewise.
10593 * lib/uniconv/u-strconv-to-enc.h: Likewise.
10594 * lib/uniconv/u16-conv-from-enc.c: Likewise.
10595 * lib/uniconv/u16-conv-to-enc.c: Likewise.
10596 * lib/uniconv/u16-strconv-from-enc.c: Likewise.
10597 * lib/uniconv/u16-strconv-from-locale.c: Likewise.
10598 * lib/uniconv/u16-strconv-to-enc.c: Likewise.
10599 * lib/uniconv/u16-strconv-to-locale.c: Likewise.
10600 * lib/uniconv/u32-conv-from-enc.c: Likewise.
10601 * lib/uniconv/u32-conv-to-enc.c: Likewise.
10602 * lib/uniconv/u32-strconv-from-enc.c: Likewise.
10603 * lib/uniconv/u32-strconv-from-locale.c: Likewise.
10604 * lib/uniconv/u32-strconv-to-enc.c: Likewise.
10605 * lib/uniconv/u32-strconv-to-locale.c: Likewise.
10606 * lib/uniconv/u8-conv-from-enc.c: Likewise.
10607 * lib/uniconv/u8-conv-to-enc.c: Likewise.
10608 * lib/uniconv/u8-strconv-from-enc.c: Likewise.
10609 * lib/uniconv/u8-strconv-from-locale.c: Likewise.
10610 * lib/uniconv/u8-strconv-to-enc.c: Likewise.
10611 * lib/uniconv/u8-strconv-to-locale.c: Likewise.
10612 * lib/uniname.h: Likewise.
10613 * lib/uniname/uniname.c: Likewise.
10614 * lib/unistdio.h: Likewise.
10615 * lib/unistdio/u-asnprintf.h: Likewise.
10616 * lib/unistdio/u-asprintf.h: Likewise.
10617 * lib/unistdio/u-printf-args.c: Likewise.
10618 * lib/unistdio/u-printf-args.h: Likewise.
10619 * lib/unistdio/u-printf-parse.h: Likewise.
10620 * lib/unistdio/u-snprintf.h: Likewise.
10621 * lib/unistdio/u-sprintf.h: Likewise.
10622 * lib/unistdio/u-vasprintf.h: Likewise.
10623 * lib/unistdio/u-vsnprintf.h: Likewise.
10624 * lib/unistdio/u-vsprintf.h: Likewise.
10625 * lib/unistdio/u16-asnprintf.c: Likewise.
10626 * lib/unistdio/u16-asprintf.c: Likewise.
10627 * lib/unistdio/u16-printf-parse.c: Likewise.
10628 * lib/unistdio/u16-snprintf.c: Likewise.
10629 * lib/unistdio/u16-sprintf.c: Likewise.
10630 * lib/unistdio/u16-u16-asnprintf.c: Likewise.
10631 * lib/unistdio/u16-u16-asprintf.c: Likewise.
10632 * lib/unistdio/u16-u16-snprintf.c: Likewise.
10633 * lib/unistdio/u16-u16-sprintf.c: Likewise.
10634 * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
10635 * lib/unistdio/u16-u16-vasprintf.c: Likewise.
10636 * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
10637 * lib/unistdio/u16-u16-vsprintf.c: Likewise.
10638 * lib/unistdio/u16-vasnprintf.c: Likewise.
10639 * lib/unistdio/u16-vasprintf.c: Likewise.
10640 * lib/unistdio/u16-vsnprintf.c: Likewise.
10641 * lib/unistdio/u16-vsprintf.c: Likewise.
10642 * lib/unistdio/u32-asnprintf.c: Likewise.
10643 * lib/unistdio/u32-asprintf.c: Likewise.
10644 * lib/unistdio/u32-printf-parse.c: Likewise.
10645 * lib/unistdio/u32-snprintf.c: Likewise.
10646 * lib/unistdio/u32-sprintf.c: Likewise.
10647 * lib/unistdio/u32-u32-asnprintf.c: Likewise.
10648 * lib/unistdio/u32-u32-asprintf.c: Likewise.
10649 * lib/unistdio/u32-u32-snprintf.c: Likewise.
10650 * lib/unistdio/u32-u32-sprintf.c: Likewise.
10651 * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
10652 * lib/unistdio/u32-u32-vasprintf.c: Likewise.
10653 * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
10654 * lib/unistdio/u32-u32-vsprintf.c: Likewise.
10655 * lib/unistdio/u32-vasnprintf.c: Likewise.
10656 * lib/unistdio/u32-vasprintf.c: Likewise.
10657 * lib/unistdio/u32-vsnprintf.c: Likewise.
10658 * lib/unistdio/u32-vsprintf.c: Likewise.
10659 * lib/unistdio/u8-asnprintf.c: Likewise.
10660 * lib/unistdio/u8-asprintf.c: Likewise.
10661 * lib/unistdio/u8-printf-parse.c: Likewise.
10662 * lib/unistdio/u8-snprintf.c: Likewise.
10663 * lib/unistdio/u8-sprintf.c: Likewise.
10664 * lib/unistdio/u8-u8-asnprintf.c: Likewise.
10665 * lib/unistdio/u8-u8-asprintf.c: Likewise.
10666 * lib/unistdio/u8-u8-snprintf.c: Likewise.
10667 * lib/unistdio/u8-u8-sprintf.c: Likewise.
10668 * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
10669 * lib/unistdio/u8-u8-vasprintf.c: Likewise.
10670 * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
10671 * lib/unistdio/u8-u8-vsprintf.c: Likewise.
10672 * lib/unistdio/u8-vasnprintf.c: Likewise.
10673 * lib/unistdio/u8-vasprintf.c: Likewise.
10674 * lib/unistdio/u8-vsnprintf.c: Likewise.
10675 * lib/unistdio/u8-vsprintf.c: Likewise.
10676 * lib/unistdio/ulc-asnprintf.c: Likewise.
10677 * lib/unistdio/ulc-asprintf.c: Likewise.
10678 * lib/unistdio/ulc-printf-parse.c: Likewise.
10679 * lib/unistdio/ulc-snprintf.c: Likewise.
10680 * lib/unistdio/ulc-sprintf.c: Likewise.
10681 * lib/unistdio/ulc-vasnprintf.c: Likewise.
10682 * lib/unistdio/ulc-vasprintf.c: Likewise.
10683 * lib/unistdio/ulc-vsnprintf.c: Likewise.
10684 * lib/unistdio/ulc-vsprintf.c: Likewise.
10685 * lib/unistr.h: Likewise.
10686 * lib/unistr/u-cpy-alloc.h: Likewise.
10687 * lib/unistr/u-cpy.h: Likewise.
10688 * lib/unistr/u-endswith.h: Likewise.
10689 * lib/unistr/u-move.h: Likewise.
10690 * lib/unistr/u-set.h: Likewise.
10691 * lib/unistr/u-startswith.h: Likewise.
10692 * lib/unistr/u-stpcpy.h: Likewise.
10693 * lib/unistr/u-stpncpy.h: Likewise.
10694 * lib/unistr/u-strcat.h: Likewise.
10695 * lib/unistr/u-strcpy.h: Likewise.
10696 * lib/unistr/u-strcspn.h: Likewise.
10697 * lib/unistr/u-strdup.h: Likewise.
10698 * lib/unistr/u-strlen.h: Likewise.
10699 * lib/unistr/u-strncat.h: Likewise.
10700 * lib/unistr/u-strncpy.h: Likewise.
10701 * lib/unistr/u-strnlen.h: Likewise.
10702 * lib/unistr/u-strpbrk.h: Likewise.
10703 * lib/unistr/u-strspn.h: Likewise.
10704 * lib/unistr/u-strstr.h: Likewise.
10705 * lib/unistr/u-strtok.h: Likewise.
10706 * lib/unistr/u16-check.c: Likewise.
10707 * lib/unistr/u16-chr.c: Likewise.
10708 * lib/unistr/u16-cmp.c: Likewise.
10709 * lib/unistr/u16-cpy-alloc.c: Likewise.
10710 * lib/unistr/u16-cpy.c: Likewise.
10711 * lib/unistr/u16-endswith.c: Likewise.
10712 * lib/unistr/u16-mblen.c: Likewise.
10713 * lib/unistr/u16-mbsnlen.c: Likewise.
10714 * lib/unistr/u16-mbtouc-aux.c: Likewise.
10715 * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
10716 * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
10717 * lib/unistr/u16-mbtouc.c: Likewise.
10718 * lib/unistr/u16-mbtoucr.c: Likewise.
10719 * lib/unistr/u16-move.c: Likewise.
10720 * lib/unistr/u16-next.c: Likewise.
10721 * lib/unistr/u16-prev.c: Likewise.
10722 * lib/unistr/u16-set.c: Likewise.
10723 * lib/unistr/u16-startswith.c: Likewise.
10724 * lib/unistr/u16-stpcpy.c: Likewise.
10725 * lib/unistr/u16-stpncpy.c: Likewise.
10726 * lib/unistr/u16-strcat.c: Likewise.
10727 * lib/unistr/u16-strchr.c: Likewise.
10728 * lib/unistr/u16-strcmp.c: Likewise.
10729 * lib/unistr/u16-strcpy.c: Likewise.
10730 * lib/unistr/u16-strcspn.c: Likewise.
10731 * lib/unistr/u16-strdup.c: Likewise.
10732 * lib/unistr/u16-strlen.c: Likewise.
10733 * lib/unistr/u16-strmblen.c: Likewise.
10734 * lib/unistr/u16-strmbtouc.c: Likewise.
10735 * lib/unistr/u16-strncat.c: Likewise.
10736 * lib/unistr/u16-strncmp.c: Likewise.
10737 * lib/unistr/u16-strncpy.c: Likewise.
10738 * lib/unistr/u16-strnlen.c: Likewise.
10739 * lib/unistr/u16-strpbrk.c: Likewise.
10740 * lib/unistr/u16-strrchr.c: Likewise.
10741 * lib/unistr/u16-strspn.c: Likewise.
10742 * lib/unistr/u16-strstr.c: Likewise.
10743 * lib/unistr/u16-strtok.c: Likewise.
10744 * lib/unistr/u16-to-u32.c: Likewise.
10745 * lib/unistr/u16-to-u8.c: Likewise.
10746 * lib/unistr/u16-uctomb-aux.c: Likewise.
10747 * lib/unistr/u16-uctomb.c: Likewise.
10748 * lib/unistr/u32-check.c: Likewise.
10749 * lib/unistr/u32-chr.c: Likewise.
10750 * lib/unistr/u32-cmp.c: Likewise.
10751 * lib/unistr/u32-cpy-alloc.c: Likewise.
10752 * lib/unistr/u32-cpy.c: Likewise.
10753 * lib/unistr/u32-endswith.c: Likewise.
10754 * lib/unistr/u32-mblen.c: Likewise.
10755 * lib/unistr/u32-mbsnlen.c: Likewise.
10756 * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
10757 * lib/unistr/u32-mbtouc.c: Likewise.
10758 * lib/unistr/u32-mbtoucr.c: Likewise.
10759 * lib/unistr/u32-move.c: Likewise.
10760 * lib/unistr/u32-next.c: Likewise.
10761 * lib/unistr/u32-prev.c: Likewise.
10762 * lib/unistr/u32-set.c: Likewise.
10763 * lib/unistr/u32-startswith.c: Likewise.
10764 * lib/unistr/u32-stpcpy.c: Likewise.
10765 * lib/unistr/u32-stpncpy.c: Likewise.
10766 * lib/unistr/u32-strcat.c: Likewise.
10767 * lib/unistr/u32-strchr.c: Likewise.
10768 * lib/unistr/u32-strcmp.c: Likewise.
10769 * lib/unistr/u32-strcpy.c: Likewise.
10770 * lib/unistr/u32-strcspn.c: Likewise.
10771 * lib/unistr/u32-strdup.c: Likewise.
10772 * lib/unistr/u32-strlen.c: Likewise.
10773 * lib/unistr/u32-strmblen.c: Likewise.
10774 * lib/unistr/u32-strmbtouc.c: Likewise.
10775 * lib/unistr/u32-strncat.c: Likewise.
10776 * lib/unistr/u32-strncmp.c: Likewise.
10777 * lib/unistr/u32-strncpy.c: Likewise.
10778 * lib/unistr/u32-strnlen.c: Likewise.
10779 * lib/unistr/u32-strpbrk.c: Likewise.
10780 * lib/unistr/u32-strrchr.c: Likewise.
10781 * lib/unistr/u32-strspn.c: Likewise.
10782 * lib/unistr/u32-strstr.c: Likewise.
10783 * lib/unistr/u32-strtok.c: Likewise.
10784 * lib/unistr/u32-to-u16.c: Likewise.
10785 * lib/unistr/u32-to-u8.c: Likewise.
10786 * lib/unistr/u32-uctomb.c: Likewise.
10787 * lib/unistr/u8-check.c: Likewise.
10788 * lib/unistr/u8-chr.c: Likewise.
10789 * lib/unistr/u8-cmp.c: Likewise.
10790 * lib/unistr/u8-cpy-alloc.c: Likewise.
10791 * lib/unistr/u8-cpy.c: Likewise.
10792 * lib/unistr/u8-endswith.c: Likewise.
10793 * lib/unistr/u8-mblen.c: Likewise.
10794 * lib/unistr/u8-mbsnlen.c: Likewise.
10795 * lib/unistr/u8-mbtouc-aux.c: Likewise.
10796 * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
10797 * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
10798 * lib/unistr/u8-mbtouc.c: Likewise.
10799 * lib/unistr/u8-mbtoucr.c: Likewise.
10800 * lib/unistr/u8-move.c: Likewise.
10801 * lib/unistr/u8-next.c: Likewise.
10802 * lib/unistr/u8-prev.c: Likewise.
10803 * lib/unistr/u8-set.c: Likewise.
10804 * lib/unistr/u8-startswith.c: Likewise.
10805 * lib/unistr/u8-stpcpy.c: Likewise.
10806 * lib/unistr/u8-stpncpy.c: Likewise.
10807 * lib/unistr/u8-strcat.c: Likewise.
10808 * lib/unistr/u8-strchr.c: Likewise.
10809 * lib/unistr/u8-strcmp.c: Likewise.
10810 * lib/unistr/u8-strcpy.c: Likewise.
10811 * lib/unistr/u8-strcspn.c: Likewise.
10812 * lib/unistr/u8-strdup.c: Likewise.
10813 * lib/unistr/u8-strlen.c: Likewise.
10814 * lib/unistr/u8-strmblen.c: Likewise.
10815 * lib/unistr/u8-strmbtouc.c: Likewise.
10816 * lib/unistr/u8-strncat.c: Likewise.
10817 * lib/unistr/u8-strncmp.c: Likewise.
10818 * lib/unistr/u8-strncpy.c: Likewise.
10819 * lib/unistr/u8-strnlen.c: Likewise.
10820 * lib/unistr/u8-strpbrk.c: Likewise.
10821 * lib/unistr/u8-strrchr.c: Likewise.
10822 * lib/unistr/u8-strspn.c: Likewise.
10823 * lib/unistr/u8-strstr.c: Likewise.
10824 * lib/unistr/u8-strtok.c: Likewise.
10825 * lib/unistr/u8-to-u16.c: Likewise.
10826 * lib/unistr/u8-to-u32.c: Likewise.
10827 * lib/unistr/u8-uctomb-aux.c: Likewise.
10828 * lib/unistr/u8-uctomb.c: Likewise.
10829 * lib/unitypes.h: Likewise.
10830 * lib/uniwidth.h: Likewise.
10831 * lib/uniwidth/cjk.h: Likewise.
10832 * lib/uniwidth/u16-strwidth.c: Likewise.
10833 * lib/uniwidth/u16-width.c: Likewise.
10834 * lib/uniwidth/u32-strwidth.c: Likewise.
10835 * lib/uniwidth/u32-width.c: Likewise.
10836 * lib/uniwidth/u8-strwidth.c: Likewise.
10837 * lib/uniwidth/u8-width.c: Likewise.
10838 * lib/uniwidth/width.c: Likewise.
10840 2007-10-07 Bruno Haible <bruno@clisp.org>
10842 * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
10843 The file is still under LGPL (see modules/inttypes).
10845 2007-10-06 Bruno Haible <bruno@clisp.org>
10847 * modules/trunc (Dependencies): Add 'extensions'.
10848 * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
10849 Reported by Ben Pfaff <blp@gnu.org>.
10851 2007-10-06 Bruno Haible <bruno@clisp.org>
10853 * modules/freopen-tests: New file.
10854 * tests/test-freopen.c: New file.
10856 * modules/fopen-tests: New file.
10857 * tests/test-fopen.c: New file.
10859 * modules/fopen: New file.
10860 * lib/fopen.c: New file.
10861 * m4/fopen.m4: New file.
10862 * modules/freopen: New file.
10863 * lib/freopen.c: New file.
10864 * m4/freopen.m4: New file.
10865 * lib/stdio.in.h (fopen, freopen): New declarations.
10866 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
10867 GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
10868 * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
10869 GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
10870 * doc/functions/fopen.texi: Mention the 'fopen' module.
10871 * doc/functions/freopen.texi: Mention the 'freopen' module.
10873 2007-10-06 Bruno Haible <bruno@clisp.org>
10875 * modules/open-tests: New file.
10876 * tests/test-open.c: New file.
10878 * modules/open: New file.
10879 * lib/open.c: New file.
10880 * m4/open.m4: New file.
10881 * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
10883 * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
10884 * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
10886 (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
10887 * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
10889 * doc/functions/open.texi: Mention the 'open' module.
10891 2007-10-04 Bruno Haible <bruno@clisp.org>
10893 * modules/ceill-tests: New file.
10894 * tests/test-ceill.c: New file.
10896 * modules/ceill: New file.
10897 * lib/ceill.c: Replace entire file.
10898 * m4/ceill.m4: New file.
10899 * lib/math.in.h (ceill): Replace declaration.
10900 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
10901 * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
10902 * doc/functions/ceill.texi: Mention the 'ceill' module.
10903 * modules/mathl (Files): Remove lib/ceill.c.
10904 (Depends-on): Add ceill.
10906 2007-10-04 Bruno Haible <bruno@clisp.org>
10908 * modules/ceilf-tests: New file.
10909 * tests/test-ceilf.c: New file.
10911 * modules/ceilf: New file.
10912 * lib/ceil.c: New file.
10913 * lib/ceilf.c: New file.
10914 * m4/ceilf.m4: New file.
10915 * lib/math.in.h (ceilf): New declaration.
10916 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
10918 * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
10920 * doc/functions/ceilf.texi: Mention the 'ceilf' module.
10922 2007-10-04 Bruno Haible <bruno@clisp.org>
10924 * modules/floorl-tests: New file.
10925 * tests/test-floorl.c: New file.
10927 * modules/floorl: New file.
10928 * lib/floorl.c: Replace entire file.
10929 * m4/floorl.m4: New file.
10930 * lib/math.in.h (floorl): Replace declaration.
10931 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
10932 * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
10933 * doc/functions/floorl.texi: Mention the 'floorl' module.
10934 * modules/mathl (Files): Remove lib/floorl.c.
10935 (Depends-on): Add floorl.
10937 2007-10-04 Bruno Haible <bruno@clisp.org>
10939 * modules/floorf-tests: New file.
10940 * tests/test-floorf.c: New file.
10942 * modules/floorf: New file.
10943 * lib/floor.c: New file.
10944 * lib/floorf.c: New file.
10945 * m4/floorf.m4: New file.
10946 * lib/math.in.h (floorf): New declaration.
10947 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
10949 * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
10951 * doc/functions/floorf.texi: Mention the 'floorf' module.
10953 2007-10-04 Benoit Sigoure <tsuna@lrde.epita.fr>
10954 Bruno Haible <bruno@clisp.org>
10956 Advertise for the Git server instead of the CVS server.
10957 * doc/gnulib-intro.texi (Steady Development): Mention the Git
10958 repository instead of the CVS one.
10959 * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
10960 about all VCS systems generically.
10961 * doc/gnulib.texi (Introduction): Capitalize `Git'.
10963 2007-10-04 Bruno Haible <bruno@clisp.org>
10965 * doc/gnulib.texi (Function Substitutes): Explain what an absent module
10967 Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
10969 2007-10-04 Bruno Haible <bruno@clisp.org>
10971 * modules/truncl-tests: New file.
10972 * tests/test-truncl.c: New file.
10974 * modules/truncl: New file.
10975 * lib/truncl.c: New file.
10976 * m4/truncl.m4: New file.
10977 * lib/math.in.h (truncl): New declaration.
10978 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
10980 * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
10982 * doc/functions/truncl.texi: Mention the 'truncl' module.
10984 2007-10-04 Bruno Haible <bruno@clisp.org>
10986 * modules/truncf-tests: New file.
10987 * tests/test-truncf.c: New file.
10989 * modules/truncf: New file.
10990 * lib/trunc.c: Make paramerizable through USE_* macros.
10991 * lib/truncf.c: New file.
10992 * m4/truncf.m4: New file.
10993 * lib/math.in.h (truncf): New declaration.
10994 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
10996 * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
10998 * doc/functions/truncf.texi: Mention the 'truncf' module.
11000 2007-10-03 Bruno Haible <bruno@clisp.org>
11002 * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
11003 augmentation also for tests modules.
11004 * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
11005 * modules/atexit-tests (Makefile.am): Likewise.
11006 * modules/binary-io-tests (Makefile.am): Likewise.
11007 * modules/c-strcase-tests (Makefile.am): Likewise.
11008 * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
11009 * modules/canonicalize-tests (Makefile.am): Likewise.
11010 * modules/closein-tests (Makefile.am): Likewise.
11011 * modules/fprintf-posix-tests (Makefile.am): Likewise.
11012 * modules/freadahead-tests (Makefile.am): Likewise.
11013 * modules/fseek-tests (Makefile.am): Likewise.
11014 * modules/fseeko-tests (Makefile.am): Likewise.
11015 * modules/ftell-tests (Makefile.am): Likewise.
11016 * modules/ftello-tests (Makefile.am): Likewise.
11017 * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
11018 * modules/isnanl-tests (Makefile.am): Likewise.
11019 * modules/lseek-tests (Makefile.am): Likewise.
11020 * modules/mbscasecmp-tests (Makefile.am): Likewise.
11021 * modules/mbscasestr-tests (Makefile.am): Likewise.
11022 * modules/mbschr-tests (Makefile.am): Likewise.
11023 * modules/mbscspn-tests (Makefile.am): Likewise.
11024 * modules/mbsncasecmp-tests (Makefile.am): Likewise.
11025 * modules/mbspbrk-tests (Makefile.am): Likewise.
11026 * modules/mbspcasecmp-tests (Makefile.am): Likewise.
11027 * modules/mbsrchr-tests (Makefile.am): Likewise.
11028 * modules/mbsspn-tests (Makefile.am): Likewise.
11029 * modules/mbsstr-tests (Makefile.am): Likewise.
11030 * modules/printf-posix-tests (Makefile.am): Likewise.
11031 * modules/snprintf-posix-tests (Makefile.am): Likewise.
11032 * modules/sprintf-posix-tests (Makefile.am): Likewise.
11033 * modules/tsearch-tests (Makefile.am): Likewise.
11034 * modules/uniname/uniname-tests (Makefile.am): Likewise.
11035 * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
11036 * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
11037 * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
11038 * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
11039 * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
11040 * modules/vfprintf-posix-tests (Makefile.am): Likewise.
11041 * modules/vprintf-posix-tests (Makefile.am): Likewise.
11042 * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
11043 * modules/vsprintf-posix-tests (Makefile.am): Likewise.
11044 * modules/xstrtoimax-tests (Makefile.am): Likewise.
11045 * modules/xstrtol-tests (Makefile.am): Likewise.
11046 * modules/xstrtoumax-tests (Makefile.am): Likewise.
11047 * modules/yesno-tests (Makefile.am): Likewise.
11049 2007-10-03 Bruno Haible <bruno@clisp.org>
11051 * modules/trunc-tests: New file.
11052 * tests/test-trunc.c: New file.
11054 * modules/trunc: New file.
11055 * lib/trunc.c: New file.
11056 * m4/trunc.m4: New file.
11057 * lib/math.in.h (trunc): New declaration.
11058 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
11060 * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
11062 * doc/functions/trunc.texi: Mention the 'trunc' module.
11064 2007-10-03 Bruno Haible <bruno@clisp.org>
11066 * tests/test-fpending.c: New file, mostly copied
11067 from coreutils/lib/t-fpending.c.
11068 * modules/fpending-tests: New file.
11070 2007-10-03 Bruno Haible <bruno@clisp.org>
11072 Port the stdio extensions to QNX (untested).
11073 * lib/fseterr.c (fseterr): Add support for QNX.
11074 * lib/fbufmode.c (fbufmode): Likewise.
11075 * lib/freadable.c (freadable): Likewise.
11076 * lib/fwritable.c (fwritable): Likewise.
11077 * lib/freading.c (freading): Likewise.
11078 * lib/fwriting.c (fwriting): Likewise.
11079 * lib/freadahead.c (freadahed): Likewise.
11080 * lib/fpurge.c (fpurge): Likewise.
11081 * lib/fseeko.c (rpl_fseeko): Likewise.
11083 2007-10-03 Bruno Haible <bruno@clisp.org>
11084 Jim Meyering <jim@meyering.net>
11085 Eric Blake <ebb9@byu.net>
11087 * doc/relocatable.texi: Use @command instead of @program.
11089 2007-10-02 Jim Meyering <jim@meyering.net>
11091 Perform one more "_.h" -> ".in.h" substitution.
11092 * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
11093 instead of unistd_.h here, too.
11095 2007-10-01 Bruno Haible <bruno@clisp.org>
11097 * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
11098 Needed for the alloca-opt module.
11100 2007-09-30 Bruno Haible <bruno@clisp.org>
11102 * lib/alloca.in.h: Renamed from lib/alloca_.h.
11103 * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
11105 * lib/argz.in.h: Renamed from lib/argz_.h.
11106 * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
11107 * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
11108 * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
11110 * lib/dirent.in.h: Renamed from lib/dirent_.h.
11111 * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
11113 * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
11114 * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
11116 * lib/float.in.h: Renamed from lib/float_.h.
11117 * modules/float (Files, Makefile.am): Use float.in.h instead of
11119 * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
11120 * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
11122 * lib/getopt.in.h: Renamed from lib/getopt_.h.
11123 * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
11125 * lib/glob.in.h: Renamed from lib/glob_.h.
11126 * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
11127 * lib/iconv.in.h: Renamed from lib/iconv_.h.
11128 * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
11130 * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
11131 * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
11133 * lib/locale.in.h: Renamed from lib/locale_.h.
11134 * modules/locale (Files, Makefile.am): Use locale.in.h instead of
11136 * lib/math.in.h: Renamed from lib/math_.h.
11137 * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
11138 * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
11139 * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
11140 of netinet_in_.h. Add dependency.
11141 * lib/poll.in.h: Renamed from lib/poll_.h.
11142 * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
11143 * lib/search.in.h: Renamed from lib/search_.h.
11144 * modules/search (Files, Makefile.am): Use search.in.h instead of
11146 * lib/signal.in.h: Renamed from lib/signal_.h.
11147 * modules/signal (Files, Makefile.am): Use signal.in.h instead of
11149 * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
11150 * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
11152 * lib/stdint.in.h: Renamed from lib/stdint_.h.
11153 * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
11155 * lib/stdio.in.h: Renamed from lib/stdio_.h.
11156 * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
11158 * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
11159 * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
11161 * lib/string.in.h: Renamed from lib/string_.h.
11162 * modules/string (Files, Makefile.am): Use string.in.h instead of
11164 * doc/gnulib-tool.texi (Initial import): Update.
11165 * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
11166 * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
11167 of sys_select_.h. Add dependency.
11168 * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
11169 * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
11171 * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
11172 * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
11174 * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
11175 * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
11177 * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
11178 * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
11180 * lib/time.in.h: Renamed from lib/time_.h.
11181 * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
11182 * lib/unistd.in.h: Renamed from lib/unistd_.h.
11183 * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
11185 * lib/wchar.in.h: Renamed from lib/wchar_.h.
11186 * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
11188 * lib/wctype.in.h: Renamed from lib/wctype_.h.
11189 * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
11191 * build-aux/bootstrap (slurp): Update.
11192 * lib/.cppi-disable: Update.
11194 2007-09-30 Bruno Haible <bruno@clisp.org>
11196 * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
11199 2007-09-30 Bruno Haible <bruno@clisp.org>
11201 * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
11203 2007-09-29 Bruno Haible <bruno@clisp.org>
11205 * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
11207 2007-09-29 Bruno Haible <bruno@clisp.org>
11209 * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
11210 * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
11211 * build-aux/install-reloc: Compile also areadlink.c.
11212 * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
11214 2007-09-29 Bruno Haible <bruno@clisp.org>
11216 * gnulib-tool (func_emit_initmacro_done): Indentation.
11218 2007-09-29 Bruno Haible <bruno@clisp.org>
11220 * README: Add CVS checkout update instructions.
11221 Info from Bob Proulx <bob@proulx.com>.
11223 2007-09-28 Eric Blake <ebb9@byu.net>
11225 Provide move-if-change.
11226 * build-aux/move-if-change: New file, based on best practice
11227 rather than any canonical upstream location.
11229 2007-09-28 Jim Meyering <jim@meyering.net>
11231 Fix canonicalize loop-detection corner case.
11232 Do not attempt to stat the symlink values stored via seen_triple.
11233 Without this, coreutils' tests/misc/readlink-fp-loop test would fail
11234 on linux-2.6.18, (but not 2.6.22).
11235 * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
11236 triple_compare. The former compares dev,ino,filename, while the latter
11237 would actually stat dirname(filename) when dev and ino were equal.
11238 * lib/hash-triple.c: Install <string.h>.
11240 (triple_compare_ino_str): New function.
11241 * lib/hash-triple.h (triple_compare_ino_str): Declare it.
11243 2007-09-28 Eric Blake <ebb9@byu.net>
11245 Enforce that AC_REPLACE_FUNCS files exist.
11246 * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
11247 override check for typos.
11249 Fix test-closein on Solaris 10.
11250 * tests/test-closein.c (main): Don't assume stdin can be inherited
11251 closed on all systems.
11252 * tests/test-closein.sh: Likewise.
11253 Reported by Piotr Tarnowski.
11255 2007-09-28 Jim Meyering <jim@meyering.net>
11257 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
11259 2007-09-27 Jim Meyering <jim@meyering.net>
11261 canonicalize: Avoid a false-positive cycle failure.
11262 * modules/canonicalize (Depends-on): Add file-set and hash-triple.
11263 Sort. Remove cycle-check.
11264 * lib/canonicalize.c: Include file-set.h and hash-triple.h,
11266 (seen_triple): New function.
11267 (canonicalize_filename_mode): Use it instead of cycle-check.
11268 * tests/test-canonicalize.c: Add a test for this bug.
11269 * tests/test-canonicalize.sh: Set up and run the test.
11271 New module, file-set, from coreutils.
11272 * modules/file-set: Define it.
11273 * lib/file-set.c, lib/file-set.h: Implement.
11275 New module, hash-triple, from coreutils.
11276 * modules/hash-triple: Define it.
11277 * lib/hash-triple.c, lib/hash-triple.h: Implement.
11279 2007-09-25 Eric Blake <ebb9@byu.net>
11281 Fix strerror on Interix.
11282 * lib/string_.h (strerror): Declare replacement.
11283 * doc/functions/strerror.texi (strerror): Document the Interix
11285 * modules/string (Makefile.am): Support new hooks.
11286 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
11287 * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
11288 gl_FUNC_STRERROR_SEPARATE.
11289 (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
11290 * lib/strerror.c (rpl_strerror): Provide replacement.
11291 * modules/strerror (Depends-on): Add string.
11292 (configure.ac): Detect use of module.
11293 * tests/test-strerror.c: New file.
11294 * modules/strerror-tests: New test module.
11295 * modules/argp (Depends-on): Add strerror.
11296 * modules/error (Depends-on): Likewise.
11297 Reported by Martin Koeppe.
11299 2007-09-24 Bruno Haible <bruno@clisp.org>
11301 * README: Update git instructions.
11303 2007-09-24 Eric Blake <ebb9@byu.net>
11305 Revert fpending breakage from 2007-09-08.
11306 * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
11309 2007-09-24 Jim Meyering <jim@meyering.net>
11311 filenamecat.c: Add a test.
11312 * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
11313 showing how the function works when DIR is the empty string.
11315 2007-09-21 Simon Josefsson <simon@josefsson.org>
11317 * tests/test-canonicalize.sh: Turn on executable bit.
11319 2007-09-19 Eric Blake <ebb9@byu.net>
11321 * README: Update CVS instructions.
11323 2007-09-18 Bruno Haible <bruno@clisp.org>
11325 * modules/areadlink: New file.
11326 * lib/areadlink.h (areadlink): New declaration.
11327 * lib/areadlink.c: New file, based on lib/xreadlink.c.
11329 2007-09-17 Jim Meyering <jim@meyering.net>
11331 * lib/savewd.c (ESTALE) [!defined]: Define.
11332 Reported to be required on Interix by Martin Koeppe.
11334 2007-09-17 Bruno Haible <bruno@clisp.org>
11336 * gnulib-tool (func_version): Use $version.
11338 2007-09-16 Bruno Haible <bruno@clisp.org>
11340 * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
11341 gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
11342 Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
11343 Reported by Greg Schafer <gschafer@zip.com.au>.
11345 2007-09-15 Bruno Haible <bruno@clisp.org>
11347 * gnulib-tool (sed): Try a little harder to make bash understand the
11349 Reported by Bruce Korb <bruce.korb@gmail.com>.
11351 2007-09-13 Eric Blake <ebb9@byu.net>
11353 * ChangeLog: Remove conflict markers.
11355 2007-09-13 Simon Josefsson <simon@josefsson.org>
11357 * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
11358 Reported by Bruno Haible <bruno@clisp.org>.
11360 2007-09-12 Bruno Haible <bruno@clisp.org>
11362 * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
11363 (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
11366 2007-09-12 Eric Blake <ebb9@byu.net>
11368 Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
11369 * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
11370 Autoconf definition.
11371 * modules/euidaccess (Depends-on): Add extensions, for
11372 AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
11373 * modules/fnmatch (Depends-on): Likewise.
11374 * modules/getaddrinfo (Depends-on): Likewise.
11375 * modules/getdelim (Depends-on): Likewise.
11376 * modules/getline (Depends-on): Likewise.
11377 * modules/getsubopt (Depends-on): Likewise.
11378 * modules/gettext (Depends-on): Likewise.
11379 * modules/group-member (Depends-on): Likewise.
11380 * modules/mbchar (Depends-on): Likewise.
11381 * modules/memmem (Depends-on): Likewise.
11382 * modules/mempcpy (Depends-on): Likewise.
11383 * modules/memrchr (Depends-on): Likewise.
11384 * modules/pagealign_alloc (Depends-on): Likewise.
11385 * modules/readutmp (Depends-on): Likewise.
11386 * modules/stpcpy (Depends-on): Likewise.
11387 * modules/stpncpy (Depends-on): Likewise.
11388 * modules/strchrnul (Depends-on): Likewise.
11389 * modules/strndup (Depends-on): Likewise.
11390 * modules/strsep (Depends-on): Likewise.
11391 * modules/strverscmp (Depends-on): Likewise.
11392 * modules/vasprintf (Depends-on): Likewise.
11393 * modules/wcwidth (Depends-on): Likewise.
11394 * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
11395 obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
11396 * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
11397 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
11398 * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
11399 * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
11400 * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
11401 * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
11402 * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
11403 * m4/mbchar.m4 (gl_MBCHAR): Likewise.
11404 * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
11405 * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
11406 * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
11407 * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
11408 * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
11409 * m4/readutmp.m4 (gl_READUTMP): Likewise.
11410 * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
11411 * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
11412 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
11413 * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
11414 * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
11415 * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
11416 * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
11417 * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
11418 * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
11419 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
11420 * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
11421 so that lock.m4 can be used in gettext without extensions module.
11423 2007-09-11 Bruno Haible <bruno@clisp.org>
11425 * m4/isc-posix.m4: Remove file.
11426 Suggested by Eric Blake.
11428 2007-09-11 Eric Blake <ebb9@byu.net>
11430 * ChangeLog: Restore lines accidentally truncated 2007-04-06.
11432 2007-09-10 Bruno Haible <bruno@clisp.org>
11434 * posix-modules: Fix typo in error message.
11435 Reported by Matt <mkraai@beckman.com>.
11437 2007-09-09 Bruno Haible <bruno@clisp.org>
11439 * doc/functions/getdelim.texi: Update list of platforms lacking the
11441 * doc/functions/getline.texi: Likewise.
11443 2007-09-09 Jim Meyering <jim@meyering.net>
11445 * lib/hash.c (hash_initialize): Detect calloc failure.
11446 Reported by Bruno Haible.
11448 2007-09-09 Bruno Haible <bruno@clisp.org>
11450 * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
11451 malloc or realloc fails.
11453 2007-09-09 Bruno Haible <bruno@clisp.org>
11455 * modules/getcwd (Depends-on): Add malloc-posix.
11456 * modules/glob (Depends-on): Likewise.
11457 * modules/putenv (Depends-on): Likewise.
11458 * modules/strdup (Depends-on): Likewise.
11459 * modules/getdelim (Depends-on): Add realloc-posix.
11460 * modules/read-file (Depends-on): Likewise.
11462 2007-09-09 Bruno Haible <bruno@clisp.org>
11464 * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
11465 (gl_FUNC_MALLOC_POSIX): Require it.
11466 * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
11467 * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
11468 * modules/realloc (Files): Add m4/malloc.m4.
11469 * modules/calloc (Files): Likewise.
11471 2007-09-09 Bruno Haible <bruno@clisp.org>
11473 * modules/malloc-posix: New file.
11474 * modules/malloc (Depends-on): Add malloc-posix.
11475 * lib/malloc.c: Include errno.h.
11476 (rpl_malloc): Merge the requirements of a glibc-compatible malloc
11477 and a POSIX-compatible malloc into a single function. Set ENOMEM
11478 when returning NULL.
11479 * m4/malloc.m4: New file.
11480 * doc/functions/malloc.texi: Mention the malloc-posix module.
11481 * lib/stdlib_.h (malloc): New declaration.
11482 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
11483 GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
11484 * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
11485 and HAVE_MALLOC_POSIX.
11487 2007-09-09 Bruno Haible <bruno@clisp.org>
11489 * modules/realloc-posix: New file.
11490 * modules/realloc (Depends-on): Add realloc-posix.
11491 * lib/realloc.c: Include errno.h.
11492 (rpl_realloc): Merge the requirements of a glibc-compatible realloc
11493 and a POSIX-compatible realloc into a single function. Set ENOMEM
11494 when returning NULL.
11495 * m4/realloc.m4: New file.
11496 * doc/functions/realloc.texi: Mention the realloc-posix module.
11497 * lib/stdlib_.h (realloc): New declaration.
11498 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
11499 GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
11500 * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
11501 and HAVE_REALLOC_POSIX.
11503 2007-09-09 Bruno Haible <bruno@clisp.org>
11505 * modules/calloc-posix: New file.
11506 * modules/calloc (Depends-on): Add calloc-posix.
11507 * lib/calloc.c: Include errno.h.
11508 (rpl_calloc): Merge the requirements of a glibc-compatible calloc
11509 and a POSIX-compatible calloc into a single function. Set ENOMEM
11510 when returning NULL.
11511 * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
11512 * doc/functions/calloc.texi: Mention the calloc-posix module.
11513 * lib/stdlib_.h (calloc): New declaration.
11514 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
11515 GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
11516 * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
11517 and HAVE_CALLOC_POSIX.
11519 2007-09-09 Bruno Haible <bruno@clisp.org>
11521 Allow for modules to show an arbitrary notice.
11522 * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
11523 * gnulib-tool: New option --extract-notice.
11524 (func_usage): Document it.
11525 (sed_extract_prog): Update.
11526 (func_get_notice): New function.
11527 (func_modules_notice): New function.
11528 (func_import, func_create_testdir): Invoke it.
11529 Suggested by Jim Meyering.
11531 2007-09-09 Bruno Haible <bruno@clisp.org>
11533 * gnulib-tool: New options --verbose, --quiet.
11534 (func_usage): Document them.
11535 (verbose): New variable.
11536 (func_execute_command): New function.
11537 (func_import): Don't show the module list and the file list if
11539 (func_create_testdir): Likewise. Use func_execute_command.
11540 (func_create_megatestdir): Use func_execute_command.
11542 2007-09-08 Bruno Haible <bruno@clisp.org>
11544 * gnulib-tool (func_import): Prefer rsync over wget when available,
11545 for fetching the PO files.
11547 2007-09-08 Bruno Haible <bruno@clisp.org>
11549 * posix-modules: New file. Portions copied from gnulib-tool.
11550 * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
11552 2007-09-08 Jim Meyering <jim@meyering.net>
11554 Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
11555 * lib/fpending.h: Rename from __fpending.h.
11556 * lib/fpending.c: Rename from __fpending.c.
11557 Include "fpending.h", not "__fpending.h".
11558 * lib/__fpending.h, lib/__fpending.c: Remove files.
11559 * modules/fpending (Files): Reflect new file names.
11560 * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
11562 2007-09-08 Bruno Haible <bruno@clisp.org>
11564 * m4/inttypes-h.m4: Remove stub file.
11566 2007-09-07 Simon Josefsson <simon@josefsson.org>
11568 * doc/headers/stdint.texi: Discuss #include_next issue.
11570 2007-09-06 Paul Eggert <eggert@cs.ucla.edu>
11572 * build-aux/bootstrap: Remove obsolete comment about wget --help.
11574 2007-09-06 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
11576 * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
11579 2007-09-03 Jim Meyering <jim@meyering.net>
11581 New module: git-version-gen.
11582 * modules/git-version-gen: New file.
11584 Import changes from coreutils for bootstrap script.
11586 * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
11588 bootstrap: uses rsync to download the .po files
11589 * build-aux/bootstrap (po_download_command_format): New global.
11590 (download_po_files): Use rsync.
11591 (update_po_files): Don't remove .po files after download,
11592 so future rsync runs can take advantage of the copies.
11594 * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
11596 Solve the unnecessary-.po-file-regeneration problem once and for all.
11597 * build-aux/bootstrap (download_po_files): New function, renamed from
11598 get_translations. Now, downloads, but doesn't update LINGUAS.
11599 (update_po_files): New function.
11601 bootstrap: Ignore more.
11602 * build-aux/bootstrap (symlink_to_dir): Add a directory name like
11603 uniwidth to e.g., lib/.gitignore.
11604 (slurp): Handle the sys_stat_.h -> sys mapping, too.
11606 * build-aux/bootstrap: New setting: vc_ignore.
11607 (insert_sorted_if_absent): Create $file if absent.
11608 Adapt to new, possibly empty, list: $vc_ignore.
11610 bootstrap: generate more ignorable names
11611 * build-aux/bootstrap (slurp): When generating ignorable names,
11612 also map .sin to .sed, .gperf to .c, and .y to .c.
11614 2007-09-03 Jim Meyering <jim@meyering.net>
11616 * build-aux/git-version-gen: New file, from coreutils. For details, see
11617 http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
11619 2007-09-02 Bruno Haible <bruno@clisp.org>
11621 Fix mis-recognition of 'mcs' on QNX 6.
11622 * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
11623 output contains the string "Mono".
11624 * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
11625 Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
11627 2007-09-01 Bruno Haible <bruno@clisp.org>
11629 Fix collision between uniwidth/* and linebreak modules.
11630 * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
11631 u32_width): Remove declarations.
11632 * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
11633 (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
11634 streq3, streq2, streq1, streq0): Remove functions.
11635 (STREQ): Remove macro.
11636 (is_cjk_encoding): Remove function.
11637 (nonspacing_table_data, nonspacing_table_ind): Remove constants.
11638 (uc_width, u8_width, u16_width, u32_width): Remove functions.
11639 * modules/linebreak (Depends-on): Add streq, uniwidth/width.
11640 * NEWS: Document the change.
11642 2007-09-01 Bruno Haible <bruno@clisp.org>
11644 * lib/streq.h: Add double-inclusion guard.
11646 2007-09-01 Karl Berry <karl@gnu.org>
11648 * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
11650 2007-08-28 Jim Meyering <jim@meyering.net>
11652 Rename mreadlink_with_size to areadlink_with_size.
11653 * NEWS: Document the change.
11654 * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
11655 * lib/areadlink-with-size.c (areadlink_with_size): ...this.
11656 * lib/mreadlink.h: Rename this to...
11657 * lib/areadlink.h: ...this.
11658 * modules/mreadlink-with-size: Rename this to...
11659 * modules/areadlink-with-size: ...this.
11660 * lib/canonicalize.c: Reflect the renaming.
11661 * modules/canonicalize: Likewise.
11663 2007-08-26 Bruno Haible <bruno@clisp.org>
11665 * gnulib-tool (func_import): When deciding which files to remove,
11666 consider also dangling symbolic links.
11667 Reported by Eric Blake.
11669 2007-08-26 Bruno Haible <bruno@clisp.org>
11671 * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
11673 2007-08-23 Simon Josefsson <simon@josefsson.org>
11675 * lib/readline.c: Don't include getline.h, the prototype is now
11678 2007-08-23 Jim Meyering <jim@meyering.net>
11681 * lib/getdelim.c (getdelim): Don't bother to save/restore errno
11682 around the funlockfile call, since funlockfile never sets errno.
11683 Don't set errno upon failed realloc.
11685 2007-08-22 Eric Blake <ebb9@byu.net>
11688 * lib/getdelim.c (getdelim): Revert regression that required *n to
11689 be 0 when *lineptr is NULL. Preserve errno across funlockfile.
11690 * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
11691 getdelim, rather than whether implementation is missing.
11692 * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
11693 * lib/stdio_.h (getline): Also declare if replacement is
11695 * doc/functions/getdelim.texi: New file.
11696 * doc/functions/getline.texi: Likewise.
11697 * doc/gnulib.texi (Function Substitutes): Add new files.
11698 Reported by Bruno Haible.
11700 2007-08-22 Ludovic Courtès <ludo@gnu.org>
11702 * users.txt: Add Guile.
11704 2007-08-22 Eric Blake <ebb9@byu.net>
11706 * tests/test-getdelim.c (main): Use remove, not unlink.
11707 * tests/test-getline.c (main): Likewise.
11709 Move getline and getdelim into stdio.h, per POSIX 200x.
11710 * modules/getline (Files): Remove getline.h.
11711 (Depends-on): Add stdio.
11712 (configure.ac): Add module indicator.
11713 * modules/getdelim (Files): Remove getdelim.h.
11714 (Depends-on): Add stdio.
11715 (configure.ac): Add module indicator.
11716 * modules/stdio (Makefile.am): Work with new indicators.
11717 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
11718 * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
11719 * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
11720 * lib/getdelim.h: Delete.
11721 * lib/getline.h: Delete.
11722 * lib/stdio_.h (getdelim, getline): Declare.
11723 * modules/getdelim-tests: New module.
11724 * modules/getline-tests: Likewise.
11725 * tests/test-getdelim.c: New file.
11726 * tests/test-getline.c: Likewise.
11727 * NEWS: Document the change.
11728 * lib/getline.c: Update choice of header.
11729 * lib/csharpcomp.c: Likewise.
11730 * lib/getpass.c: Likewise.
11731 * lib/javacomp.c: Likewise.
11732 * lib/javaversion.c: Likewise.
11733 * lib/yesno.c: Likewise.
11734 * lib/getdelim.c: Likewise.
11735 (getdelim): Set errno on failure, and avoid memory leak.
11737 2007-08-19 Bruno Haible <bruno@clisp.org>
11739 * modules/closein (Depends-on): Add freadahead.
11740 * lib/closein.c: Include freadahead.h.
11741 (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
11744 2007-08-19 Bruno Haible <bruno@clisp.org>
11746 * modules/freadahead-tests: New file.
11747 * tests/test-freadahead.sh: New file.
11748 * tests/test-freadahead.c: New file.
11750 * modules/freadahead: New file.
11751 * lib/freadahead.h: New file.
11752 * lib/freadahead.c: New file.
11753 * MODULES.html.sh (File stream based Input/Output): Add freadahead,
11754 fbufmode, fpurge, freadable, fwritable.
11756 2007-08-19 Eric Blake <ebb9@byu.net>
11758 Test yesno in combination with closein.
11759 * lib/yesno.c (yesno): Document use of stdin.
11760 * modules/yesno-tests (Files): New module.
11761 * tests/test-yesno.c (main): New file.
11762 * tests/test-yesno.sh: Likewise.
11764 2007-08-19 Bruno Haible <bruno@clisp.org>
11766 * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
11767 * lib/fseeko.c (rpl_fseeko): Likewise.
11768 * lib/fseterr.c (fseterr): Likewise.
11770 2007-08-19 Bruno Haible <bruno@clisp.org>
11772 * tests/test-lseek.c (main): Disable a test for BeOS.
11773 * doc/functions/lseek.texi: Document the BeOS bug.
11775 2007-08-19 Bruno Haible <bruno@clisp.org>
11776 Eric Blake <ebb9@byu.net>
11778 * lib/lseek.c: Include <sys/stat.h>.
11779 (rpl_lseek): Add workaround code also for Unix platforms.
11781 * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
11782 * doc/functions/lseek.texi: Document BeOS definiency.
11784 2007-08-18 Bruno Haible <bruno@clisp.org>
11786 * modules/fstrcmp-tests: New file.
11787 * tests/test-fstrcmp.c: New file.
11789 2007-08-18 Bruno Haible <bruno@clisp.org>
11791 * modules/fstrcmp: New file, from GNU gettext with modifications.
11792 * lib/fstrcmp.h: New file, from GNU gettext.
11793 * lib/fstrcmp.c: New file, from GNU gettext.
11794 * MODULES.html.sh (String handling): Add fstrcmp.
11796 2007-08-18 Bruno Haible <bruno@clisp.org>
11798 * lib/diffseq.h (struct context): Change type of 'heuristic' field to
11800 (diag, compareseq): Remove const from the ctxt argument.
11801 (USE_HEURISTIC): Undefine at the end.
11803 2007-08-18 Jim Meyering <jim@meyering.net>
11805 New file: lib/idcache.h
11806 * NEWS: Mention the addition.
11807 * modules/idcache (Files): Add lib/idcache.h
11808 * lib/idcache.c: Include "idcache.h".
11809 Don't include <sys/types.h>.
11810 Add a FIXME comment.
11811 Move file-scoped "static" declarations to the top.
11812 * lib/idcache.h: New file. Include <sys/types.h> here, instead.
11814 2007-08-17 Bruno Haible <bruno@clisp.org>
11815 and Paul Eggert <eggert@cs.ucla.edu>
11817 * MODULES.html.sh: Add diffseq.
11818 * modules/diffseq: New file.
11819 * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
11820 extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
11822 2007-08-15 Paul Eggert <eggert@cs.ucla.edu>
11824 Import changes from coreutils for bootstrap script.
11826 2007-07-21 Paul Eggert <eggert@cs.ucla.edu>
11828 * build-aux/bootstrap (slurp): Work even in environments where
11829 "ls" defaults to "ls -A". Put in a FIXME, though, since the
11830 current code does not slurp files whose names start with ".", and
11831 this looks like it might be a troublesome area.
11833 2007-07-11 Jim Meyering <jim@meyering.net>
11835 If there's a GPL vN copyright comment, require that N == 3.
11837 2007-07-08 Jim Meyering <jim@meyering.net>
11839 Run the coreutils-specific code only if tests/Makefile.am.in exists.
11840 * build-aux/bootstrap (mam_template): Move definition out of loop.
11842 Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
11844 * build-aux/bootstrap (symlink_to_dir): Rename function from
11845 symlink_to_gnulib. Add a directory parameter. Update all
11847 (cp_mark_as_generated): Also check for -- and link to -- files in
11850 2007-07-08 Jim Meyering <jim@meyering.net>
11852 Adapt to deeper hierarchy in gnulib.
11853 * build-aux/bootstrap (symlink_to_dir): If the destination
11854 directory doesn't exist, create it. This is required at least for
11855 "lib/uniwidth/cjk.h".
11857 2007-05-15 Jim Meyering <jim@meyering.net>
11859 * build-aux/bootstrap: Now that generated Makefile.am files
11860 are no longer under version control, they must be created at
11863 2007-08-14 Ben Pfaff <blp@gnu.org>
11865 * lib/count-one-bits.h: Add comments. From Bruno Haible.
11867 2007-08-14 Paul Eggert <eggert@cs.ucla.edu>
11869 * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
11870 given the changes below.
11871 (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'. Work
11872 even on hosts that have padding bits beyond the supported 64.
11874 2007-08-10 Paul Eggert <eggert@cs.ucla.edu>
11876 * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
11877 * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
11878 xstrtol.c. Include getopt.h, since xstrtol_fatal's signature
11880 (xstrtol_error): Remove.
11881 (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
11882 but with a different signature.
11883 (ATTRIBUTE_NORETURN, __attribute__): New macros.
11884 * lib/xstrtol-error.c: Include exitfail.h.
11885 (xstrtol_fatal): New function, with a different signature from the
11886 old xstrtol_error, so that the caller need not worry about passing
11887 in an exit status, or about storage management of the option argument.
11888 (xstrtol_error): Now a static function. Redo signature to
11889 implement xstrtol_fatal. Output the correct number of hyphens in
11890 front of the option so that the caller need not worry about
11891 storage management.
11893 (_): Remove; not used now.
11894 * modules/xstrtol: Depend on getopt.
11895 * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
11896 of old STRTOL_FATAL_ERROR macro.
11897 * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
11899 * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
11900 * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
11902 2007-08-08 Eric Blake <ebb9@byu.net>
11904 * lib/xstrtol-error.c: Add missing include.
11906 Move xstrtol messages into gnulib domain, when --pobase is used.
11907 * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
11908 * lib/xstrtol-error.c (xstrtol_error): ...into new file.
11909 * modules/xstrtol (Files): Distribute new file.
11910 * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
11911 * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
11912 * tests/test-xstrtol.c: ...into new file.
11913 * tests/test-xstrtoul.c: Also test xstrtoul.
11914 * tests/test-xstrtoimax.c: Also test xstrtoimax.
11915 * tests/test-xstrtoumax.c: Also test xstrtoumax.
11916 * tests/test-xstrtol.sh: Drive the tests.
11917 * tests/test-xstrtoimax.sh: Likewise.
11918 * tests/test-xstrtoumax.sh: Likewise.
11919 * modules/xstrtol-tests: New module.
11920 * modules/xstrtoimax-tests: Likewise.
11921 * modules/xstrtoumax-tests: Likewise.
11923 2007-08-08 Jim Meyering <jim@meyering.net>
11925 New function: mfile_name_concat.
11926 * lib/filenamecat.c (mfile_name_concat): New function, just like
11927 file_name_concat, but return NULL upon failure rather than exiting
11929 * lib/filenamecat.h: Declare it.
11931 2007-08-07 Bruno Haible <bruno@clisp.org>
11933 * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
11934 instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
11936 Reported by Eric Blake.
11938 2007-08-07 Simon Josefsson <simon@josefsson.org>
11940 * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
11941 * modules/crypto/arcfour (License): Likewise.
11942 * modules/crypto/des-tests (License): Likewise.
11943 * modules/crypto/gc-arctwo-tests (License): Likewise.
11944 * modules/crypto/gc-des-tests (License): Likewise.
11945 * modules/crypto/gc-hmac-md5-tests (License): Likewise.
11946 * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
11947 * modules/crypto/gc-md2-tests (License): Likewise.
11948 * modules/crypto/gc-md4-tests (License): Likewise.
11949 * modules/crypto/gc-md5-tests (License): Likewise.
11950 * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
11951 * modules/crypto/gc-rijndael-tests (License): Likewise.
11952 * modules/crypto/gc-sha1-tests (License): Likewise.
11953 * modules/crypto/gc-tests (License): Likewise.
11954 * modules/crypto/hmac-md5 (License): Likewise.
11955 * modules/crypto/hmac-sha1 (License): Likewise.
11956 * modules/crypto/md2-tests (License): Likewise.
11957 * modules/crypto/md4-tests (License): Likewise.
11958 * modules/crypto/md5 (License): Likewise.
11959 * modules/crypto/rijndael (License): Likewise.
11960 * modules/crypto/sha1 (License): Likewise.
11961 * modules/memxor (License): Likewise.
11963 2007-08-06 Paul Eggert <eggert@cs.ucla.edu>
11964 and Bruno Haible <bruno@clisp.org>
11966 * NEWS: Describe interface changes to human, xstrtol.
11967 * lib/human.h: Include <xstrtol.h>.
11968 (human_options): Return enum strtol_error, not int. Remove
11969 bool arg; take int * instead.
11970 * lib/human.c: Don't include "gettext.h".
11971 (_): Remove; no longer used.
11972 Don't include <xstrtol.h>, since human.h does it.
11973 (human_options): Adjust to abovementioned interface changes.
11974 Do not report error to stderr; that's now the caller's
11976 * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
11978 * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
11979 Str, Argument_type_string. All uses changed. Put " argument"
11980 in diagnostics to make them clearer. Change wording of suffix
11981 message for clarity.
11982 (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
11983 Argument_type_string.
11984 (STRTOL_FATAL_WARN): Remove; no longer used.
11985 * modules/human (Depends-on): Remove gettext-h.
11987 2007-08-06 Simon Josefsson <simon@josefsson.org>
11989 * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
11991 2007-07-31 Bruno Haible <bruno@clisp.org>
11993 * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
11994 are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
11995 Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
11997 2007-07-31 Bruno Haible <bruno@clisp.org>
11999 * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
12000 Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
12002 2007-07-30 Bruno Haible <bruno@clisp.org>
12004 * modules/base64 (License): Use the synonymous term "LGPLv2+".
12005 * modules/c-ctype (License): Likewise.
12006 * modules/c-strcase (License): Likewise.
12007 * modules/check-version (License): Likewise.
12008 * modules/iconv (License): Likewise.
12009 * modules/iconv_open (License): Likewise.
12010 * modules/read-file (License): Likewise.
12011 * modules/striconv (License): Likewise.
12012 * modules/strverscmp (License): Likewise.
12013 * modules/vasprintf (License): Likewise.
12014 * modules/crypto/des (License): Likewise.
12015 * modules/crypto/gc (License): Likewise.
12016 * modules/crypto/gc-arcfour (License): Likewise.
12017 * modules/crypto/gc-arctwo (License): Likewise.
12018 * modules/crypto/gc-des (License): Likewise.
12019 * modules/crypto/gc-hmac-md5 (License): Likewise.
12020 * modules/crypto/gc-hmac-sha1 (License): Likewise.
12021 * modules/crypto/gc-md2 (License): Likewise.
12022 * modules/crypto/gc-md4 (License): Likewise.
12023 * modules/crypto/gc-md5 (License): Likewise.
12024 * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
12025 * modules/crypto/gc-random (License): Likewise.
12026 * modules/crypto/gc-rijndael (License): Likewise.
12027 * modules/crypto/gc-sha1 (License): Likewise.
12028 * modules/crypto/md2 (License): Likewise.
12029 * modules/crypto/md4 (License): Likewise.
12031 2007-07-30 Jim Meyering <jim@meyering.net>
12033 * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
12034 set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
12035 it has valid stat data. This bug would cause du not to count the
12036 sizes of inaccessible directories.
12037 Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
12038 in <http://bugzilla.redhat.com/250077>.
12040 2007-07-25 Peter O'Gorman <peter@pogma.com>
12041 Bruno Haible <bruno@clisp.org>
12043 * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
12044 really works. Needed because AIX 4.3 "xlc -E" doesn't understand
12045 #include_next, gives a diagnostic about it, but reports no error in
12047 Reported by Gary V. Vaughan <gary@thewrittenword.com>.
12049 2007-07-24 Ben Pfaff <blp@gnu.org>
12051 Improve name: "count-one-bits" is better than "popcount".
12052 * MODULES.html.sh: Update name.
12053 * lib/popcount.h: Renamed lib/count-one-bits.h.
12054 (popcount): Renamed count_one_bits.
12055 (popcountl): Renamed count_one_bits_l.
12056 (popcountll): Renamed count_one_bits_ll.
12057 * m4/popcount.m4: Renamed m4/count-one-bits.m4.
12058 * modules/popcount: Renamed module/count-one-bits.
12059 * modules/popcount-tests: Renamed module/count-one-bits-tests.
12060 * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
12062 2007-07-23 Ben Pfaff <blp@gnu.org>
12064 * lib/popcount.h (popcount32): Reduce size of constants, to allow
12065 better code generation, and add U to large constants to avoid
12066 warnings, in non-GCC case.
12067 Suggested by Bruno Haible.
12069 2007-07-23 Ben Pfaff <blp@gnu.org>
12071 * lib/popcount.h: Use verify_true instead of if...abort.
12072 * modules/popcount: Depend on verify module.
12073 Suggested by Jim Meyering.
12075 2007-07-23 Bruno Haible <bruno@clisp.org>
12077 * gnulib-tool (func_import): Create a .cvsignore file also when the
12078 directory is not yet in CVS but the toplevel directory is. When
12079 creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
12080 Reported by Karl Berry.
12082 2007-07-22 Ben Pfaff <blp@gnu.org>
12084 * lib/popcount.h: Use faster, branchless algorithm for non-GCC
12086 Suggested by Eric Blake.
12088 2007-07-22 Ben Pfaff <blp@gnu.org>
12090 New module: popcount.
12091 * MODULES.html.sh: Add popcount.
12092 * modules/popcount: New file.
12093 * modules/popcount-tests: New file.
12094 * tests/test-popcount.c: New file.
12095 * lib/popcount.h: New file.
12096 * m4/popcount.m4: New file.
12098 2007-07-22 Paul Eggert <eggert@cs.ucla.edu>
12100 * build-aux/announce-gen: Update to GPLv3.
12102 * build-aux/config.guess: Update from config.
12104 2007-07-21 Bruno Haible <bruno@clisp.org>
12106 * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
12107 * lib/verror.c (_) [ENABLE_NLS]: Likewise.
12109 2007-07-20 Jim Meyering <jim@meyering.net>
12111 * check-module: Diagnose a self-dependency.
12113 2007-07-19 Bruno Haible <bruno@clisp.org>
12115 * gnulib-tool (func_import): Don't abort if pobase or po_domain is
12117 Reported by Eric Blake.
12119 2007-07-18 Bruno Haible <bruno@clisp.org>
12121 * gnulib-tool: New options --po-base, --po-domain.
12122 (func_usage): Document them.
12123 (pobase, po_domain): New variables.
12124 (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
12125 DEFAULT_TEXT_DOMAIN.
12126 (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
12127 (func_import): Consider pobase and po_domain. Create a po/ directory.
12128 (func_create_testdir): Set pobase and po_domain to empty.
12129 * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
12130 * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
12132 2007-07-18 Bruno Haible <bruno@clisp.org>
12134 * gnulib-tool (func_get_automake_snippet): Synthesize also an
12135 EXTRA_DIST augmentation for files in build-aux/.
12137 2007-07-16 Bruno Haible <bruno@clisp.org>
12139 * modules/lseek (License): Use the synonymous term "LGPLv2+".
12140 * modules/getdelim (License): Likewise.
12142 2007-07-16 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
12144 * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
12145 * modules/d-type (License): Likewise.
12146 * modules/extensions (License): Likewise.
12147 * modules/fnmatch (License): Likewise.
12148 * modules/fseeko (License): Likewise.
12149 * modules/getaddrinfo (License): Likewise.
12150 * modules/getline (License): Likewise.
12151 * modules/getlogin_r (License): Likewise.
12152 * modules/getpass (License): Likewise.
12153 * modules/gettimeofday (License): Likewise.
12154 * modules/glob (License): Likewise.
12155 * modules/inet_ntop (License): Likewise.
12156 * modules/malloc (License): Likewise.
12157 * modules/malloca (License): Likewise.
12158 * modules/memmem (License): Likewise.
12159 * modules/mempcpy (License): Likewise.
12160 * modules/memset (License): Likewise.
12161 * modules/minmax (License): Likewise.
12162 * modules/mktime (License): Likewise.
12163 * modules/netinet_in (License): Likewise.
12164 * modules/pathmax (License): Likewise.
12165 * modules/poll (License): Likewise.
12166 * modules/regex (License): Likewise.
12167 * modules/snprintf (License): Likewise.
12168 * modules/stdbool (License): Likewise.
12169 * modules/stdint (License): Likewise.
12170 * modules/stdio (License): Likewise.
12171 * modules/strcase (License): Likewise.
12172 * modules/strcasestr (License): Likewise.
12173 * modules/strdup (License): Likewise.
12174 * modules/string (License): Likewise.
12175 * modules/strndup (License): Likewise.
12176 * modules/strnlen (License): Likewise.
12177 * modules/strpbrk (License): Likewise.
12178 * modules/strptime (License): Likewise.
12179 * modules/strsep (License): Likewise.
12180 * modules/sys_select (License): Likewise.
12181 * modules/sys_socket (License): Likewise.
12182 * modules/sys_stat (License): Likewise.
12183 * modules/sys_time (License): Likewise.
12184 * modules/time (License): Likewise.
12185 * modules/time_r (License): Likewise.
12186 * modules/timegm (License): Likewise.
12187 * modules/unistd (License): Likewise.
12188 * modules/vsnprintf (License): Likewise.
12189 * modules/wctype (License): Likewise.
12191 2007-07-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12193 * modules/argz (License): LGPLv2+.
12195 2007-07-15 Karl Berry <karl@gnu.org>
12197 * doc/gnulib.texi: revise node structure per new fdl.texi.
12199 2007-07-14 Bruno Haible <bruno@clisp.org>
12201 * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
12203 * lib/uniname/uninames.h: Regenerated.
12205 2007-07-14 Karl Berry <karl@gnu.org>
12207 * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
12208 omitting sectioning and index commands.
12210 2007-07-13 Bruno Haible <bruno@clisp.org>
12212 New gnulib-tool option --more-symlinks.
12213 * gnulib-tool (func_usage): Document --more-symlinks.
12214 (do_copyrights): New variable.
12215 Recognize option --more-symlinks.
12216 (func_import): Don't add a copyright notice transform to
12217 sed_transform_lib_file if do_copyrights is empty.
12219 2007-07-13 Bruno Haible <bruno@clisp.org>
12221 * lib/vasnprintf.c (decimal_point_char): Define also if
12222 (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
12223 && !NEED_PRINTF_DIRECTIVE_A.
12224 Reported by Clemens Koller <clemens.koller@anagramm.de> via
12225 Gary V. Vaughan <gary@gnu.org>.
12227 2007-07-13 Paul Eggert <eggert@cs.ucla.edu>
12229 * lib/inttypes_.h: Undo previous change, since it was fixed
12230 in a different way in the 2007-07-02 fix to m4/inttypes.m4.
12232 2007-07-13 Bruno Haible <bruno@clisp.org>
12234 * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
12235 misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
12237 2007-07-13 Jim Meyering <jim@meyering.net>
12239 df: Don't fail for Tru64's "file-on-file mount".
12240 * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
12241 so we fall through and use statfs instead. Details here:
12242 <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
12243 Reported by Albert Chin.
12245 2007-07-13 Bruno Haible <bruno@clisp.org>
12247 * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
12248 * modules/configmake (License): Likewise.
12249 * modules/gettext (License): Likewise.
12250 * modules/gettext-h (License): Likewise.
12251 * modules/include_next (License): Likewise.
12252 * modules/link-warning (License): Likewise.
12253 * modules/localcharset (License): Likewise.
12254 * modules/localename (License): Likewise.
12255 * modules/lock (License): Likewise.
12256 * modules/relocatable-lib-lgpl (License): Likewise.
12257 * modules/size_max (License): Likewise.
12258 * modules/vasnprintf (License): Likewise.
12259 * modules/wchar (License): Likewise.
12260 * modules/xsize (License): Likewise.
12262 2007-07-13 Bruno Haible <bruno@clisp.org>
12264 * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
12265 (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
12267 2007-07-12 Bruno Haible <bruno@clisp.org>
12269 * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
12270 in the modules files.
12272 2007-07-11 Karl Berry <karl@gnu.org>
12274 * MODULES.html.sh (func_module): use
12275 sed -e '\|^'"${includefile}"'$|d'
12276 instead of /.../d, to avoid errors on $includefile's containing /.
12278 2007-07-10 Sergey Poznyakoff <gray@gnu.org.ua>
12280 * gnulib-tool (func_import): Avoid duplication of --avoid
12282 (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
12283 names to `_' in variable names.
12285 2007-07-10 Eric Blake <ebb9@byu.net>
12287 * lib/version-etc.c (version_etc_va): Default to GPLv3+.
12288 * NEWS: Document this change.
12290 2007-07-08 Bruno Haible <bruno@clisp.org>
12292 Update to Unicode 5.0.
12293 * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
12294 U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
12295 U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
12296 U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
12297 U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
12298 U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
12299 U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
12300 U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
12301 U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
12302 U+10A3F, U+1D242..U+1D244.
12303 (nonspacing_table_ind): Update.
12304 (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
12305 U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
12307 2007-07-08 Bruno Haible <bruno@clisp.org>
12309 Update to Unicode 5.0.
12310 * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
12311 code transform. Extend the name index field of unicode_name_to_code and
12312 unicode_code_to_name from 16 to 24 bits.
12313 * lib/uniname/uniname.c (unicode_character_name,
12314 unicode_name_character): Add the range 0x12xxx to the code transform.
12315 * lib/uniname/uninames.h: Regenerated.
12316 * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
12318 2007-07-07 Bruno Haible <bruno@clisp.org>
12320 * modules/wcwidth-tests: New file.
12321 * tests/test-wcwidth.c: New file.
12323 Work around MacOS X wcwidth() bug.
12324 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
12325 * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
12326 (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
12327 original wcwidth in non-UTF-8 locales.
12328 * modules/wcwidth (Depends-on): Add localcharset, streq,
12330 * doc/functions/wcwidth.texi: Update.
12332 2007-07-07 Bruno Haible <bruno@clisp.org>
12334 * lib/wchar_.h: Include the GL_LINK_WARNING macro.
12335 (wcwidth): New declaration.
12336 * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
12338 (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
12339 here. Prepare for creating <wchar.h> unconditionally.
12340 * modules/wchar (Depends-on): Add link-warning.
12341 (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
12342 REPLACE_WCWIDTH, and GL_LINK_WARNING.
12343 * lib/wcwidth.h: Remove file.
12344 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
12345 HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
12346 * modules/wcwidth (Files): Remove lib/wcwidth.h.
12347 (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
12348 (Include): Replace wcwidth.h with <wchar.h>.
12349 * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
12350 * lib/mbchar.h: Don't include wcwidth.h.
12351 * lib/mbswidth.c: Likewise.
12352 * NEWS: Mention the change.
12354 2007-07-07 Bruno Haible <bruno@clisp.org>
12356 * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
12357 * lib/wcwidth.h: Don't include wctype.h. Replace inline function
12358 definition with an external declaration.
12359 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
12360 defined as a function. Remove AC_C_INLINE requirement.
12361 * modules/wcwidth (Files): Add lib/wcwidth.c.
12362 (Makefile.am): Remove redundant statement.
12364 2007-07-07 Bruno Haible <bruno@clisp.org>
12366 * MODULES.html.sh (Unicode string functions): Add the new modules.
12368 * tests/uniwidth/test-u32-strwidth.c: New file.
12369 * modules/uniwidth/u32-strwidth-tests: New file.
12371 * lib/uniwidth/u32-strwidth.c: New file.
12372 * modules/uniwidth/u32-strwidth: New file.
12374 * tests/uniwidth/test-u16-strwidth.c: New file.
12375 * modules/uniwidth/u16-strwidth-tests: New file.
12377 * lib/uniwidth/u16-strwidth.c: New file.
12378 * modules/uniwidth/u16-strwidth: New file.
12380 * tests/uniwidth/test-u8-strwidth.c: New file.
12381 * modules/uniwidth/u8-strwidth-tests: New file.
12383 * lib/uniwidth/u8-strwidth.c: New file.
12384 * modules/uniwidth/u8-strwidth: New file.
12386 * tests/uniwidth/test-u32-width.c: New file.
12387 * modules/uniwidth/u32-width-tests: New file.
12389 * lib/uniwidth/u32-width.c: New file.
12390 * modules/uniwidth/u32-width: New file.
12392 * tests/uniwidth/test-u16-width.c: New file.
12393 * modules/uniwidth/u16-width-tests: New file.
12395 * lib/uniwidth/u16-width.c: New file.
12396 * modules/uniwidth/u16-width: New file.
12398 * tests/uniwidth/test-u8-width.c: New file.
12399 * modules/uniwidth/u8-width-tests: New file.
12401 * lib/uniwidth/u8-width.c: New file.
12402 * modules/uniwidth/u8-width: New file.
12404 * tests/uniwidth/test-uc_width.c: New file.
12405 * modules/uniwidth/width-tests: New file.
12407 * lib/uniwidth/width.c: New file, from GNU libiconv.
12408 * lib/uniwidth/cjk.h: New file, from GNU libiconv.
12409 * modules/uniwidth/width: New file.
12411 * lib/uniwidth.h: New file, from GNU libiconv.
12412 * modules/uniwidth/base: New file.
12414 2007-07-07 Bruno Haible <bruno@clisp.org>
12416 * lib/uniname.h: New file, from GNU gettext.
12417 * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
12418 * lib/uniname/uninames.h: New file, from GNU gettext.
12419 * lib/uniname/uniname.c: New file, from GNU gettext.
12420 * tests/uniname/test-uninames.sh: New file.
12421 * tests/uniname/test-uninames.c: New file, from GNU gettext.
12422 * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
12423 * modules/uniname/base: New file.
12424 * modules/uniname/uniname: New file.
12425 * modules/uniname/uniname-tests: New file.
12426 * MODULES.html.sh (Unicode string functions): Add the new modules.
12428 2007-07-06 Bruno Haible <bruno@clisp.org>
12430 * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
12432 2007-07-06 Bruno Haible <bruno@clisp.org>
12434 * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
12435 a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
12436 includes <cygwin/sys_time.h> which includes <sys/select.h> which
12437 include <sys/time.h>.
12438 Reported by Eric Blake.
12440 2007-07-06 Eric Blake <ebb9@byu.net>
12442 Fix testing canonicalize on cygwin.
12443 * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
12444 Revert patch from 2007-06-19.
12445 * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
12446 canonicalize module is also in use.
12447 * tests/test-canonicalize.c: New file.
12448 * tests/test-canonicalize.sh: Likewise.
12449 * modules/canonicalize-tests: Likewise.
12451 2007-07-06 Jim Meyering <jim@meyering.net>
12453 * lib/getugroups.c (getugroups): Detect getgrent failure.
12454 Adjust comment to reflect reality: this function may return -1.
12456 2007-07-05 Sergey Poznyakoff <gray@gnu.org.ua>
12458 * build-aux/bootstrap (TP_URL,get_translations): Update to use
12459 the new TP address.
12461 (gnulib_mk): New variable.
12463 2007-07-05 Jim Meyering <jim@meyering.net>
12465 Don't let endgrent clobber errno, no matter how improbable.
12466 * lib/getugroups.c (getugroups): Save and restore errno around
12469 Close the group DB even when failing with 2^31 or more members.
12470 * lib/getugroups.c (getugroups): Don't return without calling endgrent.
12472 2007-07-04 Jim Meyering <jim@meyering.net>
12474 * lib/getugroups.h: New file.
12475 * lib/getugroups.c: Include "getugroups.h".
12476 Remove uses of "register" keyword.
12477 Move local variable, "cp", down into scope where used.
12478 Give "username" parameter the "const" attribute.
12479 * modules/getugroups (Files): Add lib/getugroups.h
12481 2007-07-04 Karl Berry <karl@gnu.org>
12483 * MODULES.html.sh (func_all_modules): Complete rename of
12484 gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
12486 2007-07-02 Bruno Haible <bruno@clisp.org>
12488 * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
12489 mode, when inttypes.h comes from gnulib.
12490 Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
12492 2007-07-02 Simon Josefsson <simon@josefsson.org>
12494 * NEWS: Mention lgpl module name change.
12496 * modules/lgpl-2.1: Renamed from lgpl.
12498 * NEWS: Mention gpl module name change.
12500 * modules/gpl-3.0: New file, based on gpl-2.0.
12502 * modules/gpl-2.0: Renamed from gpl.
12504 * modules/gpl: Fix filename, doc/gpl.texi is now found at
12507 2007-07-02 Paul Eggert <eggert@cs.ucla.edu>
12509 * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
12510 #define __STDC_LIMIT_MACROS temporarily while including
12511 <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
12512 Problem reported by Joel E. Denny in
12513 <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
12515 2007-07-01 Bruno Haible <bruno@clisp.org>
12517 * lib/unistdio.h: New file.
12518 * lib/unistdio/u-asnprintf.h: New file.
12519 * lib/unistdio/u-asprintf.h: New file.
12520 * lib/unistdio/u-printf-args.c: New file.
12521 * lib/unistdio/u-printf-args.h: New file.
12522 * lib/unistdio/u-printf-parse.h: New file.
12523 * lib/unistdio/u-snprintf.h: New file.
12524 * lib/unistdio/u-sprintf.h: New file.
12525 * lib/unistdio/u-vasprintf.h: New file.
12526 * lib/unistdio/u-vsnprintf.h: New file.
12527 * lib/unistdio/u-vsprintf.h: New file.
12528 * lib/unistdio/ulc-asnprintf.c: New file.
12529 * lib/unistdio/ulc-asprintf.c: New file.
12530 * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
12531 * lib/unistdio/ulc-printf-parse.c: New file.
12532 * lib/unistdio/ulc-snprintf.c: New file.
12533 * lib/unistdio/ulc-sprintf.c: New file.
12534 * lib/unistdio/ulc-vasnprintf.c: New file.
12535 * lib/unistdio/ulc-vasprintf.c: New file.
12536 * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
12537 * lib/unistdio/ulc-vsnprintf.c: New file.
12538 * lib/unistdio/ulc-vsprintf.c: New file.
12539 * lib/unistdio/u8-asnprintf.c: New file.
12540 * lib/unistdio/u8-asprintf.c: New file.
12541 * lib/unistdio/u8-printf-parse.c: New file.
12542 * lib/unistdio/u8-snprintf.c: New file.
12543 * lib/unistdio/u8-sprintf.c: New file.
12544 * lib/unistdio/u8-vasnprintf.c: New file.
12545 * lib/unistdio/u8-vasprintf.c: New file.
12546 * lib/unistdio/u8-vsnprintf.c: New file.
12547 * lib/unistdio/u8-vsprintf.c: New file.
12548 * lib/unistdio/u8-u8-asnprintf.c: New file.
12549 * lib/unistdio/u8-u8-asprintf.c: New file.
12550 * lib/unistdio/u8-u8-snprintf.c: New file.
12551 * lib/unistdio/u8-u8-sprintf.c: New file.
12552 * lib/unistdio/u8-u8-vasnprintf.c: New file.
12553 * lib/unistdio/u8-u8-vasprintf.c: New file.
12554 * lib/unistdio/u8-u8-vsnprintf.c: New file.
12555 * lib/unistdio/u8-u8-vsprintf.c: New file.
12556 * lib/unistdio/u16-asnprintf.c: New file.
12557 * lib/unistdio/u16-asprintf.c: New file.
12558 * lib/unistdio/u16-printf-parse.c: New file.
12559 * lib/unistdio/u16-snprintf.c: New file.
12560 * lib/unistdio/u16-sprintf.c: New file.
12561 * lib/unistdio/u16-vasnprintf.c: New file.
12562 * lib/unistdio/u16-vasprintf.c: New file.
12563 * lib/unistdio/u16-vsnprintf.c: New file.
12564 * lib/unistdio/u16-vsprintf.c: New file.
12565 * lib/unistdio/u16-u16-asnprintf.c: New file.
12566 * lib/unistdio/u16-u16-asprintf.c: New file.
12567 * lib/unistdio/u16-u16-snprintf.c: New file.
12568 * lib/unistdio/u16-u16-sprintf.c: New file.
12569 * lib/unistdio/u16-u16-vasnprintf.c: New file.
12570 * lib/unistdio/u16-u16-vasprintf.c: New file.
12571 * lib/unistdio/u16-u16-vsnprintf.c: New file.
12572 * lib/unistdio/u16-u16-vsprintf.c: New file.
12573 * lib/unistdio/u32-asnprintf.c: New file.
12574 * lib/unistdio/u32-asprintf.c: New file.
12575 * lib/unistdio/u32-printf-parse.c: New file.
12576 * lib/unistdio/u32-snprintf.c: New file.
12577 * lib/unistdio/u32-sprintf.c: New file.
12578 * lib/unistdio/u32-vasnprintf.c: New file.
12579 * lib/unistdio/u32-vasprintf.c: New file.
12580 * lib/unistdio/u32-vsnprintf.c: New file.
12581 * lib/unistdio/u32-vsprintf.c: New file.
12582 * lib/unistdio/u32-u32-asnprintf.c: New file.
12583 * lib/unistdio/u32-u32-asprintf.c: New file.
12584 * lib/unistdio/u32-u32-snprintf.c: New file.
12585 * lib/unistdio/u32-u32-sprintf.c: New file.
12586 * lib/unistdio/u32-u32-vasnprintf.c: New file.
12587 * lib/unistdio/u32-u32-vasprintf.c: New file.
12588 * lib/unistdio/u32-u32-vsnprintf.c: New file.
12589 * lib/unistdio/u32-u32-vsprintf.c: New file.
12590 * tests/unistdio/test-ulc-asnprintf1.c: New file.
12591 * tests/unistdio/test-ulc-asnprintf1.h: New file.
12592 * tests/unistdio/test-ulc-printf1.h: New file.
12593 * tests/unistdio/test-ulc-vasnprintf1.c: New file.
12594 * tests/unistdio/test-ulc-vasnprintf2.c: New file.
12595 * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
12596 * tests/unistdio/test-ulc-vasnprintf3.c: New file.
12597 * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
12598 * tests/unistdio/test-ulc-vasprintf1.c: New file.
12599 * tests/unistdio/test-ulc-vsnprintf1.c: New file.
12600 * tests/unistdio/test-ulc-vsprintf1.c: New file.
12601 * tests/unistdio/test-u8-asnprintf1.c: New file.
12602 * tests/unistdio/test-u8-asnprintf1.h: New file.
12603 * tests/unistdio/test-u8-printf1.h: New file.
12604 * tests/unistdio/test-u8-vasnprintf1.c: New file.
12605 * tests/unistdio/test-u8-vasnprintf2.c: New file.
12606 * tests/unistdio/test-u8-vasnprintf2.sh: New file.
12607 * tests/unistdio/test-u8-vasnprintf3.c: New file.
12608 * tests/unistdio/test-u8-vasnprintf3.sh: New file.
12609 * tests/unistdio/test-u8-vasprintf1.c: New file.
12610 * tests/unistdio/test-u8-vsnprintf1.c: New file.
12611 * tests/unistdio/test-u8-vsprintf1.c: New file.
12612 * tests/unistdio/test-u16-asnprintf1.c: New file.
12613 * tests/unistdio/test-u16-asnprintf1.h: New file.
12614 * tests/unistdio/test-u16-printf1.h: New file.
12615 * tests/unistdio/test-u16-vasnprintf1.c: New file.
12616 * tests/unistdio/test-u16-vasnprintf2.c: New file.
12617 * tests/unistdio/test-u16-vasnprintf2.sh: New file.
12618 * tests/unistdio/test-u16-vasnprintf3.c: New file.
12619 * tests/unistdio/test-u16-vasnprintf3.sh: New file.
12620 * tests/unistdio/test-u16-vasprintf1.c: New file.
12621 * tests/unistdio/test-u16-vsnprintf1.c: New file.
12622 * tests/unistdio/test-u16-vsprintf1.c: New file.
12623 * tests/unistdio/test-u32-asnprintf1.c: New file.
12624 * tests/unistdio/test-u32-asnprintf1.h: New file.
12625 * tests/unistdio/test-u32-printf1.h: New file.
12626 * tests/unistdio/test-u32-vasnprintf1.c: New file.
12627 * tests/unistdio/test-u32-vasnprintf2.c: New file.
12628 * tests/unistdio/test-u32-vasnprintf2.sh: New file.
12629 * tests/unistdio/test-u32-vasnprintf3.c: New file.
12630 * tests/unistdio/test-u32-vasnprintf3.sh: New file.
12631 * tests/unistdio/test-u32-vasprintf1.c: New file.
12632 * tests/unistdio/test-u32-vsnprintf1.c: New file.
12633 * tests/unistdio/test-u32-vsprintf1.c: New file.
12634 * modules/unistdio/base: New file.
12635 * modules/unistdio/u-printf-args: New file.
12636 * modules/unistdio/ulc-asnprintf: New file.
12637 * modules/unistdio/ulc-asprintf: New file.
12638 * modules/unistdio/ulc-fprintf: New file.
12639 * modules/unistdio/ulc-printf-parse: New file.
12640 * modules/unistdio/ulc-snprintf: New file.
12641 * modules/unistdio/ulc-sprintf: New file.
12642 * modules/unistdio/ulc-vasnprintf: New file.
12643 * modules/unistdio/ulc-vasprintf: New file.
12644 * modules/unistdio/ulc-vfprintf: New file.
12645 * modules/unistdio/ulc-vsnprintf: New file.
12646 * modules/unistdio/ulc-vsprintf: New file.
12647 * modules/unistdio/u8-asnprintf: New file.
12648 * modules/unistdio/u8-asprintf: New file.
12649 * modules/unistdio/u8-printf-parse: New file.
12650 * modules/unistdio/u8-snprintf: New file.
12651 * modules/unistdio/u8-sprintf: New file.
12652 * modules/unistdio/u8-vasnprintf: New file.
12653 * modules/unistdio/u8-vasprintf: New file.
12654 * modules/unistdio/u8-vsnprintf: New file.
12655 * modules/unistdio/u8-vsprintf: New file.
12656 * modules/unistdio/u8-u8-asnprintf: New file.
12657 * modules/unistdio/u8-u8-asprintf: New file.
12658 * modules/unistdio/u8-u8-snprintf: New file.
12659 * modules/unistdio/u8-u8-sprintf: New file.
12660 * modules/unistdio/u8-u8-vasnprintf: New file.
12661 * modules/unistdio/u8-u8-vasprintf: New file.
12662 * modules/unistdio/u8-u8-vsnprintf: New file.
12663 * modules/unistdio/u8-u8-vsprintf: New file.
12664 * modules/unistdio/u16-asnprintf: New file.
12665 * modules/unistdio/u16-asprintf: New file.
12666 * modules/unistdio/u16-printf-parse: New file.
12667 * modules/unistdio/u16-snprintf: New file.
12668 * modules/unistdio/u16-sprintf: New file.
12669 * modules/unistdio/u16-vasnprintf: New file.
12670 * modules/unistdio/u16-vasprintf: New file.
12671 * modules/unistdio/u16-vsnprintf: New file.
12672 * modules/unistdio/u16-vsprintf: New file.
12673 * modules/unistdio/u16-u16-asnprintf: New file.
12674 * modules/unistdio/u16-u16-asprintf: New file.
12675 * modules/unistdio/u16-u16-snprintf: New file.
12676 * modules/unistdio/u16-u16-sprintf: New file.
12677 * modules/unistdio/u16-u16-vasnprintf: New file.
12678 * modules/unistdio/u16-u16-vasprintf: New file.
12679 * modules/unistdio/u16-u16-vsnprintf: New file.
12680 * modules/unistdio/u16-u16-vsprintf: New file.
12681 * modules/unistdio/u32-asnprintf: New file.
12682 * modules/unistdio/u32-asprintf: New file.
12683 * modules/unistdio/u32-printf-parse: New file.
12684 * modules/unistdio/u32-snprintf: New file.
12685 * modules/unistdio/u32-sprintf: New file.
12686 * modules/unistdio/u32-vasnprintf: New file.
12687 * modules/unistdio/u32-vasprintf: New file.
12688 * modules/unistdio/u32-vsnprintf: New file.
12689 * modules/unistdio/u32-vsprintf: New file.
12690 * modules/unistdio/u32-u32-asnprintf: New file.
12691 * modules/unistdio/u32-u32-asprintf: New file.
12692 * modules/unistdio/u32-u32-snprintf: New file.
12693 * modules/unistdio/u32-u32-sprintf: New file.
12694 * modules/unistdio/u32-u32-vasnprintf: New file.
12695 * modules/unistdio/u32-u32-vasprintf: New file.
12696 * modules/unistdio/u32-u32-vsnprintf: New file.
12697 * modules/unistdio/u32-u32-vsprintf: New file.
12698 * modules/unistdio/ulc-asnprintf-tests: New file.
12699 * modules/unistdio/ulc-vasnprintf-tests: New file.
12700 * modules/unistdio/ulc-vasprintf-tests: New file.
12701 * modules/unistdio/ulc-vsnprintf-tests: New file.
12702 * modules/unistdio/ulc-vsprintf-tests: New file.
12703 * modules/unistdio/u8-asnprintf-tests: New file.
12704 * modules/unistdio/u8-vasnprintf-tests: New file.
12705 * modules/unistdio/u8-vasprintf-tests: New file.
12706 * modules/unistdio/u8-vsnprintf-tests: New file.
12707 * modules/unistdio/u8-vsprintf-tests: New file.
12708 * modules/unistdio/u16-asnprintf-tests: New file.
12709 * modules/unistdio/u16-vasnprintf-tests: New file.
12710 * modules/unistdio/u16-vasprintf-tests: New file.
12711 * modules/unistdio/u16-vsnprintf-tests: New file.
12712 * modules/unistdio/u16-vsprintf-tests: New file.
12713 * modules/unistdio/u32-asnprintf-tests: New file.
12714 * modules/unistdio/u32-vasnprintf-tests: New file.
12715 * modules/unistdio/u32-vasprintf-tests: New file.
12716 * modules/unistdio/u32-vsnprintf-tests: New file.
12717 * modules/unistdio/u32-vsprintf-tests: New file.
12718 * MODULES.html.sh (Unicode string functions): Add the new modules.
12720 2007-07-01 Bruno Haible <bruno@clisp.org>
12722 * lib/sprintf.c (sprintf): Limit the available length estimation,
12723 to avoid address wraparound.
12724 * lib/vsprintf.c (vsprintf): Likewise.
12725 * modules/sprintf-posix (Dependencies): Add stdint.
12726 * modules/vsprintf-posix (Dependencies): Likewise.
12728 2007-07-01 Bruno Haible <bruno@clisp.org>
12730 * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
12731 Windows PATH as well. Conservative double-quoting. Comments.
12733 2007-07-01 Bruno Haible <bruno@clisp.org>
12734 Eric Blake <ebb9@byu.net>
12735 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12737 * gnulib-tool (self_abspathname): Fix algorithm to cope with
12738 empty components in $PATH, denoting '.'.
12740 2007-07-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12742 * gnulib-tool: Fix indentation.
12743 (func_create_megatestdir): Likewise.
12744 Report by Bruno Haible.
12746 2007-06-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12748 Sync from Automake.
12749 * build-aux/gnupload: Fix shell portability issues with for loops.
12750 Report by Karl Berry.
12752 2007-06-29 Simon Josefsson <simon@josefsson.org>
12754 * build-aux/maint.mk (POURL): Use translationproject.org.
12756 2007-06-27 Simon Josefsson <simon@josefsson.org>
12757 Bruno Haible <bruno@clisp.org>
12759 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
12760 before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
12761 explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
12762 (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
12763 HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
12765 2007-06-27 Bruno Haible <bruno@clisp.org>
12767 * build-aux/config.rpath: Upgrade to libtool-1.5.24.
12768 * build-aux/config.libpath: Upgrade to libtool-1.5.24.
12770 2007-06-26 Karl Berry <karl@gnu.org>
12772 * MODULES.html.sh: remove xreadlink-with-size.
12774 2007-06-23 Paul Eggert <eggert@cs.ucla.edu>
12776 * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
12777 method that I hope also handles the double-include problem noted
12779 <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
12781 2007-06-23 Bruno Haible <bruno@clisp.org>
12783 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
12784 Don't let the 'mostlyclean' target fail if the last subdirectory could
12786 Reported by Karl Berry.
12788 2007-06-23 Bruno Haible <bruno@clisp.org>
12790 * gnulib-tool (echo): Add a speedier workaround for ksh.
12791 * tests/test-echo.sh: Likewise.
12793 2007-06-23 Bruno Haible <bruno@clisp.org>
12795 * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
12796 * tests/test-echo.sh: Likewise.
12798 2007-06-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12800 * gnulib-tool (IFS): Initialize early, so we don't set it to
12802 (self_abspathname): Rewrite algorithm to set it, reindent.
12803 (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
12804 (func_create_megatestdir): Merge some sed scripts.
12806 2007-06-23 Paul Eggert <eggert@cs.ucla.edu>
12808 * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
12809 exposed by Sun Studio 11 cc on Solaris 8.
12811 2007-06-22 Bruno Haible <bruno@clisp.org>
12813 * gnulib-tool (echo): Ensure the echo primitive does not interpret
12815 * tests/test-echo.sh: New file.
12817 2007-06-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12819 * gnulib-tool (func_add_or_update, func_create_testdir): Do not
12820 simplify `sed_replace_build_aux' scripts, they are portable but
12821 echoing them with `echo' is not.
12822 Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
12824 2007-06-21 Karl Berry <karl@gnu.org>
12826 * config/srclist.txt: guess we can't handle the licenses via
12827 srclist at the moment.
12829 2007-06-21 Paul Eggert <eggert@cs.ucla.edu>
12831 * MODULES.html.sh: Add include_next.
12832 * modules/include_next: New file.
12834 2007-06-20 Paul Eggert <eggert@cs.ucla.edu>
12836 * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
12838 (gl_CHECK_NEXT_HEADERS): New macro.
12839 * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
12840 the obsolescent gl_ABSOLUTE_HEADER.
12841 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
12842 * m4/float_h.m4 (gl_FLOAT_H): Likewise.
12843 * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
12844 * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
12845 * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
12846 * m4/math_h.m4 (gl_MATH_H): Likewise.
12847 * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
12848 * m4/search_h.m4 (gl_SEARCH_H): Likewise.
12849 * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
12850 * m4/stdint.m4 (gl_STDINT_H): Likewise.
12851 * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
12852 * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
12853 * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
12854 * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
12855 * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
12856 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
12857 * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
12858 * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
12859 * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
12860 * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
12861 * m4/wchar.m4 (gl_WCHAR_H): Likewise.
12862 * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
12863 * m4/inttypes.m4 (gl_INTTYPES_H): Define
12864 _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
12865 builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
12866 * m4/stdint.m4 (gl_STDINT_H): Likewise, for
12867 _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
12868 * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
12869 rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
12870 * lib/float_.h: Likewise.
12871 * lib/inttypes_.h: Likewise.
12872 * lib/math_.h: Likewise.
12873 * lib/search_.h: Likewise.
12874 * lib/signal_.h: Likewise.
12875 * lib/stdint_.h: Likewise.
12876 * lib/stdio_.h: Likewise.
12877 * lib/stdlib_.h: Likewise.
12878 * lib/string_.h: Likewise.
12879 * lib/sys_stat_.h: Likewise.
12880 * lib/sys_time_.h: Likewise.
12881 * lib/time_.h: Likewise.
12882 * lib/unistd_.h: Likewise.
12883 * lib/wchar_.h: Likewise.
12884 * lib/wctype_.h: Likewise.
12885 * lib/dirent_.h: Likewise.
12886 * lib/iconv_.h: Likewise.
12887 * lib/locale_.h: Likewise.
12888 * lib/netinet_in_.h: Likewise.
12889 * lib/sys_select_.h: Likewise.
12890 * lib/sys_socket_.h: Likewise.
12891 * lib/sysexits_.h: Likewise.
12892 * modules/fcntl (Depends-on): Depend on include_next, not
12894 (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
12895 HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
12896 * modules/fchdir: Likewise.
12897 * modules/float: Likewise.
12898 * modules/iconv_open: Likewise.
12899 * modules/inttypes: Likewise.
12900 * modules/locale: Likewise.
12901 * modules/math: Likewise.
12902 * modules/netinet_in: Likewise.
12903 * modules/search: Likewise.
12904 * modules/signal: Likewise.
12905 * modules/stdint: Likewise.
12906 * modules/stdio: Likewise.
12907 * modules/stdlib: Likewise.
12908 * modules/string: Likewise.
12909 * modules/sys_select: Likewise.
12910 * modules/sys_socket: Likewise.
12911 * modules/sys_stat: Likewise.
12912 * modules/sys_time: Likewise.
12913 * modules/sysexits: Likewise.
12914 * modules/time: Likewise.
12915 * modules/unistd: Likewise.
12916 * modules/wchar: Likewise.
12917 * modules/wctype: Likewise.
12918 * modules/sys_stat: Change maintainer to "all".
12919 * modules/unistd: Likewise.
12921 2007-06-20 Karl Berry <karl@gnu.org>
12923 * config/srclist.txt: track www changes in license files.
12925 2007-06-20 Sergey Poznyakoff <gray@gnu.org.ua>
12927 * build-aux/bootstrap: Remove stray dot.
12928 Make sure build_aux settings are honored when linking
12929 gnulib_extra_files.
12931 2007-06-19 Eric Blake <ebb9@byu.net>
12933 * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
12934 Allow compilation on cygwin.
12936 2007-06-19 Jim Meyering <jim@meyering.net>
12938 xreadlink-with-size: Remove module. No longer used.
12939 Ex-callers now use xreadlink or mreadlink-with-size.
12940 * modules/xreadlink-with-size: Remove module.
12941 * lib/xreadlink-with-size.c: Remove file.
12942 * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
12943 (xreadlink): Remove inaccurate comment. The one in xreadlink.c,
12944 just before the function definition *is* accurate.
12946 Eliminate one way canonicalize_filename_mode could exit.
12947 * lib/canonicalize.c (canonicalize_filename_mode):
12948 Use mreadlink_with_size, not xreadlink_with_size.
12950 2007-06-18 Paul Eggert <eggert@cs.ucla.edu>
12952 Detect porting problems to FreeBSD/arm, which has time_t wider than
12953 long int. Original problem reported for GNU diff by Xin Li in
12954 <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
12955 * modules/getdate (Depends-on): Add intprops, verify.
12956 * lib/getdate.y: Include intprops.h, verify.h. Verify that time_t
12957 is an integer type no wider than long int.
12959 2007-06-18 Jim Meyering <jim@meyering.net>
12961 New module: mreadlink-with-size.
12962 * MODULES.html.sh: Add mreadlink-with-size.
12963 * modules/mreadlink-with-size: New module
12964 * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
12965 not xreadlink-with-size.
12966 * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
12968 2007-06-16 Bruno Haible <bruno@clisp.org>
12970 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
12971 * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
12972 Reported by Gary V. Vaughan <gary@gnu.org>.
12974 2007-06-15 Paul Eggert <eggert@cs.ucla.edu>
12976 Revamp lchown so that it lives in unistd.h where it belongs.
12977 * lib/lchown.h: Remove.
12978 * lib/dirchownmod.c: Don't include lib/lchown.h.
12979 * lib/fchownat.c: Likewise.
12980 * lib/openat.c: Likewise.
12981 * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
12982 does not follow symlinks.
12983 (EOPNOTSUPP): Define if not defined.
12984 * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
12986 (lchown): New decl.
12987 * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
12988 Do not check for lchown decl.
12989 Set REPLACE_LCHOWN.
12990 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
12992 * modules/chown: Make it clear it follows symlinks.
12993 * modules/lchown: Make it clear it doesn't follow symlinks.
12994 (Files): Remove lib/lchown.h
12995 (Depends-on): Add unistd.
12996 (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
12997 (Include): Include <unistd.h>, not "lchown.h".
12998 * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
13001 2007-06-15 Jim Meyering <jim@meyering.net>
13003 Change license (GPL to LGPL) of fsusage and dependents.
13004 * modules/fsusage (License): Change to LGPL.
13005 * modules/full-read (License): Likewise.
13006 * modules/full-write (License): Likewise.
13007 * modules/safe-read (License): Likewise.
13008 * modules/safe-write (License): Likewise.
13010 2007-06-14 Ben Pfaff <blp@gnu.org>
13012 Missing part of allocsa -> malloca transition.
13013 * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
13016 2007-06-12 Bruno Haible <bruno@clisp.org>
13018 * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
13019 to ia64, x86_64, i386.
13020 Reported by Eric Blake.
13022 2007-06-12 Bruno Haible <bruno@clisp.org>
13024 * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
13025 cross-compiling to x86_64.
13027 2007-06-12 Paul Eggert <eggert@cs.ucla.edu>
13029 * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
13030 glitch reported by Ralf Wildenhues in
13031 <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
13033 * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
13036 2007-06-11 Bruno Haible <bruno@clisp.org>
13038 * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
13039 replacement string.
13040 Reported by Eric Blake.
13042 2007-06-10 Bruno Haible <bruno@clisp.org>
13044 Prepare vasnprintf code for use with Unicode strings.
13045 * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
13046 (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
13048 (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
13049 a_u32_string variants.
13050 (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
13051 * lib/printf-args.c: Don't include config.h and the specification
13052 header if PRINTF_FETCHARGS is already defined.
13053 (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
13054 (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
13055 TYPE_U16_STRING, TYPE_U32_STRING.
13056 * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
13057 u16_directive, u16_directives, u32_directive, u32_directives): New
13059 (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
13061 * lib/printf-parse.c: Don't include config.h and the specification
13062 header if PRINTF_PARSE is already defined. Eliminate the set of
13063 parameters for WIDE_CHAR_VERSION; the user of this file must provide
13064 them now. Include c-ctype.h.
13065 (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
13066 directive and CHAR_T_ONLY_ASCII.
13067 * lib/vasnprintf.c: Don't include config.h and the specification header
13068 if VASNPRINTF is already defined.
13069 (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
13070 (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
13071 DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
13072 type. Handle the case that TCHAR_T and FCHAR_T are not of the same
13073 size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
13074 add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
13076 (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
13077 pad_ourselves also in this case, with the 'c' and 's' directives, and
13078 with a different notion of "width".
13079 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
13081 2007-06-10 Bruno Haible <bruno@clisp.org>
13083 * modules/unistr/u32-mbsnlen: New file.
13084 * lib/unistr/u32-mbsnlen.c: New file.
13086 * modules/unistr/u16-mbsnlen: New file.
13087 * lib/unistr/u16-mbsnlen.c: New file.
13089 * modules/unistr/u8-mbsnlen: New file.
13090 * lib/unistr/u8-mbsnlen.c: New file.
13092 * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
13095 2007-06-10 Bruno Haible <bruno@clisp.org>
13097 * lib/string_.h (mbsnlen): New declaration.
13098 * lib/mbsnlen.c: New file.
13099 * m4/mbsnlen.m4: New file.
13100 * modules/mbsnlen: New file.
13101 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
13102 * modules/string (string.h): Substitute GNULIB_MBSNLEN.
13103 * MODULES.html.sh (Internationalization functions): Add mbsnlen.
13105 2007-06-10 Bruno Haible <bruno@clisp.org>
13107 * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
13109 2007-06-10 Bruno Haible <bruno@clisp.org>
13111 * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
13112 * lib/mbuiter.h: Likewise.
13114 2007-06-10 Bruno Haible <bruno@clisp.org>
13116 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
13119 2007-06-10 Karl Berry <karl@gnu.org>
13121 * config/srclist.txt: remove gettext entries, Bruno prefers
13122 to update individually.
13124 2007-06-10 Bruno Haible <bruno@clisp.org>
13126 * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
13127 'maxlen'. Ensure only length + width bytes are allocated, not
13128 length + 1 + width.
13130 2007-06-09 Bruno Haible <bruno@clisp.org>
13132 * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
13133 (CHAR_T): Remove macro.
13134 (VASNPRINTF): Update.
13136 2007-06-09 Bruno Haible <bruno@clisp.org>
13138 * MODULES.html.sh (Unicode string functions): Add the new modules.
13140 * modules/uniconv/u32-conv-to-enc: New file.
13141 * lib/uniconv/u32-conv-to-enc.c: New file.
13142 * modules/uniconv/u32-conv-to-enc-tests: New file.
13143 * tests/uniconv/test-u32-conv-to-enc.c: New file.
13145 * modules/uniconv/u16-conv-to-enc: New file.
13146 * lib/uniconv/u16-conv-to-enc.c: New file.
13147 * lib/uniconv/u-conv-to-enc.h: New file.
13148 * modules/uniconv/u16-conv-to-enc-tests: New file.
13149 * tests/uniconv/test-u16-conv-to-enc.c: New file.
13151 * modules/uniconv/u8-conv-to-enc: New file.
13152 * lib/uniconv/u8-conv-to-enc.c: New file.
13153 * modules/uniconv/u8-conv-to-enc-tests: New file.
13154 * tests/uniconv/test-u8-conv-to-enc.c: New file.
13156 * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
13157 u32_conv_to_encoding): New declarations.
13159 2007-06-09 Bruno Haible <bruno@clisp.org>
13161 * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
13163 2007-06-09 Bruno Haible <bruno@clisp.org>
13165 Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
13166 * modules/malloca: Renamed from modules/allocsa, updated.
13167 * lib/malloca.h: Renamed from lib/allocsa.h, updated.
13168 * lib/malloca.c: Renamed from lib/allocsa.c, updated.
13169 * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
13170 * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
13171 * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
13172 * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
13173 * modules/xmalloca: Renamed from modules/xallocsa, updated.
13174 * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
13175 * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
13176 * modules/c-strcasestr (Depends-on): Update.
13177 * lib/c-strcasestr.c: Update.
13178 * modules/c-strstr (Depends-on): Update.
13179 * lib/c-strstr.c: Update.
13180 * modules/canonicalize-lgpl (Depends-on): Update.
13181 * lib/canonicalize-lgpl.c: Update.
13182 * modules/clean-temp (Depends-on): Update.
13183 * lib/clean-temp.c: Update.
13184 * modules/csharpcomp (Depends-on): Update.
13185 * lib/csharpcomp.c: Update.
13186 * modules/csharpexec (Depends-on): Update.
13187 * lib/csharpexec.c: Update.
13188 * modules/javacomp (Depends-on): Update.
13189 * lib/javacomp.c: Update.
13190 * modules/javaexec (Depends-on): Update.
13191 * lib/javaexec.c: Update.
13192 * modules/mbscasestr (Depends-on): Update.
13193 * lib/mbscasestr.c: Update.
13194 * modules/mbsstr (Depends-on): Update.
13195 * lib/mbsstr.c: Update.
13196 * modules/setenv (Depends-on): Update.
13197 * lib/setenv.c: Update.
13198 * modules/strcasestr (Depends-on): Update.
13199 * lib/strcasestr.c: Update.
13200 * modules/striconveha (Depends-on): Update.
13201 * lib/striconveha.c: Update.
13202 * modules/relocatable-prog-wrapper (Files): Update.
13203 * lib/relocwrapper.c: Update.
13204 * build-aux/install-reloc: Update.
13205 * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
13207 2007-06-08 Bruno Haible <bruno@clisp.org>
13210 * lib/fbufmode.c (fbufmode): Add special code for uClibc.
13211 * lib/fpurge.c (fpurge): Likewise.
13212 * lib/freading.c (freading): Likewise.
13213 * lib/fseeko.c (rpl_fseeko): Likewise.
13214 * lib/fseterr.c (fseterr): Likewise.
13215 * lib/fwriting.c (fwriting): Likewise.
13216 * tests/test-fflush.c (main): Avoid a failure on uClibc.
13218 2007-06-08 Bruno Haible <bruno@clisp.org>
13220 * m4/intlmacosx.m4: New file, extracted from gettext.m4.
13221 * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
13222 * modules/gettext (Files): Add m4/intlmacosx.m4.
13224 2007-06-07 Bruno Haible <bruno@clisp.org>
13226 * modules/localename-tests: New file.
13227 * tests/test-localename.c: New file.
13229 New module 'localename'.
13230 * lib/localename.h: New file.
13231 * lib/localename.c: New file, from GNU gettext.
13232 * m4/localename.m4: New file.
13233 * modules/localename: New file.
13235 2007-06-07 Bruno Haible <bruno@clisp.org>
13237 Work around the lack of <wchar.h> on some builds of uClibc.
13238 * doc/headers/wchar.texi: Update.
13239 * lib/wchar_.h: Include <wchar.h> only if it exists.
13240 * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
13241 * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
13242 (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
13244 * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
13245 * modules/mbfile (Depends-on): Add wchar.
13246 * modules/mbiter (Depends-on): Likewise.
13247 * modules/mbuiter (Depends-on): Likewise.
13248 Reported by Simon Josefsson.
13250 2007-06-06 Paul Eggert <eggert@cs.ucla.edu>
13252 Work around problem reported by Steven M. Schweda in
13253 <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
13254 Tru64 5.1B with the Compaq compiler environment installed declares
13255 an 'isblank' function but does not define it in the C library.
13256 * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
13257 * lib/regex_internal.h (isblank): Likewise.
13258 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
13259 * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
13261 2007-06-05 Bruno Haible <bruno@clisp.org>
13263 Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
13265 * modules/printf-safe: New file.
13266 * modules/fprintf-posix (Depends-on): Add printf-safe.
13267 * modules/printf-posix (Depends-on): Likewise.
13268 * modules/snprintf-posix (Depends-on): Likewise.
13269 * modules/sprintf-posix (Depends-on): Likewise.
13270 * modules/vasnprintf-posix (Depends-on): Likewise.
13271 * modules/vasprintf-posix (Depends-on): Likewise.
13272 * modules/vfprintf-posix (Depends-on): Likewise.
13273 * modules/vprintf-posix (Depends-on): Likewise.
13274 * modules/vsnprintf-posix (Depends-on): Likewise.
13275 * modules/vsprintf-posix (Depends-on): Likewise.
13276 * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
13277 AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
13278 non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
13279 "no" on i386, x86_64, ia64.
13280 * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
13281 (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
13282 on i386, x86_64, ia64.
13283 * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
13284 (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
13285 on i386, x86_64, ia64.
13286 * tests/test-vasnprintf-posix.c: Include float.h.
13287 (LDBL80_WORDS): New macro.
13288 (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
13289 on i386, x86_64, ia64.
13290 * tests/test-vasprintf-posix.c: Include float.h.
13291 (LDBL80_WORDS): New macro.
13292 (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
13293 on i386, x86_64, ia64.
13294 * tests/test-snprintf-posix.c: Include float.h.
13295 * tests/test-sprintf-posix.c: Likewise.
13296 * tests/test-vsnprintf-posix.c: Likewise.
13297 * tests/test-vsprintf-posix.c: Likewise.
13299 2007-06-05 Bruno Haible <bruno@clisp.org>
13301 Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
13302 * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
13303 non-IEEE numbers on i386, x86_64, ia64.
13304 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
13305 * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
13306 * tests/test-isnanl.h: Include float.h.
13307 (main): Check also non-IEEE numbers on i386, x86_64, ia64.
13309 2007-06-05 Bruno Haible <bruno@clisp.org>
13311 * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
13312 also the %a / %A. Handle the %a / %A code before this extra handling.
13314 2007-06-05 Bruno Haible <bruno@clisp.org>
13316 * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
13317 NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
13319 2007-06-05 Bruno Haible <bruno@clisp.org>
13321 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
13322 typo in variable name.
13324 2007-06-05 Eric Blake <ebb9@byu.net>
13326 * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
13327 Reported by Simon Josefsson.
13329 2007-06-04 Bruno Haible <bruno@clisp.org>
13331 Avoid test failures on some PowerPC platforms.
13332 * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
13333 Define differently for PowerPC.
13334 * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
13335 Reported by Gary V. Vaughan <gary@gnu.org>.
13337 2007-06-02 Bruno Haible <bruno@clisp.org>
13339 Fix test-stdint failure on FreeBSD/ia64.
13340 * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
13341 PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
13342 WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
13343 * doc/headers/stdint.texi: Update.
13345 2007-06-01 Bruno Haible <bruno@clisp.org>
13347 * tests/test-binary-io.c (main): Pass a third argument to open().
13348 Reported by Gary V. Vaughan <gary@gnu.org>.
13350 2007-06-01 Bruno Haible <bruno@clisp.org>
13352 * doc/functions/frexpl.texi: Update for mingw.
13354 2007-06-01 Bruno Haible <bruno@clisp.org>
13356 * tests/test-lseek.c (main): Disable test of errno for invalid third
13358 * doc/functions/lseek.texi: Update.
13359 Reported by Gary V. Vaughan <gary@gnu.org>.
13361 2007-05-28 Bruno Haible <bruno@clisp.org>
13363 * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
13365 2007-05-31 Eric Blake <ebb9@byu.net>
13367 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
13370 2007-05-30 Eric Blake <ebb9@byu.net>
13371 and Bruno Haible <bruno@clisp.org>
13373 Work around mingw test failures exposed by m4-1.4.9b.
13374 * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
13375 * tests/test-unistd.c: Disable uid_t and git_t tests for the
13378 2007-05-30 Bruno Haible <bruno@clisp.org>
13380 * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
13381 assuming that they are closed. Needed on HP-UX 11.
13383 2007-05-29 Bruno Haible <bruno@clisp.org>
13385 Fix a problem with #include_next.
13386 * lib/dirent_.h: Split the double-inclusion guard.
13387 * lib/fcntl_.h: Likewise.
13388 * lib/float_.h: Likewise.
13389 * lib/iconv_.h: Likewise.
13390 * lib/inttypes_.h: Likewise.
13391 * lib/locale_.h: Likewise.
13392 * lib/math_.h: Likewise.
13393 * lib/netinet_in_.h: Likewise.
13394 * lib/search_.h: Likewise.
13395 * lib/signal_.h: Likewise.
13396 * lib/stdint_.h: Likewise.
13397 * lib/stdio_.h: Likewise.
13398 * lib/stdlib_.h: Likewise.
13399 * lib/string_.h: Likewise.
13400 * lib/sys_select_.h: Likewise.
13401 * lib/sys_socket_.h: Likewise.
13402 * lib/sys_stat_.h: Likewise.
13403 * lib/sys_time_.h: Likewise.
13404 * lib/sysexits_.h: Likewise.
13405 * lib/time_.h: Likewise.
13406 * lib/unistd_.h: Likewise.
13407 * lib/wchar_.h: Likewise.
13408 * lib/wctype_.h: Likewise.
13410 2007-05-29 Bruno Haible <bruno@clisp.org>
13412 * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
13415 2007-05-29 Bruno Haible <bruno@clisp.org>
13417 * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
13419 Reported by Eric Blake.
13421 2007-05-29 Bruno Haible <bruno@clisp.org>
13423 * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
13426 2007-05-29 Eric Blake <ebb9@byu.net>
13427 Bruno Haible <bruno@clisp.org>
13429 * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
13432 2007-05-28 Eric Blake <ebb9@byu.net>
13434 * modules/closein-tests (test_closein_LDADD): Support test on
13435 cygwin with libtool.
13437 2007-05-28 Bruno Haible <bruno@clisp.org>
13439 * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
13440 * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
13441 * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
13442 * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
13443 * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
13444 * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
13445 * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
13446 * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
13447 * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
13449 2007-05-28 Eric Blake <ebb9@byu.net>
13451 Unconditionally include <config.h> in unit tests.
13452 * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
13453 * tests/test-allocsa.c, tests/test-arcfour.c,
13454 tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
13455 tests/test-array_list.c, tests/test-array_oset.c,
13456 tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
13457 test-avltreehash_list.c, test-base64.c, test-binary-io.c,
13458 test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
13459 test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
13460 test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
13461 test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
13462 test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
13463 test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
13464 test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
13465 test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
13466 test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
13467 test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
13468 test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
13469 test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
13470 test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
13471 test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
13472 test-md5.c, test-memmem.c, test-printf-posix.c,
13473 test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
13474 test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
13475 test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
13476 test-strcasestr.c, test-striconv.c, test-striconveh.c,
13477 test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
13478 test-vasnprintf-posix2.c, test-vasnprintf.c,
13479 test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
13480 test-vfprintf-posix.c, test-vprintf-posix.c,
13481 test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
13482 test-xvasprintf.c: Likewise.
13484 2007-05-28 Bruno Haible <bruno@clisp.org>
13486 * gnulib-tool (func_import): Remember the --with-tests command-line
13487 option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
13488 Reported by Eric Blake.
13490 2007-05-28 Bruno Haible <bruno@clisp.org>
13492 * modules/ftell-tests: New file.
13493 * tests/test-ftell.c: New file, based on tests/test-ftello.c.
13494 * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
13496 * lib/ftell.c: New file.
13497 * modules/ftell: New file.
13498 * m4/ftell.m4: New file.
13499 * doc/functions/ftell.texi: Update.
13500 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
13502 * lib/stdio_.h (rpl_ftell): New declaration.
13503 * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
13506 2007-05-28 Eric Blake <ebb9@byu.net>
13508 * lib/allocsa.h (safe_alloca): Avoid compiler warning.
13510 2007-05-28 Bruno Haible <bruno@clisp.org>
13512 * modules/fseek-tests: New file.
13513 * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
13514 * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
13516 * lib/fseek.c: New file.
13517 * modules/fseek: New file.
13518 * m4/fseek.m4: New file.
13519 * doc/functions/fseek.texi: Update.
13520 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
13522 * lib/stdio_.h (rpl_fseek): New declaration.
13523 * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
13526 2007-05-28 Bruno Haible <bruno@clisp.org>
13528 * lib/stdio_.h (fflush): More comments.
13530 2007-05-28 Bruno Haible <bruno@clisp.org>
13532 * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
13535 2007-05-28 Eric Blake <ebb9@byu.net>
13537 Improve lseek module.
13538 * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
13539 * lib/unistd_.h (lseek): Scale back link warning message.
13540 * tests/test-lseek.c: Beef up test.
13541 * tests/test-lseek.sh: Exercise more facets of lseek.
13542 Reported by Bruno Haible.
13544 2007-05-28 Bruno Haible <bruno@clisp.org>
13546 * tests/test-unistd.c: Test all the types that <unistd.h> is expected
13549 2007-05-27 Bruno Haible <bruno@clisp.org>
13551 * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
13553 2007-05-27 Bruno Haible <bruno@clisp.org>
13555 * modules/openmp: New file.
13556 * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
13559 2007-05-26 Bruno Haible <bruno@clisp.org>
13561 * modules/chdir-long (Depends-on): Add fchdir.
13562 * modules/chdir-safer (Depends-on): Likewise.
13563 * modules/fts (Depends-on): Likewise.
13564 * modules/fts-lgpl (Depends-on): Likewise.
13565 * modules/openat (Depends-on): Likewise.
13566 * modules/savewd (Depends-on): Likewise.
13568 2007-05-24 Eric Blake <ebb9@byu.net>
13570 Fix lseek on mingw.
13571 * modules/lseek: New module.
13572 * m4/lseek.m4: New file.
13573 * lib/lseek.c: New file.
13574 * modules/lseek-tests: New file.
13575 * tests/test-lseek.c: New file.
13576 * tests/test-lseek.sh: New file.
13577 * MODULES.html.sh: Document lseek module.
13578 * modules/fflush (Depends-on): Add lseek, fseeko.
13579 * modules/fseeko (Depends-on): Likewise.
13580 * modules/ftello (Depends-on): Likewise.
13581 * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
13583 * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
13585 * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
13586 * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
13587 * lib/ftello.c (rpl_ftello): Likewise.
13588 * tests/test-fseeko.c (main): Test this.
13589 * tests/test-fseeko.sh: Likewise.
13590 * tests/test-ftello.c (main): Likewise.
13591 * tests/test-ftello.sh: Likewise.
13592 * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
13593 implies replacing fseek.
13594 * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
13596 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
13597 * modules/unistd (Makefile.am): Likewise.
13598 * lib/unistd_.h (lseek): Declare a replacement.
13599 * doc/functions/lseek.texi (lseek): Document this fix.
13600 * doc/functions/fseek.texi (fseek): Likewise.
13601 * doc/functions/ftell.texi (ftell): Likewise.
13603 2007-05-24 Bruno Haible <bruno@clisp.org>
13605 * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
13606 in the printed representation of a NaN.
13607 * tests/test-vasprintf-posix.c (test_function): Likewise.
13608 * tests/test-snprintf-posix.h (test_function): Likewise.
13609 * tests/test-sprintf-posix.h (test_function): Likewise.
13610 Reported by Eric Blake.
13612 2007-05-23 Eric Blake <ebb9@byu.net>
13614 Fix fseeko/ftello on cygwin 1.5.24.
13615 * doc/functions/fseeko.texi (fseeko): Document the fix.
13616 * doc/functions/ftello.texi (ftello): Document the fix.
13617 * doc/functions/stdin.texi (stdin): Document the cygwin bug.
13618 * doc/functions/stdout.text (stdout): New file.
13619 * doc/functions/stderr.text (stderr): New file.
13620 * doc/gnulib.texi (Function Substitutes): Use new files.
13621 * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
13623 * tests/test-ftello.c (main): Likewise for ftello.
13624 * tests/test-fseeko.sh: New file.
13625 * tests/test-ftello.sh: New file.
13626 * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
13627 with seekable stdin.
13628 * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
13629 * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
13630 (gl_REPLACE_FSEEKO): New macro.
13631 * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
13632 * modules/fseeko (Files): Distribute fseeko.c.
13633 * modules/ftello (Files): Distribute ftello.c.
13634 * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
13636 * lib/ftello.c (rpl_ftello): New file.
13637 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
13639 (gl_STDIN_LARGE_OFFSET): New macro.
13640 * modules/stdio (Makefile.am): Perform the replacement.
13641 * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
13643 2007-05-23 Bruno Haible <bruno@clisp.org>
13645 * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
13646 GNULIB_POSIXCHECK is defined.
13648 2007-05-21 Bruno Haible <bruno@clisp.org>
13650 * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
13651 Check also the output for NaN arguments. When cross-compiling, guess
13653 * lib/vasnprintf.c: Update comments.
13654 * tests/test-vasnprintf-posix.c (strisnan): New function.
13655 (test_function): Use it.
13656 * tests/test-vasprintf-posix.c (strisnan): New function.
13657 (test_function): Use it.
13658 * tests/test-snprintf-posix.h (strisnan): New function.
13659 (test_function): Use it.
13660 * tests/test-sprintf-posix.h (strisnan): New function.
13661 (test_function): Use it.
13662 Reported by Eric Blake.
13664 2007-05-20 Bruno Haible <bruno@clisp.org>
13666 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
13667 numbers that fails on BeOS.
13668 * doc/functions/frexpl.texi: Update.
13670 2007-05-20 Jim Meyering <jim@meyering.net>
13672 * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
13673 forced upon us by glibc-2.6.
13675 2007-05-20 Bruno Haible <bruno@clisp.org>
13677 Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
13678 * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
13679 (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
13680 * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
13681 NEED_PRINTF_INFINITE.
13682 (is_infinitel): New function.
13683 (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
13684 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
13685 gl_PREREQ_VASNPRINTF_INFINITE.
13686 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
13687 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
13688 gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
13689 gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
13690 gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
13691 gl_PREREQ_VASNPRINTF_INFINITE.
13692 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
13693 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
13694 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
13695 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
13696 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
13697 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
13698 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
13699 * doc/functions/fprintf.texi: Update.
13700 * doc/functions/printf.texi: Update.
13701 * doc/functions/snprintf.texi: Update.
13702 * doc/functions/sprintf.texi: Update.
13703 * doc/functions/vfprintf.texi: Update.
13704 * doc/functions/vprintf.texi: Update.
13705 * doc/functions/vsnprintf.texi: Update.
13706 * doc/functions/vsprintf.texi: Update.
13708 2007-05-20 Bruno Haible <bruno@clisp.org>
13710 * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
13711 was not found in libc.
13712 * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
13714 2007-05-20 Bruno Haible <bruno@clisp.org>
13716 * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
13717 printed as "-nan" instead of "nan".
13718 * tests/test-vasprintf-posix.c (test_function): Likewise.
13719 * tests/test-snprintf-posix.h (test_function): Likewise.
13720 * tests/test-sprintf-posix.h (test_function): Likewise.
13721 Needed for HP-UX 11.
13723 2007-05-20 Jim Meyering <jim@meyering.net>
13725 Fix buggy test for the fchownat-deref bug.
13726 * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
13727 symlink required for the run-test. Without it, this test would
13728 always declare that fchownat doesn't work, and client code would
13729 unnecessarily use the replacement function with fixed libc.
13730 (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
13731 Reported by Greg Schafer.
13733 2007-05-19 Bruno Haible <bruno@clisp.org>
13735 * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
13736 (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
13737 * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
13738 Needed for IRIX 6.5 and Solaris 2.5.1.
13740 2007-05-19 Bruno Haible <bruno@clisp.org>
13742 * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
13743 (test_function): Skip tests involving -0.0 on platforms where
13745 * tests/test-vasprintf-posix.c (have_minus_zero): New function.
13746 (test_function): Skip tests involving -0.0 on platforms where
13748 * tests/test-snprintf-posix.h (have_minus_zero): New function.
13749 (test_function): Skip tests involving -0.0 on platforms where
13751 * tests/test-sprintf-posix.h (have_minus_zero): New function.
13752 (test_function): Skip tests involving -0.0 on platforms where
13754 * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
13756 * tests/test-printf-posix.h (test_function): Likewise.
13757 * tests/test-printf-posix.output: Remove all -0.0 related results.
13758 Needed for IRIX 6.5.
13760 2007-05-19 Bruno Haible <bruno@clisp.org>
13762 * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
13763 printed as "nan0x7fffffff" instead of "nan".
13764 * tests/test-vasprintf-posix.c (test_function): Likewise.
13765 * tests/test-snprintf-posix.h (test_function): Likewise.
13766 * tests/test-sprintf-posix.h (test_function): Likewise.
13767 * tests/test-fprintf-posix.h (NaN): Remove macro.
13768 (test_function): Remove all NaN related tests.
13769 * tests/test-printf-posix.h (NaN): Remove macro.
13770 (test_function): Remove all NaN related tests.
13771 * tests/test-printf-posix.output: Remove all NaN related results.
13772 Needed for IRIX 6.5.
13774 2007-05-19 Bruno Haible <bruno@clisp.org>
13776 * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
13777 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
13779 2007-05-19 Bruno Haible <bruno@clisp.org>
13781 * lib/float_.h: New file.
13782 * m4/float_h.m4: New file.
13783 * modules/float: New file.
13784 * modules/isnanl (Dependencies): Add float.
13785 * modules/isnanl-nolibm (Dependencies): Likewise.
13786 * modules/mathl (Dependencies): Likewise.
13787 * modules/printf-frexpl (Dependencies): Likewise.
13788 * modules/signbit (Dependencies): Likewise.
13789 * modules/vasnprintf (Dependencies): Likewise.
13790 * doc/headers/float.texi: Update.
13792 2007-05-19 Jim Meyering <jim@meyering.net>
13794 * lib/utimens.c (gl_futimens): Rename from futimens,
13795 now that glibc-2.6 declares futimens.
13796 * lib/utimens.h: Likewise.
13798 2007-05-19 Bruno Haible <bruno@clisp.org>
13800 Avoid test failures on mingw.
13801 * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
13802 * tests/test-printf-posix.sh: Likewise.
13803 * tests/test-vfprintf-posix.sh: Likewise.
13804 * tests/test-vprintf-posix.sh: Likewise.
13806 2007-05-19 Bruno Haible <bruno@clisp.org>
13808 Fix *printf result for NaN, Inf, -0.0 on mingw.
13809 * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
13810 * lib/vasnprintf.c: Include math.h and isnan.h.
13811 (is_infinite_or_zero): New function.
13812 (VASNPRINTF): Fix also the handling of infinite or zero 'double'
13813 values in the %f, %F, %e, %E, %g, %G directives.
13814 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
13815 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
13816 gl_PRINTF_INFINITE and test its result. Invoke
13817 gl_PREREQ_VASNPRINTF_INFINITE.
13818 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
13819 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
13820 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
13821 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
13822 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
13823 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
13824 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
13825 * doc/functions/fprintf.texi: Update.
13826 * doc/functions/printf.texi: Update.
13827 * doc/functions/snprintf.texi: Update.
13828 * doc/functions/sprintf.texi: Update.
13829 * doc/functions/vfprintf.texi: Update.
13830 * doc/functions/vprintf.texi: Update.
13831 * doc/functions/vsnprintf.texi: Update.
13832 * doc/functions/vsprintf.texi: Update.
13834 2007-05-19 Bruno Haible <bruno@clisp.org>
13836 * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
13837 (scale10_round_decimal_long_double): Inline scale10_round_long_double.
13838 Instead of multiplying with 10^k, set extra_zeroes to k.
13839 (scale10_round_long_double): Remove function.
13841 2007-05-18 Bruno Haible <bruno@clisp.org>
13843 * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
13844 introduced on 2007-05-06.
13846 2007-05-18 Bruno Haible <bruno@clisp.org>
13848 * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
13850 * tests/test-vasprintf-posix.c (test_function): Likewise.
13851 * tests/test-snprintf-posix.h (test_function): Likewise.
13852 * tests/test-sprintf-posix.h (test_function): Likewise.
13854 2007-05-18 Bruno Haible <bruno@clisp.org>
13856 * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
13857 (strmatch): New function.
13858 (test_function): Test the %f directive on numbers of various exponents.
13859 * tests/test-vasprintf-posix.c (SIZEOF): New macro.
13860 (strmatch): New function.
13861 (test_function): Test the %f directive on numbers of various exponents.
13862 * tests/test-snprintf-posix.h (strmatch): New function.
13863 (test_function): Test the %f directive on numbers of various exponents.
13864 * tests/test-sprintf-posix.h (strmatch): New function.
13865 (test_function): Test the %f directive on numbers of various exponents.
13866 * tests/test-snprintf-posix.c (SIZEOF): New macro.
13867 * tests/test-sprintf-posix.c (SIZEOF): New macro.
13868 * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
13869 * tests/test-vsprintf-posix.c (SIZEOF): New macro.
13871 2007-05-18 Bruno Haible <bruno@clisp.org>
13873 Add support for 'long double' number output.
13874 * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
13875 * lib/vasnprintf.c: Include math.h and float+.h.
13876 (mp_limb_t): New type.
13877 (GMP_LIMB_BITS): New macro.
13878 (mp_twolimb_t): New type.
13879 (GMP_TWOLIMB_BITS): New macro.
13881 (multiply, divide, convert_to_decimal, decode_long_double,
13882 scale10_round_long_double, scale10_round_decimal_long_double,
13883 floorlog10l): New functions.
13884 (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
13885 for the %f, %F, %e, %E, %g, %G directives.
13886 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
13887 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
13888 gl_PRINTF_LONG_DOUBLE and test its result. Invoke
13889 gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
13890 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
13891 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
13892 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
13893 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
13894 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
13895 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
13896 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
13897 * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
13898 * modules/snprintf-posix (Depends-on): Likewise.
13899 * modules/sprintf-posix (Depends-on): Likewise.
13900 * modules/vasnprintf-posix (Depends-on): Likewise.
13901 * modules/vasprintf-posix (Depends-on): Likewise.
13902 * modules/vfprintf-posix (Depends-on): Likewise.
13903 * modules/vsnprintf-posix (Depends-on): Likewise.
13904 * modules/vsprintf-posix (Depends-on): Likewise.
13905 * modules/vasnprintf (Files): Add lib/float+.h.
13906 * doc/functions/fprintf.texi: Update.
13907 * doc/functions/printf.texi: Update.
13908 * doc/functions/snprintf.texi: Update.
13909 * doc/functions/sprintf.texi: Update.
13910 * doc/functions/vfprintf.texi: Update.
13911 * doc/functions/vprintf.texi: Update.
13912 * doc/functions/vsnprintf.texi: Update.
13913 * doc/functions/vsprintf.texi: Update.
13915 2007-05-18 Bruno Haible <bruno@clisp.org>
13917 * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
13919 2007-05-18 Bruno Haible <bruno@clisp.org>
13921 * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
13922 for printing 64-bit integers. Needed for mingw.
13924 2007-05-18 Bruno Haible <bruno@clisp.org>
13926 * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
13927 gl_FUNC_FREXPL_WORKS.
13928 * modules/printf-frexpl (Files): Add m4/frexpl.m4.
13930 2007-05-18 Bruno Haible <bruno@clisp.org>
13932 * modules/frexpl-nolibm-tests: New file.
13934 * modules/frexpl-nolibm: New file.
13935 * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
13937 2007-05-17 Paul Eggert <eggert@cs.ucla.edu>
13939 * lib/dirent_.h: Prefer #include_next <foo.h> to #include
13940 @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@. This works better with
13941 GCC 4.2, which otherwise issues a lot of warnings.
13942 * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
13943 * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
13945 * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
13946 * modules/iconv_open (iconv.h): Likewise.
13947 * modules/locale (locale.h): Likewise.
13948 * modules/netinet_in (netinet/in.h): Likewise.
13949 * modules/sys_select (sys_select.h): Likewise.
13950 * modules/sys_socket (sys/socket.h): Likewise.
13951 * modules/sys_stat (sys/stat.h): Likewise.
13952 * modules/sysexits (sysexits.h): Likewise.
13953 * modules/unistd (unistd.h): Likewise.
13955 2007-05-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13957 * modules/closein-tests (Makefile.am): Distribute
13960 2007-05-17 Bruno Haible <bruno@clisp.org>
13962 * tests/test-printf-posix.output: Renamed from
13963 tests/test-fprintf-posix.out.
13964 * modules/fprintf-posix-tests: Update.
13965 * modules/printf-posix-tests: Update.
13966 * modules/vfprintf-posix-tests: Update.
13967 * modules/vprintf-posix-tests: Update.
13968 * tests/test-fprintf-posix.sh: Update.
13969 * tests/test-printf-posix.sh: Update.
13970 * tests/test-vfprintf-posix.sh: Update.
13971 * tests/test-vprintf-posix.sh: Update.
13972 Reported by Ralf Wildenhues.
13974 2007-05-16 Paul Eggert <eggert@cs.ucla.edu>
13976 * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
13977 @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@. This works better with
13978 GCC 4.2, which otherwise issues a lot of warnings.
13979 * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
13980 * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
13981 * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
13982 * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
13983 it should no longer be needed.
13984 * lib/string_.h: Likewise.
13985 * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
13986 * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
13987 * modules/inttypes (inttypes.h): Likewise.
13988 * modules/math (math.h): Likewise.
13989 * modules/search (search.h): Likewise.
13990 * modules/signal (signal.h): Likewise.
13991 * modules/stdint (stdint.h): Likewise.
13992 * modules/stdio (stdio.h): Likewise.
13993 * modules/stdlib (stdlib.h): Likewise.
13994 * modules/string (string.h): Likewise.
13995 * modules/sys_time (sys/time.h): Likewise.
13996 * modules/time (time.h): Likewise.
13997 * modules/wchar (wchar.h): Likewise.
13998 * modules/wctype (wtype.h): Likewise.
14000 2007-05-16 Thien-Thi Nguyen <ttn@gnuvola.org> (tiny change)
14002 * doc/gnulib-tool.texi (CVS Issues): Fix typo.
14004 2007-05-13 Bruno Haible <bruno@clisp.org>
14006 * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
14007 * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
14008 * strsep.m4 (gl_FUNC_STRSEP): Likewise.
14009 * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
14010 (gl_PREREQ_STRTOK_R): Don't require it here.
14012 2007-05-13 Bruno Haible <bruno@clisp.org>
14014 * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
14015 when used in C++ mode.
14017 2007-05-12 Bruno Haible <bruno@clisp.org>
14019 * lib/linebuffer.h: Tweak doc.
14020 * lib/linebuffer.c: Likewise.
14022 2007-05-12 James Youngman <jay@gnu.org>
14024 * lib/linebuffer.c (readlinebuffer_delim): New function,
14025 like readlinebuffer, but use a caller-specified delimiter.
14026 (readlinebuffer): Just call readlinebuffer_delim with '\n'
14028 * lib/linebuffer.h (readlinebuffer_delim): Declare it.
14030 2007-05-12 Sergey Poznyakoff <gray@gnu.org.ua>
14032 * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
14033 * modules/openat (Files): Remove openat-die.c.
14034 (Depends-on): Add openat-die.
14035 * modules/openat-die: New module.
14037 2007-05-06 Bruno Haible <bruno@clisp.org>
14039 * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
14040 Update with info about Cygwin.
14041 * doc/functions/fprintf.texi: Update.
14042 * doc/functions/printf.texi: Update.
14043 * doc/functions/snprintf.texi: Update.
14044 * doc/functions/sprintf.texi: Update.
14045 * doc/functions/vfprintf.texi: Update.
14046 * doc/functions/vprintf.texi: Update.
14047 * doc/functions/vsnprintf.texi: Update.
14048 * doc/functions/vsprintf.texi: Update.
14049 Reported by Eric Blake.
14051 2007-05-06 Bruno Haible <bruno@clisp.org>
14053 * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
14054 padding ourselves for the floating-point directives.
14055 * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
14056 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
14057 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
14058 gl_PRINTF_FLAG_ZERO and test its result. Invoke
14059 gl_PREREQ_VASNPRINTF_FLAG_ZERO.
14060 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
14061 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
14062 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
14063 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
14064 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
14065 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
14066 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
14067 * tests/test-snprintf-posix.h (test_function): Also check the width
14068 and some flags in the %f directive.
14069 * tests/test-sprintf-posix.h (test_function): Likewise.
14070 * tests/test-vasnprintf-posix.c (test_function): Likewise.
14071 * tests/test-vasprintf-posix.c (test_function): Likewise.
14072 * doc/functions/fprintf.texi: Update.
14073 * doc/functions/printf.texi: Update.
14074 * doc/functions/snprintf.texi: Update.
14075 * doc/functions/sprintf.texi: Update.
14076 * doc/functions/vfprintf.texi: Update.
14077 * doc/functions/vprintf.texi: Update.
14078 * doc/functions/vsnprintf.texi: Update.
14079 * doc/functions/vsprintf.texi: Update.
14081 2007-05-06 Bruno Haible <bruno@clisp.org>
14083 * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
14084 pass the ' flag character to sprintf or snprintf.
14085 * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
14086 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
14087 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
14088 gl_PRINTF_FLAG_GROUPING and test its result. Invoke
14089 gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
14090 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
14091 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
14092 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
14093 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
14094 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
14095 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
14096 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
14097 * tests/test-snprintf-posix.h (test_function): Also check the grouping
14099 * tests/test-sprintf-posix.h (test_function): Likewise.
14100 * tests/test-vasnprintf-posix.c (test_function): Likewise.
14101 * tests/test-vasprintf-posix.c (test_function): Likewise.
14102 * doc/functions/fprintf.texi: Update.
14103 * doc/functions/printf.texi: Update.
14104 * doc/functions/snprintf.texi: Update.
14105 * doc/functions/sprintf.texi: Update.
14106 * doc/functions/vfprintf.texi: Update.
14107 * doc/functions/vprintf.texi: Update.
14108 * doc/functions/vsnprintf.texi: Update.
14109 * doc/functions/vsprintf.texi: Update.
14111 2007-05-01 Bruno Haible <bruno@clisp.org>
14113 * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
14115 2007-05-03 Paul Eggert <eggert@cs.ucla.edu>
14117 * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
14118 comment for D_INO_IN_DIRENT. Problem reported by James Youngman.
14120 2007-05-02 Paul Eggert <eggert@cs.ucla.edu>
14122 * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
14123 readdir returns garbage in d_ino. Problem reported by Kaz Sasayama in
14124 <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
14126 2007-05-02 Sergey Poznyakoff <gray@gnu.org.ua>
14128 * lib/argp-help.c (struct hol_entry): New member `ord'.
14129 (HOL_ENTRY_PTRCMP): Use ord for comparison
14130 (hol_sort): Initialize ord.
14132 2007-05-01 Bruno Haible <bruno@clisp.org>
14134 * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
14135 Reported by Eric Blake.
14136 * doc/gnulib.texi (Function Substitutes): Update.
14138 2007-05-01 Bruno Haible <bruno@clisp.org>
14140 * doc/functions.texi: Remove file, now redundant through
14141 doc/functions/*.texi.
14143 2007-05-01 Bruno Haible <bruno@clisp.org>
14145 * modules/argp (Depends-on): Add sleep.
14147 2007-05-01 Bruno Haible <bruno@clisp.org>
14149 * modules/sleep-tests: New file.
14150 * tests/test-sleep.c: New file.
14152 * modules/sleep: New file.
14153 * lib/sleep.c: New file.
14154 * m4/sleep.m4: New file.
14155 * lib/unistd_.h (sleep): New declaration.
14156 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
14158 * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
14159 * doc/functions/sleep.texi: Document the sleep module.
14161 2007-05-01 Bruno Haible <bruno@clisp.org>
14163 * lib/sigprocmask.h: Remove file.
14164 * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
14165 * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
14166 * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
14167 HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
14168 * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
14169 gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
14170 (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
14171 HAVE_SIGSET_T as a shell variable.
14172 * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
14173 HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
14174 * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
14175 (Depends-on): Add signal. Remove verify.
14176 (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
14177 (Include): Mention <signal.h> instead of sigprocmask.h.
14178 * NEWS: Mention the change.
14179 * lib/fatal-signal.c: Don't include sigprocmask.h.
14181 2007-05-01 Bruno Haible <bruno@clisp.org>
14183 * modules/signal: New file.
14184 * lib/signal_.h: New file.
14185 * m4/signal_h.m4: New file.
14187 2007-05-01 Bruno Haible <bruno@clisp.org>
14189 * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
14190 * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
14191 * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
14192 HAVE_WCTYPE_CTMP_BUG into wctype.h.
14194 2007-05-01 Bruno Haible <bruno@clisp.org>
14196 * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
14198 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
14199 HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
14200 * modules/sys_stat (Makefile.am): Substitute their values into
14203 2007-05-01 Bruno Haible <bruno@clisp.org>
14205 * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
14206 * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
14207 * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
14209 2007-05-01 Bruno Haible <bruno@clisp.org>
14211 * doc/header/assert.texi: Undo last change: don't mention the gnulib
14212 'assert' module here.
14214 2007-05-01 Bruno Haible <bruno@clisp.org>
14216 * doc/functions/*.texi: New files.
14217 * doc/functions/google-ranking.txt: New file.
14218 * doc/gnulib.texi (Function Substitutes): New chapter.
14219 (ctime, inet_ntoa): Remove sections.
14220 * doc/ctime.texi: Remove file.
14221 * doc/inet_ntoa.texi: Remove file.
14222 * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
14224 (%.info): New rule, specifying a --reference-limit.
14226 2007-05-01 Bruno Haible <bruno@clisp.org>
14228 * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
14230 2007-05-01 Bruno Haible <bruno@clisp.org>
14232 * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
14233 the portability of 'mkdir' to mingw systems.
14235 2007-05-01 Bruno Haible <bruno@clisp.org>
14237 * doc/headers/google-ranking.txt: New file.
14239 2007-04-30 Eric Blake <ebb9@byu.net>
14241 Prefer fseeko to fseek.
14242 * modules/getpass (Depends-on): Add fseeko.
14243 * lib/getpass.c (getpass): Use fseeko, not fseek.
14245 2007-04-30 Sergey Poznyakoff <gray@gnu.org.ua>
14247 * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
14248 assumes the sorting is stable, while most qsort implementations
14249 are not. Use argument addresses to ensure they never compare as
14252 * tests/test-argp-2.sh (usage-indent test): Fix output
14253 (func_compare): Restore diff options
14254 * tests/test-argp.c: Restore #include "progname.h"
14256 2007-04-29 Bruno Haible <bruno@clisp.org>
14258 * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
14259 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
14260 gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
14261 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
14262 * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
14263 (configure.ac): Define CHECK_SNPRINTF_POSIX.
14264 (TESTS, check_PROGRAMS): Add test-snprintf.
14265 * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
14266 (configure.ac): Define CHECK_VSNPRINTF_POSIX.
14267 (TESTS, check_PROGRAMS): Add test-vsnprintf.
14268 * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
14269 assertions that fail on HP-UX, OSF/1, or IRIX.
14270 * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
14272 2007-04-29 Bruno Haible <bruno@clisp.org>
14274 * MODULES.html.sh (posix_functions): Remove 'contents'.
14276 2007-04-29 Karl Berry <karl@gnu.org>
14278 * config/srclist.txt (gendocs_template_min): new entry.
14280 2007-04-29 Bruno Haible <bruno@clisp.org>
14282 Work around fpurge bug on BSD systems.
14283 * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
14284 * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
14285 * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
14286 fpurge to rpl_fpurge if the system already has this function.
14287 * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
14288 the case where the system already has this function. Correct invariants
14290 * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
14293 2007-04-29 Sergey Poznyakoff <gray@gnu.org.ua>
14295 * lib/argp-help.c (hol_cluster_cmp): Reverse comparison. Change
14296 proposed by Sven Verdoolaege.
14298 * tests/test-argp.c: Fix option ordering. Test deeply clustered
14300 * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
14301 (usage and help tests): Update
14303 2007-04-29 Bruno Haible <bruno@clisp.org>
14305 * tests/test-fflush.c (main): Use a file of size 17, not 10.
14306 Print more information in case of failure. Disable a test on BeOS.
14308 2007-04-29 Bruno Haible <bruno@clisp.org>
14310 * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
14311 This helps debugging on systems on which no gdb is available.
14313 2007-04-29 Bruno Haible <bruno@clisp.org>
14315 * lib/freading.h: Improve comments.
14316 * lib/fwriting.h: Likewise.
14317 * tests/test-freading.c (main): Don't check freading immediately after
14318 repositioning. Needed for glibc.
14320 2007-04-29 Bruno Haible <bruno@clisp.org>
14322 * lib/freading.c (freading): Trivial simplification.
14324 2007-04-28 Bruno Haible <bruno@clisp.org>
14326 * tests/test-fwriting.c (main): Also test the interaction between
14327 fflush and fwriting.
14328 * modules/fwriting-tests (Depends-on): Add fflush.
14330 * tests/test-freading.c (main): Also test the interaction between
14331 fflush and freading.
14332 * modules/freading-tests (Depends-on): Add fflush.
14334 2007-04-28 Bruno Haible <bruno@clisp.org>
14336 * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
14338 Suggested by Eric Blake.
14340 2007-04-28 Jim Meyering <jim@meyering.net>
14342 Avoid false-negative in gl_STDINT_H's C99 conformance test.
14343 * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
14344 to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
14346 2007-04-27 Eric Blake <ebb9@byu.net>
14348 * doc/headers/assert.texi (assert.h): Document assert module use.
14350 2007-04-27 Bruno Haible <bruno@clisp.org>
14352 * doc/headers/*.texi: New files.
14353 * doc/gnulib.texi (Header File Substitutes): New chapter.
14354 * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
14356 (standards.info ,standards.html, standards.dvi): Update dependencies.
14357 (mostlyclean, clean): New targets.
14359 2007-04-27 Bruno Haible <bruno@clisp.org>
14361 * lib/sysexits_.h: Renamed from lib/sysexit_.h.
14362 * modules/sysexits (Files, Makefile.am): Update.
14364 * lib/sys_socket_.h: Renamed from lib/socket_.h.
14365 * modules/sys_socket (Files, Makefile.am): Update.
14367 * lib/sys_stat_.h: Renamed from lib/stat_.h.
14368 * modules/sys_stat (Files, Makefile.am): Update.
14370 2007-04-27 Eric Blake <ebb9@byu.net>
14372 * lib/freading.h: Improve comments.
14373 * lib/fwriting.h: Likewise.
14374 * lib/fflush.c: Likewise.
14376 Fix closein for mingw.
14377 * modules/closein-tests: Add tests for closein.
14378 * tests/test-closein.c: New file.
14379 * tests/test-closein.sh: Likewise.
14380 * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
14381 * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
14383 2007-04-27 Bruno Haible <bruno@clisp.org>
14385 * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
14387 * lib/math_.h [__DECC]: Likewise.
14388 * lib/stdio_.h [__DECC]: Likewise.
14389 * lib/stdlib_.h [__DECC]: Likewise.
14390 * lib/string_.h [__DECC]: Likewise.
14391 * lib/time_.h [__DECC]: Likewise.
14392 * lib/wchar_.h [__DECC]: Likewise.
14393 * lib/wctype_.h [__DECC]: Likewise.
14395 2007-04-27 Bruno Haible <bruno@clisp.org>
14397 * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
14399 2007-04-27 Bruno Haible <bruno@clisp.org>
14401 * lib/fflush.c: Add comments.
14402 * modules/fpurge-tests (Depends-on): Add fflush.
14403 * modules/freadable-tests (Depends-on): Likewise.
14404 * modules/fwritable-tests (Depends-on): Likewise.
14406 2007-04-27 Charles Wilson <libtool@cwilson.fastmail.fm>
14408 * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
14409 SYSTEM_ARGZ_IS_BROKEN. Also, minor stylistic improvements.
14410 Report by Bruno Haible <bruno@clisp.org>.
14412 2007-04-26 Eric Blake <ebb9@byu.net>
14414 Fix fflush on mingw.
14415 * modules/fflush (Depends-on): Add freading.
14416 * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
14419 2007-04-26 Eric Blake <ebb9@byu.net>
14420 and Bruno Haible <bruno@clisp.org>
14422 Implement freading and fwriting.
14423 * lib/freading.c: New file.
14424 * lib/freading.h: Likewise.
14425 * m4/freading.m4: Likewise.
14426 * modules/freading: Likewise.
14427 * modules/freading-tests: Likewise.
14428 * tests/test-freading.c: Likewise.
14429 * lib/fwriting.c: New file.
14430 * lib/fwriting.h: Likewise.
14431 * m4/fwriting.m4: Likewise.
14432 * modules/fwriting: Likewise.
14433 * modules/fwriting-tests: Likewise.
14434 * tests/test-fwriting.c: Likewise.
14435 * MODULES.html.sh (File stream based Input/Output): Mention them.
14437 2007-04-26 Bruno Haible <bruno@clisp.org>
14439 * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
14440 'long' when we assume it.
14441 Suggested by Eric Blake.
14443 2007-04-26 Bruno Haible <bruno@clisp.org>
14445 Ensure fseeko, ftello are declared on glibc systems.
14446 * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
14447 * modules/fseeko (configure.ac-early): Likewise.
14448 * modules/ftello (configure.ac-early): Likewise.
14449 * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
14450 AC_FUNC_FSEEKO for this.
14451 * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
14452 (gl_CHECK_FSEEKO): Remove macro.
14454 2007-04-26 Bruno Haible <bruno@clisp.org>
14456 * tests/test-fflush.c (main): Also check the ftell result after
14457 fflush and fseek/fseeko.
14458 * lib/fflush.c (rpl_fflush): For BSD implementations, update the
14459 file descriptor position cache in the stream.
14460 * lib/fseeko.c (rpl_fseeko): Likewise.
14462 2007-04-26 Bruno Haible <bruno@clisp.org>
14464 * modules/fflush-tests (Depends-on): Add fseeko.
14466 2007-04-25 Charles Wilson <libtool@cwilson.fastmail.fm>
14467 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14469 * lib/argz_.h: ensure error_t definition is obtained in same
14470 mechanism system argz.h would have.
14471 * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
14472 argz facilities are known bad. Err on the side of caution if
14475 2007-04-25 Eric Blake <ebb9@byu.net>
14477 * lib/fpurge.c (includes): Use stdlib.h for free.
14478 * tests/test-fflush.c (main): Also test fflush-fseeko.
14480 2007-04-25 Bruno Haible <bruno@clisp.org>
14482 Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
14483 * lib/fseeko.c: New file.
14484 * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
14485 (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
14486 * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
14488 (gl_FUNC_FSEEKO): Invoke it.
14489 * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
14490 gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
14491 * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
14493 2007-04-25 Bruno Haible <bruno@clisp.org>
14495 * modules/fflush (Depends-on): Add ftello.
14497 2007-04-25 Bruno Haible <bruno@clisp.org>
14499 * modules/ftello-tests: New file.
14500 * tests/test-ftello.c: New file.
14502 * modules/ftello: New file.
14503 * m4/ftello.m4: New file.
14504 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
14506 * lib/stdio_.h (ftello): New declaration.
14507 * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
14510 2007-04-25 Bruno Haible <bruno@clisp.org>
14512 * modules/fseeko-tests: New file.
14513 * tests/test-fseeko.c: New file.
14515 * modules/fseeko: New file.
14516 * m4/fseeko.m4: New file.
14517 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
14519 * lib/stdio_.h (fseeko): New declaration.
14520 * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
14523 2007-04-25 Bruno Haible <bruno@clisp.org>
14525 * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
14527 2007-04-25 Bruno Haible <bruno@clisp.org>
14529 * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
14530 * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
14531 * tests/test-unistd.c: Likewise.
14532 * tests/test-fcntl.c: Likewise.
14534 2007-04-23 Eric Blake <ebb9@byu.net>
14536 * lib/fflush.c: Fix missing include.
14537 Reported by Bruno Haible.
14539 2007-04-23 Bruno Haible <bruno@clisp.org>
14541 * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
14542 Reported by Eric Blake.
14544 2007-04-23 Bruno Haible <bruno@clisp.org>
14546 * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
14548 2007-04-23 Bruno Haible <bruno@clisp.org>
14550 * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
14552 2007-04-23 Bruno Haible <bruno@clisp.org>
14554 * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
14555 Needed on HP-UX 11.
14557 2007-04-16 Eric Blake <ebb9@byu.net>
14559 Make fflush rely on fpurge.
14560 * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
14561 open coding all variants.
14562 * modules/fflush (Depends-on): Add fpurge and unistd.
14563 * modules/fflush-tests (Depends-on): Unistd is no longer extra.
14564 * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
14566 Fix --with-tests compilation on cygwin.
14567 * modules/argmatch-tests (Makefile.am): List gnulib library first
14569 * modules/argp-tests (Makefile.am): Likewise.
14570 * modules/array-list-tests (Makefile.am): Likewise.
14571 * modules/array-oset-tests (Makefile.am): Likewise.
14572 * modules/avltree-list-tests (Makefile.am): Likewise.
14573 * modules/avltree-oset-tests (Makefile.am): Likewise.
14574 * modules/avltreehash-list-tests (Makefile.am): Likewise.
14575 * modules/carray-list-tests (Makefile.am): Likewise.
14576 * modules/dirname-tests (Makefile.am): Likewise.
14577 * modules/frexp-tests (Makefile.am): Likewise.
14578 * modules/isnanl-tests (Makefile.am): Likewise.
14579 * modules/linked-list-tests (Makefile.am): Likewise.
14580 * modules/linkedhash-list-tests (Makefile.am): Likewise.
14581 * modules/lock-tests (Makefile.am): Likewise.
14582 * modules/rbtree-list-tests (Makefile.am): Likewise.
14583 * modules/rbtree-oset-tests (Makefile.am): Likewise.
14584 * modules/rbtreehash-list-tests (Makefile.am): Likewise.
14585 * modules/tls-tests (Makefile.am): Likewise.
14586 * modules/tsearch-tests (Makefile.am): Likewise.
14587 * modules/xvasprintf-tests (Makefile.am): Likewise.
14589 Fix fpurge for cygwin.
14590 * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
14592 * modules/fpurge-tests (Depends-on): Clean up trash.
14594 2007-04-16 Simon Josefsson <simon@josefsson.org>
14596 * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
14598 * m4/autobuild.m4: Re-indent.
14600 2007-04-13 Bruno Haible <bruno@clisp.org>
14602 * modules/fpurge-tests: New file.
14603 * tests/test-fpurge.c: New file.
14605 * modules/fpurge: New file.
14606 * lib/fpurge.h: New file.
14607 * lib/fpurge.c: New file.
14608 * m4/fpurge.m4: New file.
14610 2007-04-13 Bruno Haible <bruno@clisp.org>
14612 * modules/fbufmode-tests: New file.
14613 * tests/test-fbufmode.c: New file.
14615 * modules/fbufmode: New file.
14616 * lib/fbufmode.h: New file.
14617 * lib/fbufmode.c: New file.
14618 * m4/fbufmode.m4: New file.
14620 2007-04-13 Bruno Haible <bruno@clisp.org>
14622 * modules/fwritable-tests: New file.
14623 * tests/test-fwritable.c: New file.
14625 * modules/fwritable: New file.
14626 * lib/fwritable.h: New file.
14627 * lib/fwritable.c: New file.
14628 * m4/fwritable.m4: New file.
14630 2007-04-13 Bruno Haible <bruno@clisp.org>
14632 * modules/freadable-tests: New file.
14633 * tests/test-freadable.c: New file.
14635 * modules/freadable: New file.
14636 * lib/freadable.h: New file.
14637 * lib/freadable.c: New file.
14638 * m4/freadable.m4: New file.
14640 2007-04-13 Bruno Haible <bruno@clisp.org>
14642 * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
14645 2007-04-13 Paul Eggert <eggert@cs.ucla.edu>
14647 * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
14648 gzip bootstrap.conf to avoid dragging in i18n machinery.
14649 (gnulib_tool_option): Use it.
14651 2007-04-13 Bruno Haible <bruno@clisp.org>
14653 * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
14655 * tests/test-vasprintf-posix.c (test_function): Likewise.
14656 * tests/test-snprintf-posix.h (test_function): Likewise.
14657 * tests/test-sprintf-posix.h (test_function): Likewise.
14658 * tests/test-fprintf-posix.h (test_function): Likewise.
14659 * tests/test-printf-posix.h (test_function): Likewise.
14660 * tests/test-fprintf-posix.out: Likewise.
14662 2007-04-13 Bruno Haible <bruno@clisp.org>
14664 * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
14665 * modules/tls-tests (configure.ac): Likewise.
14666 Reported by Arto C. Nirkko <anirkko@insel.ch>.
14668 2007-04-13 Bruno Haible <bruno@clisp.org>
14670 * lib/tls.c (glthread_tls_get): Fix return type.
14671 Patch by Arto C. Nirkko <anirkko@insel.ch>.
14673 2007-04-12 Eric Blake <ebb9@byu.net>
14675 * modules/gettime (Depends-on): Remove gettime.
14676 Reported by Dmitry V. Levin.
14678 2007-04-12 Bruno Haible <bruno@clisp.org>
14680 * modules/fflush (Include): Mention <stdio.h>.
14681 * modules/strtoimax (Include): Mention <inttypes.h>.
14682 * modules/strtoumax (Include): Likewise.
14684 2007-04-12 Eric Blake <ebb9@byu.net>
14686 * .cvsignore: New file.
14687 * .gitignore: Likewise.
14689 2007-04-12 Bruno Haible <bruno@clisp.org>
14691 * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
14692 not before, since $(LDADD) often contains libgnu.a.
14693 * modules/striconv-tests (test_striconv_LDADD): Likewise.
14694 * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
14695 * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
14698 2007-04-12 Eric Blake <ebb9@byu.net>
14700 Work around glibc's failure to flush stdin on fclose.
14701 * lib/closein.c (close_stdin): Flush stdin before closing.
14703 Work around glibc's failure to reset seekable stdin on exit.
14704 * modules/closein: New module.
14705 * lib/closein.c: New file.
14706 * lib/closein.h: Likewise.
14707 * m4/closein.m4: Likewise.
14708 * MODULES.html.sh (File stream based Input/Output): Document it.
14710 2007-04-12 Simon Josefsson <simon@josefsson.org>
14712 * gnulib-tool: Rename generated 'autobuild' script to
14713 'do-autobuild' in --create-megatestdir output.
14715 * doc/gnulib.texi (Build robot for gnulib): Fix.
14717 2007-04-12 Simon Josefsson <simon@josefsson.org>
14719 * modules/sysexits (Depends-on): Add absolute-header.
14721 2007-04-12 Eric Blake <ebb9@byu.net>
14723 No need to preserve errno on success.
14724 * lib/fflush.c (rpl_fflush): Simplify errno tracking.
14725 Reported by Bruno Haible.
14727 2007-04-12 Simon Josefsson <simon@josefsson.org>
14729 * MODULES.html.sh (Support for maintaining and releasing
14730 projects): Add autobuild. Suggested by Eric Blake <ebb9@byu.net>.
14732 2007-04-12 Simon Josefsson <simon@josefsson.org>
14734 * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
14736 2007-04-12 Simon Josefsson <simon@josefsson.org>
14738 * modules/autobuild: New module.
14740 * m4/autobuild.m4: New file.
14742 2007-04-11 Bruno Haible <bruno@clisp.org>
14744 * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
14745 %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
14746 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
14747 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
14748 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
14749 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
14750 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
14751 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
14752 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
14753 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
14754 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
14755 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
14756 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
14757 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
14758 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
14759 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
14760 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
14761 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
14762 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
14763 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
14764 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
14765 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
14766 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
14767 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
14768 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
14769 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
14770 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
14771 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
14772 Reported by Eric Blake.
14774 2007-04-11 Bruno Haible <bruno@clisp.org>
14776 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
14778 2007-04-10 Bruno Haible <bruno@clisp.org>
14780 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
14781 for NaN and Infinity. Needed on FreeBSD 6.1.
14782 * tests/test-vasnprintf-posix.c (test_function): Undo last change
14783 regarding results for "%010a" of Infinity and NaN.
14784 * tests/test-vasprintf-posix.c (test_function): Likewise.
14785 * tests/test-snprintf-posix.h (test_function): Likewise.
14786 * tests/test-sprintf-posix.h (test_function): Likewise.
14787 * tests/test-fprintf-posix.h (test_function): Likewise.
14788 * tests/test-printf-posix.h (test_function): Likewise.
14789 * tests/test-fprintf-posix.out: Likewise.
14791 2007-04-10 Bruno Haible <bruno@clisp.org>
14793 * modules/locale-tests: New file.
14794 * tests/test-locale.c: New file.
14796 * modules/locale: New file.
14797 * lib/locale_.h: New file.
14798 * m4/locale_h.m4: New file.
14800 2007-04-10 Paul Eggert <eggert@cs.ucla.edu>
14801 Bruno Haible <bruno@clisp.org>
14803 * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
14804 be determined, test for availability of the copysignf, copysign,
14805 copysignl functions.
14806 * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
14807 * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
14808 * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
14810 2007-04-09 Eric Blake <ebb9@byu.net>
14812 * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
14813 * modules/stdio (Makefile.am): Support fflush.
14814 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
14815 * modules/fflush: New file.
14816 * lib/fflush.c: Likewise.
14817 * m4/fflush.m4: Likewise.
14818 * modules/fflush-tests: New test.
14819 * tests/test-fflush.c: Likewise.
14820 * MODULES.html.sh (Input/output <stdio.h>): Document new module.
14822 2007-04-06 Bruno Haible <bruno@clisp.org>
14824 * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
14825 (VASNPRINTF): Use signbit for faster determination whether to print a
14827 * modules/vasnprintf (Files): Remove lib/float+.h.
14828 * modules/fprintf-posix (Depends-on): Add signbit.
14829 * modules/snprintf-posix (Depends-on): Likewise.
14830 * modules/sprintf-posix (Depends-on): Likewise.
14831 * modules/vasnprintf-posix (Depends-on): Likewise.
14832 * modules/vasprintf-posix (Depends-on): Likewise.
14833 * modules/vfprintf-posix (Depends-on): Likewise.
14834 * modules/vsnprintf-posix (Depends-on): Likewise.
14835 * modules/vsprintf-posix (Depends-on): Likewise.
14837 2007-04-06 Bruno Haible <bruno@clisp.org>
14839 * tests/test-frexp.c (main): Test also the sign bit of zero results.
14840 * tests/test-frexpl.c (main): Likewise.
14841 * tests/test-ldexpl.c (main): Likewise.
14842 * modules/frexp-tests (Depends-on): Add signbit.
14843 * modules/frexpl-tests (Depdends-on): Likewise.
14844 * modules/ldexpl-tests (Depdends-on): Likewise.
14846 2007-04-06 Bruno Haible <bruno@clisp.org>
14848 * modules/signbit-tests: New file.
14849 * tests/test-signbit.c: New file.
14851 * modules/signbit: New file.
14852 * lib/signbitf.c: New file.
14853 * lib/signbitd.c: New file.
14854 * lib/signbitl.c: New file.
14855 * m4/signbit.m4: New file.
14856 * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
14857 (signbit): New macro.
14858 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
14860 * modules/math (Makefile.am) Substibute also GNULIB_SIGNBIT and
14861 REPLACE_FREXPL into math.h.
14863 2007-04-06 Bruno Haible <bruno@clisp.org>
14865 * modules/isnanf-nolibm-tests: New file.
14866 * tests/test-isnanf.c: New file.
14868 * modules/isnanf-nolibm: New file.
14869 * lib/isnanf.h: New file.
14870 * lib/isnanf.c: New file.
14871 * lib/isnan.c: Consider the USE_FLOAT macro.
14872 * m4/isnanf.m4: New file.
14874 2007-04-06 Bruno Haible <bruno@clisp.org>
14876 * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
14877 (Link): New section.
14879 * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
14881 2007-04-06 Bruno Haible <bruno@clisp.org>
14883 Assume the 'long double' type.
14884 * m4/longdouble.m4: Remove file.
14885 * config/srclist.txt: Don't mention longdouble.m4.
14886 * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
14887 * lib/float+.h: Likewise.
14888 * lib/frexp.c: Likewise.
14889 * lib/printf-args.h: Likewise.
14890 * lib/printf-args.c: Likewise.
14891 * lib/printf-frexp.c: Likewise.
14892 * lib/printf-parse.c: Likewise.
14893 * lib/vasnprintf.c: Likewise.
14894 * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
14895 * m4/intl.m4: Likewise.
14896 * m4/isnanl.m4: Likewise.
14897 * m4/printf.m4: Likewise.
14898 * m4/printf-frexpl.m4: Likewise.
14899 * m4/vasnprintf.m4: Likewise.
14900 * modules/allocsa (Files): Remove m4/longdouble.m4.
14901 * modules/gettext (Files): Likewise.
14902 * modules/relocatable-prog-wrapper (Files): Likewise.
14903 * modules/vasnprintf (Files): Likewise.
14904 * modules/isnanl (Files): Likewise.
14905 (Include): Simplify.
14906 * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
14907 (Include): Simplify.
14908 * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
14909 (Include): Simplify.
14910 * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
14911 (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
14912 * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
14913 (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
14914 * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
14915 (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
14916 * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
14917 (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
14918 * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
14919 (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
14920 * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
14921 (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
14922 * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
14923 * tests/test-isnanl.c: Likewise.
14924 * tests/test-snprintf-posix.h: Likewise.
14925 * tests/test-sprintf-posix.h: Likewise.
14926 * tests/test-vasnprintf-posix.c: Likewise.
14927 * tests/test-vasnprintf-posix2.c: Likewise.
14928 * tests/test-vasprintf-posix.c: Likewise.
14930 2007-04-06 Bruno Haible <bruno@clisp.org>
14932 Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
14933 * lib/math_.h [__DECC]: Include the overridden include file through
14934 #include_next, outside the double-inclusion guard.
14935 * lib/stdio_.h [__DECC]: Likewise.
14936 * lib/stdlib_.h [__DECC]: Likewise.
14937 * lib/string_.h [__DECC]: Likewise.
14938 * lib/time_.h [__DECC]: Likewise.
14939 * lib/wchar_.h [__DECC]: Likewise.
14940 * lib/wctype_.h [__DECC]: Likewise.
14941 * lib/inttypes_.h [__DECC]: Likewise.
14942 Reported by Albert Chin <china@thewrittenword.com> in
14943 <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
14945 2007-04-04 Eric Blake <ebb9@byu.net>
14947 * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
14950 2007-04-04 Bruno Haible <bruno@clisp.org>
14952 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
14953 rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
14955 2007-04-04 Bruno Haible <bruno@clisp.org>
14957 * tests/test-vasnprintf-posix.c (test_function): Allow two possible
14958 results for "%010a" of Infinity and NaN.
14959 * tests/test-vasprintf-posix.c (test_function): Likewise.
14960 * tests/test-snprintf-posix.h (test_function): Likewise.
14961 * tests/test-sprintf-posix.h (test_function): Likewise.
14962 * tests/test-fprintf-posix.h (test_function): Remove these tests.
14963 * tests/test-printf-posix.h (test_function): Likewise.
14964 * tests/test-fprintf-posix.out: Update.
14965 Needed for FreeBSD 6.1.
14967 2007-04-04 Bruno Haible <bruno@clisp.org>
14969 * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
14970 directly used by the gnulib modules nor by gnulib-tool.
14972 2007-04-04 Paul Eggert <eggert@cs.ucla.edu>
14974 * DEPENDENCIES: Give overall description of version dependency
14975 desirability. Use more-typical names for apps.
14976 Add shell, coreutils, diffutils, grep, tar, gzip.
14978 2007-04-04 Simon Josefsson <simon@josefsson.org>
14980 * MODULES.html.sh: Rename crypto modules. Remove iconvme.
14982 2007-04-04 Karl Berry <karl@gnu.org>
14984 * MODULES.html.sh (func_module): missing '.
14986 2007-04-03 Bruno Haible <bruno@clisp.org>
14988 * modules/argmatch-tests (Makefile.am): New variable
14989 test_argmatch_LDADD.
14990 * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
14991 * modules/array-list-tests (Makefile.am): New variable
14992 test_array_list_LDADD.
14993 * modules/array-oset-tests (Makefile.am): New variable
14994 test_array_oset_LDADD.
14995 * modules/avltree-list-tests (Makefile.am): New variable
14996 test_avltree_list_LDADD.
14997 * modules/avltree-oset-tests (Makefile.am): New variable
14998 test_avltree_oset_LDADD.
14999 * modules/avltreehash-list-tests (Makefile.am): New variable
15000 test_avltreehash_list_LDADD.
15001 * modules/canonicalize-lgpl-tests (Makefile.am): New variable
15002 test_canonicalize_lgpl_LDADD.
15003 * modules/carray-list-tests (Makefile.am): New variable
15004 test_carray_list_LDADD.
15005 * modules/dirname-tests (Makefile.am): New variable
15006 test_dirname_LDADD.
15007 * modules/linked-list-tests (Makefile.am): New variable
15008 test_linked_list_LDADD.
15009 * modules/linkedhash-list-tests (Makefile.am): New variable
15010 test_linkedhash_list_LDADD.
15011 * modules/rbtree-list-tests (Makefile.am): New variable
15012 test_rbtree_list_LDADD.
15013 * modules/rbtree-oset-tests (Makefile.am): New variable
15014 test_rbtree_oset_LDADD.
15015 * modules/rbtreehash-list-tests (Makefile.am): New variable
15016 test_rbtreehash_list_LDADD.
15017 * modules/xvasprintf-tests (Makefile.am): New variable
15018 test_xvasprintf_LDADD.
15019 Reported by Eric Blake.
15021 2007-04-03 Eric Blake <ebb9@byu.net>
15023 * DEPENDENCIES: Weaken m4 requirements.
15025 2007-04-03 Bruno Haible <bruno@clisp.org>
15027 * modules/frexp-tests (configure.ac): Remove AC_SUBST.
15028 * modules/isnanl-tests (configure.ac): Likewise.
15030 2007-04-03 Ben Pfaff <blp@gnu.org>
15032 * modules/iconv_open: Add $(srcdir)/ to source directory
15033 references in Makefile fragments that call gperf, to fix VPATH
15036 2007-04-03 Bruno Haible <bruno@clisp.org>
15038 * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
15039 * lib/ldexpl.c: Undo last change.
15041 2007-04-03 Bruno Haible <bruno@clisp.org>
15043 * modules/printf-frexpl (Depends-on): Undo last change.
15044 (Files): Add m4/ldexpl.m4.
15046 2007-04-03 Bruno Haible <bruno@clisp.org>
15048 * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
15049 * modules/isnanl (Link): New section.
15051 * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
15052 * modules/frexp (Link): New section.
15054 * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
15055 * modules/frexpl (Link): New section.
15057 * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
15058 * modules/ldexpl (Link): New section.
15060 2007-04-03 Bruno Haible <bruno@clisp.org>
15062 * modules/TEMPLATE-EXTENDED: New file.
15063 * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
15065 2007-04-03 Bruno Haible <bruno@clisp.org>
15067 * DEPENDENCIES: New file.
15068 Suggested by Simon Josefsson.
15070 2007-04-03 Bruno Haible <bruno@clisp.org>
15072 * doc/gnulib.texi: Escape @.
15074 2007-04-03 James Youngman <jay@gnu.org>
15075 and Paul Eggert <eggert@cs.ucla.edu>
15077 * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
15078 birthtime on all systems that have birthtime, not just those which
15079 use st_birthtimensec rather than st_birthtim. Putting zero in
15080 st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
15081 that the birth time is not available for files on an NFS mount.
15083 2007-04-03 Simon Josefsson <simon@josefsson.org>
15085 * modules/memxor: Move back from crypto/, suggested by Bruno.
15086 * modules/crypto/hmac-sha1: Fix memxor dependency.
15088 * modules/crypto/gc: Moved from ../.
15090 2007-04-02 Eric Blake <ebb9@byu.net>
15092 * lib/ldexpl.c (includes): Avoid libm.
15094 * modules/printf-frexpl (Depends-on): Depend on ldexpl.
15096 2007-04-02 Bruno Haible <bruno@clisp.org>
15098 * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
15101 2007-04-02 Bruno Haible <bruno@clisp.org>
15103 * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
15104 x86 or x86_64 platforms running MacOS X.
15105 Reported by Ryan Schmidt <@ryandesign.com>.
15107 2007-04-02 Bruno Haible <bruno@clisp.org>
15109 * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
15112 2007-04-01 Simon Josefsson <simon@josefsson.org>
15114 * modules/crypto/arcfour: Moved from ../.
15115 * modules/crypto/arcfour-tests: Moved from ../.
15116 * modules/crypto/arctwo: Moved from ../.
15117 * modules/crypto/arctwo-tests: Moved from ../.
15118 * modules/crypto/des: Moved from ../.
15119 * modules/crypto/des-tests: Moved from ../.
15120 * modules/crypto/gc-arcfour: Moved from ../.
15121 * modules/crypto/gc-arcfour-tests: Moved from ../.
15122 * modules/crypto/gc-arctwo: Moved from ../.
15123 * modules/crypto/gc-arctwo-tests: Moved from ../.
15124 * modules/crypto/gc-des: Moved from ../.
15125 * modules/crypto/gc-des-tests: Moved from ../.
15126 * modules/crypto/gc-hmac-md5: Moved from ../.
15127 * modules/crypto/gc-hmac-md5-tests: Moved from ../.
15128 * modules/crypto/gc-hmac-sha1: Moved from ../.
15129 * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
15130 * modules/crypto/gc-md2: Moved from ../.
15131 * modules/crypto/gc-md2-tests: Moved from ../.
15132 * modules/crypto/gc-md4: Moved from ../.
15133 * modules/crypto/gc-md4-tests: Moved from ../.
15134 * modules/crypto/gc-md5: Moved from ../.
15135 * modules/crypto/gc-md5-tests: Moved from ../.
15136 * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
15137 * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
15138 * modules/crypto/gc-random: Moved from ../.
15139 * modules/crypto/gc-rijndael: Moved from ../.
15140 * modules/crypto/gc-rijndael-tests: Moved from ../.
15141 * modules/crypto/gc-sha1: Moved from ../.
15142 * modules/crypto/gc-sha1-tests: Moved from ../.
15143 * modules/crypto/gc-tests: Moved from ../.
15144 * modules/crypto/hmac-md5: Moved from ../.
15145 * modules/crypto/hmac-md5-tests: Moved from ../.
15146 * modules/crypto/hmac-sha1: Moved from ../.
15147 * modules/crypto/hmac-sha1-tests: Moved from ../.
15148 * modules/crypto/md2: Moved from ../.
15149 * modules/crypto/md2-tests: Moved from ../.
15150 * modules/crypto/md4: Moved from ../.
15151 * modules/crypto/md4-tests: Moved from ../.
15152 * modules/crypto/md5: Moved from ../.
15153 * modules/crypto/md5-tests: Moved from ../.
15154 * modules/crypto/memxor: Moved from ../.
15155 * modules/crypto/rijndael: Moved from ../.
15156 * modules/crypto/rijndael-tests: Moved from ../.
15157 * modules/crypto/sha1: Moved from ../.
15159 2007-03-30 James Youngman <jay@gnu.org>
15161 * tests/test-stat-time.c (prepare_test): use chmod() rather than
15162 rename() to change the ctime of a file (because ctime is unaffected
15163 by rename on jfs2 on AIX 5.1).
15164 (main): Start by doing cleanup, in case a previous run failed leaving
15167 2007-03-31 Bruno Haible <bruno@clisp.org>
15169 Support old proprietary implementations of iconv.
15170 * modules/iconv_open: New file.
15171 * lib/iconv_.h: New file.
15172 * m4/iconv_h.m4: New file.
15173 * lib/iconv_open.c: New file.
15174 * lib/iconv_open-aix.gperf: New file.
15175 * lib/iconv_open-hpux.gperf: New file.
15176 * lib/iconv_open-irix.gperf: New file.
15177 * lib/iconv_open-osf.gperf: New file.
15178 * m4/iconv_open.m4: New file.
15179 * modules/linebreak (Depends-on): Add iconv_open.
15180 * modules/striconv (Depends-on): Likewise.
15181 * modules/striconveh (Depends-on): Likewise.
15182 * modules/unicodeio (Depends-on): Likewise.
15183 * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
15185 * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
15186 conversion if cd is (iconv_t)(-1).
15187 (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
15190 2007-03-31 Bruno Haible <bruno@clisp.org>
15192 * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
15193 work on Solaris either. Protect also second use of "autodetect_jp".
15195 2007-03-31 Bruno Haible <bruno@clisp.org>
15197 * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
15198 the function is not present.
15200 2007-03-31 Bruno Haible <bruno@clisp.org>
15202 * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
15203 the function is not present.
15205 2007-03-31 Bruno Haible <bruno@clisp.org>
15207 * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
15208 a bug in HP-UX iconv_open().
15210 2007-03-31 Bruno Haible <bruno@clisp.org>
15212 * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
15213 (Mathematics <math.h>): New section, add fpieee.
15214 (Input/output <stdio.h>): Add fseterr.
15215 (Mathematics <math.h>): New section, add printf-frexp.
15216 (Container data structures): Add sublist.
15217 (Core language properties): Add fpucw, inline.
15218 (Functions for greatest-width integer types <inttypes.h>): Add
15219 imaxabs, imaxdiv, inttypes.
15220 (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
15221 isnanl-nolibm, ldexp.
15222 (Mathematics <math.h>): New section, add printf-frexpl.
15223 (Support for systems lacking POSIX:2001): Add fprintf-posix,
15224 printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
15225 sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
15226 vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
15227 (Unicode string functions): Add unistr/u*-mbtoucr.
15228 (Java): Add javacomp-script, javaexec-script.
15229 (C#): Add csharpcomp-script, csharpexec-script.
15230 (Support for building libraries and executables): Add havelib,
15232 (Support for maintaining and releasing projects): Renamed from
15233 'Support for maintaining and release projects'. Add announce-gen.
15235 2007-03-31 Bruno Haible <bruno@clisp.org>
15237 * README: Talk primarily about git.
15238 (git and CVS): Renamed from CVS.
15239 * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
15240 gnulib is available through git.
15241 * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
15243 2007-03-30 Bruno Haible <bruno@clisp.org>
15245 * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
15246 * lib/poll_.h: Likewise.
15247 * lib/stat_.h: Likewise.
15248 * lib/sys_time_.h: Likewise.
15249 * lib/sysexit_.h: Likewise.
15250 * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
15251 * lib/stdbool_.h: Likewise.
15252 * lib/byteswap_.h: Add double-inclusion guard.
15254 2007-03-30 Sergey Poznyakoff <gray@mirddin.farlep.net>
15256 * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
15258 2007-03-30 Karl Berry <karl@gnu.org>
15260 * config/srclist-update: double space after USA in the license
15261 substitution, since that's how it's usually (?) written.
15263 2007-03-30 Paul Eggert <eggert@cs.ucla.edu>
15265 * lib/write-any-file.c (can_write_any_file): Fix else-else bug
15266 reported by Bruno Haible.
15268 2007-03-29 Bruno Haible <bruno@clisp.org>
15270 * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
15271 a bug in AIX iconv().
15273 2007-03-29 Bruno Haible <bruno@clisp.org>
15275 * modules/ldexpl-tests: New file.
15276 * tests/test-ldexpl.c: New file.
15278 2007-03-29 Bruno Haible <bruno@clisp.org>
15280 * lib/ldexpl.c: Include fpucw.h.
15281 (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
15283 * modules/ldexpl (Depends-on): Add fpucw.
15285 2007-03-29 Bruno Haible <bruno@clisp.org>
15287 * modules/ldexpl: New file.
15288 * m4/ldexpl.m4: New file.
15289 * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
15291 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
15293 * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
15295 * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
15296 gl_FUNC_LDEXPL_WORKS.
15297 * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
15298 * modules/mathl (Files): Remove lib/ldexpl.c.
15299 (Depends-on): Add ldexpl.
15301 2007-03-29 Bruno Haible <bruno@clisp.org>
15303 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
15305 2007-03-29 Bruno Haible <bruno@clisp.org>
15307 * tests/test-striconveh.c (main): Don't assume that a direct conversion
15308 between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
15309 and possibly also HP-UX.
15310 * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
15311 work on AIX, IRIX, HP-UX, OSF/1.
15312 * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
15313 * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
15314 * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
15315 * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
15316 * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
15317 * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
15319 2007-03-29 Bruno Haible <bruno@clisp.org>
15321 * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
15323 2007-03-29 Paul Eggert <eggert@cs.ucla.edu>
15325 * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
15326 to work around a problem on OSF/1 5.1 reported by Bruno Haible.
15328 2007-03-29 Eric Blake <ebb9@byu.net>
15330 * lib/acl-internal.h: Remove redundant include.
15331 (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
15332 Cygwin when a file is locked.
15334 2007-03-29 Bruno Haible <bruno@clisp.org>
15336 * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
15338 * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
15340 2007-03-29 Paul Eggert <eggert@cs.ucla.edu>
15342 * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
15343 try to remove a parent directory if the child couldn't be removed
15344 (except for the first rmdir, which could fail because the child
15345 doesn't exist). Problem reported by Jeff Blaine in
15346 <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
15348 2007-03-28 Bruno Haible <bruno@clisp.org>
15350 * lib/striconveh.c (utf8conv_carefully): New function.
15351 (mem_cd_iconveh_internal): Invoke it.
15353 2007-03-28 Bruno Haible <bruno@clisp.org>
15355 * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
15356 of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
15358 * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
15359 utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
15362 2007-03-28 Bruno Haible <bruno@clisp.org>
15364 * modules/unistr/u8-mbtoucr: New file.
15365 * lib/unistr/u8-mbtoucr.c: New file.
15366 * modules/unistr/u16-mbtoucr: New file.
15367 * lib/unistr/u16-mbtoucr.c: New file.
15368 * modules/unistr/u16-mbtoucr: New file.
15369 * lib/unistr/u16-mbtoucr.c: New file.
15370 * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
15372 2007-03-27 Simon Josefsson <simon@josefsson.org>
15373 Bruno Haible <bruno@clisp.org>
15375 * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
15376 REPLACE_VASPRINTF. Set HAVE_VASPRINTF. Add
15377 AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
15379 * m4/stdio_h.m4: Add stubs for vasprintf too.
15381 * modules/stdio: Support vasprintf in sed command.
15383 * modules/vasprintf: Depend on stdio for prototypes. Remove
15384 vasprintf.h. Add stdio module indicator.
15386 * lib/stdio_.h: Declare asprintf and vasprintf, based on
15389 * lib/vasprintf.h: File removed.
15391 * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
15392 * lib/vasprintf.c: Ditto.
15393 * lib/xvasprintf.c: Ditto.
15394 * tests/test-vasprintf-posix.c: Ditto.
15395 * tests/test-vasprintf.c: Ditto.
15397 2007-03-27 Bruno Haible <bruno@clisp.org>
15399 Make vasnprintf multithread-safe.
15400 * lib/vasnprintf.c (decimal_point_char): New function.
15401 (VASNPRINTF): Use it.
15402 Suggested by Simon Josefsson.
15404 2007-03-27 Eric Blake <ebb9@byu.net>
15406 Support sub-second birthtime on cygwin.
15407 * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
15408 * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
15409 (get_stat_birthtime): Also work with st_birthtim.
15411 2007-03-27 Paul Eggert <eggert@cs.ucla.edu>
15413 * lib/stat-time.h (USE_BIRTHTIME): Remove.
15414 (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
15415 (get_stat_birthtime_ns): Do not try to use "spare" fields.
15416 (get_stat_birthtime_ns): Simplify compile-time tests.
15417 (get_stat_birthtime): Change the API to look like
15418 get_stat_mtime etc., except return a negative tv_nsec on error.
15419 * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
15420 Don't check for "spare" fields.
15421 (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
15422 or for struct stat.st_birthtime, as these tests aren't used.
15423 * tests/test-stat-time.c (test_birthtime): Adjust to new API.
15425 2007-03-27 Bruno Haible <bruno@clisp.org>
15427 * lib/stat-time.h: Include <sys/stat.h>.
15429 2007-03-27 James Youngman <jay@gnu.org>
15431 * lib/stat-time.h (get_stat_birthtime): New function for
15432 retrieving st_birthtime as provided by UFS2 (hence *BSD).
15433 * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
15435 * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
15436 * modules/stat-time-test: New file.
15437 * tests/test-stat-time.c: New test, devised by Bruno Haible.
15439 2007-03-26 Bruno Haible <bruno@clisp.org>
15441 Better support of signalling NaNs.
15442 * lib/atanl.c: Include isnanl.h.
15443 (atanl): Perform test for NaN at the beginning of the function and
15444 through a call to isnanl.
15445 * lib/cosl.c: Include isnanl.h.
15446 (cosl): Perform test for NaN at the beginning of the function and
15447 through a call to isnanl.
15448 * lib/ldexpl.c: Include isnanl.h.
15449 (ldexpl): Perform test for NaN through a call to isnanl.
15450 * lib/logl.c: Include isnanl.h.
15451 (logl): Perform test for NaN at the beginning of the function and
15452 through a call to isnanl.
15453 * lib/sinl.c: Include isnanl.h.
15454 (sinl): Perform test for NaN at the beginning of the function and
15455 through a call to isnanl.
15456 * lib/sqrtl.c: Include isnanl.h.
15457 (sqrtl): Perform test for NaN at the beginning of the function and
15458 through a call to isnanl.
15459 * lib/tanl.c: Include isnanl.h.
15460 (tanl): Perform test for NaN at the beginning of the function and
15461 through a call to isnanl.
15462 * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
15463 * modules/mathl (Depends-on): Add isnanl.
15465 2007-03-26 Eric Blake <ebb9@byu.net>
15467 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
15468 regression in logic sense of previous patch.
15470 2007-03-26 Bruno Haible <bruno@clisp.org>
15472 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
15473 unportable shell command "if ! ...".
15474 Reported by Ralf Wildenhues.
15476 2007-03-25 Bruno Haible <bruno@clisp.org>
15478 * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
15479 <sysexits.h> file, and only add EX_CONFIG.
15480 * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
15481 absolute file name and whether it is sufficient. Substitute also
15482 HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
15483 * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
15484 ABSOLUTE_SYSEXITS_H into sysexits.h.
15486 2007-03-25 Bruno Haible <bruno@clisp.org>
15488 * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
15491 2007-03-25 Bruno Haible <bruno@clisp.org>
15493 * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
15494 * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
15496 2007-03-25 Bruno Haible <bruno@clisp.org>
15498 * lib/vasnprintf.c: Include langinfo.h.
15499 (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
15501 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
15502 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
15503 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
15504 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
15505 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
15506 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
15507 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
15508 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
15509 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
15510 Reported by Simon Josefsson.
15512 2007-03-25 Bruno Haible <bruno@clisp.org>
15514 * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
15515 (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
15516 * modules/vasnprintf (Depends-on): Add stdint.
15518 2007-03-25 Bruno Haible <bruno@clisp.org>
15520 * modules/fpieee: New file.
15521 * m4/fpieee.m4: New file.
15522 * modules/isnan-nolibm (Depends-on): Add fpieee.
15523 * modules/isnanl-nolibm (Depends-on): Add fpieee.
15524 * modules/isnanl (Depends-on): Add fpieee.
15526 2007-03-25 Bruno Haible <bruno@clisp.org>
15528 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
15530 2007-03-25 Bruno Haible <bruno@clisp.org>
15532 Avoid test failures on IRIX 6.5.
15533 * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
15535 * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
15539 2007-03-25 Bruno Haible <bruno@clisp.org>
15541 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
15542 (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
15543 exists but doesn't work.
15544 * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
15545 is set. Don't provide a prototype if REPLACE_FREXPL is not set.
15546 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
15547 * modules/math (Makefile.am) Substibute also REPLACE_FREXPL into math.h.
15549 2007-03-25 Bruno Haible <bruno@clisp.org>
15551 * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
15552 returns inf. Needed on IRIX 6.5.
15554 2007-03-25 Bruno Haible <bruno@clisp.org>
15556 * tests/test-frexpl.c: Include isnanl-nolibm.h.
15557 (main): Use isnanl instead of x != x idiom.
15558 * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
15560 * tests/test-frexp.c: Include isnan.h.
15561 (main): Use isnan instead of x != x idiom.
15562 * modules/frexp-tests (Depends-on): Add isnan-nolibm.
15564 2007-03-25 Bruno Haible <bruno@clisp.org>
15566 * tests/test-frexp.c (NaN): New function/macro.
15567 (main): Use it instead of 0.0 / 0.0.
15568 * tests/test-isnan.c (NaN): New function/macro.
15569 (main): Use it instead of 0.0 / 0.0.
15570 * tests/test-vasnprintf-posix.c (NaN): New function/macro.
15571 (test_function): Use it instead of 0.0 / 0.0.
15572 * tests/test-vasprintf-posix.c (NaN): New function/macro.
15573 (test_function): Use it instead of 0.0 / 0.0.
15574 * tests/test-snprintf-posix.h (NaN): New function/macro.
15575 (test_function): Use it instead of 0.0 / 0.0.
15576 * tests/test-sprintf-posix.h (NaN): New function/macro.
15577 (test_function): Use it instead of 0.0 / 0.0.
15578 * tests/test-fprintf-posix.h (NaN): New function/macro.
15579 (test_function): Use it instead of 0.0 / 0.0.
15580 * tests/test-printf-posix.h (NaN): New function/macro.
15581 (test_function): Use it instead of 0.0 / 0.0.
15583 * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
15585 2007-03-25 Bruno Haible <bruno@clisp.org>
15587 * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
15589 2007-03-25 Bruno Haible <bruno@clisp.org>
15591 * lib/regexec.c (merge_state_with_log): Make static.
15593 2007-03-25 Bruno Haible <bruno@clisp.org>
15595 * lib/trigl.c (kernel_rem_pio2): Make static.
15597 2007-03-25 Bruno Haible <bruno@clisp.org>
15599 * lib/sincosl.c (sincosl_table): Make static.
15601 2007-03-25 Bruno Haible <bruno@clisp.org>
15603 * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
15604 if the compiler does not support C99.
15606 2007-03-25 Bruno Haible <bruno@clisp.org>
15608 * modules/time (Makefile.am): Ensure all rule action lines start with a
15611 2007-03-24 Bruno Haible <bruno@clisp.org>
15613 * modules/tsearch-tests: New file.
15614 * tests/test-tsearch.sh: New file.
15615 * tests/test-tsearch.c: New file, mostly copied from glibc.
15617 * modules/search-tests: New file.
15618 * tests/test-search.c: New file.
15620 * modules/search: New file.
15621 * lib/search_.h: New file, incorporating lib/tsearch.h.
15622 * m4/search_h.m4: New file.
15623 * lib/tsearch.h: Remove file.
15624 * lib/tsearch.c: Include search.h instead of tsearch.h.
15625 * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
15627 * modules/tsearch (Files): Remove lib/tsearch.h.
15628 (Depends-on): Add search.
15629 (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
15630 (Include): Change tsearch.h into search.h.
15632 2007-03-24 Bruno Haible <bruno@clisp.org>
15634 * modules/fpucw: New file.
15635 * lib/fpucw.h: New file.
15636 * lib/frexp.c: Include fpucw.h.
15637 (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
15639 * lib/printf-frexp.c: Include fpucw.h.
15640 (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
15642 * lib/vasnprintf.c: Include fpucw.h.
15643 (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
15644 'long double' calculations.
15645 * tests/test-frexpl.c: Include fpucw.h.
15646 (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
15647 * tests/test-printf-frexpl.c: Include fpucw.h.
15648 (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
15649 * modules/frexpl (Depends-on): Add fpucw.
15650 * modules/printf-frexpl (Depends-on): Likewise.
15651 * modules/fprintf-posix (Depends-on): Likewise.
15652 * modules/snprintf-posix (Depends-on): Likewise.
15653 * modules/sprintf-posix (Depends-on): Likewise.
15654 * modules/vasnprintf-posix (Depends-on): Likewise.
15655 * modules/vasprintf-posix (Depends-on): Likewise.
15656 * modules/vfprintf-posix (Depends-on): Likewise.
15657 * modules/vsnprintf-posix (Depends-on): Likewise.
15658 * modules/vsprintf-posix (Depends-on): Likewise.
15659 * modules/frexpl-tests (Depends-on): Likewise.
15660 * modules/printf-frexpl-tests (Depends-on): Likewise.
15662 2007-03-24 Bruno Haible <bruno@clisp.org>
15664 * lib/float+.h: New file.
15665 * lib/isnan.c: Include float+.h.
15667 (FUNC): Compare only SIZE bytes of the value.
15668 * lib/vasnprintf.c: Include float+.h.
15669 (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
15670 SIZEOF_LDBL or SIZEOF_DBL bytes.
15671 * modules/isnan-nolibm (Files): Add lib/float+.h.
15672 * modules/isnanl-nolibm (Files): Add lib/float+.h.
15673 * modules/isnanl (Files): Add lib/float+.h.
15674 * modules/vasnprintf (Files): Add lib/float+.h.
15676 2007-03-24 Bruno Haible <bruno@clisp.org>
15678 * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
15679 include isnanl-nolibm.h.
15681 2007-03-24 Bruno Haible <bruno@clisp.org>
15683 * tests/test-read-file.c (main): Don't produce spurious output for
15684 expected situations. Make the test fail if it encountered unexpected
15687 2007-03-24 Bruno Haible <bruno@clisp.org>
15689 * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
15690 since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
15692 2007-03-24 Bruno Haible <bruno@clisp.org>
15694 * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
15696 2007-03-24 Bruno Haible <bruno@clisp.org>
15698 * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
15699 utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
15701 * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
15702 * modules/utf8-ucs4: Turn into a symbolic link to module
15705 * modules/unistr/u8-mbtouc-unsafe: Add source files from module
15707 * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
15708 unistr/u8-mbtouc-unsafe.
15710 * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
15711 * modules/utf16-ucs4: Turn into a symbolic link to module
15714 * modules/unistr/u16-mbtouc-unsafe: Add source files from module
15716 * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
15717 unistr/u16-mbtouc-unsafe.
15719 * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
15720 * modules/ucs4-utf8: Turn into a symbolic link to module
15723 * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
15724 * modules/ucs4-utf16: Turn into a symbolic link to module
15727 2007-03-24 Bruno Haible <bruno@clisp.org>
15729 * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
15730 Enable the function only if HAVE_INLINE.
15731 * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
15732 lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
15733 * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
15734 Enable the function only if HAVE_INLINE.
15735 * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
15736 lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
15737 * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
15738 Enable the function only if HAVE_INLINE.
15739 * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
15740 Enable the function only if HAVE_INLINE.
15741 * modules/utf8-ucs4: Update.
15742 * modules/utf8-ucs4-unsafe: Update.
15743 * modules/utf16-ucs4: Update.
15744 * modules/utf16-ucs4-unsafe: Update.
15745 * modules/ucs4-utf8: Update.
15746 * modules/ucs4-utf16: Update.
15748 2007-03-24 Bruno Haible <bruno@clisp.org>
15750 * lib/utf8-ucs4.h: Remove file.
15751 * lib/utf8-ucs4-unsafe.h: Remove file.
15752 * lib/utf16-ucs4.h: Remove file.
15753 * lib/utf16-ucs4-unsafe.h: Remove file.
15754 * lib/ucs4-utf8.h: Remove file.
15755 * lib/ucs4-utf16.h: Remove file.
15756 * lib/unistr.h: Include their previous contents.
15757 * m4/utf-ucs4.m4: Remove file.
15758 * m4/ucs4-utf.m4: Remove file.
15759 * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
15760 (Depends-on): Add unistr/base.
15761 (configure.ac): Remove gl_UTF_UCS4.
15762 (Makefile.am): Update.
15763 (Include): Change to unistr.h.
15764 * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
15765 (Depends-on): Add unistr/base.
15766 (configure.ac): Remove gl_UTF_UCS4.
15767 (Makefile.am): Update.
15768 (Include): Change to unistr.h.
15769 * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
15770 (Depends-on): Add unistr/base.
15771 (configure.ac): Remove gl_UTF_UCS4.
15772 (Makefile.am): Update.
15773 (Include): Change to unistr.h.
15774 * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
15775 (Depends-on): Add unistr/base.
15776 (configure.ac): Remove gl_UTF_UCS4.
15777 (Makefile.am): Update.
15778 (Include): Change to unistr.h.
15779 * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
15780 (Depends-on): Add unistr/base.
15781 (configure.ac): Remove gl_UCS4_UTF.
15782 (Makefile.am): Update.
15783 (Include): Change to unistr.h.
15784 * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
15785 (Depends-on): Add unistr/base.
15786 (configure.ac): Remove gl_UCS4_UTF.
15787 (Makefile.am): Update.
15788 (Include): Change to unistr.h.
15789 * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
15790 * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
15791 utf8-ucs4-unsafe.h.
15792 * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
15793 * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
15794 utf16-ucs4-unsafe.h.
15795 * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
15796 * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
15797 * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
15798 * lib/unistr/u8-strchr.c: Likewise.
15799 * lib/unistr/u8-strrchr.c: Likewise.
15800 * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
15801 * lib/unistr/u16-strchr.c: Likewise.
15802 * lib/unistr/u16-strrchr.c: Likewise.
15803 * lib/striconveh.c: Update.
15804 * lib/linebreak.c: Update.
15806 2007-03-24 Bruno Haible <bruno@clisp.org>
15808 * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
15809 arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
15811 2007-03-22 Bruno Haible <bruno@clisp.org>
15813 * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
15815 2007-03-23 Paul Eggert <eggert@cs.ucla.edu>
15817 * MODULES.html.sh (File system functions): New module write-any-file.
15818 * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
15819 * m4/write-any-file.m4: New files.
15821 2007-03-23 Eric Blake <ebb9@byu.net>
15823 * gnulib-tool: Rearrange space-tab sequences, since some editors
15826 2007-03-23 Eric Blake <ebb9@byu.net>
15828 * lib/version-etc.c (version_etc_va): Update license wording to
15829 be more concise. Recommended by Richard Stallman.
15831 2007-03-22 Bruno Haible <bruno@clisp.org>
15833 * lib/poll.c (MSG_PEEK): New fallback definition.
15835 2007-03-22 Bruno Haible <bruno@clisp.org>
15837 * modules/sys_socket-tests (configure.ac): Check for shutdown function.
15838 * tests/test-sys_socket.c (a): Test only if shutdown() exists.
15840 Fixes a compilation error on BeOS.
15842 2007-03-22 Bruno Haible <bruno@clisp.org>
15844 * modules/frexpl-tests: New file.
15845 * tests/test-frexpl.c: New file.
15847 * modules/frexpl: New file.
15848 * m4/frexpl.m4: New file.
15849 * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
15850 * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
15851 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
15852 * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
15853 (Depends-on): Add frexpl. Remove isnanl-nolibm.
15854 * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
15856 2007-03-22 Bruno Haible <bruno@clisp.org>
15858 * lib/frexpl.c: Share code with lib/frexp.c.
15859 * modules/mathl (Files): Add lib/frexp.c.
15860 (Depends-on): Add isnanl-nolibm.
15862 2007-03-22 Bruno Haible <bruno@clisp.org>
15864 * modules/printf-frexp (Files): Add m4/frexp.m4.
15865 * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
15866 only if the found frexp function actually works.
15868 2007-03-22 Bruno Haible <bruno@clisp.org>
15870 * lib/frexp.c: Remove older implementation that uses divisions.
15872 2007-03-21 Bruno Haible <bruno@clisp.org>
15874 * modules/frexp-tests: New file.
15875 * tests/test-frexp.c: New file.
15877 * modules/frexp: New file.
15878 * lib/frexp.c: New file.
15879 * m4/frexp.m4: New file.
15880 * lib/math_.h (frexp): New declaration.
15881 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
15883 * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
15885 2007-03-21 Bruno Haible <bruno@clisp.org>
15887 * modules/isnanl-tests: New file.
15888 * tests/test-isnanl.c: New file.
15890 * modules/isnanl: New file.
15891 * lib/isnanl.h: New file.
15892 * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
15893 (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
15894 gl_FUNC_ISNANL_WORKS.
15895 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
15898 2007-03-21 Bruno Haible <bruno@clisp.org>
15900 * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
15903 * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
15904 * lib/vasnprintf.c: Update.
15905 * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
15906 tests/test-isnanl.h, remove tests/test-isnanl.c.
15907 (Makefile.am): Update.
15908 * tests/test-isnanl-nolibm.c: New file.
15909 * tests/test-isnanl.h: New file.
15910 * tests/test-isnanl.c: Remove file.
15912 2007-03-21 Jim Meyering <jim@meyering.net>
15914 When trying to open ".", treat ESTALE like EACCES.
15915 * lib/savewd.c (savewd_save): Resort to forking not just upon
15916 failure with EACCES, but also when errno is ESTALE.
15918 2007-03-20 Bruno Haible <bruno@clisp.org>
15920 * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
15921 Needed on AIX 5.1. Reported by Matthew Woehlke.
15923 2007-03-19 Paul Eggert <eggert@cs.ucla.edu>
15925 Suggestions by Bruno Haible:
15926 * lib/acl-internal.h: Include "gettext.h" rather than rolling
15928 (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
15929 * modules/acl (Depends-on): Add gettext.
15931 2007-03-19 Bruno Haible <bruno@clisp.org>
15933 * modules/iconvme: Remove file.
15934 * lib/iconvme.h: Remove file.
15935 * lib/iconvme.c: Remove file.
15936 * m4/iconvme.m4: Remove file.
15938 2007-03-19 Bruno Haible <bruno@clisp.org>
15940 * doc/relocatable-maint.texi: Break long shell script line.
15941 Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
15943 2007-03-19 Paul Eggert <eggert@cs.ucla.edu>
15945 Add limited support for Solaris 10 ZFS-style ACLs: just enough to
15946 handle file_has_acl.
15947 * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
15948 * lib/acl.c: Move header inclusions and related macro defns into
15949 lib/acl-internal.h.
15950 (S_ISLNK): Remove defn, since that's now done for us.
15951 (file_has_acl): Move to lib/file-has-acl.c.
15952 Call acl_trivial if available. This is the crucial part of the fix.
15953 (acl_entries): Move to lib/acl_entries.c. Now extern, since it's
15954 shared within the library. Rewrite a bit, partly to make it compatible
15955 with the GNU coding style.
15956 * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
15957 Remove unnecessary double-quotes.
15958 Don't test for acl_to_text; the build will catch that.
15959 Replace acl_entries if it doesn't exist and it is needed.
15960 Check for -lsec and acl_trivial (as used on Solaris 10).
15961 * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
15962 lib/file-has-acl.c.
15963 (Depends-on): Add sys_stat, for S_ISLNK.
15965 2007-03-19 Ben Pfaff <blp@gnu.org>
15967 * doc/gnulib.texi: Fix typos.
15968 Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
15970 2007-03-19 Paul Eggert <eggert@cs.ucla.edu>
15972 * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
15973 If size is zero here, buf must be zero.
15975 2007-03-19 Simon Josefsson <simon@josefsson.org>
15977 * des.c: Remove weak_keys_chksum. Reported by Bruno Haible
15980 2007-03-18 Bruno Haible <bruno@clisp.org>
15982 * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
15983 Suggested by Eric Blake.
15985 2007-03-18 Ben Pfaff <blp@gnu.org>
15987 * doc/relocatable.texi: Recommend using as prefix a directory
15988 that does not exist and will never be created. Based on
15989 discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
15992 2007-03-17 Bruno Haible <bruno@clisp.org>
15994 * lib/fchownat.c: Include lchown.h.
15996 2007-03-17 Bruno Haible <bruno@clisp.org>
15998 Fix endless loop when the given allocated size was > INT_MAX.
15999 * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
16000 (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
16001 larger than INT_MAX, or when it grow to a value larger than INT_MAX.
16002 * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
16003 * lib/sprintf.c (sprintf): Likewise.
16005 2007-03-17 Bruno Haible <bruno@clisp.org>
16007 * tests/test-argp-2.sh (func_compare): Output a context diff.
16009 2007-03-17 Bruno Haible <bruno@clisp.org>
16011 * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
16012 locale's decimal-point character.
16014 2007-03-17 Bruno Haible <bruno@clisp.org>
16016 * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
16017 before comparing it. Needed because on some platforms (e.g. x86) a
16018 'long double' occupies less bytes than sizeof (long double).
16020 2007-03-17 Bruno Haible <bruno@clisp.org>
16022 * tests/test-crc.c (main): Make printf statements 64-bit clean.
16023 * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
16024 * tests/test-getaddrinfo.c (simple): Likewise.
16025 * tests/test-read-file.c (main): Likewise.
16027 2007-03-17 Bruno Haible <bruno@clisp.org>
16029 * tests/test-dirname.c (main): Make printf statements 64-bit clean.
16031 2007-03-17 Bruno Haible <bruno@clisp.org>
16033 * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
16036 2007-03-17 Bruno Haible <bruno@clisp.org>
16038 * tests/test-c-strcasecmp.c: Include c-strcase.h.
16039 * tests/test-c-strncasecmp.c: Likewise.
16041 2007-03-17 Bruno Haible <bruno@clisp.org>
16043 * modules/stdlib (Depends-on): Add unistd.
16044 * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
16045 Needed for MacOS X 10.3.
16047 2007-03-17 Bruno Haible <bruno@clisp.org>
16049 * lib/unistr/u-strdup.h: Include <stdlib.h>.
16051 2007-03-17 Bruno Haible <bruno@clisp.org>
16053 * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
16055 2007-03-17 Bruno Haible <bruno@clisp.org>
16057 * gnulib-tool (func_import): Update .cvsignore and .gitignore files
16058 to reflect files copied from gnulib (with or without modifications).
16059 Suggested by Jim Meyering.
16061 2007-03-17 Eric Blake <ebb9@byu.net>
16063 * NEWS: Document stdlib change from 2007-02-18.
16065 2007-03-17 Jim Meyering <jim@meyering.net>
16067 Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
16068 * build-aux/bootstrap: Put ""s around use of $build_aux, in case
16069 someone uses a name containing shell meta-characters.
16070 Reported by Alfred M. Szmidt.
16072 * build-aux/bootstrap: Don't use \> in grep regexp. For HP-UX.
16074 2007-03-16 Alfred M. Szmidt <ams@gnu.org>
16076 * build-aux/bootstrap (with_gettext): New variable. Run autopoint
16077 and copy gettext configuration files only if configure.ac contains
16078 a use of AM_GNU_GETTEXT_VERSION.
16080 2007-03-16 Alfred M. Szmidt <ams@gnu.org>
16082 * build-aux/bootstrap (gnulib_name): New variable.
16083 (gnulib_tool_options): Use it.
16085 2007-03-13 Simon Josefsson <simon@josefsson.org>
16087 * tests/test-des.c: Use new namespace.
16089 2007-03-15 Bruno Haible <bruno@clisp.org>
16091 * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
16092 Reported by James Youngman <jay@gnu.org>.
16094 2007-03-15 Bruno Haible <bruno@clisp.org>
16096 * lib/glob.c (glob): Add 'restrict' so that prototype matches the
16097 declared prototype. Needed with cc on OSF/1 5.1.
16099 2007-03-15 Bruno Haible <bruno@clisp.org>
16101 * lib/gl_list.h (gl_listelement_dispose_fn): New type.
16102 (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
16103 (struct gl_list_implementation): Add dispose_fn argument to the
16104 'create_empty', 'create' methods.
16105 (struct gl_list_impl_base): Add field 'dispose_fn'.
16106 * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
16108 * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
16109 dispose_fn argument.
16110 (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
16111 dispose_fn on the dropped values.
16112 * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
16113 dispose_fn argument.
16114 (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
16116 * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
16117 (gl_tree_remove_node): Call dispose_fn on the dropped value.
16118 * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
16119 (gl_tree_remove_node): Call dispose_fn on the dropped value.
16120 * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
16122 (gl_tree_list_free): Call dispose_fn on the dropped values.
16123 * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
16124 the dropped values.
16125 * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
16126 Add dispose_fn argument.
16127 (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
16128 Call dispose_fn on the dropped values.
16129 * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
16130 Add dispose_fn argument.
16131 (gl_sublist_create): Initialize the 'dispose_fn' field.
16132 * lib/clean-temp.c (create_temp_dir, register_fd): Update.
16133 * tests/test-array_list.c (main): Update.
16134 * tests/test-carray_list.c (main): Update.
16135 * tests/test-avltree_list.c (main): Update.
16136 * tests/test-rbtree_list.c (main): Update.
16137 * tests/test-avltreehash_list.c (main): Update.
16138 * tests/test-rbtreehash_list.c (main): Update.
16139 * tests/test-linked_list.c (main): Update.
16140 * tests/test-linkedhash_list.c (main): Update.
16141 * tests/test-array_oset.c (main): Update.
16143 2007-03-15 Bruno Haible <bruno@clisp.org>
16145 * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
16146 (gl_oset_create_empty): Add dispose_fn argument.
16147 (struct gl_oset_implementation): Add dispose_fn argument to
16148 'create_empty' method.
16149 (struct gl_oset_impl_base): Add dispose_fn field.
16150 * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
16151 * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
16152 (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
16154 * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
16155 (gl_tree_oset_free): Call dispose_fn on the dropped values.
16156 * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
16158 * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
16160 * tests/test-array_oset.c (main): Update.
16161 * tests/test-avltree_oset.c (main): Update.
16162 * tests/test-rbtree_oset.c (main): Update.
16163 * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
16165 2007-03-13 Bruno Haible <bruno@clisp.org>
16167 * tests/test-stdbool.c (i): Update after last patch.
16169 2007-03-12 Bruno Haible <bruno@clisp.org>
16171 * lib/quotearg.c: Include <wctype.h> early, before the definition of
16172 the iswprint macro. Needed on Solaris 2.5.1.
16174 2007-03-12 Bruno Haible <bruno@clisp.org>
16176 * tests/test-printf-frexp.c (main): Declare x as volatile.
16178 2007-03-12 Simon Josefsson <simon@josefsson.org>
16180 * doc/gnulib.texi (Build robot for gnulib): New section.
16182 2007-03-12 Jim Meyering <jim@meyering.net>
16184 * build-aux/bootstrap: New file.
16185 * build-aux/bootstrap.conf: New file, from coreutils.
16187 2007-03-11 Bruno Haible <bruno@clisp.org>
16189 * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
16191 2007-03-12 Simon Josefsson <simon@josefsson.org>
16193 * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
16194 avoid collisions with 'des_setkey'. Reported by Bruno Haible
16195 <bruno@clisp.org>. Also change 'tripledes_' to '3des_'.
16197 2007-03-11 Bruno Haible <bruno@clisp.org>
16199 * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
16200 compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
16202 2007-03-11 Bruno Haible <bruno@clisp.org>
16204 * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
16205 formula. Needed for SunPRO C 5.0.
16207 2007-03-11 Bruno Haible <bruno@clisp.org>
16209 * modules/long-options (Depends-on): Add getopt.
16211 2007-03-11 Bruno Haible <bruno@clisp.org>
16213 * modules/modechange (Depends-on): Add stdbool.
16215 2007-03-11 Bruno Haible <bruno@clisp.org>
16217 * modules/i-ring (Depends-on): Add stdbool.
16219 2007-03-11 Bruno Haible <bruno@clisp.org>
16221 * modules/gc-des (Depends-on): Add stdbool.
16223 2007-03-11 Bruno Haible <bruno@clisp.org>
16225 * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
16227 2007-03-11 Bruno Haible <bruno@clisp.org>
16229 * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
16231 2007-03-11 Bruno Haible <bruno@clisp.org>
16233 * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
16235 2007-03-11 Bruno Haible <bruno@clisp.org>
16237 * lib/vasnprintf.c (sprintf): Undefine.
16239 2007-03-11 Bruno Haible <bruno@clisp.org>
16241 * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
16242 initializers in SunPRO C and Compaq C compilers.
16244 2007-03-11 Bruno Haible <bruno@clisp.org>
16246 * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
16247 decrementing code ANSI C compliant.
16249 2007-03-11 Bruno Haible <bruno@clisp.org>
16251 * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
16252 Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
16254 2007-03-11 Bruno Haible <bruno@clisp.org>
16256 * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
16257 <stdbool.h> substitute doesn't pass.
16259 2007-03-11 Bruno Haible <bruno@clisp.org>
16261 * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
16263 2007-03-11 Bruno Haible <bruno@clisp.org>
16265 * gnulib-tool (func_create_megatestdir): Create also an autobuild
16266 script, for submission to autobuild.josefsson.org.
16268 2007-03-10 Bruno Haible <bruno@clisp.org>
16270 * modules/canonicalize-lgpl-tests: New file.
16271 * tests/test-canonicalize-lgpl.sh: New file.
16272 * tests/test-canonicalize-lgpl.c: New file.
16274 * modules/c-strcase-tests: New file.
16275 * tests/test-c-strcase.sh: New file.
16276 * tests/test-c-strcasecmp.c: New file.
16277 * tests/test-c-strncasecmp.c: New file.
16279 * modules/atexit-tests: New file.
16280 * tests/test-atexit.sh: New file.
16281 * tests/test-atexit.c: New file.
16283 2007-03-10 Bruno Haible <bruno@clisp.org>
16285 * tests/test-binary-io.sh: Use temporary filenames that are not so
16286 likely to clash with those of other tests (in a parallel make).
16287 * tests/test-binary-io.c: Likewise.
16289 2007-03-10 Bruno Haible <bruno@clisp.org>
16291 * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
16292 fallback; use #error instead.
16293 Suggested by Simon Josefsson.
16295 2007-03-10 Bruno Haible <bruno@clisp.org>
16297 * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
16298 CLEANFILES. Put spaces in each line of $cleaned_files, not only the
16299 first and the last.
16301 2007-03-10 Bruno Haible <bruno@clisp.org>
16303 * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
16305 2007-03-10 Bruno Haible <bruno@clisp.org>
16307 * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
16309 * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
16310 * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
16311 * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
16313 2007-03-10 Bruno Haible <bruno@clisp.org>
16315 * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
16317 * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
16320 2007-03-09 Eric Blake <ebb9@byu.net>
16321 and Matthew Woehlke <mw_triad@users.sourceforge.net> (tiny change)
16323 * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
16324 types are not being provided by gnulib.
16325 (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
16326 types are supported.
16328 2007-03-10 Bruno Haible <bruno@clisp.org>
16330 * lib/stdio_.h (__attribute__): New macro.
16331 (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
16332 vsprintf): Specify __attribute__ __format__ for GCC.
16333 Suggested by Eric Blake.
16335 2007-03-09 Bruno Haible <bruno@clisp.org>
16337 * modules/printf-posix-tests: New file.
16338 * tests/test-printf-posix.sh: New file.
16339 * tests/test-printf-posix.c: New file.
16341 * modules/printf-posix: New file.
16342 * lib/printf.c: New file.
16343 * m4/printf-posix-rpl.m4: New file.
16344 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
16346 * lib/stdio_.h (printf): New declaration.
16347 (format, __format__, ____printf____, ____scanf____, ____strftime____,
16348 ____strfmon____): New macros.
16349 * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
16352 2007-03-09 Bruno Haible <bruno@clisp.org>
16354 * tests/test-vasnprintf-posix2.sh: New file.
16355 * tests/test-vasnprintf-posix2.c: New file.
16356 * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
16357 (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
16358 (Makefile.am): Activate test-vasnprintf-posix2.sh.
16360 * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
16361 a locale dependent decimal point, rather than always '.'.
16363 2007-03-09 Eric Blake <ebb9@byu.net>
16365 * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
16366 spite of platforms like Tandem/NSK that define it to -1.
16368 2007-03-08 Bruno Haible <bruno@clisp.org>
16370 * modules/vprintf-posix-tests: New file.
16371 * tests/test-vprintf-posix.sh: New file.
16372 * tests/test-vprintf-posix.c: New file.
16373 * tests/test-printf-posix.h: New file.
16375 * modules/vprintf-posix: New file.
16376 * lib/vprintf.c: New file.
16377 * m4/vprintf-posix.m4: New file.
16378 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
16380 * lib/stdio_.h (vprintf): New declaration.
16381 * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
16384 2007-03-08 Bruno Haible <bruno@clisp.org>
16386 * modules/fprintf-posix-tests: New file.
16387 * tests/test-fprintf-posix.sh: New file.
16388 * tests/test-fprintf-posix.c: New file.
16390 * modules/fprintf-posix: New file.
16391 * lib/fprintf.c: New file.
16392 * m4/fprintf-posix.m4: New file.
16393 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
16395 * lib/stdio_.h (fprintf): New declaration.
16396 * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
16399 2007-03-08 Bruno Haible <bruno@clisp.org>
16401 * modules/vfprintf-posix-tests: New file.
16402 * tests/test-vfprintf-posix.sh: New file.
16403 * tests/test-vfprintf-posix.c: New file.
16404 * tests/test-fprintf-posix.h: New file.
16405 * tests/test-fprintf-posix.out: New file.
16407 * modules/vfprintf-posix: New file.
16408 * lib/vfprintf.c: New file.
16409 * m4/vfprintf-posix.m4: New file.
16410 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
16412 * lib/stdio_.h (vfprintf): New declaration.
16413 * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
16416 2007-03-08 Bruno Haible <bruno@clisp.org>
16418 * lib/stdio_.h: Treat __need___FILE like __need_FILE.
16420 2007-03-08 Bruno Haible <bruno@clisp.org>
16422 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
16423 instead of 'expr' invocations.
16424 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
16425 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
16426 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
16427 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
16428 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
16429 Suggested by Paul Eggert.
16431 2007-03-08 Bruno Haible <bruno@clisp.org>
16433 * modules/fseterr-tests: New file.
16434 * tests/test-fseterr.c: New file.
16436 * modules/fseterr: New file.
16437 * lib/fseterr.h: New file.
16438 * lib/fseterr.c: New file.
16440 2007-03-08 Bruno Haible <bruno@clisp.org>
16442 * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
16443 * lib/getopt_.h: Likewise.
16444 * lib/mbswidth.h: Likewise.
16445 * lib/setenv.h: Likewise.
16446 * lib/vasnprintf.h: Likewise.
16447 * lib/vasprintf.h: Likewise.
16448 * lib/verror.h: Likewise.
16449 * lib/xsetenv.h: Likewise.
16450 * lib/xvasprintf.h: Likewise.
16452 2007-03-08 Jim Meyering <jim@meyering.net>
16454 * users.txt: Add parted.
16456 * ChangeLog: Restore 1500 lines mistakenly removed from the end.
16458 2007-03-07 Bruno Haible <bruno@clisp.org>
16460 * m4/printf.m4: Make the shell script snippets copy&pastable.
16462 2007-03-02 Bruno Haible <bruno@clisp.org>
16464 * lib/netinet_in_.h: New file.
16465 * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
16466 is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
16467 * modules/netinet_in (Files): Add lib/netinet_in_.h.
16468 (Depends-on): Add absolute-header.
16469 (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
16472 2007-03-03 Bruno Haible <bruno@clisp.org>
16474 * lib/sys_select_.h: New file.
16475 * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
16476 is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
16477 * modules/sys_select (Files): Add lib/sys_select_.h.
16478 (Depends-on): Add absolute-header.
16479 (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
16482 2007-03-02 Bruno Haible <bruno@clisp.org>
16484 * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
16485 before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
16487 * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
16488 <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
16489 HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
16490 * modules/sys_socket (Depends-on): Add absolute-header.
16491 (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
16492 HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
16493 (Include): Remove requirement of inclusion of <sys/types.h>.
16495 2007-03-02 Bruno Haible <bruno@clisp.org>
16497 * lib/byteswap_.h (bswap_32): Fix formula.
16499 2007-03-06 Bruno Haible <bruno@clisp.org>
16501 * modules/sprintf-posix-tests: New file.
16502 * tests/test-sprintf-posix.c: New file.
16504 * modules/sprintf-posix: New file.
16505 * lib/sprintf.c: New file.
16506 * m4/sprintf-posix.m4: New file.
16507 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
16509 * lib/stdio_.h (sprintf): New declaration.
16510 * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
16513 2007-03-06 Bruno Haible <bruno@clisp.org>
16515 * modules/vsprintf-posix-tests: New file.
16516 * tests/test-vsprintf-posix.c: New file.
16517 * tests/test-sprintf-posix.h: New file.
16519 * modules/vsprintf-posix: New file.
16520 * lib/vsprintf.c: New file.
16521 * m4/vsprintf-posix.m4: New file.
16522 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
16524 * lib/stdio_.h (vsprintf): New declaration.
16525 * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
16528 2007-03-06 Bruno Haible <bruno@clisp.org>
16530 * modules/vsnprintf (Depend-on): Remove minmax.
16532 2007-03-06 Bruno Haible <bruno@clisp.org>
16534 * modules/snprintf-posix-tests: New file.
16535 * tests/test-snprintf-posix.c: New file.
16537 * modules/snprintf-posix: New file.
16538 * m4/snprintf-posix.m4: New file.
16539 * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
16541 (gl_FUNC_SNPRINTF): Invoke it.
16542 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
16543 * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
16545 * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
16547 2007-03-06 Bruno Haible <bruno@clisp.org>
16549 * modules/vsnprintf-posix-tests: New file.
16550 * tests/test-vsnprintf-posix.c: New file.
16551 * tests/test-snprintf-posix.h: New file.
16553 * modules/vsnprintf-posix: New file.
16554 * m4/vsnprintf-posix.m4: New file.
16555 * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
16557 (gl_FUNC_VSNPRINTF): Invoke it.
16558 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
16559 * lib/stdio_.h (vsnprintf): Define as a replacement if
16560 REPLACE_VSNPRINTF is set.
16561 * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
16563 2007-03-06 Bruno Haible <bruno@clisp.org>
16565 * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
16566 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
16568 2007-03-06 Bruno Haible <bruno@clisp.org>
16570 * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
16571 (asinl): Declare also if HAVE_DECL_ASINL is set.
16572 (atanl): Declare also if HAVE_DECL_ATANL is set.
16573 (ceill): Declare also if HAVE_DECL_CEILL is set.
16574 (cosl): Declare also if HAVE_DECL_COSL is set.
16575 (expl): Declare also if HAVE_DECL_EXPL is set.
16576 (floorl): Declare also if HAVE_DECL_FLOORL is set.
16577 (frexpl): Declare also if HAVE_DECL_FREXPL is set.
16578 (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
16579 (logl): Declare also if HAVE_DECL_LOGL is set.
16580 (sinl): Declare also if HAVE_DECL_SINL is set.
16581 (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
16582 (tanl): Declare also if HAVE_DECL_TANL is set.
16583 * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
16584 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
16585 * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
16586 declaration of frexpl, ldexpl.
16587 * modules/printf-frexpl (Depends-on): Add math.
16588 * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
16590 2007-03-05 Bruno Haible <bruno@clisp.org>
16592 * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
16593 frexpl and ldexpl are declared.
16594 * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
16596 2007-03-05 Bruno Haible <bruno@clisp.org>
16598 * gnulib-tool (func_get_automake_snippet): Don't synthesize an
16599 EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
16601 2007-03-05 Bruno Haible <bruno@clisp.org>
16603 * lib/stdio_.h: Include <stddef.h>.
16605 2007-03-05 Bruno Haible <bruno@clisp.org>
16607 * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
16609 2007-03-05 Bruno Haible <bruno@clisp.org>
16611 * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
16612 NetBSD 4, from Ralf Wildenhues.
16614 2007-03-04 Bruno Haible <bruno@clisp.org>
16616 * lib/vasprintf.h: Update #if logic for the case when the functions
16617 exist but are overridden.
16619 2007-03-04 Bruno Haible <bruno@clisp.org>
16621 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
16622 implementations: glibc-2.4 and MacOS X 10.3.
16623 * tests/test-vasnprintf-posix.c (test_function): Test also the case
16624 that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
16625 * tests/test-vasprintf-posix.c (test_function): Likewise.
16627 2007-03-04 Bruno Haible <bruno@clisp.org>
16629 * modules/vasprintf-posix-tests: New file.
16630 * tests/test-vasprintf-posix.c: New file.
16632 * modules/vasprintf-posix: New file.
16633 * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
16635 * m4/vasprintf-posix.m4: New file.
16636 * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
16638 (gl_FUNC_VASPRINTF): Invoke it.
16639 * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
16641 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
16643 2007-03-04 Bruno Haible <bruno@clisp.org>
16645 * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
16646 REPLACE_GETTIMEOFDAY.
16647 * modules/sys_time (Makefile.am): Likewise.
16648 * m4/sys_time_h.m4: Likewise.
16649 * m4/gettimeofday.m4: Likewise.
16651 2007-03-04 Bruno Haible <bruno@clisp.org>
16653 * modules/vasnprintf-posix-tests: New file.
16654 * tests/test-vasnprintf-posix.c: New file.
16656 * modules/vasnprintf-posix: New file.
16657 * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
16659 (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
16660 * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
16661 REPLACE_VASNPRINTF is defined.
16662 * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
16663 gl_FUNC_VASNPRINTF.
16664 (gl_FUNC_VASNPRINTF): Invoke it.
16665 * m4/vasnprintf-posix.m4: New file.
16666 * m4/printf.m4: New file.
16668 2007-03-04 Bruno Haible <bruno@clisp.org>
16670 Compile progreloc.c only if --enable-relocatable is specified.
16671 * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
16672 if --enable-relocatable was specified.
16673 * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
16676 2007-03-04 Jim Meyering <jim@meyering.net>
16678 * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
16679 Use it consistently, rather than enumerating errno constants.
16681 2007-03-04 Bruno Haible <bruno@clisp.org>
16683 * modules/xvasprintf-tests: New file.
16684 * tests/test-xvasprintf.c: New file.
16686 * modules/vasprintf-tests: New file.
16687 * tests/test-vasprintf.c: New file.
16689 * modules/vasnprintf-tests: New file.
16690 * tests/test-vasnprintf.c: New file.
16692 * modules/vsnprintf-tests: New file.
16693 * tests/test-vsnprintf.c: New file.
16695 * modules/snprintf-tests: New file.
16696 * tests/test-snprintf.c: New file.
16698 2007-03-04 Bruno Haible <bruno@clisp.org>
16700 Compile relocatable.c only if --enable-relocatable is specified.
16701 * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
16702 gl_RELOCATABLE_LIBRARY.
16703 (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
16704 * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
16705 (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
16706 gl_RELOCATABLE_LIBRARY.
16707 * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
16708 (Makefile.am): Remove lib_SOURCES.
16709 * modules/relocatable-lib-lgpl (configure.ac): Invoke
16710 gl_RELOCATABLE_LIBRARY.
16711 (Makefile.am): Remove lib_SOURCES.
16712 * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
16714 * modules/relocatable-prog-wrapper (configure.ac): Invoke
16715 gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
16717 2007-03-04 Bruno Haible <bruno@clisp.org>
16719 * modules/argmatch-tests: New file.
16720 * tests/test-argmatch.c: New file.
16722 * tests/test-allocsa.c (main): Halve the number of loop runs.
16724 * modules/alloca-opt-tests: New file.
16725 * tests/test-alloca-opt.c: New file.
16727 2007-03-04 Jim Meyering <jim@meyering.net>
16729 Work around difference between Linux ACLs and Solaris 10 ZFS.
16730 * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
16733 2007-03-03 Bruno Haible <bruno@clisp.org>
16735 * modules/relocatable-prog (Depends-on): Add back progreloc's
16736 dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
16738 2007-03-03 Bruno Haible <bruno@clisp.org>
16740 * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
16741 * modules/relocatable-lib: New file.
16743 2007-03-03 Bruno Haible <bruno@clisp.org>
16745 * modules/relocatable-prog: Renamed from modules/relocatable.
16746 * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
16748 2007-03-03 Bruno Haible <bruno@clisp.org>
16750 * modules/relocatable-script (Files): Add doc/relocatable.texi,
16751 m4/relocatable-lib.m4.
16752 (Depends-on): Remove 'relocatable'.
16753 (configure.ac): Add gl_RELOCATABLE_NOP.
16755 2007-03-03 Bruno Haible <bruno@clisp.org>
16757 * modules/relocatable-prog-wrapper: New file.
16758 * modules/relocatable (Depends-on): Add it. Remove all other
16759 dependencies except progname.
16760 (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
16762 * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
16763 (gl_FUNC_STRERROR): Nop.
16764 * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
16766 * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
16767 * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
16769 * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
16770 (gl_FUNC_READLINK): Update.
16772 * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
16774 2007-03-03 Bruno Haible <bruno@clisp.org>
16776 * lib/xreadlink.c: Include <unistd.h> unconditionally.
16777 * modules/xreadlink (Depends-on): Add unistd.
16778 * modules/xreadlink-with-size (Depends-on): Likewise.
16780 2007-03-03 Bruno Haible <bruno@clisp.org>
16782 * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
16783 extracted from gt_FUNC_SETENV.
16784 (gt_FUNC_SETENV): Remove macro.
16785 * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
16786 remove gt_FUNC_SETENV.
16788 2007-03-03 Bruno Haible <bruno@clisp.org>
16790 * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
16791 ENABLE_RELOCATABLE here.
16792 * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
16794 2007-03-03 Bruno Haible <bruno@clisp.org>
16796 * modules/rbtreehash-list-tests (Depends-on): Add progname.
16797 * tests/test-rbtreehash_list.c: Include progname.h.
16798 (main): Call set_program_name.
16800 * modules/rbtree-oset-tests (Depends-on): Add progname.
16801 * tests/test-rbtree_oset.c: Include progname.h.
16802 (main): Call set_program_name.
16804 * modules/rbtree-list-tests (Depends-on): Add progname.
16805 * tests/test-rbtree_list.c: Include progname.h.
16806 (main): Call set_program_name.
16808 * modules/linked-list-tests (Depends-on): Add progname.
16809 * tests/test-linked_list.c: Include progname.h.
16810 (main): Call set_program_name.
16812 2007-03-03 Bruno Haible <bruno@clisp.org>
16814 * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
16815 All uses of __restrict changed to _Restrict_.
16816 * lib/glob_.h (__restrict): Remove macro.
16818 2007-03-02 Bruno Haible <bruno@clisp.org>
16820 * modules/gettext (configure.ac): Require gettext infrastructure
16821 from version 0.16.1.
16823 2007-03-02 Bruno Haible <bruno@clisp.org>
16825 * modules/linkedhash-list-tests (Depends-on): Add progname.
16826 * tests/test-linkedhash_list.c: Include progname.h.
16827 (main): Call set_program_name.
16829 * modules/carray-list-tests (Depends-on): Add progname.
16830 * tests/test-carray_list.c: Include progname.h.
16831 (main): Call set_program_name.
16833 * modules/avltreehash-list-tests (Depends-on): Add progname.
16834 * tests/test-avltreehash_list.c: Include progname.h.
16835 (main): Call set_program_name.
16837 * modules/avltree-oset-tests (Depends-on): Add progname.
16838 * tests/test-avltree_oset.c: Include progname.h.
16839 (main): Call set_program_name.
16841 * modules/avltree-list-tests (Depends-on): Add progname.
16842 * tests/test-avltree_list.c: Include progname.h.
16843 (main): Call set_program_name.
16845 * modules/array-oset-tests (Depends-on): Add progname.
16846 * tests/test-array_oset.c: Include progname.h.
16847 (main): Call set_program_name.
16849 * modules/array-list-tests (Depends-on): Add progname.
16850 * tests/test-array_list.c: Include progname.h.
16851 (main): Call set_program_name.
16853 * modules/argp-tests (Depends-on): Add progname.
16854 * tests/test-argp.c: Include argp.h first. Include progname.h.
16855 (main): Call set_program_name.
16857 2007-03-02 Paul Eggert <eggert@cs.ucla.edu>
16859 * doc/gnulib-tool.texi (Initial import): Reword description of
16860 _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
16861 limited effect even if defined after the first system include.
16863 2007-03-01 Bruno Haible <bruno@clisp.org>
16865 * build-aux/config.libpath: Update to libtool-1.5.22.
16866 Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
16868 2007-03-01 Bruno Haible <bruno@clisp.org>
16870 * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
16872 Reported by Ralf Wildenhues.
16874 2007-03-01 Bruno Haible <bruno@clisp.org>
16876 * build-aux/install-reloc: Remove object files left over by some
16878 Reported by Ralf Wildenhues.
16880 2007-03-01 Bruno Haible <bruno@clisp.org>
16882 * build-aux/install-reloc: Break long lines.
16884 2007-03-01 Bruno Haible <bruno@clisp.org>
16886 * doc/relocatable.texi: Document that it may not work on OpenBSD.
16887 Reported by Ralf Wildenhues.
16889 2007-03-01 Bruno Haible <bruno@clisp.org>
16891 * doc/gnulib-tool.texi (Initial import): Remove paragraph about
16892 include ordering constraints.
16894 2007-03-01 Paul Eggert <eggert@cs.ucla.edu>
16896 Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
16897 <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
16898 * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
16899 as another example.
16900 * lib/time_.h: Fix misspelling.
16901 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
16902 Require gl_HEADER_TIME_H_DEFAULTS.
16903 * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
16904 * m4/time_r.m4 (gl_TIME_R): Likewise.
16905 * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
16907 2007-03-01 Bruno Haible <bruno@clisp.org>
16909 * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
16910 * m4/utimens.m4 (gl_UTIMENS): Likewise.
16912 2007-03-01 Jim Meyering <jim@meyering.net>
16914 * modules/xreadlink (Maintainer): Add my name.
16915 * modules/xreadlink-with-size (Depends-on): Alphabetize.
16917 2007-02-26 Ben Pfaff <blp@cs.stanford.edu>
16918 Bruno Haible <bruno@clisp.org>
16920 * build-aux/install-reloc: Compile also c-ctype.c.
16921 * build-aux/relocatable.sh.in: New file.
16922 * doc/relocatable.texi: New file.
16923 * doc/relocatable-maint.texi: New file.
16924 * doc/gnulib.texi: Include relocatable-maint.texi.
16925 * lib/progreloc.c: Include unistd.h unconditionally.
16926 * lib/relocwrapper.c: Include unistd.h unconditionally.
16928 (add_dotbin): Use c_tolower.
16929 * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
16930 (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
16931 (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
16932 * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
16933 to m4/relocatable-lib.m4.
16934 (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
16935 RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
16936 (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
16937 require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
16938 SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
16939 * modules/relocatable: New file.
16940 * modules/relocatable-lib: New file.
16941 * modules/relocatable-script: New file.
16943 2007-02-28 Bruno Haible <bruno@clisp.org>
16945 Import --enable-relocatable infrastructure.
16946 * build-aux/config.libpath: New file, from GNU gettext.
16947 * build-aux/install-reloc: New file, from GNU gettext.
16948 * build-aux/reloc-ldflags: New file, from GNU gettext.
16949 * lib/relocatable.h: New file, from GNU gettext.
16950 * lib/relocatable.c: New file, from GNU gettext.
16951 * lib/relocwrapper.c: New file, from GNU gettext.
16952 * m4/relocatable.m4: New file, from GNU gettext.
16954 2007-02-28 Bruno Haible <bruno@clisp.org>
16956 * MODULES.html.sh (File system functions): Add xreadlink-with-size.
16958 * modules/xreadlink: New file, from GNU gettext with modifications.
16959 * lib/xreadlink.c: New file, from GNU gettext.
16960 * lib/xreadlink.h: Add comments.
16961 (xreadlink): New declaration.
16963 * modules/xreadlink-with-size: Renamed from modules/xreadlink.
16964 (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
16965 lib/xreadlink-with-size.c.
16966 (configure.ac): Remove gl_XREADLINK invocation.
16967 (Makefile.am): Augment lib_SOURCES.
16968 * m4/xreadlink.m4: Remove file.
16969 * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
16970 (xreadlink_with_size): Renamed from xreadink.
16971 * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
16972 * modules/canonicalize (Depends-on): Replace xreadlink with
16973 xreadlink-with-size.
16974 * lib/canonicalize.c (canonicalize_filename_mode): Update.
16976 2007-02-25 Jim Meyering <jim@meyering.net>
16978 * build-aux/announce-gen: When complaining about excess arguments,
16981 2007-02-25 Paul Eggert <eggert@cs.ucla.edu>
16983 * README: Document signed integer overflow situation more
16986 2007-02-25 Bruno Haible <bruno@clisp.org>
16988 * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
16989 'a' or 'A' conversion.
16991 2007-02-25 Bruno Haible <bruno@clisp.org>
16993 * modules/filename: Renamed from modules/pathname.
16994 (Files): Replace lib/pathname.h with lib/filename.h. Replace
16995 lib/concatpath.c with lib/concat-filename.c.
16996 (Makefile.am): Update.
16997 (Include): Replace pathname.h with filename.h.
16998 * lib/filename.h: Renamed from lib/pathname.h.
16999 (concatenated_filename): Renamed from concatenated_pathname.
17000 * lib/concat-filename.c: Renamed from lib/concatpath.c.
17001 (concatenated_filename): Renamed from concatenated_pathname.
17002 * lib/findprog.c: Include filename.h instead of pathname.h.
17003 (find_in_path): Update.
17004 * lib/javacomp.c: Include filename.h instead of pathname.h.
17005 (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
17006 is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
17007 is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
17008 is_oldgcj_14_13_usable, is_javac_usable): Update.
17009 * lib/javaexec.c: Include filename.h instead of pathname.h.
17010 (execute_java_class): Update.
17011 * modules/findprog: Update.
17012 * modules/javacomp: Update.
17013 * modules/javaexec: Update.
17014 * MODULES.html.sh (File system functions): Add 'filename', remove
17017 2007-02-25 Bruno Haible <bruno@clisp.org>
17019 * modules/printf-frexpl-tests: New file.
17020 * tests/test-printf-frexpl.c: New file.
17022 * modules/printf-frexpl: New file.
17023 * lib/printf-frexpl.h: New file.
17024 * lib/printf-frexpl.c: New file.
17025 * m4/printf-frexpl.m4: New file.
17027 2007-02-25 Bruno Haible <bruno@clisp.org>
17029 * modules/printf-frexp-tests: New file.
17030 * tests/test-printf-frexp.c: New file.
17032 * modules/printf-frexp: New file.
17033 * lib/printf-frexp.h: New file.
17034 * lib/printf-frexp.c: New file.
17035 * m4/printf-frexp.m4: New file.
17037 2007-02-25 Bruno Haible <bruno@clisp.org>
17039 Assume automake >= 1.10 for the tests.
17040 * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
17041 * modules/arctwo-tests: Likewise.
17042 * modules/argp-tests: Likewise.
17043 * modules/avltree-list-tests: Likewise.
17044 * modules/avltree-oset-tests: Likewise.
17045 * modules/avltreehash-list-tests: Likewise.
17046 * modules/carray-list-tests: Likewise.
17047 * modules/crc-tests: Likewise.
17048 * modules/des-tests: Likewise.
17049 * modules/gc-arcfour-tests: Likewise.
17050 * modules/gc-arctwo-tests: Likewise.
17051 * modules/gc-des-tests: Likewise.
17052 * modules/gc-hmac-md5-tests: Likewise.
17053 * modules/gc-hmac-sha1-tests: Likewise.
17054 * modules/gc-md2-tests: Likewise.
17055 * modules/gc-md4-tests: Likewise.
17056 * modules/gc-md5-tests: Likewise.
17057 * modules/gc-pbkdf2-sha1-tests: Likewise.
17058 * modules/gc-rijndael-tests: Likewise.
17059 * modules/gc-sha1-tests: Likewise.
17060 * modules/gc-tests: Likewise.
17061 * modules/getaddrinfo-tests: Likewise.
17062 * modules/hmac-md5-tests: Likewise.
17063 * modules/hmac-sha1-tests: Likewise.
17064 * modules/linked-list-tests: Likewise.
17065 * modules/linkedhash-list-tests: Likewise.
17066 * modules/lock-tests: Likewise.
17067 * modules/md2-tests: Likewise.
17068 * modules/md4-tests: Likewise.
17069 * modules/md5-tests: Likewise.
17070 * modules/rbtree-list-tests: Likewise.
17071 * modules/rbtree-oset-tests: Likewise.
17072 * modules/rbtreehash-list-tests: Likewise.
17073 * modules/read-file-tests: Likewise.
17074 * modules/rijndael-tests: Likewise.
17075 * modules/stdint-tests: Likewise.
17076 * modules/tls-tests: Likewise.
17078 2007-02-24 Bruno Haible <bruno@clisp.org>
17080 * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
17081 * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
17082 function; instead check whether isnan with a double argument links.
17083 * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
17084 function; instead check whether isnan with a 'long double' argument
17086 Reported by Eric Blake <ebb9@byu.net>.
17088 2007-02-24 Bruno Haible <bruno@clisp.org>
17090 * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
17092 * lib/isnanl.c: Remove all code. Just include isnan.c.
17093 * modules/isnanl-nolibm (Files): Add lib/isnan.c.
17095 2007-02-25 Jim Meyering <jim@meyering.net>
17097 Avoid conflicting types for 'unsetenv' on FreeBSD.
17098 * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
17099 conflicting with FreeBSD's (5.0 and 6.1) function declaration
17102 2007-02-24 Bruno Haible <bruno@clisp.org>
17104 * modules/isnanl-nolibm-tests: New file.
17105 * tests/test-isnanl.c: New file.
17107 * modules/isnanl-nolibm: New file.
17108 * lib/isnanl.h: New file.
17109 * lib/isnanl.c: New file.
17110 * m4/isnanl.m4: New file.
17112 2007-02-24 Bruno Haible <bruno@clisp.org>
17114 * modules/isnan-nolibm-tests: New file.
17115 * tests/test-isnan.c: New file.
17117 * modules/isnan-nolibm: New file.
17118 * lib/isnan.h: New file.
17119 * lib/isnan.c: New file.
17120 * m4/isnan.m4: New file.
17122 2007-02-24 Bruno Haible <bruno@clisp.org>
17124 * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
17125 assume that an exponent fits in 20 bits.
17127 2007-02-24 Jim Meyering <jim@meyering.net>
17129 * m4/regex.m4: Update the description of the configure-time option,
17130 --without-included-regex, to state accurately what the defaults are,
17131 and perhaps to give people an idea why using this option is risky.
17133 2007-02-24 Paul Eggert <eggert@cs.ucla.edu>
17135 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
17136 loops on small arguments. This attempts to avoid the problem
17137 Bruno Haible reported for AIX 4.3.2 in
17138 <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
17140 2007-02-23 Bruno Haible <bruno@clisp.org>
17142 * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
17143 Needed for help2man.
17145 2007-02-23 Karl Berry <karl@gnu.org>
17147 * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
17148 exists, foo.h should be cvs-ignored, not committed.
17150 2007-02-23 Eric Blake <ebb9@byu.net>
17152 * lib/getdate.h (includes): Include <time.h>, not "timespec.h".
17153 * lib/stat-time.h (includes): Likewise.
17154 * lib/utimecmp.c (includes): Likewise.
17155 * lib/utimens.h (includes): Likewise.
17156 * lib/getdate.y (includes): Also include "timespec.h" for use
17157 internal to the module.
17158 * modules/utimens (Depends-on): Revert yesterday's patch.
17159 * modules/nanosleep (Depends-on): Add missing dependency.
17161 2007-02-22 Bruno Haible <bruno@clisp.org>
17163 * lib/glob.c: Don't include getlogin_r.h.
17165 2007-02-22 Jim Meyering <jim@meyering.net>
17167 * modules/utimens (Depends-on): Add timespec, required for
17168 utimens.h's inclusion of timespec.h.
17170 2007-02-21 Paul Eggert <eggert@cs.ucla.edu>
17172 * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
17173 long unreadable paths in GNU/Linux. Problem reported by Andreas
17175 <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
17176 I'll try to think of a better way to fix the Solaris problem.
17178 * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
17179 like glibc; on Solaris 10, it fails with errno == EINVAL.
17180 POSIX says the behavior is unspecified if the first argument is NULL,
17181 so play it safe and never pass NULL to the system getcwd.
17183 2007-02-21 Jim Meyering <jim@meyering.net>
17185 * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
17186 of gettimeofday. It would conflict with the one now always
17187 provided via sys_time_.h. Reported by Matthew Woehlke, as
17188 an IRIX 6.5 build failure.
17190 2007-02-20 Paul Eggert <eggert@cs.ucla.edu>
17192 Minor fixups to port to Solaris 10 with Sun C 5.8.
17193 * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
17194 * modules/getcwd (Depends-on): Add dirfd.
17195 * lib/putenv.c (putenv): #undef it.
17196 (rpl_putenv): New decl.
17197 (malloc, free): Include <stdlib.h> rather than prototyping separately.
17199 2007-02-20 Bruno Haible <bruno@clisp.org>
17201 * modules/stdio-tests: New file.
17202 * tests/test-stdio.c: New file.
17204 * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
17205 (Depends-on): Add stdio.
17206 (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
17207 (Include): Use <stdio.h> instead of vsnprintf.h.
17208 * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
17209 HAVE_DECL_VSNPRINTF.
17210 * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
17212 * modules/snprintf (Files): Remove lib/snprintf.h.
17213 (Depends-on): Add stdio.
17214 (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
17215 (Include): Use <stdio.h> instead of snprintf.h.
17216 * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
17217 HAVE_DECL_SNPRINTF.
17218 * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
17219 * lib/getaddrinfo.c: Likewise.
17221 * modules/stdio: New file.
17222 * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
17223 * lib/snprintf.h: Remove file.
17224 * lib/vsnprintf.h: Remove file.
17225 * lib/.cppi-disable: Remove snprintf.h.
17226 * m4/stdio_h.m4: New file.
17227 * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
17229 2007-02-20 Jim Meyering <jim@meyering.net>
17231 * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
17232 used by e.g., mingw. From Bruno Haible.
17234 2007-02-19 Bruno Haible <bruno@clisp.org>
17236 * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
17238 Reported by Ben Pfaff <blp@cs.stanford.edu>.
17240 2007-02-19 Bruno Haible <bruno@clisp.org>
17242 * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
17245 2007-02-19 Bruno Haible <bruno@clisp.org>
17247 * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
17249 Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
17251 2007-02-19 Jim Meyering <jim@meyering.net>
17253 Don't use FD after a successful "fdopendir (fd)".
17254 * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
17255 Reset it by calling dirfd on the just-obtained DIR*.
17257 * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
17258 Prompted by a report from Bruno Haible that mingw lacks ftruncate.
17260 2007-02-18 Bruno Haible <bruno@clisp.org>
17262 * lib/readlink.c: Include <unistd.h>.
17263 * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
17265 * modules/readlink (Depends-on): Add unistd.
17266 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
17267 (Include): Add <unistd.h>.
17269 * lib/getlogin_r.h: Remove file.
17270 * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
17271 * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
17272 (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
17273 HAVE_DECL_GETLOGIN_R.
17274 * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
17275 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
17276 (Include): Use <unistd.h> instead of getlogin_r.h.
17278 * lib/getcwd.h: Remove file.
17279 * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
17280 * lib/xgetcwd.c: Likewise.
17281 * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
17282 REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
17283 * modules/getcwd (Files): Remove lib/getcwd.h.
17284 (Depends-on): Add unistd.
17285 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
17286 (Include): Use <unistd.h> instad of getcwd.h.
17288 * lib/ftruncate.c: Include <unistd.h> first.
17289 * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
17290 Set HAVE_FTRUNCATE.
17291 * modules/ftruncate (Depends-on): Add unistd.
17292 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
17294 * lib/fchdir.c: Include <unistd.h> first.
17295 * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
17296 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
17297 of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
17298 * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
17299 (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
17301 * lib/dup2.c: Include <unistd.h> first.
17302 * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
17304 * modules/dup2 (Depends-on): Add unistd.
17305 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
17307 * lib/chown.c: Include <unistd.h> first. Undefine chown later.
17308 * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
17309 REPLACE_CHOWN. Don't define chown as a macro here.
17310 * modules/chown (Depends-on): Add unistd.
17311 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
17313 * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
17314 Add definition for GL_LINK_WARNING.
17315 (chown, dup2): New declarations.
17316 (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
17318 (ftruncate): New declaration.
17319 (getcwd): New declaration, taken from old getcwd.h.
17320 (getlogin_r): New declaration, taken from old getlogin_r.h.
17321 (readlink): New declaration.
17322 * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
17323 set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
17324 (gl_PREREQ_UNISTD): Remove macro.
17325 (gl_UNISTD_MODULE_INDICATOR): New macro.
17326 (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
17327 many new variables. Don't set UNISTD_H.
17328 * modules/unistd (Description): Change.
17329 (Depends-on): Add link-warning.
17330 (configure.ac): Update.
17331 (Makefile.am): Create unistd.h always. Substitute many new variables
17334 2007-02-18 Bruno Haible <bruno@clisp.org>
17336 * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
17337 * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
17339 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
17340 GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
17341 * lib/getsubopt.h: Remove file.
17342 * modules/getsubopt (Files): Remove lib/getsubopt.h.
17343 (Depends-on): Add stdlib.
17344 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
17345 (Includes): Use <stdlib.h> instead of getsubopt.h.
17346 * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
17347 Set HAVE_GETSUBOPT.
17348 * lib/getsubopt.c: Don't include getsubopt.h.
17350 2007-02-18 Bruno Haible <bruno@clisp.org>
17352 * modules/fchdir (Depends-on): Add dup2.
17354 2007-02-18 Bruno Haible <bruno@clisp.org>
17356 * lib/stdlib_.h: Handle glibc's special invocation convention
17359 2007-02-18 Bruno Haible <bruno@clisp.org>
17361 * modules/stdlib-tests: New file.
17362 * tests/test-stdlib.c: New file.
17364 * modules/mkstemp (Files): Remove lib/mkstemp.h.
17365 (Depends-on): Add stdlib.
17366 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
17367 (Includes): Use <stdlib.h> instead of mkstemp.h.
17368 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
17369 REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
17370 * lib/mkstemp.c: Don't include mkstemp.h.
17371 * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
17372 * lib/stdlib--.h: Don't include mkstemp.h.
17374 * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
17375 (Depends-on): Add stdlib.
17376 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
17377 (Includes): Use <stdlib.h> instead of mkdtemp.h.
17378 * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
17380 * lib/mkdtemp.c: Don't include mkdtemp.h.
17381 * lib/clean-temp.c: Don't include mkdtemp.h.
17383 * modules/exit (Files): Remove lib/exit.h.
17384 (Depends-on): Add stdlib.
17385 (Makefile.am): Remove lib_SOURCES.
17386 (Include): Use <stdlib.h> instead of exit.h.
17387 * lib/argmatch.c: Don't include exit.h.
17388 * lib/execute.c: Likewise.
17389 * lib/pagealign_alloc.c: Likewise.
17390 * lib/pipe.c: Likewise.
17391 * lib/wait-process.c: Likewise.
17392 * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
17393 * lib/exitfail.c: Likewise.
17394 * lib/savewd.c: Likewise.
17395 * lib/xsetenv.c: Likewise.
17397 * modules/stdlib: New file.
17398 * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
17399 and extra comments about mkstemp().
17400 * lib/exit.h: Remove file.
17401 * lib/mkdtemp.h: Remove file.
17402 * lib/mkstemp.h: Remove file.
17403 * m4/stdlib_h.m4: New file.
17404 * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
17406 2007-02-18 Bruno Haible <bruno@clisp.org>
17408 * modules/math-tests: New file.
17409 * tests/test-math.c: New file.
17411 * modules/math: New file.
17412 * modules/mathl (Files): Remove lib/mathl.h.
17413 (Depends-on): Add math.
17414 (Makefile.am): Don't mention mathl.h.
17415 (Include): Use <math.h> instead of mathl.h.
17416 * lib/math_.h: New file.
17417 * lib/mathl.h: Remove file.
17418 * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
17420 * lib/asinl.c: Likewise.
17421 * lib/atanl.c: Likewise.
17422 * lib/ceill.c: Likewise.
17423 * lib/cosl.c: Likewise.
17424 * lib/expl.c: Likewise.
17425 * lib/floorl.c: Likewise.
17426 * lib/frexpl.c: Likewise.
17427 * lib/ldexpl.c: Likewise.
17428 * lib/logl.c: Likewise.
17429 * lib/sincosl.c: Likewise.
17430 * lib/sinl.c: Likewise.
17431 * lib/sqrtl.c: Likewise.
17432 * lib/tanl.c: Likewise.
17433 * lib/trigl.c: Likewise.
17434 * m4/math_h.m4: New file.
17435 * MODULES.html.sh (Mathematics): Add math.
17437 2007-02-17 Bruno Haible <bruno@clisp.org>
17439 * modules/wctype-tests: New file.
17440 * tests/test-wctype.c: New file.
17442 * modules/wchar-tests: New file.
17443 * tests/test-wchar.c: New file.
17445 * modules/unistd-tests: New file.
17446 * tests/test-unistd.c: New file.
17448 * modules/time-tests: New file.
17449 * tests/test-time.c: New file.
17451 * modules/sysexits-tests: New file.
17452 * tests/test-sysexits.c: New file.
17454 * modules/sys_time-tests: New file.
17455 * tests/test-sys_time.c: New file.
17457 * modules/sys_stat-tests: New file.
17458 * tests/test-sys_stat.c: New file.
17460 * modules/sys_socket-tests: New file.
17461 * tests/test-sys_socket.c: New file.
17463 * modules/sys_select-tests: New file.
17464 * tests/test-sys_select.c: New file.
17466 * modules/string-tests: New file.
17467 * tests/test-string.c: New file.
17469 * modules/stdbool-tests: New file.
17470 * tests/test-stdbool.c: New file.
17472 * modules/netinet_in-tests: New file.
17473 * tests/test-netinet_in.c: New file.
17475 * modules/inttypes-tests: New file.
17476 * tests/test-inttypes.c: New file.
17478 * modules/fcntl-tests: New file.
17479 * tests/test-fcntl.c: New file.
17481 * modules/byteswap-tests: New file.
17482 * tests/test-byteswap.c: New file.
17484 * modules/arpa_inet-tests: New file.
17485 * tests/test-arpa_inet.c: New file.
17487 2007-02-17 Bruno Haible <bruno@clisp.org>
17489 * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
17490 (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
17491 if the corresponding module is not enabled. Emit link warnings if
17492 the function is used nevertheless.
17493 * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
17494 Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
17495 HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
17496 (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
17497 * modules/inttypes (Depends-on): Add link-warning.
17498 (Makefile.am): Copy the contents of build-aux/link-warning.h into
17499 inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
17500 GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
17501 * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
17502 * modules/imaxdiv (configure.ac): Likewise.
17503 * modules/strtoimax (configure.ac): Likewise.
17504 * modules/strtoumax (configure.ac): Likewise.
17506 2007-02-17 Bruno Haible <bruno@clisp.org>
17508 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
17509 gl_STRING_MODULE_INDICATOR_DEFAULTS.
17510 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
17511 (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
17513 2007-02-17 Bruno Haible <bruno@clisp.org>
17515 * modules/link-warning: New file.
17516 * build-aux/link-warning.h: New file, extracted from lib/string_.h.
17517 * lib/string_.h (GL_LINK_WARNING): Remove definition.
17518 * modules/string (Depends-on): Add link-warning.
17519 (Makefile.am): Copy the contents of build-aux/link-warning.h into
17521 * MODULES.html.sh (Support for building libraries and executables): Add
17524 2007-02-17 Bruno Haible <bruno@clisp.org>
17526 * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
17527 strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
17528 strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
17531 2007-02-17 Ben Pfaff <blp@cs.stanford.edu>
17532 Bruno Haible <bruno@clisp.org>
17534 * modules/tmpfile: New file.
17535 * lib/tmpfile.c: New file.
17536 * m4/tmpfile.m4: New file.
17537 * MODULES.html.sh (func_all_modules): New section "Input/output".
17539 2007-02-15 Bruno Haible <bruno@clisp.org>
17541 * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
17542 (supports_delete_on_close): New function.
17543 (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
17545 2007-02-14 Bruno Haible <bruno@clisp.org>
17547 * modules/mbspcasecmp-tests: New file.
17548 * tests/test-mbspcasecmp.sh: New file.
17549 * tests/test-mbspcasecmp.c: New file.
17551 New module mbspcasecmp.
17552 * modules/mbspcasecmp: New file.
17553 * lib/mbspcasecmp.c: New file.
17554 * lib/string_.h (strncasecmp): Change warning message.
17555 (mbspcasecmp): New declaration.
17556 * m4/mbspcasecmp.m4: New file.
17557 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
17558 GNULIB_MBSPCASECMP.
17559 * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
17560 * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
17562 2007-02-14 Bruno Haible <bruno@clisp.org>
17564 * modules/mbsncasecmp-tests: New file.
17565 * tests/test-mbsncasecmp.sh: New file.
17566 * tests/test-mbsncasecmp.c: New file.
17568 New module mbsncasecmp.
17569 * modules/mbsncasecmp: New file.
17570 * lib/mbsncasecmp.c: New file.
17571 * lib/string_.h (mbsncasecmp): New declaration.
17572 * m4/mbsncasecmp.m4: New file.
17573 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
17574 GNULIB_MBSNCASECMP.
17575 * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
17576 * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
17578 2007-02-14 Paul Eggert <eggert@cs.ucla.edu>
17580 * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
17581 Verify that it doesn't overlap with our flags.
17582 (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
17583 do not have the desired effect in multibyte locales; instead, use
17585 * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
17586 Add dependency on xalloc. Depend on fnmatch, not fnmatch-gnu, since
17587 we don't require GNU fnmatch ourselves (if our users require it, they
17588 should do so explicitly).
17590 Fix regex code so it doesn't rely on strcasecmp.
17591 * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
17592 Otherwise, include gnulib's langinfo.h.
17593 * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
17594 undesirable behavior in non-C locales. Instead, rely on localecharset.
17595 * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
17596 * modules/regex (FILES): Remove m4/codeset.m4.
17597 (Depends-on): Add localcharset. Remove strcase.
17599 2007-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17601 * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
17602 * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
17604 2007-02-13 Bruno Haible <bruno@clisp.org>
17606 * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
17607 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
17609 2007-02-12 Bruno Haible <bruno@clisp.org>
17611 * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
17612 strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
17613 GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
17614 time warning rather than a link error.
17616 2007-02-12 Bruno Haible <bruno@clisp.org>
17618 * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
17619 * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
17620 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
17622 2007-02-12 Paul Eggert <eggert@cs.ucla.edu>
17624 * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
17627 2007-02-12 Paul Eggert <eggert@cs.ucla.edu>
17629 New module 'time', so that apps can include <time.h> as per
17630 POSIX and GNU instead of separate include files like time_r.h
17631 and timegm.h. This implementation tries out a simpler approach
17632 for replacing decls in standard include files (as compared to
17633 the string module), somewhat as an experiment.
17635 * config/srclist.txt: Comment out mktime.c for now.
17636 * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
17637 since it doesn't apply any more. Use generic wording instead.
17638 * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
17640 * lib/time_.h, m4/time_h.m4, modules/time: New files.
17641 * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
17642 * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
17643 Don't include <sys/types.h>; no longer needed since we assume C89.
17644 * lib/mktime.c: Don't include "time_r.h"; no longer needed.
17645 * lib/strftime.c: Likewise.
17646 * lib/time_r.c: Likewise.
17647 * lib/nanosleep.c (nanosleep): #undef after include files, not before.
17648 * lib/nanosleep.c: Include <time.h> first, to check interface.
17649 * lib/strptime.c: Likewise.
17650 * lib/time_r.c: Likewise.
17651 * lib/timegm.c: Likewise.
17652 * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
17654 * lib/timegm.c: Don't include timegm.h; no longer needed.
17655 * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
17656 time.h now handles any problems in that area.
17657 (struct timespec, nanosleep): Remove; time.h now arranges for these.
17658 * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
17659 that time.h defines struct timespec.
17660 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
17661 Set REPLACE_NANOSLEEP. Don't AC_DEFINE nanosleep; the time module now
17663 * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
17664 * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
17665 needed. Set REPLACE_LOCALTIME.
17666 * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
17667 * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
17668 (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
17669 nanosleep; time_h.m4 now does that. Don't require
17670 gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
17671 module handles this now.
17672 * modules/getdate (Depends-on): Remove timespec. Add time.
17673 * modules/nanosleep (Depends-on): Likewise.
17674 * modules/stat-time (Depends-on): Likewise.
17675 * modules/nanosleep (Include): Include time.h, not timespec.h.
17676 * modules/strptime (Files): Remove lib/strptime.h.
17677 (Depends-on): Add extensions, time.
17678 (Include): Include time.h, not strptime.h.
17679 * modules/time_r (Files): Remove lib/time_r.h.
17680 (Depends-on): Add time.
17681 (Include): Include time.h, not time_r.h.
17682 * modules/timegm: Likewise.
17683 * modules/timespec (Description): Now does timespec-related decls
17684 of our own, instead of struct timespec itself.
17685 (Depends-on): Add time; remove extensions.
17686 (Maintainer): Add self.
17687 * modules/utimecmp (Depends-on): Add time; remove timespec.
17688 * modules/utimens (Depends-on): Likewise.
17689 * modules/xnanosleep (Depends-on): Likewise.
17691 2007-02-11 Bruno Haible <bruno@clisp.org>
17693 * lib/c-strstr.c: Include allocsa.h.
17694 (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
17695 * lib/c-strcasestr.c: Include allocsa.h.
17696 (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
17697 * lib/strcasestr.c: Include allocsa.h.
17698 (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
17699 * lib/mbsstr.c: Include allocsa.h.
17700 (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
17701 allocsa/freesa instead of malloc/free.
17702 * lib/mbscasestr.c: Include allocsa.h.
17703 (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
17704 allocsa/freesa instead of malloc/free.
17705 * modules/c-strstr (Depends-on): Add allocsa.
17706 * modules/c-strcasestr (Depends-on): Likewise.
17707 * modules/strcasestr (Depends-on): Likewise.
17708 * modules/mbsstr (Depends-on): Likewise.
17709 * modules/mbscasestr (Depends-on): Likewise.
17711 2007-02-11 Bruno Haible <bruno@clisp.org>
17713 * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
17715 * modules/mbsspn-tests: New file.
17716 * tests/test-mbsspn.sh: New file.
17717 * tests/test-mbsspn.c: New file.
17719 2007-02-11 Bruno Haible <bruno@clisp.org>
17721 * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
17723 * modules/mbspbrk-tests: New file.
17724 * tests/test-mbspbrk.sh: New file.
17725 * tests/test-mbspbrk.c: New file.
17727 2007-02-11 Bruno Haible <bruno@clisp.org>
17729 * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
17732 * modules/mbscspn-tests: New file.
17733 * tests/test-mbscspn.sh: New file.
17734 * tests/test-mbscspn.c: New file.
17736 2007-02-11 Bruno Haible <bruno@clisp.org>
17738 * modules/mbscasecmp-tests: New file.
17739 * tests/test-mbscasecmp.sh: New file.
17740 * tests/test-mbscasecmp.c: New file.
17742 2007-02-11 Bruno Haible <bruno@clisp.org>
17744 Ensure O(n) worst-case complexity of mbscasestr.
17745 * lib/mbscasestr.c: Include stdbool.h.
17746 (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
17748 (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
17749 the bookkeeping indicates that it's worth it.
17750 * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
17752 * modules/mbscasestr-tests: New file.
17753 * tests/test-mbscasestr1.c: New file.
17754 * tests/test-mbscasestr2.sh: New file.
17755 * tests/test-mbscasestr2.c: New file.
17756 * tests/test-mbscasestr3.sh: New file.
17757 * tests/test-mbscasestr3.c: New file.
17758 * tests/test-mbscasestr4.sh: New file.
17759 * tests/test-mbscasestr4.c: New file.
17760 * m4/locale-tr.m4: New file.
17762 2007-02-11 Bruno Haible <bruno@clisp.org>
17764 Ensure O(n) worst-case complexity of mbsstr.
17765 * lib/mbsstr.c: Include stdbool.h.
17766 (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
17768 (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
17769 bookkeeping indicates that it's worth it.
17770 * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
17772 * modules/mbsstr-tests: New file.
17773 * tests/test-mbsstr1.c: New file.
17774 * tests/test-mbsstr2.sh: New file.
17775 * tests/test-mbsstr2.c: New file.
17776 * tests/test-mbsstr3.sh: New file.
17777 * tests/test-mbsstr3.c: New file.
17778 * m4/locale-fr.m4: New file.
17780 2007-02-11 Bruno Haible <bruno@clisp.org>
17782 * lib/mbsrchr.c (mbsrchr): Fix bug.
17784 * modules/mbsrchr-tests: New file.
17785 * tests/test-mbsrchr.sh: New file.
17786 * tests/test-mbsrchr.c: New file.
17788 2007-02-11 Bruno Haible <bruno@clisp.org>
17790 * lib/mbschr.c (mbschr): Fix bug.
17792 * modules/mbschr-tests: New file.
17793 * tests/test-mbschr.sh: New file.
17794 * tests/test-mbschr.c: New file.
17795 * m4/locale-zh.m4: New file.
17797 2007-02-11 Bruno Haible <bruno@clisp.org>
17799 Support for copying multibyte string iterators.
17800 * lib/mbiter.h: Include <string.h>.
17801 (mbiter_multi_copy): New function.
17802 (mbi_copy): New macro.
17803 * lib/mbuiter.h: Include <string.h>.
17804 (mbuiter_multi_copy): New function.
17805 (mbui_copy): New macro.
17807 2007-02-11 Bruno Haible <bruno@clisp.org>
17810 * modules/mbslen: New file.
17811 * lib/mbslen.c: New file.
17812 * lib/string_.h (mbslen): New declaration.
17813 * m4/mbslen.m4: New file.
17814 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
17816 * modules/string (string.h): Also substitute GNULIB_MBSLEN.
17817 * MODULES.html.sh (Internationalization functions): Add mbslen.
17819 2007-02-11 Bruno Haible <bruno@clisp.org>
17821 Ensure O(n) worst-case complexity of strcasestr substitute.
17822 * lib/strcasestr.c: Include stdbool.h.
17823 (knuth_morris_pratt): New function.
17824 (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
17825 bookkeeping indicates that it's worth it.
17826 * modules/strcasestr (Depends-on): Add stdbool, strnlen.
17828 * modules/strcasestr-tests: New file.
17829 * tests/test-strcasestr.c: New file.
17831 2007-02-11 Bruno Haible <bruno@clisp.org>
17833 Ensure O(n) worst-case complexity of c_strcasestr.
17834 * lib/c-strcasestr.c: Include stdbool.h, string.h.
17835 (knuth_morris_pratt): New function.
17836 (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
17837 the bookkeeping indicates that it's worth it.
17838 * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
17840 * modules/c-strcasestr-tests: New file.
17841 * tests/test-c-strcasestr.c: New file.
17843 2007-02-11 Bruno Haible <bruno@clisp.org>
17845 Ensure O(n) worst-case complexity of c_strstr.
17846 * lib/c-strstr.c: Include stdbool.h, string.h.
17847 (knuth_morris_pratt): New function.
17848 (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
17849 bookkeeping indicates that it's worth it.
17850 * modules/c-strstr (Depends-on): Add stdbool, strnlen.
17852 * lib/c-strstr.c: Complete rewrite for maintainability.
17854 * modules/c-strstr-tests: New file.
17855 * tests/test-c-strstr.c: New file.
17857 2007-02-11 Bruno Haible <bruno@clisp.org>
17859 * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
17860 5.2.1 and earlier, whereby \055 was treated just like the range
17862 Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
17864 2007-02-08 Bruno Haible <bruno@clisp.org>
17866 * modules/regex (Depends-on): Add stdbool.
17867 Reported by Dalibor Topic <robilad@kaffe.org>.
17869 2007-02-05 Paul Eggert <eggert@cs.ucla.edu>
17871 * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
17872 Prefer returning from main to exiting from it.
17873 Remove unnecessary parens after sizeof.
17875 2007-02-05 Bruno Haible <bruno@clisp.org>
17878 * modules/mbssep: New file.
17879 * lib/mbssep.c: New file.
17880 * lib/string_.h (strsep): Add a conditional link warning.
17881 (mbssep): New declaration.
17882 * m4/mbssep.m4: New file.
17883 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
17885 * modules/string (string.h): Also substitute GNULIB_MBSSEP.
17886 * MODULES.html.sh (Internationalization functions): Add mbssep.
17888 2007-02-05 Bruno Haible <bruno@clisp.org>
17890 * lib/strsep.c (strsep): Fix actions in case of no delimiters.
17891 Optimize search in case of 1 delimiter.
17893 2007-02-05 Paolo Bonzini <bonzini@gnu.org>
17895 * lib/acl.h: Include sys/types.h before sys/acl.h.
17897 2007-02-05 Paolo Bonzini <bonzini@gnu.org>
17899 Merge upstream fix for glibc bugzilla #3957:
17901 2007-02-05 Jakub Jelinek <jakub@redhat.com>
17903 * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
17904 bit for RE_HAT_LISTS_NOT_NEWLINE.
17905 (build_charclass_op): Remove bogus comment.
17907 2007-02-05 Simon Josefsson <simon@josefsson.org>
17909 * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
17911 2007-02-04 Paul Eggert <eggert@cs.ucla.edu>
17913 * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
17914 * lib/memmem.c [!defined _LIBC]: Include config.h.
17916 2007-02-04 Bruno Haible <bruno@clisp.org>
17918 * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
17921 2007-02-04 Bruno Haible <bruno@clisp.org>
17923 New module mbstok_r.
17924 * modules/mbstok_r: New file.
17925 * lib/mbstok_r.c: New file.
17926 * lib/string_.h (strtok_r): Change argument names to match the
17927 comments. Add a conditional link warning.
17928 (mbstok_r): New declaration.
17929 * m4/mbstok_r.m4: New file.
17930 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
17932 * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
17933 * MODULES.html.sh (Internationalization functions): Add mbstok_r.
17935 2007-02-04 Bruno Haible <bruno@clisp.org>
17938 * modules/mbsspn: New file.
17939 * lib/mbsspn.c: New file.
17940 * lib/string_.h (strspn): Add a conditional link warning.
17941 (mbsspn): New declaration.
17942 * m4/mbsspn.m4: New file.
17943 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
17945 * modules/string (string.h): Also substitute GNULIB_MBSSPN.
17946 * MODULES.html.sh (Internationalization functions): Add mbsspn.
17948 2007-02-04 Bruno Haible <bruno@clisp.org>
17950 New module mbspbrk.
17951 * modules/mbspbrk: New file.
17952 * lib/mbspbrk.c: New file.
17953 * lib/string_.h (strpbrk): Add a conditional link warning.
17954 (mbspbrk): New declaration.
17955 * m4/mbspbrk.m4: New file.
17956 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
17958 * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
17959 * MODULES.html.sh (Internationalization functions): Add mbspbrk.
17961 2007-02-04 Bruno Haible <bruno@clisp.org>
17963 New module mbscspn.
17964 * modules/mbscspn: New file.
17965 * lib/mbscspn.c: New file.
17966 * lib/string_.h (strcspn): Add a conditional link warning.
17967 (mbscspn): New declaration.
17968 * m4/mbscspn.m4: New file.
17969 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
17971 * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
17972 * MODULES.html.sh (Internationalization functions): Add mbscspn.
17974 2007-02-04 Bruno Haible <bruno@clisp.org>
17976 New module mbscasestr, reduced goal of strcasestr.
17977 * modules/mbscasestr: New file.
17978 * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
17979 (mbscasestr): Renamed from strcasestr.
17980 * lib/strcasestr.c: Don't include mbuiter.h.
17981 (strcasestr): Remove support for multibyte locales.
17982 * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
17983 Change the conditional link warning.
17984 (mbscasestr): New declaration.
17985 * m4/mbscasestr.m4: New file.
17986 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
17987 the system does not have strcasestr. Set HAVE_STRCASESTR instead of
17988 REPLACE_STRCASESTR.
17989 (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
17990 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
17991 HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
17992 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
17993 * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
17994 Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
17995 * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
17996 (Depends-on): Remove mbuiter.
17997 * MODULES.html.sh (Internationalization functions): Add mbscasestr.
17999 2007-02-04 Bruno Haible <bruno@clisp.org>
18001 Simplify handling of strncasecmp.
18002 * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
18003 the conditional link warning.
18004 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
18005 HAVE_STRCASECMP, not REPLACE_STRCASECMP.
18006 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
18007 * modules/strcase (configure.ac): Don't invoke
18008 gl_STRING_MODULE_INDICATOR.
18009 * modules/string (string.h): Don't substitute GNULIB_STRCASE.
18011 2007-02-04 Bruno Haible <bruno@clisp.org>
18013 New module mbscasecmp, reduced goal of strcasecmp.
18014 * modules/mbscasecmp: New file.
18015 * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
18016 (mbscasecmp): Renamed from strcasecmp.
18017 * lib/strcasecmp.c: Don't include mbuiter.h.
18018 (strcasecmp): Remove support for multibyte locales.
18019 * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
18020 Change the conditional link warning.
18021 (mbscasecmp): New declaration.
18022 * m4/mbscasecmp.m4: New file.
18023 * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
18024 the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
18025 REPLACE_STRCASECMP.
18026 (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
18027 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
18029 * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
18030 Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
18031 * modules/strcase (Files): Remove m4/mbrtowc.m4.
18032 (Depends-on): Remove mbuiter.
18033 * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
18035 2007-02-04 Bruno Haible <bruno@clisp.org>
18037 New module mbsstr. Remove module strstr.
18038 * modules/mbsstr: New file.
18039 * modules/strstr: Remove file.
18040 * lib/mbsstr.c: Renamed from lib/strstr.c.
18041 (mbsstr): Renamed from strstr.
18042 * lib/string_.h (strstr): Remove declaration. Change the conditional
18044 (mbsstr): New declaration.
18045 * m4/mbsstr.m4: New file.
18046 * m4/strstr.m4: Remove file.
18047 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
18049 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
18050 Don't initialize GNULIB_STRSTR.
18051 * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
18052 substitute GNULIB_STRSTR and REPLACE_STRSTR.
18053 * MODULES.html.sh (Internationalization functions): Add mbsstr.
18054 (Support for systems lacking ANSI C 89): Remove strstr.
18056 2007-02-04 Bruno Haible <bruno@clisp.org>
18058 New module mbsrchr.
18059 * modules/mbsrchr: New file.
18060 * lib/mbsrchr.c: New file.
18061 * lib/string_.h (strrchr): Add a conditional link warning.
18062 (mbsrchr): New declaration.
18063 * m4/mbsrchr.m4: New file.
18064 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
18066 * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
18067 * MODULES.html.sh (Internationalization functions): Add mbsrchr.
18069 2007-02-04 Bruno Haible <bruno@clisp.org>
18072 * modules/mbschr: New file.
18073 * lib/mbschr.c: New file.
18074 * lib/string_.h (strchr): Add a conditional link warning.
18075 (mbschr): New declaration.
18076 * m4/mbschr.m4: New file.
18077 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
18079 * modules/string (string.h): Also substitute GNULIB_MBSCHR.
18080 * MODULES.html.sh (Internationalization functions): Add mbschr.
18082 2007-02-04 Paul Eggert <eggert@cs.ucla.edu>
18084 * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
18086 * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
18088 2007-02-04 Bruno Haible <bruno@clisp.org>
18090 New module description section 'configure.ac-early'.
18091 * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
18092 (func_get_autoconf_early_snippet): New function.
18093 (func_import, func_create_testdir): Use it. Remove special cases for
18094 modules 'extensions' and 'lock'.
18095 * modules/extensions (configure.ac-early): Require
18096 gl_USE_SYSTEM_EXTENSIONS.
18097 * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
18099 2007-02-04 Bruno Haible <bruno@clisp.org>
18101 Make use of gcj-4.3's -fsource and -ftarget option.
18102 * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
18103 and if so try the options -fsource and -ftarget.
18104 * lib/javacomp.c (compile_using_gcj): Add fsource_option,
18105 source_version, ftarget_option, target_version arguments.
18106 (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
18107 (is_envjavac_oldgcj_14_14_usable): Renamed from
18108 is_envjavac_gcj_14_14_usable.
18109 (is_envjavac_oldgcj_14_13_usable): Renamed from
18110 is_envjavac_gcj_14_13_usable.
18111 (is_gcj_present): Update.
18112 (is_gcj_43, is_gcj43_usable): New functions.
18113 (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
18114 (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
18115 (compile_java_class): Test whether gcj is in version >= 4.3, and if so
18116 try the options -fsource and -ftarget.
18118 2007-02-03 Paul Eggert <eggert@cs.ucla.edu>
18120 * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
18121 checking code. Set N = ceil (1.5 * N) rather than to a slightly
18124 2007-02-03 Jim Meyering <jim@meyering.net>
18126 Give tools a better chance to allocate space for very large buffers.
18127 * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
18129 Make pwd and readlink work also when run with an unreadable parent dir
18130 on systems with openat support.
18131 * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
18132 provided getcwd function, even when we have openat support.
18133 Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
18135 2007-02-02 Bruno Haible <bruno@clisp.org>
18137 * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
18138 strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
18139 error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
18140 portability problems if one of these functions is only used on specific
18142 Reported by Paul Eggert.
18144 2007-02-02 Paul Eggert <eggert@cs.ucla.edu>
18146 Avoid mempcpy in the regex code, as the string.h mempcpy stuff
18147 is causing more trouble than it's curing.
18148 * lib/regex_internal.h (__mempcpy): Remove.
18149 * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
18150 (and make the code a tad smaller to boot).
18151 * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
18153 2007-02-02 Jim Meyering <jim@meyering.net>
18155 * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
18156 section, not in the Makefile.am: one.
18158 2007-02-02 Eric Blake <ebb9@byu.net>
18160 * lib/strchrnul.c: Always include config.h first.
18162 * modules/mountlist (Depends-on): Revert 2007-01-31 change,
18163 gnulib strstr is not necessary here.
18165 2007-02-02 Simon Josefsson <simon@josefsson.org>
18167 * m4/socklen.m4: Fix typo.
18169 2007-02-02 Eric Blake <ebb9@byu.net>
18171 * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
18172 * modules/netinet_in (Makefile.am): Likewise.
18174 2007-02-01 Bruno Haible <bruno@clisp.org>
18176 * lib/string_.h (GL_LINK_WARNING): New macro.
18177 (strcasecmp, strstr, strcasestr): If provided by the system,
18178 conditionally define as a macro that leads to a warning instead of to
18180 (strncasecmp): Conditionally define as a macro that leads to a warning.
18182 2007-02-01 Karl Berry <karl@gnu.org>
18184 * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
18186 2007-02-01 Bruno Haible <bruno@clisp.org>
18188 * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
18191 2007-02-01 Eric Blake <ebb9@byu.net>
18193 * modules/regex (Depends-on): Revert dependence on mempcpy.
18194 * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
18195 module's definition of mempcpy.
18196 Reported by Paul Eggert.
18198 2007-02-01 Paul Eggert <eggert@cs.ucla.edu>
18200 * lib/string_.h: If the gnulib module XYZ is not present, undefine
18201 the symbol XYZ before redefining it. This fixes a problem with
18202 programs that don't use XYZ, when compiled on systems that define
18203 XYZ to something else.
18205 2007-01-31 Paul Eggert <eggert@cs.ucla.edu>
18207 * lib/mkdir-p.c (make_dir_parents): Close a race condition that
18208 occurs when "mkdir -m foo" creates a setgid directory that is (1)
18209 writeable to group or other and (2) is intended to have a special
18210 mode bit that is set or cleared. In such a case, the directory
18211 should be neither group- nor other-writeable until the special
18212 mode bits are right.
18214 2007-01-31 Eric Blake <ebb9@byu.net>
18216 * modules/mountlist (Depends-on): Add strstr.
18218 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
18220 * modules/string (Makefile.am): Remove redundant replacement.
18221 * modules/regex (Depends-on): Add mempcpy.
18223 2007-01-31 Bruno Haible <bruno@clisp.org>
18225 New module description field 'Link'.
18226 * gnulib-tool (func_usage): Document --extract-link-directive.
18227 (sed_extract_prog): Recognize 'Link' directive.
18228 (func_get_link_directive): New function.
18229 (func_import): Show summary of link directives.
18230 Handle --extract-link-directive option.
18231 * modules/acl (Link): New section.
18232 * modules/clock-time (Link): New section.
18233 * modules/euidaccess (Link): New section.
18234 * modules/gettext (Link): New section.
18235 * modules/iconv (Link): New section.
18236 * modules/lock (Link): New section.
18237 * modules/nanosleep (Link): New section.
18238 * modules/readline (Link): New section.
18240 2007-01-27 Bruno Haible <bruno@clisp.org>
18242 Enforce the use of gnulib modules for unportable <string.h> functions.
18243 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
18244 (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
18245 (gl_HEADER_STRING_H_BODY): Require it.
18246 * lib/string_.h: If the gnulib module XYZ is not present, redefine
18247 the symbol XYZ to one that gives a link error.
18248 * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
18249 * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
18250 * modules/mempcpy (configure.ac): Likewise.
18251 * modules/memrchr (configure.ac): Likewise.
18252 * modules/stpcpy (configure.ac): Likewise.
18253 * modules/stpncpy (configure.ac): Likewise.
18254 * modules/strcase (configure.ac): Likewise.
18255 * modules/strcasestr (configure.ac): Likewise.
18256 * modules/strchrnul (configure.ac): Likewise.
18257 * modules/strdup (configure.ac): Likewise.
18258 * modules/strndup (configure.ac): Likewise.
18259 * modules/strnlen (configure.ac): Likewise.
18260 * modules/strpbrk (configure.ac): Likewise.
18261 * modules/strsep (configure.ac): Likewise.
18262 * modules/strstr (configure.ac): Likewise.
18263 * modules/strtok_r (configure.ac): Likewise.
18265 2007-01-31 Jean-Louis Martineau <martineau@zmanda.com> (tiny change)
18267 * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
18269 2007-01-30 Jim Meyering <jim@meyering.net>
18271 * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
18273 2007-01-29 Bruno Haible <bruno@clisp.org>
18275 * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
18276 * lib/execute.c: Likewise.
18277 * lib/pipe.c: Likewise.
18278 * lib/printf-args.h: Likewise.
18279 * lib/printf-args.c: Likewise.
18280 * lib/printf-parse.c: Likewise.
18281 * lib/vasnprintf.c: Likewise.
18283 2007-01-29 Eric Blake <ebb9@byu.net>
18285 * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
18288 2007-01-29 Paul Eggert <eggert@cs.ucla.edu>
18290 * lib/strptime.h (strptime): Use 'restrict' for args where
18291 POSIX requires this.
18292 * lib/strptime.c (strptime): Likewise.
18293 Change license notice from LGPL to GPL, since gnulib-tool will
18294 change this as needed.
18295 Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
18297 Include "strptime.h" first, to check interface.
18298 Do not #undef _LIBC and _NL_CURRENT.
18299 Do not include <stdlib.h>; no longer needed.
18300 Include "time_r.h" and declare ptime_locale_status
18301 only if _LIBC is not defined.
18302 (__P): Remove unused macro.
18303 (match_string): Bring back glibc version, but use it only if _LIBC
18305 (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
18306 Remove unnecessary assertion and abort() call.
18307 Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
18308 * m4/strptime.m4: Fix serial number comment.
18309 (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
18310 * modules/strptime (Files): Add m4/tm_gmtoff.m4.
18311 (Depends-on): Add time_r.
18313 2007-01-29 Bruno Haible <bruno@clisp.org>
18315 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
18317 * modules/strptime (Depends-on): Add stdbool.
18318 * lib/strptime.h: Include <time.h> always. Add comments.
18320 2007-01-29 Yoann Vandoorselaere <yoann@prelude-ids.org>
18322 * modules/strptime: New file.
18323 * lib/strptime.h: New file.
18324 * lib/strptime.c: New file.
18325 * m4/strptime.m4: New file.
18327 2007-01-28 Paul Eggert <eggert@cs.ucla.edu>
18329 * MODULES.html.sh: New module mpsort.
18330 * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
18332 * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
18333 a circularity problem with HP-UX ia64 reported by Bob Proulx in
18334 <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
18336 (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
18338 * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
18340 * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
18341 the parameter matches the prototype.
18343 2007-01-28 Jim Meyering <jim@meyering.net>
18345 * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
18346 sys/time.h here, reverting that part of the previous patch:
18347 <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
18349 2007-01-28 Bruno Haible <bruno@clisp.org>
18351 * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
18352 value of $(SYS_TIME_H).
18353 [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
18354 remove it conditionally, too. [added by Jim Meyering]
18355 * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
18356 * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
18357 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
18358 GETTIMEOFDAY_REPLACEMENT to 1.
18360 2007-01-28 Bruno Haible <bruno@clisp.org>
18362 * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
18363 (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
18364 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
18365 Set UNISTD_H instead of UNISTD_H2.
18366 * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
18368 2007-01-28 Bruno Haible <bruno@clisp.org>
18370 * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
18371 * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
18373 2007-01-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18375 * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
18376 (func_create_testdir): Ensure C locale for `grep' and `tr'
18378 (func_create_megatestdir): Avoid one `grep'. Fix bug in
18379 ACLOCAL_AMFLAGS parsing state machine.
18381 2007-01-27 Bruno Haible <bruno@clisp.org>
18383 * modules/unistr/base: Update.
18385 2007-01-27 Bruno Haible <bruno@clisp.org>
18387 Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
18388 u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
18389 * modules/unistr/u32-mbtouc-unsafe: Renamed from
18390 modules/unistr/u32-mbtouc.
18391 * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
18392 * lib/unistr.h: Update.
18393 * lib/linebreak.c: Update.
18394 * modules/unistr/u32-mbtouc: Renamed from
18395 modules/unistr/u32-mbtouc-safe.
18396 * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
18397 * lib/unistr.h: Update.
18398 * lib/unistr/u32-to-u8.c: Update.
18399 * lib/unistr/u32-to-u16.c: Update.
18401 2007-01-27 Bruno Haible <bruno@clisp.org>
18403 Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
18404 u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
18405 * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
18406 * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
18407 * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
18408 * modules/unistr/u16-mbtouc-unsafe: Renamed from
18409 modules/unistr/u16-mbtouc.
18410 * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
18411 * lib/unistr.h: Update.
18412 * lib/linebreak.c: Update.
18413 * modules/linebreak: Update.
18414 * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
18415 * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
18416 * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
18417 * modules/unistr/u16-mbtouc: Renamed from
18418 modules/unistr/u16-mbtouc-safe.
18419 * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
18420 * lib/unistr.h: Update.
18421 * lib/unistr/u16-to-u8.c: Update.
18422 * modules/unistr/u16-to-u8: Update.
18423 * lib/unistr/u16-to-u32.c: Update.
18424 * modules/unistr/u16-to-u32: Update.
18426 2007-01-27 Bruno Haible <bruno@clisp.org>
18428 Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
18429 u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
18430 * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
18431 * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
18432 * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
18433 * modules/unistr/u8-mbtouc-unsafe: Renamed from
18434 modules/unistr/u8-mbtouc.
18435 * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
18436 * lib/unistr.h: Update.
18437 * lib/striconveh.c: Update.
18438 * modules/striconveh: Update.
18439 * lib/linebreak.c: Update.
18440 * modules/linebreak: Update.
18441 * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
18442 * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
18443 * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
18444 * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
18445 * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
18446 * lib/unistr.h: Update.
18447 * lib/striconveh.c: Update.
18448 * modules/striconveh: Update.
18449 * lib/unistr/u8-to-u16.c: Update.
18450 * modules/unistr/u8-to-u16: Update.
18451 * lib/unistr/u8-to-u32.c: Update.
18452 * modules/unistr/u8-to-u32: Update.
18454 2007-01-27 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18457 * lib/argz.c: Do not include strings.h nor memory.h, include
18458 string.h unconditionally. Patch by Simon Josefsson.
18460 2007-01-27 Bruno Haible <bruno@clisp.org>
18462 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
18463 from gl_HEADER_STRING_H_BODY.
18464 (gl_HEADER_STRING_H_BODY): Require it.
18465 * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
18466 * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
18467 * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
18468 * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
18469 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
18470 * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
18471 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
18472 * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
18473 * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
18474 * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
18475 * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
18476 * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
18477 * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
18478 * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
18479 * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
18481 2007-01-27 Bruno Haible <bruno@clisp.org>
18483 * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
18484 check_PROGRAMS into noinst_PROGRAMS.
18485 (func_emit_tests_Makefile_am): Likewise. Also don't initialize
18486 check_PROGRAMS in this case.
18487 (func_import): Set for_test to false.
18488 (func_create_testdir): Set for_test to true.
18490 2007-01-27 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
18491 Bruno Haible <bruno@clisp.org>
18493 * modules/strcasestr (Files): Remove lib/strcasestr.h.
18494 (Depends-on): Add string.
18495 (Includes): Use <string.h> instead of strcasestr.h.
18496 * modules/string (Makefile.am): Also substitute the value of
18497 REPLACE_STRCASESTR.
18498 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
18499 assume strcasestr is declared in <string.h> not <strings.h>. Also
18500 set REPLACE_STRCASESTR.
18501 * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
18502 REPLACE_STRCASESTR.
18503 * lib/strcasestr.h: Remove file.
18504 * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
18505 * lib/string_.h (strcasestr): New declaration.
18507 2007-01-27 Bruno Haible <bruno@clisp.org>
18509 * lib/string_.h: Use 'extern'.
18511 2007-01-27 Jim Meyering <jim@meyering.net>
18513 * lib/regex_internal.c (re_string_reconstruct): Remove declaration
18514 of set-but-not-used local, "q".
18516 * lib/mempcpy.c: Include <config.h> before <string.h>.
18517 This fixes a compilation error on HP-UX, due to the system's
18518 "restrict"-using mempcpy prototype.
18520 2007-01-26 Bruno Haible <bruno@clisp.org>
18522 Small optimization.
18523 * lib/javacomp.c: Include c-strstr.h.
18524 (is_envjavac_gcj): Use c_strstr instead of strstr.
18525 * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
18527 2007-01-26 Bruno Haible <bruno@clisp.org>
18529 * MODULES.html.sh (Unicode string functions): Add the new modules.
18531 * modules/uniconv/u32-strconv-to-locale: New file.
18532 * lib/uniconv/u32-strconv-to-locale.c: New file.
18534 * modules/uniconv/u16-strconv-to-locale: New file.
18535 * lib/uniconv/u16-strconv-to-locale.c: New file.
18537 * modules/uniconv/u8-strconv-to-locale: New file.
18538 * lib/uniconv/u8-strconv-to-locale.c: New file.
18540 * modules/uniconv/u32-strconv-from-locale: New file.
18541 * lib/uniconv/u32-strconv-from-locale.c: New file.
18543 * modules/uniconv/u16-strconv-from-locale: New file.
18544 * lib/uniconv/u16-strconv-from-locale.c: New file.
18546 * modules/uniconv/u8-strconv-from-locale: New file.
18547 * lib/uniconv/u8-strconv-from-locale.c: New file.
18549 * modules/uniconv/u32-strconv-to-enc: New file.
18550 * lib/uniconv/u32-strconv-to-enc.c: New file.
18551 * modules/uniconv/u32-strconv-to-enc-tests: New file.
18552 * tests/uniconv/test-u32-strconv-to-enc.c: New file.
18554 * modules/uniconv/u16-strconv-to-enc: New file.
18555 * lib/uniconv/u16-strconv-to-enc.c: New file.
18556 * lib/uniconv/u-strconv-to-enc.h: New file.
18557 * modules/uniconv/u16-strconv-to-enc-tests: New file.
18558 * tests/uniconv/test-u16-strconv-to-enc.c: New file.
18560 * modules/uniconv/u8-strconv-to-enc: New file.
18561 * lib/uniconv/u8-strconv-to-enc.c: New file.
18562 * modules/uniconv/u8-strconv-to-enc-tests: New file.
18563 * tests/uniconv/test-u8-strconv-to-enc.c: New file.
18565 * modules/uniconv/u32-strconv-from-enc: New file.
18566 * lib/uniconv/u32-strconv-from-enc.c: New file.
18567 * modules/uniconv/u32-strconv-from-enc-tests: New file.
18568 * tests/uniconv/test-u32-strconv-from-enc.c: New file.
18570 * modules/uniconv/u16-strconv-from-enc: New file.
18571 * lib/uniconv/u16-strconv-from-enc.c: New file.
18572 * modules/uniconv/u16-strconv-from-enc-tests: New file.
18573 * tests/uniconv/test-u16-strconv-from-enc.c: New file.
18575 * modules/uniconv/u8-strconv-from-enc: New file.
18576 * lib/uniconv/u8-strconv-from-enc.c: New file.
18577 * lib/uniconv/u-strconv-from-enc.h: New file.
18578 * modules/uniconv/u8-strconv-from-enc-tests: New file.
18579 * tests/uniconv/test-u8-strconv-from-enc.c: New file.
18581 * modules/uniconv/u32-conv-from-enc: New file.
18582 * lib/uniconv/u32-conv-from-enc.c: New file.
18583 * modules/uniconv/u32-conv-from-enc-tests: New file.
18584 * tests/uniconv/test-u32-conv-from-enc.c: New file.
18586 * modules/uniconv/u16-conv-from-enc: New file.
18587 * lib/uniconv/u16-conv-from-enc.c: New file.
18588 * lib/uniconv/u-conv-from-enc.h: New file.
18589 * modules/uniconv/u16-conv-from-enc-tests: New file.
18590 * tests/uniconv/test-u16-conv-from-enc.c: New file.
18592 * modules/uniconv/u8-conv-from-enc: New file.
18593 * lib/uniconv/u8-conv-from-enc.c: New file.
18594 * modules/uniconv/u8-conv-from-enc-tests: New file.
18595 * tests/uniconv/test-u8-conv-from-enc.c: New file.
18597 * modules/uniconv/base: New file.
18598 * lib/uniconv.h: New file.
18600 2007-01-26 Paul Eggert <eggert@cs.ucla.edu>
18602 * doc/gnulib-tool.texi (Initial import): Update to match current
18603 behavior with strdup module.
18604 * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
18605 * lib/memmem.h: Remove; all uses removed. This is now done
18607 * lib/mempcpy.h: Likewise.
18608 * lib/memrchr.h: Likewise.
18609 * lib/stpcpy.h: Likewise.
18610 * lib/stpncpy.h: Likewise.
18611 * lib/strcase.h: Likewise.
18612 * lib/strchrnul.h: Likewise.
18613 * lib/strdup.h: Likewise.
18614 * lib/strndup.h: Likewise.
18615 * lib/strnlen.h: Likewise.
18616 * lib/strpbrk.h: Likewise.
18617 * lib/strsep.h: Likewise.
18618 * lib/strstr.h: Likewise.
18619 * lib/strtok_r.h: Likewise.
18620 * lib/string_.h: New file.
18621 * lib/argp-namefrob.h: Don't include no-longer-existent include files.
18622 Rely on <string.h> instead.
18623 * lib/canon-host.c: Likewise.
18624 * lib/chdir-long.c: Likewise.
18625 * lib/concatpath.c: Likewise.
18626 * lib/exclude.c: Likewise.
18627 * lib/fchdir.c: Likewise.
18628 * lib/getaddrinfo.c: Likewise.
18629 * lib/getcwd.c: Likewise.
18630 * lib/getsubopt.c: Likewise.
18631 * lib/glob.c: Likewise.
18632 * lib/hard-locale.c: Likewise.
18633 * lib/iconvme.c: Likewise.
18634 * lib/javacomp.c: Likewise.
18635 * lib/mempcpy.c: Likewise.
18636 * lib/memrchr.c: Likewise.
18637 * lib/regex_internal.h: Likewise.
18638 * lib/stpncpy.c: Likewise.
18639 * lib/strcasecmp.c: Likewise.
18640 * lib/strchrnul.c: Likewise.
18641 * lib/strdup.c: Likewise.
18642 * lib/striconv.c: Likewise.
18643 * lib/striconveh.c: Likewise.
18644 * lib/striconveha.c: Likewise.
18645 * lib/strncasecmp.c: Likewise.
18646 * lib/strndup.c: Likewise.
18647 * lib/strnlen.c: Likewise.
18648 * lib/strsep.c: Likewise.
18649 * lib/strstr.c: Likewise.
18650 * lib/strtok_r.c: Likewise.
18651 * lib/userspec.c: Likewise.
18652 * lib/w32spawn.h: Likewise.
18653 * lib/xstrndup.c: Likewise.
18654 * lib/mountlist.c (strstr): Remove decl.
18655 * m4/string_h.m4: New file.
18656 * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
18657 * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
18658 * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
18659 * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
18660 * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
18661 * m4/strcase.m4 (gl_FUNC_STRCASECMP):
18662 Set REPLACE_STRCASECMP if necessary.
18663 (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
18664 * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
18665 * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
18666 * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
18667 HAVE_DECL_STRDUP if necessary.
18668 (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
18669 since gl_FUNC_STRNDUP does that now.
18670 * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
18671 Check for decl here...
18672 (gl_PREREQ_STRNLEN): ... not here.
18673 * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
18674 * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
18675 * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
18676 * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
18678 * modules/string: New file.
18679 * modules/memmem (Files): Remove special-purpose include file.
18680 (Depends-on): Add string.
18681 (Include): Include <string.h>, not the removed file.
18682 * modules/mempcpy: Likewise.
18683 * modules/memrchr: Likewise.
18684 * modules/stpcpy: Likewise.
18685 * modules/stpncpy: Likewise.
18686 * modules/strcase: Likewise.
18687 * modules/strchrnul: Likewise.
18688 * modules/strdup: Likewise.
18689 * modules/strndup: Likewise.
18690 * modules/strnlen: Likewise.
18691 * modules/strpbrk: Likewise.
18692 * modules/strsep: Likewise.
18693 * modules/strstr: Likewise.
18694 * modules/strtok_r: Likewise.
18695 * tests/test-dirname.c: Don't include "strdup.h", since
18696 <string.h> now suffices.
18697 * tests/test-memmem.c: Don't include "memmem.h", since
18698 <string.h> now suffices.
18700 2007-01-25 Bruno Haible <bruno@clisp.org>
18702 * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
18705 * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
18706 * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
18707 * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
18708 * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
18710 * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
18711 * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
18712 * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
18713 * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
18714 * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
18715 * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
18717 2007-01-24 Bruno Haible <bruno@clisp.org>
18719 Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
18720 <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
18721 * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
18722 * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
18724 (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
18725 * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
18726 AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
18727 * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
18728 * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
18729 * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
18731 * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
18733 * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
18734 Reported by Ralf Wildenhues.
18736 2007-01-24 Bruno Haible <bruno@clisp.org>
18738 Drop AC_REQUIRE calls that are redundant with the module dependencies.
18739 * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
18741 * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
18742 gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
18743 * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
18745 2007-01-24 Paul Eggert <eggert@cs.ucla.edu>
18747 * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
18748 Don't use 'exit'; just return from 'main'.
18749 (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
18751 * lib/fnmatch_.h: Readjust white space and comments to match
18752 glibc, to avoid spurious diffs.
18754 2007-01-23 Paul Eggert <eggert@cs.ucla.edu>
18756 * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
18757 2004-12-01 change by Jakub Jelinek, since this code won't compile
18758 if !LIBC. Problem reported by Bob Proulx.
18760 2007-01-23 Bruno Haible <bruno@clisp.org>
18762 * lib/striconveh.c: Include c-strcaseeq.h.
18763 (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
18764 * modules/striconveh (Depends-on): Add c-strcaseeq.
18766 2007-01-23 Bruno Haible <bruno@clisp.org>
18768 * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
18770 * modules/c-strcaseeq: New file.
18771 * lib/c-strcaseeq.h: New file.
18773 * modules/streq: New file.
18774 * lib/streq.h: New file.
18776 2007-01-23 Bruno Haible <bruno@clisp.org>
18778 * modules/striconveha-tests: New file.
18779 * tests/test-striconveha.c: New file.
18781 * lib/striconveha.h: Include <stdbool.h>.
18782 (mem_iconveha, str_iconveha): Add 'transliterate' argument.
18783 * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
18784 (mem_iconveha_notranslit): Renamed from mem_iconveha.
18785 (mem_iconveha): New function.
18786 (str_iconveha_notranslit): Renamed from str_iconveha.
18787 (str_iconveha): New function.
18788 * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
18791 2007-01-23 Bruno Haible <bruno@clisp.org>
18793 * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
18794 encodings without forgiving before trying any encoding with handler.
18795 (str_iconveha): Try all encodings without forgiving before trying any
18796 encoding with handler.
18798 2007-01-23 Paul Eggert <eggert@cs.ucla.edu>
18800 Import the following changes from libc.
18802 2005-10-14 Ulrich Drepper <drepper@redhat.com>
18804 * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
18806 2004-12-01 Jakub Jelinek <jakub@redhat.com>
18808 * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
18809 normal_bracket label.
18811 2004-09-01 Jakub Jelinek <jakub@redhat.com>
18814 * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
18815 to normal_bracket after fetching the next character.
18817 2007-01-22 Bruno Haible <bruno@clisp.org>
18819 * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
18821 * lib/striconveh.c (iconv_carefully_1): New function.
18822 (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
18824 (str_cd_iconveh): Update.
18825 * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
18826 * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
18827 * tests/test-striconveh.c (MAGIC): New macro.
18828 (new_offsets): New function.
18829 (main): Test call with and without offsets.
18831 2007-01-22 Bruno Haible <bruno@clisp.org>
18833 * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
18834 * modules/sys_select (Makefile.am): Likewise.
18835 * modules/sys_socket (Makefile.am): Likewise.
18836 * modules/sys_time (Makefile.am): Likewise.
18838 2007-01-22 Paul Eggert <eggert@cs.ucla.edu>
18840 * modules/gettimeofday (License): Change from GPL to LGPL, since
18841 gettimeofday is a library function.
18843 2007-01-22 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
18845 * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
18847 2007-01-21 Bruno Haible <bruno@clisp.org>
18849 * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
18851 2007-01-21 Bruno Haible <bruno@clisp.org>
18853 * modules/striconveha: New file.
18854 * lib/striconveha.h: New file.
18855 * lib/striconveha.c: New file.
18856 * MODULES.html.sh (Internationalization functions): Add striconveha.
18857 * lib/striconv.c (str_iconv): Optimize the case of an empty input
18859 * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
18861 2007-01-21 Bruno Haible <bruno@clisp.org>
18863 * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
18864 * lib/striconveh.c (str_iconveh): Likewise.
18866 2007-01-21 Bruno Haible <bruno@clisp.org>
18868 * lib/striconveh.h (mem_iconveh): New declaration.
18869 * lib/striconveh.c (mem_iconveh): New function.
18870 * tests/test-striconveh.c (main): Add tests for mem_iconveh.
18872 2007-01-21 Bruno Haible <bruno@clisp.org>
18874 * lib/xstriconv.h (xmem_cd_iconv): Change specification.
18876 * lib/striconveh.h (mem_cd_iconveh): Change specification.
18877 * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
18878 original result buffer.
18879 (str_cd_iconveh): Update.
18880 * tests/test-striconveh.c (main): Update.
18882 * lib/striconv.h (mem_cd_iconv): Change specification.
18883 * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
18885 (str_cd_iconv): Update.
18886 * tests/test-striconv.c (main): Update.
18888 2007-01-21 Bruno Haible <bruno@clisp.org>
18890 * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
18892 2007-01-20 Jim Meyering <jim@meyering.net>
18894 * lib/userspec.c (parse_with_separator): If a user or group string
18895 starts with "+", skip the corresponding name-to-ID look-up, since
18896 such a look-up must fail: user and group names may not include "+".
18898 2007-01-19 Paul Eggert <eggert@cs.ucla.edu>
18900 * lib/poll.c: Include sys/time.h and time.h unconditionally,
18901 since we now assume the sys_time module.
18902 * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
18903 check for sys/time.h; no longer needed.
18904 * modules/poll (Depends-on): Depend on sys_time.
18906 2007-01-18 Bruno Haible <bruno@clisp.org>
18908 * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
18909 * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
18911 * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
18914 * tests/test-gettimeofday.c: Include <time.h>.
18915 (dummy): Remove variable.
18917 * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
18918 gl_HEADER_SYS_TIME_H.
18919 (gl_HEADER_SYS_TIME_H): New macro.
18921 * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
18922 HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
18923 * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
18924 gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
18925 HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
18926 * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
18927 GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
18928 and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
18929 * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
18930 instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
18931 GETTIMEOFDAY_CLOBBERS_LOCALTIME.
18933 * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
18934 last change; it caused a compilation error when cross-compiling to
18937 2007-01-18 Jim Meyering <jim@meyering.net>
18939 Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
18940 * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
18941 than the race-prone "test -d sys || mkdir sys".
18942 (configure.ac): Use AC_PROG_MKDIR_P.
18943 * modules/sys_select: Likewise.
18944 * modules/sys_socket: Likewise.
18945 * modules/sys_time: Likewise.
18947 2007-01-18 Eric Blake <ebb9@byu.net>
18949 * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
18950 replace gettimeofday.
18951 * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
18952 name, to avoid infinite recursion.
18954 2007-01-17 Paul Eggert <eggert@cs.ucla.edu>
18956 * MODULES.html.sh (Support for systems lacking POSIX:2001): New
18958 * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
18959 assume timespec.h defines struct timeval.
18960 * lib/settime.c: Likewise.
18961 * lib/utimens.c: Likewise.
18962 * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
18963 since we now assume the gettimeofday module.
18964 * lib/tempname.c (__gen_tempname): Likewise.
18965 * lib/gettimeofday.h: Remove.
18966 * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
18967 Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
18968 Include <time.h>, for 'time()'.
18969 (localtime_buffer_addr): Also use this workaround if
18970 TZSET_CLOBBERS_LOCALTIME. Set to a dummy static variable by default,
18971 to simplify the uses. All uses changed.
18972 (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
18973 that #undef is inside {}, and 'const' follows type name consistently.
18974 (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
18975 (gettimeofday): Do not use the maximum possible value for
18976 tv->tv_usec, since that might break usages other than ls.c.
18977 Instead, we'll leave ls.c alone. This undoes today's patch
18978 by Bruno. Add a compile-time warning for 1s-clock resolution;
18979 we've never observed the problem but might as well keep the
18981 * lib/nanosleep.c: Include timespec.h first, for interface check.
18982 * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
18983 now assume the sys_time module.
18984 * lib/tempname.c: Likewise.
18985 * lib/timespec.h: Likewise.
18986 * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
18988 * lib/strftime.c: Likewise.
18989 * lib/timespec.h: Likewise.
18990 * lib/posixtm.c: Include posixtm.h first, for interface check.
18991 Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
18992 * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
18993 * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
18994 * lib/sys_time_.h: New file.
18995 * lib/timespec.h (struct timespec): Use long int, not long.
18996 * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
18997 (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
18998 Remove obsolescent call to AC_HEADER_TIME.
18999 * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
19000 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
19001 * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
19002 * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
19004 * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
19005 * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
19006 * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
19007 into the sys_time module. Check for gettimeofday just once.
19008 Prefix our variables with gl_, not with ac_ or jm_. Tighten test
19009 for gettimeofday signature to just check the signature. Merely
19010 compile it, since linking doesn't test signature. Improve test for
19011 whether gettimeofday.o is actually needed.
19012 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
19013 AC_FUNC_GETTIMEOFDAY_CLOBBER. All uses changed. Use
19014 AC_RUN_IFELSE rather than AC_TRY_RUN. If clobbering, set
19015 and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
19016 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
19017 GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
19018 job. Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
19019 * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
19020 than worrying about sys/time.h.
19021 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
19022 Don't bother worrying about TIME_WITH_SYS_TIME.
19023 * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
19024 * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
19025 * m4/sys_time_h.m4: New file.
19026 * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
19027 Don't include sys/time.h. Return from main rather than exiting.
19028 Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
19030 * modules/gethrxtime (Depends-on): Add sys_time.
19031 * modules/gettime (Depends-on): Likewise.
19032 * modules/gettimeofday (Depends-on): Likewise.
19033 * modules/nanosleep (Depends-on): Likewise.
19034 * modules/settime (Depends-on): Likewise.
19035 * modules/tempname (Depends-on): Likewise.
19036 * modules/utimens (Depends-on): Likewise.
19037 * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
19038 (Include:) Change back to <sys/time.h>.
19039 (Maintainer:) Add self.
19040 * modules/sys_time: New file.
19041 * modules/tempname (Depends-on): Add gettimeofday.
19042 * tests/test-gettimeofday.c: Include <sys/time.h>
19043 rather than gettimeofday.h.
19045 2007-01-17 Bruno Haible <bruno@clisp.org>
19047 * gnulib-tool (func_get_license): Revert last patch. Instead, let
19048 the license default to GPL.
19049 (func_create_testdir): Don't complain if a module is LGPL and its
19050 tests module depends on GPLed modules.
19052 2007-01-17 Bruno Haible <bruno@clisp.org>
19054 * lib/gettimeofday.c (gettimeofday): Add code for the case
19055 HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
19056 maximum possible value for tv->tv_usec, rather than the minimum one.
19058 2005-10-08 Martin Lambers <marlam@marlam.de>
19059 2005-10-08 Paul Eggert <eggert@cs.ucla.edu>
19060 2007-01-16 Bruno Haible <bruno@clisp.org>
19062 * modules/gettimeofday (Files): Add lib/gettimeofday.h.
19063 (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
19064 gl_FUNC_GETTIMEOFDAY.
19065 (Include): Add gettimeofday.h.
19066 * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
19067 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
19068 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
19069 GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
19070 (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
19071 * lib/gettimeofday.h: New file.
19072 * lib/gettimeofday.c: Include <sys/timeb.h>.
19073 (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
19074 only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
19075 (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
19076 fall back on time().
19078 * tests/test-gettimeofday.c: New file.
19079 * modules/gettimeofday-tests: New file.
19081 2007-01-16 Eric Blake <ebb9@byu.net>
19083 * modules/fnmatch (Depends-on): Depend on wchar.
19084 * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
19085 * m4/fnmatch.m4: Likewise.
19086 * modules/mbchar (Makefile.am): Assume <wchar.h>.
19087 * m4/mbchar.m4: Likewise.
19088 * modules/mbswidth (Depends-on): Depend on wchar.
19089 * lib/mbswidth.c: Assume <wchar.h>.
19090 * m4/mbswidth.m4: Likewise.
19091 * modules/quotearg (Depends-on): Depend on wchar.
19092 * lib/quotearg.c: Assume <wchar.h>.
19093 * m4/quotearg.m4: Likewise.
19094 * modules/regex (Depends-on): Depend on wchar.
19095 * lib/regex_internal.h: Assume <wchar.h>.
19096 * m4/regex.m4: Likewise.
19097 * modules/stdint (Depends-on): Depend on wchar.
19098 * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
19099 * m4/stdint.m4: Likewise.
19100 * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
19101 * modules/strftime (Depends-on): Depend on wchar.
19102 * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
19103 * modules/strtol (Depends-on): Depend on wchar.
19104 * lib/strtol.c: Assume <wchar.h>.
19105 * modules/wcwidth (Depends-on): Depend on wchar.
19106 * lib/wcwidth.h: Assume <wchar.h>.
19107 * m4/wcwidth.m4: Likewise.
19109 2007-01-16 Bruno Haible <bruno@clisp.org>
19111 * modules/csharpexec-script: New, created from...
19112 * modules/csharpexec: ... this.
19114 2007-01-16 Paolo Bonzini <bonzini@gnu.org>
19116 * modules/javaexec-script: New, created from...
19117 * modules/javaexec: ... this.
19119 2007-01-16 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
19121 * modules/poll (Dependencies): Add sys_select.
19123 2007-01-15 Jim Meyering <jim@meyering.net>
19125 * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
19126 redefinition bug when using both <utmp.h> and <utmpx.h> headers.
19127 * lib/readutmp.h: Likewise. Reported by Daniel Richard G. in
19128 <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
19130 2007-01-15 Bruno Haible <bruno@clisp.org>
19132 * modules/striconveh: New file.
19133 * lib/striconveh.h: New file.
19134 * lib/striconveh.c: New file.
19135 * MODULES.html.sh (Internationalization functions): Add striconveh.
19137 * modules/striconveh-tests: New file.
19138 * tests/test-striconveh.c: New file.
19140 2007-01-15 Bruno Haible <bruno@clisp.org>
19142 * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
19143 not from GNU libiconv or GNU libc.
19145 2007-01-15 Bruno Haible <bruno@clisp.org>
19147 * doc/gnulib-intro.texi (Copyright): Explain the different license
19148 terms for module descriptions, autoconf macros, tests, documentation.
19150 2007-01-14 Bruno Haible <bruno@clisp.org>
19152 * modules/striconv-tests: New file.
19153 * tests/test-striconv.c: New file.
19155 2007-01-14 Bruno Haible <bruno@clisp.org>
19157 * modules/iconv-tests: New file.
19158 * tests/test-iconv.c: New file.
19160 2007-01-14 Bruno Haible <bruno@clisp.org>
19162 * gnulib-tool (func_get_license): For test modules, use the license of
19165 2007-01-14 Bruno Haible <bruno@clisp.org>
19167 * modules/iconv (Include): Clarify that <iconv.h> can only be included
19168 if iconv is found to exist.
19170 2007-01-14 Bruno Haible <bruno@clisp.org>
19172 * modules/c-ctype-tests: New file.
19173 * tests/test-c-ctype.c: New file.
19175 2007-01-14 Bruno Haible <bruno@clisp.org>
19177 * modules/binary-io-tests: New file.
19178 * tests/test-binary-io.sh: New file.
19179 * tests/test-binary-io.c: New file.
19181 2007-01-14 Bruno Haible <bruno@clisp.org>
19183 * modules/array-oset-tests: New file.
19184 * tests/test-array_oset.c: New file.
19186 2007-01-14 Bruno Haible <bruno@clisp.org>
19188 * modules/array-list-tests: New file.
19189 * tests/test-array_list.c: New file.
19191 2007-01-14 Bruno Haible <bruno@clisp.org>
19193 * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
19195 Reported by Simon Josefsson in
19196 <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
19198 2007-01-14 Bruno Haible <bruno@clisp.org>
19200 * modules/allocsa-tests: New file.
19201 * tests/test-allocsa.c: New file.
19203 2007-01-14 Bruno Haible <bruno@clisp.org>
19205 * modules/fchdir (Depends-on): Add absolute-header.
19206 * modules/unistd (Depends-on): Likewise.
19208 2006-12-30 Bruno Haible <bruno@clisp.org>
19210 * modules/fchdir: New file.
19211 * modules/unistd (Files): Add lib/unistd_.h.
19212 (Makefile.am): Generate unistd.h from unistd_.h.
19213 * lib/fchdir.c: New file.
19214 * lib/dirent_.h: New file.
19215 * lib/unistd_.h: New file.
19216 * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
19217 * m4/fchdir.m4: New file.
19218 * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
19219 (gl_HEADER_UNISTD): Invoke it.
19220 * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
19222 * lib/backupfile.c (opendir, closedir): Undefine.
19223 * lib/chown.c (open, close): Undefine.
19224 * lib/clean-temp.c (open, close): Undefine.
19225 * lib/copy-file.c (open, close): Undefine.
19226 * lib/execute.c (open, close): Undefine.
19227 * lib/fsusage.c (open, close): Undefine.
19228 * lib/gc-gnulib.c (open, close): Undefine.
19229 * lib/getcwd.c (opendir, closedir): Undefine.
19230 * lib/glob.c (opendir, closedir): Undefine.
19231 * lib/javacomp.c (open, close): Undefine.
19232 * lib/mountlist.c (open, close, opendir, closedir): Undefine.
19233 * lib/openat-proc.c (open, close): Undefine.
19234 * lib/pagealign_alloc.c (open, close): Undefine.
19235 * lib/pipe.c (open, close): Undefine.
19236 * lib/progreloc.c (open, close): Undefine.
19237 * lib/savedir.c (opendir, closedir): Undefine.
19238 * lib/utime.c (open, close): Undefine.
19239 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
19241 2007-01-10 Bruno Haible <bruno@clisp.org>
19243 * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
19245 2007-01-12 Eric Blake <ebb9@byu.net>
19247 Provide a robust <wchar.h>. Further simplifications are now
19248 possible in other modules, but not included here.
19249 * modules/wchar: New module.
19250 * m4/wchar.m4: New file.
19251 * lib/wchar_.h: Likewise.
19252 * modules/mbchar (Depends-on): Depend on wchar, as the first use
19254 * MODULES.html.sh (Extended multibyte and wide character utilities):
19257 2007-01-12 Paul Eggert <eggert@cs.ucla.edu>
19259 * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
19260 to a reasonable default for memory allocation.
19261 (xreadlink): Don't allocate a huge buffer, to work around a buggy
19262 file system that reports garbage st_size values for symlinks.
19263 Problem reported by Liyang Hu.
19265 2007-01-11 Simon Josefsson <simon@josefsson.org>
19267 * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
19268 Emacs .#* auto-save files).
19270 2007-01-11 Bruno Haible <bruno@clisp.org>
19272 * gnulib-tool (func_all_modules): Exclude all files inside the CVS
19275 2007-01-10 Paul Eggert <eggert@cs.ucla.edu>
19277 Use @...@ consistently in lib/wctype_.h.
19278 * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
19279 on it being set to 1 or 0.
19280 * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
19281 go back to AC_SUBSTing it.
19282 * modules/wctype (Makefile.am): Undo previous change.
19284 2007-01-10 Eric Blake <ebb9@byu.net>
19286 * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
19287 * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
19288 * modules/wctype (Makefile.am): Likewise.
19289 Reported by Chris McGuire.
19291 2007-01-10 Jim Meyering <jim@meyering.net>
19293 fts.c: a small readability/maintainability improvement
19294 * lib/fts.c (fts_read): Make this code slightly more readable and
19295 maintainable by hoisting the "sp->fts_cur = p" assignments to
19296 immediately follow the statements that set P. Derived from
19297 the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
19299 2007-01-10 Eric Blake <ebb9@byu.net>
19301 * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
19302 <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
19303 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
19304 * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
19305 Reported by Chris McGuire.
19307 2007-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19309 * gnulib-tool (func_all_modules): Use POSIX conforming escaping
19312 2007-01-09 Bruno Haible <bruno@clisp.org>
19314 * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
19315 (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
19317 (func_module): Use them.
19319 2007-01-09 Bruno Haible <bruno@clisp.org>
19321 * modules/unistr/base: New file.
19322 * lib/unistr.h: New file.
19324 * modules/unistr/u8-to-u16: New file.
19325 * lib/unistr/u8-to-u16.c: New file.
19327 * modules/unistr/u8-to-u32: New file.
19328 * lib/unistr/u8-to-u32.c: New file.
19330 * modules/unistr/u16-to-u8: New file.
19331 * lib/unistr/u16-to-u8.c: New file.
19333 * modules/unistr/u16-to-u32: New file.
19334 * lib/unistr/u16-to-u32.c: New file.
19336 * modules/unistr/u32-to-u8: New file.
19337 * lib/unistr/u32-to-u8.c: New file.
19339 * modules/unistr/u32-to-u16: New file.
19340 * lib/unistr/u32-to-u16.c: New file.
19342 * modules/unistr/u8-check: New file.
19343 * modules/unistr/u16-check: New file.
19344 * modules/unistr/u32-check: New file.
19345 * lib/unistr/u8-check.c: New file.
19346 * lib/unistr/u16-check.c: New file.
19347 * lib/unistr/u32-check.c: New file.
19349 * modules/unistr/u8-chr: New file.
19350 * modules/unistr/u16-chr: New file.
19351 * modules/unistr/u32-chr: New file.
19352 * lib/unistr/u8-chr.c: New file.
19353 * lib/unistr/u16-chr.c: New file.
19354 * lib/unistr/u32-chr.c: New file.
19356 * modules/unistr/u8-cmp: New file.
19357 * modules/unistr/u16-cmp: New file.
19358 * modules/unistr/u32-cmp: New file.
19359 * lib/unistr/u8-cmp.c: New file.
19360 * lib/unistr/u16-cmp.c: New file.
19361 * lib/unistr/u32-cmp.c: New file.
19363 * modules/unistr/u8-cpy: New file.
19364 * modules/unistr/u16-cpy: New file.
19365 * modules/unistr/u32-cpy: New file.
19366 * lib/unistr/u8-cpy.c: New file.
19367 * lib/unistr/u16-cpy.c: New file.
19368 * lib/unistr/u32-cpy.c: New file.
19369 * lib/unistr/u-cpy.h: New file.
19371 * modules/unistr/u8-cpy-alloc: New file.
19372 * modules/unistr/u16-cpy-alloc: New file.
19373 * modules/unistr/u32-cpy-alloc: New file.
19374 * lib/unistr/u8-cpy-alloc.c: New file.
19375 * lib/unistr/u16-cpy-alloc.c: New file.
19376 * lib/unistr/u32-cpy-alloc.c: New file.
19377 * lib/unistr/u-cpy-alloc.h: New file.
19379 * modules/unistr/u8-endswith: New file.
19380 * modules/unistr/u16-endswith: New file.
19381 * modules/unistr/u32-endswith: New file.
19382 * lib/unistr/u8-endswith.c: New file.
19383 * lib/unistr/u16-endswith.c: New file.
19384 * lib/unistr/u32-endswith.c: New file.
19385 * lib/unistr/u-endswith.h: New file.
19387 * modules/unistr/u8-mblen: New file.
19388 * modules/unistr/u16-mblen: New file.
19389 * modules/unistr/u32-mblen: New file.
19390 * lib/unistr/u8-mblen.c: New file.
19391 * lib/unistr/u16-mblen.c: New file.
19392 * lib/unistr/u32-mblen.c: New file.
19394 * modules/unistr/u8-mbtouc: New file.
19395 * modules/unistr/u16-mbtouc: New file.
19396 * modules/unistr/u32-mbtouc: New file.
19397 * lib/unistr/u8-mbtouc.c: New file.
19398 * lib/unistr/u16-mbtouc.c: New file.
19399 * lib/unistr/u32-mbtouc.c: New file.
19401 * modules/unistr/u8-mbtouc-safe: New file.
19402 * modules/unistr/u16-mbtouc-safe: New file.
19403 * modules/unistr/u32-mbtouc-safe: New file.
19404 * lib/unistr/u8-mbtouc-safe.c: New file.
19405 * lib/unistr/u16-mbtouc-safe.c: New file.
19406 * lib/unistr/u32-mbtouc-safe.c: New file.
19408 * modules/unistr/u8-move: New file.
19409 * modules/unistr/u16-move: New file.
19410 * modules/unistr/u32-move: New file.
19411 * lib/unistr/u8-move.c: New file.
19412 * lib/unistr/u16-move.c: New file.
19413 * lib/unistr/u32-move.c: New file.
19414 * lib/unistr/u-move.h: New file.
19416 * modules/unistr/u8-next: New file.
19417 * modules/unistr/u16-next: New file.
19418 * modules/unistr/u32-next: New file.
19419 * lib/unistr/u8-next.c: New file.
19420 * lib/unistr/u16-next.c: New file.
19421 * lib/unistr/u32-next.c: New file.
19423 * modules/unistr/u8-prev: New file.
19424 * modules/unistr/u16-prev: New file.
19425 * modules/unistr/u32-prev: New file.
19426 * lib/unistr/u8-prev.c: New file.
19427 * lib/unistr/u16-prev.c: New file.
19428 * lib/unistr/u32-prev.c: New file.
19430 * modules/unistr/u8-set: New file.
19431 * modules/unistr/u16-set: New file.
19432 * modules/unistr/u32-set: New file.
19433 * lib/unistr/u8-set.c: New file.
19434 * lib/unistr/u16-set.c: New file.
19435 * lib/unistr/u32-set.c: New file.
19436 * lib/unistr/u-set.h: New file.
19438 * modules/unistr/u8-startswith: New file.
19439 * modules/unistr/u16-startswith: New file.
19440 * modules/unistr/u32-startswith: New file.
19441 * lib/unistr/u8-startswith.c: New file.
19442 * lib/unistr/u16-startswith.c: New file.
19443 * lib/unistr/u32-startswith.c: New file.
19444 * lib/unistr/u-startswith.h: New file.
19446 * modules/unistr/u8-stpcpy: New file.
19447 * modules/unistr/u16-stpcpy: New file.
19448 * modules/unistr/u32-stpcpy: New file.
19449 * lib/unistr/u8-stpcpy.c: New file.
19450 * lib/unistr/u16-stpcpy.c: New file.
19451 * lib/unistr/u32-stpcpy.c: New file.
19452 * lib/unistr/u-stpcpy.h: New file.
19454 * modules/unistr/u8-stpncpy: New file.
19455 * modules/unistr/u16-stpncpy: New file.
19456 * modules/unistr/u32-stpncpy: New file.
19457 * lib/unistr/u8-stpncpy.c: New file.
19458 * lib/unistr/u16-stpncpy.c: New file.
19459 * lib/unistr/u32-stpncpy.c: New file.
19460 * lib/unistr/u-stpncpy.h: New file.
19462 * modules/unistr/u8-strcat: New file.
19463 * modules/unistr/u16-strcat: New file.
19464 * modules/unistr/u32-strcat: New file.
19465 * lib/unistr/u8-strcat.c: New file.
19466 * lib/unistr/u16-strcat.c: New file.
19467 * lib/unistr/u32-strcat.c: New file.
19468 * lib/unistr/u-strcat.h: New file.
19470 * modules/unistr/u8-strchr: New file.
19471 * modules/unistr/u16-strchr: New file.
19472 * modules/unistr/u32-strchr: New file.
19473 * lib/unistr/u8-strchr.c: New file.
19474 * lib/unistr/u16-strchr.c: New file.
19475 * lib/unistr/u32-strchr.c: New file.
19477 * modules/unistr/u8-strcmp: New file.
19478 * modules/unistr/u16-strcmp: New file.
19479 * modules/unistr/u32-strcmp: New file.
19480 * lib/unistr/u8-strcmp.c: New file.
19481 * lib/unistr/u16-strcmp.c: New file.
19482 * lib/unistr/u32-strcmp.c: New file.
19484 * modules/unistr/u8-strcpy: New file.
19485 * modules/unistr/u16-strcpy: New file.
19486 * modules/unistr/u32-strcpy: New file.
19487 * lib/unistr/u8-strcpy.c: New file.
19488 * lib/unistr/u16-strcpy.c: New file.
19489 * lib/unistr/u32-strcpy.c: New file.
19490 * lib/unistr/u-strcpy.h: New file.
19492 * modules/unistr/u8-strcspn: New file.
19493 * modules/unistr/u16-strcspn: New file.
19494 * modules/unistr/u32-strcspn: New file.
19495 * lib/unistr/u8-strcspn.c: New file.
19496 * lib/unistr/u16-strcspn.c: New file.
19497 * lib/unistr/u32-strcspn.c: New file.
19498 * lib/unistr/u-strcspn.h: New file.
19500 * modules/unistr/u8-strdup: New file.
19501 * modules/unistr/u16-strdup: New file.
19502 * modules/unistr/u32-strdup: New file.
19503 * lib/unistr/u8-strdup.c: New file.
19504 * lib/unistr/u16-strdup.c: New file.
19505 * lib/unistr/u32-strdup.c: New file.
19506 * lib/unistr/u-strdup.h: New file.
19508 * modules/unistr/u8-strlen: New file.
19509 * modules/unistr/u16-strlen: New file.
19510 * modules/unistr/u32-strlen: New file.
19511 * lib/unistr/u8-strlen.c: New file.
19512 * lib/unistr/u16-strlen.c: New file.
19513 * lib/unistr/u32-strlen.c: New file.
19514 * lib/unistr/u-strlen.h: New file.
19516 * modules/unistr/u8-strmblen: New file.
19517 * modules/unistr/u16-strmblen: New file.
19518 * modules/unistr/u32-strmblen: New file.
19519 * lib/unistr/u8-strmblen.c: New file.
19520 * lib/unistr/u16-strmblen.c: New file.
19521 * lib/unistr/u32-strmblen.c: New file.
19523 * modules/unistr/u8-strmbtouc: New file.
19524 * modules/unistr/u16-strmbtouc: New file.
19525 * modules/unistr/u32-strmbtouc: New file.
19526 * lib/unistr/u8-strmbtouc.c: New file.
19527 * lib/unistr/u16-strmbtouc.c: New file.
19528 * lib/unistr/u32-strmbtouc.c: New file.
19530 * modules/unistr/u8-strncat: New file.
19531 * modules/unistr/u16-strncat: New file.
19532 * modules/unistr/u32-strncat: New file.
19533 * lib/unistr/u8-strncat.c: New file.
19534 * lib/unistr/u16-strncat.c: New file.
19535 * lib/unistr/u32-strncat.c: New file.
19536 * lib/unistr/u-strncat.h: New file.
19538 * modules/unistr/u8-strncmp: New file.
19539 * modules/unistr/u16-strncmp: New file.
19540 * modules/unistr/u32-strncmp: New file.
19541 * lib/unistr/u8-strncmp.c: New file.
19542 * lib/unistr/u16-strncmp.c: New file.
19543 * lib/unistr/u32-strncmp.c: New file.
19545 * modules/unistr/u8-strncpy: New file.
19546 * modules/unistr/u16-strncpy: New file.
19547 * modules/unistr/u32-strncpy: New file.
19548 * lib/unistr/u8-strncpy.c: New file.
19549 * lib/unistr/u16-strncpy.c: New file.
19550 * lib/unistr/u32-strncpy.c: New file.
19551 * lib/unistr/u-strncpy.h: New file.
19553 * modules/unistr/u8-strnlen: New file.
19554 * modules/unistr/u16-strnlen: New file.
19555 * modules/unistr/u32-strnlen: New file.
19556 * lib/unistr/u8-strnlen.c: New file.
19557 * lib/unistr/u16-strnlen.c: New file.
19558 * lib/unistr/u32-strnlen.c: New file.
19559 * lib/unistr/u-strnlen.h: New file.
19561 * modules/unistr/u8-strpbrk: New file.
19562 * modules/unistr/u16-strpbrk: New file.
19563 * modules/unistr/u32-strpbrk: New file.
19564 * lib/unistr/u8-strpbrk.c: New file.
19565 * lib/unistr/u16-strpbrk.c: New file.
19566 * lib/unistr/u32-strpbrk.c: New file.
19567 * lib/unistr/u-strpbrk.h: New file.
19569 * modules/unistr/u8-strrchr: New file.
19570 * modules/unistr/u16-strrchr: New file.
19571 * modules/unistr/u32-strrchr: New file.
19572 * lib/unistr/u8-strrchr.c: New file.
19573 * lib/unistr/u16-strrchr.c: New file.
19574 * lib/unistr/u32-strrchr.c: New file.
19576 * modules/unistr/u8-strspn: New file.
19577 * modules/unistr/u16-strspn: New file.
19578 * modules/unistr/u32-strspn: New file.
19579 * lib/unistr/u8-strspn.c: New file.
19580 * lib/unistr/u16-strspn.c: New file.
19581 * lib/unistr/u32-strspn.c: New file.
19582 * lib/unistr/u-strspn.h: New file.
19584 * modules/unistr/u8-strstr: New file.
19585 * modules/unistr/u16-strstr: New file.
19586 * modules/unistr/u32-strstr: New file.
19587 * lib/unistr/u8-strstr.c: New file.
19588 * lib/unistr/u16-strstr.c: New file.
19589 * lib/unistr/u32-strstr.c: New file.
19590 * lib/unistr/u-strstr.h: New file.
19592 * modules/unistr/u8-strtok: New file.
19593 * modules/unistr/u16-strtok: New file.
19594 * modules/unistr/u32-strtok: New file.
19595 * lib/unistr/u8-strtok.c: New file.
19596 * lib/unistr/u16-strtok.c: New file.
19597 * lib/unistr/u32-strtok.c: New file.
19598 * lib/unistr/u-strtok.h: New file.
19600 * modules/unistr/u8-uctomb: New file.
19601 * modules/unistr/u16-uctomb: New file.
19602 * modules/unistr/u32-uctomb: New file.
19603 * lib/unistr/u8-uctomb.c: New file.
19604 * lib/unistr/u16-uctomb.c: New file.
19605 * lib/unistr/u32-uctomb.c: New file.
19607 * MODULES.html.sh (Unicode string functions): Add the new modules.
19609 2007-01-08 Bruno Haible <bruno@clisp.org>
19611 * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
19612 modules directory. Filter out CVS, ChangeLog, COPYING, README also from
19615 2007-01-08 Karl Berry <karl@gnu.org>
19617 * doc/error.texi: mention that main() fns must set program_name
19618 when progname is used.
19620 2007-01-08 Paul Eggert <eggert@cs.ucla.edu>
19622 * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
19623 WCTYPE_H is empty, for the benefit of builds from non-distclean
19624 directories. Problem reported by Eric Blake in
19625 <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
19627 2007-01-08 Bruno Haible <bruno@clisp.org>
19629 * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
19630 PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
19631 * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
19632 PROVIDE_CANONICALIZE_FILENAME_MODE.
19633 * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
19635 2007-01-08 Bruno Haible <bruno@clisp.org>
19637 * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
19638 * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
19639 Use !GNULIB_FTS instead of _LGPL_PACKAGE.
19640 * lib/fts.c: Likewise.
19641 * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
19643 2006-12-25 Bruno Haible <bruno@clisp.org>
19645 * modules/utf8-ucs4-safe: New file.
19646 * lib/utf8-ucs4-safe.h: New file.
19647 * lib/unistr/utf8-ucs4-safe.c: New file.
19649 * modules/utf16-ucs4-safe: New file.
19650 * lib/utf16-ucs4-safe.h: New file.
19651 * lib/unistr/utf16-ucs4-safe.c: New file.
19653 * MODULES.html.sh (Unicode string functions): Add the new modules.
19655 2007-01-08 Bruno Haible <bruno@clisp.org>
19657 * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
19658 (Depends-on): Add unitypes.
19659 * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
19660 (u8_mbtouc_aux): Move out to separate file.
19661 (u8_mbtouc): Use ucs4_t, uint8_t types.
19662 * lib/unistr/utf8-ucs4.c: New file.
19664 * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
19665 (Depends-on): Add unitypes.
19666 * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
19667 (u16_mbtouc_aux): Move out to separate file.
19668 (u16_mbtouc): Use ucs4_t, uint16_t types.
19669 * lib/unistr/utf16-ucs4.c: New file.
19671 * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
19672 (Depends-on): Add unitypes.
19673 * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
19674 (u8_uctomb_aux): Move out to separate file.
19675 (u8_uctomb): Use ucs4_t, uint8_t types.
19676 * lib/unistr/ucs4-utf8.c: New file.
19678 * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
19679 (Depends-on): Add unitypes.
19680 * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
19681 (u16_uctomb_aux): Move out to separate file.
19682 (u16_uctomb): Use ucs4_t, uint16_t types.
19683 * lib/unistr/ucs4-utf16.c: New file.
19685 2006-12-25 Bruno Haible <bruno@clisp.org>
19687 * modules/unitypes: New file.
19688 * lib/unitypes.h: New file.
19689 * MODULES.html.sh (func_all_modules): New section "Unicode string
19690 functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
19691 this section. Add unitypes.
19693 2007-01-08 Bruno Haible <bruno@clisp.org>
19695 Avoid variable names that conflict with those from libtool.
19696 * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
19697 AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
19698 shlibext to acl_shlibext, libname_spec to acl_libname_spec,
19699 library_names_spec to acl_library_names_spec, hardcode_* to
19701 Reported by Ralf Wildenhues.
19703 2007-01-08 Bruno Haible <bruno@clisp.org>
19705 * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
19707 * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
19709 * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
19710 * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
19712 * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
19714 * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
19715 * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
19716 * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
19717 * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
19719 * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
19721 * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
19722 * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
19723 GC_USE_<algorithm>.
19724 * lib/gc-libgcrypt.c: Likewise.
19725 * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
19726 * modules/gc-arctwo (configure.ac): Likewise.
19727 * modules/gc-des (configure.ac): Likewise.
19728 * modules/gc-hmac-md5 (configure.ac): Likewise.
19729 * modules/gc-hmac-sha1 (configure.ac): Likewise.
19730 * modules/gc-md2 (configure.ac): Likewise.
19731 * modules/gc-md4 (configure.ac): Likewise.
19732 * modules/gc-md5 (configure.ac): Likewise.
19733 * modules/gc-random (configure.ac): Likewise.
19734 * modules/gc-rijndael (configure.ac): Likewise.
19735 * modules/gc-sha1 (configure.ac): Likewise.
19737 2007-01-08 Bruno Haible <bruno@clisp.org>
19739 * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
19741 * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
19743 * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
19745 * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
19746 * modules/fcntl-safer (configure.ac): Likewise.
19747 * modules/fopen-safer (configure.ac): Likewise.
19748 * modules/fwriteerror (configure.ac): Likewise. Remove explicit
19749 GNULIB_FWRITEERROR macro definition.
19751 2007-01-08 Bruno Haible <bruno@clisp.org>
19753 * m4/gnulib-common.m4: New file.
19754 * gnulib-tool (func_get_autoconf_snippet): Undo last change.
19755 (func_get_filelist): Add m4/gnulib-common.m4.
19757 2007-01-08 Bruno Haible <bruno@clisp.org>
19759 * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
19762 2007-01-08 Jim Meyering <jim@meyering.net>
19764 Use a more robust test for a "can't happen" condition.
19765 * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
19766 narrowed the st_size value. Presuming the "can't happen" condition
19767 is true, that narrowing could conceivably convert an invalid st_size
19768 value into a valid one. Instead, use a change based on Matthew
19769 Woehlke's original patch.
19771 Slight readability improvement: use an assert-like macro
19772 in place of literal "abort ()" uses.
19773 * lib/fts.c (fts_assert): Define.
19774 (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
19775 Use this macro instead of a bare 'abort'.
19777 2007-01-05 Paul Eggert <eggert@cs.ucla.edu>
19779 Don't worry about using IRIX 5.3's wctype.h broken definitions;
19780 simply work around them.
19781 * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
19782 (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
19783 (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
19785 Don't bother to define as macros, since the standard doesn't require it.
19786 * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
19787 longer worry about IRIX 5.3.
19788 (HAVE_WCTYPE_CTMP_BUG): Remove.
19790 2007-01-04 Paul Eggert <eggert@cs.ucla.edu>
19792 * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
19793 not wint_t. Also, include <ctype.h>, to fix another IRIX bug.
19794 * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
19795 Problems reported by Georg Schwarz for IRIX 5.3.
19797 * gnulib-tool (autoconf_minversion): Take the maximum version number
19798 found, not the minimum. Problem reported by James Youngman.
19800 2007-01-03 Karl Berry <karl@gnu.org>
19802 * doc/error.texi: new file, explaining interaction with progname.
19803 * doc/gnulib.texi: include it. Update copyright.
19805 2007-01-03 Simon Josefsson <simon@josefsson.org>
19807 * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
19808 AC_CANONICAL_HOST, to improve autobuild outputs.
19810 2007-01-03 Paolo Bonzini <bonzini@gnu.org>
19811 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
19813 * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
19814 sockets, server sockets, and other file descriptors. Count errors
19815 to compute the return value. Reorder the code a bit to be easier
19816 to follow. Don't set event bits that were not requested (except
19817 POLLERR and POLLHUP).
19819 2007-01-01 Bruno Haible <bruno@clisp.org>
19821 * modules/lchmod (Include): Require lchmod.h, not lchown.h.
19823 2007-01-03 Jim Meyering <jim@meyering.net>
19825 * modules/fts-lgpl (Depends-on): Add i-ring. Reported by Bruno Haible.
19827 2007-01-02 Bruno Haible <bruno@clisp.org>
19829 * modules/settime (Include): Require timespec.h.
19830 * modules/nanosleep (Include): Likewise.
19832 2007-01-01 Bruno Haible <bruno@clisp.org>
19834 * gnulib-tool (func_emit_copyright_notice): Bump year.
19835 (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
19837 2007-01-01 Bruno Haible <bruno@clisp.org>
19839 Improve support for OpenBSD.
19840 * build-aux/config.rpath (libname_spec): Export.
19841 (library_names_spec): New variable. Export.
19842 * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
19843 library_names_spec from the config.rpath output. Locate shared library
19844 through the name pattern in library_names_spec.
19846 2007-01-01 Eric Blake <ebb9@byu.net>
19848 * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
19850 2006-12-30 Paul Eggert <eggert@cs.ucla.edu>
19852 * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
19853 Rewrite so as not to assume GNU sort or "tail -1". Also, don't
19854 assume the C locale, and avoid an "eval" that could cause trouble.
19855 Problem with SORT reported by Bob Proulx.
19857 * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
19858 Define. Trivial patch from Henning Nielsen Lund, originally
19859 sent to bug-grep@gnu.org today.
19861 2006-12-29 Paul Eggert <eggert@cs.ucla.edu>
19863 * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
19864 struct stat. Problem reported by Henning Nielsen Lund.
19865 * lib/acl.c: Include acl.h first, to check interface. Don't
19866 bother to include sys/types.h and sys/stat.h again.
19868 2006-12-28 Paul Eggert <eggert@cs.ucla.edu>
19870 Import the following change from libc; problem reported by
19873 2005-10-13 Ulrich Drepper <drepper@redhat.com>
19876 * lib/argp.h: Remove __NTH for __argp_usage inline function.
19878 2006-12-28 Jim Meyering <jim@meyering.net>
19880 * build-aux/announce-gen: Do not assume that the package
19881 builds any of tar.gz, tar.bz2, and .xdelta files.
19882 Suggestion from Simon Josefsson.
19884 2006-12-28 Simon Josefsson <simon@josefsson.org>
19886 * modules/announce-gen: New file.
19888 2006-12-27 Paul Eggert <eggert@cs.ucla.edu>
19890 * lib/mbchar.h: Just include <wctype.h>; the wctype module
19891 handles its gotchas now.
19892 * lib/mbswidth.c: Likewise.
19893 * lib/wcwidth.h: Likewise.
19894 * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
19895 and iswcntrl; the wctype module does this stuff now.
19896 * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
19897 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
19898 * modules/mbchar (Depends-on): Add wctype.
19899 * modules/mbswidth (Depends-on): Likewise.
19900 * modules/wcwidth (Depends-on): Likewise.
19902 2006-12-27 Eric Blake <ebb9@byu.net>
19904 * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
19905 module uses more than what <wctype.h> is required to provide.
19907 2006-12-26 Eric Blake <ebb9@byu.net>
19909 * gnulib-tool (sed_extract_prog): Avoid space-tab.
19911 2006-12-26 Eric Blake <ebb9@byu.net>
19913 * modules/absolute-header: New module.
19914 * modules/fcntl (Depends-on): Depend on it.
19915 * modules/inttypes (Depends-on): Likewise.
19916 * modules/stdint (Depends-on): Likewise.
19917 * modules/sys_stat (Depends-on): Likewise.
19918 * modules/wctype (Depends-on): Likewise.
19919 * MODULES.html.sh (Support for building libraries and
19920 executables): Document it.
19922 2006-12-25 Paul Eggert <eggert@cs.ucla.edu>
19924 * gnulib-tool (SED): Remove, undoing previous change.
19925 The problem was that it broke coreutils on Solaris, because
19926 "sed --posix" leaked into a makefile.
19927 (sed): New alias, if 'alias' and GNU sed.
19929 2006-12-24 Jim Meyering <jim@meyering.net>
19931 Work around an fchownat bug in glibc-2.4:
19932 http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
19933 This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
19934 in spite of the -P option.
19935 * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
19937 (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
19938 * modules/openat (Files): Add lib/fchownat.c.
19939 * lib/openat.c (fchownat): Don't define here. Move to...
19940 * lib/fchownat.c: ...this new file.
19942 2006-12-23 Paul Eggert <eggert@cs.ucla.edu>
19944 Fix bug reported by Bruno Haible in
19945 <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
19946 where quotearg.c didn't compile on Mac OS X 10.2 because it
19947 lacks <wchar.h> and wint_t.
19948 * lib/wctype_.h (__wctype_wint_t): New type.
19949 Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
19950 (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
19951 (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
19952 Arg is now of type __wctype_wint_t, not wint_t.
19953 * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
19954 substitute HAVE_WINT_T.
19955 * modules/wctype (Files): Add m4/wint_t.m4.
19956 (wctype.h): Substitute HAVE_WINT_T.
19958 2006-12-23 Bruno Haible <bruno@clisp.org>
19960 * lib/safe-read.h [C++]: Wrap declarations in extern "C".
19962 2006-12-23 Bruno Haible <bruno@clisp.org>
19964 * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
19966 Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
19969 2006-12-22 Bruno Haible <bruno@clisp.org>
19971 * lib/copy-file.c: Include acl.h.
19972 (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
19973 Close the file descriptors only after being done with copy_acl.
19974 * modules/copy-file (Depends-on): Add acl.
19976 2006-12-22 Bruno Haible <bruno@clisp.org>
19978 * gnulib-tool (SED): New variable.
19979 Use $SED instead of sed everywhere.
19981 2006-12-22 Bruno Haible <bruno@clisp.org>
19983 * modules/no-c++: New file.
19984 * m4/no-c++.m4: New file.
19985 * MODULES.html.sh (Support for building libraries and executables):
19988 2006-12-22 Paul Eggert <eggert@cs.ucla.edu>
19990 * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
19991 Include <limits.h>, and use its INT_MAX to rewrite the
19992 j loop so that it does not overflow 'int'. Problem reported by
19994 <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
19995 Play it safe by shifting left by 1 rather than multiplying by 2,
19996 as GCC is less likely to optimize this away when the value
19997 is signed (when it assumes overflow leads to undefined behavior).
19998 Also, don't assume time_t uses two's complement.
20000 2006-12-21 Paul Eggert <eggert@cs.ucla.edu>
20002 * MODULES.html.sh: New module wctype.
20003 * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
20004 * lib/fnmatch.c: Don't bother to include <wchar.h> before
20005 <wctype.h>, since the new wctype module should fix this.
20006 * lib/quotearg.c: Include <wctype.h> unconditionally, since
20007 the wctype module should arrange for it.
20008 * lib/regex_internal.h: Likewise.
20009 * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
20010 since the wctype module should handle this now.
20011 * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
20012 * modules/fnmatch (Depends-on): Add wctype.
20013 * modules/quotearg (Depends-on): Likewise.
20014 * modules/regex (Depends-on): Likewise.
20016 2006-12-19 Bruno Haible <bruno@clisp.org>
20018 * lib/strdup.h [C++]: Wrap definitions in extern "C".
20019 Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
20021 2006-12-19 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20023 * modules/savewd (Depends-on): Fix dependency on fcntl.
20025 2006-12-18 Paul Eggert <eggert@cs.ucla.edu>
20027 * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
20028 conforms to C99, rather than relying on the user's environment
20029 setting of STDINT_H.
20031 2006-12-18 Paul Eggert <eggert@cs.ucla.edu>
20032 and Eric Blake <ebb9@byu.net>
20034 * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
20035 This is more consistent with the other defines here.
20036 * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
20037 Port to z/OS. Problem reported by Paul Gilmartin.
20038 Change local vars to use gl_ prefix rather than ac_.
20039 Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
20040 with other defines.
20041 * modules/double-slash-root: New module.
20042 * modules/dirname (Files): Remove m4/double-slash-root.m4.
20043 (Depends-on): Add double-slash-root.
20044 * MODULES.html.sh (File system functions): Mention new module.
20046 2006-12-14 Paul Eggert <eggert@cs.ucla.edu>
20048 * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
20049 (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
20050 This is for the benefit of gzip, which doesn't do i18n.
20052 2006-12-12 Jim Meyering <jim@meyering.net>
20054 * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
20055 Reported by Andreas Schwab <schwab@suse.de>.
20057 2006-12-12 Bruno Haible <bruno@clisp.org>
20059 Merge these changes.
20060 2006-09-05 Bruno Haible <bruno@clisp.org>
20061 * lib/iconvme.c (iconv_string): No need to save and restore errno when
20062 iconv_alloc succeeded.
20063 (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
20064 sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
20065 test for " && dest " at the end - dest is always != NULL there. Call
20066 iconv with 4xNULL arguments initially, to reset the state. Call iconv
20067 with 2xNULL arguments, also to flush the state storage. Handle the
20068 IRIX iconv behaviour. Realloc the final result, to throw away unused
20071 2006-12-11 Paul Eggert <eggert@cs.ucla.edu>
20073 * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
20074 and fchmodat unconditionally, since glibc 2.4 has them.
20075 Problem reported by Arkadiusz Miskiewicz.
20077 2006-12-10 Bruno Haible <bruno@clisp.org>
20079 * gnulib-tool (func_import): Show the include files only for those
20080 modules that are copied and specified.
20081 Reported by Karl Berry.
20083 2006-12-08 Jim Meyering <jim@meyering.net>
20085 * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
20086 Instead, use Emacs' time-stamp write hook. Note that the time is UTC.
20088 * build-aux/announce-gen: Add two new options, both optional:
20089 --bootstrap-tools=TOOL_LIST
20090 a comma-separated list of tools, e.g.,
20091 autoconf,automake,bison,gnulib
20092 --gnulib-snapshot-date=DATE
20093 if gnulib is in the bootstrap tool list,
20094 then report this as the snapshot date.
20095 If not specified, use the current date/time.
20096 If you specify a date here, be sure it's UTC.
20098 2006-12-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20100 * tests/test-argp-2.sh: Fix test to match actual output.
20101 (func_compare): Fix sed script to be portable.
20103 2006-12-05 Paul Eggert <eggert@cs.ucla.edu>
20105 * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
20106 workaround for this case. It is not autoconfigured now; offhand
20107 it's hard to see how to autoconfigure it.
20109 2006-12-03 Paul Eggert <eggert@cs.ucla.edu>
20111 * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
20112 a directory that is about to be chowned. Such a directory's
20113 initial file permissions should permit the owner only and this
20114 should not be changed until after the chown, since the group and
20115 other bits would be incorrect if they granted permission before
20118 Fix porting problem for iswctype reported by Georg Schwarz in:
20119 http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
20120 * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
20121 * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
20122 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
20123 * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
20125 2006-12-03 Jim Meyering <jim@meyering.net>
20127 * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
20128 p->fts_statp may not yet be defined.
20129 (fts_read): Instead, set it in the caller, once p->fts_statp is
20130 sure to be defined, and corresponds to a top-level directory.
20131 This bug made du -x fail. Here's the coreutils test case:
20132 http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
20133 Reported by Mike Frysinger.
20135 2006-12-01 Jim Meyering <jim@meyering.net>
20137 * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
20138 build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
20139 Reported by Simon Josefsson.
20141 2006-11-30 Jim Meyering <jim@meyering.net>
20143 * m4/warning.m4: Use the all-permissive copyright notice
20144 recommended by RMS (rather than LGPL).
20145 * m4/vararrays.m4: Likewise.
20146 * m4/flexmember.m4: Likewise.
20148 2006-11-29 Bruno Haible <bruno@clisp.org>
20150 * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
20151 noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
20153 Reported by Simon Josefsson <simon@josefsson.org>.
20155 2006-11-28 James Youngman <jay@gnu.org>
20157 * README: Advise users that they might find the bug-gnulib@gnu.org
20158 and autotools-announce@gnu.org mailing lists useful.
20160 2006-11-28 Bruno Haible <bruno@clisp.org>
20162 * m4/ptrdiff_max.m4: Remove file.
20164 2006-11-21 Bruno Haible <bruno@clisp.org>
20166 * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
20168 (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
20169 * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
20171 (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
20172 * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
20174 (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
20176 2006-11-28 Jim Meyering <jim@meyering.net>
20178 * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
20179 warning from "gcc -Wshadow" about shadowing the builtin.
20181 2006-11-27 Bruno Haible <bruno@clisp.org>
20183 * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
20185 (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
20187 2006-11-27 Bruno Haible <bruno@clisp.org>
20188 Paul Eggert <eggert@cs.ucla.edu>
20190 * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
20192 2006-11-26 Bruno Haible <bruno@clisp.org>
20194 * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
20195 noinst_LTLIBRARIES.
20197 2006-11-27 Paul Eggert <eggert@cs.ucla.edu>
20198 Bruno Haible <bruno@clisp.org>
20200 * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
20201 if compiling with "gcc -ansi".
20203 2006-11-26 Paul Eggert <eggert@cs.ucla.edu>
20205 Fix some incompatibilities with gcc -ansi -pedantic.
20206 * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
20207 if compiling pedantically with GCC, unless it's C99 or later.
20208 Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
20209 it mishandles gcc -ansi -pedantic as well.
20210 * lib/regex_internal.h (re_token_t): Don't use enum bitfields
20212 * lib/regexec.c (check_node_accept_bytes): Don't use auto
20213 initializers for struct if -pedantic, unless it's C99 or later.
20215 2006-11-25 Nix <nix@esperi.org.uk> (tiny change)
20217 * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
20218 Don't close an fd more than once. Identical atimes indicate
20219 success, not failure.
20221 2006-11-22 Robinson Mittmann <bob@hoplon.com> (tiny change)
20223 * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
20225 2006-11-23 Jim Meyering <jim@meyering.net>
20227 * build-aux/announce-gen: New file. From coreutils.
20229 2006-11-22 Jim Meyering <jim@meyering.net>
20231 Work around a compile-time error from the HP-UX 11.00 /bin/cc.
20232 * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
20233 (fts_read): Use a temporary to narrow the overused st_size member
20234 before using it in a switch statement. Reported by Matthew Woehlke.
20236 * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
20237 * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
20239 2006-11-20 Bruno Haible <bruno@clisp.org>
20241 * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
20242 changequote instead of pairs of brackets.
20243 Reported by Andreas Schwab <schwab@suse.de>.
20245 2006-11-21 Jim Meyering <jim@meyering.net>
20247 * lib/fts.c (fts_safe_changedir): Move a declaration "up",
20248 so as to remain compatible with older compilers.
20249 Patch from Michael Deutschmann.
20251 2006-11-20 Paul Eggert <eggert@cs.ucla.edu>
20253 * MODULES.html.sh (File system functions): Add openat.
20255 * lib/openat.h (rpl_fstatat): New macro, if
20256 [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
20257 (fstatat): Define to rpl_fstatat under the same conditions,
20258 unless COMPILING_FSTATAT.
20259 * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
20260 seems to have the bug.
20261 * lib/fstatat.c: New file.
20262 * modules/openat (Files): Add it.
20264 2006-11-20 Bruno Haible <bruno@clisp.org>
20266 * Makefile: New file.
20268 2006-11-20 Jim Meyering <jim@meyering.net>
20270 The beginnings of syntax-related checks for gnulib.
20271 * lib/Makefile: New file.
20272 * lib/t-idcache: New script. Ensure that the two halves of
20273 idcache.c stay in sync.
20275 * lib/idcache.c: Adjust comments in user- and group- portions to
20276 be more accurate, and to be consistent with one another.
20278 2006-11-20 Jim Meyering <jim@meyering.net>
20280 * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
20281 continue using the flexible array member (thus, this module performs
20282 half as many malloc calls), with the addition that...
20283 (getgroup, getuser): Consistently record a non-match via an empty
20284 "name" string, and map an empty string match to a NULL return value.
20285 * modules/idcache (Depends-on): Re-add flexmember.
20287 * lib/idcache.c (getuser): Remove all uses of the register keyword.
20288 (getuidbyname, getgroup, getgidbyname): Likewise.
20290 Use cleaner syntax: NULL rather than 0.
20291 * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
20293 2006-11-20 Paul Eggert <eggert@cs.ucla.edu>
20295 * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
20296 It mishandled the case where the group was missing.
20297 Problem reported by Greg Schafer.
20298 * modules/idcache: Likewise.
20300 2006-11-18 Jim Meyering <jim@meyering.net>
20302 * check-module (%exempt_header): Add exception for some
20303 conditionally-included headers.
20305 * modules/i-ring (Depends-on): Add verify.
20306 (License): Change to LGPL.
20308 2006-11-16 Paul Eggert <eggert@cs.ucla.edu>
20310 * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
20311 * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
20312 and inttostr.h. Use snprintf rather than uinttostr, so that
20313 LGPLed code doesn't depend on GPLed.
20315 2006-11-17 Paul Eggert <eggert@cs.ucla.edu>
20317 * modules/inline (License): Change from GPL to LGPL.
20319 2006-11-17 Jim Meyering <jim@meyering.net>
20321 * modules/d-type (License): Switch to LGPL.
20323 2006-11-15 Bruno Haible <bruno@clisp.org>
20325 * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
20327 2006-11-15 Eric Blake <ebb9@byu.net>
20329 * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
20330 the module dependency.
20332 2006-11-15 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
20333 Bruno Haible <bruno@clisp.org>
20335 * gnulib-tool (func_create_testdir): Add license consistency check.
20337 2006-11-15 Eric Blake <ebb9@byu.net>
20339 * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
20340 random "(cached)" in configure output.
20342 2006-11-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20344 * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
20345 test for conforming inttypes.h is both announced and cached.
20347 * MODULES.html.sh (seen_modules, seen_files): New variables.
20348 (func_module): Rewrite to use a few less gnulib-tool and sed
20349 invocations. Avoid a couple of quadratic algorithms for ...
20350 (missed_modules, missed_files): ... these, with ...
20351 (func_append, func_tmpdir): ... these new functions, from
20352 gnulib-tool. Analogously, install traps for cleanup.
20354 * tests/test-gc.c (main): Remove unused variables.
20355 * tests/test-read-file.c: Include stdlib.h, for 'free'.
20357 2006-11-14 Paul Eggert <eggert@cs.ucla.edu>
20359 * modules/inttostr (License): Change to LGPL.
20361 2006-11-14 Eric Blake <ebb9@byu.net>
20363 * modules/tempname (License): Change to LGPL.
20365 2006-11-14 Eric Blake <ebb9@byu.net>
20367 * doc/functions.texi (Function Portability): *printf functions on
20368 Cygwin now understand all POSIX size specifiers.
20370 2006-11-14 Bruno Haible <bruno@clisp.org>
20372 * modules/c-ctype (License): Change to LGPL.
20374 2006-11-12 Bruno Haible <bruno@clisp.org>
20376 * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
20377 AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
20378 for GNOME libraries, for which the include files are installed in
20379 subdirectories of $prefix/include.
20381 2006-11-12 Bruno Haible <bruno@clisp.org>
20383 * m4/lib-link.m4: Require at least autoconf-2.54.
20384 (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
20385 name to underscores for the --with option.
20387 2006-11-13 Bruno Haible <bruno@clisp.org>
20389 * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
20390 the tests directory.
20391 Reported by Ralf Wildenhues.
20393 2006-11-13 Bruno Haible <bruno@clisp.org>
20395 * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
20396 (func_emit_initmacro_end): Undo the override here.
20397 (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
20398 Works around the famous automake error in coreutils.
20400 2006-11-13 Eric Blake <ebb9@byu.net>
20402 * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
20403 element, not its node.
20405 2006-11-12 Bruno Haible <bruno@clisp.org>
20407 * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
20408 '$(top_srcdir)/build-aux/', taking into account the real auxdir.
20410 2006-11-12 Bruno Haible <bruno@clisp.org>
20412 * gnulib-tool: New option --local-symlink.
20413 (func_usage): Document it.
20414 (lsymbolic): New variable.
20415 (func_import, func_create_testdir): If --symlink was not specified,
20416 test whether --local-symlink was specified and the file comes from
20417 the local_gnulib_dir.
20419 2006-11-12 Bruno Haible <bruno@clisp.org>
20421 * gnulib-tool (func_ln): New function.
20422 (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
20424 2006-11-12 Bruno Haible <bruno@clisp.org>
20426 Finish support for source files in subdirectories.
20427 * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
20428 are in subdirectories, set uses_subdirs and add 'subdir-objects' to
20430 (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
20432 2006-11-12 Bruno Haible <bruno@clisp.org>
20434 * gnulib-tool (func_get_automake_snippet): Synthesize also an
20435 EXTRA_lib_SOURCES augmentation.
20436 (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
20438 2006-11-12 Jim Meyering <jim@meyering.net>
20440 Make fts (in FTS_CWDFD mode) more efficient by caching a few open
20441 file descriptors. This also averts a failure on systems with
20442 native openat support when a traversed directory lacks "x" access.
20443 * lib/fts_.h: Include "i-ring.h"
20444 (struct FTS) [fts_fd_ring]: New member.
20445 * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
20446 (FCHDIR): Add parentheses.
20447 (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
20448 (cwd_advance_fd): Add a 3rd parameter. Adjust all callers.
20449 When descending, rather than simply closing the previous
20450 fts_cwd_fd value, push that file descriptor onto the ring.
20451 (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
20452 (fts_open): Initialize the new fd_ring member.
20453 (fts_close): Clear the ring.
20454 (fts_safe_changedir): When possible, use our new fd_ring to skip
20455 the diropen and fstat and dev/ino comparison that would normally
20456 accompany a virtual `chdir ("..")'.
20458 * modules/fts (Depends-on): Add i-ring.
20459 * modules/i-ring: New module.
20460 * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
20461 * m4/i-ring.m4: New file.
20463 2006-11-12 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20465 * gnulib-tool (func_create_testdir): Fix replacement of
20466 `build-aux' in configure.ac. Run autotools in gltests
20468 (func_create_testdir, func_create_megatestdir, test): There is
20469 no need for '--force' in most autotool invocations in a new
20470 tree. Actually fail the whole test if any of the tools, or the
20471 configure or make stages fail.
20473 Sync from Automake.
20474 * build-aux/gnupload: Revert last change. Add pointer to upload
20475 instructions of the GNU Maintenance Instructions.
20476 Suggestion by Karl Berry.
20478 2006-11-10 Jim Meyering <jim@meyering.net>
20480 * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
20482 2006-11-09 Paul Eggert <eggert@cs.ucla.edu>
20484 * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
20485 (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
20486 (bind_textdomain_codeset) [! ENABLE_NLS]:
20487 Evaluate all the arguments. That way, callers get compatible behavior
20488 if the arguments have side effects. Also, it avoids some GCC
20489 diagnostics in some cases; Joel E. Denny reported problems when Bison
20490 was configured with --enable-gcc-warnigs.
20492 2006-11-10 Jim Meyering <jim@meyering.net>
20494 * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
20495 relevant options in CFLAGS (like -O, -fno-inline) are taken into
20498 2006-11-10 Jim Meyering <jim@meyering.net>
20500 * modules/inline: New file/module.
20501 * modules/xalloc (Files): Remove m4/inline.m4.
20502 (Depends-on): Add inline, instead.
20503 * modules/oset: Likewise.
20504 * modules/list: Likewise.
20506 2006-11-09 Paul Eggert <eggert@cs.ucla.edu>
20508 * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
20509 Problem reported by Matthew Woehlke.
20511 2006-11-09 Bruno Haible <bruno@clisp.org>
20513 * lib/tempname.c (gen_tempname): Remove variant that invokes
20515 * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
20518 2006-11-08 Bruno Haible <bruno@clisp.org>
20520 * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
20521 to 'yes' instead of 'cross-compiling'.
20523 2006-11-08 Paul Eggert <eggert@cs.ucla.edu>
20525 * lib/quotearg.h (quotearg_free): New decl.
20526 * lib/quotearg.c (quotearg_free): New function.
20527 (slot0, nslots, slotvec0, slotvec):
20528 Now file-scope so that quotearg_free can get at them.
20530 2006-11-08 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20532 Sync from Automake.
20533 * build-aux/gnupload: Add missing 'gnu' to example URL.
20534 Report by Karl Berry.
20536 2006-11-08 Bruno Haible <bruno@clisp.org>
20538 * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
20539 Suggested by Paul Eggert.
20541 2006-11-08 Jim Meyering <jim@meyering.net>
20543 * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
20544 It's already included if !_LIBC.
20545 (fts_safe_changedir): Add a comment.
20547 2006-11-07 Paul Eggert <eggert@cs.ucla.edu>
20549 * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
20550 Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
20553 * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
20554 definitions up, to avoid colliding with change below.
20555 (static_inline) [HAVE_INLINE]: New macro.
20556 (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
20557 Provide extern decls when !HAVE_INLINE. Do not define unless
20558 static_inline is defined, either by us or by xmalloc.c. Use
20559 static_inline rather than static inline.
20560 (XCALLOC): Optimize sizeof(T) = 1 case.
20561 * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
20563 2006-11-07 Bruno Haible <bruno@clisp.org>
20565 * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
20566 * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
20568 * modules/xalloc (Files): Add m4/inline.m4.
20570 2006-11-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20572 * README: Fix typo.
20573 * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
20574 (Miscellanous Notes): ...from this.
20576 2006-11-07 Paul Eggert <eggert@cs.ucla.edu>
20578 * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
20579 Mention that offsetof should be used instead of sizeof.
20582 2006-11-07 Bruno Haible <bruno@clisp.org>
20584 * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
20586 2006-11-06 Paul Eggert <eggert@cs.ucla.edu>
20588 Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
20589 * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
20590 (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
20591 (gl_tree_add_before, gl_tree_add_after):
20592 Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
20593 * lib/gl_anyhash_list2.h (hash_resize): Likewise.
20594 * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
20595 (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
20596 (gl_linked_add_after, gl_linked_add_at): Likewise.
20597 * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
20598 (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
20599 (gl_tree_add_before, gl_tree_add_after): Likewise.
20600 * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
20601 * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
20602 * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
20604 2006-11-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20606 * lib/gl_oset.h: Use C comment style, not C++ comment style.
20608 2006-11-06 Bruno Haible <bruno@clisp.org>
20610 * m4/inline.m4: New file.
20611 * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
20612 * modules/list (Files): Add m4/inline.m4.
20613 * modules/oset (Files): Likewise.
20615 2006-11-06 Paul Eggert <eggert@cs.ucla.edu>
20617 * lib/idcache.c: Include <stddef.h>, for offsetof.
20618 (struct userid.name): Change from char * to a flexible array member.
20620 * modules/idcache (Depends-on): Add flexmember.
20622 * MODULES.html.sh (Core language properties): New module flexmember.
20623 * modules/flexmember, m4/flexmember.m4: New files.
20625 * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
20626 inline functions that are identical with the old xnmalloc_inline,
20627 xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c. This is so
20628 that we can avoid some unnecessary integer multiplications and
20629 divisions in the common case where the element size is known at
20631 (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
20633 (xnboundedmalloc): Remove.
20634 (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
20635 arguments, for consistency with rest of this header.
20636 (xcharalloc): Rewrite using XNMALLOC.
20637 * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
20638 (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove. The *_inline
20639 versions have been moved to lib/xalloc.h and renamed to be the
20640 non-*_inline versions.
20641 (xmalloc, xrealloc): Implement without reference to the xnmalloc
20642 and xnrealloc functions, since those functions are now inline and
20644 (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
20645 renaming described above.
20646 * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
20647 xmalloc.c no longer uses inline directly. gl_PREREQ_XALLOC now
20648 captures the dependency in AC_C_INLINE.
20650 New module canonicalize-lgpl, proposed by Charles Wilson in
20651 <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
20652 with a few small changes afterwards.
20653 * MODULES.html.sh (File system functions): New module
20655 * lib/canonicalize.h: Add comments for canonicalize_filename_mode
20656 and canonicalize_file_name.
20657 * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
20658 * modules/canonicalize-lgpl: New files.
20660 2006-11-05 Bruno Haible <bruno@clisp.org>
20662 * gnulib-tool (func_import, func_create_testdir): Create directories
20663 also for files in subdirectories of lib/.
20665 2006-11-05 Bruno Haible <bruno@clisp.org>
20667 * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
20670 2006-11-03 Bruno Haible <bruno@clisp.org>
20672 Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
20673 * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
20674 * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
20675 (xnboundedmalloc): New inline function.
20676 * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
20677 * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
20679 * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
20681 * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
20682 * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
20683 * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
20685 (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
20686 * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
20688 * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
20689 gl_tree_add_after): Use XMALLOC instead of xmalloc.
20690 * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
20692 (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
20693 * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
20694 gl_tree_add_after): Use XMALLOC instead of xmalloc.
20695 * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
20696 * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
20697 * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
20698 * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
20700 2006-11-03 Bruno Haible <bruno@clisp.org>
20702 * lib/c-ctype.h [C++]: Define functions without name mangling.
20703 * lib/fwriteerror.h [C++]: Likewise.
20704 * lib/gcd.h [C++]: Likewise.
20705 * lib/linebreak.h [C++]: Likewise.
20707 2006-11-03 Paul Eggert <eggert@cs.ucla.edu>
20709 * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
20710 (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
20711 Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
20712 * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
20713 Check for functions and headers just once.
20714 Check for declaration of canonicalize_file_name.
20715 Define PROVIDE_CANONICALIZE_FILENAME_MODE.
20717 2006-11-02 Charles Wilson <cygwin@cwilson.fastmail.fm>
20719 * gnulib-tool (func_import): Fix typo in actioncmd.
20721 2006-11-02 Bruno Haible <bruno@clisp.org>
20723 * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
20724 newline sequence in the Makefile.am snippet as a space, like "make"
20726 Reported by Roger Persson <perrog@gmail.com>.
20728 2006-11-01 Bruno Haible <bruno@clisp.org>
20730 * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
20731 already declared in <string.h>.
20732 * lib/strcase.h (strncasecmp): Don't declare it if yes.
20734 2006-11-01 Bruno Haible <bruno@clisp.org>
20736 * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
20737 * lib/strcase.h: Include <string.h>.
20738 (strcasecmp): Define to rpl_strcasecmp here.
20740 2006-11-01 Bruno Haible <bruno@clisp.org>
20742 * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
20744 2006-11-01 Eric Blake <ebb9@byu.net>
20746 * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
20748 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
20750 2006-10-29 Bruno Haible <bruno@clisp.org>
20752 Make it compile in C++ mode.
20753 * lib/full-write.c (full_rw): Add a cast.
20755 2006-11-01 Bruno Haible <bruno@clisp.org>
20757 * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
20758 be POSIX compliant.
20759 Reported by Roger Persson <perrog@gmail.com>.
20761 2006-11-01 Eric Blake <ebb9@byu.net>
20763 * lib/getopt_.h: Fix comments.
20765 2006-10-31 Eric Blake <ebb9@byu.net>
20767 * modules/tmpdir (Depends-on): Add sys_stat.
20768 * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
20769 * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
20770 * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
20771 * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
20774 2006-10-31 Paul Eggert <eggert@cs.ucla.edu>
20776 Avoid some C++ diagnostics reported by Bruno Haible.
20777 * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
20779 (quotearg_alloc): Use xcharalloc rather than xmalloc.
20780 (struct slotvec): Move to top level.
20781 (quotearg_n_options): Rewrite to avoid xmalloc.
20782 * lib/xalloc.h (xcharalloc): New function.
20783 * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
20784 [defined __cplusplus]: Add function template that provides result
20785 type propagation. This part of the change is from Bruno Haible.
20787 2006-10-29 Bruno Haible <bruno@clisp.org>
20789 Make it compile in C++ mode.
20790 * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
20791 * lib/strnlen1.c (strnlen1): Cast memchr result.
20792 * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
20793 * lib/clean-temp.c (string_equals, string_hash): Add casts.
20794 (create_temp_dir): Rename local variable 'template'.
20795 (compile_csharp_using_sscli): Add cast.
20796 * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
20797 * lib/findprog.c (find_in_path): Likewise.
20798 * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
20799 * lib/wait-process.c (register_slave_subprocess): Likewise.
20801 2006-10-22 Bruno Haible <bruno@clisp.org>
20803 * modules/tsearch: New file.
20804 * lib/tsearch.h: New file.
20805 * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
20806 * m4/tsearch.m4: New file.
20807 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
20809 2006-10-29 Eric Blake <ebb9@byu.net>
20811 * lib/arcfour.c: Assume config.h.
20812 * lib/arctwo.c: Likewise.
20813 * lib/base64.c: Likewise.
20814 * lib/check-version.c: Likewise.
20815 * lib/crc.c: Likewise.
20816 * lib/des.c: Likewise.
20817 * lib/gc-gnulib.c: Likewise.
20818 * lib/gc-libgcrypt.c: Likewise.
20819 * lib/gc-pbkdf2-sha1.c: Likewise.
20820 * lib/getaddrinfo.c: Likewise.
20821 * lib/getdelim.c: Likewise.
20822 * lib/getline.c: Likewise.
20823 * lib/hmac-md5.c: Likewise.
20824 * lib/hmac-sha1.c: Likewise.
20825 * lib/iconvme.c: Likewise.
20826 * lib/md2.c: Likewise.
20827 * lib/md4.c: Likewise.
20828 * lib/memxor.c: Likewise.
20829 * lib/read-file.c: Likewise.
20830 * lib/readline.c: Likewise.
20831 * lib/rijndael-alg-fst.c: Likewise.
20832 * lib/rijndael-api-fst.c: Likewise.
20833 * lib/xgetdomainname.c: Likewise.
20835 2006-10-28 Eric Blake <ebb9@byu.net>
20837 * lib/xstrndup.c: Assume config.h.
20839 2006-10-27 Paul Eggert <eggert@cs.ucla.edu>
20841 Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
20842 stat-macros.h is now for our own macros, whereas stat_h is for
20843 macros in the <sys/stat.h> name space.
20844 * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
20845 (STAT_MACROS_H): Remove.
20846 (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
20847 (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
20848 (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
20849 (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
20850 (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
20851 (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
20852 Move these macros to ...
20853 * lib/stat_.h: here. Don't include stat-macros.h.
20854 * lib/canonicalize.c: Don't include stat-macros.h.
20855 * lib/chown.c: Likewise.
20856 * lib/euidaccess.c: Likewise.
20857 * lib/file-type.c: Likewise.
20858 * lib/filemode.c: Likewise.
20859 * lib/glob.c: Likewise.
20860 * lib/isapipe.c: Likewise.
20861 * lib/lchown.c: Likewise.
20862 * lib/lstat.c: Likewise.
20863 * lib/mkdir-p.c: Likewise.
20864 * lib/rmdir.c: Likewise.
20865 * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
20866 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
20867 unless mkdir isn't declared, to speed up 'configure'.
20868 Always create sys/stat.h, since it's unlikely any real sys/stat.h
20869 would define all the S_* symbols.
20870 * modules/canonicalize (Depends-on):
20871 Depend on sys_stat, not stat-macros.
20872 * modules/chown: Likewise.
20873 * modules/euidaccess: Likewise.
20874 * modules/filemode: Likewise.
20875 * modules/file-type: Likewise.
20876 * modules/glob: Likewise.
20877 * modules/isapipe: Likewise.
20878 * modules/lchown: Likewise.
20879 * modules/lstat: Likewise.
20880 * modules/mkancesdirs: Likewise.
20881 * modules/rmdir: Likewise.
20882 * modules/mkdir-p (Depends-on): Also depend on sys_stat.
20883 * modules/modechange: Likewise.
20884 * modules/stat-macros (Files): Remove m4/stat-macros.m4.
20885 (configure.ac): Remove gl_STAT_MACROS.
20886 * modules/sys_stat (Depends-on): Remove stat-macros.
20888 2006-10-27 Bruno Haible <bruno@clisp.org>
20890 * m4/signed.m4: Remove file.
20891 * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
20893 * modules/vasnprintf (Files): Remove m4/signed.m4.
20895 2006-10-27 Bruno Haible <bruno@clisp.org>
20897 Update to GNU gettext 0.16.
20898 * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
20899 m4/inttypes-h.m4, m4/signed.m4.
20900 * m4/gettext.m4: Update to GNU gettext 0.16.
20901 * m4/intl.m4: New file, from GNU gettext.
20902 * m4/intldir.m4: New file, from GNU gettext.
20903 * config/srclist.txt: Update
20905 2006-10-27 Eric Blake <ebb9@byu.net>
20907 * MODULES.html.sh: Document tempname.
20908 * modules/mkstemp (Depends-on): Add tempname, and drop transitive
20910 (Files): Move lib/tempname.c...
20911 * modules/tempname: ...to this new module.
20912 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
20913 (gl_PREREQ_TEMPNAME): Move...
20914 * m4/tempname.m4: ...to this new file.
20915 * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
20916 * modules/sys_stat (Depends-on): Add stat-macros.
20917 * lib/stat_.h (includes): Pick up stat macros.
20918 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
20919 if stat macros are broken.
20920 * lib/tempname.c (includes): No need to include "stat-macros.h".
20921 (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
20922 (direxists, __path_search) [!_LIBC]: Don't compile these in
20923 gnulib; the tmpdir module covers that.
20924 * lib/tempname.h: New file.
20926 2006-10-26 Paul Eggert <eggert@cs.ucla.edu>
20928 * COPYING: Explain how gnulib-tool converts licence headers.
20929 Almost all wording by Eric Blake.
20931 2006-10-25 Paul Eggert <eggert@cs.ucla.edu>
20933 * lib/mbchar.h (is_basic_table): Make read-only.
20934 * lib/mbchar.c (is_basic_table): Likewise.
20935 Reported by John Darrington.
20937 2006-10-25 Bruno Haible <bruno@clisp.org>
20939 * lib/progname.h (set_program_name): Undefine before defining.
20941 2006-10-25 Bruno Haible <bruno@clisp.org>
20943 * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
20944 false for non-gcc C++ compilers.
20945 Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
20947 2006-10-24 Bruno Haible <bruno@clisp.org>
20949 * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
20950 iconv implementations like Irix iconv.
20952 2006-10-24 Paul Eggert <eggert@cs.ucla.edu>
20954 * modules/vararrays: New file.
20955 * m4/vararrays.m4: New file, taken from diffutils.
20956 * MODULES.html.sh: New module vararrays.
20958 2006-10-24 Karl Berry <karl@gnu.org>
20960 * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
20961 Don't call GNU Unix.
20963 2006-10-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20965 * users.txt: Add Libtool.
20969 2006-10-24 Paul Eggert <eggert@cs.ucla.edu>
20971 * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
20972 to gnulib's policy of including config.h unconditionally.
20974 2006-10-24 Bruno Haible <bruno@clisp.org>
20976 * modules/wcwidth (Files): Add m4/wint_t.m4.
20977 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
20978 * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
20980 2006-10-24 Paul Eggert <eggert@cs.ucla.edu>
20982 * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
20983 to pacify GCC with some -W flags enabled. Problem reported by
20986 2006-10-24 Jim Meyering <jim@meyering.net>
20988 * MODULES.html.sh: Remove uinttostr. It's not a module.
20989 Reported by Karl Berry.
20991 2006-10-23 Bruno Haible <bruno@clisp.org>
20993 * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
20995 2006-10-24 Bruno Haible <bruno@clisp.org>
20997 * lib/gl_list.h: Use C comment style, not C++ comment style.
20999 2006-10-23 Eric Blake <ebb9@byu.net>
21001 * lib/getaddrinfo.c (includes): Add missing include.
21003 2006-10-23 Bruno Haible <bruno@clisp.org>
21004 Paul Eggert <eggert@cs.ucla.edu>
21006 Ability to rename obstack_free.
21007 * lib/obstack.h (__obstack_free): New macro. Declare instead of
21009 (obstack_free): Invoke the __obstack_free macro.
21010 * lib/obstack.c (obstack_free): Use __obstack_free macro.
21012 2006-10-23 Bruno Haible <bruno@clisp.org>
21013 Paul Eggert <eggert@cs.ucla.edu>
21015 * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
21016 __argc, __argv from the declaration. (They are defined as macros on
21019 2006-10-22 Bruno Haible <bruno@clisp.org>
21021 * doc/gnulib-intro.texi: New file.
21022 * doc/gnulib.texi: Include it.
21024 2006-10-21 Bruno Haible <bruno@clisp.org>
21026 * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
21027 "Introduction", "Miscellanous Notes", "Particular Modules".
21029 2006-10-21 Bruno Haible <bruno@clisp.org>
21031 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
21032 Change mostlyclean-local rule to avoid sh syntax error from bash
21033 versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
21035 2006-10-23 Jim Meyering <jim@meyering.net>
21037 * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
21038 in place of snprintf.
21040 * modules/inttostr (Files): Add lib/uinttostr.c.
21041 * lib/uinttostr.c (inttostr): New file/function.
21042 * lib/inttostr.h (uinttostr): Declare.
21043 * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
21044 * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
21046 * modules/getaddrinfo (Depends-on): Remove snprintf. Add inttostr.
21048 2006-10-21 Paul Eggert <eggert@cs.ucla.edu>
21050 * lib/canonicalize.c (ELOOP): Define if not already defined.
21051 Problem reported by Bruno Haible in
21052 <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
21054 2006-10-21 Paul Eggert <eggert@cs.ucla.edu>
21056 * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
21057 Problem reported by Perry Smith and Ville Laurikari.
21059 * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
21062 2006-10-19 Bruno Haible <bruno@clisp.org>
21064 * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
21067 2006-10-19 Bruno Haible <bruno@clisp.org>
21069 * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
21072 2006-10-19 Bruno Haible <bruno@clisp.org>
21074 * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
21076 2006-10-19 Bruno Haible <bruno@clisp.org>
21078 * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
21081 2006-10-19 Bruno Haible <bruno@clisp.org>
21083 * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
21086 2006-10-19 Bruno Haible <bruno@clisp.org>
21088 * gnulib-tool (func_create_testdir): Don't include ftruncate and
21089 mountlist by default.
21091 2006-10-16 Bruno Haible <bruno@clisp.org>
21093 * lib/c-strstr.c: Include c-strstr.h.
21095 2006-10-18 Charles Wilson <cygwin@cwilson.fastmail.fm>
21097 * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
21100 2006-10-18 Bruno Haible <bruno@clisp.org>
21102 * lib/lock.h [C++]: Wrap definitions in extern "C".
21104 2006-10-18 Bruno Haible <bruno@clisp.org>
21106 * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
21109 2006-10-18 Bruno Haible <bruno@clisp.org>
21111 * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
21113 2006-10-19 Paul Eggert <eggert@cs.ucla.edu>
21115 * lib/xstrtol.h: Include gettext.h.
21116 (_STRTOL_ERROR): Wrap English-language formats inside gettext.
21117 Problem reported by Eric Blake.
21118 * modules/xstrtol (Depends-on): Add gettext-h.
21120 2006-10-19 Paul Eggert <eggert@cs.ucla.edu> (tiny change)
21122 * lib/strftime.c (advance): New macro.
21123 (add): Use it to avoid adding 0 to a FILE *. FILE can be an
21124 incomplete type, so you can't add 0 to it. Problem and patch
21125 reported by Eelco Dolstra for dietlibc.
21127 2006-10-18 Jim Meyering <jim@meyering.net>
21129 * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
21130 type for a local, and rename it: s/up/user_proc/.
21132 2006-10-18 Sergey Poznyakoff <gray@gnu.org.ua>
21134 * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
21135 READ_UTMP_USER_PROCESS.
21136 * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
21138 2006-10-17 Paul Eggert <eggert@cs.ucla.edu>
21140 * lib/localcharset.c: Do not check HAVE_SETLOCALE.
21141 * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
21143 2006-10-17 Eric Blake <ebb9@byu.net>
21145 * lib/sigprocmask.c (sigprocmask): Fix typo.
21147 * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
21149 * modules/clean-temp (Makefile.am): Don't add to make output...
21150 (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
21153 2006-10-17 Bruno Haible <bruno@clisp.org>
21155 * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
21156 differently if DEFAULT_TEXT_DOMAIN is set.
21158 2006-10-16 Bruno Haible <bruno@clisp.org>
21160 * lib/clean-temp.c: Include fwriteerror.h.
21162 2006-10-16 Bruno Haible <bruno@clisp.org>
21164 * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
21166 2006-10-16 Bruno Haible <bruno@clisp.org>
21168 * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
21169 * lib/sigprocmask.h: Include <sys/types.h>.
21170 (sigset_t): Use the system's definition if present.
21172 2006-10-17 Eric Blake <ebb9@byu.net>
21174 * lib/xvasprintf.c (includes): Assume config.h.
21175 * lib/xasprintf.c (includes): Likewise.
21177 2006-10-16 Paul Eggert <eggert@cs.ucla.edu>
21179 * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
21180 at least as wide as intmax_t.
21182 2006-10-16 Alexandre Duret-Lutz <adl@gnu.org>
21184 (Imported from Automake.)
21185 * build-aux/gnupload: Update to version 1.1 of directive file.
21187 2006-10-16 Eric Blake <ebb9@byu.net>
21189 * modules/configmake (Makefile.am): Add pkglibexecdir support, to
21190 match Automake 1.10a.
21192 2006-10-14 Bruno Haible <bruno@clisp.org>
21194 * modules/sigprocmask: New file.
21195 * lib/sigprocmask.h: New file.
21196 * lib/sigprocmask.c: New file.
21197 * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
21198 gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
21199 request sigprocmask.o.
21200 (gl_PREREQ_SIGPROCMASK): New macro.
21201 * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
21202 (Depends-on): Add sigprocmask.
21203 * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
21204 gt_SIGNALBLOCKING. Test for 'raise' only once.
21205 * lib/fatal-signal.c: Include sigprocmask.h.
21206 (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
21207 unblock_fatal_signals): Define always.
21208 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
21211 2006-10-14 Paul Eggert <eggert@cs.ucla.edu>
21213 Sync from Automake.
21214 * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
21215 which incorrectly sets the mode of an existing destination
21216 directory. In some cases the unpatched install-sh could do the
21217 equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
21218 system. We hope this is rare in practice, but it's clearly worth
21219 fixing. Problem reported by Alex Unleashed in
21220 <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
21221 Also, don't bother to check for -m bugs unless we're using -m;
21222 suggested by Stepan Kasal.
21224 2006-10-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
21226 Sync from Automake.
21227 * build-aux/depcomp (gcc3): Put dependency extraction flags before the
21228 `-c' flag, so they appear at the same position as in %FASTDEP%
21229 mode in depend2.am. Fixes build failure for FreeBSD's c89,
21230 which ignores unknown options only after the first non-option.
21231 Bug report against M4 by Nelson H. F. Beebe.
21233 2006-10-13 Jim Meyering <jim@meyering.net>
21235 Fix a bug in yesterday's change.
21236 * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
21237 p->fts_statp->st_dev would be used uninitialized.
21238 Ensures that we always call fts_stat on the very first entry.
21239 Miklos Szeredi reported that find -xdev stopped working.
21241 2006-10-12 Bruno Haible <bruno@clisp.org>
21243 * gnulib-tool (func_get_automake_snippet): Append an automatically
21244 computed EXTRA_DIST augmentation.
21245 * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
21246 * modules/alloca-opt (Makefile.am): Likewise.
21247 * modules/allocsa (Makefile.am): Likewise.
21248 * modules/arcfour (Makefile.am): Likewise.
21249 * modules/arctwo (Makefile.am): Likewise.
21250 * modules/argmatch (Makefile.am): Likewise.
21251 * modules/argz (Makefile.am): Likewise.
21252 * modules/atexit (Makefile.am): Likewise.
21253 * modules/backupfile (Makefile.am): Likewise.
21254 * modules/byteswap (Makefile.am): Likewise.
21255 * modules/c-strtod (Makefile.am): Likewise.
21256 * modules/c-strtold (Makefile.am): Likewise.
21257 * modules/calloc (Makefile.am): Likewise.
21258 * modules/canon-host (Makefile.am): Likewise.
21259 * modules/canonicalize (Makefile.am): Likewise.
21260 * modules/chdir-long (Makefile.am): Likewise.
21261 * modules/chdir-safer (Makefile.am): Likewise.
21262 * modules/check-version (Makefile.am): Likewise.
21263 * modules/chown (Makefile.am): Likewise.
21264 * modules/cloexec (Makefile.am): Likewise.
21265 * modules/close-stream (Makefile.am): Likewise.
21266 * modules/closeout (Makefile.am): Likewise.
21267 * modules/crc (Makefile.am): Likewise.
21268 * modules/csharpexec (Makefile.am): Likewise.
21269 * modules/cycle-check (Makefile.am): Likewise.
21270 * modules/des (Makefile.am): Likewise.
21271 * modules/dev-ino (Makefile.am): Likewise.
21272 * modules/dirfd (Makefile.am): Likewise.
21273 * modules/dirname (Makefile.am): Likewise.
21274 * modules/dup2 (Makefile.am): Likewise.
21275 * modules/eealloc (Makefile.am): Likewise.
21276 * modules/error (Makefile.am): Likewise.
21277 * modules/euidaccess (Makefile.am): Likewise.
21278 * modules/exclude (Makefile.am): Likewise.
21279 * modules/exitfail (Makefile.am): Likewise.
21280 * modules/fcntl-safer (Makefile.am): Likewise.
21281 * modules/fcntl (Makefile.am): Likewise.
21282 * modules/file-type (Makefile.am): Likewise.
21283 * modules/fileblocks (Makefile.am): Likewise.
21284 * modules/filemode (Makefile.am): Likewise.
21285 * modules/filenamecat (Makefile.am): Likewise.
21286 * modules/fnmatch (Makefile.am): Likewise.
21287 * modules/fopen-safer (Makefile.am): Likewise.
21288 * modules/fpending (Makefile.am): Likewise.
21289 * modules/fprintftime (Makefile.am): Likewise.
21290 * modules/free (Makefile.am): Likewise.
21291 * modules/fsusage (Makefile.am): Likewise.
21292 * modules/ftruncate (Makefile.am): Likewise.
21293 * modules/fts (Makefile.am): Likewise.
21294 * modules/gc-arcfour (Makefile.am): Likewise.
21295 * modules/gc-des (Makefile.am): Likewise.
21296 * modules/gc-hmac-md5 (Makefile.am): Likewise.
21297 * modules/gc-hmac-sha1 (Makefile.am): Likewise.
21298 * modules/gc-md4 (Makefile.am): Likewise.
21299 * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
21300 * modules/gc-sha1 (Makefile.am): Likewise.
21301 * modules/gc (Makefile.am): Likewise.
21302 * modules/getaddrinfo (Makefile.am): Likewise.
21303 * modules/getcwd (Makefile.am): Likewise.
21304 * modules/getdelim (Makefile.am): Likewise.
21305 * modules/getdomainname (Makefile.am): Likewise.
21306 * modules/getgroups (Makefile.am): Likewise.
21307 * modules/gethostname (Makefile.am): Likewise.
21308 * modules/gethrxtime (Makefile.am): Likewise.
21309 * modules/getline (Makefile.am): Likewise.
21310 * modules/getloadavg (Makefile.am): Likewise.
21311 * modules/getlogin_r (Makefile.am): Likewise.
21312 * modules/getndelim2 (Makefile.am): Likewise.
21313 * modules/getopt (Makefile.am): Likewise.
21314 * modules/getpagesize (Makefile.am): Likewise.
21315 * modules/getpass-gnu (Makefile.am): Likewise.
21316 * modules/getpass (Makefile.am): Likewise.
21317 * modules/getsubopt (Makefile.am): Likewise.
21318 * modules/gettime (Makefile.am): Likewise.
21319 * modules/gettimeofday (Makefile.am): Likewise.
21320 * modules/getugroups (Makefile.am): Likewise.
21321 * modules/getusershell (Makefile.am): Likewise.
21322 * modules/glob (Makefile.am): Likewise.
21323 * modules/group-member (Makefile.am): Likewise.
21324 * modules/hard-locale (Makefile.am): Likewise.
21325 * modules/hash (Makefile.am): Likewise.
21326 * modules/hmac-md5 (Makefile.am): Likewise.
21327 * modules/hmac-sha1 (Makefile.am): Likewise.
21328 * modules/human (Makefile.am): Likewise.
21329 * modules/idcache (Makefile.am): Likewise.
21330 * modules/imaxabs (Makefile.am): Likewise.
21331 * modules/imaxdiv (Makefile.am): Likewise.
21332 * modules/inet_ntop (Makefile.am): Likewise.
21333 * modules/inet_pton (Makefile.am): Likewise.
21334 * modules/intprops (Makefile.am): Likewise.
21335 * modules/inttostr (Makefile.am): Likewise.
21336 * modules/inttypes (Makefile.am): Likewise.
21337 * modules/isapipe (Makefile.am): Likewise.
21338 * modules/javaversion (Makefile.am): Likewise.
21339 * modules/lchmod (Makefile.am): Likewise.
21340 * modules/lchown (Makefile.am): Likewise.
21341 * modules/localcharset (Makefile.am): Likewise.
21342 * modules/long-options (Makefile.am): Likewise.
21343 * modules/lstat (Makefile.am): Likewise.
21344 * modules/malloc (Makefile.am): Likewise.
21345 * modules/mathl (Makefile.am): Likewise.
21346 * modules/mbchar (Makefile.am): Likewise.
21347 * modules/md2 (Makefile.am): Likewise.
21348 * modules/md4 (Makefile.am): Likewise.
21349 * modules/md5 (Makefile.am): Likewise.
21350 * modules/memcasecmp (Makefile.am): Likewise.
21351 * modules/memchr (Makefile.am): Likewise.
21352 * modules/memcmp (Makefile.am): Likewise.
21353 * modules/memcoll (Makefile.am): Likewise.
21354 * modules/memcpy (Makefile.am): Likewise.
21355 * modules/memmem (Makefile.am): Likewise.
21356 * modules/memmove (Makefile.am): Likewise.
21357 * modules/mempcpy (Makefile.am): Likewise.
21358 * modules/memrchr (Makefile.am): Likewise.
21359 * modules/memset (Makefile.am): Likewise.
21360 * modules/memxor (Makefile.am): Likewise.
21361 * modules/mkancesdirs (Makefile.am): Likewise.
21362 * modules/mkdir-p (Makefile.am): Likewise.
21363 * modules/mkdir (Makefile.am): Likewise.
21364 * modules/mkdtemp (Makefile.am): Likewise.
21365 * modules/mkstemp (Makefile.am): Likewise.
21366 * modules/mktime (Makefile.am): Likewise.
21367 * modules/modechange (Makefile.am): Likewise.
21368 * modules/mountlist (Makefile.am): Likewise.
21369 * modules/nanosleep (Makefile.am): Likewise.
21370 * modules/obstack (Makefile.am): Likewise.
21371 * modules/openat (Makefile.am): Likewise.
21372 * modules/pagealign_alloc (Makefile.am): Likewise.
21373 * modules/pathmax (Makefile.am): Likewise.
21374 * modules/physmem (Makefile.am): Likewise.
21375 * modules/poll (Makefile.am): Likewise.
21376 * modules/posixtm (Makefile.am): Likewise.
21377 * modules/posixver (Makefile.am): Likewise.
21378 * modules/putenv (Makefile.am): Likewise.
21379 * modules/quote (Makefile.am): Likewise.
21380 * modules/quotearg (Makefile.am): Likewise.
21381 * modules/raise (Makefile.am): Likewise.
21382 * modules/read-file (Makefile.am): Likewise.
21383 * modules/readline (Makefile.am): Likewise.
21384 * modules/readlink (Makefile.am): Likewise.
21385 * modules/readtokens (Makefile.am): Likewise.
21386 * modules/readutmp (Makefile.am): Likewise.
21387 * modules/realloc (Makefile.am): Likewise.
21388 * modules/regex (Makefile.am): Likewise.
21389 * modules/rename-dest-slash (Makefile.am): Likewise.
21390 * modules/rename (Makefile.am): Likewise.
21391 * modules/rijndael (Makefile.am): Likewise.
21392 * modules/rmdir (Makefile.am): Likewise.
21393 * modules/rpmatch (Makefile.am): Likewise.
21394 * modules/safe-read (Makefile.am): Likewise.
21395 * modules/safe-write (Makefile.am): Likewise.
21396 * modules/same-inode (Makefile.am): Likewise.
21397 * modules/same (Makefile.am): Likewise.
21398 * modules/save-cwd (Makefile.am): Likewise.
21399 * modules/savedir (Makefile.am): Likewise.
21400 * modules/setenv (Makefile.am): Likewise.
21401 * modules/settime (Makefile.am): Likewise.
21402 * modules/sha1 (Makefile.am): Likewise.
21403 * modules/sig2str (Makefile.am): Likewise.
21404 * modules/snprintf (Makefile.am): Likewise.
21405 * modules/stat-macros (Makefile.am): Likewise.
21406 * modules/stat-time (Makefile.am): Likewise.
21407 * modules/stdbool (Makefile.am): Likewise.
21408 * modules/stdint (Makefile.am): Likewise.
21409 * modules/stdlib-safer (Makefile.am): Likewise.
21410 * modules/stpcpy (Makefile.am): Likewise.
21411 * modules/stpncpy (Makefile.am): Likewise.
21412 * modules/strcase (Makefile.am): Likewise.
21413 * modules/strcasestr (Makefile.am): Likewise.
21414 * modules/strchrnul (Makefile.am): Likewise.
21415 * modules/strcspn (Makefile.am): Likewise.
21416 * modules/strdup (Makefile.am): Likewise.
21417 * modules/strerror (Makefile.am): Likewise.
21418 * modules/strftime (Makefile.am): Likewise.
21419 * modules/strndup (Makefile.am): Likewise.
21420 * modules/strnlen (Makefile.am): Likewise.
21421 * modules/strpbrk (Makefile.am): Likewise.
21422 * modules/strsep (Makefile.am): Likewise.
21423 * modules/strstr (Makefile.am): Likewise.
21424 * modules/strtod (Makefile.am): Likewise.
21425 * modules/strtoimax (Makefile.am): Likewise.
21426 * modules/strtok_r (Makefile.am): Likewise.
21427 * modules/strtol (Makefile.am): Likewise.
21428 * modules/strtoll (Makefile.am): Likewise.
21429 * modules/strtoul (Makefile.am): Likewise.
21430 * modules/strtoull (Makefile.am): Likewise.
21431 * modules/strtoumax (Makefile.am): Likewise.
21432 * modules/strverscmp (Makefile.am): Likewise.
21433 * modules/sys_socket (Makefile.am): Likewise.
21434 * modules/sys_stat (Makefile.am): Likewise.
21435 * modules/sysexits (Makefile.am): Likewise.
21436 * modules/time_r (Makefile.am): Likewise.
21437 * modules/timegm (Makefile.am): Likewise.
21438 * modules/timespec (Makefile.am): Likewise.
21439 * modules/tmpfile-safer (Makefile.am): Likewise.
21440 * modules/trim (Makefile.am): Likewise.
21441 * modules/unistd-safer (Makefile.am): Likewise.
21442 * modules/unlinkdir (Makefile.am): Likewise.
21443 * modules/unlocked-io (Makefile.am): Likewise.
21444 * modules/userspec (Makefile.am): Likewise.
21445 * modules/utime (Makefile.am): Likewise.
21446 * modules/utimecmp (Makefile.am): Likewise.
21447 * modules/utimens (Makefile.am): Likewise.
21448 * modules/vasnprintf (Makefile.am): Likewise.
21449 * modules/vasprintf (Makefile.am): Likewise.
21450 * modules/vsnprintf (Makefile.am): Likewise.
21451 * modules/xalloc (Makefile.am): Likewise.
21452 * modules/xgetcwd (Makefile.am): Likewise.
21453 * modules/xnanosleep (Makefile.am): Likewise.
21454 * modules/xreadlink (Makefile.am): Likewise.
21455 * modules/xstrtod (Makefile.am): Likewise.
21456 * modules/xstrtol (Makefile.am): Likewise.
21457 * modules/xstrtold (Makefile.am): Likewise.
21458 * modules/yesno (Makefile.am): Likewise.
21459 * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
21461 2006-10-12 Paul Eggert <eggert@cs.ucla.edu>
21463 * modules/error (Makefile.am): Distribute files through
21464 EXTRA_DIST, not lib_SOURCES.
21466 2006-10-12 Eric Blake <ebb9@byu.net>
21468 * modules/error (Makefile.am): Distribute files in /lib.
21469 * modules/obstack (Makefile.am): Likewise.
21471 2006-10-12 Bruno Haible <bruno@clisp.org>
21473 * modules/acl (Makefile.am): Distribute all files in lib/ through
21475 * modules/arcfour (Makefile.am): Likewise.
21476 * modules/arctwo (Makefile.am): Likewise.
21477 * modules/argmatch (Makefile.am): Likewise.
21478 * modules/argz (Makefile.am): Likewise.
21479 * modules/atexit (Makefile.am): Likewise.
21480 * modules/backupfile (Makefile.am): Likewise.
21481 * modules/c-strtod (Makefile.am): Likewise.
21482 * modules/c-strtold (Makefile.am): Likewise.
21483 * modules/calloc (Makefile.am): Likewise.
21484 * modules/canon-host (Makefile.am): Likewise.
21485 * modules/canonicalize (Makefile.am): Likewise.
21486 * modules/chdir-long (Makefile.am): Likewise.
21487 * modules/chdir-safer (Makefile.am): Likewise.
21488 * modules/check-version (Makefile.am): Likewise.
21489 * modules/chown (Makefile.am): Likewise.
21490 * modules/cloexec (Makefile.am): Likewise.
21491 * modules/close-stream (Makefile.am): Likewise.
21492 * modules/closeout (Makefile.am): Likewise.
21493 * modules/crc (Makefile.am): Likewise.
21494 * modules/cycle-check (Makefile.am): Likewise.
21495 * modules/des (Makefile.am): Likewise.
21496 * modules/dirfd (Makefile.am): Likewise.
21497 * modules/dirname (Makefile.am): Likewise.
21498 * modules/dup2 (Makefile.am): Likewise.
21499 * modules/euidaccess (Makefile.am): Likewise.
21500 * modules/exclude (Makefile.am): Likewise.
21501 * modules/exitfail (Makefile.am): Likewise.
21502 * modules/fcntl-safer (Makefile.am): Likewise.
21503 * modules/file-type (Makefile.am): Likewise.
21504 * modules/fileblocks (Makefile.am): Likewise.
21505 * modules/filemode (Makefile.am): Likewise.
21506 * modules/filenamecat (Makefile.am): Likewise.
21507 * modules/fnmatch (Makefile.am): Likewise.
21508 * modules/fopen-safer (Makefile.am): Likewise.
21509 * modules/fpending (Makefile.am): Likewise.
21510 * modules/fprintftime (Makefile.am): Likewise.
21511 * modules/free (Makefile.am): Likewise.
21512 * modules/fsusage (Makefile.am): Likewise.
21513 * modules/ftruncate (Makefile.am): Likewise.
21514 * modules/fts (Makefile.am): Likewise.
21515 * modules/gc (Makefile.am): Likewise.
21516 * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
21517 * modules/getaddrinfo (Makefile.am): Likewise.
21518 * modules/getcwd (Makefile.am): Likewise.
21519 * modules/getdelim (Makefile.am): Likewise.
21520 * modules/getdomainname (Makefile.am): Likewise.
21521 * modules/getgroups (Makefile.am): Likewise.
21522 * modules/gethostname (Makefile.am): Likewise.
21523 * modules/gethrxtime (Makefile.am): Likewise.
21524 * modules/getline (Makefile.am): Likewise.
21525 * modules/getloadavg (Makefile.am): Likewise.
21526 * modules/getlogin_r (Makefile.am): Likewise.
21527 * modules/getopt (Makefile.am): Likewise.
21528 * modules/getpass (Makefile.am): Likewise.
21529 * modules/getpass-gnu (Makefile.am): Likewise.
21530 * modules/getsubopt (Makefile.am): Likewise.
21531 * modules/gettime (Makefile.am): Likewise.
21532 * modules/gettimeofday (Makefile.am): Likewise.
21533 * modules/getugroups (Makefile.am): Likewise.
21534 * modules/getusershell (Makefile.am): Likewise.
21535 * modules/glob (Makefile.am): Likewise.
21536 * modules/group-member (Makefile.am): Likewise.
21537 * modules/hard-locale (Makefile.am): Likewise.
21538 * modules/hash (Makefile.am): Likewise.
21539 * modules/hmac-md5 (Makefile.am): Likewise.
21540 * modules/hmac-sha1 (Makefile.am): Likewise.
21541 * modules/human (Makefile.am): Likewise.
21542 * modules/idcache (Makefile.am): Likewise.
21543 * modules/imaxabs (Makefile.am): Likewise.
21544 * modules/imaxdiv (Makefile.am): Likewise.
21545 * modules/inet_ntop (Makefile.am): Likewise.
21546 * modules/inet_pton (Makefile.am): Likewise.
21547 * modules/inttostr (Makefile.am): Likewise.
21548 * modules/isapipe (Makefile.am): Likewise.
21549 * modules/lchown (Makefile.am): Likewise.
21550 * modules/long-options (Makefile.am): Likewise.
21551 * modules/lstat (Makefile.am): Likewise.
21552 * modules/malloc (Makefile.am): Likewise.
21553 * modules/mathl (Makefile.am): Likewise.
21554 * modules/mbchar (Makefile.am): Likewise.
21555 * modules/md2 (Makefile.am): Likewise.
21556 * modules/md4 (Makefile.am): Likewise.
21557 * modules/md5 (Makefile.am): Likewise.
21558 * modules/memcasecmp (Makefile.am): Likewise.
21559 * modules/memchr (Makefile.am): Likewise.
21560 * modules/memcmp (Makefile.am): Likewise.
21561 * modules/memcoll (Makefile.am): Likewise.
21562 * modules/memcpy (Makefile.am): Likewise.
21563 * modules/memmem (Makefile.am): Likewise.
21564 * modules/memmove (Makefile.am): Likewise.
21565 * modules/mempcpy (Makefile.am): Likewise.
21566 * modules/memrchr (Makefile.am): Likewise.
21567 * modules/memset (Makefile.am): Likewise.
21568 * modules/memxor (Makefile.am): Likewise.
21569 * modules/mkancesdirs (Makefile.am): Likewise.
21570 * modules/mkdir (Makefile.am): Likewise.
21571 * modules/mkdir-p (Makefile.am): Likewise.
21572 * modules/mkdtemp (Makefile.am): Likewise.
21573 * modules/mkstemp (Makefile.am): Likewise.
21574 * modules/mktime (Makefile.am): Likewise.
21575 * modules/modechange (Makefile.am): Likewise.
21576 * modules/mountlist (Makefile.am): Likewise.
21577 * modules/nanosleep (Makefile.am): Likewise.
21578 * modules/openat (Makefile.am): Likewise.
21579 * modules/pagealign_alloc (Makefile.am): Likewise.
21580 * modules/physmem (Makefile.am): Likewise.
21581 * modules/poll (Makefile.am): Likewise.
21582 * modules/posixtm (Makefile.am): Likewise.
21583 * modules/posixver (Makefile.am): Likewise.
21584 * modules/putenv (Makefile.am): Likewise.
21585 * modules/quote (Makefile.am): Likewise.
21586 * modules/quotearg (Makefile.am): Likewise.
21587 * modules/raise (Makefile.am): Likewise.
21588 * modules/read-file (Makefile.am): Likewise.
21589 * modules/readline (Makefile.am): Likewise.
21590 * modules/readlink (Makefile.am): Likewise.
21591 * modules/readtokens (Makefile.am): Likewise.
21592 * modules/readutmp (Makefile.am): Likewise.
21593 * modules/realloc (Makefile.am): Likewise.
21594 * modules/regex (Makefile.am): Likewise.
21595 * modules/rename (Makefile.am): Likewise.
21596 * modules/rename-dest-slash (Makefile.am): Likewise.
21597 * modules/rijndael (Makefile.am): Likewise.
21598 * modules/rmdir (Makefile.am): Likewise.
21599 * modules/rpmatch (Makefile.am): Likewise.
21600 * modules/safe-read (Makefile.am): Likewise.
21601 * modules/safe-write (Makefile.am): Likewise.
21602 * modules/same (Makefile.am): Likewise.
21603 * modules/save-cwd (Makefile.am): Likewise.
21604 * modules/savedir (Makefile.am): Likewise.
21605 * modules/setenv (Makefile.am): Likewise.
21606 * modules/settime (Makefile.am): Likewise.
21607 * modules/sha1 (Makefile.am): Likewise.
21608 * modules/sig2str (Makefile.am): Likewise.
21609 * modules/snprintf (Makefile.am): Likewise.
21610 * modules/stdlib-safer (Makefile.am): Likewise.
21611 * modules/stpcpy (Makefile.am): Likewise.
21612 * modules/stpncpy (Makefile.am): Likewise.
21613 * modules/strcase (Makefile.am): Likewise.
21614 * modules/strcasestr (Makefile.am): Likewise.
21615 * modules/strchrnul (Makefile.am): Likewise.
21616 * modules/strcspn (Makefile.am): Likewise.
21617 * modules/strdup (Makefile.am): Likewise.
21618 * modules/strerror (Makefile.am): Likewise.
21619 * modules/strftime (Makefile.am): Likewise.
21620 * modules/strndup (Makefile.am): Likewise.
21621 * modules/strnlen (Makefile.am): Likewise.
21622 * modules/strpbrk (Makefile.am): Likewise.
21623 * modules/strsep (Makefile.am): Likewise.
21624 * modules/strstr (Makefile.am): Likewise.
21625 * modules/strtod (Makefile.am): Likewise.
21626 * modules/strtoimax (Makefile.am): Likewise.
21627 * modules/strtok_r (Makefile.am): Likewise.
21628 * modules/strtol (Makefile.am): Likewise.
21629 * modules/strtoll (Makefile.am): Likewise.
21630 * modules/strtoul (Makefile.am): Likewise.
21631 * modules/strtoull (Makefile.am): Likewise.
21632 * modules/strtoumax (Makefile.am): Likewise.
21633 * modules/strverscmp (Makefile.am): Likewise.
21634 * modules/time_r (Makefile.am): Likewise.
21635 * modules/timegm (Makefile.am): Likewise.
21636 * modules/tmpfile-safer (Makefile.am): Likewise.
21637 * modules/unistd-safer (Makefile.am): Likewise.
21638 * modules/unlinkdir (Makefile.am): Likewise.
21639 * modules/userspec (Makefile.am): Likewise.
21640 * modules/utime (Makefile.am): Likewise.
21641 * modules/utimecmp (Makefile.am): Likewise.
21642 * modules/utimens (Makefile.am): Likewise.
21643 * modules/vasnprintf (Makefile.am): Likewise.
21644 * modules/vasprintf (Makefile.am): Likewise.
21645 * modules/vsnprintf (Makefile.am): Likewise.
21646 * modules/xalloc (Makefile.am): Likewise.
21647 * modules/xgetcwd (Makefile.am): Likewise.
21648 * modules/xnanosleep (Makefile.am): Likewise.
21649 * modules/xreadlink (Makefile.am): Likewise.
21650 * modules/xstrtod (Makefile.am): Likewise.
21651 * modules/xstrtol (Makefile.am): Likewise.
21652 * modules/xstrtold (Makefile.am): Likewise.
21653 * modules/yesno (Makefile.am): Likewise.
21655 2006-10-12 Jim Meyering <jim@meyering.net>
21657 * m4/getloadavg.m4: Revert the change below.
21659 * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
21660 lib/getloadavg.c using "ls -L", not "test -f". The latter would
21661 fail with a symlink, which is what coreutils' ./bootstrap now
21662 creates by default.
21664 2006-10-12 Bruno Haible <bruno@clisp.org>
21666 * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
21668 (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
21669 MSVC and mingw explicitly.
21671 2006-10-11 Simon Josefsson <jas@extundo.com>
21672 Bruno Haible <bruno@clisp.org>
21674 Add support for multiple gnulib-tool invocations in the scope of a
21675 single configure.ac file.
21676 * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
21677 use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
21678 with the same contents as the _LIBADD variable.
21679 (func_emit_initmacro_start, func_emit_initmacro_end,
21680 func_emit_initmacro_done): New functions.
21681 (func_import, func_create_testdir): Invoke them. Allow the identifiers
21682 gl_LIBOBJS and gl_LTLIBOBJS.
21684 2006-10-11 Bruno Haible <bruno@clisp.org>
21686 * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
21687 (func_create_testdir): Don't create po/Makefile.am, don't invoke
21688 autoreconf. Instead, invoke autopoint explicitly but move back the
21689 *.m4 files from gnulib.
21691 2006-10-11 Bruno Haible <bruno@clisp.org>
21693 * gnulib-tool (func_usage): Make module names after --create-testdir
21695 (func_create_testdir): If no module was specified, use nearly all
21698 2006-10-12 Jim Meyering <jim@meyering.net>
21700 Big performance improvement for fts-based tools that use FTS_NOSTAT.
21701 Avoid spurious inode-mismatch problems on non-POSIX file systems.
21702 Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
21703 * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
21704 (FTS_OPTIONMASK): Extend the mask to reflect this addition.
21705 * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
21706 (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
21707 (fts_set_stat_required): New function.
21708 (fts_open): Defer the calls to fts_stat, if possible or requested.
21709 Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
21710 into fts_stat itself.
21711 (fts_read): Perform any required (deferred) fts_stat call.
21712 (fts_build): Likewise, for the directory we're about to open and read.
21713 In the readdir loop, carefully decide whether each entry will require
21714 an eventual call to fts_stat, using dirent.d_type info if available.
21715 (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
21716 a command line argument into this function. Update all callers.
21717 Map a return value of FTS_DOT to FTS_D for a command line argument.
21718 * modules/fts (Depends-on): Add d-type. Alphabetize.
21719 Thanks to Miklos Szeredi for his tenacity and for the initial
21720 bug report about "find" failing on a FUSE-based file system.
21722 * lib/fts.c (fts_open): Use consistent indentation.
21724 2006-10-12 Paul Eggert <eggert@cs.ucla.edu>
21726 * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
21727 gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
21728 reported by Jim Meyering. All uses of cache variables renamed
21729 to match Autoconf's.
21730 (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
21733 * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
21734 Fix misspelling in diagnostic.
21736 2006-10-11 Paul Eggert <eggert@cs.ucla.edu>
21738 * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
21739 defined. Problem reported by Matthew Woehlke.
21741 * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
21742 Add support for Tandem NonStop R series.
21743 (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
21746 * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
21747 (has_trailing_slash): Omit size arg; all callers changed.
21748 Omit 'inline', since it doesn't help performance and we'd
21749 need to configure it.
21750 Don't count //, ///, etc. as having a trailing slash.
21751 As a side effect, this removes a C99ism reported by Matthew Woehlke.
21752 (rpl_rename_dest_slash): On failure, use rename's errno rather
21753 than (in some cases) an incorrect or junk errno.
21754 Simplify code by removing need to compute length; this does
21755 cause it to make two passes instead of one over the file name,
21758 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
21759 change, since Autoconf's version may no longer be appropriate now
21760 that we are using CVS Autoconf's version. Add support for Tandem.
21762 2006-10-11 Paul Eggert <eggert@cs.ucla.edu>
21763 Bruno Haible <bruno@clisp.org>
21765 * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
21766 HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
21767 * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
21768 gl_AC_TYPE_LONG_LONG.
21770 * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
21771 instead of HAVE_LONG_LONG.
21772 * lib/printf-args.c (printf_fetchargs): Likewise.
21773 * lib/printf-parse.c (PRINTF_PARSE): Likewise.
21774 * lib/vasnprintf.c (VASNPRINTF): Likewise.
21775 * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
21776 gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
21777 gl_AC_TYPE_LONG_LONG.
21779 2006-10-11 Bruno Haible <bruno@clisp.org>
21781 * m4/longlong.m4: Add comments.
21782 * m4/ulonglong.m4: Likewise.
21784 2006-10-10 Bruno Haible <bruno@clisp.org>
21786 Make it possible to #define stpcpy, strdup to aliases.
21787 * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
21788 * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
21790 2006-10-10 Bruno Haible <bruno@clisp.org>
21792 Make it possible to #define gcd to an alias.
21793 * lib/gcd.c: Include config.h.
21795 2006-10-10 Bruno Haible <bruno@clisp.org>
21797 Make it possible to #define c_isascii to an alias.
21798 * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
21799 defined. Undefine the macros before defining them, to avoid gcc
21801 * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
21802 define NO_C_CTYPE_MACROS early.
21804 2006-10-10 Bruno Haible <bruno@clisp.org>
21806 Make it possible to #define set_program_name to an alias.
21807 * lib/progname.c: Don't undefine set_program_name; instead, undefine
21808 ENABLE_RELOCATABLE early.
21810 2006-10-10 Paul Eggert <eggert@cs.ucla.edu>
21812 Port to Tandem NSK OSS, which has 64-bit signed int but at most
21813 32-bit unsigned int. Problem reported by Matthew Woehlke in:
21814 http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
21815 More generally, don't assume that 64-bit signed int is available
21816 if unsigned int is, and vice versa.
21817 * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
21818 unsigned symbols, not on their signed counterparts.
21819 * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
21820 (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
21821 (UINT64_C, UINTMAX_C):
21823 * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
21824 unsigned counterparts.
21825 (Have_long_long, Unsigned): New macros.
21826 (Int): Renamed from INT.
21827 (strtoimax): Use the new macros.
21828 * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
21829 and substitute HAVE_UNSIGNED_LONG_LONG_INT.
21830 * modules/inttypes (inttypes.h): Substitute
21831 HAVE_UNSIGNED_LONG_LONG_INT.
21832 * modules/stdint (stdint.h): Likewise.
21833 (Files): Add m4/ulonglong.m4.
21835 2006-10-10 Bruno Haible <bruno@clisp.org>
21837 Fix a gcc -Wshadow warning.
21838 * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
21840 * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
21841 gl_linked_indexof_from_to): Likewise.
21842 * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
21844 * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
21846 * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
21847 Reported by Eric Blake.
21849 2006-10-09 Paul Eggert <eggert@cs.ucla.edu>
21851 * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
21852 for NetBSD. Problem reported by Bruno Haible.
21854 2006-10-09 Jim Meyering <jim@meyering.net>
21856 * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
21857 Patch from Bruno Haible.
21859 2006-10-09 Jim Meyering <jim@meyering.net>
21861 * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
21862 to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
21863 Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
21865 2006-10-08 Paul Eggert <eggert@cs.ucla.edu>
21867 Don't include <config.h> twice; this doesn't work in some cases,
21868 e.g., when config.h has "#define intmax_t long long int" and
21869 we include <config.h>, <inttypes.h>, <config.h> in that order.
21870 Problem reported by Matthew Woehlke in:
21871 http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
21872 * lib/fprintftime.c: Don't include config.h or fprintftime.h.
21873 * lib/fts-cycle.c: Don't include config.h.
21874 * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
21875 * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
21876 Don't include config.h or xstrtol.h. Define STRTOL_T_MINIMUM
21877 and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
21879 * lib/xstrtoumax.c: Likewise.
21880 * lib/xstrtol.c: Include config.h and xstrtol.h after defining
21881 __strtol and the like, so that this module is more like its siblings.
21882 (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
21883 Remove; no longer needed now that we assume gnulib inttypes.h.
21885 2006-10-08 Bruno Haible <bruno@clisp.org>
21887 * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
21890 2006-10-07 Jim Meyering <jim@meyering.net>
21892 * modules/inttypes (inttypes.h): Revert what seems to have been
21893 an inadvertent part of today's change: use "|", not "/" in the
21894 substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
21896 2006-10-07 Bruno Haible <bruno@clisp.org>
21898 * modules/sublist: New file.
21900 2006-10-07 Bruno Haible <bruno@clisp.org>
21902 * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
21903 * modules/argz (argz.h): Likewise.
21904 * modules/arpa_inet (arpa/inet.h): Likewise.
21905 * modules/byteswap (byteswap.h): Likewise.
21906 * modules/configmake (configmake.h): Likewise.
21907 * modules/fcntl (fcntl.h): Likewise.
21908 * modules/fnmatch (fnmatch.h): Likewise.
21909 * modules/getopt (getopt.h): Likewise.
21910 * modules/glob (glob.h): Likewise.
21911 * modules/inttypes (inttypes.h): Likewise.
21912 * modules/netinet_in (netinet/in.h): Likewise.
21913 * modules/poll (poll.h): Likewise.
21914 * modules/stdbool (stdbool.h): Likewise.
21915 * modules/stdint (stdint.h): Likewise.
21916 * modules/sys_select (sys/select.h): Likewise.
21917 * modules/sys_socket (sys/socket.h): Likewise.
21918 * modules/sys_stat (sys/stat.h): Likewise.
21919 * modules/sysexits (sysexits.h): Likewise.
21920 * modules/unistd (unistd.h): Likewise.
21921 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
21922 Add a "DO NOT EDIT" comment to the generated file.
21923 (func_import): Likewise for gnulib-comp.m4.
21925 2006-10-07 Bruno Haible <bruno@clisp.org>
21927 * lib/gl_sublist.h: New file.
21928 * lib/gl_sublist.c: New file.
21930 2006-10-06 Paul Eggert <eggert@cs.ucla.edu>
21932 * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
21933 name (relative to the original working directory) and the file
21934 name component (relative to the temporary working directory). All
21936 * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
21937 * lib/mkdir-p.c (make_dir_parents): Likewise.
21938 * lib/mkdir-p.h (make_dir_parents): Likewise.
21940 2006-10-06 Eric Blake <ebb9@byu.net>
21942 Define several macros for use by the clean-temp module.
21943 * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
21944 * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
21945 * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
21947 * lib/clean-temp.h (close_stream_temp): New declaration.
21948 * lib/clean-temp.c (includes): Pull in headers according to what
21949 other modules are in use.
21950 (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
21952 2006-10-06 Bruno Haible <bruno@clisp.org>
21954 * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
21955 instead of fopen, fwriteerror.
21957 2006-10-06 Bruno Haible <bruno@clisp.org>
21959 * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
21960 cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
21962 * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
21963 cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
21964 Return an error indicator.
21965 Suggested by Eric Blake.
21967 2006-10-06 Bruno Haible <bruno@clisp.org>
21969 * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
21970 Reported by Eric Blake.
21972 2006-10-06 Bruno Haible <bruno@clisp.org>
21974 * modules/closeout (Description): Mention stderr too.
21976 2006-10-06 Bruno Haible <bruno@clisp.org>
21977 and Paul Eggert <eggert@cs.ucla.edu>
21979 * lib/closeout.c (close_stdout): Also close stderr.
21980 * lib/closeout.h: Update comment.
21982 2006-10-05 Paul Eggert <eggert@cs.ucla.edu>
21984 Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
21985 <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
21986 * lib/dirchownmod.c: Include lchown.h.
21987 * lib/lchown.c: Don't include files that lchown.h now includes.
21988 Don't declare chown, since lchown.h now does that.
21989 * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
21990 (lchown): Define to rpl_chown if lchown is declared but
21991 does not exist. Declare using a prototype if lchown is not
21992 declared. Add a copyright notice.
21993 * lib/mkstemp.h: Include <unistd.h>.
21994 * lib/openat.c: Include lchown.h.
21996 * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
21997 we now test for that separately.
21998 * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
21999 rather than O_NOFOLLOW, when testing whether it's possible to
22000 avoid a race condition reliably.
22001 * lib/savewd.c (savewd_chdir): Likewise.
22003 Remove macros that are no longer needed now that stdint.h is
22005 * lib/fsusage.c (UINTMAX_MAX): Remove.
22006 * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
22007 * lib/utimecmp.c (SIZE_MAX): Remove.
22009 * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
22011 * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
22012 of O_NOFOLLOW_IS_INEFFECTIVE. Define HAVE_WORKING_O_NOATIME if
22015 2006-10-05 Bruno Haible <bruno@clisp.org>
22017 * lib/gl_list.h (gl_sortedlist_search_from_to,
22018 gl_sortedlist_indexof_from_to): New declarations.
22019 (gl_list_implementation): New fields sortedlist_search_from_to,
22020 sortedlist_indexof_from_to.
22021 (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
22023 * lib/gl_list.c (gl_sortedlist_search_from_to,
22024 gl_sortedlist_indexof_from_to): New functions.
22025 * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
22027 (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
22028 (gl_array_sortedlist_search_from_to): New function.
22029 (gl_array_list_implementation): Update.
22030 * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
22032 (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
22033 (gl_carray_sortedlist_search_from_to): New function.
22034 (gl_carray_list_implementation): Update.
22035 * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
22036 gl_linked_sortedlist_indexof_from_to): New functions.
22037 * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
22038 * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
22039 * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
22040 gl_tree_sortedlist_indexof_from_to): New functions.
22041 * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
22042 * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
22044 * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
22045 * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
22048 2006-10-05 Bruno Haible <bruno@clisp.org>
22050 * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
22051 gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
22052 (struct gl_list_implementation): Add fields search_from_to,
22053 indexof_from_to. Remove fields search, indexof.
22054 (gl_list_search): Use the search_from_to method.
22055 (gl_list_search_from, gl_list_search_from_to): New functions.
22056 (gl_list_indexof): Use the indexof_from_to method.
22057 (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
22058 * lib/gl_list.c (gl_list_search): Use the search_from_to method.
22059 (gl_list_search_from, gl_list_search_from_to): New functions.
22060 (gl_list_indexof): Use the indexof_from_to method.
22061 (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
22062 * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
22063 gl_array_indexof. Add start_index, end_index arguments.
22064 (gl_array_search_from_to): Renamed from gl_array_search. Add
22065 start_index, end_index arguments.
22066 (gl_array_remove, gl_array_list_implementation): Update.
22067 * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
22068 gl_carray_indexof. Add start_index, end_index arguments.
22069 (gl_carray_search_from_to): Renamed from gl_carray_search. Add
22070 start_index, end_index arguments.
22071 (gl_carray_remove, gl_carray_list_implementation): Update.
22072 * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
22073 gl_linked_search. Add start_index, end_index arguments.
22074 (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
22075 start_index, end_index arguments.
22076 (gl_linked_remove): Update.
22077 * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
22078 * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
22079 * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
22081 * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
22082 gl_tree_search. Add start_index, end_index arguments.
22083 (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
22084 start_index, end_index arguments.
22085 (gl_tree_remove): Update.
22086 * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
22087 * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
22088 * lib/gl_anytreehash_list1.h (compare_position_threshold): New
22090 * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
22091 gl_tree_search. Add start_index, end_index arguments.
22092 (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
22093 start_index, end_index arguments.
22094 * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
22096 * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
22098 2006-10-05 Bruno Haible <bruno@clisp.org>
22100 * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
22102 * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
22103 fwriteerror_temp): New declarations.
22104 * lib/clean-temp.c (uintptr_t): Provide fallback definition.
22105 (descriptors): New variable.
22106 (cleanup): First, close the descriptors.
22107 (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
22108 fclose_temp, fwriteerror_temp): New functions.
22110 2006-10-04 Jim Meyering <jim@meyering.net>
22112 * lib/fts.c (fts_open): Tiny comment change.
22114 2006-10-04 Bruno Haible <bruno@clisp.org>
22116 Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
22117 * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
22119 (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
22120 (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
22121 gl_LOCK_EARLY_BODY.
22122 (gl_LOCK): Require gl_LOCK_BODY.
22124 2006-10-04 Bruno Haible <bruno@clisp.org>
22126 * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
22127 (gl_oset_search_atleast): New declaration.
22128 (struct gl_oset_implementation): Add field 'search_atleast'.
22129 (gl_oset_search_atleast): New inline function.
22130 * lib/gl_oset.c (gl_oset_search_atleast): New function.
22131 * lib/gl_array_oset.c (gl_array_search_atleast): New function.
22132 (gl_array_oset_implementation): Update.
22133 * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
22134 * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
22135 * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
22137 2006-10-04 Bruno Haible <bruno@clisp.org>
22139 * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
22141 2006-10-03 Bruno Haible <bruno@clisp.org>
22143 * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
22144 from gl_avltreehash_list_implementation.
22146 2006-10-03 Bruno Haible <bruno@clisp.org>
22148 * lib/gl_oset.c (gl_oset_add): Fix return type.
22150 2006-10-02 Paolo Bonzini <bonzini@gnu.org> (tiny change)
22152 * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
22154 2006-10-02 Eric Blake <ebb9@byu.net>
22156 * modules/strnlen (Depends-on): Add extensions.
22158 2006-10-02 Eric Blake <ebb9@byu.net>
22160 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
22161 definition in 2.60+.
22163 2006-10-02 Dmitry V. Levin <ldv@altlinux.org>
22165 * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
22168 2006-10-02 Bruno Haible <bruno@clisp.org>
22170 * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
22171 to the AUTOMAKE_OPTIONS.
22172 Reported by Jim Meyering.
22174 2006-09-29 Paul Eggert <eggert@cs.ucla.edu>
22176 Work around bug in Solaris 10 /proc file system:
22177 /proc/self/fd/NNN/.. isn't the parent directory of
22178 the directory whose file descriptor is NNN. This needs to
22179 be worked around at run time, not compile time, since a
22180 program might be built on Solaris 8, where things work, and
22182 * lib/openat-priv.h (BUILD_PROC_NAME): Remove. All callers changed
22183 to use the following interface instead:
22184 (OPENAT_BUFFER_SIZE): New macro.
22185 (openat_proc_name): New function.
22186 * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
22187 * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
22189 * lib/openat-proc.c: New file.
22190 * modules/openat (Files): Add lib/openat-proc.c.
22191 (Depends-on): Add same-inode, stdbool.
22192 * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
22194 2006-09-29 Bruno Haible <bruno@clisp.org>
22196 * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
22197 * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
22198 argument. Set stdout_closed before testing for ferror, not after.
22199 (fwriteerror, fwriteerror_no_ebadf): New functions.
22201 2006-09-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
22203 * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
22205 2006-09-28 Paolo Bonzini <bonzini@gnu.org>
22207 * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
22208 * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
22210 2006-09-28 Jim Meyering <jim@meyering.net>
22212 * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
22213 Include <unistd.h>.
22215 2006-09-28 Bruno Haible <bruno@clisp.org>
22217 * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
22218 * modules/linkedhash-list (Depends-on): Likewise.
22219 * modules/rbtreehash-list (Depends-on): Likewise.
22221 2006-09-28 Bruno Haible <bruno@clisp.org>
22223 * lib/strndup.h: Simplify the redefinition of strndup.
22224 (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
22225 * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
22227 2006-09-28 Bruno Haible <bruno@clisp.org>
22229 * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
22230 * lib/gl_linkedhash_list.c: Likewise.
22231 * lib/gl_rbtreehash_list.c: Likewise.
22233 2006-09-27 Paul Eggert <eggert@cs.ucla.edu>
22235 * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
22238 * lib/__fpending.h: Don't include <stdio_ext.h> unless
22239 HAVE_DECL___FPENDING. This avoids a bug with lsbcc, where
22240 it causes <stdio_ext.h> to cause a compile-time error.
22241 Problem reported by Nelson H. F. Beebe.
22242 * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
22243 of HAVE_DECL___PENDING.
22245 * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
22246 * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
22249 2006-09-27 Jim Meyering <jim@meyering.net>
22251 This file could end up with a definition for a function
22252 named __strndup, rather than rpl_strndup on a system with
22253 incomplete weak_alias support.
22254 * lib/strndup.c (strndup): Rename from __strndup.
22255 Remove #defines that used to map __strndup to strndup.
22256 Don't use K&R prototypes.
22257 Remove LIBC-related code, since this file is not sync'd with glibc.
22258 * lib/strndup.h: Revamp, accordingly.
22259 * m4/strndup.m4: Modernize.
22261 2006-09-26 Paul Eggert <eggert@cs.ucla.edu>
22263 * modules/savewd (Depends-on): Add 'raise'.
22264 * lib/savewd.c: Include <signal.h>, for 'raise'.
22266 2006-09-26 Jim Meyering <jim@meyering.net>
22268 * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
22269 when we detect Darwin 8.7.0's acl_get_file bug.
22270 Rearrange to perform the new (below) run-test while $LIBS
22271 contains any acl-related library. Set USE_ACL at the end.
22272 (gl_ACL_GET_FILE): New function.
22274 2006-09-26 Eric Blake <ebb9@byu.net>
22276 * lib/verror.c: Include <config.h> unconditionally.
22278 2006-09-25 Paul Eggert <eggert@cs.ucla.edu>
22280 * modules/clock-time (Maintainer): Add self.
22281 * modules/getlogin_r (Depends-on): Add extensions.
22283 2006-09-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
22285 * modules/clock-time: New module.
22286 * modules/nanosleep (Depends-on): Add clock-time.
22287 * modules/gethrxtime (Depends-on): Likewise.
22288 * modules/gettime (Depends-on): Likewise.
22289 * modules/settime (Depends-on): Likewise.
22291 * modules/fts-lgpl: Depend on openat.
22292 * modules/mkancesdirs: Depend on savewd.
22293 * modules/mkdir-p: Likewise.
22295 2006-09-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
22297 * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
22299 * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
22300 `gl_have_arbitrary_file_name_length_limit' to
22301 `gl_cv_have_arbitrary_file_name_length_limit', so that caching
22302 actually works between configure runs.
22304 2006-09-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
22305 Bruno Haible <bruno@clisp.org>
22307 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
22309 2006-09-25 Jim Meyering <jim@meyering.net>
22311 * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
22312 This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
22314 2006-09-25 Eric Blake <ebb9@byu.net>
22316 * gnulib-tool (func_import, func_create_testdir): Fix typos in
22317 exec's in 2006-09-18 patch when shuffling fds.
22319 2006-09-25 Bruno Haible <bruno@clisp.org>
22321 * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
22322 Reported by Jim Meyering.
22324 2006-09-24 Jim Meyering <jim@meyering.net>
22326 * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
22327 compare a pointer against a literal "0". That caused failures with
22328 at least HP-UX's hpcc.
22330 2006-09-22 Simon Josefsson <jas@extundo.com>
22334 * modules/gc-hmac-sha1:
22335 * modules/gc-hmac-md5:
22337 * modules/gc-arcfour: Distribute more files.
22339 2006-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
22341 * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
22342 (gl_linked_iterator_from_to): Initialize struct completely.
22343 * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
22344 (gl_tree_iterator_from_to): Likewise
22345 * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
22346 * lib/gl_array_list.c [lint] (gl_array_iterator)
22347 (gl_array_iterator_from_to): Likewise.
22348 * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
22349 * lib/gl_carray_list.c [lint] (gl_carray_iterator)
22350 (gl_carray_iterator_from_to): Likewise.
22352 * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
22353 * lib/md4.c (md4_process_block): Remove unused variable.
22354 * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
22355 parentheses for clarity.
22357 2006-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
22359 * modules/bison-i18n (Depends-on): Add gettext.
22361 2006-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
22363 * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
22364 * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
22365 * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
22366 also add missing comma that caused broken test.
22367 * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
22368 stdlib.h, for `abort'.
22369 * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
22371 * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
22372 include unistd.h if present, for `rmdir'.
22373 * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
22375 * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
22376 in the process include standard headers for prototypes.
22377 * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
22378 gets declared on GNU/Linux.
22379 * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
22380 unistd.h, for `rmdir'.
22381 * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
22383 * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
22385 * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
22387 * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
22389 2006-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
22391 * gnulib-tool (func_version): Create output all at once. This
22392 may help avoid triggering unnecessary SIGPIPEs, and at any
22393 rate it doesn't hurt.
22395 2006-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
22396 Bruno Haible <bruno@clisp.org>
22398 * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
22399 * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
22400 * m4/signed.m4 (bh_C_SIGNED): Likewise.
22402 * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
22403 (gl_FUNC_VASPRINTF): Invoke it.
22405 2006-09-22 Bruno Haible <bruno@clisp.org>
22407 * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
22408 getloadavg.c as first argument.
22410 2006-09-22 Bruno Haible <bruno@clisp.org>
22412 * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
22413 at the beginning of the gl_INIT macro.
22414 * modules/getloadavg (configure.ac): Pass $gl_source_base to
22417 2006-09-22 Bruno Haible <bruno@clisp.org>
22419 * gnulib-tool (func_create_megatestdir): Don't include the config-h
22421 Suggested by Ralf Wildenhues.
22423 2006-09-20 Paul Eggert <eggert@cs.ucla.edu>
22425 Import this patch from libc:
22427 2006-09-06 Jakub Jelinek <jakub@redhat.com>
22429 * lib/regex_internal.c (re_string_reconstruct): Handle
22430 offset < pstr->valid_raw_len && pstr->offsets_needed case.
22431 Ensure no bytes read before raw_mbs array. Pass a saved copy of
22432 pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
22433 re_string_context_at.
22435 * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
22437 (gl_PREREQ_REGEX): Don't check for locale.h any more, since
22438 gl_REGEX now does it for us.
22439 (gl_REGEX): Add test taken from
22440 http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
22442 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
22443 Check that large offsets work. Modernize Autoconf usages.
22444 Prefer "yes" to mean a good thing rather than a bad.
22445 Don't put "#define mkstemp" in config.h, as this might interfere
22446 with standard system headers that "#define mkstemp mkstemp64".
22448 * modules/mkstemp (Depends-on): Add extensions, so that
22449 mkstemp is visible on some platforms.
22450 (Makefile.am): Add mkstemp.h to EXTRA_DIST.
22451 (Include): Change to "mkstemp.h" from <stdlib.h>.
22452 (Files): Add mkstemp.h.
22454 * lib/mkstemp.h: New file, since some standard headers
22456 * lib/mkstemp.c: Revamp to put the !_LIBC code together.
22457 Include "mkstemp.h".
22458 Make the _LIBC code resemble glibc original more,
22459 e.g., use K&R style.
22460 * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
22461 (mkstemp): Remove, since mkstemp.h does this for us.
22462 * lib/stdlib--.h: Include mkstemp.h.
22464 Import this patch from libc:
22466 2006-04-07 Ulrich Drepper <drepper@redhat.com>
22468 * lib/tempname.c (__gen_tempname): Change attempts_min
22469 into a macro. Use preprocessor to decide how to initialize
22470 attempts [Coverity CID 67].
22472 2006-09-20 Bruno Haible <bruno@clisp.org>
22474 * lib/mkdtemp.c: Import from libc.
22475 2006-04-07 Ulrich Drepper <drepper@redhat.com>
22476 * sysdeps/posix/tempname.c (__gen_tempname): Change
22477 attempts_min into a macro. Use preprocessor to decide how to
22478 initialize attempts [Coverity CID 67].
22479 2001-11-27 Paul Eggert <eggert@twinsun.com>
22480 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
22481 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
22483 2006-09-19 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
22485 * gnulib-tool (func_exit): New function, to allow to pass the
22486 exit status portably through the trap. Use everywhere.
22487 (--help, --version): Signal a write error.
22488 (trap): catch SIGPIPE, for write errors.
22489 Exit at the end of the trap, with the correct exit status.
22491 2006-09-19 Karl Berry <karl@gnu.org>
22493 * doc/gnulib.texi: note about the license texinfo files.
22495 2006-09-19 Eric Blake <ebb9@byu.net>
22497 * gnulib-tool: Avoid space-tab.
22499 2006-09-18 Paul Eggert <eggert@cs.ucla.edu>
22501 * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
22502 that prevented coreutils 6.1 from building. Problem reported
22503 by Petter Reinholdtsen.
22505 2006-09-18 Paul Eggert <eggert@cs.ucla.edu>
22507 * gnulib-tool (avoidlist): Fix typo that broke options like
22508 --avoid=lock that are used by coreutils bootstrap.
22510 2006-09-18 Mark D. Baushke <mdb@gnu.org>
22512 * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
22513 more systematically.
22515 2006-09-18 Jim Meyering <jim@meyering.net>
22517 * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
22519 2006-09-18 Bruno Haible <bruno@clisp.org>
22521 * modules/inttypes (Files): Remove m4/inttypes-h.m4.
22523 2006-09-18 Bruno Haible <bruno@clisp.org>
22525 * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
22526 * m4/inttypes-pri.m4: Require autoconf >= 2.52.
22527 (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
22528 ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
22529 * m4/gettext.m4: Require autoconf >= 2.52.
22530 (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
22531 * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
22532 of gl_cv_header_inttypes_h.
22534 2006-09-18 Bruno Haible <bruno@clisp.org>
22536 * lib/javaversion.c: Include configmake.h.
22538 2006-09-18 Bruno Haible <bruno@clisp.org>
22540 * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
22541 avoid that the while loops be executed in a subshell.
22543 2006-09-18 Bruno Haible <bruno@clisp.org>
22545 * MODULES.html.sh (func_module): Break long lines.
22546 Suggested by Bruce Korb <bkorb@gnu.org>.
22548 2006-09-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
22550 Speed up by a factor of 1.12.
22551 * gnulib-tool (nl): New variable.
22552 (func_import): Rewrite include directive extraction to only read each
22555 2006-09-17 Bruno Haible <bruno@clisp.org>
22557 * modules/javaversion (Makefile.am): Remove DEFS setting.
22558 (Depends-on): Add configmake, for PKGDATADIR definition.
22560 2006-09-17 Bruno Haible <bruno@clisp.org>
22562 * gnulib-tool (func_create_testdir): Rewrite all files at once.
22564 2006-09-17 Bruno Haible <bruno@clisp.org>
22566 * gnulib-tool (func_append): New function, stolen from libtool.m4.
22567 (func_modules_transitive_closure, func_modules_add_dummy,
22568 func_modules_to_filelist, func_import, func_create_testdir,
22569 func_create_megatestdir, ...): Use it wherever possible.
22570 Suggested by Ralf Wildenhues.
22572 2006-09-16 Karl Berry <karl@gnu.org>
22574 * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
22575 to avoid sectioning errors.
22576 * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
22577 [ifinfo]: blank line after @center-ed titles.
22578 * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
22579 Spell FSF address consistently with others.
22580 (These changes approved by rms.)
22582 2006-09-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
22584 Speed up by a factor of 1.61.
22585 * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
22586 already checked module names again.
22588 2006-09-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
22590 Speed up by a factor of 1.13.
22591 * gnulib-tool (func_import): Rewrite all old_files at once; likewise
22592 for new_files, and the input to func_add_or_update.
22594 2006-09-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
22596 * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
22597 func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
22599 2006-09-15 Paul Eggert <eggert@cs.ucla.edu>
22601 * modules/mkancesdirs (Depends-on): Add fcntl.
22602 * modules/savewd: New file.
22603 * MODULES.html.sh (File system functions): Add savewd.
22605 * modules/configmake (Makefile.am): Add support for the
22606 Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
22608 2006-09-15 Paul Eggert <eggert@cs.ucla.edu>
22610 * m4/savewd.m4: New file.
22612 2006-09-15 Paul Eggert <eggert@cs.ucla.edu>
22614 * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
22615 (dirchownmod): New arg FD. All callers changed.
22616 Use FD rather than opening the directory ourself, as opening is
22617 now the caller's responsibility.
22618 * lib/dirchownmod.h: Likewise.
22619 * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
22620 hosts that require <sys/types.h> before <sys/stat.h>. Include
22621 fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
22622 (test_dir): Remove.
22623 (mkancesdirs): Return length of prefix of FILE that has already
22624 been made, or -2 if there is a child doing the work. Redo
22625 algorithm so that it is O(N) rather than O(N**2). Optimize away
22626 ".", and treat ".." specially since it might stray back into
22627 already-created areas. Use a subprocess if necessary. New arg
22628 WD; all users changed. MAKE_DIR function should now return 1
22629 if it creates a directory that is not readable. Return -2 if
22630 a child process is spun off.
22631 * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
22632 Adjust signature to match code.
22633 * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
22634 (make_dir_parents): Use a subprocess if necessary. New arg WD;
22636 * lib/savewd.c, lib/savewd.h: New files.
22638 2006-09-15 Jim Meyering <jim@meyering.net>
22640 * modules/rename-dest-slash: New module.
22641 * MODULES.html.sh (posix_compat): Add it here.
22643 * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
22645 2006-09-15 Jim Meyering <jim@meyering.net>
22647 * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
22650 * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
22652 2006-09-15 Jim Meyering <jim@meyering.net>
22654 * lib/rename-dest-slash.c (has_trailing_slash): Use
22655 FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
22656 (rpl_rename_dest_slash): Perform the cheaper trailing slash
22657 test before testing whether SRC is a directory.
22658 Suggestions from Bruno Haible.
22660 Avoid a warning about an unused variable.
22661 * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
22662 into the #ifdef block where it's used.
22664 * lib/rename-dest-slash.c: New file.
22666 2006-09-14 Bruno Haible <bruno@clisp.org>
22668 * lib/allocsa.c: Include <config.h> unconditionally.
22669 * lib/asnprintf.c: Likewise.
22670 * lib/asprintf.c: Likewise.
22671 * lib/c-strcasecmp.c: Likewise.
22672 * lib/c-strcasestr.c: Likewise.
22673 * lib/c-strncasecmp.c: Likewise.
22674 * lib/c-strstr.c: Likewise.
22675 * lib/classpath.c: Likewise.
22676 * lib/clean-temp.c: Likewise.
22677 * lib/concatpath.c: Likewise.
22678 * lib/copy-file.c: Likewise.
22679 * lib/csharpcomp.c: Likewise.
22680 * lib/csharpexec.c: Likewise.
22681 * lib/execute.c: Likewise.
22682 * lib/fatal-signal.c: Likewise.
22683 * lib/findprog.c: Likewise.
22684 * lib/fwriteerror.c: Likewise.
22685 * lib/gl_array_list.c: Likewise.
22686 * lib/gl_array_oset.c: Likewise.
22687 * lib/gl_avltree_list.c: Likewise.
22688 * lib/gl_avltree_oset.c: Likewise.
22689 * lib/gl_avltreehash_list.c: Likewise.
22690 * lib/gl_carray_list.c: Likewise.
22691 * lib/gl_linked_list.c: Likewise.
22692 * lib/gl_linkedhash_list.c: Likewise.
22693 * lib/gl_list.c: Likewise.
22694 * lib/gl_oset.c: Likewise.
22695 * lib/gl_rbtree_list.c: Likewise.
22696 * lib/gl_rbtree_oset.c: Likewise.
22697 * lib/gl_rbtreehash_list.c: Likewise.
22698 * lib/imaxabs.c: Likewise.
22699 * lib/imaxdiv.c: Likewise.
22700 * lib/javacomp.c: Likewise.
22701 * lib/javaexec.c: Likewise.
22702 * lib/javaversion.c: Likewise.
22703 * lib/linebreak.c: Likewise.
22704 * lib/localcharset.c: Likewise.
22705 * lib/lock.c: Likewise.
22706 * lib/mbchar.c: Likewise.
22707 * lib/mbswidth.c: Likewise.
22708 * lib/mkdtemp.c: Likewise.
22709 * lib/pipe.c: Likewise.
22710 * lib/printf-args.c: Likewise.
22711 * lib/printf-parse.c: Likewise.
22712 * lib/progname.c: Likewise.
22713 * lib/progreloc.c: Likewise.
22714 * lib/readlink.c: Likewise.
22715 * lib/sh-quote.c: Likewise.
22716 * lib/stpcpy.c: Likewise.
22717 * lib/stpncpy.c: Likewise.
22718 * lib/strcasecmp.c: Likewise.
22719 * lib/strcasestr.c: Likewise.
22720 * lib/strcspn.c: Likewise.
22721 * lib/striconv.c: Likewise.
22722 * lib/strncasecmp.c: Likewise.
22723 * lib/strnlen1.c: Likewise.
22724 * lib/strstr.c: Likewise.
22725 * lib/strtok_r.c: Likewise.
22726 * lib/tls.c: Likewise.
22727 * lib/tmpdir.c: Likewise.
22728 * lib/unicodeio.c: Likewise.
22729 * lib/unsetenv.c: Likewise.
22730 * lib/vasnprintf.c: Likewise.
22731 * lib/vasprintf.c: Likewise.
22732 * lib/wait-process.c: Likewise.
22733 * lib/xallocsa.c: Likewise.
22734 * lib/xsetenv.c: Likewise.
22735 * lib/xstriconv.c: Likewise.
22737 2006-09-13 Simon Josefsson <jas@extundo.com>
22739 * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
22740 that internally, suggested by Ralf Wildenhues
22741 <Ralf.Wildenhues@gmx.de>.
22743 2006-09-13 Simon Josefsson <jas@extundo.com>
22745 * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
22747 Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
22749 2006-09-13 Paul Eggert <eggert@cs.ucla.edu>
22751 * lib/_fpending.c: Include <config.h> unconditionally, since we no
22752 longer worry about uses that don't define HAVE_CONFIG_H.
22753 * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
22754 * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
22755 * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
22756 * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
22757 * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
22758 * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
22759 * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
22760 * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
22761 * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
22762 * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
22763 * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
22764 * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
22765 * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
22766 * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
22767 * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
22768 * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
22769 * lib/getusershell.c, lib/glob.c, lib/group-member.c:
22770 * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
22771 * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
22772 * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
22773 * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
22774 * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
22775 * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
22776 * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
22777 * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
22778 * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
22779 * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
22780 * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
22781 * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
22782 * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
22783 * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
22784 * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
22785 * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
22786 * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
22787 * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
22788 * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
22789 * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
22790 * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
22791 * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
22792 * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
22793 * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
22796 2006-09-13 Eric Blake <ebb9@byu.net>
22798 * lib/getopt.c: Fix typo in last commit.
22800 2006-09-12 Sergey Poznyakoff <gray@gnu.org.ua>
22802 * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
22805 2006-09-12 Jim Meyering <jim@meyering.net>
22807 * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
22808 compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
22809 Reported by Nelson H. F. Beebe.
22811 2006-09-10 Sergey Poznyakoff <gray@gnu.org.ua>
22813 * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
22814 program_invocation_name and program_invocation_short_name are
22816 * lib/argp-namefrob.h: Move declarations of program_invocation_name
22817 and program_invocation_short_name to argp.h, so they are visible
22819 * lib/argp.h: Likewise
22821 2006-09-10 Bruno Haible <bruno@clisp.org>
22823 * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
22824 m4/inttypes_h.m4, m4/uintmax_t.m4.
22826 2006-09-10 Bruno Haible <bruno@clisp.org>
22828 * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
22829 gl_AC_TYPE_UINTMAX_T.
22831 2006-09-10 Bruno Haible <bruno@clisp.org>
22833 * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
22835 2006-09-09 Sergey Poznyakoff <gray@gnu.org.ua>
22837 * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
22838 convention. Text proposed by Bruno Haible.
22839 (struct argp_option): Document the use of N_() wrappers.
22841 * lib/argp-help.c (argp_doc): Split the untranslated doc string on
22842 '\v', and translate the two parts separately, instead of feeding
22843 the whole string to gettext. This allows to exclude
22844 '\v' from the strings visible to the translator by writing doc
22845 strings as N_("..") "\v" N_("..").
22847 2006-09-09 Paul Eggert <eggert@cs.ucla.edu>
22849 * config/srclist.txt: Undo latest change; the bug was fixed.
22851 2006-09-09 Bruno Haible <bruno@clisp.org>
22853 * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
22854 assignments if building a library without libtool.
22855 (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
22856 in func_emit_lib_Makefile_am.
22857 (func_import): When building a static library libfoo.a, arrange to
22858 define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
22859 (func_create_testdir): Likewise.
22860 * modules/gc (configure.ac, Makefile.am): If building statically,
22861 augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
22862 * modules/iconvme (configure.ac, Makefile.am): Likewise.
22863 * modules/striconv (configure.ac, Makefile.am): Likewise.
22864 Based on a suggestion by Ralf Wildenhues.
22866 2006-09-08 Paul Eggert <eggert@cs.ucla.edu>
22868 * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
22869 Check for unistd.h too, since Autoconf doesn't assume POSIX.
22872 2006-09-08 Paul Eggert <eggert@cs.ucla.edu>
22873 Add year_2050_test to catch glibc bug 2821
22874 <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
22876 2006-08-15 Paul Eggert <eggert@cs.ucla.edu>
22877 Prefer #ifdef to #if.
22879 2006-04-02 Paul Eggert <eggert@cs.ucla.edu>
22880 Return from 'main' instead of calling 'exit'.
22882 2006-09-08 Paul Eggert <eggert@cs.ucla.edu>
22884 * lib/mktime.c (guess_time_tm): Fix bug where mktime
22885 returned the maximum time_t value rather than (time_t) -1.
22886 Problem originally reported by William Bardwell
22887 <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
22889 * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
22891 * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
22894 2006-09-08 Paul Eggert <eggert@cs.ucla.edu>
22896 * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
22899 2006-09-08 Jim Meyering <jim@meyering.net>
22901 Don't make generated files read-only. That would bother too many
22902 people. However, do retain the ability to work when targets are
22903 read-only: remove the destination and temporary files before writing
22904 them (when generated via sed or echo), or by using the -f option for
22905 both cp and mv commands. Suggestion to use -f from Paul Eggert.
22906 * modules/alloca-opt, modules/argz, modules/arpa_inet:
22907 * modules/byteswap, modules/configmake, modules/fcntl:
22908 * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
22909 * modules/localcharset, modules/netinet_in, modules/poll:
22910 * modules/stdbool, modules/stdint, modules/sys_select:
22911 * modules/sys_socket, modules/sys_stat, modules/sysexits:
22913 2006-09-08 Jim Meyering <jim@meyering.net>
22915 Avoid new build failure on FreeBSD 6.0.
22916 * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
22917 <sys/param.h> when testing whether getmntinfo uses statvfs. Patch by
22918 Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
22920 2006-09-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
22922 * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
22924 2006-09-07 Jim Meyering <jim@meyering.net>
22926 Fix global typo in last change: use chmod u-w, not chmod u-x.
22927 Spotted by Paul Eggert and Bruce Korb.
22928 * modules/alloca-opt, modules/argz, modules/arpa_inet:
22929 * modules/byteswap, modules/configmake, modules/fcntl:
22930 * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
22931 * modules/localcharset, modules/netinet_in, modules/poll:
22932 * modules/stdbool, modules/stdint, modules/sys_select:
22933 * modules/sys_socket, modules/sys_stat, modules/sysexits:
22935 2006-09-06 Jim Meyering <jim@meyering.net>
22937 Make generated files be read-only.
22938 * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
22939 Ensure that each generated file is now read-only.
22940 * modules/argz: Likewise.
22941 * modules/arpa_inet: Likewise.
22942 * modules/byteswap: Likewise.
22943 * modules/configmake: Likewise.
22944 * modules/fcntl: Likewise.
22945 * modules/fnmatch: Likewise.
22946 * modules/getopt: Likewise.
22947 * modules/glob: Likewise.
22948 * modules/inttypes: Likewise.
22949 * modules/netinet_in: Likewise.
22950 * modules/poll: Likewise.
22951 * modules/stdbool: Likewise.
22952 * modules/stdint: Likewise.
22953 * modules/sys_select: Likewise.
22954 * modules/sys_socket: Likewise.
22955 * modules/sys_stat: Likewise.
22956 * modules/sysexits: Likewise.
22957 * modules/localcharset: Same as above, but continue using temporary
22958 file named "t-$@" (why different?) rather than the "$@-t" used
22961 * modules/sysexits (Makefile.am): Replace literal occurrences
22962 of "sysexit.h" more readable, and more consistent, "$@".
22964 2006-09-06 Bruno Haible <bruno@clisp.org>
22966 * modules/striconv: New file.
22967 * modules/xstriconv: New file.
22968 * MODULES.html.sh (Internationalization functions): Add striconv,
22971 2006-09-06 Bruno Haible <bruno@clisp.org>
22973 * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
22974 * modules/iconvme (Makefile.am): Likewise. Also handle the case of
22975 not using libtool correctly.
22977 2006-09-06 Bruno Haible <bruno@clisp.org>
22979 * lib/striconv.h: New file.
22980 * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
22982 * lib/xstriconv.h: New file.
22983 * lib/xstriconv.c: New file.
22985 2006-09-06 Bruno Haible <bruno@clisp.org>
22987 * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
22990 2006-09-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
22992 * lib/argz_.h: Sync from Libtool.
22994 2006-09-04 George Bosilca <bosilca@cs.utk.edu>
22995 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
22997 * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
22999 2006-09-05 Davide Angelocola <davide.angelocola@tiscali.it>
23001 * modules/trim: New file.
23003 2006-09-05 Davide Angelocola <davide.angelocola@tiscali.it>
23005 * lib/trim.h: New file.
23006 * lib/trim.c: New file.
23008 2006-09-05 Bruno Haible <bruno@clisp.org>
23010 * MODULES.html.sh (String handling): Add trim.
23012 2006-09-04 Karl Berry <karl@gnu.org>
23014 * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
23015 until next release.
23017 2006-09-03 Bruno Haible <bruno@clisp.org>
23019 * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
23022 2006-09-01 Paul Eggert <eggert@cs.ucla.edu>
23024 * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
23025 not gl_GETLOADAVG. Omit unneeded semicolons.
23026 Problems reported by Ralf Wildenhues in
23027 <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
23028 (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define. Put
23029 at the end, which is the usual gnulib style.
23031 * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
23032 of doing all the work ourselves.
23033 * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
23034 sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
23036 2006-09-01 Paul Eggert <eggert@cs.ucla.edu>
23038 * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
23039 Problem reported by Ralf Wildenhues in
23040 <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
23042 * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
23043 HAVE_STRUCT_STATFS_F_FSTYPENAME.
23045 2006-09-01 Paul Eggert <eggert@cs.ucla.edu>
23047 * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
23048 yesterday's patch by changing test -n to test -z.
23050 2006-08-31 Paul Eggert <eggert@cs.ucla.edu>
23052 * modules/getloadavg (Files): Add m4/getloadavg.m4.
23053 (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
23054 the former is now obsolescent.
23056 * modules/chdir-long (Depends-on): Add fcntl.
23058 2006-08-31 Paul Eggert <eggert@cs.ucla.edu>
23060 * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
23061 obsolescent, and programs should use gnulib instead.
23062 * m4/getloadavg.m4: New file, with contents taken from Autoconf
23063 but with prefixes changed.
23065 2006-08-31 Paul Eggert <eggert@cs.ucla.edu>
23067 * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
23068 or stdbool.h, because they might not exist while configuring.
23070 * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
23071 Don't include unistd.h or limits.h; not needed, since chdir-long.h
23073 (O_DIRECTORY): Remove.
23075 2006-08-31 Eric Blake <ebb9@byu.net>
23077 * gnulib-tool: Don't let emacs change spaces to TAB.
23079 2006-08-31 Bruno Haible <bruno@clisp.org>
23081 * gnulib-tool: When calling func_import more than once, do it in a
23083 Reported by Eric Blake <ebb9@byu.net>.
23085 2006-08-31 Bruno Haible <bruno@clisp.org>
23087 * gnulib-tool (nl): Remove variable.
23088 (sed_transform_lib_file): Use more robust test for config-h module.
23089 (func_import): Fix typo in 2006-08-25 patch.
23091 2006-08-31 Bruno Haible <bruno@clisp.org>
23093 * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
23094 specified, augment Makefile.am variables instead of assigning them.
23096 2006-08-30 Paul Eggert <eggert@cs.ucla.edu>
23098 Work around a bug in both the Linux and SunOS 64-bit kernels:
23099 nanosleep mishandles sleeps for longer than 2**31 seconds.
23100 Problem reported by Frank v Waveren in
23101 <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
23102 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
23103 Check for nanosleep bug.
23104 (LIB_NANOSLEEP): Append clock_gettime library if needed.
23106 2006-08-30 Paul Eggert <eggert@cs.ucla.edu>
23108 Work around a bug in both the Linux and SunOS 64-bit kernels:
23109 nanosleep mishandles sleeps for longer than 2**31 seconds.
23110 Problem reported by Frank v Waveren in
23111 <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
23112 * lib/nanosleep.c (BILLION): New constant.
23113 (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
23114 (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
23117 2006-08-30 Paul Eggert <eggert@cs.ucla.edu>
23119 * modules/nanosleep (Depends-on): Add gettime.
23121 2006-08-30 Paul Eggert <eggert@cs.ucla.edu>
23122 and Simon Josefsson <jas@extundo.com>
23123 and Oskar Liljeblad <oskar@osk.mine.nu>
23125 * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
23126 * gnulib-tool (func_import): New license type 'unmodifiable license
23128 * modules/fdl: Use it. Longer description.
23129 * module/gpl, module/lgpl: New files.
23131 2006-08-30 Jim Meyering <jim@meyering.net>
23133 * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
23134 shadowing the parameter.
23136 2006-08-29 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
23140 2006-08-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
23142 * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
23143 sharing with gnulib. Report by Eric Blake.
23145 2006-08-29 Paul Eggert <eggert@cs.ucla.edu>
23147 * modules/isapipe: New file.
23148 * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
23150 2006-08-29 Paul Eggert <eggert@cs.ucla.edu>
23152 * modules/configmake (Makefile.am): Add a comment, and omit
23153 the CONFIGMAKE_ prefix from generated macro names. Suggested
23156 2006-08-29 Paul Eggert <eggert@cs.ucla.edu>
23158 * m4/isapipe.m4: New file.
23160 2006-08-29 Paul Eggert <eggert@cs.ucla.edu>
23162 * lib/isapipe.c, lib/isapipe.h: New files.
23164 2006-08-29 Jim Meyering <jim@meyering.net>
23166 * modules/configmake (Makefile.am): Make configmake.h depend on
23167 Makefile. Otherwise, a stale configmake.h could hang around.
23169 2006-08-29 Eric Blake <ebb9@byu.net>
23171 * lib/error.c (error_at_line, print_errno_message): Match libc, after
23172 resolution of upstream bug 3044.
23174 2006-08-29 Bruno Haible <bruno@clisp.org>
23176 * modules/localcharset (Depends-on): Add configmake.
23177 (Makefile.am): Remove setting of LIBDIR through DEFS.
23179 2006-08-29 Bruno Haible <bruno@clisp.org>
23181 * lib/localcharset.c: Include configmake.h in order to get LIBDIR
23184 2006-08-28 Paul Eggert <eggert@cs.ucla.edu>
23186 * modules/fcntl: New file.
23187 * modules/chdir-safer (Depends-on): Add fcntl.
23188 * modules/fts: Likewise.
23189 * modules/mkdir-p: Likewise.
23191 * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
23192 This undoes the most recent change, since we're now addressing the
23193 problem in a different way.
23195 * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
23196 into output, since the output might be called Makefile.am even
23197 if $makefile_name is something different.
23198 (func_import): Use $makefile_am rather than
23199 ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
23202 * modules/inttypes (Files): Add m4/inttypes-h.m4.
23204 2006-08-28 Paul Eggert <eggert@cs.ucla.edu>
23206 * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
23207 * m4/stdint.m4 (gl_STDINT_H): ... from here. This undoes the most
23208 recent change to stdint.m4, since we're now addressing the problem in a
23211 2006-08-28 Paul Eggert <eggert@cs.ucla.edu>
23213 * m4/fcntl_h.m4: New file.
23215 2006-08-28 Paul Eggert <eggert@cs.ucla.edu>
23217 * lib/fcntl_.h: New file.
23218 * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
23220 * lib/dirchownmod.c: Likewise.
23221 * lib/fts.c: Likewise.
23223 * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
23224 Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
23225 * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
23226 just before including <inttypes.h>, to avoid circular inclusion.
23228 2006-08-28 Jim Meyering <jim@meyering.net>
23230 * doc/visibility.texi: Actually read and correct the grammar of the
23231 sentence affected by yesterday's change.
23233 2006-08-28 Eric Blake <ebb9@byu.net>
23235 * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
23238 2006-08-28 Eric Blake <ebb9@byu.net>
23240 * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
23242 2006-08-28 Eric Blake <ebb9@byu.net>
23244 * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
23246 2006-08-28 Bruno Haible <bruno@clisp.org>
23248 * modules/c-strstr: New file, from GNU gettext.
23249 * MODULES.html.sh (String handling): Add c-strstr.
23251 2006-08-28 Bruno Haible <bruno@clisp.org>
23253 * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
23255 Reported by Eric Blake.
23257 2006-08-28 Bruno Haible <bruno@clisp.org>
23259 * lib/vasnprintf.c (EOVERFLOW): Remove definition.
23260 (VASNPRINTF): Return a string of length > INT_MAX without failing.
23261 * lib/vasprintf.c: Include errno.h, limits.h.
23262 (EOVERFLOW): New fallback definition.
23263 (vasprintf): Test here whether the string length is > INT_MAX.
23264 * lib/vsnprintf.c: Include errno.h, limits.h.
23265 (EOVERFLOW): New fallback definition.
23266 (vsnprintf): Fix bug when generated string was too long for the buffer.
23267 Test here whether the string length is > INT_MAX.
23269 2006-08-28 Bruno Haible <bruno@clisp.org>
23271 * lib/inttypes_.h (SCNX*): Remove definitions.
23272 Reported by Eric Blake.
23274 2006-08-28 Bruno Haible <bruno@clisp.org>
23276 * lib/c-strstr.h: New file, from GNU gettext.
23277 * lib/c-strstr.c: New file, from GNU gettext.
23279 2006-08-28 Bruno Haible <bruno@clisp.org>
23281 * gnulib-tool: Reorder some statements.
23283 2006-08-28 Bruno Haible <bruno@clisp.org>
23285 * gnulib-tool: New option --makefile-name.
23286 (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
23288 (func_import): Write $makefile_name to the cache file, and read it from
23289 there unless explicitly specified. Use $makefile_name as file name
23290 instead of Makefile.am. Adjust the recommendations accordingly.
23292 2006-08-28 Bruno Haible <bruno@clisp.org>
23294 * gnulib-tool (func_verify_module): Check against misapplying patch.
23296 2006-08-28 Bruno Haible <bruno@clisp.org>
23298 * gnulib-tool (func_relativize, func_relconcat): New functions.
23299 Give an error if --local-dir is given with --update.
23300 Remove trailing slashes from $local_gnulib_dir.
23301 (func_import): Store the relativized $local_gnulib_dir in
23302 gnulib-cache.m4, and read it from there if not specified explicitly.
23304 2006-08-28 Bruno Haible <bruno@clisp.org>
23306 * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
23307 is the current directory. Respect also $local_gnulib_dir.
23309 2006-08-28 Bruno Haible <bruno@clisp.org>
23310 Simon Josefsson <jas@extundo.com>
23313 * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
23315 2006-08-27 Jim Meyering <jim@meyering.net>
23317 * doc/visibility.texi: Remove duplicate word: "pointer".
23319 2006-08-26 Bruno Haible <bruno@clisp.org>
23321 * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
23322 Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
23323 (Makefile.am): Create inttypes.h from inttypes_.h.
23324 * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
23326 * modules/imaxabs: New file.
23328 * modules/imaxdiv: New file.
23330 2006-08-26 Bruno Haible <bruno@clisp.org>
23332 * m4/inttypes.m4: New file.
23333 * m4/_inttypes_h.m4: Remove file.
23334 * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
23336 * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
23338 * m4/imaxabs.m4: New file.
23340 * m4/imaxdiv.m4: New file.
23342 2006-08-26 Bruno Haible <bruno@clisp.org>
23344 * lib/inttypes_.h: New file.
23345 * lib/inttypes.h: Remove file.
23346 * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
23348 * lib/imaxabs.c: New file.
23350 * lib/imaxdiv.c: New file.
23352 2006-08-25 Paul Eggert <eggert@cs.ucla.edu>
23354 New config-h module, so that "make" output needn't be cluttered
23355 by -DHAVE_CONFIG_H.
23356 * MODULES.html.sh (Support for building libraries and executables):
23358 * modules/config-h: New file.
23359 * gnulib-tool (nl, sed_transform_lib_file): New vars.
23360 (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
23361 the config-h module is used.
23363 New configmake module, so that "make" output needn't be cluttered
23364 by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
23365 * MODULES.html.sh (Support for building libraries and executables):
23367 * modules/configmake: New file.
23369 2006-08-25 Paul Eggert <eggert@cs.ucla.edu>
23371 * m4/config-h.m4: New file.
23373 2006-08-24 Paul Eggert <eggert@cs.ucla.edu>
23375 * config/srclist.txt: Add elisp-comp.
23377 2006-08-24 Paul Eggert <eggert@cs.ucla.edu>
23379 * MODULES.html.sh (Support for building libraries and executables):
23381 * build-aux/elisp-comp: New file.
23382 * modules/elisp-comp: New file.
23384 2006-08-24 Bruno Haible <bruno@clisp.org>
23386 * gnulib-tool (func_create_testdir): Use non-default values of
23387 sourcebase and m4base.
23389 2006-08-24 Bruno Haible <bruno@clisp.org>
23391 * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
23394 2006-08-23 Paul Eggert <eggert@cs.ucla.edu>
23396 * modules/openat (Depends-on): Add lchown.
23398 2006-08-23 Bruno Haible <bruno@clisp.org>
23400 * gnulib-tool (func_import, func_create_testdir): Emit an invocation
23401 of gl_LOCK_EARLY instead of gl_LOCK.
23403 2006-08-23 Bruno Haible <bruno@clisp.org>
23405 * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
23407 Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
23409 2006-08-23 Bruno Haible <bruno@clisp.org>
23411 * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
23414 * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
23415 (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
23416 (gl_LOCK): New macro.
23418 2006-08-22 Simon Josefsson <jas@extundo.com>
23420 * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
23423 2006-08-22 Simon Josefsson <jas@extundo.com>
23425 * MODULES.html.sh: Add "Support for maintaining and release
23428 * build-aux/gnupload: New file, from coreutils.
23430 2006-08-22 Paul Eggert <eggert@cs.ucla.edu>
23432 Avoid the need for AC_LIBSOURCES in m4 macros.
23433 * modules/arcfour (EXTRA_DIST): Add arcfour.h.
23434 * modules/arctwo (EXTRA_DIST): Add arctwo.h.
23435 * modules/check-version (EXTRA_DIST): Add check-version.h.
23436 * modules/crc (EXTRA_DIST): Add crc.h.
23437 * modules/des (EXTRA_DIST): Add des.h.
23438 * modules/gc (EXTRA_DIST): Add gc.h.
23439 * modules/getdelim (EXTRA_DIST): Add getdelim.h.
23440 * modules/getline (EXTRA_DIST): Add getline.h.
23441 * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
23442 * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
23443 * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
23444 * modules/md2 (EXTRA_DIST): Add md2.h.
23445 * modules/md4 (EXTRA_DIST): Add md4.h.
23446 * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
23447 * modules/read-file (EXTRA_DIST): Add read-file.h.
23448 * modules/readline (EXTRA_DIST): Add readline.h.
23449 * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
23450 rijndael-api-fst.h.
23452 2006-08-22 Paul Eggert <eggert@cs.ucla.edu>
23454 * m4/rijndael.m4 (gl_ARCFOUR):
23455 * m4/arctwo.m4 (gl_ARCTWO):
23456 * m4/check-version.m4 (gl_CHECK_VERSION):
23457 * m4/crc.m4 (gl_CRC):
23458 * m4/des.m4 (gl_DES):
23459 * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
23460 * m4/gc.m4 (gl_GC):
23461 * m4/getdelim.m4 (gl_FUNC_GETDELIM):
23462 * m4/getline.m4 (gl_FUNC_GETLINE):
23463 * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
23464 * m4/hmac-md5.m4 (gl_HMAC_MD5):
23465 * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
23466 * m4/md2.m4 (gl_MD2):
23467 * m4/md4.m4 (gl_MD4):
23468 * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
23469 * m4/read-file.m4 (gl_FUNC_READ_FILE):
23470 * m4/readline.m4 (gl_FUNC_READLINE):
23471 * m4/rijndael.m4 (gl_RIJNDAEL):
23472 Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
23473 to get the necessary .h files and whatnot.
23475 2006-08-22 Paul Eggert <eggert@cs.ucla.edu>
23477 * config/srclist.txt: Remove gnupload, since coreutils now syncs from
23478 gnulib rather than the other way around.
23479 * config/srclistvars.sh (COREUTILS): Remove.
23481 2006-08-22 Jim Meyering <jim@meyering.net>
23483 * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
23485 * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
23487 2006-08-22 Eric Blake <ebb9@byu.net>
23489 * modules/regexprops-generic: New file.
23490 * MODULES.html.sh (Support for building documentation): List it.
23492 2006-08-22 Eric Blake <ebb9@byu.net>
23494 * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
23495 * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
23496 * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
23497 * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
23499 2006-08-22 Bruno Haible <bruno@clisp.org>
23501 * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
23502 and lib_LTLIBRARIES like the other lib_* variables.
23504 2006-08-22 Bruno Haible <bruno@clisp.org>
23506 * build-aux/x-to-1.in: New file, from GNU gettext.
23508 2006-08-22 Bruno Haible <bruno@clisp.org>
23510 * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
23513 2006-08-22 Bruno Haible <bruno@clisp.org>
23515 * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
23518 2006-08-21 Paul Eggert <eggert@cs.ucla.edu>
23521 * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
23523 Problem reported by Bruno Haible.
23525 2006-08-21 Paul Eggert <eggert@cs.ucla.edu>
23527 Avoid the need for AC_LIBSOURCES in m4 macros.
23528 * modules/acl (EXTRA_DIST): Add acl.h.
23529 * modules/argmatch (Files): Add m4/argmatch.m4.
23530 (configure.ac): Add gl_ARGMATCH.
23531 (EXTRA_DIST): Renamed from lib_SOURCES, for
23532 consistency with the other modules. Remove argmatch.c.
23533 * modules/backupfile (EXTRA_DIST): Add backupfile.h.
23534 * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
23535 * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
23536 * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
23537 * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
23538 * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
23539 * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
23540 * modules/cloexec (EXTRA_DIST): Add cloexec.h.
23541 * modules/close-stream (EXTRA_DIST): Add close-stream.h.
23542 * modules/closeout (EXTRA_DIST): Add closeout.h.
23543 * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
23544 * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
23545 * modules/dirfd (EXTRA_DIST): Add dirfd.h.
23546 * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES. Add
23547 dirname.h; remove basename.c and stripslash.c.
23548 * modules/exclude (EXTRA_DIST): Add exclude.h.
23549 * modules/exitfail (EXTRA_DIST): Add exitfail.h.
23550 * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
23551 * modules/file-type (EXTRA_DIST): Add file-type.h.
23552 * modules/filemode (EXTRA_DIST): Add filemode.h.
23553 * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
23554 * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
23555 * modules/fpending (EXTRA_DIST): Add __fpending.h.
23556 * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
23557 * modules/fsusage (EXTRA_DIST): Add fsusage.h.
23558 * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
23559 * modules/getcwd (EXTRA_DIST): Add getcwd.h.
23560 * modules/getdate (EXTRA_DIST): Add getdate.c.
23561 * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
23562 * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
23563 * modules/getpass (EXTRA_DIST): Add getpass.h.
23564 * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
23565 * modules/group-member (EXTRA_DIST): Add group-member.h.
23566 * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
23567 * modules/hash (EXTRA_DIST): Add hash.h.
23568 * modules/human (EXTRA_DIST): Add human.h.
23569 * modules/inttypes (EXTRA_DIST): Add inttypes.h.
23570 * modules/lchmod (EXTRA_DIST): Add lchmod.h.
23571 * modules/lchown (EXTRA_DIST): Add lchown.h.
23572 * modules/long-options (EXTRA_DIST): Add long-options.h.
23573 * modules/lstat (EXTRA_DIST): Add lstat.h.
23574 * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
23575 * modules/memcoll (EXTRA_DIST): Add memcoll.h.
23576 * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
23577 * modules/memrchr (EXTRA_DIST): Add memrchr.h.
23578 * modules/memxor (EXTRA_DIST): Add memxor.h.
23579 * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
23580 * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
23581 * modules/mountlist (EXTRA_DIST): Add mountlist.h.
23582 * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
23583 * modules/pathmax (EXTRA_DIST): Add pathmax.h.
23584 * modules/physmem (EXTRA_DIST): Add physmem.h.
23585 * modules/posixtm (EXTRA_DIST): Add posixtm.h.
23586 * modules/posixver (EXTRA_DIST): Add posixver.h.
23587 * modules/quote (EXTRA_DIST): Add quote.h.
23588 * modules/quotearg (EXTRA_DIST): Add quotearg.h.
23589 * modules/readtokens (EXTRA_DIST): Add readtokens.h.
23590 * modules/readutmp (EXTRA_DIST): Add readutmp.h.
23591 * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
23592 regex_internal.h regexec.c.
23593 * modules/safe-read (EXTRA_DIST): Add safe-read.h.
23594 * modules/safe-write (EXTRA_DIST): Add safe-write.h.
23595 * modules/same (EXTRA_DIST): Add same.h.
23596 * modules/same-inode (EXTRA_DIST): Add same-inode.h.
23597 * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
23598 * modules/savedir (EXTRA_DIST): Add savedir.h.
23599 * modules/sha1 (EXTRA_DIST): Add sha1.h.
23600 * modules/sig2str (EXTRA_DIST): Add sig2str.h.
23601 * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
23602 * modules/stat-time (EXTRA_DIST): Add stat-time.h.
23603 * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
23604 * modules/strdup (EXTRA_DIST): Add strdup.h.
23605 * modules/strftime (EXTRA_DIST): Add strftime.h.
23606 * modules/strndup (EXTRA_DIST): Add strndup.h.
23607 * modules/strnlen (EXTRA_DIST): Add strnlen.h.
23608 * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
23609 * modules/time_r (EXTRA_DIST): Add time_r.h.
23610 * modules/timespec (EXTRA_DIST): Add timespec.h.
23611 * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
23612 * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
23613 * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
23614 * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
23615 * modules/userspec (EXTRA_DIST): Add userspec.h.
23616 * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
23617 * modules/utimens (EXTRA_DIST): Add utimens.h.
23618 * modules/xalloc (EXTRA_DIST): Add xalloc.h.
23619 * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
23620 * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
23621 * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
23622 * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
23623 * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
23624 * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
23625 * modules/yesno (EXTRA_DIST): Add yesno.h.
23627 2006-08-21 Paul Eggert <eggert@cs.ucla.edu>
23629 * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
23631 * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
23632 * m4/dev-ino.m4, same-inode.m4: Remove.
23634 * m4/_inttypes_h.m4 (gl_INTTYPES_H):
23635 * m4/acl.m4 (AC_FUNC_ACL):
23636 * m4/backupfile.m4 (gl_BACKUPFILE):
23637 * m4/c-strtod.m4 (gl_C99_STRTOLD):
23638 * m4/canon-host.m4 (gl_CANON_HOST):
23639 * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
23640 * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
23641 * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
23642 * m4/cloexec.m4 (gl_CLOEXEC):
23643 * m4/close-stream.m4 (gl_CLOSE_STREAM):
23644 * m4/closeout.m4 (gl_CLOSEOUT):
23645 * m4/dirfd.m4 (gl_FUNC_DIRFD):
23646 * m4/dirname.m4 (gl_DIRNAME):
23647 * m4/exclude.m4 (gl_EXCLUDE):
23648 * m4/exitfail.m4 (gl_EXITFAIL):
23649 * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
23650 * m4/file-type.m4 (gl_FILE_TYPE):
23651 * m4/filemode.m4 (gl_FILEMODE):
23652 * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
23653 * m4/fpending.m4 (gl_FUNC_FPENDING):
23654 * m4/fprintftime.m4 (gl_FPRINTFTIME):
23655 * m4/fts.m4 (gl_FUNC_FTS):
23656 * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
23657 * m4/getdate.m4 (gl_GETDATE):
23658 * m4/gethrxtime.m4 (gl_GETHRXTIME):
23659 * m4/getpagesize.m4 (gl_GETPAGESIZE):
23660 * m4/getpass.m4 (gl_FUNC_GETPASS):
23661 * m4/gettime.m4 (gl_GETTIME):
23662 * m4/getugroups.m4 (gl_GETUGROUPS):
23663 * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
23664 * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
23665 * m4/hard-locale.m4 (gl_HARD_LOCALE):
23666 * m4/hash.m4 (gl_HASH):
23667 * m4/idcache.m4 (gl_IDCACHE):
23668 * m4/lchmod.m4 (gl_FUNC_LCHMOD):
23669 * m4/lchown.m4 (gl_FUNC_LCHOWN):
23670 * m4/long-options.m4 (gl_LONG_OPTIONS):
23671 * m4/lstat.m4 (gl_FUNC_LSTAT):
23672 * m4/md5.m4 (gl_MD5):
23673 * m4/memcasecmp.m4 (gl_MEMCASECMP):
23674 * m4/memcoll.m4 (gl_MEMCOLL):
23675 * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
23676 * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
23677 * m4/memxor.m4 (gl_MEMXOR):
23678 * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
23679 * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
23680 * m4/modechange.m4 (gl_MODECHANGE):
23681 * m4/mountlist.m4 (gl_MOUNTLIST):
23682 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
23683 * m4/openat.m4 (gl_FUNC_OPENAT):
23684 * m4/pathmax.m4 (gl_PATHMAX):
23685 * m4/physmem.m4 (gl_PHYSMEM):
23686 * m4/posixtm.m4 (gl_POSIXTM):
23687 * m4/posixver.m4 (gl_POSIXVER):
23688 * m4/quote.m4 (gl_QUOTE):
23689 * m4/quotearg.m4 (gl_QUOTEARG):
23690 * m4/readtokens.m4 (gl_READTOKENS):
23691 * m4/readutmp.m4 (gl_READUTMP):
23692 * m4/regex.m4 (gl_REGEX):
23693 * m4/safe-read.m4 (gl_SAFE_READ):
23694 * m4/safe-write.m4 (gl_SAFE_WRITE):
23695 * m4/same.m4 (gl_SAME):
23696 * m4/save-cwd.m4 (gl_SAVE_CWD):
23697 * m4/savedir.m4 (gl_SAVEDIR):
23698 * m4/settime.m4 (gl_SETTIME):
23699 * m4/sha1.m4 (gl_SHA1):
23700 * m4/sig2str.m4 (gl_FUNC_SIG2STR):
23701 * m4/stat-macros.m4 (gl_STAT_MACROS):
23702 * m4/stat-time.m4 (gl_STAT_TIME):
23703 * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
23704 * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
23705 * m4/strdup.m4 (gl_FUNC_STRDUP):
23706 * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
23707 * m4/strndup.m4 (gl_FUNC_STRNDUP):
23708 * m4/strnlen.m4 (gl_FUNC_STRNLEN):
23709 * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
23710 * m4/time_r.m4 (gl_TIME_R):
23711 * m4/timespec.m4 (gl_TIMESPEC):
23712 * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
23713 * m4/unlinkdir.m4 (gl_UNLINKDIR):
23714 * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
23715 * m4/userspec.m4 (gl_USERSPEC):
23716 * m4/utimecmp.m4 (gl_UTIMECMP):
23717 * m4/utimens.m4 (gl_UTIMENS):
23718 * m4/xalloc.m4 (gl_XALLOC):
23719 * m4/xgetcwd.m4 (gl_XGETCWD):
23720 * m4/xnanosleep.m4 (gl_XNANOSLEEP):
23721 * m4/xreadlink.m4 (gl_XREADLINK):
23722 * m4/xstrtod.m4 (gl_XSTRTOD):
23723 * m4/yesno.m4 (gl_YESNO):
23724 Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
23725 to get the necessary .h files and whatnot.
23727 2006-08-21 Mark D. Baushke <mdb@gnu.org>
23728 Bruno Haible <bruno@clisp.org>
23730 * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
23731 /bin/sh understanding of '!' conditional negation.
23733 2006-08-21 Jim Meyering <jim@meyering.net>
23735 * modules/openat (Depends-on): Really alphabetize.
23737 * modules/acl (Depends-on): Add error and quote.
23739 * check-module (find_included_lib_files): Add at-func.c to the
23740 ok-to-include-more-than-once white list.
23742 * modules/openat (Depends-on): Add lstat. Alphabetize.
23744 2006-08-21 Bruno Haible <bruno@clisp.org>
23746 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
23747 Emit a pkgdata_DATA variable only if some snippets add contents to it.
23748 Reported by Martin Lambers <marlam@marlam.de>.
23750 2006-08-21 Bruno Haible <bruno@clisp.org>
23752 * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
23753 specify an installation location, don't emit a noinst_LIBRARIES or
23754 noinst_LTLIBRARIES assignment.
23756 2006-08-21 Bruno Haible <bruno@clisp.org>
23759 * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
23760 BeOS has mbrtowc() but no <wctype.h>.
23762 2006-08-21 Bruno Haible <bruno@clisp.org>
23765 * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
23768 2006-08-21 Bruno Haible <bruno@clisp.org>
23771 * lib/mbchar.h: Include <wctype.h> only if it exists.
23773 2006-08-20 Paul Eggert <eggert@cs.ucla.edu>
23775 Remove files that are no longer needed by their respective modules.
23776 * m4/obstack.m4: Remove.
23777 * m4/strerror_r.m4: Remove.
23778 * m4/uint32_t.m4: Remove.
23779 * m4/uintptr_t.m4: Remove.
23780 * m4/ullong_max.m4: Remove.
23781 * m4/xstrtoimax.m4: Remove.
23782 * m4/xstrtoumax.m4: Remove.
23784 * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
23785 gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
23786 dependencies now capture this.
23788 * m4/cycle-check.m4 (gl_CYCLE_CHECK):
23789 Do not use AC_LIBSOURCES, since gnulib modules now do this.
23790 * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
23791 * m4/human.m4 (gl_HUMAN): Likewise.
23792 * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
23793 * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
23795 * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
23797 * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
23798 gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
23800 * m4/human.m4 (gl_HUMAN): Likewise.
23801 * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
23802 * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
23803 * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
23804 * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
23805 * m4/xstrtol (gl_XSTRTOL): Likewise.
23807 * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
23808 AC_TYPE_LONG_LONG_INT.
23809 * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
23810 * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
23811 * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
23812 * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
23814 * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
23817 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
23818 (gl_PREREQ_XSTRTOUL): Remove.
23820 * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
23822 * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
23825 2006-08-20 Paul Eggert <eggert@cs.ucla.edu>
23827 Add and change modules to make it easier for coreutils to use
23829 * modules/backupfile (Files): Remove m4/d-ino.m4.
23830 (Depends-on): Add d-ino.
23831 * modules/cycle-check (Depends-on): Add stdint.
23832 (lib_SOURCES): Add cycle-check.h.
23833 * modules/d-ino: New module.
23834 * modules/d-type: New module.
23835 * modules/error (Files): Remove m4/strerror_r.m4.
23836 * modules/filemode (Files): Add m4/st_dm_mode.m4.
23837 * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
23838 m4/inttypes_h.m4, m4/uintmax_t.m4.
23839 (Depends-on): Add stdint.
23840 (lib_SOURCES): Add fsusage.h.
23841 * modules/getcwd (Files): Remove d-ino.m4.
23842 (Depends-on): Add d-ino.
23843 * modules/getndelim2 (Depends-on): Add stdint.
23844 * modules/glob (Files): Remove m4/d-type.m4.
23845 (Depends-on): Add d-type.
23846 * modules/host-os: New module.
23847 * modules/human (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
23848 m4/inttypes_h.m4, m4/uintmax_t.m4.
23849 * Depends-on: Add stdint.
23850 (lib_SOURCES): Add human.h.
23851 * modules/inttostr (Files): Remove m4/intmax_t.m4,
23852 m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
23853 m4/uintmax_t.m4, m4/ulonglong.m4.
23854 (Depends-on): Add stdint.
23855 (EXTRA_DIST): Add inttostr.h.
23856 * modules/lchmod: New module.
23857 * modules/link-follow: New module.
23858 * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
23859 (Depends-on): Add lchmod.
23860 * modules/mkstemp (Files): Remove m4/ulonglong.m4,
23861 m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
23862 (Depends-on): Add stdint.
23863 * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
23864 m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
23865 (Depends-on): Add stdint.
23866 (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
23867 * modules/perl: New module.
23868 * modules/regex (Depends-on): Add stdint.
23869 * modules/rmdir-errno: New module.
23870 * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
23872 (Depends-on): Add stdint.
23873 * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
23875 (Depends-on): Add stdint.
23876 * modules/unlink-busy: New module.
23877 * modules/utimecmp (Depends-on): Add stdint.
23878 * modules/uptime: New module.
23879 * modules/winsz-ioctl: New module.
23880 * modules/winsz-termios: New module.
23881 * modules/xnanosleep (Depends-on): Add nanosleep.
23882 * modules/ullong_max: Remove.
23883 * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
23884 (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
23885 * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
23886 m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
23887 (Depends-on): Add inttypes.
23888 (lib_SOURCES): Add xstrtol.h.
23889 * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
23890 (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
23891 * MODULES.html.sh: Move 'assert' into the assert section.
23892 Move 'dummy' into the linking section.
23894 Add section for compatibility checks for POSIX:2001 functions,
23895 and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
23896 winsz-ioctl, and winsz-termios into it.
23898 Add top-level Misc section and put host-os, perl, and uptime
23901 2006-08-20 Paul Eggert <eggert@cs.ucla.edu>
23903 * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
23904 now assume the stdint module. Do not include inttypes.h.
23905 * lib/fsusage.h: Likewise.
23906 * lib/getndelim2.c: Likewise.
23907 * lib/human.h: Likewise.
23908 * lib/inttostr.h: Likewise.
23909 * lib/obstack.c: Likewise.
23910 * lib/regex_internal.h: Likewise.
23911 * lib/tempname.c: Likewise.
23912 * lib/utimecmp.c: Likewise.
23913 * lib/xstrtol.h: Likewise.
23915 * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
23917 * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
23918 e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
23919 * lib/xtime.h: Likewise.
23921 2006-08-19 Paul Eggert <eggert@cs.ucla.edu>
23923 * modules/openat (Files): Add lib/fchmodat.c.
23924 Fixes problem reported by Jay Youngman.
23926 2006-08-19 Paul Eggert <eggert@cs.ucla.edu>
23928 * lib/fchmodat.c: New file, from coreutils. This was inadvertently
23929 omitted in the 2006-08-17 update. Problem reported by Jay Youngman.
23931 2006-08-18 Paul Eggert <eggert@cs.ucla.edu>
23932 Bruno Haible <bruno@clisp.org>
23934 * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
23935 and is a script that invokes bison. Tighten the code. Add comments.
23937 2006-08-18 Jim Meyering <jim@meyering.net>
23939 * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
23940 CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
23941 gettime.c. Gabor Z. Papp reported that gethrxtime-using programs
23942 failed to link due to unresolved clock_gettime on a linux-2.4.x system.
23944 2006-08-18 Bruno Haible <bruno@clisp.org>
23946 * modules/bison-i18n: New file.
23947 * MODULES.html.sh (Internationalization functions): Add it.
23949 2006-08-18 Bruno Haible <bruno@clisp.org>
23951 * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
23952 sys/statvfs.h. When getmntinfo was found, check its declaration and
23953 set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
23955 2006-08-18 Bruno Haible <bruno@clisp.org>
23957 * m4/bison-i18n.m4: New file, from bison.
23959 2006-08-18 Bruno Haible <bruno@clisp.org>
23961 * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
23962 (ME_DUMMY): Treat "kernfs" as a dummy.
23963 (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
23965 2006-08-17 Paul Eggert <eggert@cs.ucla.edu>
23967 Update from coreutils.
23969 2006-08-15 Jim Meyering <jim@meyering.net>
23971 * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
23973 2006-01-17 Jim Meyering <jim@meyering.net>
23975 * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
23977 2006-01-11 Jim Meyering <jim@meyering.net>
23979 * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
23980 Check for the lchmod function.
23982 2006-08-17 Paul Eggert <eggert@cs.ucla.edu>
23984 Update from coreutils.
23986 * lib/__fpending.h: Add copyright notice.
23987 * lib/fprintftime.h: Likewise.
23988 * lib/savedir.c: Use (C) in copyright notice.
23989 * lib/savedir.h: Likewise.
23991 2006-08-15 Jim Meyering <jim@meyering.net>
23993 * lib/at-func.c: New file, with the logic of all emulated at-functions.
23994 * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
23995 in support of the EXPECTED_ERRNO macro.
23996 * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
23997 definitions. Instead, define the appropriate symbols and include
23999 * lib/mkdirat.c (mkdirat): Likewise.
24000 * lib/fchmodat.c (fchmodat): Likewise.
24001 (ENOSYS): Remove definition.
24002 * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
24003 it. Don't include "unistd--.h" -- it wasn't ever used.
24005 2006-01-17 Jim Meyering <jim@meyering.net>
24007 Rewrite fts.c not to change the current working directory,
24008 by using openat, fstatat, fdopendir, etc..
24010 * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
24011 (HAVE_OPENAT_SUPPORT): Define.
24012 [_LIBC] (fchdir): Don't undef or define; no longer used.
24013 (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
24014 Now, this `function' always succeeds, and consumes its file descriptor
24015 parameter -- so callers must not close such FDs. Update callers.
24016 (diropen_fd, opendirat, cwd_advance_fd): New functions.
24017 (diropen): Add parameter, SP. Adjust all callers.
24018 Implement using diropen_fd, rather than open.
24019 (fts_open): Initialize new member, fts_cwd_fd.
24020 Remove fts_rft-setting code.
24021 (fts_close): Close fts_cwd_fd, if necessary.
24022 (__opendir2): Define in terms of opendir or opendirat,
24023 depending on whether the FST_NOCHDIR flag is set.
24024 (fts_build): Since fts_safe_changedir consumes its FD, and since
24025 this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
24026 and close the dup'd file descriptor upon failure.
24027 (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
24028 (fts_safe_changedir): Tweak semantics to reflect that this function
24029 now calls cwd_advance_fd and hence consumes its FD argument.
24030 * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
24031 [struct FTS] (fts_rft): Remove now-unused member.
24032 [struct FTS] (fts_cycle.state): Improve comment.
24034 * lib/openat.c (openat_needs_fchdir): New function.
24035 * lib/openat.h (openat_needs_fchdir): Declare it.
24037 2006-08-16 Paul Eggert <eggert@cs.ucla.edu>
24039 * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
24040 Problem and fix reported by Pádraig Brady in
24041 <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
24043 2006-08-15 Paul Eggert <eggert@cs.ucla.edu>
24045 * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
24047 2006-08-15 Paul Eggert <eggert@cs.ucla.edu>
24049 * lib/memcoll.c (memcoll): Optimize for the common case where the
24050 arguments are bytewise equal.
24052 2006-08-15 Paul Eggert <eggert@cs.ucla.edu>
24054 * doc/regexprops-generic.texi: Add a copyright notice.
24056 2006-08-15 Bruno Haible <bruno@clisp.org>
24058 * modules/tmpdir (License): Change to LGPL.
24060 2006-08-15 Bruno Haible <bruno@clisp.org>
24062 * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
24065 2006-08-14 Simon Josefsson <jas@extundo.com>
24067 * config/srclist.txt: Add gnupload.
24069 2006-08-14 Paul Eggert <eggert@cs.ucla.edu>
24071 Change copyright notice from LGPL 2 to GPL 2, since that's the
24072 standard form used in the gnulib repository.
24073 * tests/test-lock.c: Likewise.
24074 * tests/test-stdint.c: Likewise.
24075 * tests/test-tls.c: Likewise.
24077 * users.txt: Add bison, diffutils, libprelude, prelude-lml,
24078 prelude-manager. User shorter URLs for GNU projects, without '?'.
24079 Add copyright notice.
24081 * check-module: Add copyright notice. Output a copyright
24082 notice if "--version" is specified.
24083 * modules/COPYING: New file.
24084 * tests/test-getaddrinfo.c: Add copyright notice.
24085 * tests/test-verify.c: Likewise.
24087 2006-08-14 Paul Eggert <eggert@cs.ucla.edu>
24089 Change copyright notice from LGPL 2 to GPL 2, since that's the
24090 standard form used in the gnulib repository.
24091 * lib/lock.c: LGPL -> GPL.
24092 * lib/lock.h: Likewise.
24093 * lib/strnlen1.c: Likewise.
24094 * lib/strnlen1.h: Likewise.
24095 * lib/tls.c: Likewise.
24096 * lib/tls.h: Likewise.
24097 * lib/tmpdir.c: Likewise.
24099 * lib/TODO: Remove; this belongs only in coreutils.
24101 2006-08-14 Paul Eggert <eggert@cs.ucla.edu>
24103 Add copyright notices to long-enough files that lack them, since
24104 otherwise the files aren't clearly free. Use the same notice that
24105 getdate.texi already uses.
24106 * doc/alloca-opt.texi: Add copyright notice.
24107 * doc/alloca.texi: Likewise.
24108 * doc/ctime.texi: Likewise.
24109 * doc/functions.texi: Likewise.
24110 * doc/gcd.texi: Likewise.
24111 * doc/gnulib-tool.texi: Likewise.
24112 * doc/inet_ntoa.texi: Likewise.
24113 * doc/visibility.texi: Likewise.
24115 * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
24116 * doc/quote.texi: Add copyright notice.
24118 * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
24119 4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B. SunOS 4.1.3
24120 was Solaris 1.1A. Remove space before B in Solaris 1.1.1B.
24121 Mention SunOS 5.11. Mention that everything before SunOS 5.7
24122 is now obsolete, and give a pointer to the Sun list.
24123 Add copyright notice.
24125 2006-08-14 Paul Eggert <eggert@cs.ucla.edu>
24127 * config/srclistvars.sh: Add copyright notice.
24129 2006-08-14 Eric Blake <ebb9@byu.net>
24131 Import the following change from libc:
24133 2006-08-12 Ulrich Drepper <drepper@redhat.com>
24136 * lib/misc/error.c: Add space between program name and message if file
24139 2006-08-12 Karl Berry <karl@gnu.org>
24141 * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
24142 remove, these originate in gnulib now.
24144 2006-08-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
24146 * doc/Makefile (standards.info standards.html standards.dvi):
24147 Also depend on make-stds.texi.
24149 2006-08-11 Paul Eggert <eggert@cs.ucla.edu>
24151 * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
24152 HAVE_PIPE. Fix a file descriptor leak when fd_safer fails.
24154 * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
24155 in wchar_t. Problem reported by Eric Blake.
24157 * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
24158 LEN is smaller than SIZE. Suggested by Bruno Haible.
24159 Also, help the compiler to keep LEN in a register.
24161 2006-08-11 Eric Blake <ebb9@byu.net>
24163 * users.txt: Sort. Add tar.
24165 2006-08-11 Bruno Haible <bruno@clisp.org>
24167 * users.txt: New file.
24169 2006-08-11 Bruno Haible <bruno@clisp.org>
24171 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
24172 before <wchar.h>. Needed for OSF/1 and BSD/OS.
24174 2006-08-10 Paul Eggert <eggert@cs.ucla.edu>
24176 * modules/snprintf (Depends-on): Remove minmax.
24177 (Maintainer): Add self and Bruno.
24179 2006-08-10 Paul Eggert <eggert@cs.ucla.edu>
24181 * lib/.cppi-disable: Add snprintf.h, socket_.h.
24182 * lib/snprintf.c: Include <errno.h> and <limits.h>.
24183 (EOVERFLOW): Define if the system does not.
24184 Do not include "minmax.h"; it wasn't used.
24185 (snprintf): Don't assume size_t promotes to an unsigned type.
24186 Fix bug when generated string was too long for the buffer: the
24187 buffer's contents are supposed to be the initial prefix of the
24188 output. Don't assume vasnprintf returns EOVERFLOW if the size
24189 exceeds INT_MAX; do the check ourselves.
24191 Import the following changes from libc:
24193 2006-06-02 Jakub Jelinek <jakub@redhat.com>
24195 * lib/posix/regex_internal.c (re_string_skip_chars): If no character
24196 has been converted at all, set *last_wc to WEOF. If mbrtowc failed,
24197 set wc to the byte which couldn't be converted.
24198 (re_string_reconstruct): Don't clear valid_raw_len before calling
24199 re_string_skip_chars. If wc is WEOF after re_string_skip_chars, set
24200 tip_context using re_string_context_at.
24202 2006-05-02 Ulrich Drepper <drepper@redhat.com>
24204 * lib/posix/regex.h: g++ still cannot handled [restrict].
24206 2006-04-21 Ulrich Drepper <drepper@redhat.com>
24208 * lib/posix/regex.h: Remove special handling for VMS.
24210 2006-08-10 Jim Meyering <jim@meyering.net>
24212 * modules/same-inode: New module.
24213 * modules/dev-ino: New module.
24214 * modules/cycle-check: Depend on these modules, rather than simply
24215 including their .h files.
24216 (Makefile.am): Don't list cycle-check.[ch] here, now that they're
24217 required via m4/cycle-check.m4.
24218 * modules/same: Depend on new same-inode module, rather than
24219 including same-inode.h.
24220 * modules/chdir-safer: New file.
24222 * modules/chown (Depends-on): Add stat-macros.
24224 2006-08-10 Jim Meyering <jim@meyering.net>
24226 * m4/cycle-check.m4: New file.
24227 Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
24228 * m4/dev-ino.m4, m4/same-inode.m4: New files.
24230 2006-08-10 Eric Blake <ebb9@byu.net>
24232 * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
24233 in from original proposal.
24235 2006-08-10 Eric Blake <ebb9@byu.net>
24236 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
24238 * gnulib-tool (func_import): Detect unexpanded macros in gnulib
24241 2006-08-10 Bruno Haible <bruno@clisp.org>
24243 * gnulib-tool (func_create_testdir): Detect unexpanded macros here
24246 2006-08-09 Paul Eggert <eggert@cs.ucla.edu>
24248 Sync from coreutils.
24250 2006-07-19 Mike Frysinger <vapier@gentoo.org>
24252 * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
24253 Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
24255 2006-08-09 Paul Eggert <eggert@cs.ucla.edu>
24257 * modules/restrict: Remove; no longer needed now that we assume
24258 Autoconf 2.59 or later.
24259 * MODULES.html.sh: Remove 'restrict'.
24260 * modules/argp (Depends-on): Remove 'restrict'.
24261 * modules/base64 (Depends-on): Likewise.
24262 * modules/gc (Depends-on): Likewise.
24263 * modules/getaddrinfo (Depends-on): Likewise.
24264 * modules/glob (Depends-on): Likewise.
24265 * modules/inet_ntop (Depends-on): Likewise.
24266 * modules/inet_pton (Depends-on): Likewise.
24267 * modules/memxor (Depends-on): Likewise.
24268 * modules/regex (Depends-on): Likewise.
24269 * modules/strtok_r (Depends-on): Likewise.
24270 * modules/time_r (Depends-on): Likewise.
24272 2006-08-09 Paul Eggert <eggert@cs.ucla.edu>
24274 * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
24275 * m4/gc.m4 (gl_PREREQ_GC): Likewise.
24276 * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
24277 * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
24278 * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
24279 * m4/memxor.m4 (gl_MEMXOR): Likewise.
24280 * m4/restrict.m4: Remove; no longer needed. All remaining uses of
24281 gl_C_RESTRICT replaced by AC_C_RESTRICT.
24283 Merge from coreutils.
24284 * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
24285 gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
24286 * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
24287 * m4/time_r.m4 (gl_TIME_R): Likewise.
24289 2006-08-09 Karl Berry <karl@gnu.org>
24291 * config/srclist.txt: no more gettext-tools, per Bruno.
24293 2006-08-08 Eric Blake <ebb9@byu.net>
24295 * modules/verror: New module.
24296 * MODULES.html.sh: Document it.
24298 2006-08-08 Eric Blake <ebb9@byu.net>
24300 * lib/verror.h, lib/verror.c: New files.
24302 2006-08-08 Eric Blake <ebb9@byu.net>
24304 * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
24305 verror_at_line output complies with GNU Coding Standards even when
24308 2006-08-07 Bruno Haible <bruno@clisp.org>
24310 * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
24312 Reported by Ralf Wildenhues.
24314 2006-08-07 Bruno Haible <bruno@clisp.org>
24316 * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
24317 in an AC_DEFUN. Needed so that the autoconf snippets can use
24320 2006-08-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
24322 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
24323 Initialize pkgdata_DATA.
24324 * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
24327 2006-08-06 Eric Blake <ebb9@byu.net>
24329 * lib/error.h: Fold in some upstream changes from glibc.
24330 * lib/error.c: Likewise.
24332 2006-08-04 Bruno Haible <bruno@clisp.org>
24334 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
24335 Make the mostlyclean-local rule depend on mostlyclean-generic.
24336 Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
24338 2006-07-31 Bruno Haible <bruno@clisp.org>
24340 * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
24341 <stdlib.h>, <string.h>.
24343 2006-07-30 Bruno Haible <bruno@clisp.org>
24345 * modules/readlink (License): Change to LGPL.
24347 2006-07-30 Bruno Haible <bruno@clisp.org>
24349 * modules/javaversion (Makefile.am): Distribute javaversion.java and
24350 javaversion.class. Also install javaversion.class in $(pkgdatadir) and
24351 set PKGDATADIR to point to it.
24353 2006-07-30 Bruno Haible <bruno@clisp.org>
24355 * modules/csharpexec (configure.ac): Comment out macro invocation.
24356 * modules/javaexec (configure.ac): Likewise.
24357 * modules/javacomp-script (configure.ac): Likewise.
24359 * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
24361 2006-07-30 Bruno Haible <bruno@clisp.org>
24363 * modules/clean-temp (Depends-on): Add linkedhash-list, remove
24366 2006-07-30 Bruno Haible <bruno@clisp.org>
24368 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
24370 2006-07-30 Bruno Haible <bruno@clisp.org>
24372 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
24373 Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
24376 2006-07-29 Bruno Haible <bruno@clisp.org>
24378 Make it possible for gnulib-tool to work with locally modified or
24379 augmented gnulib repositories.
24380 * gnulib-tool (func_usage): Document --local-dir option.
24381 (local_gnulib_dir): New variable.
24382 Handle --local-dir option.
24383 (func_lookup_file): New function.
24384 (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
24385 (func_get_description, func_get_filelist, func_get_description,
24386 func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
24387 func_get_automake_snippet, func_get_include_directive,
24388 func_get_license, func_get_maintainer): Use func_lookup_file.
24389 (func_import, func_create_testdir): Use func_lookup_file.
24391 2006-07-29 Bruno Haible <bruno@clisp.org>
24393 * modules/setenv (Depends-on): Add unistd.
24395 2006-07-29 Bruno Haible <bruno@clisp.org>
24397 * lib/setenv.c: Undo unintended modification done on 2006-02-27.
24399 2006-07-29 Bruno Haible <bruno@clisp.org>
24401 * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
24403 2006-07-29 Bruno Haible <bruno@clisp.org>
24405 * gnulib-tool (import, update): If there is no Makefile.am, look at
24406 aclocal.m4, instead of bailing out.
24408 2006-07-29 Bruno Haible <bruno@clisp.org>
24410 * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
24411 Categorize the options by when they are useful.
24413 2006-07-29 Bruno Haible <bruno@clisp.org>
24415 * gnulib-tool (func_usage): Document option --no-libtool.
24416 Handle option --no-libtool.
24417 (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
24418 for changed semantics of $libtool variable.
24419 (func_import): Likewise. If libtool is not used, show this through
24420 an option --no-libtool.
24421 (func_create_testdir): Update.
24423 2006-07-29 Bruno Haible <bruno@clisp.org>
24425 * gnulib-tool (func_import): Extend error message about missing
24428 2006-07-29 Bruno Haible <bruno@clisp.org>
24430 * gnulib-tool (func_import): Don't create the $docbase directory if
24431 there is no file to store there.
24433 2006-07-29 Bruno Haible <bruno@clisp.org>
24435 * gnulib-tool (autoconf_minversion): If a --dir option is given and
24436 relevant, look for configure.ac there, not in the current directory.
24437 Also use a simple search for AC_PREREQ, not "autoconf --trace".
24439 2006-07-29 Bruno Haible <bruno@clisp.org>
24441 * gnulib-tool (SORT): New variable.
24442 (func_usage): Undocument --assume-autoconf option.
24443 Remove --assume-autoconf option handling.
24444 (autoconf_minversion): Determine from the contents of configure.ac.
24445 (func_import): Remove autoconf_minversion handling.
24446 Suggested by Eric Blake.
24448 2006-07-29 Bruno Haible <bruno@clisp.org>
24450 * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
24452 2006-07-29 Bruno Haible <bruno@clisp.org>
24454 * config/srclist.txt (*setenv.[ch]): Remove rules.
24456 2006-07-28 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
24458 * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
24460 2006-07-28 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
24462 * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
24465 2006-07-28 Simon Josefsson <jas@extundo.com>
24467 * modules/inet_ntop (Depends-on): Depend on arpa_inet.
24468 * modules/inet_pton (Depends-on): Likewise.
24470 2006-07-28 Simon Josefsson <jas@extundo.com>
24472 * m4/netinet_in_h.m4: New file.
24474 2006-07-28 Simon Josefsson <jas@extundo.com>
24476 * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
24479 2006-07-28 Simon Josefsson <jas@extundo.com>
24481 * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
24484 2006-07-28 Paul Eggert <eggert@cs.ucla.edu>
24486 * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
24487 setgid on directories only if they set these bits.
24488 * lib/modechange.h: Remove obsolete comment about masks.
24490 2006-07-28 Eric Blake <ebb9@byu.net>
24492 * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
24495 2006-07-28 Bruno Haible <bruno@clisp.org>
24497 * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
24499 2006-07-28 Bruno Haible <bruno@clisp.org>
24501 * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
24503 2006-07-28 Bruno Haible <bruno@clisp.org>
24505 * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
24506 iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
24508 Avoids link error on FreeBSD 4.x.
24509 Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
24511 * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
24513 * lib/mbswidth.c (iswcntrl): Likewise.
24515 2006-07-27 Bruno Haible <bruno@clisp.org>
24517 * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
24520 2006-07-27 Bruno Haible <bruno@clisp.org>
24522 * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
24523 __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
24526 2006-07-26 Eric Blake <ebb9@byu.net>
24528 * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
24530 2006-07-26 Eric Blake <ebb9@byu.net>
24532 * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
24533 like mingw that lack mkstemp.
24534 * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
24535 avoid compilation warning on mingw.
24537 2006-07-26 Bruno Haible <bruno@clisp.org>
24539 * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
24540 INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
24541 INT_FAST*_MIN, INTPTR_MIN.
24543 2006-07-25 Bruno Haible <bruno@clisp.org>
24545 * modules/version-etc (Depends-on): Add stdarg.
24547 2006-07-25 Bruno Haible <bruno@clisp.org>
24549 * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
24552 2006-07-25 Bruno Haible <bruno@clisp.org>
24554 * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
24555 defined in <stdarg.h> or config.h.
24557 2006-07-24 Paul Eggert <eggert@cs.ucla.edu>
24559 * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
24560 (gl_STDIO_SAFER): Remove.
24562 2006-07-24 Paul Eggert <eggert@cs.ucla.edu>
24564 * MODULES.html.sh (File stream based Input/Output):
24565 Add fopen-safer, tmpfile-safer; remove stdio-safer.
24566 * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
24567 * modules/fopen-safer, modules/tmpfile-safer: New files.
24568 * modules/stdio-safer: Remove.
24570 2006-07-24 Bruno Haible <bruno@clisp.org>
24572 * modules/tmpdir: New file.
24573 * MODULES.html.sh (File system functions): Add it.
24575 2006-07-24 Bruno Haible <bruno@clisp.org>
24577 * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
24578 getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
24580 2006-07-24 Bruno Haible <bruno@clisp.org>
24582 * modules/clean-temp: New file.
24584 2006-07-24 Bruno Haible <bruno@clisp.org>
24586 * m4/tmpdir.m4: New file, from GNU gettext.
24588 2006-07-24 Bruno Haible <bruno@clisp.org>
24590 * lib/tmpdir.h: New file, from GNU gettext.
24591 * lib/tmpdir.c: New file, from GNU gettext.
24593 2006-07-24 Bruno Haible <bruno@clisp.org>
24595 * lib/clean-temp.h: New file, from GNU gettext.
24596 * lib/clean-temp.c: New file, from GNU gettext.
24598 2006-07-23 Eric Blake <ebb9@byu.net>
24600 * modules/stdio-safer (Files): Add tmpfile-safer.c.
24601 (Depends-on): Add binary-io.
24603 2006-07-23 Eric Blake <ebb9@byu.net>
24605 * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
24607 2006-07-23 Eric Blake <ebb9@byu.net>
24609 * lib/tmpfile-safer.c: New file.
24610 * lib/stdio-safer.h (fopen_safer): Add prototype.
24611 * lib/stdio--.h (tmpfile): Make safer.
24613 2006-07-23 Bruno Haible <bruno@clisp.org>
24615 * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
24616 (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
24617 gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
24618 gl_linked_remove_at): Use it.
24620 2006-07-22 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
24621 and Simon Josefsson <jas@extundo.com>
24623 * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
24625 * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
24627 2006-07-22 Paul Eggert <eggert@cs.ucla.edu>
24629 * modules/close-stream: New file.
24630 * modules/closeout (Description): Make it clear that it exits
24631 with a diagnostic on error.
24632 (Depends-on): Add close-stream. Remove fpending, stdbool.
24633 * MODULES.html.sh (File stream based Input/Output): Add close-stream.
24635 2006-07-22 Paul Eggert <eggert@cs.ucla.edu>
24637 * m4/close-stream.m4: New file.
24639 2006-07-22 Paul Eggert <eggert@cs.ucla.edu>
24641 * lib/close-stream.c, lib/close-stream.h: New files.
24643 2006-07-22 Bruno Haible <bruno@clisp.org>
24645 Merge from GNU gettext 0.15.
24647 2006-05-01 Bruno Haible <bruno@clisp.org>
24649 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
24651 2006-07-22 Bruno Haible <bruno@clisp.org>
24653 * modules/javaversion: New file.
24654 * MODULES.html.sh (Java): Add javaversion.
24656 2006-03-12 Bruno Haible <bruno@clisp.org>
24658 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
24660 2005-12-04 Bruno Haible <bruno@clisp.org>
24662 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
24665 2006-06-21 Bruno Haible <bruno@clisp.org>
24667 Avoid warnings from recent versions of mcs.
24668 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
24669 -o, -L, -r any more. Use options documented since mcs-1.0
24670 instead. Similarly for -g.
24672 2005-12-04 Bruno Haible <bruno@clisp.org>
24674 * build-aux/csharpcomp.sh.in: Suffix for resources is
24675 .resources, not .resource.
24677 2005-07-09 Bruno Haible <bruno@clisp.org>
24679 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
24681 Reported by Mark Junker <mjscod@gmx.de>.
24683 2006-07-22 Bruno Haible <bruno@clisp.org>
24685 * modules/gettext: Upgrade to gettext-0.15.
24686 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
24688 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
24690 2006-07-22 Bruno Haible <bruno@clisp.org>
24692 Merge from GNU gettext 0.15.
24694 2006-03-25 Bruno Haible <bruno@clisp.org>
24696 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
24698 2006-07-21 Bruno Haible <bruno@clisp.org>
24700 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
24703 2006-05-09 Bruno Haible <bruno@clisp.org>
24705 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
24706 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
24707 for the conftestver execution.
24709 2006-05-01 Bruno Haible <bruno@clisp.org>
24711 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
24712 optional target-version argument. Verify that the compiler
24713 groks source of the specified source-version, or add -source
24714 option as necessary. Verify that the compiler produces
24715 bytecode in the specified target-version, or add -target and
24716 -source options as necessary. Make the result of the test
24717 available as variable CONF_JAVAC. Also log error output in
24720 2006-03-11 Bruno Haible <bruno@clisp.org>
24722 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
24724 2006-05-09 Bruno Haible <bruno@clisp.org>
24726 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
24727 CLASSPATH_SEPARATOR to a semicolon.
24729 2006-03-12 Bruno Haible <bruno@clisp.org>
24731 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
24732 available as variable CONF_JAVA, for subsequent autoconf
24733 tests. Also log error output in config.log.
24735 2006-07-19 Bruno Haible <bruno@clisp.org>
24737 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
24738 that getline works on glibc2 systems. Needed to avoid trouble
24740 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
24742 2005-12-04 Bruno Haible <bruno@clisp.org>
24744 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
24745 launcher (untested).
24747 2005-12-04 Bruno Haible <bruno@clisp.org>
24749 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
24751 2006-07-22 Bruno Haible <bruno@clisp.org>
24753 * gettext.m4: Update from GNU gettext-0.15.
24754 * nls.m4: Likewise.
24756 * inttypes-pri.m4: Likewise.
24757 * inttypes-h.m4: Renamed from inttypes.m4.
24758 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
24760 2006-07-22 Bruno Haible <bruno@clisp.org>
24762 Merge from GNU gettext 0.15.
24764 2005-07-05 Bruno Haible <bruno@clisp.org>
24766 * printf-args.c (printf_fetchargs): Work around broken
24767 definition of wint_t on mingw.
24769 2005-02-12 Bruno Haible <bruno@clisp.org>
24771 * xallocsa.h: Add extern "C" for C++.
24773 2006-05-17 Bruno Haible <bruno@clisp.org>
24775 Cygwin portability.
24776 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
24778 2006-04-30 Bruno Haible <bruno@clisp.org>
24780 * progreloc.c: Include <mach-o/dyld.h> if available.
24781 (find_executable): Use _NSGetExecutablePath when possible.
24783 2006-05-06 Charles Wilson <cygwin@cwilson.fastmail.fm>
24785 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
24788 2005-12-29 Bruno Haible <bruno@clisp.org>
24790 * progreloc.c (set_program_name_and_installdir): Fix
24793 2005-12-04 Bruno Haible <bruno@clisp.org>
24795 Cygwin portability.
24796 * progreloc.c: Include <windows.h> also on Cygwin.
24797 (find_executable): Add support for Cygwin.
24798 (set_program_name_and_installdir): Handle also platforms with
24801 2006-07-11 Bruno Haible <bruno@clisp.org>
24803 * javacomp.c: Fix a comment.
24804 Reported by Jim Meyering.
24806 2006-04-30 Bruno Haible <bruno@clisp.org>
24808 * javacomp.h (compile_java_class): Add source_version,
24809 target_version arguments.
24810 * javacomp.c: Rewritten to choose only a compiler that
24811 respects the specified source_version and target_version.
24813 2006-06-27 Bruno Haible <bruno@clisp.org>
24815 Assume correct S_ISDIR macro.
24816 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
24818 2006-07-22 Bruno Haible <bruno@clisp.org>
24820 * javaversion.h: New file, from GNU gettext.
24821 * javaversion.c: New file, from GNU gettext.
24822 * javaversion.java: New file, from GNU gettext.
24823 * javaversion.class: New file, from GNU gettext.
24825 2006-05-17 Bruno Haible <bruno@clisp.org>
24827 Cygwin portability.
24828 * javaexec.c (execute_java_class): Test for jview program
24831 2006-04-09 Bruno Haible <bruno@clisp.org>
24833 * fatal-signal.c: Don't include string.h.
24834 (at_fatal_signal): Use a copying loop instead of memcpy.
24836 2005-12-04 Bruno Haible <bruno@clisp.org>
24838 * csharpexec.c: Add support for 'clix' launcher (untested).
24839 (execute_csharp_using_sscli): New function.
24840 (execute_csharp_program): Call it.
24842 2006-06-21 Bruno Haible <bruno@clisp.org>
24844 Avoid warnings from recent versions of mcs.
24845 * csharpcomp.c (compile_csharp_using_mono): Don't use options
24846 -o, -L, -r any more. Use options documented since mcs-1.0
24847 instead. Similarly for -g.
24849 2005-07-09 Bruno Haible <bruno@clisp.org>
24851 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
24853 Reported by Mark Junker <mjscod@gmx.de>.
24855 2006-06-17 Bruno Haible <bruno@clisp.org>
24857 * config.charset: Update for NetBSD 3.0.
24859 2006-05-17 Bruno Haible <bruno@clisp.org>
24861 Cygwin portability.
24862 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
24864 2006-05-16 Bruno Haible <bruno@clisp.org>
24866 * localcharset.c [CYGWIN]: Include <windows.h>.
24867 (get_charset_aliases): For Cygwin, return the same CPxxx
24868 aliases list as under WIN32.
24869 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
24870 the environment variables. Fall back to GetACP().
24872 2006-04-05 Bruno Haible <bruno@clisp.org>
24874 * config.charset: Update Juan Manuel Guerrero's address.
24876 2005-02-12 Bruno Haible <bruno@clisp.org>
24878 * allocsa.h: Add extern "C" for C++.
24880 2005-02-10 Bruno Haible <bruno@clisp.org>
24882 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
24883 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
24885 2006-07-22 Bruno Haible <bruno@clisp.org>
24887 * gettext.h: Update to GNU gettext-0.15.
24889 2006-07-22 Bruno Haible <bruno@clisp.org>
24891 * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
24892 localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
24893 lib-prefix.m4, longdouble.m4, ssize_t.m4.
24895 2006-07-21 Eric Blake <ebb9@byu.net>
24897 * modules/stdlib-safer: New file.
24898 * MODULES.html.sh (File stream based Input/Output): Add
24901 2006-07-21 Eric Blake <ebb9@byu.net>
24903 * lib/stdlib-safer.h: New file from coreutils, required by
24906 2006-07-20 Paul Eggert <eggert@cs.ucla.edu>
24908 * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
24910 2006-07-20 Bruno Haible <bruno@clisp.org>
24912 * gnulib-tool: Recognize new option --assume-autoconf.
24913 (autoconf_minversion): New variable.
24914 (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
24916 2006-07-20 Bruno Haible <bruno@clisp.org>
24918 * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
24920 2006-07-19 Derek R. Price <derek@ximbiot.com>
24922 * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
24923 Reindent and repaginate.
24925 2006-07-19 Derek Price <derek@ximbiot.com>
24927 * doc/gnulib.texi (Libtool and Windows): Eliminate passive voice.
24930 2006-07-17 Bruno Haible <bruno@clisp.org>
24932 * modules/list: New file.
24933 * modules/array-list: New file.
24934 * modules/carray-list, modules/carray-list-tests: New files.
24935 * modules/linked-list, modules/linked-list-tests: New files.
24936 * modules/avltree-list, modules/avltree-list-tests: New files.
24937 * modules/rbtree-list, modules/rbtree-list-tests: New files.
24938 * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
24939 * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
24940 * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
24941 * modules/oset: New file.
24942 * modules/array-oset: New file.
24943 * modules/avltree-oset, modules/avltree-oset-tests: New files.
24944 * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
24945 * tests/test-carray_list.c: New file.
24946 * tests/test-linked_list.c: New file.
24947 * tests/test-avltree_list.c: New file.
24948 * tests/test-rbtree_list.c: New file.
24949 * tests/test-linkedhash_list.c: New file.
24950 * tests/test-avltreehash_list.c: New file.
24951 * tests/test-rbtreehash_list.c: New file.
24952 * tests/test-avltree_oset.c: New file.
24953 * tests/test-rbtree_oset.c: New file.
24954 * MODULES.html.sh (Container data structures): New section.
24956 2006-07-17 Bruno Haible <bruno@clisp.org>
24958 * m4/gl_list.m4: New file.
24960 2006-07-17 Bruno Haible <bruno@clisp.org>
24962 * lib/gl_list.h: New file.
24963 * lib/gl_list.c: New file.
24964 * lib/gl_array_list.h: New file.
24965 * lib/gl_array_list.c: New file.
24966 * lib/gl_carray_list.h: New file.
24967 * lib/gl_carray_list.c: New file.
24968 * lib/gl_linked_list.h: New file.
24969 * lib/gl_linked_list.c: New file.
24970 * lib/gl_anylinked_list1.h: New file.
24971 * lib/gl_anylinked_list2.h: New file.
24972 * lib/gl_avltree_list.h: New file.
24973 * lib/gl_avltree_list.c: New file.
24974 * lib/gl_anyavltree_list1.h: New file.
24975 * lib/gl_anyavltree_list2.h: New file.
24976 * lib/gl_rbtree_list.h: New file.
24977 * lib/gl_rbtree_list.c: New file.
24978 * lib/gl_anyrbtree_list1.h: New file.
24979 * lib/gl_anyrbtree_list2.h: New file.
24980 * lib/gl_anytree_list1.h: New file.
24981 * lib/gl_anytree_list2.h: New file.
24982 * lib/gl_linkedhash_list.h: New file.
24983 * lib/gl_linkedhash_list.c: New file.
24984 * lib/gl_anyhash_list1.h: New file.
24985 * lib/gl_anyhash_list2.h: New file.
24986 * lib/gl_avltreehash_list.h: New file.
24987 * lib/gl_avltreehash_list.c: New file.
24988 * lib/gl_rbtreehash_list.h: New file.
24989 * lib/gl_rbtreehash_list.c: New file.
24990 * lib/gl_anytreehash_list1.h: New file.
24991 * lib/gl_anytreehash_list2.h: New file.
24993 * lib/gl_oset.h: New file.
24994 * lib/gl_oset.c: New file.
24995 * lib/gl_array_oset.h: New file.
24996 * lib/gl_array_oset.c: New file.
24997 * lib/gl_avltree_oset.h: New file.
24998 * lib/gl_avltree_oset.c: New file.
24999 * lib/gl_rbtree_oset.h: New file.
25000 * lib/gl_rbtree_oset.c: New file.
25001 * lib/gl_anytree_oset.h: New file.
25003 2006-07-16 Paul Eggert <eggert@cs.ucla.edu>
25005 * m4/mkancesdirs.m4: New file.
25006 * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
25007 dirchownmod.h. Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
25008 no longer needed. Require gl_FUNC_LCHOWN, since dirchownmod.c needs
25011 2006-07-16 Paul Eggert <eggert@cs.ucla.edu>
25013 * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
25014 * lib/mkancesdirs.h: New files.
25015 * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
25016 unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
25017 save-cwd.h. Instead, include dirchownmod.h and mkancesdirs.h.
25018 (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
25019 MODE_BITS. Remove options VERBOSE_FMT_STRING, CWD_ERRNO. All
25020 callers changed. Revamp internals significantly, by not
25021 attempting to create directories that are temporarily more
25022 permissive than the final results. Do not attempt to use
25023 save_cwd/restore_cwd; it isn't worth it for mkdir and install.
25024 This removes some race conditions, fixes some bugs, and simplifies
25025 things. Use new dirchownmod function to do owner and mode changes.
25026 * lib/mkdir-p.h: Likewise.
25027 * lib/modechange.c (octal_to_mode): New function.
25028 (struct mode_change): New member mentioned.
25029 (make_node_op_equals): New arg mentioned. All callers changed.
25030 (mode_compile): Keep track of which mode bits the user has explicitly
25032 (mode_adjust): New arg DIR, so that we implement the X op correctly.
25033 New arg PMODE_BITS, to keep track of which mode bits the user
25034 mentioned; it treats S_ISUID and S_ISGID speciall.
25035 All callers changed.
25036 * lib/modechange.h: Likewise.
25038 2006-07-16 Paul Eggert <eggert@cs.ucla.edu>
25040 * MODULES.html.sh: Add mkancestors.
25041 * modules/mkancesdirs: New module.
25042 * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
25043 lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
25044 The chdir-safer and afs files are now orphans; I'll remove them
25045 unless someone speaks up.
25046 Add lib/dirchownmod.c, lib/dirchownmod.h.
25047 (Depends-on): Remove alloca, chown, save-cwd, dirname.
25048 Add lchown, mkancesdirs.
25049 (Maintainer): Add self.
25051 2006-07-15 Karl Berry <karl@gnu.org>
25053 * gnulib-tool: help message wording/arrangement.
25055 2006-07-14 Simon Josefsson <jas@extundo.com>
25057 * doc/gnulib.texi (Libtool and Windows): New section.
25059 2006-07-12 Simon Josefsson <jas@extundo.com>
25061 * modules/gendocs (License): Fix license, approved by Karl.
25063 2006-07-12 Eric Blake <ebb9@byu.net>
25065 * MODULES.html.sh: Add gendocs.
25067 2006-07-11 Eric Blake <ebb9@byu.net>
25069 * modules/fdl: New module, to install doc/fdl.texi.
25070 * MODULES.html.sh: Add new section for documentation modules.
25071 * gnulib-tool: Avoid space-tab.
25072 (--doc-base): New option, to manage files from doc.
25074 2006-07-11 Eric Blake <ebb9@byu.net>
25076 * m4/absolute-header.m4: Fix comments to match recent change.
25078 2006-07-11 Eric Blake <ebb9@byu.net>
25080 * gnulib-tool: List --doc-base before --tests-base.
25082 2006-07-11 Derek R. Price <derek@ximbiot.com>
25084 * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
25086 2006-07-11 Bruno Haible <bruno@clisp.org>
25088 * README: Mention where to put documentation.
25090 2006-07-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
25092 * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
25094 2006-07-10 Paul Eggert <eggert@cs.ucla.edu>
25096 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
25099 2006-07-10 Paul Eggert <eggert@cs.ucla.edu>
25101 * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
25102 absolute-header.m4. Also, set ABSOLUTE_STDINT_H to a string
25103 "no/such/file/stdint.h" when there is no such file, so that
25104 the resulting C code can be parsed by dodgy compilers.
25105 Problems reported by Bob Proulx.
25107 2006-07-10 Derek R. Price <derek@ximbiot.com>
25109 * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
25110 Ignore the obsolescent !HAVE_DIRENT_H case. Consolidate NAMLEN
25111 macros into the GNU _D_EXACT_NAMLEN.
25112 * lib/savedir.c: Likewise.
25113 (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
25115 2006-07-10 Derek R. Price <derek@ximbiot.com>
25116 and Paul Eggert <eggert@cs.ucla.edu>
25118 * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
25120 Ignore the obsolescent !HAVE_DIRENT_H case. Consolidate NAMLEN
25121 macros into the GNU _D_EXACT_NAMLEN.
25123 2006-07-09 Paul Eggert <eggert@cs.ucla.edu>
25125 * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
25126 around the absolute name, to work around a problem with the HP-UX
25127 11.23 native C compiler, reported by Bob Proulx.
25129 2006-07-09 Paul Eggert <eggert@cs.ucla.edu>
25131 * doc/maintain.texi, make-stds.texi: Sync from
25132 <http://savannah.gnu.org/projects/gnustandards>.
25134 2006-07-09 Paul Eggert <eggert@cs.ucla.edu>
25136 * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
25138 2006-07-09 Jim Meyering <jim@meyering.net>
25140 * m4/glob.m4: Remove a doubled word in a comment.
25142 2006-07-09 Jim Meyering <jim@meyering.net>
25144 * lib/argp-pv.c: Remove a doubled word in a comment.
25145 * lib/check-version.c (check_version): Likewise.
25146 * lib/javacomp.c (compile_java_class): Likewise.
25148 2006-07-08 Paul Eggert <eggert@cs.ucla.edu>
25150 * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
25151 for the benefit of people using Autoconf 2.60. If you want to
25152 support older Autoconf versions you can copy m4/onceonly_2_57.m4
25153 (or m4/onceonly.m4, if pre-2.57) manually.
25155 2006-07-08 Jim Meyering <jim@meyering.net>
25157 * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
25159 * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
25160 * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
25163 2006-07-08 Jim Meyering <jim@meyering.net>
25165 * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
25167 2006-07-07 Simon Josefsson <jas@extundo.com>
25169 * tests/test-crc.c: Change expected crc value, the test vector
25170 were probably computed using the old broken crc.c?
25172 2006-07-06 Simon Josefsson <jas@extundo.com>
25174 * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
25175 now the canonical place for the M4 file).
25177 * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
25178 from the sys_socket dependency now.
25180 * modules/inet_pton (Files): Ditto.
25182 * modules/inet_ntop (Files): Ditto.
25184 2006-07-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny change)
25186 * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
25187 not gl_PREREQ_GETUSERSHELL.
25189 2006-07-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
25191 * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
25192 with only one argument, for Autoconf 2.60.
25193 * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
25194 expand to nothing, so add a shell command to avoid syntax error.
25195 * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
25197 2006-07-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
25199 * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
25201 2006-07-06 Paul Eggert <eggert@cs.ucla.edu>
25203 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
25204 no longer needed. Check for isblank decl.
25205 * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
25206 * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
25209 2006-07-06 Paul Eggert <eggert@cs.ucla.edu>
25211 * lib/getloadavg.c: Use __VMS, not VMS.
25212 * lib/getopt.c: Likewise.
25213 * lib/getpagesize.h: Likewise.
25214 * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
25215 and probably does not work.
25217 2006-07-06 Paul Eggert <eggert@cs.ucla.edu>
25219 * lib/.cppi-disable: Add wcwidth.
25220 * lib/fnmatch.c (ISBLANK): Remove. All uses changed to isblank.
25221 (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
25222 (ISGRAPH): Remove. All uses changed to isgraph.
25223 (FOLD) [!defined _LIBC]: Remove special case.
25224 * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
25225 * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
25227 * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
25230 2006-07-06 Jim Hyslop <jhyslop@dreampossible.ca> (tiny change)
25232 * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
25233 '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
25234 brackets. Other minor changes to suppress some compiler
25237 2006-07-06 Derek R. Price <derek@ximbiot.com>
25238 and Paul Eggert <eggert@cs.ucla.edu>
25240 * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
25241 of invoking obsolescent AC_HEADER_DIRENT macro.
25242 * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
25243 * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
25244 * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
25245 * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
25246 * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
25247 * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
25248 * m4/savedir.m4 (gl_SAVEDIR): Likewise.
25249 * m4/readdir.m4: Remove; no longer needed.
25251 2006-07-06 Derek R. Price <derek@ximbiot.com>
25252 and Paul Eggert <eggert@cs.ucla.edu>
25254 * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
25255 Don't worry about this obsolete case any more.
25256 (HAVE_DIR): Remove. All uses removed; we now assume you can read
25258 * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
25259 worry about this obsolete case any more.
25260 * lib/fts.c: Likewise.
25261 * lib/getcwd.c: Likewise.
25262 * lib/glob.h: Likewise.
25263 * lib/savedir.c: Likewise.
25265 2006-07-05 Paul Eggert <eggert@cs.ucla.edu>
25267 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
25268 rather than AC_CHECK_DECLS for strtoimax and strtoumax.
25269 * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
25272 * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
25273 * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
25274 * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
25276 * m4/getdate.m4 (gl_GETDATE): Likewise.
25277 * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
25278 * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
25279 * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
25280 * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
25281 * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
25282 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
25283 * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
25286 2006-07-05 Paul Eggert <eggert@cs.ucla.edu>
25288 * lib/memcasecmp.c: Include <limits.h>.
25289 (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
25290 * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
25291 Don't assume isdigit succeeds only on '0' through '9'.
25293 2006-07-05 Eric Blake <ebb9@byu.net>
25295 * modules/getaddrinfo (Depends-on): Add snprintf.
25297 2006-07-05 Eric Blake <ebb9@byu.net>
25299 * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
25300 to avoid 'header present but could not be compiled' on cygwin.
25302 2006-07-05 Eric Blake <ebb9@byu.net>
25304 * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
25305 missing from netdb.h.
25306 * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
25308 2006-07-05 Derek R. Price <derek@ximbiot.com>
25310 * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
25312 * m4/exclude.m4 (gl_EXCLUDE): Likewise.
25313 * m4/getdate.m4 (gl_GETDATE): Likewise.
25314 * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
25315 * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
25316 * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
25317 * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
25318 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
25320 2006-07-05 Derek R. Price <derek@ximbiot.com>
25322 * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
25323 All uses of is_space replaced by isspace.
25324 * lib/exit.h: Don't talk about STDC_HEADERS.
25325 * lib/fnmatch.c (ISASCII): Remove; no longer needed. All uses removed.
25326 (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
25327 (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed. All uses
25328 replaced by isprint etc.
25329 * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
25330 * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
25331 * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
25332 * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
25333 * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
25334 * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
25336 2006-07-05 Bruno Haible <bruno@clisp.org>
25338 * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
25339 the function exists, before testing against AIX.
25340 Reported by Martin Lambers <marlam@marlam.de>.
25342 2006-07-04 Paul Eggert <eggert@cs.ucla.edu>
25344 * modules/cycle-check (lib_SOURCES): Add same-inode.h.
25345 From Mark D. Baushke.
25347 2006-07-04 Paul Eggert <eggert@cs.ucla.edu>
25349 * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
25350 to the absolute name, not just one, to bypass Sun C 5.8's
25351 "warning: #include of /usr/include/... may be non-portable".
25353 2006-07-04 Eric Blake <ebb9@byu.net>
25355 * modules/dirname-tests: New test module.
25356 * tests/test-dirname.c: New file, replacing dirname.c
25357 TEST_DIRNAME section that was recently deleted.
25359 2006-07-04 Bruno Haible <bruno@clisp.org>
25361 Assume ANSI C header files and <ctype.h> functions.
25362 * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
25363 (mbsnwidth): Use isprint, iscntrl instead.
25365 2006-07-03 Paul Eggert <eggert@cs.ucla.edu>
25367 Merge from coreutils.
25368 * MODULES.html.sh: Add xstrtold.
25369 * modules/xstrtold: New file.
25370 * modules/cycle-check (Files): Add lib/same-inode.h.
25371 * modules/dirname (Files): Add m4/double-slash-root.m4.
25372 * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
25373 * modules/mkdir-p (Files): Add lib/same-inode.h.
25374 * modules/same (Files): Add lib/same-inode.h.
25376 2006-07-03 Paul Eggert <eggert@cs.ucla.edu>
25378 * m4/absolute-header.m4: Renamed from full-header-path.m4.
25379 This is to keep the terminology clean; POSIX talks about
25380 "absolute pathnames", not "full pathnames", but the GNU
25381 Coding Standards say to use "path" for something else;
25382 so use "absolute" to keep both sides happy.
25383 (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
25384 Set gl_absolute_header, not gl_full_header_path.
25385 Set gl_cv_absolute_<header>, not gl_full_path_<header>.
25386 Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
25389 Merge from coreutils.
25391 2006-06-30 Paul Eggert <eggert@cs.ucla.edu>
25393 * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
25394 Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
25395 want to require the building of c-strtod.o.
25396 * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
25397 needs -lm directly.
25398 * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
25400 2006-06-19 Paul Eggert <eggert@cs.ucla.edu>
25402 * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
25403 --as-needed option if available. Problem reported by Albert Chin in
25404 <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
25405 However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
25406 cc merely issues a bunch of annoying warnings for --as-needed
25407 (this problem was reported by Bob Proulx). Also, try linking with
25408 -lm to detect a bug in binutils 2.16 (this problem was reported
25409 by Ralf Wildenhues).
25411 2006-06-18 Jim Meyering <jim@meyering.net>
25413 Test for a bug that causes glibc's getcwd to suffer a failed assertion.
25414 * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
25416 * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
25417 also check for glibc-2.4's abort-inducing bug.
25419 * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
25420 Low-probability clean-up should be to use rmdir to get rid of
25421 the just-created directory, not unlink.
25423 * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
25424 configure fail, and request a bug report to inform us about it.
25425 Add a comment that, barring reports to the contrary, in 2007 we'll
25426 assume ftruncate is universally available.
25428 2006-04-17 Paul Eggert <eggert@cs.ucla.edu>
25430 * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
25432 2006-03-12 Jim Meyering <jim@meyering.net>
25434 * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
25435 * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
25436 * m4/same.m4 (gl_SAME): Likewise.
25437 * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
25439 2006-03-11 Eric Blake <ebb9@byu.net>
25441 * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
25442 * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
25443 * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
25444 (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
25446 2006-07-03 Paul Eggert <eggert@cs.ucla.edu>
25448 * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
25449 MacOS X 10.4.6. Don't mention <sys/int_types.h>. Problems
25450 reported by Mark D. Baushke, one in
25451 <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
25453 Merge from coreutils.
25455 * lib/.cppi-disable: Add stdint_.h.
25456 * lib/.cvsignore: Add stdint.h.
25458 2006-06-30 Paul Eggert <eggert@cs.ucla.edu>
25460 * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
25461 both double and long double versions.
25462 (XSTRTOD): Renamed from xstrtod. Use DOUBLE internally.
25463 * lib/xstrtold.c: New file.
25464 * lib/xstrtod.h (xstrtold): New decl.
25466 2006-05-22 Paul Eggert <eggert@cs.ucla.edu>
25468 * lib/filemode.c (setst): Remove.
25469 (strmode): Rewrite to avoid setst. This makes the code shorter,
25470 (arguably) clearer, and the generated code is a bit smaller on my
25471 Debian GNU/Linux stable x86 host.
25473 2006-04-17 Paul Eggert <eggert@cs.ucla.edu>
25475 * lib/filemode.c: Include "filemode.h" first, to test the interface.
25476 Assume that filemode.h includes sys/types.h and sys/stat.h.
25477 (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
25478 (ftypelet): Reorder to put common cases first, for efficiency.
25479 Add 'P', 'w'. Remove 'M', since it's now the caller's responsibility
25481 (strmode): Renamed from mode_string, and now stores 12 bytes instead
25482 of 10, for compatibility with FreeBSD. All callers changed.
25483 (filemodestring): Now stores 12 bytes instead of 10, and sets file
25484 types that can't be deduced solely from st_mode. First arg is now a
25486 * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
25487 (strmode): Renamed from mode_string.
25488 (filemodestring): New decl.
25489 * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
25490 (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
25492 (S_ISPORT, S_ISWHT): New macros, if not already defined.
25494 2006-04-12 Paul Eggert <eggert@cs.ucla.edu>
25496 * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
25497 fsusage.h now does that. Include fsusage.h first, to test interface.
25498 Prefer statvfs if it works, since it's blessed by POSIX. Attempt
25499 at most one method (the old code could have generated decls that
25500 didn't conform to C89, not that this was ever exercised).
25501 * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
25503 2006-03-19 Jim Meyering <jim@meyering.net>
25505 Work even in a chroot where d_ino values for entries in "/"
25506 don't match the stat.st_ino values for the same names.
25507 * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
25508 number, iterate through all entries again, using lstat instead.
25509 Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
25510 Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
25512 * lib/getcwd.c (__getcwd): Clarify a comment.
25513 Use memcpy in place of a call to strcpy.
25515 2006-03-12 Jim Meyering <jim@meyering.net>
25517 * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
25518 matches that of the current directory (which we're about to chdir ".."
25519 out of), then save the dev-ino of the parent, instead.
25521 * lib/same-inode.h (SAME_INODE): New file/macro.
25522 * lib/chdir-safer.c (SAME_INODE): Remove definition.
25523 Include "same-inode.h", instead.
25524 * lib/same.c: Likewise.
25525 * lib/cycle-check.h: Include "same-inode.h".
25526 (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
25527 * lib/cycle-check.c (SAME_INODE): Remove definition.
25528 * lib/root-dev-ino.h: Include "same-inode.h".
25530 2006-03-11 Eric Blake <ebb9@byu.net>
25532 * lib/same.c (same_name): s/base_name/last_component/
25533 * lib/backupfile.c (check_extension, numbered_backup): Likewise.
25534 * lib/filenamecat.c (file_name_concat): Likewise.
25536 2006-03-11 Eric Blake <ebb9@byu.net>,
25537 Paul Eggert <eggert@cs.ucla.edu>
25539 * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
25540 [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
25542 (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
25543 platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
25544 (last_component): New method.
25545 * lib/dirname.c (dir_len): Determine when drive letters need a
25546 subsequent slash. Preserve // when it is special.
25547 (dir_name): Don't append dot when drive letter is absolute.
25548 [TEST_DIRNAME]: Move into a full-blown gnulib test.
25549 * lib/basename.c (base_name): New semantics - malloc the result.
25550 Preserve // when it is special. Preserve relative files that look
25551 like drive letters.
25552 (base_len): Preserve // when it is special.
25553 (last_component): New method, similar to old base_name semantics.
25554 * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
25555 base_name. Strip redundant slashes from ///.
25557 2006-07-03 Jim Meyering <jim@meyering.net>
25559 * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
25560 macro is used before the first cycle_check call.
25562 2006-07-03 Eric Blake <ebb9@byu.net>
25564 * modules/dirname (Depends-on): Add xstrndup.
25566 2006-07-02 Paul Eggert <eggert@cs.ucla.edu>
25568 * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
25569 test cases, so that config.log is a bit easier to follow.
25571 2006-07-02 Paul Eggert <eggert@cs.ucla.edu>
25573 * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
25574 both are 64 bits, since this seems to be the tradition, and this
25575 prevents gcc -Wformat from warning about usages with PRIuMAX. If
25576 we ever run into a host that prefers long long to long in this
25577 case, we'll need another configure-time test. Problem reported by
25580 2006-07-02 Eric Blake <ebb9@byu.net>
25582 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
25584 2006-07-01 Paul Eggert <eggert@cs.ucla.edu>
25586 * modules/inttypes (Depends-on): No longer depends on stdint.
25587 * modules/stdint (Description): Say more about assumptions.
25588 Say that the fast types might differ. Say macros are used.
25589 (Files): Remove m4/size_max.m4, m4/wchar_t.m4. Add m4/longlong.m4.
25590 (Makefile.am): Revise list of substituted symbols to match
25592 * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
25593 (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
25594 * tests/test-stdint.c (verify_same_types)
25595 [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
25596 the code conforms to C99/C89.
25597 Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
25598 Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
25600 2006-07-01 Paul Eggert <eggert@cs.ucla.edu>
25602 * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
25603 but fix a bug, by requiring at least 64 bits.
25604 * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
25605 * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
25606 AC_TYPE_LONG_LONG_INT. This macro is obsolete and will go soon.
25607 * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG) Likewise.
25609 * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
25610 changes. Make 2.59 a prerequisite. Check and substitute for
25611 HAVE_LONG_LONG_INT. Rely on Autoconf to check for stdint.h and
25612 inttypes.h. Do not use special include files; just use the
25613 defaults. Check for sys/inttypes.h and sys/bitypes.h in the usual
25614 way now. Remove no-longer-needed tests for HAVE_LONG_64BIT,
25615 HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
25616 uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
25617 int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
25618 uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
25619 int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
25620 uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
25621 uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
25622 UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
25623 INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
25624 UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
25625 UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
25626 UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
25627 UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
25628 INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
25629 INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
25630 UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
25631 INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
25632 SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
25633 WINT_MAX. Check for C99 conformance more strictly, by detecting
25634 bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9. On the other hand do
25635 not check for things that C99 does not require, e.g., int8_t. If
25636 a test isn't needed unless <stdint.h> isn't working, and is
25637 unlikely to be needed for any other reason, then don't do it
25638 unless <stdint.h> isn't working. Do not check for ptrdiff_t or
25639 size_t, since we assume C89 freestanding at least. Do not check
25640 for sig_atomic_t, wchar_t, or wint_t, since the code now does
25641 the right thing even if the types are not defined. Instead use:
25642 (gl_STDINT_TYPE_PROPERTIES): New macro.
25643 (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove. Don't bother
25644 testing whether <sys/types.h> clashes, as Autoconf does this for
25645 us now. All uses removed.
25646 (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
25647 (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
25648 (gl_CHECK_TYPE_SAME):
25649 Remove; no longer needed.
25650 (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
25651 exists, since we'll return 0 anyway in that case.
25652 (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
25654 2006-07-01 Paul Eggert <eggert@cs.ucla.edu>
25656 * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
25657 possible collision with system files.
25658 (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
25659 __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
25660 WCHAR_MIN and WCHAR_MAX in this case.
25661 (<stddef.h>): Do not include; no longer needed.
25662 (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
25663 (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
25664 (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
25665 !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
25666 && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
25667 (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
25668 __c99]: Define, to work around IRIX <stdint.h> incompatibility.
25669 (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
25670 !defined(__c99))]: Include in this case too, since it's harmless
25672 (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
25673 dangerous to do so.
25674 (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
25675 @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
25676 (_STDINT_MIN, _STDINT_MAX): New macros.
25677 (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
25678 (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
25679 (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
25680 (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
25681 (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
25682 (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
25683 macros, not typedefs; this simplifies things quite a bit.
25684 Use long int for all types narrower than int64_t.
25685 (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
25686 Define in terms of long long int or int64_t or long int,
25687 not int64_t or int32_t. This saves some compile-time testing.
25688 (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
25689 (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
25690 (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
25691 (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
25692 (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
25693 (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
25694 (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
25695 (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
25696 (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
25697 (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
25698 (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
25699 (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
25700 undef any previous version and define our own version, for
25701 simplicity and consistency with the new macros for types.
25702 (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
25703 (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
25704 Simplify definitions by using _STDINT_MIN and _STDINT_MAX
25705 where appropriate. Rely on new symbols @PTRDIFF_T_SUFFIX@,
25706 @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
25707 @WINT_T_SUFFIX@ to keep things simple here.
25708 (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
25709 Simplify by assuming typical 8/16/32/64 host, since we're
25710 already doing that elsewhere anyway.
25711 Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
25712 and assume long long int is 64 bits if available. This
25713 speeds up 'configure'.
25715 2006-07-01 Eric Blake <ebb9@byu.net>
25717 * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
25718 Reported by Andreas Buening.
25720 2006-07-01 Eric Blake <ebb9@byu.net>
25722 * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
25724 2006-06-30 Jim Hyslop <jhyslop@dreampossible.ca> (tiny change)
25726 * lib/getaddrinfo.c: fixed typo
25728 2006-06-29 Jim Meyering <jim@meyering.net>
25730 * modules/strftime (Maintainer): Add my name, since with the
25731 FPRINTFTIME changes strftime.c has forked from glibc.
25733 2006-06-29 Eric Blake <ebb9@byu.net>
25735 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
25737 2006-06-29 Eric Blake <ebb9@byu.net>
25739 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
25741 2006-06-29 Eric Blake <ebb9@byu.net>
25743 * lib/stat_.h: New file.
25745 2006-06-29 Eric Blake <ebb9@byu.net>
25747 * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
25748 unused static function.
25750 2006-06-29 Eric Blake <ebb9@byu.net>
25752 * doc/functions.texi (Function Portability): Document missing lstat
25755 2006-06-29 Eric Blake <ebb9@byu.net>
25757 * MODULES.html.sh: Add sys_stat.
25758 * modules/sys_stat: New module.
25759 * modules/mkstemp (Depends-on): Add sys_stat.
25761 2006-06-29 Derek R. Price <derek@ximbiot.com>
25763 * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
25765 2006-06-29 Derek R. Price <derek@ximbiot.com>
25767 * m4/c-bs-a.m4: Removed.
25769 2006-06-29 Derek R. Price <derek@ximbiot.com>
25771 * lib/strftime.c: Assume strftime() exists.
25773 2006-06-29 Derek Price <derek@ximbiot.com>
25775 * modules/c-bs-a: Removed - \a is C89.
25776 * MODULES.html.sh: Remove c-bs-a.
25778 2006-06-29 Bruno Haible <bruno@clisp.org>
25780 * modules/wcwidth (License): Change to LGPL.
25782 2006-06-28 Simon Josefsson <jas@extundo.com>
25784 * tests/test-getaddrinfo.c: Test getnameinfo too. Call WSAStartup
25787 * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
25790 2006-06-28 Simon Josefsson <jas@extundo.com>
25792 * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
25794 2006-06-28 Simon Josefsson <jas@extundo.com>
25796 * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
25797 functions there. It will succeed on Windows XP, but on Windows
25798 2000 and (presumably) earlier, it will fail, and use the internal
25800 (use_win32_p): New function.
25801 (getaddrinfo): Use strtoul on servname, to support numeric ports.
25802 Support AI_NUMERICSERV to disable getservbyname.
25803 (getnameinfo): New function, only supports
25804 NI_NUMERICHOST|NI_NUMERICSERV for now.
25806 * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
25807 only have some of them. Add AI_NUMERICSERV. Add prototype for
25810 2006-06-28 Eric Blake <ebb9@byu.net>
25812 * modules/wcwidth: New file.
25813 * modules/mbchar (Depends-on): Add wcwidth.
25814 * modules/mbswidth (Depends-on): Add wcwidth.
25815 * MODULES.html.sh: Add wcwidth.
25817 2006-06-28 Eric Blake <ebb9@byu.net>
25819 * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
25820 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
25822 2006-06-28 Eric Blake <ebb9@byu.net>
25824 * lib/xvasprintf.h: Fix comments.
25826 2006-06-28 Eric Blake <ebb9@byu.net>
25828 * lib/mbchar.h (wcwidth): Include wcwidth.h.
25829 * lib/mbswidth.c (wcwidth): Move from here...
25830 * lib/wcwidth.h: ...to this new file.
25832 2006-06-28 Derek R. Price <derek@ximbiot.com>
25834 * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
25836 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
25838 * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
25840 2006-06-28 Derek R. Price <derek@ximbiot.com>
25842 * lib/savedir.c (CLOSEDIR): Remove. All uses changed to closedir.
25843 Autoconf 2.60 says this stuff was obsolete.
25845 2006-06-28 Bruno Haible <bruno@clisp.org>
25847 * modules/wcwidth (Files): Add m4/wchar_t.m4.
25849 2006-06-28 Bruno Haible <bruno@clisp.org>
25851 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
25854 2006-06-28 Bruno Haible <bruno@clisp.org>
25856 * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
25857 declaration for wcwidth.
25858 * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
25860 2006-06-28 Bruno Haible <bruno@clisp.org>
25862 * lib/mkdtemp.c [MINGW]: Include <io.h>.
25863 (mkdir): Define using _mkdir.
25865 2006-06-28 Bruno Haible <bruno@clisp.org>
25867 * lib/getaddrinfo.h: Fix POSIX URL.
25868 * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
25870 (use_win32_p): Make static.
25871 (getaddrinfo): Reject service name if it is empty or does not consist
25872 solely of decimal digits, or if its value is > 65535.
25873 (getnameinfo): Remove useless casts.
25875 2006-06-27 Simon Josefsson <jas@extundo.com>
25877 * modules/sys_select: New file, suggested by Bruno Haible, Paul
25878 Eggert and Martin Lambers.
25880 2006-06-27 Simon Josefsson <jas@extundo.com>
25882 * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
25883 Eggert and Martin Lambers.
25885 2006-06-27 Bruno Haible <bruno@clisp.org>
25887 * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
25888 result to 0, not to empty.
25889 Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
25891 2006-06-27 Bruno Haible <bruno@clisp.org>
25893 * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
25895 2006-06-26 Simon Josefsson <jas@extundo.com>
25897 * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
25900 2006-06-26 Paul Eggert <eggert@cs.ucla.edu>
25902 * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
25903 bug in IBM C V6 for AIX. Problem reported by Larry Jones in
25904 <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
25906 2006-06-26 Mark D. Baushke <mdb@gnu.org>
25908 * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
25910 2006-06-26 Bruno Haible <bruno@clisp.org>
25912 * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
25914 2006-06-26 Bruno Haible <bruno@clisp.org>
25916 * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
25918 2006-06-26 Bruno Haible <bruno@clisp.org>
25920 * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
25921 SGI C compiler in pre-C99 mode.
25922 Suggested by Mark D. Baushke and Larry Jones.
25924 2006-06-26 Bruno Haible <bruno@clisp.org>
25926 * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
25928 Reported by Mark D. Baushke and Larry Jones.
25930 2006-06-26 Bruno Haible <bruno@clisp.org>
25932 * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
25934 Suggested by Mark D. Baushke and Larry Jones.
25936 2006-06-23 Simon Josefsson <jas@extundo.com>
25937 Bruno Haible <bruno@clisp.org>
25939 * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
25940 Emit mostlyclean-local rule.
25941 (func_emit_tests_Makefile_am): Likewise.
25942 * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
25944 2006-06-23 Mark D. Baushke <mdb@gnu.org>
25946 * lib/stdint_.h: Treat BSD/OS like OpenBSD.
25948 2006-06-23 Bruno Haible <bruno@clisp.org>
25950 * tests/test-stdint.c: Update to match ISO C 99 Technical
25953 2006-06-23 Bruno Haible <bruno@clisp.org>
25955 * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
25957 2006-06-23 Bruno Haible <bruno@clisp.org>
25959 * lib/stdint_.h: Treat IRIX like OpenBSD.
25961 2006-06-23 Bruno Haible <bruno@clisp.org>
25963 * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
25964 ISO C 99 Technical Corrigendum 1.
25966 2006-06-22 Simon Josefsson <jas@extundo.com>
25968 * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
25971 2006-06-22 Paul Eggert <eggert@cs.ucla.edu>
25973 * lib/glob.c (collated_compare): Remove 'const' uses that weren't
25974 needed. Some compiler complained about some of them. Problem reported
25976 <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
25978 2006-06-21 Simon Josefsson <jas@extundo.com>
25980 * tests/test-getaddrinfo.c: New file.
25982 * modules/getaddrinfo-tests: New file.
25984 * MODULES.html.sh: Add inet_pton.
25986 * modules/inet_pton: New file.
25988 2006-06-21 Simon Josefsson <jas@extundo.com>
25990 * m4/getaddrinfo.m4: Don't define WINVER. Look for gethostbyname in
25991 -lws2_32 too. Fixes getaddrinfo on Windows 2000, with the price
25992 of using the (limited) gnulib implementation on Windows XP.
25994 * m4/inet_pton.m4: New file.
25996 2006-06-21 Simon Josefsson <jas@extundo.com>
25998 * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
26001 * lib/socket_.h: Don't define WINVER.
26003 * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
26004 slightly modified to work in gnulib.
26006 2006-06-21 Simon Josefsson <jas@extundo.com>
26008 * doc/gnulib.texi (Windows sockets): Add.
26010 2006-06-21 Paul Eggert <eggert@cs.ucla.edu>
26012 * lib/read-file.c (fread_file): Start with buffer allocation of
26013 0 bytes rather than 1 byte; this simplifies the code.
26014 Don't invoke feof; it's not needed. Refactor to avoid duplicate
26015 code to free buffer and save/restore errno.
26016 (internal_read_file): Remove unused local.
26018 2006-06-20 Paul Eggert <eggert@cs.ucla.edu>
26020 * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
26021 <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
26022 Problem reported by Denis Excoffier in
26023 <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
26025 2006-06-19 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
26027 * modules/sys_socket, modules/socklen: Include sys/types since
26028 FreeBSD 4.x's sys/socket.h needs it.
26030 2006-06-19 Simon Josefsson <jas@extundo.com>
26032 * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
26034 2006-06-19 Paul Eggert <eggert@cs.ucla.edu>
26036 * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
26038 2006-06-19 Bruno Haible <bruno@clisp.org>
26040 * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
26041 and FULL_PATH_INTTYPES_H in angle brackets.
26042 Reported by Mark D. Baushke <mdb@gnu.org>.
26044 2006-06-17 Eric Blake <ebb9@byu.net>
26046 * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
26049 2006-06-17 Bruno Haible <bruno@clisp.org>
26051 * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
26054 2006-06-17 Bruno Haible <bruno@clisp.org>
26056 * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
26057 whether errno is declared. Assume <errno.h> declares errno.
26059 2006-06-17 Bruno Haible <bruno@clisp.org>
26061 * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
26063 2006-06-17 Bruno Haible <bruno@clisp.org>
26065 * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
26066 problem on Solaris 2.5.1.
26068 2006-06-16 Eric Blake <ebb9@byu.net>
26070 * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
26071 * lib/unicodeio.c [!defined errno]: Likewise.
26072 * lib/strtol.c [!defined errno]: Likewise.
26073 * lib/strtod.c [!defined errno]: Likewise.
26075 2006-06-15 Eric Blake <ebb9@byu.net>
26077 * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
26079 2006-06-15 Eric Blake <ebb9@byu.net>
26081 * config/srclist.txt (ssize_t.m4): Lose sync.
26083 2006-06-15 Bruno Haible <bruno@clisp.org>
26085 * modules/stdint (Files): Include m4/full-header-path.m4,
26086 m4/size_max.m4, m4/wchar_t.m4.
26087 (Makefile.am): Many more substitutions.
26088 * modules/stdint-tests: New file.
26089 * tests/test-stdint.c: New file.
26091 2006-06-15 Bruno Haible <bruno@clisp.org>
26093 * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
26094 (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
26095 gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
26096 gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
26097 gl_CHECK_TYPE_SAME): New macros.
26099 2006-06-15 Bruno Haible <bruno@clisp.org>
26101 * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
26103 2006-06-15 Bruno Haible <bruno@clisp.org>
26105 * lib/stdint_.h: Rewritten to be fully auto-configured.
26106 Fixes bug on HP-UX/IA64.
26108 2006-06-11 Paul Eggert <eggert@cs.ucla.edu>
26110 * lib/getdate.y (__attribute__): Don't define if already defined.
26111 Problem reported by Larry Jones.
26112 * lib/utimens.c (__attribute__): Likewise.
26114 2006-06-04 Paul Eggert <eggert@cs.ucla.edu>
26116 * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
26117 reported by Andreas Schwab.
26119 2006-05-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
26120 Bruno Haible <bruno@clisp.org>
26122 * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
26123 check for the declaration of strnlen and a run test that exposes the
26124 AIX 5.1 strnlen bug. In the failure case, #define strndup to
26127 2006-05-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
26128 Bruno Haible <bruno@clisp.org>
26130 * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
26132 2006-05-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
26134 * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
26135 compile test, for Tru64 4.0D.
26137 2006-05-28 Karl Berry <karl@gnu.org>
26139 * config/srclist.txt (printf-args.c): lose sync.
26141 2006-05-26 Martin Lambers <marlam@marlam.de>
26143 * lib/getpass.c: Updates the test for the native W32 API, and adds
26144 missing includes, thus fixing compilation warnings.
26146 2006-05-25 Sergey Poznyakoff <gray@gnu.org.ua>
26148 * lib/exclude.c (exclude_fnmatch): New function.
26149 (excluded_file_name): Call exclude_fnmatch.
26150 * lib/exclude.h (excluded_file_name): New prototype
26152 2006-05-25 Paul Eggert <eggert@cs.ucla.edu>
26154 * lib/tempname.c (small_open, large_open): New macros.
26155 (__open, __open64) [!_LIBC]: Remove.
26156 (__gen_tempname): Use small_open and large_open instead of __open
26157 and __open64. This fixes a portability bug on HP-UX 11.11i
26158 reported by Simon Wing-Tang in
26159 <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
26161 2006-05-24 Bruno Haible <bruno@clisp.org>
26163 * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
26164 TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
26165 Reported by Thorsten Maerz <torte@netztorte.de> via
26166 Aaron Stone <aaron@serendipity.cx>.
26168 2006-05-19 Paul Eggert <eggert@cs.ucla.edu>
26170 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
26171 gl_ rather than jm_. Link, don't run, so that cross-compiles are
26172 allowed. Check that resulting type is arithmetic. Move AC_REQUIRE
26173 and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
26174 not really conditional on the cache.
26175 (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
26177 2006-05-19 Paul Eggert <eggert@cs.ucla.edu>
26179 * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
26180 Use the usual Autoconf way to include <time.h> and/or sys/time.h.
26181 (my_usleep): Don't mishandle maximum value.
26183 2006-05-19 Jim Meyering <jim@meyering.net>
26185 * lib/getugroups.c: Correct an outdated comment. From Bruno Haible.
26187 2006-05-17 Bruno Haible <bruno@clisp.org>
26189 Cygwin portability.
26190 * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
26192 2006-05-17 Bruno Haible <bruno@clisp.org>
26194 * lib/stdint_.h: Fix recognition of Cygwin.
26196 2006-05-15 Bruno Haible <bruno@clisp.org>
26198 * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
26199 on libtool patch by Ralf Wildenhues.
26201 2006-05-14 Paul Eggert <eggert@cs.ucla.edu>
26203 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
26204 test for C99 conformance; (bool) 0.5 is an integer constant
26205 expression, but (bool) -0.5 is not. Problem reported by Fedor
26206 Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
26208 2006-05-11 Simon Josefsson <jas@extundo.com>
26210 * m4/xvasprintf.m4: Fix obvious typo.
26212 2006-05-11 Jim Meyering <jim@meyering.net>
26214 * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/. From
26217 2006-05-10 Simon Josefsson <jas@extundo.com>
26219 * lib/md4.c: Typo fix, update copyright years.
26220 (K1, K2): Don't use L because it turn computations into 64-bit on
26223 2006-05-10 Paul Eggert <eggert@cs.ucla.edu>
26225 * lib/crc.c (crc32_update): Remove unnecessary L suffix.
26226 * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
26227 unwanted sign propagation, e.g., on hosts with 64-bit int.
26228 There still are some problems with reeelly weird theoretical hosts
26229 (e.g., 33-bit int) but it's not worth worrying about now.
26230 * lib/sha1.c (rol): Likewise.
26231 (K1, K2, K3, K4): Remove unnecessary L suffix.
26233 2006-05-10 Bruno Haible <bruno@clisp.org>
26235 * lib/des.c: Cast to avoid warnings.
26237 2006-05-09 Bruno Haible <bruno@clisp.org>
26239 * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
26240 (Depends-on): Depend also on xsize, stdarg.
26241 (configure.ac): Add gl_XVASPRINTF.
26243 2006-05-09 Bruno Haible <bruno@clisp.org>
26245 * m4/xvasprintf.m4: New file.
26247 2006-05-09 Bruno Haible <bruno@clisp.org>
26249 * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
26250 (EOVERFLOW): Define fallback value.
26251 (xstrcat): New function.
26252 (xvasprintf): Recognize the special case of a string concatenation.
26254 2006-05-08 Eric Blake <ebb9@byu.net>
26256 * gnulib-tool (func_version): Base copyright year on CVS date.
26257 (func_emit_copyright_notice): New function.
26258 (func_emit_lib_Makefile_am): Use it.
26259 (func_emit_tests_Makefile_am): Likewise.
26260 (func_import): Likewise.
26262 2006-05-08 Bruno Haible <bruno@clisp.org>
26264 * modules/stdarg: New file.
26265 * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
26267 2006-05-08 Bruno Haible <bruno@clisp.org>
26269 * m4/stdarg.m4: New file, from GNU gettext.
26271 2006-05-08 Bruno Haible <bruno@clisp.org>
26273 * config/srclist.txt (build-aux/config.rpath): different from latest
26276 2006-05-08 Bruno Haible <bruno@clisp.org>
26278 * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
26280 2006-05-05 Jim Meyering <jim@meyering.net>
26282 * m4/warning.m4: New file, derived from bison's file by the same name.
26284 2006-05-03 Bruno Haible <bruno@clisp.org>
26286 * lib/stdint_.h: Shorter URL.
26287 * lib/inttypes.h: Likewise.
26289 2006-05-02 Paul Eggert <eggert@cs.ucla.edu>
26291 * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
26293 2006-05-02 Paul Eggert <eggert@cs.ucla.edu>
26295 * lib/verify.h: Document the internals better. Most of this change
26296 was written by Bruno Haible.
26298 2006-05-02 Paul Eggert <eggert@cs.ucla.edu>
26300 * doc/verify.texi: New file, partly based on a proposal by
26303 2006-05-02 Bruno Haible <bruno@clisp.org>
26305 * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
26307 * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
26309 2006-04-29 Bruno Haible <bruno@clisp.org>
26311 * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
26312 Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
26314 2006-04-29 Bruno Haible <bruno@clisp.org>
26316 * gnulib-tool: Make --update option actually work.
26318 2006-04-29 Bruno Haible <bruno@clisp.org>
26320 * doc/gcd.texi: New file.
26321 * doc/gnulib.texi: Include it.
26323 2006-04-25 Paul Eggert <eggert@cs.ucla.edu>
26325 * lib/getdate.y (get_date): When adding relative date, start with the
26326 initial time, not with the result of the first mktime call.
26328 2006-04-25 Bruno Haible <bruno@clisp.org>
26330 * gnulib-tool (func_import): Output the include directives in three
26331 blocks, sorted separately.
26332 Reported by Ben Pfaff <blp@cs.stanford.edu>.
26334 2006-04-24 Paul Eggert <eggert@cs.ucla.edu>
26336 * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
26337 to define main with arguments, for C++. Reported by Eric Blake.
26338 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
26339 Prefer 'int main ()' to 'int main (void)', for C++.
26340 * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
26341 * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
26342 for 'main', for C99 and C++.
26344 2006-04-24 Paul Eggert <eggert@cs.ucla.edu>
26346 * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
26347 Don't assume that exit status -1 is valid.
26348 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
26349 * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
26350 * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
26351 * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
26352 * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
26353 * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
26354 not AC_TRY_RUN. Use return, not exit. Don't assume that
26355 functions can be used without declaring them, or that you can
26356 exit with status -1.
26357 * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
26359 2006-04-24 Karl Berry <karl@gnu.org>
26361 * config/srclist.txt (longdouble.m4): sync lost.
26363 2006-04-24 Eric Blake <ebb9@byu.net>
26365 * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
26367 2006-04-24 Bruno Haible <bruno@clisp.org>
26369 * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
26370 poll() implementation in AIX.
26371 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
26373 2006-04-24 Bruno Haible <bruno@clisp.org>
26375 * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
26376 assigned exactly once.
26378 2006-04-23 Claudio Fontana <claudio@gnu.org>
26379 Bruno Haible <bruno@clisp.org>
26381 * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
26382 * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
26385 2006-04-23 Bruno Haible <bruno@clisp.org>
26387 * modules/copy-file: Depend on unistd.
26388 * modules/execute: Likewise.
26389 * modules/fatal-signal: Likewise.
26390 * modules/findprog: Likewise.
26391 * modules/mkdtemp : Likewise.
26392 * modules/pipe: Likewise.
26393 * modules/wait-process: Likewise.
26395 2006-04-23 Bruno Haible <bruno@clisp.org>
26397 * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
26398 condition was already detected.
26399 Reported by Ben Pfaff <blp@cs.stanford.edu>.
26401 2006-04-23 Bruno Haible <bruno@clisp.org>
26403 * lib/copy-file.c: Include <unistd.h> unconditionally.
26404 * lib/execute.c: Likewise.
26405 * lib/fatal-signal.c: Likewise.
26406 * lib/findprog.c: Likewise.
26407 * lib/mkdtemp.c: Likewise.
26408 * lib/pipe.h: Likewise.
26409 * lib/pipe.c: Likewise.
26410 * lib/wait-process.h: Likewise.
26412 2006-04-23 Bruno Haible <bruno@clisp.org>
26414 * gnulib-tool (func_usage): Fix --import description. Document
26416 (func_import): Create temporary file in a temporary directory, if
26417 --dry-run is specified. Silence errors from 'grep' when there are no
26418 m4 files in $m4dir.
26419 (func_create_testdir): Silence errors from 'grep' when there are no
26420 m4 files in $m4dir.
26421 Reported by Karl Berry <karl@freefriends.org>.
26423 2006-04-20 Bruno Haible <bruno@clisp.org>
26425 * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
26426 one argument, so that the code will be portable to Autoconf 2.60.
26427 * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
26428 * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
26429 * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
26431 2006-04-19 Derek Price <derek@ximbiot.com>
26432 Eric Blake <ebb9@byu.net>
26434 * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
26435 rather than "/full/path.h". Update comment to match. Shorten &
26436 generalize m4_translit call via AS_TR_CPP.
26438 2006-04-19 Derek Price <derek@ximbiot.com>
26439 Eric Blake <ebb9@byu.net>
26441 * lib/inttypes.h: Correct grammar in comment.
26443 2006-04-18 Derek Price <derek@ximbiot.com>
26444 Paul Eggert <eggert@cs.ucla.edu>
26446 * modules/inttypes: New file.
26447 * modules/strtoimax, modules/strtoumax: Depend on inttypes.
26449 2006-04-18 Derek Price <derek@ximbiot.com>
26450 Paul Eggert <eggert@cs.ucla.edu>
26452 * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
26455 2006-04-18 Derek Price <derek@ximbiot.com>
26456 Paul Eggert <eggert@cs.ucla.edu>
26458 * lib/inttypes.h: New file.
26459 * lib/strtoimax.c: Assume <inttypes.h>.
26461 2006-04-15 Paul Eggert <eggert@cs.ucla.edu>
26463 * lib/utimens.c (futimens): glibc futimesat messes up if /proc
26464 isn't mounted. Problem reported by Kir Kolyshkin.
26466 2006-04-13 Paul Eggert <eggert@cs.ucla.edu>
26468 * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
26469 RE_ENABLE_I18N is not defined. Problem reported by Mark D. Baushke via
26471 * lib/regex.h (RE_DUP_MAX): Update comment to match current
26474 2006-04-12 Eric Blake <ebb9@byu.net>
26476 * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
26477 is now done automatically by the corresponding Autoconf macro.
26479 2006-04-11 Paul Eggert <eggert@cs.ucla.edu>
26481 * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
26484 2006-04-09 Paul Eggert <eggert@cs.ucla.edu>
26486 Merge regex changes from libc, removing some of our
26487 POSIX-conformance changes that were rejected and redoing them in a
26488 less-intrusive way.
26490 * lib/regcomp.c (re_compile_internal, init_dfa):
26491 Length arg is now size_t, not Idx. All uses changed.
26492 (peek_token): Forward decl now says internal_function.
26493 (__re_error_msgid, __re_error_msgid_idx):
26494 Now static rather than extern with attribute_hidden.
26495 (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
26496 For some reason libc prefers K&R style defns for external functions.
26497 (regerror) [!defined _LIBC]: Likewise.
26498 (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
26499 (seek_collating_symbol_entry, lookup_collation_sequence_value):
26500 (build_range_exp, build_collating_symbol):
26501 Use K&R-style defn.
26502 (re_compile_fastmap): Use '\0' to memset, not 0.
26503 (utf8_sb_map): Make the calculations more obvious.
26504 (init_dfa, parse_bracket_exp, build_charclass_op):
26505 Call calloc and cast result, as glibc does.
26506 (init_word_char, fetch_token, peek_token, peek_token_bracket):
26507 (build_range_exp, build_collating_symbol):
26508 Now internal functions.
26510 * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
26512 * lib/regex.h (__USE_GNU_REGEX): New macro. Don't depend on
26513 _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
26514 Don't depend on VMS; depend on __VMS instead, for POSIX
26515 namespace cleanness.
26516 (regoff_t): Define to ssize_t, not long int.
26518 Remove the REG_ macros named below. Instead, make the old names
26519 (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
26521 (REG_BACKSLASH_ESCAPE_IN_LISTS):
26522 (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
26523 (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
26524 (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
26525 (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
26526 (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
26527 (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
26528 (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
26529 (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
26530 (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
26531 (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
26532 (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
26533 (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
26534 (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
26535 (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
26536 (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
26537 (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
26539 Remove. All uses replaced by the old RE_* names.
26540 (RE_BACKSLASH_ESCAPE_IN_LISTS):
26541 (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
26542 (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
26543 (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
26544 (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
26545 (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
26546 (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
26547 (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
26548 (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
26549 (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
26550 (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
26551 Don't bother having these macros be independent of each others'
26552 values, since they no longer exist in the POSIX name space.
26554 Rename the following member names back to their old names,
26555 unless !__USE_GNU_REGEX. All uses changed back.
26556 (buffer): Renamed from re_buffer.
26557 (allocated): Renamed from re_allocated.
26558 (used): Renamed from re_used.
26559 (syntax): Renamed from re_syntax.
26560 (fastmap): Renamed from re_fastmap.
26561 (translate): Renamed from re_translate.
26562 (can_be_null): Renamed from re_can_be_null.
26563 (regs_allocated): Renamed from re_regs_allocated.
26564 (fastmap_accurate): Renamed from re_fastmap_accurate.
26565 (no_sub): Renamed from re_no_sub.
26566 (not_bol): Renamed from re_not_bol.
26567 (not_eol): Renamed from re_not_eol.
26568 (newline_anchor): Renamed from re_newline_anchor.
26569 (num_regs): Renamed from rm_num_regs.
26570 (start): Renamed from rm_start.
26571 (end): Renamed from rm_end.
26573 (free_state): Move up a bit.
26575 * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
26576 #define to be empty.
26577 (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
26578 when that is what is intended.
26579 (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
26580 (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
26582 (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
26583 All uses changed back to re_malloc, etc. It's now the caller's
26584 responsibility to check for overflow; all callers changed.
26585 (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
26586 (re_x2nrealloc): Remove.
26587 (free_state): Remove decl.
26589 * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
26590 (re_set_registers, re_exec):
26591 Use K&R-style defn.
26593 2006-01-31 Roland McGrath <roland@redhat.com>
26595 * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
26596 Reported by Mike Frysinger <vapier@gentoo.org>.
26598 2006-01-15 Andreas Jaeger <aj@suse.de>
26601 * lib/regex_internal.c (re_string_reconstruct): Adjust for
26602 build_wcs_upper_buffer change.
26603 (build_wcs_upper_buffer): Change return type.
26605 2005-12-10 Ulrich Drepper <drepper@redhat.com>
26607 * lib/regex_internal.h: Include <stdint.h> if available.
26609 2005-12-06 Paolo Bonzini <bonzini@gnu.org>
26611 * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
26613 2005-10-14 Ulrich Drepper <drepper@redhat.com>
26615 * lib/regcomp.c: Adjust for changed secondary hash function.
26617 2005-09-30 Ulrich Drepper <drepper@redhat.com>
26619 * lib/regex.h: Pretty printing.
26620 Clean up namespace a bit.
26622 2005-09-30 Jakub Jelinek <jakub@redhat.com>
26624 * lib/regexec.c (update_cur_sifted_state, check_arrival,
26625 check_arrival_add_next_nodes): Avoid using uninitialized variable.
26627 2005-09-06 Paul Eggert <eggert@cs.ucla.edu>
26628 Ulrich Drepper <drepper@redhat.com>
26631 * lib/regex_internal.h (bitset_t): Renamed from bitset. All uses
26633 (bitset_word_t): Renamed from bitset_word. All uses changed.
26635 2005-09-22 Ulrich Drepper <drepper@redhat.com>
26638 * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
26639 * lib/regcomp.c: Remove unnecessary uses of
26640 unsigned RE_TRANSLATE_TYPE.
26641 * lib/regex_internal.h: Likewise.
26642 * lib/regex_internal.c: Likewise.
26643 * lib/regexec.c: Likewise.
26644 Based on a patch by Stepan Kasal <kasal@ucw.cz>.
26646 2005-09-07 Ulrich Drepper <drepper@redhat.com>
26648 * lib/regexec.c (find_recover_state): Remove unnecessary
26650 (transit_state_bkref): Make DFA a const pointer.
26651 (get_subexp): Likewise.
26652 (check_arrival): Likewise.
26653 (update_cur_sifted_state): Likewise.
26654 (re_search_internal): Likewise.
26655 (prune_impossible_nodes): Likewise.
26656 (acquire_init_state_context): Likewise.
26657 (proceed_next_node): Likewise.
26658 (set_regs): Likewise.
26659 (free_fail_stack_return): Likewise.
26660 (check_arrival_expand_ecl): Mark DFA parameter as const.
26661 (check_arrival_expand_ecl_sub): Likewise.
26662 (check_subexp_limits): Likewise.
26663 (sub_epsilon_src_nodes): Likewise.
26664 (add_epsilon_src_nodes): Likewise.
26665 (merge_state_array): Likewise.
26666 (update_regs): Likewise.
26667 (build_trtable): Likewise.
26668 (sift_states_backward): Mark MCTX parameter as const.
26669 (build_sifted_states): Likewise.
26670 (update_cur_sifted_state): Likewise.
26671 (sift_states_mkref): Likewise.
26672 (check_arrival_expand_ecl): Mark eclosure as const.
26673 (check_dst_limits_calc_pos_1): Likewise.
26674 * lib/regex_internal.h (re_match_context_t): Make dfa a const
26677 2005-09-06 Ulrich Drepper <drepper@redhat.com>
26679 * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
26680 (transit_state_sb): Likewise.
26681 (transit_state_mb): Likewise.
26682 (sift_states_iter_mb): Likewise.
26683 (check_arrival_add_next_nodes): Likewise.
26684 (check_node_accept_bytes): Change first parameter to pointer-to-const.
26685 [_LIBC] (re_search_2_stub): Use mempcpy.
26687 * lib/regex_internal.c (re_string_reconstruct): Avoid calling
26688 mbrtowc for very simple UTF-8 case.
26690 * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
26691 a pointer-to-const.
26692 (re_acquire_state_context): Likewise.
26693 * lib/regex_internal.h: Adjust prototypes.
26695 * lib/regex.c: Prevent using C++ compilers.
26697 * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
26698 (re_acquire_state_context): Likewise.
26700 2006-04-09 Paul Eggert <eggert@cs.ucla.edu>
26702 * modules/regex (Depends-on): Add ssize_t.
26704 2006-04-09 Paul Eggert <eggert@cs.ucla.edu>
26706 * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
26709 2006-04-09 Paul Eggert <eggert@cs.ucla.edu>
26711 * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
26713 2006-03-29 Mark D. Baushke <mdb@gnu.org>
26714 Bruno Haible <bruno@clisp.org>
26716 * lib/stdint_.h: On OpenBSD, don't redefine types already included in
26717 <sys/types.h> and <inttypes.h>.
26719 2006-03-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
26721 * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
26722 `__error_t_defined', so argp.h will not typedef the former.
26724 2006-03-25 Paul Eggert <eggert@cs.ucla.edu>
26726 * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
26727 REG_SYNTAX_EMACS, and REG_IGNORE_CASE. Settle for the traditional
26728 glibc names. Even if glibc is changed to conform to POSIX, the
26729 traditional names will be available anyway, since regex depends on
26730 the extensions module. Also, fix a longstanding typo in the
26731 implementation of Spencer ERE test #75 from grep 2.3. Problems
26732 reported by Emanuele Giaquinta. Also, change sense of cached
26733 variable, so that the message makes sense.
26735 2006-03-24 Simon Josefsson <jas@extundo.com>
26737 * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
26738 including some doc fixes.
26739 (base64_encode_alloc): Fix +1 bug on allocation failures.
26741 2006-03-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
26743 * lib/base64.c (base64_encode): Do not read past end of array with
26744 unsanitized input on systems with CHAR_BIT > 8.
26746 2006-03-24 Eric Blake <ebb9@byu.net>
26748 * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
26750 2006-03-22 Karl Berry <karl@gnu.org>
26752 * config/srclist.txt (*setenv.[ch]): get from coreutils.
26753 * config/srclistvars.sh (COREUTILS): new var.
26755 2006-03-17 Jim Meyering <jim@meyering.net>
26757 * m4/regex.m4 (gl_REGEX): Fix typo in last change:
26758 s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
26760 2006-03-16 Paul Eggert <eggert@cs.ucla.edu>
26762 * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
26763 no longer needs it. Instead, check that regoff_t is as least
26764 as wide as ptrdiff_t.
26766 Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
26767 so that our regex.h stays compatible with the installed regex.
26768 This is helpful for installers who configure --without-included-regex.
26769 Problem reported by Emanuele Giaquinta.
26771 2006-03-16 Paul Eggert <eggert@cs.ucla.edu>
26773 * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
26774 Typedef to long int, not to off_, as POSIX will likely change
26777 2006-03-15 Eric Blake <ebb9@byu.net>
26779 * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
26781 2006-03-13 Sergey Poznyakoff <gray@gnu.org.ua>
26783 * lib/argp-help.c (validate_uparams): Fix typo
26784 * lib/argp-parse.c (argp_default_options): Consistently begin help
26785 messages with a lowercase letter.
26787 2006-03-11 Paul Eggert <eggert@cs.ucla.edu>
26789 * lib/time_r.h (asctime_r, ctime_r): Remove. These functions can
26790 overrun buffers and shouldn't be used (much as gets shouldn't be
26792 * lib/time_r.c (asctime_r, ctime_r): Likewise.
26794 2006-03-08 Simon Josefsson <jas@extundo.com>
26796 * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
26797 suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
26799 2006-03-08 Simon Josefsson <jas@extundo.com>
26801 * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
26802 $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
26804 2006-03-08 Simon Josefsson <jas@extundo.com>
26806 * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
26807 signal that configure disabled the device.
26809 2006-03-08 Simon Josefsson <jas@extundo.com>
26811 * build-aux/maint.mk: Fix refresh-po, to handle no translated
26814 2006-03-07 Simon Josefsson <jas@extundo.com>
26816 * modules/getopt (Depends-on): Add unistd.
26818 * modules/unistd: New file.
26820 2006-03-07 Simon Josefsson <jas@extundo.com>
26822 * modules/gc-random: New file.
26824 2006-03-07 Simon Josefsson <jas@extundo.com>
26826 * m4/unistd_h.m4: New file.
26828 2006-03-07 Simon Josefsson <jas@extundo.com>
26830 * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
26831 test to be side-effect free by storing the result in the cache
26832 variable gl_cv_lib_readline, and moving the assignment of
26833 LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
26834 From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
26836 2006-03-07 Simon Josefsson <jas@extundo.com>
26838 * m4/gc-random.m4: New file, mostly from gc.m4. Warn instead of
26839 error on missing devices (the functions will return an error).
26841 * m4/gc.m4: Move random stuff to gc-random.m4
26843 2006-03-07 Simon Josefsson <jas@extundo.com>
26845 * lib/unistd_.h: New file.
26847 2006-03-07 Simon Josefsson <jas@extundo.com>
26849 * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
26851 2006-03-07 Paul Eggert <eggert@cs.ucla.edu>
26853 * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
26854 Problem reported by Juan Manuel Guerrero.
26856 2006-03-07 Paul Eggert <eggert@cs.ucla.edu>
26858 * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
26860 * lib/getlogin_r.c: Likewise.
26861 * lib/getlogin_r.h: Likewise.
26862 * lib/glob.c: Likewise.
26863 * lib/pagealign_alloc.c: Likewise.
26864 * lib/unistd_.h: Remove; no longer needed.
26866 2006-03-07 Paul Eggert <eggert@cs.ucla.edu>
26868 * MODULES.html.sh (Support for systems lacking POSIX:2001):
26870 * modules/c-stack (Depends-on): Add unistd.
26871 * modules/getlogin_r: Likewise.
26872 * modules/glob: Likewise.
26873 * modules/pagealign_alloc: Likewise.
26874 * modules/unistd (Files): Remove lib/unistd_.h.
26875 (EXTRA_DIST): Remove.
26876 (unistd.h): Create using 'echo' rather than 'cp', so that we don't
26878 (MOSTLYCLEANFILES): Remove unistd.h-t.
26880 2006-03-03 Simon Josefsson <jas@extundo.com>
26882 * build-aux/maint.mk: Add several syntax checks from CoreUtils.
26884 2006-03-03 Simon Josefsson <jas@extundo.com>
26886 * build-aux/maint.mk: Add refresh-po rule, based on ideas from
26889 2006-03-03 Simon Josefsson <jas@extundo.com>
26891 * build-aux/maint.mk: Add indent target.
26893 2006-03-03 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny change)
26895 * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
26896 our replacement poll.h in any case, to avoid a differing
26897 declaration from a system header. Seen on AIX.
26899 2006-03-01 Simon Josefsson <jas@extundo.com>
26901 * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
26904 2006-03-01 Paul Eggert <eggert@cs.ucla.edu>
26906 * modules/gettime (Depends-on): Add extensions module.
26907 * modules/nanosleep (Depends-on): Likewise.
26908 * modules/settime (Depends-on): Likewise.
26910 2006-03-01 Paul Eggert <eggert@cs.ucla.edu>
26912 * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
26913 not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
26915 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
26916 * m4/timespec.m4 (gl_TIMESPEC): Likewise.
26918 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
26919 not "==". Reported by Ralf Wildenhues.
26921 2006-03-01 Karl Berry <karl@gnu.org>
26923 * doc/Copyright/request-*: new files, synced from gnuorg.
26925 2006-03-01 Karl Berry <karl@gnu.org>
26927 * config/srclist.txt (Copyright/*): new entries.
26929 2006-02-28 Simon Josefsson <jas@extundo.com>
26931 * lib/getopt.c: Protect #include of unistd.h, for MSVS.
26933 2006-02-27 Simon Josefsson <jas@extundo.com>
26935 * lib/base64.h: Indent #define's. From Jim Meyering
26936 <jim@meyering.net>.
26938 2006-02-27 Jim Meyering <jim@meyering.net>
26940 Revert the change of 2006-02-24, so these files can continue
26941 to be sync'd from gettext.
26942 * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
26945 2006-02-26 Paul Eggert <eggert@cs.ucla.edu>
26947 * modules/intprops: New file.
26948 * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
26950 * modules/getloadavg (Files): Remove lib/intprops.h.
26951 (Depends-on): Add intprops.
26952 * modules/human: Likewise.
26953 * modules/inttostr: Likewise.
26954 * modules/openat: Likewise.
26955 * modules/sig2str: Likewise.
26956 * modules/userspec: Likewise.
26957 * modules/utimecmp: Likewise.
26958 * modules/xnanosleep: Likewise.
26959 * modules/xstrtol: Likewise.
26961 2006-02-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny changes)
26963 * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
26964 * modules/lock-tests (TESTS): Use $(EXEEXT).
26965 * modules/tls-tests: Likewise.
26966 * modules/argp-tests: Likewise.
26967 (check_PROGRAMS): New var, replacing...
26968 (noinst_PROGRAMS, test_argp_SOURCES): Remove.
26970 2006-02-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
26972 * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
26975 2006-02-24 Paul Eggert <eggert@cs.ucla.edu>
26977 * lib/glob.c: Say "invalid" rather than "illegal" in comments.
26979 2006-02-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
26981 Sync from coreutils.
26982 * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
26985 2006-02-22 Jim Meyering <jim@meyering.net>
26987 Sync from coreutils.
26988 * m4/chdir-safer.m4: New file.
26990 2006-02-20 Paul Eggert <eggert@cs.ucla.edu>
26992 * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
26993 AT_FDCWD exceeds INT_MAX.
26994 * lib/openat.h (AT_FDCWD): Likewise.
26996 2006-02-17 Eric Blake <address@hidden>
26998 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
27000 2006-02-16 Simon Josefsson <jas@extundo.com>
27002 * modules/getaddrinfo (Depends-on): Add sys_socket.
27004 2006-02-15 Simon Josefsson <jas@extundo.com>
27006 * build-aux/maint.mk: Add dsyntax-check rule.
27008 2006-02-15 Eric Blake <ebb9@byu.net>
27010 * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
27011 winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
27012 'present but cannot compile' warnings on cygwin.
27013 * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET. Don't
27014 use ws2tcpip.h if sys/socket.h works.
27015 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
27016 (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
27018 2006-02-14 Simon Josefsson <jas@extundo.com>
27020 * modules/maintainer-makefile (Files): Rename.
27022 * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
27023 and (the local) Makefile.cfg to maint-cfg.mk.
27025 * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
27028 * modules/maintainer-makefile: New module.
27030 * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
27031 severaly stripped to make it possible to build it up from scratch
27032 with reliable tests.
27034 * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
27035 fixes to permit overriding the default actions when configure and
27036 makefile are not available.
27038 2006-02-14 Paul Eggert <eggert@cs.ucla.edu>
27040 Sync from coreutils.
27041 * modules/lstat (Depends-on): Don't depend on xalloc.
27042 (License): Change from GPL to LGPL, since this is now simply a
27043 replacement for a libc function.
27045 2006-02-14 Jim Meyering <jim@meyering.net>
27047 Sync from coreutils.
27049 Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
27050 failure on deficient systems, and simplify gnulib lgpl dependencies.
27051 * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
27052 xmalloc/lstat combination. Based on a patch from Bruno Haible.
27054 * lib/xalloc-die.c: Remove unused definition of N_.
27056 2006-02-14 Jim Meyering <jim@meyering.net>
27058 Sync from coreutils.
27059 * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
27060 AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
27061 $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
27062 double-quote uses of that variable, to accommodate the rare case in
27063 which getmntent is available in none of the libraries checked. This
27064 happens at least on FreeBSD 5.0.
27066 2006-02-13 Simon Josefsson <jas@extundo.com>
27068 * gnulib-tool (Usage): Fix --import, from
27069 karl@freefriends.org (Karl Berry).
27071 2006-02-13 Sergey Poznyakoff <gray@gnu.org.ua>
27073 * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
27075 2006-02-07 Sergey Poznyakoff <gray@gnu.org.ua>
27077 * lib/argp-namefrob.h: Restore changes accidentally lost during the
27078 "autoupdate" on 2005-12-12.
27080 2006-02-07 Paul Eggert <eggert@cs.ucla.edu>
27082 * modules/closeout (Depends-on): Remove atexit.
27084 2006-02-07 Paul Eggert <eggert@cs.ucla.edu>
27086 * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
27087 ints to 0 or 1, as this isn't true for the stdbool.h substitute.
27089 2006-02-05 Paul Eggert <eggert@cs.ucla.edu>
27091 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
27092 __EXTENSIONS__ if this causes compilation to fail. Problem
27093 reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
27094 c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
27096 2006-01-27 Paul Eggert <eggert@cs.ucla.edu>
27098 * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
27099 Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
27100 <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
27103 2006-01-26 Simon Josefsson <jas@extundo.com>
27105 * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
27106 prototype is visible on mingw32.
27108 * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
27111 * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
27114 2006-01-26 Paul Eggert <eggert@cs.ucla.edu>
27116 * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too. Don't
27117 attempt to open for write; this always fails, at least on POSIX
27118 hosts. This reinstates the 2006-01-09 change, which was
27119 inadvertently removed.
27121 2006-01-26 Bruno Haible <bruno@clisp.org>
27123 * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
27124 Reported by Paul Eggert.
27126 2006-01-26 Bruno Haible <bruno@clisp.org>
27127 Paul Eggert <eggert@cs.ucla.edu>
27129 * lib/stdbool_.h (_Bool)
27130 [(! (defined __cplusplus || defined __BEOS__)
27131 && !defined __GNUC__
27132 && !(defined __HP_cc || defined __xlc__
27133 || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
27134 || defined __sgi))]:
27135 #define to signed char in these cases too; this simplifies
27136 the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
27137 etc., separately) and makes it more conservative.
27139 2006-01-25 Simon Josefsson <jas@extundo.com>
27141 * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
27142 -lws2_32. Protect sys/socket.h and netdb.h #include's. Include
27143 ws2tcpip.h with WINVER=0x0501. All for mingw32.
27145 2006-01-25 Sergey Poznyakoff <gray@gnu.org.ua>
27147 * lib/argp-namefrob.h: Bugfix. Remove stray #
27149 2006-01-25 Paul Eggert <eggert@cs.ucla.edu>
27151 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
27152 so that we test the test.
27153 Check for yet another HP-UX cc bug involving *bool |= bool.
27155 2006-01-25 Karl Berry <karl@gnu.org>
27157 * config/srclist.txt (vasnprintf.c): sync lost.
27159 2006-01-25 Jim Meyering <jim@meyering.net>
27161 Sync from the stable (b5) branch of coreutils:
27163 * lib/fts.c (fts_children): Don't let close() clobber errno from
27166 * lib/fts.c (fts_stat): When following a symlink-to-directory,
27167 don't necessarily interpret stat-fails+lstat-succeeds as indicating
27168 a dangling symlink. That can also happen at least for ELOOP.
27169 The fix: return FTS_SLNONE only when the stat errno is ENOENT.
27170 FYI, this bug predates the inclusion of fts.c in coreutils.
27172 * lib/fts.c (fts_open): Put new maxarglen declaration and uses
27173 in their own block, so pre-c99 compilers don't object.
27175 Avoid the double-free (first in fts_read, second in fts_close) that
27176 would occur when an `active' directory is made inaccessible (e.g.,
27177 via chmod a-x) during a traversal.
27178 * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
27179 before returning. Reproduce this failure by
27180 mkdir -p a/b; cd a; chmod a-x . b
27181 Reported by Stavros Passas.
27183 2006-01-25 Jim Meyering <jim@meyering.net>
27185 * lib/fileblocks.c: Remove more useless parentheses.
27186 * lib/readutmp.h: Likewise.
27188 2006-01-25 Bruno Haible <bruno@clisp.org>
27190 * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
27192 Reported by Paul Eggert.
27194 2006-01-25 Bruno Haible <bruno@clisp.org>
27196 * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
27197 rid of a trap command. For Solaris sh.
27198 Reported by Mark D. Baushke <mdb@gnu.org>.
27200 2006-01-24 Simon Josefsson <jas@extundo.com>
27202 * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
27205 2006-01-24 Karl Berry <karl@gnu.org>
27207 * config/srclist.txt (argp-namefrob.h): sync lost.
27209 2006-01-24 Jim Meyering <jim@meyering.net>
27211 * modules/openat (Files): Add lib/intprops.h.
27212 From Mark D. Baushke.
27214 2006-01-24 Jim Meyering <jim@meyering.net>
27216 * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
27217 Reported by Mark D. Baushke.
27219 2006-01-24 Jim Meyering <jim@meyering.net>
27221 * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
27223 2006-01-24 Bruno Haible <bruno@clisp.org>
27225 * modules/strnlen (Maintainer): Change from glibc to all.
27227 2006-01-24 Bruno Haible <bruno@clisp.org>
27229 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
27230 Patch by Paul Eggert.
27232 2006-01-24 Bruno Haible <bruno@clisp.org>
27234 * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
27236 Report and patch by Albert Chin-A-Young <china@thewrittenword.com> on
27239 * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
27240 'signed char' to avoid problems with the built-in _Bool type.
27241 Reported by Paul Eggert on 2005-11-26.
27243 2006-01-24 Bruno Haible <bruno@clisp.org>
27245 * gnulib-tool (func_import): Avoid constructing complicated sed
27246 expressions inside backquote.
27247 Report and solution by Mark D. Baushke <mdb@gnu.org>.
27249 2006-01-23 Ulrich Drepper <drepper@redhat.com>
27251 These changes imported from libc.
27252 * lib/getopt.c: Use __fxprintf instead of inline stream orientation
27253 test and two separate function calls.
27254 * lib/strndup.c (__strndup): Add libc_hidden_def.
27256 2006-01-23 Simon Josefsson <jas@extundo.com>
27258 * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
27259 Remove the test_*_SOURCES variable: automake infers it by default.
27260 * modules/tls-tests: Likewise.
27262 2006-01-23 Paul Eggert <eggert@cs.ucla.edu>
27264 Work around porting bugs reported by Dieter in
27265 <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
27266 * lib/getopt.c (_NOPROTO): Remove; no longer needed.
27267 Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
27268 Include "getopt.h" first, to check interface.
27269 (getenv): Declare only if defined HAVE_DECL_GETENV &&
27271 * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
27272 (__strndup): Revert to K&R-style function dfns, the glibc style.
27273 * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
27274 (strnlen, __strnlen): Remove #defines and #undefs; not needed.
27275 Include strnlen.h first, to get prototype properly.
27276 (strnlen): Renamed from __strnlen.
27279 2006-01-23 Paul Eggert <eggert@cs.ucla.edu>
27281 * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
27283 2006-01-23 Paul Eggert <eggert@cs.ucla.edu>
27285 * config/srclist.txt: Adjust to reflect glibc reorganization.
27286 This affects only comments.
27288 2006-01-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny change)
27290 * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
27291 Reported by Bruce Korb <bkorb@gnu.org>.
27293 2006-01-22 Paul Eggert <eggert@cs.ucla.edu>
27295 * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
27296 to pacify gcc -Wswitch-default.
27298 2006-01-22 Bruno Haible <bruno@clisp.org>
27300 * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
27301 temporary buffer for sprintf, take into account the precision also
27302 for 'd', 'i', 'u', 'o', 'x', 'X'.
27304 2006-01-21 Sergey Poznyakoff <gray@gnu.org.ua>
27306 * modules/argp-tests: New module
27307 * tests/test-argp.c: New file
27308 * tests/test-argp-2.sh: New file
27310 2006-01-21 Sergey Poznyakoff <gray@gnu.org.ua>
27312 * lib/argp-help.c (usage_long_opt): Do not print DOC options.
27313 (__argp_base_name): Removed
27314 * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
27316 (__argp_base_name): Provide macro definition or extern declaration
27317 depending on the configuration
27319 2006-01-20 Simon Josefsson <jas@extundo.com>
27321 * modules/inet_ntop (Depends-on): Depend on sys_socket.
27323 2006-01-20 Simon Josefsson <jas@extundo.com>
27325 * lib/inet_ntop.h: Unconditionally include sys/socket.h.
27327 2006-01-20 Paul Eggert <eggert@cs.ucla.edu>
27329 * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
27330 rather than -Xlinker -z -Xlinker ignore, as it's more portable.
27331 Suggested by Bruno Haible.
27333 2006-01-20 Karl Berry <karl@gnu.org>
27335 * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
27336 until changes propagate, I guess.
27338 2006-01-19 Simon Josefsson <jas@extundo.com>
27340 * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
27342 2006-01-19 Simon Josefsson <jas@extundo.com>
27344 * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
27346 2006-01-19 Simon Josefsson <jas@extundo.com>
27348 * gnulib-tool: Set check_PROGRAMS.
27350 * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
27351 modules/des-tests, modules/gc-arcfour-tests,
27352 modules/gc-arctwo-tests, modules/gc-des-tests,
27353 modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
27354 modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
27355 modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
27356 modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
27357 modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
27358 modules/md5-tests, modules/readline, modules/rijndael-tests: Use
27359 check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
27362 2006-01-18 Simon Josefsson <jas@extundo.com>
27364 * modules/socklen (Depends-on): Depend on sys_socket.
27366 2006-01-18 Simon Josefsson <jas@extundo.com>
27368 * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
27369 modules/des-tests, modules/gc-arcfour-tests,
27370 modules/gc-arctwo-tests, modules/gc-des-tests,
27371 modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
27372 modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
27373 modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
27374 modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
27375 modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
27376 modules/md5-tests, modules/readline, modules/rijndael-tests: Add
27377 $(EXEEXT) to automake TESTS variable, for mingw32.
27379 2006-01-17 Simon Josefsson <jas@extundo.com>
27381 * modules/socklen (Include): Need sys/socket.h.
27383 2006-01-17 Bruno Haible <bruno@clisp.org>
27385 * modules/ssize_t (Include): Add <sys/types.h>.
27387 2006-01-16 Paul Eggert <eggert@cs.ucla.edu>
27389 * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
27390 it's not portable and it doesn't work with cross-compiles.
27391 Problem reported by Bruno Haible. Fix missing-$ typo in
27392 'test "gl_cv_ignore_unused_libraries" ...' that prevented
27393 -zignore from being used with Sun's C compiler.
27395 2006-01-12 Simon Josefsson <jas@extundo.com>
27397 * lib/base64.c: Fix warning, reported by Bruno Haible
27398 <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
27400 2006-01-12 Bruno Haible <bruno@clisp.org>
27402 * modules/ldd: New file.
27403 * build-aux/ldd.sh.in: New file.
27404 * MODULES.html.sh (Support for building libraries and executables): Add
27407 2006-01-12 Bruno Haible <bruno@clisp.org>
27409 * m4/ldd.m4: New file.
27411 2006-01-12 Bruno Haible <bruno@clisp.org>
27413 * gnulib-tool (func_import, func_create_testdir): Don't go into an
27414 endless loop while replacing $auxdir with build-aux.
27416 2006-01-11 Simon Josefsson <jas@extundo.com>
27418 * lib/stdint_.h (SIZE_MAX): Add missing (.
27420 2006-01-11 Paul Eggert <eggert@cs.ucla.edu>
27422 Sync from coreutils.
27423 * lib/md5.c: Fix commentary typos.
27424 (alignof, UNALIGNED_P): No need for a GCC-specific version.
27425 * lib/md5.h (__attribute__): Remove; unused.
27426 * lib/sha1.c: Fix commentary to match md5 better.
27427 * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
27428 so that we don't need to worry about alignment. All uses changed.
27429 This merges the 2005-10-28 md5 change into sha1.
27431 2006-01-11 Jim Meyering <jim@meyering.net>
27433 Sync from coreutils.
27434 * lib/md5.c (OP): Fix spacing.
27436 2006-01-11 Bruno Haible <bruno@clisp.org>
27438 Ensure automatic ordering between gl_LOCK and gl_ARGP.
27439 * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
27440 (gl_LOCK): New macro, requiring gl_LOCK_BODY.
27442 2006-01-11 Bruno Haible <bruno@clisp.org>
27444 Ensure automatic ordering between gl_LOCK and gl_ARGP.
27445 * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
27446 the "early" section as well.
27448 2006-01-11 Bruno Haible <bruno@clisp.org>
27450 Avoid "ar: no archive members specified" error on MacOS X.
27451 * gnulib-tool (func_modules_add_dummy): New function.
27452 (func_import, func_create_testdir): Invoke it.
27454 2006-01-11 Bruno Haible <bruno@clisp.org>
27456 * gnulib-tool (func_import, func_create_testdir): Replace build-aux
27457 with $auxdir in AC_CONFIG_FILES statements.
27459 2006-01-11 Bruno Haible <bruno@clisp.org>
27461 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
27462 Initialize also noinst_HEADERS to empty.
27464 2006-01-11 Bruno Haible <bruno@clisp.org>
27466 * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
27468 (func_create_megatestdir): Call aclocal, autoconf, automake here, not
27471 2006-01-11 Bruno Haible <bruno@clisp.org>
27473 * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
27474 overridable by the user.
27475 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
27477 2006-01-10 Simon Josefsson <jas@extundo.com>
27479 * modules/sys_socket: New file.
27481 2006-01-10 Simon Josefsson <jas@extundo.com>
27483 * m4/sys_socket_h.m4: New file.
27485 2006-01-10 Simon Josefsson <jas@extundo.com>
27487 * lib/socket_.h: New file.
27489 2006-01-10 Paul Eggert <eggert@cs.ucla.edu>
27491 * modules/readutmp (Maintainer): Add myself.
27493 2006-01-10 Paul Eggert <eggert@cs.ucla.edu>
27495 * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
27496 the 2002-12-31 change. Problem and fix reported by Bruno Haible.
27497 People who are still concerned with buggy memcmp implementations
27498 can invoke gl_FUNC_MEMCMP themselves.
27500 2006-01-10 Paul Eggert <eggert@cs.ucla.edu>
27502 * lib/regex_internal.h (BITSET_WORD_BITS):
27503 Work around a bug in 64-bit PGC (before version 6.1-2), where the
27504 preprocessor mishandles large unsigned values as if they were signed.
27505 Problem reported by Claudio Fontana in
27506 <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
27508 2006-01-10 Jim Meyering <jim@meyering.net>
27510 Avoid the double-free (first in fts_read, second in fts_close) that
27511 would occur when an `active' directory is made inaccessible (e.g.,
27512 via chmod a-x) during a traversal.
27513 * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
27514 before returning. Reproduce this failure by
27515 mkdir -p a/b; cd a; chmod a-x . b
27516 Reported by Stavros Passas.
27518 Sync from coreutils.
27519 * lib/sha1.c: Tweak grammar in a comment.
27521 2006-01-10 Jim Meyering <jim@meyering.net>
27523 * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
27524 Patch by Joerg Sonnenberger.
27526 2006-01-10 Bruno Haible <bruno@clisp.org>
27528 * modules/readutmp: Depend on module free.
27529 * modules/strtok_r: Depend on module restrict.
27531 2006-01-10 Bruno Haible <bruno@clisp.org>
27533 * modules/gettext (configure.ac): Add an invocation of
27534 AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
27536 2006-01-10 Bruno Haible <bruno@clisp.org>
27538 * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
27539 Reported by Werner Lemberg <wl@gnu.org>.
27541 2006-01-10 Bruno Haible <bruno@clisp.org>
27543 * lib/localcharset.c: Update from GNU gettext.
27545 2006-01-10 Bruno Haible <bruno@clisp.org>
27547 * lib/argp.h (__const): Remove macro. Use const instead.
27548 * lib/argp-fmtstream.h (__const): Likewise.
27549 * lib/glob_.h (__const): Remove macro.
27550 * lib/glob-libc.h: Use const instead of __const.
27552 2006-01-10 Bruno Haible <bruno@clisp.org>
27554 * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
27556 Needed to avoid an automake error regarding the 'gettext' module.
27558 2006-01-09 Simon Josefsson <jas@extundo.com>
27560 * modules/inet_ntop (Depends-on): Add restrict.
27562 2006-01-09 Simon Josefsson <jas@extundo.com>
27564 * modules/gc-rijndael-tests (License): Put under LGPL.
27566 * modules/gc-des-tests (License): Likewise.
27568 * modules/gc-arcfour-tests (License): Likewise.
27570 * modules/gc-arctwo-tests (License): Likewise.
27572 * modules/gc-pbkdf2-sha1-tests (License): Likewise.
27574 * modules/gc-hmac-sha1-tests (Files): Likewise.
27576 * modules/gc-hmac-md5-tests (License): Likewise.
27578 * modules/gc-sha1-tests (License): Likewise.
27580 * modules/gc-md5-tests (License): Likewise.
27582 * modules/gc-md4-tests (License): Likewise.
27584 * modules/gc-md2-tests (License): Likewise.
27586 * modules/gc-tests (License): Likewise.
27588 * modules/des-tests (License): Likewise.
27590 * modules/md4-tests (License): Likewise.
27592 * modules/md2-tests (License): Likewise.
27594 2006-01-09 Paul Eggert <eggert@cs.ucla.edu>
27596 Sync from coreutils:
27598 * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
27599 * modules/lib-ignore: New file.
27600 * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
27601 chdir-safer.m4, lchmod.m4.
27602 * modules/openat: Add mkdirat.c, openat-priv.h.
27604 2006-01-09 Paul Eggert <eggert@cs.ucla.edu>
27606 Sync from coreutils.
27607 * m4/lib-ignore.m4: New file.
27608 * m4/lchmod.m4: New file.
27610 2006-01-09 Paul Eggert <eggert@cs.ucla.edu>
27612 Sync from coreutils.
27613 * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
27614 for write access: POSIX says that must fail.
27615 * lib/fts.c (diropen): Likewise.
27616 * lib/save-cwd.c (save_cwd): Likewise.
27617 * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
27618 well, for minor improvements on hosts that lack O_DIRECTORY.
27619 * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
27620 Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
27621 Fall back on chown if open failed with EACCES.
27623 * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
27624 Report an error at compile-time if only a 1-second nominal clock
27625 resolution is found.
27627 * lib/lchmod.h: New file.
27628 * lib/mkdir-p.c: Include lchmod.h, lchown.h.
27629 (make_dir_parents): Use lchown rather than chown, and
27630 lchmod rather than chmod.
27632 * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
27633 dummies too. Problem with "none" reported by Bob Proulx. Problem with
27634 "proc" reported by n0dalus.
27636 * lib/mountlist.c: Include <limits.h>.
27637 (dev_from_mount_options)
27638 [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
27639 New function. It no longer assumes "dev=" has the System V meaning
27640 on Linux (since it doesn't). It also parses "dev=" more carefully.
27641 (read_file_system_list)
27642 [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
27643 MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
27646 * lib/posixtm.h (PDS_PRE_2000): New macro.
27647 * lib/posixtm.c (year): Arg is now syntax_bits rather than
27648 allow_century. All usages changed. Reject dates outside the range
27649 1969-1999 if PDS_PRE_2000 is used.
27651 2006-01-09 Paul Eggert <eggert@cs.ucla.edu>
27653 Sync from coreutils.
27654 * doc/getdate.texi (General date syntax): Invalid dates are rejected.
27655 (Time of day items): Mention the possibility of leap seconds.
27656 Problem reported by Dr. David Alan Gilbert.
27658 2006-01-09 Jim Meyering <jim@meyering.net>
27660 Sync from coreutils.
27662 * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
27664 * lib/chdir-safer.h, lib/chdir-safer.c: New files.
27666 * lib/modechange.c (mode_compile): Reject an invalid mode string
27667 that starts with an octal digit. From Andreas Gruenbacher.
27669 * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
27670 and dup to open_safer and dup_safer, respectively.
27671 (openat_permissive): Fix typo in comment.
27673 * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
27674 "gettext.h"; either no longer needed or are guaranteed by openat.h.
27675 (_): Remove; no longer needed.
27676 (openat): Renamed from rpl_openat; no need for rpl_openat
27677 since openat.h renames openat for us.
27678 Replace most of the body with a call to openat_permissive,
27679 to avoid duplicate code.
27680 Port to (probably hypothetical) environments were mode_t is
27682 (openat_permissive): Require mode arg, so that we can check
27683 types better. Put it just after flags. Change cwd failure
27684 indicator from pointer-to-bool to pointer-to-errno-value.
27685 All callers changed.
27686 Invoke openat_save_fail and/or openat_restore_fail if
27687 cwd_errno is null, so that openat can call us.
27688 (openat_permissive, fdopendir, fstatat, unlinkat):
27689 Simplify errno handling to avoid some duplicate code,
27690 as it's OK to set errno on success.
27691 * lib/openat.h: Revamp code so that function macros depend on
27692 __OPENAT_PREFIX only, not also on AT_FDCWD.
27693 (openat_ro): Remove. Caller changed to use openat_permissive.
27694 (openat_permissive): Now a macro, if not a function.
27695 (openat_restore_fail, openat_save_fail): Now always functions,
27696 since mkdirat needs them even if __OPENAT_PREFIX is defined.
27698 * lib/openat-priv.h: New file, defining macros used by mkdirat.c
27700 * lib/mkdirat.c: Include openat-priv.h.
27701 Remove definitions of macros defined therein.
27702 * lib/openat.c: Likewise.
27704 * lib/mkdirat.c (mkdirat): New file and function.
27705 * lib/openat.h (mkdirat): Declare.
27707 * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
27709 * lib/openat.h (openat_permissive): Declare.
27710 (openat_ro): Define.
27712 * lib/openat.c (EXPECTED_ERRNO): New macro.
27713 (openat_permissive): New function -- used in remove.c rewrite.
27714 (all functions): Set errno just before returning, only if there
27715 was an actual failure.
27716 Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
27718 Emulate openat-family functions using Linux's procfs, if possible.
27719 Idea and some code based on Ulrich Drepper's glibc changes.
27721 * lib/openat.c: (BUILD_PROC_NAME): New macro.
27722 Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
27723 (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
27724 before falling back on save_cwd and restore_cwd.
27725 (fdopendir, fstatat, unlinkat): Likewise.
27727 * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
27728 skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
27730 * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
27731 as second argument to va_arg. Otherwise, some versions of gcc
27732 warn that `if this code is reached, the program will abort'.
27734 2006-01-09 Jim Meyering <jim@meyering.net>
27736 Sync from coreutils.
27737 * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
27738 Require openat-priv.h.
27740 2006-01-09 Bruno Haible <bruno@clisp.org>
27742 * modules/strnlen (Include): Use strnlen.h.
27744 2006-01-09 Bruno Haible <bruno@clisp.org>
27746 * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
27748 2006-01-09 Bruno Haible <bruno@clisp.org>
27750 * lib/sysexit_.h (EX_OK): New macro.
27751 Suggested by Martin Lambers <marlam@marlam.de>.
27753 2006-01-09 Bruno Haible <bruno@clisp.org>
27755 * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
27756 don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
27758 2006-01-09 Bruno Haible <bruno@clisp.org>
27760 * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
27763 2006-01-09 Bruno Haible <bruno@clisp.org>
27765 * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
27766 * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
27767 * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
27768 * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
27770 2006-01-09 Bruno Haible <bruno@clisp.org>
27772 * build-aux/javacomp.sh.in: New file, moved from lib/.
27773 * modules/javacomp-script (Files): Update.
27774 (configure.ac): Add AC_CONFIG_FILES invocation.
27775 (EXTRA_DIST): Remove variable.
27777 * build-aux/javaexec.sh.in: New file, moved from lib/.
27778 * modules/javaexec (Files): Update.
27779 (configure.ac): Add AC_CONFIG_FILES invocation.
27780 (EXTRA_DIST): Remove javaexec.sh.in.
27782 * build-aux/csharpcomp.sh.in: New file, moved from lib/.
27783 * modules/csharpcomp-script (Files): Update.
27784 (configure.ac): Add AC_CONFIG_FILES invocation.
27785 (EXTRA_DIST): Remove variable.
27787 * build-aux/csharpexec.sh.in: New file, moved from lib/.
27788 * modules/csharpexec (Files): Update.
27789 (configure.ac): Add AC_CONFIG_FILES invocation.
27790 (EXTRA_DIST): Remove csharpexec.sh.in.
27792 2006-01-09 Andreas Gruenbacher <agruen@suse.de>
27794 Sync from coreutils.
27796 Add POSIX ACL support
27797 * lib/acl.h (copy_acl, set_acl): Add declarations.
27798 * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
27799 systems other than Linux.
27800 (chmod_or_fchmod): New function: use fchmod when possible,
27801 and chmod otherwise.
27802 (file_has_acl): Add a POSIX ACL implementation, with a
27803 Linux-specific subcase.
27804 (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
27805 S_ISVTX from one file to another. Fall back to fchmod/chmod when
27806 acls are unsupported.
27807 (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
27808 S_ISVTX to a defined value. Fall back to fchmod/chmod when acls
27811 2006-01-09 Andreas Gruenbacher <agruen@suse.de>
27813 Sync from coreutils.
27814 * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
27816 2006-01-07 Bruno Haible <bruno@clisp.org>
27818 * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
27821 2006-01-04 Paul Eggert <eggert@cs.ucla.edu>
27823 * lib/strftime.c (tzname): Don't declare if it is already #defined.
27824 Problem reported for Mingw by Mark Junker.
27826 2006-01-04 Paul Eggert <eggert@cs.ucla.edu>
27828 * README: Gnulib normally doesn't generate a tarball.
27830 2006-01-03 Paul Eggert <eggert@cs.ucla.edu>
27832 * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
27833 long int, not int, for nanosecond counts, so that people who are
27834 used to POSIX struct timespec won't be surprised. Reported by Jim
27837 2005-12-28 Bruno Haible <bruno@clisp.org>
27839 * build-aux/config.rpath: Update from GNU gettext.
27841 2005-12-16 Jim Meyering <jim@meyering.net>
27843 * modules/fprintftime: New module.
27844 * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
27846 2005-12-16 Jim Meyering <jim@meyering.net>
27848 * m4/fprintftime.m4: New file.
27850 2005-12-16 Jim Meyering <jim@meyering.net>
27852 * lib/fprintftime.c, lib/fprintftime.h: New files.
27854 2005-12-15 Simon Josefsson <jas@extundo.com>
27856 * modules/socklen (configure.ac): Fix M4 macro name, to align with
27859 2005-12-10 Sergey Poznyakoff <gray@gnu.org.ua>
27861 * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
27862 HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
27864 2005-12-10 Sergey Poznyakoff <gray@gnu.org.ua>
27866 * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
27867 * lib/argp-help.c (fill_in_uparams): Check if the constructed
27868 struct uparams is valid. Fall back to the default values if it is
27871 2005-12-09 Sergey Poznyakoff <gray@gnu.org.ua>
27873 * modules/argp (Files): Add argp-pin.c
27874 (Depends-on): dirname
27875 (lib_SOURCES): Add argp-pin.c
27877 2005-12-09 Sergey Poznyakoff <gray@gnu.org.ua>
27879 * m4/argp.m4: Check if program_invocation_name and
27880 program_invocation_short_name are declared and define appropriate
27881 macros if they are not.
27883 2005-12-09 Sergey Poznyakoff <gray@gnu.org.ua>
27885 * lib/argp-help.c (__argp_base_name): New function
27886 (__argp_short_program_name): Rewrite using __argp_base_name
27887 * lib/argp-namefrob.h: Define program_invocation_name and
27888 program_invocation_short_name if requested
27889 (__argp_base_name): Add prototype
27890 * lib/argp-parse.c (argp_def): Use gettext wrappers
27891 (argp_default_parser): Use __argp_base_name
27892 * lib/argp-pin.c: New file. Defines program_invocation_name and
27893 program_invocation_short_name on systems that lack them.
27895 2005-12-07 Paul Eggert <eggert@cs.ucla.edu>
27897 * m4/stat-time.m4 (gl_STAT_TIME): Add check for
27898 TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
27899 porting problem reported by Georg Schwarz in
27900 <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
27902 2005-12-07 Paul Eggert <eggert@cs.ucla.edu>
27904 * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
27905 TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
27906 porting problem reported by Georg Schwarz in
27907 <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
27909 2005-12-05 Bruno Haible <bruno@clisp.org>
27911 * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
27912 * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
27913 Reported by Mark Junker <mjscod@gmx.de>.
27915 2005-12-02 Paul Eggert <eggert@cs.ucla.edu>
27917 * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
27918 Use implementation from Albert Chin, with some
27919 comments/corrections by Stepan Kasal and myself.
27921 2005-12-02 Bruno Haible <bruno@clisp.org>
27923 * gnulib-tool (func_import): Accept GPLed build tool modules when
27925 * modules/csharpcomp-script: New file.
27926 * modules/csharpcomp: Depend on it.
27927 * modules/javacomp-script: New file.
27928 * modules/javacomp: Depend on it.
27929 Suggested by Simon Josefsson.
27931 2005-12-01 Paul Eggert <eggert@cs.ucla.edu>
27933 * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
27934 statement, to work around an HP-UX 10.20 compiler bug reported by
27937 2005-11-29 Paul Eggert <eggert@cs.ucla.edu>
27939 * modules/savedir (Depends-on): Add openat.
27941 2005-11-29 Paul Eggert <eggert@cs.ucla.edu>
27943 * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
27944 (uintmax_t) [defined uintmax_t]: Do not declare.
27945 (SIZE_MAX) [defined SIZE_MAX]: Do not define.
27946 This works around a problem if intmax_t.m4 and/or uintmax_t.m4
27947 and/or size_max.m4 are also used. Problem reported by Mark D. Baushke.
27948 (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
27949 sake of portability to weird hosts that C allows (though we don't
27950 know of any practical examples).
27952 * lib/savedir.h (fdsavedir): New decl.
27953 * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
27954 contains most of the former guts of savedir.
27955 (savedir): Use savedirstream.
27956 Include "openat.h".
27958 2005-11-25 Paul Eggert <eggert@cs.ucla.edu>
27960 * modules/obstack (Files): Add m4/ulonglong.m4.
27961 Problem reported by Davide Angelocola.
27963 2005-11-15 Paul Eggert <eggert@cs.ucla.edu>
27965 * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
27966 coreutils no longer futzes with rounding modes.
27968 2005-11-14 Jim Meyering <jim@meyering.net>
27970 * lib/mkstemp-safer.c: Include <config.h>, required for possible
27971 replacement of mkstemp.
27973 2005-11-10 Simon Josefsson <jas@extundo.com>
27975 * lib/readline.c: Remove EOL.
27977 2005-11-10 Paul Eggert <eggert@cs.ucla.edu>
27979 * modules/gethrxtime (Depends-on): Add gettime.
27981 2005-11-10 Paul Eggert <eggert@cs.ucla.edu>
27983 * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
27984 or gettimeofday; no longer needed.
27986 2005-11-10 Paul Eggert <eggert@cs.ucla.edu>
27988 * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
27990 (gethrxtime) [! (HAVE_NANOUPTIME
27991 || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
27992 || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
27993 our own approximation.
27995 2005-11-08 Eric Blake <ebb9@byu.net>
27997 * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
27999 2005-11-08 Eric Blake <ebb9@byu.net>
28001 * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
28003 2005-11-04 Bruno Haible <bruno@clisp.org>
28005 * gnulib-tool: Implement --update mode.
28007 2005-10-30 Paul Eggert <eggert@cs.ucla.edu>
28009 Fix porting problem reported by Theodoros V. Kalamatianos.
28010 * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
28011 Don't assume that futimes failing means we must fail.
28013 2005-10-30 Paul Eggert <eggert@cs.ucla.edu>
28015 * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
28016 variables to suggest the intended function of the PATH_MAX check.
28018 2005-10-30 Kean Johnston <jkj@sco.com>
28020 Trivial changes to support SCO systems.
28021 * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
28023 * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
28024 where __ptr is null when no I/O is pending.
28026 2005-10-29 Paul Eggert <eggert@cs.ucla.edu>
28028 * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
28029 leave errno alone. Problem reported by Dmitry V. Levin.
28031 2005-10-28 Simon Josefsson <jas@extundo.com>
28033 * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
28036 * tests/test-gc-md2.c, tests/test-md2.c: New files.
28038 * modules/md2, modules/md2-tests: New files.
28040 2005-10-28 Simon Josefsson <jas@extundo.com>
28042 * m4/inet_ntop.m4: More tests.
28044 * m4/gc-md2.m4, md2.m4: New file.
28046 2005-10-28 Simon Josefsson <jas@extundo.com>
28048 * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
28049 "restrict" keywords, as per POSIX. Protect the function
28050 declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
28051 Don't use K&R prototypes. Check the sprintf return values.
28052 Re-define EAFNOSUPPORT if not present. Indent.
28054 * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
28055 suggested by Bruno Haible <bruno@clisp.org>.
28057 * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
28059 * lib/gc.h: Add MD2 and RMD160 length defines. Add prototypes.
28061 * lib/gc-libgcrypt.c: Add MD2 (which is not available through
28064 * lib/gc-gnulib.c: Add MD2. Implement gc_hash_* API.
28066 * lib/md2.h, lib/md2.c: New files.
28068 2005-10-28 Paul Eggert <eggert@cs.ucla.edu>
28070 * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
28071 errno alone. Problem reported by Frederic Jolliton.
28073 2005-10-27 Paul Eggert <eggert@cs.ucla.edu>
28075 * modules/verify (License): Change from GPL to LGPL. This is a
28076 tiny module and there are apparently near-equivalents that are
28077 under the BSD license.
28079 2005-10-24 Simon Josefsson <jas@extundo.com>
28081 * modules/sha1: Relicense to LGPL.
28083 2005-10-24 Simon Josefsson <jas@extundo.com>
28085 * lib/md4.h: Shrink buffer size, now that we changed the type.
28087 2005-10-23 Simon Josefsson <jas@extundo.com>
28089 * gnulib-tool (func_import): Fix --tests-base.
28091 2005-10-22 Simon Josefsson <jas@extundo.com>
28093 * modules/arcfour (Depends-on): Need stdint.
28095 2005-10-22 Simon Josefsson <jas@extundo.com>
28097 * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
28098 suggested by Bruno Haible <bruno@clisp.org>. Fix error messages.
28100 2005-10-22 Simon Josefsson <jas@extundo.com>
28102 * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
28103 suggested by Bruno Haible <bruno@clisp.org>.
28105 2005-10-22 Simon Josefsson <jas@extundo.com>
28107 * lib/crc.h: Include stddef.h, for size_t.
28109 2005-10-22 Simon Josefsson <jas@extundo.com>
28111 * lib/arcfour.h, arcfour.c: Use fixed size indices in the
28112 arcfour_context struct (simplify test vector testing in GNU
28115 2005-10-21 Simon Josefsson <jas@extundo.com>
28117 * modules/des, modules/des-tests: New files.
28119 * modules/gc-des, modules/gc-des-tests: New files.
28121 * tests/test-des.c, tests/test-gc-des.c: New file.
28123 2005-10-21 Simon Josefsson <jas@extundo.com>
28125 * modules/arctwo, modules/arctwo-tests: New files.
28127 * tests/test-arctwo.c: New file.
28129 * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
28131 * tests/test-gc-arctwo.c: New file.
28133 2005-10-21 Simon Josefsson <jas@extundo.com>
28135 * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
28136 Bruno Haible <bruno@clisp.org>.
28138 * m4/gc-des.m4: New file.
28140 2005-10-21 Simon Josefsson <jas@extundo.com>
28142 * m4/arctwo.m4: New file.
28144 * m4/gc-arctwo.m4: New file.
28146 2005-10-21 Simon Josefsson <jas@extundo.com>
28148 * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
28151 2005-10-21 Simon Josefsson <jas@extundo.com>
28153 * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
28156 * lib/hmac-sha1.c (hmac_sha1): Likewise.
28158 * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
28159 Bruno Haible <bruno@clisp.org>.
28161 * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
28164 2005-10-21 Simon Josefsson <jas@extundo.com>
28166 * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
28168 2005-10-21 Simon Josefsson <jas@extundo.com>
28170 * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
28172 2005-10-21 Simon Josefsson <jas@extundo.com>
28174 * lib/des.h, lib/des.c: New files.
28176 * lib/gc-gnulib.c: Support DES.c
28178 2005-10-21 Simon Josefsson <jas@extundo.com>
28180 * lib/arctwo.h, lib/arctwo.c: New files.
28182 * lib/gc-gnulib.c: Support ARCTWO.
28184 2005-10-21 Simon Josefsson <jas@extundo.com>
28186 * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
28187 suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
28189 2005-10-21 Simon Josefsson <jas@extundo.com>
28191 * gnulib-tool (func_import, func_create_testdir): Define automake
28192 conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
28193 Makefile.am snippet),
28194 suggested by Bruno Haible <bruno@clisp.org>.
28196 * modules/gc (Makefile.am): Use it.
28198 2005-10-21 Bruno Haible <bruno@clisp.org>
28200 * gnulib-tool (func_import, func_create_testdir): Add quoting to last
28203 2005-10-19 Simon Josefsson <jas@extundo.com>
28205 * tests/test-gc-rijndael.c: New file.
28207 * modules/gc-rijndael, modules/gc-rijndael-test: New files.
28209 2005-10-19 Simon Josefsson <jas@extundo.com>
28211 * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
28214 2005-10-19 Simon Josefsson <jas@extundo.com>
28216 * tests/test-gc-arcfour.c: New file.
28218 * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
28220 2005-10-19 Simon Josefsson <jas@extundo.com>
28222 * modules/gc-md4, modules/gc-md4-tests: New file.
28224 * tests/test-gc-md4.c: New file.
28226 2005-10-19 Simon Josefsson <jas@extundo.com>
28228 * m4/gc-md4.m4: New file.
28230 2005-10-19 Simon Josefsson <jas@extundo.com>
28232 * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
28233 gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
28236 2005-10-19 Simon Josefsson <jas@extundo.com>
28238 * m4/gc-arcfour.m4: New file.
28240 * m4/gc-rijndael.m4: New file.
28242 2005-10-19 Simon Josefsson <jas@extundo.com>
28244 * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
28246 2005-10-19 Simon Josefsson <jas@extundo.com>
28248 * lib/gc-gnulib.c: Support ARCFOUR.
28250 2005-10-19 Simon Josefsson <jas@extundo.com>
28252 * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
28255 * lib/gc.h: Add ECB enum type.
28257 * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
28259 2005-10-18 Simon Josefsson <jas@extundo.com>
28261 * tests/test-md5.c: New file.
28263 * modules/md5-tests: New file.
28265 2005-10-18 Simon Josefsson <jas@extundo.com>
28267 * tests/test-md4.c: New file.
28269 * modules/md4, modules/md4-tests: New files.
28271 2005-10-18 Simon Josefsson <jas@extundo.com>
28273 * m4/md4.m4: New file.
28275 2005-10-18 Simon Josefsson <jas@extundo.com>
28277 * lib/md4.h, lib/md4.c: New files, based on md5.?.
28279 2005-10-17 Stepan Kasal <kasal@ucw.cz>
28281 * gnulib-tool (func_create_testdir): Omit the second check whether
28282 BUILT_SOURCES in nonempty.
28284 2005-10-17 Simon Josefsson <jas@extundo.com>
28286 * tests/test-rijndael.c: New file.
28288 2005-10-17 Simon Josefsson <jas@extundo.com>
28290 * modules/sha1: Depend on stdint instead of md5.
28292 * modules/md5: Depend on stdint, remove uint32_t.
28294 2005-10-17 Simon Josefsson <jas@extundo.com>
28296 * modules/gc-sha1-tests: New file.
28298 * tests/test-gc-sha1.c: New file.
28300 2005-10-17 Simon Josefsson <jas@extundo.com>
28302 * m4/md5.m4: Remove call to uint32_t.m4.
28304 2005-10-17 Simon Josefsson <jas@extundo.com>
28306 * lib/sha1.c: Use uint32_t instead of md5_uint32.t
28308 * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
28311 * lib/md5.c: Use uin32_t. Fix non-gcc UNALIGNED_P macro.
28313 * lib/md5.h: Use stdint.h and uint32_t. Doc fix.
28315 2005-10-17 Simon Josefsson <jas@extundo.com>
28317 * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
28319 2005-10-17 Simon Josefsson <jas@extundo.com>
28321 * lib/gc.h, gc-libgcrypt.c: Add ciphers.
28323 2005-10-17 Simon Josefsson <jas@extundo.com>
28325 * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
28327 * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
28329 2005-10-17 Bruno Haible <bruno@clisp.org>
28331 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
28332 that it can also be used in a test.
28334 2005-10-16 Bruno Haible <bruno@clisp.org>
28336 * gnulib-tool (func_emit_tests_Makefile_am): Also define
28337 TESTS_ENVIRONMENT, so that individual tests can augment it.
28339 * gnulib-tool (func_create_testdir): Use an intermediate target for
28340 building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
28341 macros, like $(ALLOCA_H), which cannot be passed through the command
28344 2005-10-15 Simon Josefsson <jas@extundo.com>
28346 * modules/rijndael-tests: New file.
28348 * modules/rijndael: New file.
28350 2005-10-15 Simon Josefsson <jas@extundo.com>
28352 * m4/rijndael.m4: New file.
28354 2005-10-15 Simon Josefsson <jas@extundo.com>
28356 * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
28358 * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
28360 2005-10-14 Simon Josefsson <jas@extundo.com>
28362 * tests/test-arcfour.c: New file.
28364 * modules/arcfour, modules/arcfour-tests: New files.
28366 2005-10-14 Simon Josefsson <jas@extundo.com>
28368 * m4/arcfour.m4: New file.
28370 2005-10-14 Simon Josefsson <jas@extundo.com>
28372 * lib/arcfour.h, lib/arcfour.c: New files.
28374 2005-10-14 Roland McGrath <roland@redhat.com>
28376 Import from libc. [BZ #1331]
28377 * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
28379 Reported by Matej Vela <vela@debian.org>.
28381 2005-10-14 Paul Eggert <eggert@cs.ucla.edu>
28383 * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
28384 include <wchar.h>; no longer needed.
28386 2005-10-14 Paul Eggert <eggert@cs.ucla.edu>
28388 * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
28390 2005-10-14 Jakub Jelinek <jakub@redhat.com>
28391 and Ulrich Drepper <drepper@redhat.com>
28394 * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
28395 instead of inline stream orientation test and two separate
28396 function calls. Pay no attention to USE_IN_LIBIO.
28398 2005-10-13 Simon Josefsson <jas@extundo.com>
28400 * modules/gc-hmac-md5-tests: New file.
28402 * tests/test-gc-hmac-sha1.c: New file.
28404 * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
28406 * modules/gc-hmac-md5-tests: New file.
28408 * tests/test-gc-md5.c: New file.
28410 * modules/gc-md5-tests: New file.
28412 2005-10-13 Simon Josefsson <jas@extundo.com>
28414 * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
28415 Move memory allocation outside of loop.
28417 2005-10-13 Paul Eggert <eggert@cs.ucla.edu>
28419 * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
28420 intermediate directory is in a read-only file system. Problem
28421 reported by Eric Blake.
28423 2005-10-13 Oskar Liljeblad <oskar@osk.mine.nu>
28425 * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
28427 2005-10-12 Simon Josefsson <jas@extundo.com>
28429 * tests/test-hmac-sha1.c: New file.
28431 * modules/hmac-sha1-tests: New file.
28433 * modules/hmac-sha1: New file.
28435 2005-10-12 Simon Josefsson <jas@extundo.com>
28437 * modules/gc-sha1: New file.
28439 2005-10-12 Simon Josefsson <jas@extundo.com>
28441 * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
28443 * tests/test-gc-pbkdf2-sha1.c: New file.
28445 2005-10-12 Simon Josefsson <jas@extundo.com>
28447 * modules/gc-md5, modules/gc-hmac-md5: New files.
28449 * modules/gc (Files): Remove md5, memxor and hmac files.
28451 2005-10-12 Simon Josefsson <jas@extundo.com>
28453 * m4/gc-pbkdf2-sha1.m4: New file.
28455 * m4/gc-hmac-sha1.m4: New file.
28457 * m4/gc-sha1: New file.
28459 * m4/hmac-sha1.m4: New file.
28461 2005-10-12 Simon Josefsson <jas@extundo.com>
28463 * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
28465 * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
28467 2005-10-12 Simon Josefsson <jas@extundo.com>
28469 * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
28470 suggested by Bruno Haible <bruno@clisp.org>.
28472 2005-10-12 Simon Josefsson <jas@extundo.com>
28474 * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
28476 2005-10-12 Simon Josefsson <jas@extundo.com>
28478 * lib/gc-pbkdf2-sha1.c: New file.
28480 * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
28482 2005-10-12 Simon Josefsson <jas@extundo.com>
28484 * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
28486 * lib/gc-gnulib.c (gc_hmac_sha1): New function.
28488 2005-10-12 Simon Josefsson <jas@extundo.com>
28490 * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
28491 GC_USE_HMAC_MD5, respectively.
28493 * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
28494 (gc_md5): Fix typo.
28496 * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
28498 * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
28500 * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
28502 2005-10-12 Bruno Haible <bruno@clisp.org>
28504 * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
28505 Reported by Stepan Kasal <kasal@ucw.cz>.
28507 2005-10-11 Simon Josefsson <jas@extundo.com>
28509 * tests/test-crc.c: New file.
28511 * modules/crc, modules/crc-tests: New files.
28513 2005-10-11 Simon Josefsson <jas@extundo.com>
28515 * m4/crc.m4: New file.
28517 2005-10-11 Simon Josefsson <jas@extundo.com>
28519 * lib/gc.h: Add gc_hash and gc_hash_buffer.
28521 * lib/gc-gnulib.c (gc_hash_buffer): Add. Reorder #include's.
28523 * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
28525 2005-10-11 Simon Josefsson <jas@extundo.com>
28527 * lib/crc.h, lib/crc.c: New files.
28529 * lib/gc.h (gc_hash_buffer): Add doc.
28531 2005-10-11 Bruno Haible <bruno@clisp.org>
28533 * modules/c-strcasestr: New file.
28534 * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
28536 2005-10-11 Bruno Haible <bruno@clisp.org>
28538 * modules/c-strcase: New file.
28539 * MODULES.html.sh (String handling <string.h>): Add c-strcase.
28541 2005-10-11 Bruno Haible <bruno@clisp.org>
28543 * lib/strcasecmp.c: Include limits.h.
28544 (strcasecmp): Avoid integer overflow on exotic platforms.
28545 * lib/strncasecmp.c: Include limits.h.
28546 (strncasecmp): Avoid integer overflow on exotic platforms.
28547 Reported by Paul Eggert.
28549 2005-10-11 Bruno Haible <bruno@clisp.org>
28551 * lib/c-strcasestr.h: New file, from GNU gettext.
28552 * lib/c-strcasestr.c: New file, from GNU gettext.
28554 2005-10-11 Bruno Haible <bruno@clisp.org>
28556 * lib/c-strcase.h: New file, from GNU gettext.
28557 * lib/c-strcasecmp.c: New file, from GNU gettext.
28558 * lib/c-strncasecmp.c: New file, from GNU gettext.
28560 2005-10-10 Paul Eggert <eggert@cs.ucla.edu>
28562 * modules/mempcpy (License): GPL -> LGPL.
28563 * modules/strchrnul (License): Likewise.
28564 * modules/sysexits (License): Likewise.
28566 2005-10-08 Simon Josefsson <jas@extundo.com>
28568 * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
28570 2005-10-07 Simon Josefsson <jas@extundo.com>
28572 * m4/memxor.m4: Remove gl_C_RESTRICT call.
28574 2005-10-06 Simon Josefsson <jas@extundo.com>
28576 * tests/test-hmac-md5.c: New file.
28578 * modules/hmac-md5-tests: New file.
28580 * modules/hmac-md5: New file.
28582 2005-10-06 Simon Josefsson <jas@extundo.com>
28584 * m4/hmac-md5.m4: New file.
28586 * m4/memxor.m4: Require gl_C_RESTRICT.
28588 2005-10-06 Simon Josefsson <jas@extundo.com>
28590 * lib/memxor.c (memxor): Avoid casts and warnings.
28592 2005-10-06 Simon Josefsson <jas@extundo.com>
28594 * lib/hmac-md5.c: New file.
28596 * lib/hmac.h: New file.
28598 2005-10-06 Paul Eggert <eggert@cs.ucla.edu>
28600 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
28601 promotes to int, not unsigned int, to catch the AIX 5.3
28604 2005-10-05 Simon Josefsson <jas@extundo.com>
28606 * modules/memxor: New file.
28608 * modules/iconv (Files): Move config.rpath to havelib, it is used
28611 * modules/havelib (Files): Add config.rpath.
28613 2005-10-05 Simon Josefsson <jas@extundo.com>
28615 * m4/memxor.m4: New file.
28617 2005-10-05 Simon Josefsson <jas@extundo.com>
28619 * lib/memxor.c (memxor): Fix compiler error.
28621 * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
28622 <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
28624 * lib/memxor.h, lib/memxor.c: New files.
28626 * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
28627 we assume all systems have it, suggested by Jim Meyering
28628 <jim@meyering.net>. Remove HAVE_SYS_SOCKET_H test too, to see if
28629 any systems lack sys/socket.h; mingw32 is known to lack it, but we
28630 don't support it yet anyway. Also remove HAVE_NETDB_H test, for
28633 2005-10-05 Simon Josefsson <jas@extundo.com>
28635 * config/srclist.txt: Add glibc bug 1423 for md5.h.
28637 2005-10-05 Paul Eggert <eggert@cs.ucla.edu>
28639 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
28640 sys/socket.h, netdb.h, sys/types.h; the checks areno longer
28641 needed, since the source code now assumes these .h files.
28643 2005-10-05 Derek Price <derek@ximbiot.com>
28645 * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
28647 2005-10-05 Bruno Haible <bruno@clisp.org>
28649 * modules/stdint (License): Change to LGPL.
28651 2005-10-04 Simon Josefsson <jas@extundo.com>
28653 * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
28654 D. Baushke" <mdb@gnu.org>.
28656 2005-10-04 Bruno Haible <bruno@clisp.org>
28658 * lib/verify.h (verify_true): Provide alternative definition for C++.
28660 2005-10-03 Paul Eggert <eggert@cs.ucla.edu>
28662 * lib/getdelim.c: Include getdelim.h first. Include <limits.h>.
28663 (SSIZE_MAX): New macro, if not already defined.
28664 (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
28667 2005-10-02 Paul Eggert <eggert@cs.ucla.edu>
28669 Sync from coreutils.
28670 * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
28671 * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
28672 defines ULONG_MAX_LT_ULLONG_MAX. Thomas M.Ott reports that
28673 ULLONG_MAX doesn't work with 2.7.2.1.
28675 2005-10-02 Paul Eggert <eggert@cs.ucla.edu>
28677 * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
28680 * modules/exclude (Depends-on): Depend on verify.
28681 * modules/strtoimax (Depends-on): Likewise.
28682 * modules/utimecmp (Depends-on): Likewise.
28684 2005-10-02 Paul Eggert <eggert@cs.ucla.edu>
28686 * lib/exclude.c: Include verify.h.
28687 (verify): Remove. All callers changed to use verify.h's version.
28688 * lib/strtoimax.c: Likewise.
28689 * lib/utimecmp.c: Likewis.e
28691 Sync from coreutils.
28692 * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
28693 getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
28694 * lib/.cvsignore: Add fts.h, search.h, t-fpending.
28695 * lib/settime.c (settime): Fix { typo in previous patch. Also, don't
28696 bother returning ENOSYS if settimeofday or stime fails; just let
28697 them return whatever errno they want to return.
28698 * lib/utimens.c: Include unistd.h, for dup2.
28699 (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
28700 (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
28702 2005-10-02 Jim Meyering <jim@meyering.net>
28704 Sync from coreutils.
28705 * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
28706 from glibc-2.2.5 that fails for read-only files.
28708 2005-10-02 Jim Meyering <jim@meyering.net>
28710 Sync from coreutils.
28711 * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
28712 * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
28713 `#if HAVE_CONFIG_H'.
28714 * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
28715 Remove AT_FDCWD test.
28716 Do not consume the fd unless successful.
28717 * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
28718 * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
28719 block, so that we don't even try to compile it if settimeofday is
28720 available. This works around a compilation failure on OSF1 V5.1,
28721 due to stime requiring a `long int*' while tv_sec is `int'.
28723 2005-10-02 Alfred M. Szmidt <ams@gnu.org>
28725 Sync from coreutils.
28726 * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
28727 against `yes', rather than just testing for nonempty.
28729 2005-10-01 Simon Josefsson <jas@extundo.com>
28731 * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
28734 * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
28735 as an (POSIX) extension. Check for sys/types.h, sys/socket.h, and
28736 netdb.h too, needed by getaddrinfo.h. Check if getaddrinfo,
28737 freeaddrinfo and gai_strerror are declared by the POSIX headers.
28738 Check if struct addrinfo is declared.
28740 2005-10-01 Simon Josefsson <jas@extundo.com>
28742 * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
28743 Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO. Protect
28744 AI_* and EAI_* definitions. Protect function declarations.
28746 2005-10-01 Jim Meyering <jim@meyering.net>
28748 Sync from coreutils.
28750 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
28751 libraries [inet nsl socket xnet]. Nelson Beebe reported that with
28752 native cc on Solaris 7, getaddrinfo.c requires -lsocket.
28753 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
28754 in the inet and nsl libraries. Required on Solaris 5.7.
28756 2005-10-01 Jim Meyering <jim@meyering.net>
28758 Sync from coreutils.
28759 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
28760 in the inet and nsl libraries. Required on Solaris 5.7.
28762 2005-10-01 Eric Blake <ebb9@byu.net> (tiny change)
28764 * lib/getdelim.c (getdelim): Remove unused variables.
28766 2005-09-29 Paul Eggert <eggert@cs.ucla.edu>
28768 * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
28769 so that the code works even with ancient cpp. Portability problem
28770 with GCC 2.7.2.1 reported by Thomas M.Ott.
28772 2005-09-27 Paul Eggert <eggert@cs.ucla.edu>
28774 * modules/regex (Depends-on): Add strcase.
28776 * modules/gethostname (Licence): Change from GPL to LGPL, since
28777 gethostname.c is a trivial implementation of a standard library
28779 * modules/poll (License): Change from GPL to LGPL, since it's
28780 derived from LGPL code.
28782 2005-09-27 Jim Meyering <jim@meyering.net>
28784 * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
28787 * lib/intprops.h (signed_type_or_expr__): Define.
28788 (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
28789 for unsigned types.
28791 2005-09-26 Paul Eggert <eggert@cs.ucla.edu>
28793 * lib/verify.h (verify_expr): Remove, replacing with:
28794 (verify_true): New macro that returns true instead of void.
28795 (verify_type__): Remove.
28796 (verify): Use verify_true rather than verify_type__.
28798 2005-09-26 Bruno Haible <bruno@clisp.org>
28800 * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
28802 (lib_SOURCES): Remove mbchar.c.
28803 * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
28804 (Files): Add m4/mbrtowc.m4.
28805 * modules/mbiter: Likewise.
28806 * modules/mbuiter: Likewise.
28808 2005-09-26 Bruno Haible <bruno@clisp.org>
28810 * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
28811 compile mbchar.c if they are not both present.
28812 * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
28813 * m4/mbiter.m4 (gl_MBITER): Likewise.
28814 * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
28815 * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
28816 * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
28818 2005-09-25 Jim Meyering <jim@meyering.net>
28820 * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
28821 also uses socklen_t.
28823 2005-09-24 Paul Eggert <eggert@cs.ucla.edu>
28825 * lib/utimens.c (ENOSYS): Define if not already defined.
28826 (futimens): Support having a null PATH if the file descriptor
28829 * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
28831 (__attribute): Define to empty unless GCC 3.1 or later.
28832 This works around a core dump on OpenBSD 3.4, which has GCC
28833 2.95.3, which dumps core when given __attribute__(()). It also
28834 simplifies other tests, since we really don't want to bother with
28835 worrying about which ancient version of GCC supported what.
28836 Original problem reported by Yoann Vandoorselaere, with part of
28837 the fix suggested by Derek Price.
28839 2005-09-24 Jim Meyering <jim@meyering.net>
28841 * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
28842 so we can once again use a positive bitfield width of 1 -- now we
28843 don't have to explain why we were using a bitfield width of 2.
28845 2005-09-23 Paul Eggert <eggert@cs.ucla.edu>
28847 * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
28848 and similarly for the other external symbols. Problem reported
28851 * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
28852 bug reported by Jim Meyering.
28854 * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
28855 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
28856 not needed, since socklen is a prerequisite module.
28858 2005-09-23 Paul Eggert <eggert@cs.ucla.edu>
28860 * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
28861 Problem reported by Eric Blake.
28862 (getaddrinfo): Initialize se so that it's not garbage.
28863 Redo internal storage allocation so that it doesn't make unportable
28864 assumptions about alignment.
28867 * lib/utimens.c (futimens): Use futimesat if available.
28868 Prefer it to futimes since it doesn't have the futimes bug.
28870 * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
28871 (verify): Don't use the __LINE__ trick, as it doesn't work in general.
28872 Instead, declare a function that returns a pointer to an array,
28873 and use verify_type__ to declare the size of the array.
28874 Problem and germ of a solution reported by Bruno Haible.
28875 (verify_type__): Use 2, not 1, for bitfield size, to avoid
28876 a warning with Irix 6.5 cc. Problem reported by Bruno Haible.
28878 2005-09-23 Jim Meyering <jim@meyering.net>
28880 Sync from coreutils.
28881 Correct build failure (socklen_t not defined) on at least
28882 mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
28883 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
28885 2005-09-23 Jim Meyering <jim@meyering.net>
28887 * modules/getaddrinfo (Depends-on): Add socklen.
28889 2005-09-23 Bruno Haible <bruno@clisp.org>
28891 * tests/test-verify.c: New file.
28893 2005-09-22 Paul Eggert <eggert@cs.ucla.edu>
28895 Sync from coreutils.
28897 * modules/argmatch (Depends-on): Add verify.
28898 * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
28900 * modules/save-cwd (Depends-on): Likewise.
28902 * modules/openat (Files): Add lib/openat-die.c.
28903 (Depends-on): Remove error, exitfail.
28906 * modules/verify: New file.
28907 * MODULES.html.sh (Diagnostics <assert.h>): New section,
28908 with "verify" module.
28910 2005-09-22 Paul Eggert <eggert@cs.ucla.edu>
28912 Sync from coreutils.
28914 * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
28915 * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
28916 * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
28917 * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
28918 * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
28919 * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
28920 * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
28921 Don't bother checking for string.h, stdlib.h, unistd.h.
28922 * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
28923 AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
28925 * m4/jm-macros.m4 (gl_MACROS): Likewise.
28926 * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
28928 * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
28929 (gl_GETDATE): Use it.
28931 * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
28933 2005-09-22 Paul Eggert <eggert@cs.ucla.edu>
28935 Sync from coreutils.
28937 * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
28939 * lib/argmatch.h: Include verify.h
28940 (ARGMATCH_VERIFY): Use verify rather than rolling our own.
28941 (ARGMATCH_ASSERT): Remove; unused.
28942 * lib/canonicalize.c: Assume STDC_HEADERS.
28943 * lib/exclude.c: Include "strcase.h".
28944 * lib/regex_internal.h [!defined _LIBC]: Likewise.
28945 * lib/getusershell.c: Include stdio--.h rather than stdio.h
28947 (getusershell): Call fopen, not fopen_safer.
28948 * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
28949 Do not include unistd-safer.h.
28950 (save_cwd): Don't call fd_safer; no longer needed
28951 now that we include fcntl--.h.
28953 * lib/getdate.y (relative_time): New type.
28954 (RELATIVE_TIME_0): New constant.
28955 (parser_control): Use relative_time instead of doing it ourselves.
28956 (%union): Add new relative_time rel member.
28957 (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
28959 (relunit, relunit_snumber): Now of type rel.
28960 (zone, rel, relunit, get_date): Adjust to above changes.
28962 * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
28963 Do not include unistd-safer.h.
28964 (getloadavg): Don't call fd_safer; no longer needed
28965 now that we include fcntl--.h.
28967 * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
28968 (make_dir_parents): Treat ENOSYS like EEXIST.
28970 Improve quality of diagnostics on restore_cwd failure.
28971 * lib/mkdir-p.h (make_dir): Remove. All uses replaced by mkdir.
28972 (make_dir_parents): Last arg is now int * (for errno), not bool *.
28973 * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
28974 Rewrite "mkdir -p" algorithm to avoid the need for "stat"
28975 each time through the loop. Do not diagnose restore_cwd failure;
28976 that is the caller's job (and perhaps the caller does not care).
28978 * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
28979 (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
28980 If the file already exists but is not a directory, don't bother
28981 to try to make its parents.
28982 Close potential file descriptor leak if we can't chdir("/") (!).
28983 Don't always return true if chdir($PWD) fails; return true only
28984 if the requested action was done successfully (except for the
28986 Don't log final directory unless we actually made it.
28987 Refactor to avoid duplicate code to fix up permissions.
28988 Don't attempt to fix up parent permissions if chdir($PWD) fails.
28990 * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
28991 to make it a bit faster and (I hope) clearer.
28992 * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
28993 Fix bug in formats like %2N.
28995 * lib/verify.h: New file.
28997 2005-09-22 Paul Eggert <eggert@cs.ucla.edu>
28999 Sync from coreutils.
29000 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
29002 2005-09-22 Jim Meyering <jim@meyering.net>
29004 Sync from coreutils.
29006 * m4/lstat.m4 (gl_FUNC_LSTAT):
29007 Use AC_LIBSOURCES to require lstat.c and lstat.h.
29008 Remove obsolete comment.
29009 * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
29010 * m4/xstrtod.m4: Likewise.
29012 * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
29014 2005-09-22 Jim Meyering <jim@meyering.net>
29016 Sync from coreutils.
29018 * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
29020 * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
29021 the .tm_year member, since otherwise gcc-4.0 would now warn about
29022 tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
29024 * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
29025 order to avoid an unsuppressible warning from gcc on 64-bit systems.
29027 * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
29028 the command "date -d'2005-03-27 +1 day'" succeeds once again, even
29029 when run in a time zone for which daylight savings time is in effect
29030 for the starting date.
29032 * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
29033 stop us from restricting permissions of just-created absolute-named
29035 * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
29036 to restore initial working directory.
29037 * lib/mkdir-p.c (make_dir_parents): New parameter:
29038 different_working_dir, to tell caller if/when we change the working
29039 directory and are unable to return to the initial one.
29040 * lib/mkdir-p.h (make_dir_parents): Update prototype.
29041 * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
29042 `return false'. This fixes a bug introduced on 2004-07-30.
29044 * lib/openat.c (fdopendir): Be sure to close the supplied
29045 file descriptor before returning. This makes our replacement
29046 implementation a little closer to Solaris's, where fdopendir
29047 ties the file descriptor to the returned DIR* pointer.
29048 * lib/openat.c (unlinkat): New function.
29049 * lib/openat.h (unlinkat): Add prototype.
29050 * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
29051 (openat_restore_fail): Rename from openat_restore_die.
29052 * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
29054 Provide an alternative to exiting immediately upon save_cwd or
29055 restore_cwd failure. Now, an application can arrange e.g.,
29056 to perform a longjump in that case.
29057 * lib/openat.c: Include dirname.h.
29058 Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
29059 (rpl_openat, fdopendir, fstatat): Call openat_save_die
29060 and openat_restore_die rather than calling error directly.
29061 Don't include "error.h" or "exitfail.h"; they're no longer needed.
29063 * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
29064 * lib/openat.h (openat_save_die, openat_restore_die): Declare and
29067 * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
29068 size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
29069 int utc, int nanoseconds);
29071 date should not have to allocate a megabyte of virtual memory to
29072 handle a format argument like +%1048575T. When implemented with
29073 strftime, it must allocate such a buffer, use strftime to fill it
29074 in, print it, then free it.
29075 With fprintftime, it simply prints everything and exits.
29076 With no need for memory allocation, that's one fewer way to fail.
29077 * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
29078 optional field width, not before, so we accept %9:z, not %:9z.
29079 (my_strftime): Be sure to use L_('x') for literals.
29081 * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
29082 * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
29083 * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
29084 * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
29085 * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
29086 * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
29087 * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
29088 * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
29089 * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
29090 * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
29091 * lib/xgethostname.c, lib/xreadlink.c:
29092 Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
29094 * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
29095 * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
29096 * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
29097 Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
29098 and don't include <sys/file.h>).
29100 2005-09-22 Eric Blake <ebb9@byu.net> (tiny change)
29102 Sync from coreutils.
29104 * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
29105 [__linux__]: Allocate a big enough buffer for /proc/loadavg.
29106 [!LDAV_DONE]: Avoid unused variable warning.
29108 2005-09-21 Bruno Haible <bruno@clisp.org>
29110 * lib/unicodeio.h (unicode_to_mb): New declaration.
29112 2005-09-20 Derek Price <derek@ximbiot.com>
29114 * lib/getaddrinfo.c: Don't include <netdb.h> included from
29117 2005-09-20 Bruno Haible <bruno@clisp.org>
29119 * gnulib-tool: Remove trailing slashes from the values specified for
29120 --source-base, --m4-base, --tests-base, --aux-dir.
29121 Suggested by Simon Josefsson <jas@extundo.com>.
29123 2005-09-20 Bruno Haible <bruno@clisp.org>
29125 * gnulib-tool (func_all_modules, func_modules_transitive_closure,
29126 func_modules_to_filelist, func_import, func_create_testdir): Make all
29127 sorting results locale-independent, so that gnulib-cache.m4 doesn't
29128 change when gnulib-tool is invoked in a different locale.
29130 2005-09-19 Simon Josefsson <jas@extundo.com>
29132 * m4/socklen.m4: Fix typo.
29134 2005-09-19 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
29136 Use a consistent style for including <config.h>.
29137 * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
29138 lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
29139 lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
29140 lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
29141 lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
29142 lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
29143 lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
29144 lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
29145 lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
29146 lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
29147 lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
29148 lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
29149 lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
29150 lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
29151 lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
29152 lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
29153 lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
29154 lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
29155 lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
29156 lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
29157 lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
29158 lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
29159 lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
29160 lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
29161 lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
29162 lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
29163 lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
29164 lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
29165 lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
29166 lib/xstrtoumax.c, lib/yesno.c:
29167 Standardize inclusion of config.h.
29168 * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
29169 lib/inttostr.h: Removed inclusion of config.h from header files.
29170 * lib/inttostr.c: Adjusted in-tree users.
29171 * lib/timespec.h: Remove superfluous warning to include config.h.
29172 * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
29173 lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
29174 lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
29175 lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
29176 config.h with HAVE_CONFIG_H.
29178 2005-09-19 Jim Meyering <jim@meyering.net>
29180 * modules/pathmax (License): Change to LGPL.
29182 2005-09-19 Derek Price <derek@ximbiot.com>
29184 * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
29186 2005-09-19 Bruno Haible <bruno@clisp.org>
29188 * gnulib-tool (import): Provide default for --tests-base.
29190 2005-09-19 Bruno Haible <bruno@clisp.org>
29192 * doc/quote.texi: New file, extracted from gnulib.texi.
29193 * doc/ctime.texi: New file, extracted from gnulib.texi.
29194 * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
29195 * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
29196 * doc/gnulib.texi: Include them.
29198 2005-09-18 Bruno Haible <bruno@clisp.org>
29201 * gnulib-tool (func_readlink): New function.
29202 (func_ln_if_changed): Use it.
29204 2005-09-18 Bruno Haible <bruno@clisp.org>
29206 * gnulib-tool: Support --with-tests also with --import.
29207 (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
29208 (func_import): Use variables $testsbase and $inctests. Emit a
29209 gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
29210 Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
29211 SUBDIRS += $testsdir.
29212 (func_create_testdir): Update.
29214 2005-09-18 Bruno Haible <bruno@clisp.org>
29216 * gnulib-tool: Revise --dry-run implementation. Use variable $doit
29217 instead of $dry_run.
29218 (func_cp_if_changed, func_mv_if_changed): Remove functions.
29219 (func_ln_if_changed): Don't handle dry-run here.
29220 (func_import): In dry-run mode, detect more precisely which actions
29221 would be performed, and don't use "...ing" verbs.
29223 2005-09-18 Bruno Haible <bruno@clisp.org>
29225 * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
29226 (func_import): Use join on two temporary files instead of three nested
29227 loops, in order to determine which files are new or old.
29229 2005-09-18 Bruno Haible <bruno@clisp.org>
29231 * gnulib-tool (func_import): Comment out code that spits out the
29232 new files with --dry-run.
29234 2005-09-18 Bruno Haible <bruno@clisp.org>
29236 * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
29238 2005-09-16 Paul Eggert <eggert@cs.ucla.edu>
29240 * lib/stat-time.h: New file.
29241 * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
29242 (MTIME_CMP, TIMESPEC_NS): Remove. Now done by stat-time.h,
29243 in a different way.
29244 (timespec_cmp): New function.
29245 * lib/utimecmp.c: Include stat-time.h.
29246 (SYSCALL_RESOLUTION): Depend on whether various struct stat
29247 members exist, not on the obsolescent ST_MTIM_NSEC.
29248 (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
29250 2005-09-16 Paul Eggert <eggert@cs.ucla.edu>
29252 * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
29254 2005-09-16 Paul Eggert <eggert@cs.ucla.edu>
29256 * MODULES.html.sh (File system functions): Add stat-time.
29257 * modules/stat-time: New file.
29258 * modules/timespec (Files): Remove m4/st_mtim.m4; this
29259 is now done in a different way, by the stat-time module.
29260 * modules/utimecmp (Depends-on): Add stat-time.
29262 2005-09-15 Paul Eggert <eggert@cs.ucla.edu>
29264 * m4/st_mtim.m4: Remove. Superseded by...
29265 * m4/stat-time.m4: New file.
29266 * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
29267 Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
29269 2005-09-15 Derek Price <derek@ximbiot.com>
29271 * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
29273 2005-09-15 Derek Price <derek@ximbiot.com>
29275 * lib/regex_internal.h: Blank `pure' for GNUC < 3.
29276 * lib/regex_internal.c: Ditto, using this...
29277 (__GNUC_PREREQ): ...new macro.
29278 * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
29280 (__GNUC_PREREQ): ...this new macro.
29282 * lib/strstr.h: Include string.h. Define strstr as a macro here.
29284 2005-09-15 Derek Price <derek@ximbiot.com>
29285 Paul Eggert <eggert@cs.ucla.edu>
29287 * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
29288 changes, consolidating in...
29289 * lib/regex_internal.h: ...this file.
29291 2005-09-13 Jim Meyering <jim@meyering.net>
29293 * lib/canon-host.c: Filter through gnu indent and reword comments
29295 * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
29297 2005-09-13 Derek Price <derek@ximbiot.com>
29299 * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
29301 Reported by Jim Meyering <jim@meyering.net>.
29303 2005-09-12 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny change)
29305 * lib/base64.c: Typo.
29306 (base64_encode): Put b64str in initialized data section.
29308 2005-09-12 Paul Eggert <eggert@cs.ucla.edu>
29310 Merge glibc and coreutils changes into gnulib, plus a few
29312 * lib/md5.c: Use #error rather than a string.
29313 (CYCLIC): New macro, from glibc source. Use it instead of rol.
29314 * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
29315 (__attribute__): Define to empty for non recent-GCC.
29316 (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
29317 (__md5_process_bytes, __md5_read_ctx, __md5_stream):
29318 Renamed from their non-__ counterparts, with new macros replacing
29319 them if not _LIBC. Add __THROW attribute.
29321 (struct md5_ctx): Align buffer if using GCC.
29322 * lib/sha1.h (struct sha1_ctx): Likewise.
29323 * lib/sha1.c (SWAP): Renamed from the NOTSWAP. All uses changed.
29324 The old name was backwards.
29325 (NOTSWAP): Remove; not used.
29326 (rol): New macro, moved here from md5.h.
29327 (sha1_process_block): Remove a FIXME that doesn't make sense.
29329 2005-09-12 Derek Price <derek@ximbiot.com>
29331 Return usable errors from canon-host.
29332 * lib/canon-host.h: New file.
29333 * lib/canon-host.c (canon_host): Wrap...
29334 (canon_host_r): ...this new function, which now relies exclusively on
29336 (ch_strerror): New function.
29337 (last_cherror): New global.
29338 * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
29340 (getaddrinfo): Add AI_CANONNAME functionality. Don't do arithmetic on
29342 (freeaddrinfo): Free ai->ai_canonname when set.
29344 2005-09-12 Derek Price <derek@ximbiot.com>
29346 Make canon-host require getaddrinfo.
29347 * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
29348 AC_LIBSOURCE canon-host.h. Call...
29349 (gl_PREREQ_CANON_HOST): ...this new function, which requires
29351 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
29353 2005-09-12 Derek Price <derek@ximbiot.com>
29355 * modules/canon-host: Add canon-host.h. Depend on getaddrinfo. Make
29357 * modules/getaddrinfo: Add link to opengroup spec. Depend on strdup.
29359 2005-09-12 Derek Price <derek@ximbiot.com>
29361 * lib/gai_strerror.c: Include config.h when available. Include
29362 getaddrinfo.h before other headers to test interface.
29363 Reported by Larry Jones <lawrence.jones@ugs.com>.
29365 2005-09-12 Derek Price <derek@ximbiot.com>
29366 Paul Eggert <eggert@cs.ucla.edu>
29368 * modules/glob (Files): Add glob-libc.h.
29370 2005-09-12 Derek Price <derek@ximbiot.com>
29371 Paul Eggert <eggert@cs.ucla.edu>
29373 * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
29374 glob_.h, glob-libc.h.
29375 (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
29377 2005-09-12 Derek Price <derek@ximbiot.com>
29378 Paul Eggert <eggert@cs.ucla.edu>
29380 * lib/glob-libc.h: Renamed from glob_.h. The new version is
29381 taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
29382 protecting things that should be done only in gnulib contexts.
29383 * lib/glob_.h: New file, containing only the glob things needed for
29385 (GLOB_PREFIX): Remove. All uses changed to look for __GLOB_GNULIB.
29386 (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
29387 (glob, globfree, glob_pattern_p): Now defined simply in terms of
29388 rpl_glob, rpl_globfree, rpl_glob_pattern_p.
29389 (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
29390 and to respect the namespace rules better.
29392 2005-09-08 Simon Josefsson <jas@extundo.com>
29394 * modules/socklen: New file.
29396 2005-09-08 Simon Josefsson <jas@extundo.com>
29398 * m4/socklen.m4: New file.
29400 2005-09-08 Paul Eggert <eggert@cs.ucla.edu>
29402 * modules/utimens (Files): Add m4/utimbuf.m4, since
29403 m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
29404 Reported by Sergey Poznyakoff.
29406 2005-09-08 Paul Eggert <eggert@cs.ucla.edu>
29408 * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
29409 definitions, since that's the preferred style in glibc.
29410 Fix a minor spacing issue, and update copyright notice to match
29413 2005-09-08 Paul Eggert <eggert@cs.ucla.edu>
29415 * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
29417 2005-09-06 Simon Josefsson <jas@extundo.com>
29419 * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
29420 TCSETATTR. Reported by Derek Price <derek@ximbiot.com>.
29422 2005-09-06 Paul Eggert <eggert@cs.ucla.edu>
29424 * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
29427 2005-09-06 Paul Eggert <eggert@cs.ucla.edu>
29429 * config/srclist.txt: Add glibc bug 1302.
29431 2005-09-05 Paul Eggert <eggert@cs.ucla.edu>
29433 Change bitset word type from unsigned int to unsigned long int,
29434 as this has better performance on typical 64-bit hosts.
29435 Port bitset code to hosts with unusual word sizes.
29436 * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
29437 (build_collating_symbol):
29438 Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
29439 argument is a bitset. This is merely a style issue, but it makes
29440 it clearer that an entire array is expected.
29441 (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
29442 * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
29443 Port to the case where bitset_word is not the same as unsigned int.
29444 * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
29445 (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
29447 * lib/regexec.c (check_dst_limits_calc_pos_1,
29448 check_subexp_matching_top):
29449 (build_trtable, group_nodes_into_DFAstates):
29451 * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
29452 Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
29453 * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
29454 * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
29455 * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
29456 * lib/regcomp.c (optimize_subexps, lower_subexp):
29457 Work even if bitset_word has holes in its bitwise representation.
29458 * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
29459 * lib/regexec.c (check_dst_limits_calc_pos_1,
29460 check_subexp_matching_top):
29462 * lib/regex_internal.c (re_string_reconstruct):
29463 Don't assume UCHAR_MAX == 255.
29464 * lib/regex_internal.h (bitset_set_all): Likewise.
29465 * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
29467 (BITSET_WORDS): Renamed from BITSET_UINTS. All uses changed.
29468 (bitset_word): New type, replacing 'unsigned int' for bitset uses.
29470 (BITSET_WORD_MAX): New macro.
29471 (bitset_set, bitset_clear, bitset_contain, bitset_empty):
29472 (bitset_set_all, bitset_copy): Now inline functions, not macros.
29473 (bitset_empty, bitset_copy):
29474 Prefer sizeof (bitset) to multiplying it out ourselves.
29475 (bitset_not_merge): Remove; unused.
29476 (bitset_contain): Return bool, not unsigned int with one bit on.
29477 All callers changed.
29478 * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
29479 alignment than re_node_set; do this by defining a new internal
29480 type struct dests_alloc and using it to allocate memory.
29482 2005-09-05 Bruno Haible <bruno@clisp.org>
29484 * gnulib-tool (func_import): Fix comparison in handling of symbolic
29487 2005-09-04 Martin Lambers <marlam@marlam.de> (tiny change)
29489 * modules/size_max (Makefile.am): Add size_max.h
29491 2005-09-04 Derek Price <derek@ximbiot.com>
29493 * gnulib-tool (func_import): Fix reversed $symbolic logic.
29495 2005-09-03 Simon Josefsson <jas@extundo.com>
29497 * gnulib-tool: Fix typo.
29499 2005-09-03 Simon Josefsson <jas@extundo.com>
29501 * config/srclist.txt: Add glibc bug 1293.
29503 2005-09-03 Derek Price <derek@ximbiot.com>
29505 * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
29506 From Larry Jones <lawrence.jones@ugs.com>.
29508 2005-09-02 Simon Josefsson <jas@extundo.com>
29510 * modules/socklen: New file.
29512 2005-09-02 Simon Josefsson <jas@extundo.com>
29514 * modules/havelib: New module.
29516 * modules/gettext, modules/iconv, modules/lock, modules/readline:
29519 2005-09-02 Paul Eggert <eggert@cs.ucla.edu>
29521 Check for arithmetic overflow when calculating sizes, to prevent
29522 some buffer-overflow issues. These patches are conservative, in the
29523 sense that when I couldn't determine whether an overflow was possible,
29524 I inserted a run-time check.
29525 * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
29527 (SIZE_MAX) [!defined SIZE_MAX]: New macro.
29528 (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
29529 (re_xnrealloc, re_x2nrealloc): New inline functions.
29530 * lib/regcomp.c (init_dfa, analyze, build_range_exp,
29531 parse_bracket_exp):
29532 (build_equiv_class, build_charclass): Check for arithmetic overflow
29533 in size expression calculations.
29534 * lib/regex_internal.c (re_string_realloc_buffers):
29535 (build_wcs_upper_buffer, re_node_set_add_intersect):
29536 (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
29537 (re_dfa_add_node, register_state): Likewise.
29538 * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
29539 (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
29540 (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
29541 (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
29543 2005-09-02 Paul Eggert <eggert@cs.ucla.edu>
29545 * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
29546 m4/ulonglong.m4. Problem reported by Martin Lambers.
29548 2005-09-02 Bruno Haible <bruno@clisp.org>
29550 Support for lib vs. lib64 distinction on biarch platforms.
29551 * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
29552 (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
29553 * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
29555 2005-09-02 Bruno Haible <bruno@clisp.org>
29557 * gnulib-tool (import): In the other first-use case, provide defaults
29560 2005-09-02 Bruno Haible <bruno@clisp.org>
29562 * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
29563 patches not yet found in the latest gettext release.
29565 2005-09-01 Paul Eggert <eggert@cs.ucla.edu>
29567 * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
29568 to avoid a collision with bits/local_lim.h in glibc.
29569 All uses changed. Problem reported by Dmitry V. Levin in
29570 <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
29572 * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
29573 bugs in int versus size_t comparisons.
29574 (re_string_context_at): Fix bug where the code assumed that
29577 Use bool where appropriate.
29578 * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
29579 All callers changed.
29580 (calc_eclosure_iter): Likewise, for ROOT arg.
29581 (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
29582 (build_charclass_op): Likewise, for NON_MATCH arg.
29583 * lib/regex_internal.c (re_string_allocate, re_string_construct):
29584 (re_string_construct_common): Likewise, for ICASE arg.
29585 * lib/regexec.c (re_search_2_stub, re_search_stub):
29586 Likewise, for RET_LEN arg.
29587 (check_matching): Likewise, for FL_LONGEST_MATCH arg.
29588 (set_regs): Likewise, for FL_BACKTRACK arg.
29589 * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
29590 (duplicate_node_closure, calc_inveclosure, calc_eclosure):
29591 (calc_eclosure_iter, parse_bracket_exp):
29592 Use bool for internal variables that are booleans.
29593 * lib/regexec.c (re_search_internal, check_matching,
29594 proceed_next_node):
29595 (set_regs, build_sifted_states, sift_states_bkref):
29596 (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
29597 (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
29598 (find_collation_sequence_value):
29600 * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
29601 (re_node_set_compare):
29602 Return bool, not int. All callers changed.
29603 * lib/regexec.c (check_halt_node_context, check_dst_limits):
29604 (build_trtable, check_node_accept): Likewise.
29605 * lib/regex_internal.h: Include stdbool.h.
29607 Fix bugs uncovered when converting to bool.
29608 * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
29609 failure instead of charging ahead blindly.
29610 * lib/regex_internal.c (register_state): Likewise.
29611 * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
29612 for freeing internal storage.
29613 (group_nodes_into_DFA_states): Use unsigned int, not int, for
29614 bitset pieces used as boolean, to avoid undefined behavior
29615 on hosts that do int overflow checking.
29617 2005-09-01 Paul Eggert <eggert@cs.ucla.edu>
29619 * config/srclist.txt: Add glibc bugs 1285-1287.
29621 2005-09-01 Jim Meyering <jim@meyering.net>
29623 * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
29624 CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
29625 Require gl_STAT_MACROS, too.
29627 2005-09-01 Bruno Haible <bruno@clisp.org>
29629 * gnulib-tool (import): In the first-use case, provide defaults.
29631 2005-09-01 Bruno Haible <bruno@clisp.org>
29633 * gnulib-tool (func_import): Remove the .tmp files.
29635 2005-09-01 Bruno Haible <bruno@clisp.org>
29637 * gnulib-tool (func_import): Fix handling of symbolic links.
29639 2005-08-31 Paul Eggert <eggert@cs.ucla.edu>
29641 On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
29642 old glibc regex code mishandles strings longer than 2**31 bytes.
29643 This patch fixes this when the regex code is used in gnulib
29644 (i.e., outside glibc).
29646 This patch should not affect the use of the regex code inside
29647 glibc. No doubt this problem also needs to be handled for glibc
29648 as well, but the result will be an incompatible change to the
29649 glibc ABI, and the old ABI will have to be supported too. That
29650 can be the the subject for another patch.
29652 * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
29653 governing whether the rest of this patch is active. By default,
29654 the macro is disabled and the patch has no effect.
29655 (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
29656 (__re_idx_t, __re_size_t, __re_long_size_t): New types.
29657 (struct re_pattern_buffer, re_search, re_search_2, re_match):
29658 (re_match_2, re_set_registers): Use the new types.
29659 * lib/regex_internal.h (Idx, re_hashval_t): New types.
29660 (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
29662 (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
29663 (re_string_context_at, bin_tree_t, re_dfastate_t):
29664 (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
29665 (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
29666 (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
29667 (re_string_char_size_at, re_string_wchar_at):
29668 (re_string_elem_size_at):
29669 Use the new types and macros to port to 64-bit hosts.
29670 Use unsigned types for internal values, so that the code
29671 mostly works even for arrays larger than SSIZE_MAX.
29672 * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
29673 (search_duplicated_node, calc_eclosure_iter, fetch_number):
29674 (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
29675 (build_equiv_class, build_charclass, re_compile_fastmap_iter):
29676 (free_dfa_content, create_initial_state, optimize_utf8, analyze):
29677 (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
29678 (calc_inveclosure, parse_dup_op, build_range_exp):
29679 (build_collating_symbol, parse_bracket_exp, build_charclass_op):
29680 (fetch_number, create_token_tree, mark_opt_subexp):
29682 * lib/regex_internal.c (re_string_construct_common,
29683 create_ci_newstate):
29684 (create_cd_newstate, re_string_allocate, re_string_construct):
29685 (re_string_realloc_buffers, build_wcs_upper_buffer):
29686 (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
29687 (re_string_reconstruct, re_string_peek_byte_case):
29688 (re_string_fetch_byte_case, re_string_context_at):
29689 (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
29690 (re_node_set_init_copy, re_node_set_add_intersect):
29691 (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
29692 (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
29693 (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
29694 (re_acquire_state, re_acquire_state_context, register_state):
29696 * lib/regex.c (match_ctx_init, match_ctx_add_entry,
29697 search_cur_bkref_entry):
29698 (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
29699 (re_search_internal, re_search_2_stub, re_search_stub)
29700 (re_copy_regs, check_matching, check_halt_state_context, update_regs):
29701 (push_fail_stack, sift_states_iter_mb, build_sifted_states):
29702 (update_cur_sifted_state, check_dst_limits):
29703 (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
29704 (check_subexp_limits, sift_states_bkref, merge_state_array):
29705 (check_subexp_matching_top, get_subexp, get_subexp_sub):
29706 (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
29707 (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
29708 (expand_bkref_cache, check_node_accept_bytes):
29709 (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
29710 (re_search, re_match_2, re_search_2, prune_impossible_nodes):
29711 (acquire_init_state_context, check_halt_node_context):
29712 (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
29713 (sift_states_backward, clean_state_log_if_needed):
29714 (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
29715 (find_recover_state, transit_state_sb, transit_state_mb):
29716 (transit_state_bkref, build_trtable, match_ctx_clean):
29718 * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
29719 to work around an assumption that REG_MISSING is negative.
29721 * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
29722 (seek_collating_symbol_entry) [defined _LIBC]:
29723 (lookup_collation_sequence_value) [defined _LIBC]:
29724 (build_range_exp, build_collating_symbol) [defined _LIBC]:
29725 Use prototypes rather than old-style function definitions.
29726 * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
29727 (transit_state_sb) [0]:
29728 (find_collation_sequence_value) [defined _LIBC]: Likewise.
29730 * lib/regexec.c (re_search_internal): Simplify update of rm_so and
29733 * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
29734 (optimize_subexps, lower_subexp):
29735 Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
29736 since the signed shift might overflow. Use 1u<<31 instead.
29737 * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
29739 * lib/regexec.c (check_dst_limits_calc_pos_1,
29740 check_subexp_matching_top): Likewise.
29742 * lib/regcomp.c (optimize_subexps, lower_subexp):
29743 Use CHAR_BIT rather than 8, for clarity.
29744 * lib/regexec.c (check_dst_limits_calc_pos_1):
29745 (check_subexp_matching_top): Likewise.
29746 * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
29747 have to worry about portability issues when shifting it left.
29748 Remove no-longer-needed test for table_size > 0.
29749 * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
29750 in a word, as the resulting behavior is undefined.
29751 * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
29752 in one case, a <= should have been an <, and in another case the
29753 whole test was missing.
29754 * lib/regex_internal.h (BYTE_BITS): Remove. All uses changed to
29755 the standard name CHAR_BIT.
29756 * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
29757 this is not true on one's complement and signed-magnitude hosts.
29759 * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
29761 (struct re_dfa_t): Remove unused member states_alloc.
29762 * lib/regcomp.c (init_dfa): Don't initialize unused members.
29764 2005-08-31 Paul Eggert <eggert@cs.ucla.edu>
29766 * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
29767 _REGEX_LARGE_OFFSETS). Test for regoff_t/off_t bug in 64-bit
29768 and large-file glibc and in 32-bit large-file Solaris.
29770 2005-08-31 Paul Eggert <eggert@cs.ucla.edu>
29772 * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
29773 lengths fit in regoff_t; this isn't true if regoff_t is the same
29775 * lib/regex.c (re_search_internal): 5th arg is LAST_START
29776 (= START + RANGE) instead of RANGE. This avoids overflow
29777 problems when regoff_t is the same width as size_t.
29778 All callers changed.
29779 (re_search_2_stub): Check for overflow when adding the
29780 sizes of the two strings.
29781 (re_search_stub): Check for overflow when adding START
29782 to RANGE; if it occurs, substitute the extreme value.
29784 2005-08-31 Paul Eggert <eggert@cs.ucla.edu>
29786 * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
29788 2005-08-31 Jim Meyering <jim@meyering.net>
29790 * lib/regcomp.c (search_duplicated_node): Make first pointer arg
29791 a pointer-to-const.
29792 * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
29793 (register_state): Likewise.
29794 * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
29795 (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
29796 (group_nodes_into_DFAstates): Likewise.
29798 2005-08-31 Jim Meyering <jim@meyering.net>
29800 * check-module: Add a FIXME comment.
29802 2005-08-31 Eric Blake <ebb9@byu.net>
29804 * modules/unistd-safer (Files): Add unistd--.h.
29805 * modules/stdio-safer (Files): Add stdio--.h.
29807 2005-08-31 Derek Price <derek@ximbiot.com>
29809 * lib/getdelim.c (getdelim): Return EOF on EOF.
29810 Reported by Larry Jones <lawrence.jones@ugs.com>.
29812 2005-08-31 Bruno Haible <bruno@clisp.org>
29814 Avoid unnecessary diffs in the generated lib/Makefile.am.
29815 * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
29816 the generated files.
29817 (func_import): Don't set cmd.
29819 2005-08-31 Bruno Haible <bruno@clisp.org>
29821 * lib/strstr.c: Include <stddef.h>, for NULL.
29822 * lib/strcasestr.c: Likewise.
29823 Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
29825 2005-08-31 Bruno Haible <bruno@clisp.org>
29827 * gnulib-tool: New option --macro-prefix.
29828 (func_import): Use macro_prefix.
29829 (import): Handle option --macro-prefix.
29831 2005-08-31 Bruno Haible <bruno@clisp.org>
29833 * gnulib-tool (import): Rename most ac_* variables to cached_*.
29834 Also use new variables cached_lgpl, cached_libtool.
29836 2005-08-31 Bruno Haible <bruno@clisp.org>
29838 * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
29839 always instantiating them.
29841 2005-08-31 Bruno Haible <bruno@clisp.org>
29843 * gnulib-tool (func_import): Read the previous cached settings
29844 from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
29845 earlier added by gnulib but are now dropped. Warn when a gnulib file
29846 overwrites a non-gnulib file.
29848 2005-08-31 Bruno Haible <bruno@clisp.org>
29850 * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
29851 gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
29852 projects that don't keep autogenerated files in CVS. Put into
29853 actioncmd only the specified modules, not the transitive closure.
29855 2005-08-31 Bruno Haible <bruno@clisp.org>
29857 * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
29858 Create directories that shall be filled.
29859 (import): Don't look for gl_* macros in configure.ac. Recurse across
29860 all directories containing a gnulib-cache.m4 files, if meaningful.
29862 2005-08-31 Bruno Haible <bruno@clisp.org>
29864 * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
29865 (import): Set seen_libtool when we see gl_LIBTOOL.
29867 2005-08-31 Bruno Haible <bruno@clisp.org>
29869 * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
29870 declaration macro definitions from generated gnulib.m4.
29872 2005-08-30 Oskar Liljeblad <oskar@osk.mine.nu>
29874 * lib/iconvme.h: Add prototype for iconv_alloc.
29876 2005-08-29 Simon Josefsson <jas@extundo.com>
29878 * lib/iconvme.c: Fix errno.
29880 2005-08-29 Bruno Haible <bruno@clisp.org>
29882 * gnulib-tool: Enclose all occurrences of $destdir in "...", so
29883 that it works when the directory contains spaces.
29885 2005-08-29 Bruno Haible <bruno@clisp.org>
29887 * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
29889 2005-08-29 Bruno Haible <bruno@clisp.org>
29891 * gnulib-tool (func_import): Emit more comments into gnulib.m4.
29894 2005-08-29 Bruno Haible <bruno@clisp.org>
29895 and Stepan Kasal <kasal@ucw.cz>
29897 * check-module: If more parameters are given, check each of them
29898 separately; add more exceptions, as noted by Jim Meyering.
29899 (check_module): New procedure.
29900 (%exempt_header): Now contains all exceptions.
29902 2005-08-29 Ben Pfaff <blp@cs.stanford.edu>
29904 * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
29906 2005-08-29 Oskar Liljeblad <oskar@osk.mine.nu>
29908 * lib/iconvme.c: Split iconv_string into iconv_alloc.
29910 2005-08-28 Bruno Haible <bruno@clisp.org>
29912 * m4/gnulib-tool.m4: New file.
29914 2005-08-27 Jim Meyering <jim@meyering.net>
29916 * modules/unistd-safer (Files): Add pipe-safer.c.
29917 * modules/fcntl-safer (Files): Add creat-safer.c.
29919 2005-08-27 Jim Meyering <jim@meyering.net>
29921 * m4/stdlib-safer.m4: New file. From coreutils.
29922 * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
29923 * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
29924 AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
29925 * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
29926 Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
29928 2005-08-27 Jim Meyering <jim@meyering.net>
29930 * lib/fopen-safer.c: Merge minor changes from coreutils.
29931 * lib/dup-safer.c: Likewise.
29932 * lib/fd-safer.c: Likewise.
29934 Merge from coreutils.
29935 * lib/stdio--.h: New file.
29936 * lib/stdlib--.h: New file.
29937 * lib/mkstemp-safer.c: New file.
29939 GNU tar needs these.
29940 * lib/pipe-safer.c: New file.
29941 * lib/creat-safer.c: New file.
29942 * lib/fcntl--.h (creat): Define to creat_safer.
29943 * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
29944 * lib/unistd--.h (pipe): Define to pipe_safer.
29945 * lib/unistd-safer.h: Declare pipe_safer.
29947 2005-08-26 Simon Josefsson <jas@extundo.com>
29949 * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
29950 Haible <bruno@clisp.org>.
29952 2005-08-26 Paul Eggert <eggert@cs.ucla.edu>
29954 * lib/regex_internal.h: Remove all references to
29955 RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
29957 (bitset_not, bitset_merge, bitset_not_merge):
29958 (bitset_mask, re_string_allocate, re_string_construct):
29959 (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
29960 (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
29961 (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
29962 (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
29963 (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
29964 (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
29965 (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
29966 (re_acquire_state_context):
29967 Remove unnecessary forward decls.
29968 (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
29969 Put __attribute at function definition,
29970 now that the function decl has been removed.
29971 * lib/regex_internal.c (re_string_peek_byte_case):
29972 (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
29975 2005-08-25 Stepan Kasal <kasal@ucw.cz>
29977 * m4/regex.m4: Add AC_PREREQ(2.50).
29978 (gl_REGEX): If --with-included-regex was given, skip the autodetection.
29980 2005-08-25 Simon Josefsson <jas@extundo.com>
29982 * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
29985 2005-08-25 Simon Josefsson <jas@extundo.com>
29987 * lib/getpass.c: Add WIN32 implementation. Conditionalize use of
29988 termios.h, tcgetattr, tcsetattr and __fsetlocking. Remove some
29989 GLIBC specific code.
29991 2005-08-25 Paul Eggert <eggert@cs.ucla.edu>
29993 Make regex safe for g++. This fixes one real bug (an "err"
29994 that should have been "*err"). g++ problem reported by
29996 * lib/regex_internal.h (re_calloc): New macro, consistent with
29997 re_malloc etc. All callers of calloc changed to use re_calloc.
29998 * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
29999 not int. All callers changed.
30000 * lib/regcomp.c (re_compile_fastmap_iter): Don't use
30001 alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
30002 * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
30003 (find_recover_state): Change "err" to "*err"; this fixes what
30004 appears to be a real bug.
30005 (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
30008 2005-08-25 Paul Eggert <eggert@cs.ucla.edu>
30010 * modules/regex (Depends-on): Add malloc, since the code
30011 assumes that !malloc(0) means failure.
30013 2005-08-25 Paul Eggert <eggert@cs.ucla.edu>
30015 * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
30017 alloca modernization/simplification for regex.
30018 * lib/regex.c: Remove portability cruft for alloca. This no longer
30019 needs to be at the start of the file, and can be moved into
30020 regex_internal.h and simplified.
30021 * lib/regex_internal.h: Include <alloca.h>.
30022 (__libc_use_alloca) [!defined _LIBC]: New macro.
30023 * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
30024 now works outside glibc.
30026 2005-08-25 Paul Eggert <eggert@cs.ucla.edu>
30028 * config/srclist.txt: Add glibc bugs 1241, 1245.
30030 2005-08-25 Jim Meyering <jim@meyering.net>
30032 * lib/open-safer.c: Include <config.h>.
30033 Otherwise, we'd lose LARGEFILE support in any file using
30036 2005-08-25 Bruno Haible <bruno@clisp.org>
30038 * m4/minmax.m4: Require autoconf 2.52.
30039 (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
30040 of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
30041 alternatives of translit over the alphabet.
30042 Based on a patch from Stepan Kasal <kasal@ucw.cz>.
30044 2005-08-24 Simon Josefsson <jas@extundo.com>
30046 * tests/test-getpass.c: New file.
30048 2005-08-24 Paul Eggert <eggert@cs.ucla.edu>
30050 * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
30051 for GNU regex features.
30053 2005-08-24 Paul Eggert <eggert@cs.ucla.edu>
30055 * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
30056 * lib/regex.h (regerror): Likewise.
30058 * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
30059 requires this. (The code never needed it.)
30061 * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
30062 All uses of recently-renamed identifiers changed to use the new,
30063 POSIX-compliant names. The code will build and run just fine
30064 without these changes, but it's better to eat our own dog food
30065 and use the standard-conforming names.
30067 * lib/regex.h: Fix a multitude of POSIX name space violations.
30068 These changes have an effect only for programs that define
30069 _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
30070 do not change anything for programs compiled in the normal way.
30071 Also, there is no effect on the ABI.
30073 (_REGEX_SOURCE): New macro.
30074 Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
30075 defined and _GNU_SOURCE is not; this fixes a name space violation.
30077 Rename the following macros to obey POSIX requirements.
30078 The old names are still visible as macros if _REGEX_SOURCE is defined.
30079 (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
30080 RE_BACKSLASH_ESCAPE_IN_LISTS.
30081 (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
30082 (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
30083 (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
30084 (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
30085 (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
30086 (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
30087 (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
30088 (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
30089 (REG_INTERVALS): renamed from RE_INTERVALS.
30090 (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
30091 (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
30092 (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
30093 (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
30094 (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
30095 (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
30096 (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
30097 (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
30098 RE_UNMATCHED_RIGHT_PAREN_ORD.
30099 (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
30100 (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
30101 (REG_DEBUG): renamed from RE_DEBUG.
30102 (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
30103 (REG_IGNORE_CASE): renamed from RE_ICASE. This renaming is a bit
30104 unusual, since we can't clash with the POSIX REG_ICASE.
30105 (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
30106 (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
30107 (REG_NO_SUB): renamed from RE_NO_SUB.
30108 (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
30109 (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
30110 (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
30111 (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
30112 (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
30113 (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
30114 (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
30115 (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
30116 (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
30117 (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
30118 (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
30119 (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
30120 RE_SYNTAX_POSIX_MINIMAL_BASIC.
30121 (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
30122 (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
30123 RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
30124 (REG_DUP_MAX): renamed from RE_DUP_MAX. No need to undef it.
30125 (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
30126 (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
30127 (REG_FIXED): Renamed from REGS_FIXED.
30128 (REG_NREGS): Renamed from RE_NREGS.
30130 (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
30131 of other REG_* macros, since POSIX says the user is allowed to
30132 #undef these macros selectively.
30134 (reg_errcode_t): Update comment stating what other tables need
30137 Rename the following enum values to obey POSIX requirements.
30138 The old names are still visible as macros.
30139 (_REG_ENOSYS): Renamed from REG_ENOSYS. Define even if _XOPEN_SOURCE
30140 is not defined, since GNU is supposed to be a superset of POSIX as
30141 much as possible, and since we want reg_errcode_t to be a signed
30142 type for implementation consistency.
30143 (_REG_NOERROR): Renamed from REG_NOERROR.
30144 (_REG_NOMATCH): Renamed from REG_NOMATCH.
30145 (_REG_BADPAT): Renamed from REG_BADPAT.
30146 (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
30147 (_REG_ECTYPE): Renamed from REG_ECTYPE.
30148 (_REG_EESCAPE): Renamed from REG_EESCAPE.
30149 (_REG_ESUBREG): Renamed from REG_ESUBREG.
30150 (_REG_EBRACK): Renamed from REG_EBRACK.
30151 (_REG_EPAREN): Renamed from REG_EPAREN.
30152 (_REG_EBRACE): Renamed from REG_EBRACE.
30153 (_REG_BADBR): Renamed from REG_BADBR.
30154 (_REG_ERANGE): Renamed from REG_ERANGE.
30155 (_REG_ESPACE): Renamed from REG_ESPACE.
30156 (_REG_BADRPT): Renamed from REG_BADRPT.
30157 (_REG_EEND): Renamed from REG_EEND.
30158 (_REG_ESIZE): Renamed from REG_ESIZE.
30159 (_REG_ERPAREN): Renamed from REG_ERPAREN.
30160 (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
30161 (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
30162 (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
30163 (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
30165 (_REG_RE_NAME, _REG_RM_NAME): New macros.
30166 (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE. All uses
30167 changed. But support the old name if the new one is not defined
30168 and if _REGEX_SOURCE.
30170 Change the following member names in struct re_pattern_buffer.
30171 The old names are still supported if !_REGEX_SOURCE.
30172 The new names are always supported, regardless of _REGEX_SOURCE.
30173 (re_buffer): Renamed from buffer.
30174 (re_allocated): Renamed from allocated.
30175 (re_used): Renamed from used.
30176 (re_syntax): Renamed from syntax.
30177 (re_fastmap): Renamed from fastmap.
30178 (re_translate): Renamed from translate.
30179 (re_can_be_null): Renamed from can_be_null.
30180 (re_regs_allocated): Renamed from regs_allocated.
30181 (re_fastmap_accurate): Renamed from fastmap_accurate.
30182 (re_no_sub): Renamed from no_sub.
30183 (re_not_bol): Renamed from not_bol.
30184 (re_not_eol): Renamed from not_eol.
30185 (re_newline_anchor): Renamed from newline_anchor.
30187 Change the following member names in struct re_registers.
30188 The old names are still supported if !_REGEX_SOURCE.
30189 The new names are always supported, regardless of _REGEX_SOURCE.
30190 (rm_num_regs): Renamed from num_regs.
30191 (rm_start): Renamed from start.
30192 (rm_end): Renamed from end.
30194 (re_set_syntax, re_compile_pattern, re_compile_fastmap):
30195 (re_search, re_search_2, re_match, re_match_2, re_set_registers):
30196 Prepend __ to parameter names.
30198 Undo yesterday's changes.
30200 2005-08-24 Paul Eggert <eggert@cs.ucla.edu>
30202 * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
30203 supersedes it. Add glibc bugs 1237, 1238, 1240. Comment out
30206 2005-08-24 Jim Meyering <jim@meyering.net>
30208 Sync from coreutils.
30209 * m4/fcntl-safer.m4: New file.
30211 * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
30212 and object files for this module.
30214 2005-08-24 Jim Meyering <jim@meyering.net>
30216 Sync from coreutils.
30217 * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
30219 2005-08-24 Jim Meyering <jim@meyering.net>
30221 * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
30222 now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
30224 2005-08-24 Jim Meyering <jim@meyering.net>
30226 * modules/fcntl-safer: New module.
30227 * modules/fts (Depends-on): Add fcntl-safer.
30228 * MODULES.html.sh (File descriptor based Input/Output):
30231 2005-08-24 Bruno Haible <bruno@clisp.org>
30233 Support for unit test modules.
30234 * modules/README: Mention tests modules.
30235 * modules/TEMPLATE-TESTS: New file.
30236 * gnulib-tool: New options --extract-tests-module, --with-tests and
30237 --tests-base (unused for the moment).
30238 (testsbase, inctests): New variables.
30239 (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
30240 (func_verify_module): Exclude TEMPLATE-TESTS.
30241 (func_verify_nontests_module, func_verify_tests_module): New functions.
30242 (func_get_dependencies): Add implicit dependency for tests modules.
30243 (func_get_tests_module): New function.
30244 (func_modules_transitive_closure): When --with-tests was specified,
30245 include the unit tests as well, unless explicitly avoided.
30246 (func_emit_lib_Makefile_am): Ignore the tests modules here.
30247 (func_emit_tests_Makefile_am): New function.
30248 (func_create_testdir): When --with-tests was specified, emit a
30250 * MODULES.html.sh (Future developments): Update.
30252 2005-08-24 Bruno Haible <bruno@clisp.org>
30254 * modules/tls-tests: New file.
30255 * tests/test-tls.c: New file, from GNU gettext.
30257 2005-08-24 Bruno Haible <bruno@clisp.org>
30259 * modules/lock-tests: New file.
30260 * tests/test-lock.c: New file, from GNU gettext.
30262 2005-08-24 Bruno Haible <bruno@clisp.org>
30264 * lib/lock.h: Add multiple inclusion guard.
30265 * lib/tls.h: Add multiple inclusion guard.
30267 2005-08-24 Bruno Haible <bruno@clisp.org>
30269 * gnulib-tool: Add support for the --aux-dir option to
30270 --create-testdir, --create-megatestdir, --test, --megatest.
30271 (func_create_testdir, func_create_megatestdir): Optionally emit a
30272 AC_CONFIG_AUX_DIR directive.
30273 (create-testdir, create-megatestdir, test, megatest): Provide a
30274 default value for $auxdir.
30276 2005-08-24 Bruno Haible <bruno@clisp.org>
30278 * gnulib-tool (import): Use compound statement instead of subshell
30281 2005-08-24 Bruno Haible <bruno@clisp.org>
30283 * gnulib-tool (import): Change --aux-dir default to "build-aux".
30285 2005-08-24 Bruno Haible <bruno@clisp.org>
30287 * gnulib-tool (func_version): Update.
30289 2005-08-24 Bruno Haible <bruno@clisp.org>
30291 * gnulib-tool (func_import, func_create_testdir,
30292 func_create_megatestdir): Quote all autoconf macro arguments.
30294 2005-08-24 Bruno Haible <bruno@clisp.org>
30296 * gnulib-tool (func_create_megatestdir): Call autoreconf without the
30297 option --force, because --force causes the aclocal.m4 of each
30298 subdirectory to be newer than the corresponding config.h.in.
30300 2005-08-23 Paul Eggert <eggert@cs.ucla.edu>
30302 * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
30303 All contents moved to gl_REGEX.
30304 (gl_REGEX): Don't bother checking whether lib/regex.c exists;
30305 assume that it does.
30307 2005-08-23 Paul Eggert <eggert@cs.ucla.edu>
30309 * lib/regex.h (REG_NOSYS)
30310 [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
30311 Define, since POSIX requires it as of 2001.
30313 [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
30314 New private symbol, used to keep the enum signed in all cases.
30315 * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
30317 <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
30319 * lib/regex_internal.c (re_string_skip_chars, register_state):
30321 Remove forward decls; no longer needed now that we use prototypes.
30322 * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
30323 (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
30324 (clean_state_log_if_needed): Likewise.
30326 2005-08-23 Paul Eggert <eggert@cs.ucla.edu>
30328 * config/srclist.txt: Add glibc bugs 1231-1233.
30330 2005-08-20 Paul Eggert <eggert@cs.ucla.edu>
30332 Fix problems reported by Sam Steingold in
30333 <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
30334 * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
30335 assumed that reg_errcode_t is a signed type, which is not
30336 necessarily true if _XOPEN_SOURCE is not defined.
30337 * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
30338 since some compilers warn about it otherwise.
30340 2005-08-20 Paul Eggert <eggert@cs.ucla.edu>
30342 * lib/regcomp.c (create_initial_state): Remove duplicate decl.
30343 (init_word_char, create_initial_state, duplicate_node_closure):
30344 (fetch_token, peek_token_bracket, build_range_exp):
30345 (build_collating_symbol): Remove forward decls; no longer needed
30346 now that we use prototypes.
30349 (re_compile_pattern, re_set_syntax, re_compile_fastmap):
30350 (re_compile_fastmap_iter, regcomp, regerror, regfree):
30351 (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
30352 (create_initial_state, optimize_utf8, analyze, postorder, preorder):
30353 (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
30354 (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
30355 (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
30356 (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
30357 (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
30358 (build_range_exp, build_collating_symbol, parse_bracket_exp):
30359 (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
30360 (build_charclass, build_charclass_op, fetch_number, create_tree):
30361 (create_token_tree, mark_opt_subexp, duplicate_tree):
30362 Use prototypes rather than old-style definitions.
30364 * lib/regex_internal.c:
30365 (re_string_allocate, re_string_construct, re_string_realloc_buffers):
30366 (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
30367 (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
30368 (re_string_reconstruct, re_string_peek_byte_case):
30369 (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
30370 (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
30371 (re_node_set_init_copy, re_node_set_add_intersect):
30372 (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
30373 (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
30374 (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
30375 (re_acquire_state, re_acquire_state_context, register_state):
30376 (create_ci_newstate, create_cd_newstate, free_state):
30378 * lib/regexec.c (regexec, re_match, re_search, re_match_2,
30380 (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
30381 (re_search_internal, prune_impossible_nodes):
30382 (acquire_init_state_context, check_matching, static):
30383 (check_halt_node_context, check_halt_state_context, proceed_next_node):
30384 (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
30385 (update_regs, sift_states_backward, build_sifted_states):
30386 (clean_state_log_if_needed, merge_state_array):
30387 (update_cur_sifted_state, add_epsilon_src_nodes):
30388 (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
30389 (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
30390 (sift_states_iter_mb, transit_state, merge_state_with_log, static):
30391 (find_recover_state, check_subexp_matching_top, transit_state_mb):
30392 (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
30393 (check_arrival, check_arrival_add_next_nodes):
30394 (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
30395 (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
30396 (check_node_accept_bytes, check_node_accept, extend_buffers):
30397 (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
30398 (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
30402 * lib/regex_internal.h:
30403 (re_string_allocate, re_string_construct, re_string_reconstruct):
30404 (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
30405 (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
30406 (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
30407 (re_string_context_at, re_string_peek_byte_case):
30408 (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
30409 is defined, since we now use prototypes always.
30411 * lib/regex.h (_RE_ARGS): Remove. No longer needed, since we assume
30412 C89 or better. All uses removed.
30414 2005-08-20 Paul Eggert <eggert@cs.ucla.edu>
30416 * config/srclist.txt: Add glibc bugs 1220-1227.
30418 2005-08-20 Jim Meyering <jim@meyering.net>
30420 * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
30421 of unused local, dfa.
30423 2005-08-20 Bruno Haible <bruno@clisp.org>
30425 * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
30427 2005-08-19 Paul Eggert <eggert@cs.ucla.edu>
30429 * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
30430 (re_node_set_insert_last, re_dfa_add_node):
30431 Rename local variables to avoid GCC shadowing warnings.
30433 2005-08-19 Paul Eggert <eggert@cs.ucla.edu>
30435 * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
30436 [defined lint]: Suppress bogus uninitialized-variable warnings.
30438 * lib/regcomp.c (duplicate_node): Return new index, not an error code,
30439 and let the caller return REG_ESPACE if out of space. This
30440 removes an uninitialied-variable warning with GCC 4.0.1, and also
30441 avoids taking the address of a local variable. All callers
30444 2005-08-19 Paul Eggert <eggert@cs.ucla.edu>
30446 * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
30447 $LIBCSRC/posix/regexec.c.
30448 Add glibc bug 1217 for regcomp.c.
30450 2005-08-19 Jim Meyering <jim@meyering.net>
30452 * lib/regexec.c (proceed_next_node): Redo local variables to
30453 avoid GCC shadowing warnings.
30455 2005-08-18 Bruno Haible <bruno@clisp.org>
30457 * lib/strstr.c (strstr): Fix return value in multibyte case.
30458 * lib/strcasestr.c (strcasestr): Likewise.
30460 2005-08-17 Paul Eggert <eggert@cs.ucla.edu>
30462 * lib/regex.h: Remove useless space-before-tab. From coreutils.
30464 2005-08-17 Jim Meyering <jim@meyering.net>
30466 Make the %s format (seconds since the epoch) work for a negative
30467 number and when used with a zero-padded field width, e.g. %015s.
30469 * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
30470 label so that it precedes the code to set `digits'. Otherwise,
30471 %0Ns wouldn't work. Before this change, `date -d @-22 +%05s' would
30472 print `00-22'. Now, it prints `-0022', as it should.
30474 2005-08-17 Bruno Haible <bruno@clisp.org>
30476 * modules/strstr (Files): Add m4/mbrtowc.m4.
30477 (Depends-on): Add mbuiter.
30479 2005-08-17 Bruno Haible <bruno@clisp.org>
30481 * modules/strcasestr: New file.
30482 * MODULES.html.sh (String handling, based on ANSI C 89): Add
30485 2005-08-17 Bruno Haible <bruno@clisp.org>
30487 * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
30489 2005-08-17 Bruno Haible <bruno@clisp.org>
30491 * modules/mbuiter: New file.
30492 * MODULES.html.sh (Extended multibyte and wide character utilities):
30495 2005-08-17 Bruno Haible <bruno@clisp.org>
30497 * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
30498 (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
30500 2005-08-17 Bruno Haible <bruno@clisp.org>
30502 * m4/strcasestr.m4: New file.
30504 2005-08-17 Bruno Haible <bruno@clisp.org>
30506 * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
30507 * lib/strstr.c: Completely rewritten, with multibyte locale support.
30509 2005-08-17 Bruno Haible <bruno@clisp.org>
30511 * lib/strcasestr.h: New file.
30512 * lib/strcasestr.c: New file.
30514 2005-08-17 Bruno Haible <bruno@clisp.org>
30516 * lib/strcasecmp.c: Use mbuiter.h.
30518 2005-08-17 Bruno Haible <bruno@clisp.org>
30520 * lib/mbuiter.h: New file.
30522 2005-08-16 Paul Eggert <eggert@cs.ucla.edu>
30524 * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
30525 of gl_GETOPT_SUBSTITUTE. That way, if both gl_GETOPT_SUBSTITUTE
30526 and gl_GETOPT are both invoked via different paths (as happens
30527 with GNU tar CVS because it uses both argp and getopt), the former
30530 2005-08-16 Bruno Haible <bruno@clisp.org>
30532 * modules/tls: New file.
30533 * MODULES.html.sh (Multithreading): Add tls.
30535 2005-08-16 Bruno Haible <bruno@clisp.org>
30537 * modules/strnlen1: New file.
30538 * MODULES.html.sh (String handling): Add strnlen1.
30540 2005-08-16 Bruno Haible <bruno@clisp.org>
30542 * modules/strcase (Files): Add m4/mbrtowc.m4.
30543 (Depends-on): Add strnlen1, mbchar.
30545 2005-08-16 Bruno Haible <bruno@clisp.org>
30547 * modules/mbiter: New file.
30548 * MODULES.html.sh (Extended multibyte and wide character utilities):
30551 2005-08-16 Bruno Haible <bruno@clisp.org>
30553 * modules/mbfile: New file.
30554 * MODULES.html.sh (Extended multibyte and wide character utilities):
30557 2005-08-16 Bruno Haible <bruno@clisp.org>
30559 * modules/mbchar: New file.
30560 * MODULES.html.sh (Extended multibyte and wide character utilities):
30563 2005-08-16 Bruno Haible <bruno@clisp.org>
30565 * m4/tls.m4: New file, from GNU gettext.
30567 2005-08-16 Bruno Haible <bruno@clisp.org>
30569 * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
30571 (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
30573 2005-08-16 Bruno Haible <bruno@clisp.org>
30575 * m4/mbiter.m4: New file.
30577 2005-08-16 Bruno Haible <bruno@clisp.org>
30579 * m4/mbfile.m4: New file.
30581 2005-08-16 Bruno Haible <bruno@clisp.org>
30583 * m4/mbchar.m4: New file.
30585 2005-08-16 Bruno Haible <bruno@clisp.org>
30587 * lib/tls.h: New file, from GNU gettext.
30588 * lib/tls.c: New file, from GNU gettext.
30590 2005-08-16 Bruno Haible <bruno@clisp.org>
30592 * lib/strnlen1.h: New file.
30593 * lib/strnlen1.c: New file.
30595 2005-08-16 Bruno Haible <bruno@clisp.org>
30597 * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
30598 (mbi_init): Update.
30599 (mbi_avail, mbi_advance): Let the iteration end before the terminating
30600 NUL byte, not after it.
30602 2005-08-16 Bruno Haible <bruno@clisp.org>
30604 * lib/strcase.h (strcasecmp): Add note in comments.
30605 * lib/strncasecmp.c: Use code from strcasecmp.c.
30606 * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
30607 (strcasecmp): Work correctly in multibyte locales.
30609 2005-08-16 Bruno Haible <bruno@clisp.org>
30611 * lib/mbiter.h: New file.
30613 2005-08-16 Bruno Haible <bruno@clisp.org>
30615 * lib/mbfile.h: New file.
30617 2005-08-16 Bruno Haible <bruno@clisp.org>
30619 * lib/mbchar.h: New file.
30620 * lib/mbchar.c: New file.
30622 2005-08-16 Bruno Haible <bruno@clisp.org>
30624 * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
30625 the valid ones. Makes the comparison operations transitive:
30626 cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
30627 * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
30629 2005-08-15 Simon Josefsson <jas@extundo.com>
30631 * modules/ssize_t (License): Change to 'unlimited'.
30633 * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
30635 2005-08-15 Paul Eggert <eggert@cs.ucla.edu>
30637 * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
30638 Add comments for each pending glibc patch.
30640 2005-08-15 Bruno Haible <bruno@clisp.org>
30642 * lib/regex.h (__restrict_arr): Don't define to __restrict if
30643 __cplusplus is defined.
30645 2005-08-14 Jim Meyering <jim@meyering.net>
30647 Sync from coreutils.
30649 * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
30650 Use the hash-table-based cycle-detection code not just when
30651 FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
30652 Reported by James Youngman in
30653 <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
30654 * lib/fts_.h: Mention that with FTS_LOGICAL, we use
30655 FTS_TIGHT_CYCLE_CHECK.
30656 * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
30657 s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
30659 * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
30660 * lib/fts.c (fd_safer): Remove decl.
30661 Include fcntl--.h rather than unistd-safer.h
30662 (fts_safe_changedir): Don't call fd_safer; no longer needed
30663 now that we include fcntl--.h.
30665 2005-08-12 Simon Josefsson <jas@extundo.com>
30667 * modules/getndelim2: Use ssize_t module.
30668 * modules/getnline: Likewise.
30669 * modules/safe-read: Likewise.
30670 * modules/xreadlink: Likewise.
30672 * modules/ssize_t: New file.
30674 2005-08-12 Simon Josefsson <jas@extundo.com>
30676 * m4/readline.m4: Look for termcap, curses or ncurses if required.
30678 2005-08-12 Simon Josefsson <jas@extundo.com>
30680 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
30683 2005-08-12 Simon Josefsson <jas@extundo.com>
30685 * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
30686 readline, getdelim and check_version.
30687 (Support for systems lacking ISO C 99: Sizes of integer types):
30690 2005-08-12 Bruno Haible <bruno@clisp.org>
30692 * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
30694 2005-08-11 Simon Josefsson <jas@extundo.com>
30696 * modules/readline: New file.
30698 * modules/strnlen (Files): Add strnlen.h.
30700 2005-08-11 Simon Josefsson <jas@extundo.com>
30702 * m4/readline.m4: New file.
30704 2005-08-11 Simon Josefsson <jas@extundo.com>
30706 * lib/readline.h, readline.c: New file.
30708 2005-08-11 Simon Josefsson <jas@extundo.com>
30710 * doc/gnulib.texi (Initial import, Finishing touches): Mention
30713 2005-08-11 Bruno Haible <bruno@clisp.org>
30715 * lib/strnlen.h (strnlen): Change parameter name to match comment.
30717 2005-08-10 Stepan Kasal <kasal@ucw.cz>
30719 * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
30721 2005-08-10 Simon Josefsson <jas@extundo.com>
30723 * tests/test-iconvme.c: New file.
30725 2005-08-10 Simon Josefsson <jas@extundo.com>
30727 * m4/strnlen.m4: New file.
30729 * m4/strndup.m4: Don't check for strnlen declaration, done in
30732 2005-08-10 Simon Josefsson <jas@extundo.com>
30734 * lib/strndup.c: Use strnlen.h.
30736 * lib/strnlen.h: New file.
30738 2005-08-08 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny change)
30742 2005-08-02 Simon Josefsson <jas@extundo.com>
30744 * modules/readline: New file.
30746 2005-08-02 Simon Josefsson <jas@extundo.com>
30748 * modules/getdelim: New file.
30750 * modules/getline: Rewrite, don't use getndelim2.
30752 2005-08-02 Simon Josefsson <jas@extundo.com>
30754 * m4/getline.m4: Separate out getdelim stuff into separate module.
30756 * m4/getdelim.m4: New file.
30758 2005-08-02 Simon Josefsson <jas@extundo.com>
30760 * lib/getline.h, getline.c: Rewrite.
30762 * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
30764 2005-07-31 Bruno Haible <bruno@clisp.org>
30766 * lib/lock.h (gl_lock_initializer): New macro.
30767 (gl_lock_define_initialized): Use it.
30768 (gl_rwlock_initializer): New macro.
30769 (gl_rwlock_define_initialized): Use it.
30770 (gl_recursive_lock_initializer): New macro.
30771 (gl_recursive_lock_define_initialized): Use it.
30773 2005-07-30 Karl Berry <karl@gnu.org>
30775 * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
30776 Report from Ben Pfaff, regarding getopt.
30778 2005-07-26 Paul Eggert <eggert@cs.ucla.edu>
30780 Add support to getopt for Emacs, which doesn't use LIBOBJS in the
30782 * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
30783 (gl_GETOPT_SUBSTITUTE): Use it. Invoke gl_PREREQ_GETOPT.
30784 (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
30785 (gl_GETOPT): Use the new macros. Most of the implementation
30786 is moved to the new macros. This is for programs like Emacs
30787 that don't want all the functionality of gl_GETOPT.
30789 2005-07-26 Bruno Haible <bruno@clisp.org>
30791 * m4/lock.m4: Update from GNU gettext.
30793 2005-07-26 Bruno Haible <bruno@clisp.org>
30795 * lib/lock.h: Update from GNU gettext.
30796 * lib/lock.c: Update from GNU gettext.
30798 2005-07-25 Paul Eggert <eggert@cs.ucla.edu>
30800 * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
30801 obsolescent AC_TRY_RUN. Include the default includes files, for
30804 2005-07-24 Bruno Haible <bruno@clisp.org>
30806 * modules/visibility: New file.
30807 * MODULES.html.sh (Misc): Add visibility.
30809 2005-07-24 Bruno Haible <bruno@clisp.org>
30811 * m4/visibility.m4: New file.
30813 2005-07-24 Bruno Haible <bruno@clisp.org>
30815 * doc/visibility.texi: New file.
30817 2005-07-22 Bruno Haible <bruno@clisp.org>
30819 * modules/alloca-opt (Makefile.am): Remove explicit dependency on
30820 $(ALLOCA_H), redundant through BUILT_SOURCES.
30821 * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
30822 redundant through BUILT_SOURCES.
30823 * modules/byteswap (Makefile.am): Remove explicit dependency on
30824 $(BYTESWAP_H), redundant through BUILT_SOURCES.
30825 * modules/fnmatch (Makefile.am): Remove explicit dependency on
30826 $(FNMATCH_H), redundant through BUILT_SOURCES.
30827 * modules/getopt (Makefile.am): Remove explicit dependency on
30828 $(GETOPT_H), redundant through BUILT_SOURCES.
30829 * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
30830 redundant through BUILT_SOURCES.
30831 * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
30832 redundant through BUILT_SOURCES.
30833 * modules/stdbool (Makefile.am): Remove explicit dependency on
30834 $(STDBOOL_H), redundant through BUILT_SOURCES.
30835 * modules/stdint (Makefile.am): Remove explicit dependency on
30836 $(STDINT_H), redundant through BUILT_SOURCES.
30837 * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
30838 Remove explicit dependency on $(SYSEXITS_H).
30839 Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
30841 2005-07-18 Simon Josefsson <jas@extundo.com>
30843 * lib/check-version.c (check_version): Accept identical versions too.
30845 2005-07-18 Bruno Haible <bruno@clisp.org>
30847 * modules/lock: New file.
30848 * MODULES.html.sh (Multithreading): New section.
30850 2005-07-18 Bruno Haible <bruno@clisp.org>
30852 * m4/lock.m4: New file, from GNU gettext.
30854 2005-07-18 Bruno Haible <bruno@clisp.org>
30856 * lib/lock.h: New file, from GNU gettext.
30857 * lib/lock.c: New file, from GNU gettext.
30859 2005-07-18 Bruno Haible <bruno@clisp.org>
30861 * lib/lock.h (gl_once_t): New type.
30862 (gl_once_define, gl_once): New macros.
30863 * lib/lock.c (fresh_once): New variable.
30864 (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
30867 2005-07-16 Simon Josefsson <jas@extundo.com>
30869 * doc/gnulib.texi (Library version handling): Add ELF symbol collision
30870 workaround, suggested by Bruno.
30872 2005-07-15 Paul Eggert <eggert@cs.ucla.edu>
30874 * modules/xalloc (Depends-on): Add xalloc-die.
30875 * modules/xvasprintf (Depends-on): Add xalloc-die.
30877 2005-07-15 Paul Eggert <eggert@cs.ucla.edu>
30879 * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
30880 with a minor change.
30882 2005-07-15 Bruno Haible <bruno@clisp.org>
30884 * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
30885 When using lib/poll.c, define poll as rpl_poll.
30887 2005-07-14 Paul Eggert <eggert@cs.ucla.edu>
30889 * modules/argp (Depends-on): Remove unlocked-io.
30891 2005-07-14 Derek Price <derek@ximbiot.com>
30893 * m4/glob.m4 (gl_GLOB): Cache glob interface check result. Add check
30894 for glob symlink bug.
30896 2005-07-14 Bruno Haible <bruno@clisp.org>
30898 * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
30899 Instead, test for *_unlocked function declarations directly.
30901 2005-07-11 Simon Josefsson <jas@extundo.com>
30903 * modules/size_max: New file.
30905 * modules/xsize: Depend on size_max module for size_max.m4.
30907 2005-07-11 Simon Josefsson <jas@extundo.com>
30909 * lib/size_max.h: New file.
30911 2005-07-11 Paul Eggert <eggert@cs.ucla.edu>
30913 * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
30914 copyright symbol and the year.
30915 * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
30916 (version_etc_va): Use parameterized copyright notice.
30917 Reword to conform to the current GNU coding standards.
30919 2005-07-11 Karl Berry <karl@gnu.org>
30921 * doc/gnulib.texi (Quoting): new node.
30922 (Initial import): more info, from Patrice.
30924 2005-07-11 Bruno Haible <bruno@clisp.org>
30926 * gnulib-tool (func_usage): Document option --avoid.
30927 (Command line options): Handle --avoid.
30928 (func_acceptable): New function.
30929 (func_modules_transitive_closure): Use it.
30931 2005-07-11 Bruno Haible <bruno@clisp.org>
30933 * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
30934 Reported by Jim Meyering.
30936 2005-07-10 Bruno Haible <bruno@clisp.org>
30938 * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
30939 Needed when size_t is smaller than 'unsigned int'.
30940 Reported by Paul Eggert.
30942 2005-07-09 Sergey Poznyakoff <gray@gnu.org.ua>
30944 * modules/argp (Depends-on): Add unlocked-io
30946 2005-07-09 Sergey Poznyakoff <gray@gnu.org.ua>
30948 * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
30951 2005-07-08 Paul Eggert <eggert@cs.ucla.edu>
30953 * config/srclist.txt: Comment out regcomp.c, since we have a porting
30956 2005-07-08 Eric Blake <ebb9@byu.net> (tiny change)
30957 and Paul Eggert <eggert@cs.ucla.edu>
30959 * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
30960 in wint_t, not wchar_t. Remove now-unnecessary cast.
30962 2005-07-07 Paul Eggert <eggert@cs.ucla.edu>
30964 * modules/regex (Files): Add lib/regex_internal.c,
30965 lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
30966 (Depends-on): Add extensions.
30967 (Makefile.am): Remove lib_SOURCES; now done by m4 code.
30969 2005-07-07 Paul Eggert <eggert@cs.ucla.edu>
30971 * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
30973 * m4/same.m4 (gl_SAME): Likewise.
30974 Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
30976 * m4/regex.m4: Adjust to new libc regex implementation.
30977 (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
30978 all the .c and .h parts of (the new) regex.
30979 Quote the m4 stuff better.
30980 Check for RE_ICASE bug of old gnulib.
30981 Check for REG_STARTEND of recent libc.
30982 Rename local variables from jm_* to gl_*.
30983 Quote operand of "test -f".
30984 Say "recent enough" version of libc, not "version 2".
30985 (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
30986 prerequisite module. Remove AC_HEADER_STDC; no longer needed.
30987 Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
30988 Remove check for btowc, isascii.
30989 Require AM_LANGINFO_CODESET.
30991 2005-07-07 Paul Eggert <eggert@cs.ucla.edu>
30993 * lib/regex.c, regex.h: Sync from libc.
30994 * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
30996 New files, synced from libc, except that regex_internal.h
30997 currently has a small porting fix.
30999 2005-07-07 Paul Eggert <eggert@cs.ucla.edu>
31001 * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
31002 regex_internal.c, regexec.c.
31003 Add regex_internal.h too, but as a comment, since the libc version
31004 is currently broken in gnulib mode.
31006 2005-07-06 Paul Eggert <eggert@cs.ucla.edu>
31008 Support programs like Emacs that use gnulib but not gettext.
31009 * MODULES.html.sh (Internationalization functions): Add gettext-h.
31010 * modules/gettext-h: New file.
31011 * modules/gettext (Files): Remove lib/gettext.h.
31012 (Depends-on): Add gettext-h.
31013 (Makefile.am): Remove lib_SOURCES.
31014 * modules/argmatch, modules/c-stack, modules/closeout:
31015 * modules/copy-file, modules/csharpcomp, modules/csharpexec:
31016 * modules/execute, modules/file-type, modules/getaddrinfo:
31017 * modules/getopt, modules/human, modules/javacomp:
31018 * modules/javaexec, modules/mkdir-p, modules/obstack:
31019 * modules/openat, modules/pagealign_alloc, modules/pipe:
31020 * modules/quotearg, modules/regex, modules/rpmatch:
31021 * modules/unicodeio, modules/userspec, modules/version-etc:
31022 * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
31024 Depend on gettext-h, not gettext.
31026 2005-07-05 Paul Eggert <eggert@cs.ucla.edu>
31028 * gnulib-tool (func_import): Add support for 'public domain' license.
31029 * modules/alloca, modules/atexit, modules/memmove:
31030 Now public domain, not GPL.
31031 * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
31032 * modules/realloc, modules/strerror, modules/strtod:
31035 2005-07-05 Bruno Haible <bruno@clisp.org>
31037 * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
31038 autoconf CVS. Needed for mingw.
31040 2005-07-03 Paul Eggert <eggert@cs.ucla.edu>
31042 Remove the dependency of the strftime module on the tzset module.
31043 * modules/strftime (Depends-on): Remove dependency on tzset.
31045 2005-07-03 Paul Eggert <eggert@cs.ucla.edu>
31047 Remove the dependency of the strftime module on the tzset module.
31048 * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
31049 gl_FUNC_TZSET_CLOBBER.
31051 2005-07-03 Paul Eggert <eggert@cs.ucla.edu>
31053 Remove the dependency of the strftime module on the tzset module.
31054 * lib/strftime.c (my_strftime)
31055 [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
31056 Copy the input structure, to work around some of the bug with
31057 Solaris 2.5.1 and Solaris 2.6. If you still care about these old
31058 Solaris releases, you should also use the tzset module, but we won't
31059 require it as a dependency any more since we don't want LGPLed code
31060 to depend on GPLed code.
31062 2005-07-02 Jim Meyering <jim@meyering.net>
31064 * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
31065 * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
31066 * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
31067 Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
31069 2005-07-02 Jim Meyering <jim@meyering.net>
31071 * lib/backupfile.c (backup_args): Change a `0' to NULL.
31073 2005-07-01 Paul Eggert <eggert@cs.ucla.edu>
31075 * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
31076 declares only 'struct timespec;' (!).
31078 2005-07-01 Jim Meyering <jim@meyering.net>
31080 * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
31081 * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
31082 * lib/save-cwd.c, tempname.c:
31083 Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
31084 and don't include <sys/file.h>).
31086 2005-06-29 Jim Meyering <jim@meyering.net>
31088 * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
31089 type name. Use the variable name instead.
31090 * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
31093 2005-06-28 Simon Josefsson <jas@extundo.com>
31095 * modules/check-version (Files): Add check-version.m4.
31097 2005-06-28 Simon Josefsson <jas@extundo.com>
31099 * m4/check-version.m4: New file, suggested by Jim Meyering
31100 <jim@meyering.net>.
31102 2005-06-28 Simon Josefsson <jas@extundo.com>
31104 * lib/check-version.h, lib/check-version.c: New files.
31106 2005-06-28 Simon Josefsson <jas@extundo.com>
31108 * lib/base64.c (base64_encode): Indent. Rename 'b64' to avoid
31109 collision with global variable. Better indentation. Don't
31110 increment buffer pointer beyond buffer end. Based on comments
31111 from Paul Eggert <eggert@cs.ucla.edu>.
31113 * lib/base64.h: Indent.
31115 2005-06-28 Simon Josefsson <jas@extundo.com>
31117 * doc/gnulib.texi (Library version handling): New section.
31119 2005-06-28 Jim Meyering <jim@meyering.net>
31121 * check-module (find_included_lib_files): Hard-code another
31122 pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
31123 but modules/fts-lgpl (correctly) does not list those files.
31125 * modules/canonicalize (Files): Add lib/pathmax.h.
31127 2005-06-25 Simon Josefsson <jas@extundo.com>
31129 * modules/check-version: New file.
31131 2005-06-24 Paul Eggert <eggert@cs.ucla.edu>
31133 * lib/canon-host.c (canon-host): Append trailing "," to 0 in
31134 initializer of struct addrinfo, as an indication that we don't
31135 care how many members the structure has.
31137 2005-06-24 Derek Price <derek@ximbiot.com>
31138 and Bruno Haible <bruno@clisp.org>
31140 Remove stat module & update lstat.
31141 * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
31142 AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
31143 * m4/stat.m4: Remove this file.
31145 2005-06-24 Derek Price <derek@ximbiot.com>
31146 and Bruno Haible <bruno@clisp.org>
31148 Remove stat module & update lstat.
31149 * lib/stat.c: Remove this file...
31150 (slash_aware_lstat): ...moving this content and its support...
31151 * lib/lstat.c (rpl_lstat): ...into here.
31152 * lib/lstat.h: New file.
31154 2005-06-24 Derek Price <derek@ximbiot.com>
31155 and Bruno Haible <bruno@clisp.org>
31157 Remove stat module & update lstat.
31158 * config/srclist.txt (libc sources): Remove stat.
31160 2005-06-24 Derek Price <derek@ximbiot.com>
31161 and Bruno Haible <bruno@clisp.org>
31163 Remove stat module & update lstat.
31164 * MODULES.html.sh (stat): Remove.
31165 * MODULES.html: Regenerated.
31166 * modules/lstat (Description): Correct function name.
31167 (Files): Add "lstat.h".
31168 (Depends-on): Remove stat, add xalloc, stat-macros.
31169 * modules/stat: Remove this file.
31170 (Include): Add "lstat.h", remove <sys/stat.h>.
31172 2005-06-23 Paul Eggert <eggert@cs.ucla.edu>
31174 * lib/mktime.c: Include <string.h> even if !DEBUG. (From glibc.)
31175 (ranged_convert): Don't save conversion in a temporary struct.
31176 This causes a warning with GCC 4.0.0, and anyway in the typical
31177 case it's not worth the extra 100 bytes or so of code.
31178 (ranged_convert, __mktime_internal): When calling a function via a
31179 pointer P, use P () rather than (*P) (), as we now assume C89 or
31182 2005-06-22 Paul Eggert <eggert@cs.ucla.edu>
31184 * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
31185 "who -r" failed to give output. Problem reported by Tim Waugh.
31187 * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
31188 (xcalloc): Use it to avoid needless tests.
31189 Problem reported by Jim Meyering.
31191 2005-06-20 Derek Price <derek@ximbiot.com>
31193 * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
31194 unnecessary for Autoconfs > 2.59c.
31196 2005-06-16 Sergey Poznyakoff <gray@Mirddin.farlep.net>
31198 * lib/argp.h (__option_is_short): Check upper limit of
31199 __key. Isprint() requires its argument to have the value
31200 of an unsigned char or EOF.
31202 2005-06-16 Jim Meyering <jim@meyering.net>
31204 * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
31205 when either N or S is zero.
31207 2005-06-16 Derek Price <derek@ximbiot.com>
31209 * m4/bison.m4: Declare YACC & YFLAGS precious.
31211 2005-06-10 Paul Eggert <eggert@cs.ucla.edu>
31213 * lib/fnmatch.c (fnmatch): If there is an encoding error in a
31214 multibyte string or pattern, fall back on unibyte matching.
31215 Problem reported by James Youngman.
31217 2005-06-08 Bruno Haible <bruno@clisp.org>
31219 * modules/csharpcomp: New file.
31220 * MODULES.html.sh (C#): Add csharpcomp.
31222 2005-06-08 Bruno Haible <bruno@clisp.org>
31224 * m4/csharpcomp.m4: New file, from GNU gettext.
31226 2005-06-08 Bruno Haible <bruno@clisp.org>
31228 * lib/csharpcomp.h: New file, from GNU gettext.
31229 * lib/csharpcomp.c: New file, from GNU gettext.
31230 * lib/csharpcomp.sh.in: New file, from GNU gettext.
31232 2005-06-08 Bruno Haible <bruno@clisp.org>
31234 * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
31237 2005-06-07 Derek Price <derek@ximbiot.com>
31240 * lib/glob_.h: Indent nested #ifdef.
31242 2005-06-02 Paul Eggert <eggert@cs.ucla.edu>
31244 Sync from coreutils.
31245 Use "file name" when talking about file names, instead of "filename"
31246 or "path", as per the GNU coding standards.
31247 * lib/mkdir-p.c: Renamed from makepath.c.
31248 (make_dir_parents): Renamed from make_path. All callers changed.
31249 * lib/mkdir-p.h: Likewise. All includers changed.
31250 * lib/filenamecat.c: Renamed from path-concat.c.
31251 (file_name_concat): Renamed from path_concat. All callers changed.
31252 [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
31253 * lib/filenamecat.h: Likewise. All includers changed.
31254 * lib/acl.c: Don't use "path" or "filename" to mean "file name"
31255 in comments or local variable names.
31256 * lib/basename.c: Likewise.
31257 * lib/canonicalize.c, canonicalize.h: Likewise.
31258 * lib/dirname.c, dirname.h: Likewise.
31259 * lib/euidaccess.c: Likewise.
31260 * lib/exclude.c: Likewise
31261 * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
31262 * lib/fsusage.c, fsuage.h: Likewise.
31263 * lib/fts.c, fts_.h: Likewise.
31264 * lib/getcwd.c: Likewise.
31265 * lib/getloadavg.c: Likewise.
31266 * lib/mkstemp.c: Likewise.
31267 * lib/mountlist.c, mountlist.h: Likewise.
31268 * lib/openat.c, openat.h: Likewise.
31269 * lib/readlink-stub.c: Likewise.
31270 * lib/readutmp.c, readutmp.h: Likewise.
31271 * lib/rename.c: Likewise.
31272 * lib/rmdir.c: Likewise.
31273 * lib/same.c: Likewise.
31274 * lib/savedir.c: Likewise.
31275 * lib/stripslash.c: Likewise.
31276 * lib/tempname.c: Likewise.
31277 * lib/xreadlink.c: Likewise.
31278 * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
31280 * lib/exclude.h: Likewise.
31282 * lib/euidaccess.c (getuid, getgid, getuid, getegid)
31283 [!defined _POSIX_VERSION]: Remove decls; not needed these days.
31284 * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
31285 [!defined _POSIX_VERSION]: Remove decls; not needed these days.
31286 * lib/pathmax.h: Include <limits.h> unconditionally, since other
31287 files have been getting away with it for years (MORE/BSD 4.3
31289 * lib/userspec.c (getpwnam, getgrnam, getgrgid)
31290 [!defined _POSIX_VERSION]: Remove decls; not needed these days.
31292 * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
31293 Define to 256, not 255, as per modern POSIX.
31295 2005-06-02 Paul Eggert <eggert@cs.ucla.edu>
31297 Sync from coreutils.
31298 Use "file name" when talking about file names, instead of "filename"
31299 or "path", as per the GNU coding standards.
31300 * MODULES.html.sh: mkdir-p renamed from makepath.
31301 filenamecat renamed from path-concat.
31302 * modules/filenamecat: Renamed from modules/path-concat.
31303 (Files): filenamecat.h and filenamecat.c renamed from
31304 path-concat.h and path-concat.c.
31305 (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
31306 (Include): filenamecat.h, not path-concat.h.
31307 * modules/mkdir-p: Renamed from modules/makepath.
31308 (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
31310 (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
31311 (Include): mkdir-p.h, not makepath.h.
31313 2005-06-02 Paul Eggert <eggert@cs.ucla.edu>
31315 Sync from coreutils.
31316 * m4/mkdir-p.m4: Renamed from makepath.m4.
31317 (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH. All uses changed.
31318 Rename files from makepath.c to mkdir-p.c, and from
31319 makepath.h to mkdir-p.h.
31320 * m4/filenamecat.m4: Renamed from path-concat.m4.
31321 (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT. All uses changed.
31322 Rename files from path-concat.c to filenamecat.c,
31323 and from path-concat.h to filenamecat.h.
31324 * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
31325 "file name" in local variables or comments.
31326 * m4/rename.m4: Likewise.
31328 2005-06-01 Bruno Haible <bruno@clisp.org>
31330 * modules/csharpexec: New file.
31331 * MODULES.html.sh (C#): New section.
31333 2005-06-01 Bruno Haible <bruno@clisp.org>
31335 * m4/csharp.m4: New file, from GNU gettext.
31336 * m4/csharpexec.m4: New file, from GNU gettext.
31338 2005-06-01 Bruno Haible <bruno@clisp.org>
31340 * lib/csharpexec.h: New file, from GNU gettext.
31341 * lib/csharpexec.c: New file, from GNU gettext.
31342 * lib/csharpexec.sh.in: New file, from GNU gettext.
31344 2005-05-31 Derek Price <derek@ximbiot.com>
31345 Paul Eggert <eggert@cs.ucla.edu>
31348 * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
31350 2005-05-31 Derek Price <derek@ximbiot.com>
31351 Paul Eggert <eggert@cs.ucla.edu>
31354 * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
31356 2005-05-29 Derek Price <derek@ximbiot.com>
31358 * config/srclist.txt (glob_.h, glob.c): Add these files.
31360 2005-05-29 Derek Price <derek@ximbiot.com>
31362 * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
31363 * modules/glob: New file.
31364 * modules/getlogin_r: Add link to POSIX spec in description.
31366 2005-05-29 Derek Price <derek@ximbiot.com>
31367 Paul Eggert <eggert@cs.ucla.edu>
31369 * m4/glob.m4: New file.
31371 2005-05-29 Derek Price <derek@ximbiot.com>
31372 Paul Eggert <eggert@cs.ucla.edu>
31374 * lib/glob_.h, lib/glob.c: New files.
31376 2005-05-27 Paul Eggert <eggert@cs.ucla.edu>
31378 * modules/fts (Files): Remove m4/inttypes-pri.m4.
31379 * modules/fts-lgpl (Depends-on): Remove gettext.
31381 2005-05-27 Paul Eggert <eggert@cs.ucla.edu>
31383 * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
31384 and don't require gt_INTTYPES_PRI.
31386 2005-05-27 Paul Eggert <eggert@cs.ucla.edu>
31388 * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
31390 * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
31391 the configuration hassle isn't worth it.
31392 Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
31393 (LONGEST_MODIFIER, PRIuMAX): Remove.
31395 2005-05-27 Bruno Haible <bruno@clisp.org>
31397 * lib/getlogin_r.h: Remove second include of <stddef.h>.
31399 2005-05-26 Paul Eggert <eggert@cs.ucla.edu>
31401 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
31402 _POSIX_PTHREAD_SEMANTICS for Solaris.
31404 2005-05-25 Derek Price <derek@ximbiot.com>
31406 * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
31408 2005-05-25 Derek Price <derek@ximbiot.com>
31409 Paul Eggert <eggert@cs.ucla.edu>
31411 * modules/getlogin_r, m4/getlogin_r.m4: New files.
31412 * lib/getlogin_r.c, getlogin_r.h: New files.
31414 2005-05-25 Bruno Haible <bruno@clisp.org>
31415 Derek Price <derek@ximbiot.com>
31417 * lib/getlogin_r.h: Simplify API documentation.
31419 2005-05-23 Derek Price <derek@ximbiot.com>
31421 * modules/minmax (Files): Add m4/minmax.m4.
31422 (configure.ac): Add gl_MINMAX.
31424 2005-05-22 Paul Eggert <eggert@cs.ucla.edu>
31426 * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
31427 so that unistd-safer.h (GPL'ed code) need not be included.
31429 2005-05-22 Bruno Haible <bruno@clisp.org>
31431 * m4/minmax.m4: New file.
31432 Based on a patch by Derek Price <derek@ximbiot.com>.
31434 2005-05-22 Bruno Haible <bruno@clisp.org>
31436 * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
31437 (INT64_MIN): Fix definition.
31438 Suggested by Paul Eggert <eggert@cs.ucla.edu>.
31440 * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
31441 NEED_SIGNED_INT_TYPES.
31443 * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
31444 HAVE_SYSTEM_INTTYPES.
31446 2005-05-22 Bruno Haible <bruno@clisp.org>
31448 * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
31449 Also include <sys/param.h> if it defines MIN, MAX.
31450 Based on a patch by Derek Price <derek@ximbiot.com>.
31452 2005-05-21 Jim Meyering <jim@meyering.net>
31454 * modules/fts (Files): Add m4/inttypes-pri.m4.
31455 (Depends-on): Add lstat and remove gettext. Alphabetize.
31457 2005-05-20 Paul Eggert <eggert@cs.ucla.edu>
31460 * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
31461 (setup_dir, free_dir): New functions.
31462 (enter_dir, leave_dir): Define trivial
31463 alternatives of _LGPL_PACKAGE. Move to fts-cycle.c if !_LGPL_PACKAGE.
31464 (HT_INITIAL_SIZE, ENTER_DIR): Remove. All uses removed.
31465 (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
31466 (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
31467 Move to fts-cycle.c.
31468 (fts_open): Use setup_dir.
31469 (fts_close): Use free_dir.
31470 (fts_read): Have just one copy of the ENTER_DIR code rather than three.
31471 This adds a label and some gotos, but the alternatives were messier.
31472 Check for memory allocation failure when entering a dir.
31473 (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
31474 * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
31475 (FTS): New member fts_cycle, that is a union that contains the
31476 old active_dir_ht and cycle_state. All uses changed to mention
31477 fts_cycle.ht and fts_cycle.state.
31478 * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
31479 fts.c, with the following changes:
31480 (setup_dir, free_dir): New functions.
31481 (enter_dir): Now returns bool. Return true if successful, false
31482 if memory exhausted. All callers changed.
31483 Do not bother partly cleaning up on
31484 memory allocation failure; that is free_dir's job.
31485 However, free ad if hash_insert fails, to avoid memory leak.
31486 (enter_dir, leave_dir): Accommodate change to FTS by inspecting
31487 fts->fts_options to see which union member to use.
31489 2005-05-20 Paul Eggert <eggert@cs.ucla.edu>
31491 * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
31492 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
31494 2005-05-20 Paul Eggert <eggert@cs.ucla.edu>
31496 * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
31498 2005-05-20 Jim Meyering <jim@meyering.net>
31500 * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
31501 Now a macro, to pacify GCC.
31503 2005-05-20 Eric Blake <ebb9@byu.net> (tiny change)
31505 * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
31508 2005-05-20 Eric Blake <ebb9@byu.net> (tiny change)
31510 * lib/chown.c (rpl_chown): Return -1 on failure.
31512 2005-05-18 Paul Eggert <eggert@cs.ucla.edu>
31514 * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
31515 Don't check for stddef.h.
31516 * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
31517 don't use its results.
31518 Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
31519 since we include them unconditionally. Don't require
31520 AM_STDBOOL_H, since stdbool is a prerequisite.
31521 Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
31522 since we assume C89 or better.
31523 Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
31524 as we don't use their results.
31525 Don't check for fchdir, memmove, memset, strrchr, as we use
31526 them unconditionally.
31527 * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
31528 GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
31530 2005-05-18 Paul Eggert <eggert@cs.ucla.edu>
31532 * lib/canonicalize.c: Include canonicalize.h first, to test interface.
31533 Include <stddef.h> unconditionally, since we assume C89 now.
31534 All uses of PTR_INT_TYPE replaced by ptrdiff_t.
31535 * lib/fts.c: Include fts_.h first, to check interface.
31536 Do not include intprops.h; no longer needed.
31537 Include cycle-check.h and hash.h, since fts_.h no longer does.
31538 Remove unnecessary casts of closedir to void.
31539 (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
31540 decide whether to decrement nlinks.
31541 * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
31542 (FTS): Use struct hash_table * instead of Hash_table, so that
31543 we no longer need to include hash.h here.
31545 2005-05-18 Jim Meyering <jim@meyering.net>
31547 * modules/dirfd (License): Change to LGPL. Most of the code
31548 is already in the public domain.
31550 2005-05-18 Jim Meyering <jim@meyering.net>
31552 * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
31553 Reported by Yoann Vandoorselaere.
31555 2005-05-17 Jim Meyering <jim@meyering.net>
31557 * m4/fts.m4: New file, from coreutils.
31559 2005-05-17 Jim Meyering <jim@meyering.net>
31561 * lib/fts.c, lib/fts_.h: New files, from coreutils.
31563 2005-05-14 Paul Eggert <eggert@cs.ucla.edu>
31565 Sync from coreutils.
31566 * m4/unlinkdir.m4: New file.
31568 2005-05-14 Paul Eggert <eggert@cs.ucla.edu>
31570 Sync from coreutils.
31571 * lib/unlinkdir.c, lib/unlinkdir.h: New files.
31572 * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
31573 lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
31574 White space changes only.
31575 * lib/makepath.c (make_path): Port to hosts where leading "//" is
31577 * lib/yesno.c: Include getline.h, not ctype.h.
31578 (yesno): Don't remove leading white space; POSIX doesn't allow it.
31579 Use getline to remove arbitrary restriction on response length.
31581 2005-05-14 Paul Eggert <eggert@cs.ucla.edu>
31583 * config/srclist-update: Spell out "Street" in FSF postal
31584 mail address; this is the style the FSF seems to prefer.
31586 * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
31587 build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
31588 this updates FSF postal mail address.
31590 Sync from coreutils.
31591 * modules/unlinkdir: New file.
31592 * modules/yesno (Depends-on): Add getline.
31593 * MODULES.html.sh (File system functions): Add unlinkdir.
31595 2005-05-13 Paul Eggert <eggert@cs.ucla.edu>
31597 * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
31599 Change the initial comment to refer to GPL, not LGPL.
31600 gnulib-tool will change it to LGPL as needed.
31602 * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
31603 lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
31604 lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
31605 lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
31606 lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
31607 lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
31608 lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
31609 lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
31610 lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
31611 lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
31612 lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
31613 lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
31614 lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
31615 lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
31616 lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
31617 lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
31618 lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
31619 lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
31620 lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
31621 lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
31622 lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
31623 lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
31624 lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
31625 lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
31626 lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
31627 lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
31628 lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
31629 lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
31630 lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
31631 lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
31632 lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
31633 lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
31634 lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
31635 lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
31636 lib/getusershell.c, lib/group-member.c, lib/group-member.h,
31637 lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
31638 lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
31639 lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
31640 lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
31641 lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
31642 lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
31643 lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
31644 lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
31645 lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
31646 lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
31647 lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
31648 lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
31649 lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
31650 lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
31651 lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
31652 lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
31653 lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
31654 lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
31655 lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
31656 lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
31657 lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
31658 lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
31659 lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
31660 lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
31661 lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
31662 lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
31663 lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
31664 lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
31665 lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
31666 lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
31667 lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
31668 lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
31669 lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
31670 lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
31671 lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
31672 lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
31673 lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
31674 lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
31675 lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
31676 lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
31677 lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
31678 lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
31679 lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
31680 lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
31681 lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
31682 lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
31683 lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
31684 lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
31685 lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
31686 lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
31687 lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
31688 lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
31689 lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
31690 lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
31691 lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
31692 lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
31693 lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
31694 lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
31695 lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
31696 lib/yesno.c, lib/yesno.h:
31697 Update FSF postal mail address.
31699 2005-05-13 Paul Eggert <eggert@cs.ucla.edu>
31701 * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
31702 tests/test-memmem.c, tests/test-stpncpy.c:
31703 Update FSF postal mail address.
31705 2005-05-13 Bruno Haible <bruno@clisp.org>
31707 * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
31708 int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
31709 UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
31710 INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
31711 INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
31712 Add support for 64-bit integers in the MSVC compiler.
31714 2005-05-12 Sergey Poznyakoff <gray@Mirddin.farlep.net>
31716 * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
31718 2005-05-12 Eric Blake <ebb9@byu.net> (tiny change)
31720 * gnulib-tool (func_import): Sort and uniquify recommended includes.
31722 2005-05-11 Paul Eggert <eggert@cs.ucla.edu>
31724 * doc/getdate.texi (General date syntax): Don't say that date
31725 date --iso-8601=ns generates acceptable dates; it doesn't yet.
31726 Problem reported by Nic Ferrier.
31728 2005-05-10 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
31730 * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
31731 specified in ai_socktype. Fix invalid ai_protocol
31732 check. ai_protocol is usually set to 0 or depending on
31733 ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP. Checking for
31734 SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid. Set
31735 ai_socktype / ai_protocol in the returned addrinfo structure.
31737 2005-05-10 Simon Josefsson <jas@extundo.com>
31739 * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
31740 Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
31742 2005-05-10 Karl Berry <karl@gnu.org>
31744 * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
31745 (from http://www.gnu.org/licenses).
31746 * doc/COPYING.LIB: also rename to COPYING.LESSER.
31747 * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
31750 2005-05-10 Karl Berry <karl@gnu.org>
31752 * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
31753 (COPYING.DOC): remove.
31755 * config/srclist-update: new FSF address.
31757 2005-05-10 Derek Price <derek@ximbiot.com>
31759 * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
31762 2005-05-09 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
31763 Bruno Haible <bruno@clisp.org>
31765 * modules/inet_ntop: New file.
31766 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
31769 2005-05-09 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
31770 Bruno Haible <bruno@clisp.org>
31772 * m4/inet_ntop.m4: New file.
31774 2005-05-09 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
31775 Bruno Haible <bruno@clisp.org>
31777 * lib/inet_ntop.h: New file.
31778 * lib/inet_ntop.c: New file, from glibc with modifications.
31780 2005-05-09 Paul Eggert <eggert@cs.ucla.edu>
31782 * modules/time_r (License): Change to LGPL.
31783 * modules/extensions (License): Change to LGPL. Actually,
31784 the license is more permissive than that, but currently gnulib-tool
31785 doesn't know how to handle more-permissive licenses.
31787 * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
31788 Problem reported by Dave Love.
31790 2005-05-08 Jim Meyering <jim@meyering.net>
31792 * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
31795 2005-05-06 Paul Eggert <eggert@cs.ucla.edu>
31797 * modules/argmatch (Depends-on): Add stdbool.
31798 * modules/backupfile (Depends-on): Likewise.
31799 * modules/chdir-long (Depends-on): Likewise.
31800 * modules/closeout (Depends-on): Likewise.
31801 * modules/cycle-check (Depends-on): Likewise.
31802 * modules/dirname (Depends-on): Likewise.
31803 * modules/fnmatch (Depends-on): Likewise.
31804 * modules/fsusage (Depends-on): Likewise.
31805 * modules/fwriteerror (Depends-on): Likewise.
31806 * modules/getcwd (Depends-on): Likewise.
31807 * modules/getloadavg (Depends-on): Likewise.
31808 * modules/hard-locale (Depends-on): Likewise.
31809 * modules/makepath (Depends-on): Likewise.
31810 * modules/mountlist (Depends-on): Likewise.
31811 * modules/nanosleep (Depends-on): Likewise.
31812 * modules/posixtm (Depends-on): Likewise.
31813 * modules/quotearg (Depends-on): Likewise.
31814 * modules/readtokens (Depends-on): Likewise.
31815 * modules/readtokens0 (Depends-on): Likewise.
31816 * modules/readutmp (Depends-on): Likewise.
31817 * modules/save-cwd (Depends-on): Likewise.
31818 * modules/strftime (Depends-on): Likewise.
31819 * modules/userspec (Depends-on): Likewise.
31820 * modules/utimecmp (Depends-on): Likewise.
31821 * modules/xgetcwd (Depends-on): Likewise.
31822 * modules/xnanosleep (Depends-on): Likewise.
31823 * modules/xstrtod (Depends-on): Likewise.
31824 * modules/yesno (Depends-on): Likewise.
31826 2005-05-05 Paul Eggert <eggert@cs.ucla.edu>
31828 * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
31831 2005-05-01 Paul Eggert <eggert@cs.ucla.edu>
31833 Merge from coreutils. Among other things,
31834 add bulletproofing for cases where stdin, stdout, or stderr are closed.
31835 * lib/fd-safer.c: New file.
31836 * lib/fcntl-safer.h, open-safer.c: Remove.
31837 * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
31838 * lib/dup-safer.c: Include unistd-safer.h first.
31839 Don't include errno.h.
31840 (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
31841 * lib/file-type.h: Don't assume invoker included sys/stat.h first.
31842 * lib/file-type.c: Rely on file-type.h change.
31843 * lib/getloadavg.c: Include unistd-safer.h.
31844 (getloadavg): Use safer open.
31845 * lib/getusershell.c: Include "stdio-safer.h".
31846 (getusershell): Use safer fopen.
31847 * lib/long-options.c (long_options): Use NULL rather than 0.
31848 * lib/modechange.h (mode_free): Remove; all callers changed to invoke
31850 * lib/modechange.c: Likewise.
31851 xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
31852 (MODE_DONE): New constant.
31853 (struct mode_change): Remove 'next' member.
31854 (make_node_op_equals): New function; like the old one of the
31855 same name, except it allocates an array.
31856 (mode_compile, mode_create_from_ref): Use it.
31857 (mode_compile): Allocate result as an array, not a linked list.
31858 Parse octal string ourself, so that we catch mistakes like "+0".
31859 (mode_adjust): Arg is an array, not a linked list.
31860 * lib/modechange.c: Include stat-macros.h, xalloc.h.
31861 (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
31862 (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
31863 (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
31864 Remove. This is now stat-macros.h's job.
31865 (talloc): Remove. All callers replaced by xalloc, so that
31866 our invokers don't have to worry about reporting memory failures.
31867 (make_node_op_equals): Remove.
31868 (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
31870 (struct mode_change): Moved here from modechange.h.
31871 (mode_append_entry): Remove.
31872 (mode_compile): Remove MASKED_OPS arg, since it encouraged
31873 apps to have incorrect behavior. Use simpler algorithm for head
31874 and tail. Don't futz with umask; that's now the job of mode_adjust.
31875 Detect more invalid usages rather than having somewhat-random behavior.
31876 Don't insert an "a=" action, as that leads to incorrect behavior.
31877 (mode_compile, mode_create_from_ref): Return NULL on error instead
31878 of an enum, since now there's only one way to have an error. All
31880 (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
31881 at the correct time. Simplify calculation of "+u" and its ilk.
31882 Don't mishandle "+X".
31883 (mode_free): Remove "register" and localize decls.
31884 * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
31885 (struct mode_change): Move to modechange.c; callers don't
31886 need to see this stuff.
31887 (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
31888 (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
31889 (mode_change, mode_adjust): Reflect the new signatures noted above.
31890 * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
31891 that might redefine system include files.
31892 (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
31893 (my_usleep): Use NULL rather than (void *) 0.
31894 (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
31895 Use siginterrupt to specify that system calls should be interrupted.
31896 (rpl_nanosleep): Move initialization of suspended closer to call of
31898 * lib/readutmp.h (read_utmp): New arg OPTIONS. All uses changed.
31899 * lib/readutmp.c: Likewise. Include signal.h, stdbool.h.
31900 (desirable_utmp_entry): New function.
31901 (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
31902 using x2nrealloc, to simplify logic.
31903 (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
31904 size calculation. Do not assume utmp file is a regular file.
31905 * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
31906 (READ_UTMP_CHECK_PIDS): New constant.
31907 * lib/save-cwd.c: Include unistd-safer.h.
31908 (save_cwd): Use fd_safer.
31909 * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
31910 [!_LIBC] Include "stat-macros.h" instead.
31911 * lib/unistd-safer.h (fd_safer): New decl.
31913 2005-05-01 Paul Eggert <eggert@cs.ucla.edu>
31915 * modules/getloadavg (Depends-on): Add unistd-safer.
31916 * modules/getusershell (Depends-on): Add stdio-safer.
31917 * modules/lstat (Depends-on): Remove xalloc.
31918 * modules/mkstemp (Depends-on): Add stat-macros.
31919 * modules/modechange (Depends-on): Remove xstrtol.
31920 Add stat-macros, xalloc.
31921 * modules/save-cwd (Depends-on): Add unistd-safer.
31922 * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
31923 * modules/unistd-safer (Files): Add lib/fd-safer.c
31924 (Makefile.am): Remove lib_SOURCES.
31926 * MODULES.html.sh (Enhancements for POSIX:2001 functions):
31927 Remove fcntl-safer; unistd-safer supersedes it.
31929 2005-05-01 Paul Eggert <eggert@cs.ucla.edu>
31931 * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
31933 * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
31934 (gl_PREREQ_CHOWN): Remove.
31935 * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
31936 it. Don't require AC_HEADER_STAT.
31937 (gl_PREREQ_LSTAT): Remove.
31938 * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
31939 Don't require AC_HEADER_STAT.
31940 * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
31941 (gl_PREREQ_RMDIR): Remove.
31942 * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
31943 mention stat-macros.h or AC_HEADER_STAT, since we'll make
31944 the stat-macros module a prerequisite.
31945 * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
31946 * m4/filemode.m4 (gl_FILEMODE): Likewise.
31947 * m4/makepath.m4 (gl_MAKEPATH): Likewise.
31948 * m4/modechange.m4 (gl_MODECHANGE): Likewise.
31949 * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
31951 * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
31952 fetish_FUNC_RMDIR_NOTEMPTY. All uses changed. Use gl_ for
31954 * m4/fcntl-safer.m4: Remove.
31955 * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
31956 * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
31957 Invoke gl_PREREQ_FD_SAFER.
31958 (gl_PREREQ_FD_SAFER): New macro.
31959 * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
31960 * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
31961 Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
31962 Remove duplicate call to AC_LIBOBJ(readutmp).
31963 (gl_PREREQ_READUTMP): Remove. All uses inlined.
31965 * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
31966 MAP_ANON. Problem reported by Moriyoshi Koizumi to bug-cvs.
31968 2005-05-01 Paul Eggert <eggert@cs.ucla.edu>
31970 * MODULES.html.sh (Misc): Add byteswap.
31972 2005-05-01 Oskar Liljeblad <oskar@osk.mine.nu>
31974 * modules/getcwd (Depends-on): Add extensions.
31975 * modules/openat (Depends-on): Likewise.
31977 2005-05-01 Oskar Liljeblad <oskar@osk.mine.nu>
31979 * modules/byteswap: New file.
31981 2005-05-01 Oskar Liljeblad <oskar@osk.mine.nu>
31983 * m4/byteswap.m4: New file.
31985 2005-05-01 Oskar Liljeblad <oskar@osk.mine.nu>
31987 * lib/byteswap_.h: New file.
31989 2005-04-25 Karl Berry <karl@gnu.org>
31991 * m4/gettext.m4: Update from GNU gettext 0.14.4.
31993 2005-04-25 Albert Chin <china@thewrittenword.com>
31995 * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
31998 2005-04-21 Oskar Liljeblad <oskar@osk.mine.nu>
32000 * gnulib-tool (Options): Add -s for --symlink/--symbolic.
32001 (func_ln_if_changed) Remove forcibly for no error message
32002 in case file does not exist.
32004 2005-04-19 Simon Josefsson <jas@extundo.com>
32006 * gnulib-tool (Options): Make --symlink mean --symbolic.
32008 2005-04-18 Oskar Liljeblad <oskar@osk.mine.nu>
32010 * doc/gnulib.texi (Initial import): Fix. Mention --aux-dir.
32012 2005-04-16 Simon Josefsson <jas@extundo.com>
32014 * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
32016 2005-04-15 Simon Josefsson <jas@extundo.com>
32018 * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
32020 2005-04-15 Simon Josefsson <jas@extundo.com>
32022 * gnulib-tool: Rename --symlink to --symbolic.
32024 2005-04-15 Oskar Liljeblad <oskar@osk.mine.nu>
32026 * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
32027 symbolic links to files instead of copying/moving. Add --aux-dir,
32028 specifying directory relative --dir where auxiliary build tools
32031 2005-04-14 Bruno Haible <bruno@clisp.org>
32033 * modules/allocsa (License): Change to LGPL.
32034 Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
32036 2005-04-13 Paul Eggert <eggert@cs.ucla.edu>
32038 * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
32039 that "UTC +1 second" continues to work. Problem reported
32040 by Dmitry V. Levin.
32041 (relunit_snumber): New rule.
32044 2005-04-12 Paul Eggert <eggert@cs.ucla.edu>
32046 * lib/getdate.y (universal_time_zone_table): New constant.
32047 (time_zone_table): Remove GMT, UT, UTC entries; they're now in
32048 universal_time_zone_table.
32049 (lookup_zone): Prefer universal_time_zone_table to
32050 local_time_zone_table, so that "GMT" time stamps are allowed in
32051 London during the summer. Problem reported by Ian Abbott.
32053 2005-04-12 Jim Meyering <jim@meyering.net>
32055 * lib/human.c (humblock): Set *options even when returning due to
32056 xstrtoumax conversion failure. Thanks to a used-uninitialized
32057 warning from gcc-4.
32059 2005-04-09 Jim Meyering <jim@meyering.net>
32061 * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
32062 -Wuninitialized: initialize tm0.tm_year.
32064 2005-04-04 Paul Eggert <eggert@cs.ucla.edu>
32066 * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
32067 count, since there's no maximum. All uses changed.
32068 Add member dsts_seen.
32069 (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
32071 (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
32072 Use pc_rels_seen to decide whther a date is absolute.
32074 * lib/getdate.y (number): Don't overwrite year.
32075 (get_date): Initialize pc.year.digits to 0, not 4, to enable above
32078 2005-04-02 Simon Josefsson <jas@extundo.com>
32080 * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
32081 patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
32083 2005-03-28 Eric Blake <ebb9@byu.net> (tiny change)
32085 * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
32086 where no absolute path name can be longer than PATH_MAX.
32088 2005-03-27 Jim Meyering <jim@meyering.net>
32090 * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
32092 2005-03-26 Paul Eggert <eggert@cs.ucla.edu>
32094 * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
32095 "one's complement" -> "ones' complement" in comment, as per Knuth.
32096 "value of type" -> "type or expression" in comment.
32097 * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
32099 2005-03-26 Jim Meyering <jim@meyering.net>
32102 * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
32103 Correct typos: s/or/of/.
32105 2005-03-26 Jim Meyering <jim@meyering.net>
32107 * modules/check-include-files: Move to ../ and rename to...
32108 * check-module: ...this.
32110 2005-03-25 Jim Meyering <jim@meyering.net>
32112 * modules/xvasprintf (Files): Add xalloc.h.
32114 2005-03-23 Paul Eggert <eggert@cs.ucla.edu>
32116 * modules/gettext (Files): config/config.rpath ->
32117 build-aux/config.rpath
32118 * modules/iconv (Files): Likewise.
32119 Problem reported by Oskar Liljeblad.
32121 2005-03-23 Jim Meyering <jim@meyering.net>
32123 * modules/check-include-files: New script to check for
32124 missing dependencies, multiple includes, etc.
32126 * modules/c-strtold (Depends-on): Add xalloc.
32127 * modules/c-strtod (Depends-on): Add xalloc.
32128 * modules/hash (Depends-on): Add xalloc.
32129 (Files): Remove lib/xalloc.h.
32131 * modules/gethrxtime (Files): Add lib/gethrxtime.h.
32132 * modules/userspec (Files): Add lib/inttostr.h.
32134 2005-03-23 Jim Meyering <jim@meyering.net>
32136 * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
32138 2005-03-22 Jim Meyering <jim@meyering.net>
32140 * modules/stat-macros: New module.
32141 * modules/canonicalize, modules/euidaccess, modules/file-type,
32142 * modules/filemode, modules/lchown, modules/makepath,
32143 * modules/rmdir, modules/stat: Depend on new stat-macros module
32144 rather than listing lib/stat-macros.h manually.
32145 Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
32147 2005-03-22 Jim Meyering <jim@meyering.net>
32149 * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
32151 2005-03-22 Bruno Haible <bruno@clisp.org>
32153 * config/srclist.txt: Replace target directory 'config' with
32155 * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
32156 * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
32159 2005-03-21 Paul Eggert <eggert@cs.ucla.edu>
32161 * modules/chdir-long (Depends-on): Add mempcpy.
32163 * modules/acl, modules/backupfile, modules/c-strtod,
32164 modules/c-strtold, modules/canon-host, modules/canonicalize,
32165 modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
32166 modules/exclude, modules/exitfail, modules/file-type,
32167 modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
32168 modules/getdate, modules/getline, modules/getpagesize,
32169 modules/getpass, modules/getugroups, modules/group-member,
32170 modules/hard-locale, modules/hash, modules/human, modules/idcache,
32171 modules/inttostr, modules/long-options, modules/makepath,
32172 modules/md5, modules/memcasecmp, modules/memcoll,
32173 modules/modechange, modules/mountlist, modules/path-concat,
32174 modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
32175 modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
32176 modules/safe-read, modules/safe-write, modules/same, modules/savedir,
32177 modules/settime, modules/sha1, modules/sig2str, modules/strdup,
32178 modules/strftime, modules/strndup, modules/strverscmp,
32179 modules/timespec, modules/unlocked-io, modules/userspec,
32180 modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
32182 Remove lib_SOURCES line from Makefile.am section, as this is now
32183 done automatically by the corresponding Autoconf macro.
32185 2005-03-21 Jim Meyering <jim@meyering.net>
32187 Changes imported from coreutils.
32189 * lib/cycle-check.c: Don't include xalloc.h.
32191 * lib/path-concat.c: Don't include assert.h.
32192 (path_concat): Remove assertion that would have triggered
32193 for ABASE starting with more than one slash.
32194 Reported by Andreas Schwab.
32196 * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
32197 properly when ABASE is an absolute file name.
32198 Correct the description of this function.
32199 Include <assert.h>.
32200 Add an assertion and a test driver.
32201 This fixes a bug introduced on 2004-07-02.
32202 Andreas Schwab reported the resulting failure of cp --parents:
32203 http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
32205 2005-03-21 Jim Meyering <jim@meyering.net>
32207 * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
32208 * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
32210 2005-03-21 Jim Meyering <jim@meyering.net>
32211 and Paul Eggert <eggert@cs.ucla.edu>
32213 * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
32214 m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
32215 m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
32216 m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
32217 m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
32218 m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
32219 m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
32220 m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
32221 m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
32222 m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
32223 m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
32224 m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
32225 m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
32226 m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
32227 m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
32228 m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
32229 Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
32232 2005-03-18 Paul Eggert <eggert@cs.ucla.edu>
32234 * lib/strftime.c (my_strftime): If the underlying strftime returns 0
32235 (which shouldn't happen), generate nothing instead of returning 0
32236 immediately, so that nstrftime (NULL, ...) doesn't return 0.
32238 2005-03-16 Bruno Haible <bruno@clisp.org>
32240 * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
32241 HAVE_LONGLONG_64BIT.
32243 2005-03-16 Bruno Haible <bruno@clisp.org>
32245 * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
32246 HAVE_LONGLONG_64BIT.
32248 2005-03-16 Bruno Haible <bruno@clisp.org>
32250 * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
32251 HAVE_LONGLONG_64BIT.
32253 2005-03-15 Paul Eggert <eggert@cs.ucla.edu>
32255 * lib/strftime.c (my_strftime): Prepend space to format so that we can
32256 reliably distinguish strftime failure from empty output on POSIX
32259 2005-03-15 Paul Eggert <eggert@cs.ucla.edu>
32261 * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
32262 (iconv_string): Don't guess a size-zero buffer, as that might cause
32263 buffer overrun. Instead, avoid multiplying by MB_LEN_MAX if the
32264 result would be 'too large', where 'too large' is (heuristically)
32265 the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
32266 overflow concerns. This will prevent some unwanted malloc failures
32267 when the inputs are very large.
32269 2005-03-15 Karl Berry <karl@gnu.org>
32271 * config/srclist.txt (config.rpath): from gettext.
32272 * config/config.rpath: update.
32274 2005-03-15 Bruno Haible <bruno@clisp.org>
32276 * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
32279 * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
32282 * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
32285 2005-03-14 Simon Josefsson <jas@extundo.com>
32287 * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
32290 2005-03-14 Paul Eggert <eggert@cs.ucla.edu>
32292 * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
32293 TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
32295 * lib/strtol.c: Likewise.
32297 2005-03-14 Jim Meyering <jim@meyering.net>
32299 * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
32300 && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
32301 to be nonzero so that we (and caller) can detect the difference
32302 between a valid zero-length expansion and an error return, even
32303 when the underlying strftime fails before writing anything into
32306 2005-03-14 Bruno Haible <bruno@clisp.org>
32308 * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
32309 Update from GNU gettext 0.14.3.
32311 2005-03-10 Jim Meyering <jim@meyering.net>
32313 * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
32315 2005-03-10 Jim Meyering <jim@meyering.net>
32317 * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
32318 so that this module works on systems without fchdir.
32320 2005-03-09 Paul Eggert <eggert@cs.ucla.edu>
32322 Factor int-properties macros into a single file, except for
32323 glibc-related files.
32324 * lib/intprops.h: New file.
32325 * lib/getloadavg.c: Include it instead of limits.h.
32326 (INT_STRLEN_BOUND): Remove.
32327 * lib/human.c: Include intprops.h.
32328 (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
32329 * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
32331 * lib/inttostr.h: Include intprops.h instead of limits.h.
32332 (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
32333 * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
32334 for consistency with intprops.h.
32335 (time_t_is_integer, twos_complement_arithmetic): Use them.
32336 * lib/sig2str.h: Include <signal.h>, intprops.h.
32337 (INT_STRLEN_BOUND): Remove.
32338 * lib/strftime.c (TYPE_SIGNED): Remove.
32339 (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
32340 * lib/strtol.c: Adjust comments to match intprops.h.
32341 * lib/userspec.c: Include intprops.h.
32342 (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
32343 * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
32344 * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
32345 instead of rolling our own expressions.
32346 * lib/xstrtol.c: Include xstrtol.h first, to test interface.
32348 * lib/strftime.c: Include <stdbool.h>. Use bool where appropriate,
32350 (my_strftime): Do not mishandle years close to INT_MAX, by doing
32351 the right thing even if adding 1900 would overflow. Similarly
32352 for tm_mon + 1 and tm_yday + 1.
32353 Make %Y always equivalent to %C%y, and similarly for %G and %g.
32354 (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
32355 (DO_SIGNED_NUMBER): New macro.
32356 (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
32358 2005-03-07 Bruno Haible <bruno@clisp.org>
32360 * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
32362 2005-03-07 Bruno Haible <bruno@clisp.org>
32364 * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
32366 2005-03-04 Derek R. Price <derek@ximbiot.com>
32368 * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
32369 (func_import): Only replace files via --import when they have actually
32372 2005-03-03 Derek R. Price <derek@ximbiot.com>
32374 * m4/mmap-anon.m4: New file.
32375 * m4/pagealign_alloc.m4: New file.
32377 2005-03-03 Derek R. Price <derek@ximbiot.com>
32378 Bruno Haible <bruno@clisp.org>
32380 * modules/pagealign_alloc: New file.
32381 * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
32383 2005-03-03 Derek R. Price <derek@ximbiot.com>
32384 Bruno Haible <bruno@clisp.org>
32386 * lib/pagealign_alloc.h: New file.
32387 * lib/pagealign_alloc.c: New file.
32389 2005-03-03 Bruno Haible <bruno@clisp.org>
32391 * m4/inttypes.m4, isc-posix.m4, once-only.m4:
32392 Use an all-permissive copyright notice, recommended by RMS.
32394 2005-03-02 Bruno Haible <bruno@clisp.org>
32396 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
32397 of AIX, the replacement has to be done only after <string.h> is
32398 included, therefore not in config.h. stpncpy.h does the replacement,
32399 and stpncpy.c uses it.
32401 2005-03-02 Bruno Haible <bruno@clisp.org>
32403 * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
32406 2005-03-01 Paul Eggert <eggert@cs.ucla.edu>
32408 Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
32409 The workaround isn't strictly needed for POSIX conformance, and
32410 it's too much of a pain to configure and maintain. We'll ask
32411 people to fix their kernels instead.
32412 * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
32413 (NANOSLEEP_BUG_WORKAROUND): Remove.
32414 (xnanosleep): Remove the workaround.
32416 2005-03-01 Paul Eggert <eggert@cs.ucla.edu>
32418 * modules/gettime (Makefile.am): Remove lib_SOURCES line.
32419 Reported by Derek Price.
32420 (Include): Add "timespec.h".
32422 * modules/xnanosleep (Depends-on): Remove gethrxtime.
32424 2005-03-01 Paul Eggert <eggert@cs.ucla.edu>
32426 * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
32427 to detect nanosleep bug.
32429 2005-03-01 Bruno Haible <bruno@clisp.org>
32431 * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
32433 2005-02-26 Paul Eggert <eggert@cs.ucla.edu>
32435 * modules/gethrxtime: New file.
32436 * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
32437 (Depends-on): Add gethrxtime.
32438 (configure.ac): Add gl_XNANOSLEEP.
32439 (Makefile.am): Remove lib_SOURCES line.
32441 2005-02-25 Paul Eggert <eggert@cs.ucla.edu>
32443 * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
32444 * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
32446 2005-02-25 Paul Eggert <eggert@cs.ucla.edu>
32448 * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
32449 * lib/timespec.h (gettime): Return void, since it always
32450 succeeds now. All uses changed.
32451 * lib/gettime.c (gettime) Likewise.
32452 [HAVE_NANOTIME]: Prefer nanotime.
32453 Assume gettimeofday succeeds, as POSIX requires.
32454 Assime time () succeeds, since other code already does.
32455 * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
32456 (timespec_subtract): Remove.
32457 (NANOSLEEP_BUG_WORKAROUND): New constant.
32458 (xnanosleep): Use gethrxtime rather than gettime; this simplifies
32459 things considerably. Use it only on GNU/Linux hosts, since the
32460 workaround shouldn't be needed elsewhere.
32462 2005-02-24 Bruno Haible <bruno@clisp.org>
32464 * modules/gettext (Files): Add m4/glibc2.m4.
32466 2005-02-24 Bruno Haible <bruno@clisp.org>
32468 * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
32469 * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
32471 Update from GNU gettext 0.14.2.
32472 * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
32474 2005-02-24 Bruno Haible <bruno@clisp.org>
32476 * lib/localcharset.c: Update from GNU gettext 0.14.2.
32477 * lib/config.charset: Update from GNU gettext 0.14.2.
32479 2005-02-24 Bruno Haible <bruno@clisp.org>
32481 * lib/gettext.h: Update from GNU gettext 0.14.2.
32483 2005-02-23 Simon Josefsson <jas@extundo.com>
32485 * m4/iconvme.m4: New file.
32487 2005-02-23 Jim Meyering <jim@meyering.net>
32489 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
32491 Thanks to Bruno Haible for catching it.
32493 2005-02-22 Simon Josefsson <jas@extundo.com>
32495 * modules/iconvme: New file.
32497 * MODULES.html.sh: Add iconvme.
32499 2005-02-22 Simon Josefsson <jas@extundo.com>
32501 * lib/iconvme.h, lib/iconvme.c: New files, from libc.
32503 2005-02-22 Simon Josefsson <jas@extundo.com>
32505 * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
32507 2005-02-22 Jim Meyering <jim@meyering.net>
32509 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
32512 2005-02-20 Neil Conway <neilc@samurai.com>
32514 * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
32515 returned by OSX/Darwin if the specified buffer is not large
32516 enough for the hostname.
32518 2005-02-03 Sergey Poznyakoff <gray@Mirddin.farlep.net>
32520 * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
32521 pass it to _help, otherwise the latter coredumps trying to
32522 dereference state.root_argp.
32524 2005-02-03 Paul Eggert <eggert@cs.ucla.edu>
32526 * modules/chdir-long (Depends-on): Add memrchr.
32527 * modules/memrchr (Files): Add lib/memrchr.h.
32528 (Include): "memrchr.h".
32530 2005-02-03 Paul Eggert <eggert@cs.ucla.edu>
32532 * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
32534 2005-02-03 Paul Eggert <eggert@cs.ucla.edu>
32536 * lib/memrchr.h: New file.
32537 * lib/chdir-long.c: Include it.
32538 * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
32539 Don't bother including stddef.h.
32541 2005-02-01 Paul Eggert <eggert@cs.ucla.edu>
32543 * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
32545 Include <sys/types.h>, for dev_t.
32546 (ME_DUMMY, ME_REMOTE): Move from here....
32547 * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
32548 (ME_DUMMY): Count "subfs" as a dummy. Problem reported by
32550 Include mountlist.h first, to test the interface.
32552 2005-01-29 Bruno Haible <bruno@clisp.org>
32554 * lib/progname.c (program_name): Initialize.
32555 Needed when linking statically on MacOS X.
32557 2005-01-28 Paul Eggert <eggert@cs.ucla.edu>
32559 Sync from coreutils.
32560 * modules/getloadavg (Files): Remove m4/getloadavg.m4.
32561 (Depends-on): Add c-strtod.
32562 (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
32564 2005-01-28 Paul Eggert <eggert@cs.ucla.edu>
32566 Sync from coreutils.
32567 * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
32569 Remove files that are specific to coreutils.
32570 * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
32572 2005-01-28 Bruno Haible <bruno@clisp.org>
32574 * modules/javacomp: New file.
32575 * MODULES.html.sh (Java): Add javacomp.
32577 2005-01-28 Bruno Haible <bruno@clisp.org>
32579 * m4/javacomp.m4: New file, from GNU gettext.
32581 2005-01-28 Bruno Haible <bruno@clisp.org>
32583 * lib/javacomp.sh.in: New file, from GNU gettext.
32584 * lib/javacomp.h: New file, from GNU gettext.
32585 * lib/javacomp.c: New file, from GNU gettext.
32587 2005-01-26 Simon Josefsson <jas@extundo.com>
32589 * lib/gai_strerror.c: Use GPL in header.
32591 2005-01-26 Bruno Haible <bruno@clisp.org>
32593 * modules/javaexec: New file.
32594 * MODULES.html.sh (Java): Add javaexec.
32596 2005-01-26 Bruno Haible <bruno@clisp.org>
32598 * m4/javaexec.m4: New file, from GNU gettext.
32600 2005-01-26 Bruno Haible <bruno@clisp.org>
32602 * lib/javaexec.sh.in: New file, from GNU gettext.
32603 * lib/javaexec.h: New file, from GNU gettext.
32604 * lib/javaexec.c: New file, from GNU gettext.
32606 2005-01-24 Sergey Poznyakoff <gray@Mirddin.farlep.net>
32608 * modules/lchown (Depends-on): Remove lchown.h
32610 2005-01-24 Sergey Poznyakoff <gray@Mirddin.farlep.net>
32612 * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
32613 must be defined if the header file was not found, in order
32614 to provide a replacement. Reported by Todd Vierling <tv@duh.org>
32616 2005-01-24 Sergey Poznyakoff <gray@Mirddin.farlep.net>
32618 * lib/argp-help.c (hol_entry_help): Avoid using non-constant
32619 initializers for struct pentry_state.
32620 (__argp_error): Check return value of __asprintf
32621 (__argp_failure): Translate error message
32623 * lib/argp-parse.c: Removed braces around the expansion of N_()
32625 2005-01-23 Paul Eggert <eggert@cs.ucla.edu>
32627 * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
32628 backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
32629 c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
32630 clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
32631 dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
32632 exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
32633 file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
32634 free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
32635 getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
32636 getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
32637 getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
32638 gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
32639 group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
32640 idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
32641 link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
32642 makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
32643 memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
32644 memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
32645 modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
32646 path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
32647 posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
32648 readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
32649 restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
32650 savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
32651 sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
32652 stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
32653 strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
32654 strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
32655 strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
32656 time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
32657 uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
32658 unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
32659 utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
32660 xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
32661 xstrtol.m4, xstrtoumax.m4, yesno.m4:
32662 Use an all-permissive copyright notice, recommended by RMS.
32664 2005-01-21 Paul Eggert <eggert@cs.ucla.edu>
32666 * modules/chdir-long (Depends-on): Remove mempcpy.
32668 2005-01-21 Jim Meyering <jim@meyering.net>
32670 * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
32671 same value as for Solaris 9.
32673 * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
32674 component length. This included changing the parameter to be
32675 of type `char *' rather than `char const *'.
32676 * lib/chdir-long.h (chdir_long): Update prototype.
32678 * lib/openat.c (fdopendir, fstatat): New functions.
32679 * lib/openat.h: Include headers required for use of DIR and struct
32681 [AT_SYMLINK_NOFOLLOW]: Define.
32682 (fdopendir, fstatat): Add prototypes.
32684 2005-01-21 Bruno Haible <bruno@clisp.org>
32686 * modules/classpath: New file.
32687 * MODULES.html.sh (Java): Add classpath.
32689 2005-01-21 Bruno Haible <bruno@clisp.org>
32691 * lib/classpath.h: New file, from GNU gettext.
32692 * lib/classpath.c: New file, from GNU gettext.
32694 2005-01-20 Simon Josefsson <jas@extundo.com>
32696 * modules/version-etc-fsf: New file.
32698 2005-01-20 Simon Josefsson <jas@extundo.com>
32700 * lib/version-etc-fsf.c: New file, with version_etc_copyright.
32701 * lib/version-etc.c: Remove version_etc_copyright.
32702 * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
32703 prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
32705 2005-01-20 Simon Josefsson <jas@extundo.com>
32707 * lib/base64.h (isbase64): Add.
32709 * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
32710 using a unsigned prototype, don't inline.
32711 (base64_decode): Use it.
32713 2005-01-20 Paul Eggert <eggert@cs.ucla.edu>
32715 * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
32718 2005-01-20 Paul Eggert <eggert@cs.ucla.edu>
32720 * lib/save-cwd.c (save_cwd): Remove code to support the case
32721 where fchdir is missing or flaky.
32723 2005-01-20 Paul Eggert <eggert@cs.ucla.edu>
32725 * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
32727 2005-01-19 Paul Eggert <eggert@cs.ucla.edu>
32729 * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
32730 AC_LIBSOURCES now does this.
32731 * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
32732 with new ullong_max module.
32734 2005-01-19 Bruno Haible <bruno@clisp.org>
32736 * modules/sh-quote: New file.
32737 * MODULES.html.sh (Executing programs): Add sh-quote.
32739 2005-01-19 Bruno Haible <bruno@clisp.org>
32741 * lib/sh-quote.h: New file, from GNU gettext.
32742 * lib/sh-quote.c: New file, from GNU gettext.
32744 2005-01-18 Paul Eggert <eggert@cs.ucla.edu>
32746 Merge from coreutils.
32747 * m4/ullong_max.m4: New file.
32748 * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
32749 (gl_MACROS): Assume localeconv exists.
32751 2005-01-18 Paul Eggert <eggert@cs.ucla.edu>
32753 Merge changes from coreutils, as described below in several
32754 changelogs dated today.
32756 * lib/save-cwd.c: Include "save-cwd.h" before other include files.
32757 (O_DIRECTORY): Remove; not needed here, since "." must be
32758 a directory. All uses removed.
32759 (save_cwd): Use __sgi || __sun, not sun || __sun. __sun is
32760 universal on Suns, and we also need to test for IRIX.
32761 Revamp code to use 'if' rather than '#if'.
32762 Avoid unnecessary comparison of cwd->desc to 0.
32764 * lib/utimens.c (futimens): Robustify the previous patch, by checking
32765 for known valid error numbers rather than observed invalid ones.
32767 2005-01-18 Paul Eggert <eggert@cs.ucla.edu>
32769 * modules/ullong_max: New file.
32771 * modules/chdir-long, modules/openat: New files.
32772 * modules/save-cwd (Depends-on): Depend on chdir-long.
32773 (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
32775 2005-01-18 Jim Meyering <jim@meyering.net>
32777 Merge from coreutils.
32778 * m4/chdir-long.m4, m4/openat.m4: New files.
32779 * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
32780 save-cwd.h. Add AC_LIBOBJ for save-cwd.
32781 * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
32782 is sane and DOES follow symlinks. Besides, testing 20 different
32783 systems found no broken chown implementations.
32784 Prompted by a change in rsync's copy of this macro.
32785 * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
32787 * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
32789 * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
32790 (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
32791 NULL-means-set-to-current-time semantics.
32792 Remove temporary file immediately, rather than waiting
32793 for configure's at-exit trap code to do it.
32795 2005-01-18 Jim Meyering <jim@meyering.net>
32797 * lib/version-etc.c (version_etc_copyright): Update copyright date.
32799 * lib/utimens.c (futimens): Account for the fact that futimes
32800 can also fail with errno == ENOSYS or errno == ENOENT.
32801 Patch from Dmitry V. Levin.
32803 Change the name of the robust chdir function from chdir to chdir_long.
32804 * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
32805 (restore_cwd): Use chdir_long, not chdir.
32806 * lib/chdir-long.c: Renamed from chdir.c.
32807 * lib/chdir-long.h: Renamed from chdir.h.
32808 [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
32811 2005-01-18 Bruno Haible <bruno@clisp.org>
32813 * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
32814 * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
32815 * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
32816 * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
32817 * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
32818 * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
32819 * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
32820 * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
32821 * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
32822 * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
32823 * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
32824 * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
32825 * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
32826 * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
32827 Use an all-permissive copyright notice, recommended by RMS.
32829 2005-01-18 Bob Proulx <bob@proulx.com>
32831 * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
32832 simplify offsetof() macro construct to avoid compile failure with
32833 native HP-UX 11.0 ANSI C compiler.
32835 2005-01-17 Bruno Haible <bruno@clisp.org>
32837 * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
32838 redundant because stpncpy.m4 takes care of it.
32840 2005-01-17 Bruno Haible <bruno@clisp.org>
32842 * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
32844 2005-01-17 Bruno Haible <bruno@clisp.org>
32846 * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
32849 2005-01-17 Bruno Haible <bruno@clisp.org>
32851 * lib/fwriteerror.h (fwriteerror): Change specification to include
32853 * lib/fwriteerror.c: Include <stdbool.h>.
32854 (fwriteerror): At the end, close the file stream. Record whether
32855 stdout was already closed.
32857 2005-01-17 Bruno Haible <bruno@clisp.org>
32859 * lib/execute.c (environ): Declare if needed.
32860 * lib/pipe.c (environ): Likewise.
32861 Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
32863 2005-01-11 Sergey Poznyakoff <gray@Mirddin.farlep.net>
32865 * modules/argp: Depend on vsnprintf
32867 2005-01-10 Jim Meyering <jim@meyering.net>
32869 * modules/closeout (Depends-on): Add atexit.
32871 2005-01-06 Bruno Haible <bruno@clisp.org>
32873 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
32875 2005-01-04 Paul Eggert <eggert@cs.ucla.edu>
32877 * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
32878 definitions to be after all include files, to avoid collisions.
32879 Problem reported by Bob Proulx.
32881 2005-01-04 Jim Meyering <jim@meyering.net>
32883 Changes imported from coreutils.
32884 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
32885 as the mkstemp template, use a temporary directory and an
32886 8.3-friendly template to avoid trouble on systems like DJGPP.
32887 Reported by Juan M. Guerrero via Stepan Kasal.
32888 * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
32889 close. Remove the temporary directory right away, rather than waiting
32890 for configure's at-exit trap code to do it.
32891 Suggestion from Stepan Kasal.
32893 2005-01-01 Simon Josefsson <jas@extundo.com>
32895 * gnulib-tool: Print #include directives when --import'ing.
32897 2004-12-28 Simon Josefsson <jas@extundo.com>
32899 * tests/test-base64.c: Include required header files. Remove
32902 2004-12-28 Paul Eggert <eggert@cs.ucla.edu>
32904 * modules/error (Depends-on): Remove gettext.
32906 2004-12-28 Paul Eggert <eggert@cs.ucla.edu>
32908 * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
32909 not needed. This removes a dependency on the gettext module.
32910 [defined _LIBC]: Do not include <libintl.h>; not needed.
32912 2004-12-24 Paul Eggert <eggert@cs.ucla.edu>
32914 * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
32915 (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
32917 2004-12-24 Paul Eggert <eggert@cs.ucla.edu>
32919 * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
32922 2004-12-23 Paul Eggert <eggert@cs.ucla.edu>
32924 * modules/getdate (Depends-on): Remove alloca-opt.
32926 2004-12-23 Paul Eggert <eggert@cs.ucla.edu>
32928 * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
32930 2004-12-23 Paul Eggert <eggert@cs.ucla.edu>
32932 * lib/argp-parse.c: Include <stddef.h>.
32933 (alignof, alignto): New macros.
32934 (parser_init): Don't assume that void * is aligned sufficiently
32937 * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
32938 need to extend the stack.
32939 (YYINITDEPTH): New macro, so that the initial stack isn't overly
32942 2004-12-22 Sergey Poznyakoff <gray@Mirddin.farlep.net>
32944 * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
32946 2004-12-19 Paul Eggert <eggert@cs.ucla.edu>
32948 * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
32949 (2004-10-24) change. Apparently this was a false alarm.
32951 * modules/getdate: Depend on alloca-opt, not alloca.
32953 2004-12-19 Paul Eggert <eggert@cs.ucla.edu>
32955 * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
32956 Remove now-obsolete comment about AIX.
32957 * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
32958 (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
32959 (YYMAXDEPTH): New macro.
32961 2004-12-18 Simon Josefsson <jas@extundo.com>
32963 * modules/alloca: Depend on alloca-opt, instead of duplicating it.
32965 2004-12-18 Bruno Haible <bruno@clisp.org>
32967 * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
32969 2004-12-18 Bruno Haible <bruno@clisp.org>
32971 * lib/fatal-signal.c (fatal_signals): Make non-const.
32972 (init_fatal_signals): New function.
32973 (uninstall_handlers, install_handlers): Ignore signals that were set to
32975 (at_fatal_signal): Call init_fatal_signals.
32976 (init_fatal_signal_set): Likewise. Ignore signals that were set to
32978 Reported by Paul Eggert.
32980 2004-12-18 Bruno Haible <bruno@clisp.org>
32982 * doc/alloca.texi: New file.
32983 * doc/alloca-opt.texi: New file.
32985 2004-12-17 Jim Meyering <jim@meyering.net>
32987 * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
32988 Otherwise, install-sh could exit with improper exit status when
32989 exiting via a trapped interrupt. Thanks to a report from Bob Proulx.
32991 2004-12-16 Simon Josefsson <jas@extundo.com>
32993 * tests/test-base64.c: Add license.
32995 2004-12-15 Stepan Kasal <address@hidden>
32997 * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
32999 2004-12-12 Paul Eggert <eggert@cs.ucla.edu>
33001 * modules/getcwd (Files): Add m4/d-ino.m4.
33002 Suggested by Mark D. Baushke.
33004 2004-12-08 Paul Eggert <eggert@cs.ucla.edu>
33006 * lib/getdate.y (textint): New member "negative".
33007 (time_zone_hhmm): New function.
33008 Expect 14 shift-reduce conflicts, not 13.
33009 (o_colon_minutes): New rule.
33010 (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
33011 (yylex): Set the "negative" member of signed numbers.
33013 2004-12-08 Paul Eggert <eggert@cs.ucla.edu>
33015 * doc/getdate.texi (Time of day items, Time zone items):
33016 Describe new formats +00:00, UTC+00:00.
33018 2004-12-07 Paul Eggert <eggert@cs.ucla.edu>
33020 * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
33021 spurious "-l"s. Problem reported by Stepan Kasal.
33023 2004-12-06 Paul Eggert <eggert@cs.ucla.edu>
33025 * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
33026 in Autoconf 2.59. Problem reported by Mark D. Baushke.
33028 2004-12-04 Simon Josefsson <jas@extundo.com>
33030 * modules/getaddrinfo (License): Add LGPL, reported by Yoann
33031 Vandoorselaere <yoann@prelude-ids.org>.
33033 2004-12-04 Paul Eggert <eggert@cs.ucla.edu>
33035 Changes imported from coreutils.
33036 * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
33038 * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
33040 2004-12-04 Paul Eggert <eggert@cs.ucla.edu>
33042 Changes imported from coreutils.
33043 * lib/hard-locale.c: Assume <locale.h> exists.
33044 Include "strdup.h".
33045 (GLIBC_VERSION): New macro.
33046 (hard_locale): Assume setlocale exists.
33047 Rewrite to avoid #ifdef.
33048 Use strdup rather than malloc + strcpy.
33049 * lib/human.c: Assume <locale.h> exists.
33050 (human_readable): Assume localeconv exists.
33052 2004-12-04 Paul Eggert <eggert@cs.ucla.edu>
33054 * modules/hard-locale (Depends-on): Add strdup.
33056 2004-12-01 Jakub Jelinek <jakub@redhat.com>
33058 * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
33059 convert T2, not T. (Imported from libc.)
33061 2004-11-30 Simon Josefsson <jas@extundo.com>
33063 * modules/restrict (License): Change to LGPL.
33065 2004-11-30 Simon Josefsson <jas@extundo.com>
33067 * m4/restrict.m4: Add copyright and copying conditions.
33069 2004-11-30 Simon Josefsson <jas@extundo.com>
33071 * m4/base64.m4: New file.
33073 2004-11-30 Simon Josefsson <jas@extundo.com>
33075 * MODULES.html.sh (Extra functions based on ANSI C 89): Add
33078 * tests/test-base64.c: New file.
33080 * modules/base64: New file.
33082 2004-11-30 Paul Eggert <eggert@cs.ucla.edu>
33084 * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
33085 Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
33087 * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
33089 2004-11-30 Paul Eggert <eggert@cs.ucla.edu>
33091 * lib/getcwd.c (is_ENAMETOOLONG): New macro.
33092 (__getcwd.c): Don't restore errno; glibc doesn't.
33093 [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
33094 first, falling back to our code only if its results look suspicious.
33095 Ensure that the resulting buffer is only as large as necessary.
33097 * lib/readutmp.c: Include readutmp.h first.
33098 Include <errno.h>, since readutmp.h no longer does that.
33099 * lib/readutmp.h: Don't include <errno.h>,
33100 <sys/param.h>, <time.h>; not needed to establish interface.
33101 (errno): Remove decl.
33102 (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
33103 (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
33104 UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
33106 2004-11-28 Simon Josefsson <jas@extundo.com>
33108 * lib/base64.h, base64.c: New file.
33110 2004-11-27 Paul Eggert <eggert@cs.ucla.edu>
33112 * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
33114 2004-11-26 Paul Eggert <eggert@cs.ucla.edu>
33116 * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
33117 (Depends-on): Remove pathmax, same. Add mempcpy.
33118 (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
33119 (Makefile.am): Append getcwd.h to lib_SOURCES.
33120 (Include): Add getcwd.h.
33121 (Maintainer): Change from Jim Meyering to "all, glibc",
33122 since getdate now uses intended-for-glibc code.
33123 * modules/xgetcwd (Files): Remove m4/getcwd.m4.
33124 (Depends-on): Depend on getcwd. Do not depend on pathmax.
33126 2004-11-25 Paul Eggert <eggert@cs.ucla.edu>
33128 Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
33129 HP's ANSI C compiler.
33130 * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
33131 Declaring int functions causes warnings on some modern systems and
33132 shouldn't be needed to compile on ancient ones.
33133 * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
33136 * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
33137 with the following changes.
33138 (__set_errno): Parenthesize properly.
33139 Include <stdbool.h>.
33140 (MIN, MAX, MATCHING_INO): New macros.
33141 (__getcwd): Define with prototype, not K&R form.
33142 Use heuristics to allocate default buffer on stack if possible.
33143 If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
33144 behavior, and to avoid the PATH_MAX limit when computing
33146 Use MATCHING_INO to compare inode number to file.
33147 Check for arithmetic overflow in size calculations.
33148 Fix bug in reallocation of dot array that caused getcwd to fail
33149 on directories nested deeper than 75.
33150 Be more careful about saving errno on error.
33151 Do not use realloc; use only free+malloc, as this is a bit
33152 more flexible and avoids a needless copy operation.
33153 Do not inspect st_dev and st_ino for symbolic links; POSIX
33154 doesn't specify the latter.
33155 Check for closedir errors.
33156 Avoid needless casts.
33157 Use "#ifdef weak_alias" around weak_alias, to be like other
33159 The following changes to getcwd.c have effect only when used in
33160 gnulib; they have no effect inside glibc proper.
33161 (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
33162 as alloca isn't used.
33163 (alloca, __alloca): Likewise.
33164 [!_LIBC]: Include "getcwd.h", "mempcpy.h".
33165 Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
33166 unconditionally, as gnulib assumes C89 or better.
33167 Do not include <sys/param.h>.
33168 (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
33169 no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
33171 (NULL) [!defined NULL]: Remove; we assume C89 or better.
33172 Include <dirent.h> in a way that is compatible with modern Autoconf.
33173 (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
33174 New macros, if not already defined.
33175 Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
33176 Use "_LIBC", not "defined _LIBC", for consistency.
33177 (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
33179 (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
33180 (GETCWD_RETURN_TYPE): Remove. All uses replaced by char *.
33181 * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
33182 credit only to Jim Meyering and adjust the copyright dates.
33183 Do not include <limits.h>, <stdio.h>, <sys/types.h>,
33184 <stdlib.h>, <unistd.h>, "pathmax.h".
33185 Instead, include "xgetcwd.h" (first) and "getcwd.h".
33186 (INITIAL_BUFFER_SIZE): Remove.
33187 (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
33189 2004-11-25 Paul Eggert <eggert@cs.ucla.edu>
33191 * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
33192 GL_FUNC_GETCWD_PATH_MAX for consistency. All uses changed.
33193 Use the _ONCE methods, for efficiency.
33194 Check for fcntl.h. In test program, include <errno.h>
33195 and <fcntl.h> if available. Remove old K&R cruft from
33196 test program. Check for common errors in GNU/Linux,
33197 OpenBSD, and Solaris. Just set gl_cv_func_getcwd_path_max;
33198 don't do AC_LIBOBJ, as that's getcwd.m4's job.
33199 * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
33200 AC_FUNC_GETCWD_NULL. All used changed. Change cache variable
33202 (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros. Revamp to
33203 accommodate new getcwd.c.
33204 * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
33205 * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
33206 * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
33207 that's all we need now.
33209 2004-11-23 Sergey Poznyakoff <gray@Mirddin.farlep.net>
33211 * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
33212 argp-parse.c depends on getopt internals, that means we should
33213 always use our getopt, to be on the safe side.
33214 * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
33215 order not to spoil the result of an eventual previous invocation
33216 of gl_GETOPT_SUBSTITUTE.
33218 2004-11-23 Sergey Poznyakoff <gray@Mirddin.farlep.net>
33220 * lib/getopt_.h: Re-addition of __getopt_argv_const caused
33221 redefinition warnings. To avoid them, include the defines
33222 in `#if !defined __need_getopt ... #endif'. The only place
33223 where __getopt_argv_const is used is in definitions
33224 of getopt_long and getopt_long_only below, which are as well
33225 protected by `#ifndef __need_getopt'.
33226 [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
33227 __need_getopt after including <stdio.h> and <unistd.h> These
33228 headers might have defined it.
33230 2004-11-23 Paul Eggert <eggert@cs.ucla.edu>
33232 * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
33234 2004-11-23 Paul Eggert <eggert@cs.ucla.edu>
33236 * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
33237 (futimens): New function, which uses futimes if available.
33238 (futimens, utimens): Support timespec==NULL, with same semantics
33239 as utime and utimens.
33240 * lib/utimens.h (futimens): New decl.
33242 2004-11-23 Jim Meyering <jim@meyering.net>
33244 * lib/getopt_.h: Remove trailing blanks.
33246 2004-11-23 Jim Meyering <jim@meyering.net>
33248 * lib/__fpending.c: Add comment.
33250 2004-11-22 Paul Eggert <eggert@cs.ucla.edu>
33252 * modules/canonicalize (Depends-on): Add xreadlink.
33253 Problem reported by James Youngman.
33255 2004-11-20 Paul Eggert <eggert@cs.ucla.edu>
33257 * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
33259 (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
33260 optopt): Use them instead of invoking ## directly; otherwise, the
33261 symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
33263 2004-11-19 Bruno Haible <bruno@clisp.org>
33265 * lib/strtok_r.c: Move comments from here...
33266 * lib/strtok_r.h: ... to here.
33268 2004-11-17 Paul Eggert <eggert@cs.ucla.edu>
33270 * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
33271 implementations that mishandle size_t overflow.
33273 2004-11-17 Paul Eggert <eggert@cs.ucla.edu>
33275 * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
33276 might fail. Problem reported by Yoann Vandoorselaere.
33277 * lib/calloc.c (rpl_calloc): Defend against buggy calloc
33278 implementations that mishandle size_t overflow.
33280 2004-11-16 Paul Eggert <eggert@cs.ucla.edu>
33282 * modules/canon-host (Depends-on): Add strdup.
33284 2004-11-16 Paul Eggert <eggert@cs.ucla.edu>
33286 * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
33288 2004-11-16 Paul Eggert <eggert@cs.ucla.edu>
33290 * lib/canon-host.c: Include "strdup.h".
33291 (canon_host): Use getaddrinfo if available, so that IPv6 works.
33292 Use strdup instead of malloc/strcpy to duplicate strings.
33294 * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
33295 (human_space_before_unit): New constant.
33296 * lib/human.c (human_readable): Support it.
33298 * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
33299 (xgetcwd): Set errno correctly when failing.
33300 Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
33301 the failure is actually due to a PATH_MAX problem.
33303 Further getopt changes to make it more likely that glibc will
33304 buy the changes back.
33305 * lib/getopt.c (POSIXLY_CORRECT): New constant.
33306 (getopt): Use it, so to preserve glibc semantic
33307 * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
33308 when compiling for libc.
33309 * lib/getopt_.h (__getopt_argv_const): Bring it back.
33310 (getopt_long, getopt_long_only): Use it.
33312 * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
33313 _getopt_internal): New arg POSIXLY_CORRECT. All callers changed.
33314 (getopt): Argv is now char * const *, as per standard.
33315 (_getopt_internal_r, _getopt_internal): Argv is now char **,
33316 not char *__getopt_argv_const *.
33317 * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
33318 _getopt_long_only_r): Likewise.
33319 * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
33320 * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
33321 _getopt_long_r, _getopt_long_only_r): Likewise.
33322 * lib/getopt_.h (__getopt_argv_const): Remove.
33323 (getopt): Argv is now char * const *, as per standard.
33325 * lib/getdate.y (tORDINAL): New token.
33326 (day, relunit): Allow it for relative times.
33327 (relative_time_table): Use tORDINAL for ordinals.
33329 2004-11-16 Paul Eggert <eggert@cs.ucla.edu>
33331 * doc/getdate.texi (General date syntax): "next" is 1, not 2.
33332 Document that "second" isn't allowed as an ordinal number.
33334 2004-11-16 Jim Meyering <jim@meyering.net>
33336 * modules/closeout (Depends-on): Add fpending.
33338 2004-11-15 Jim Meyering <jim@meyering.net>
33340 * lib/closeout.c: Include "__fpending.h" once again.
33341 Include <stdbool.h>.
33342 (close_stdout): Don't fail just because stdout was closed initially,
33343 since some programs don't write to stdout in the normal course of
33344 operation (other than --version and --help), and we don't want this
33345 function to make e.g. `touch file >&-' fail.
33346 But do fail if it was closed and someone has tried to write to it.
33347 E.g., `printf foo >&-' must fail.
33349 2004-11-13 Jim Meyering <jim@meyering.net>
33351 * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
33353 2004-11-12 Simon Josefsson <jas@extundo.com>
33355 * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
33356 small doc fix is still pending.
33358 2004-11-11 Simon Josefsson <jas@extundo.com>
33360 * modules/strtok_r: New file.
33362 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
33365 2004-11-11 Simon Josefsson <jas@extundo.com>
33367 * m4/strtok_r.m4: New file.
33369 * m4/getopt.m4: Replace opterr.
33371 2004-11-11 Simon Josefsson <jas@extundo.com>
33373 * lib/strtok_r.h, strtok_r.c: New file.
33375 2004-11-11 Paul Eggert <eggert@cs.ucla.edu>
33377 * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
33378 of replacing opterr, getopt, etc. This should handle the
33379 powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
33381 2004-11-11 Paul Eggert <eggert@cs.ucla.edu>
33383 * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
33384 we can stop lying to compilers about the constness of argv when we
33385 are compiled outside glibc.
33386 (getopt, getopt_long, getopt_long_only): Use it.
33387 * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
33388 _getopt_internal, getopt): Likewise.
33389 * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
33390 _getopt_long_only_r): Likewise.
33391 * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
33392 _getopt_long_r, _getopt_long_only_r): Likewise.
33394 * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
33395 Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
33396 Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
33397 the other external symbols.
33398 (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
33399 declaration, since the above renaming now works around collisions.
33401 2004-11-11 Jim Meyering <jim@meyering.net>
33403 * lib/linebreak.c: Remove trailing blanks.
33404 * lib/alloca_.h: Likewise.
33405 * lib/acosl.c: Likewise.
33406 * lib/euidaccess.c: Likewise.
33407 * lib/allocsa.h: Likewise.
33409 2004-11-10 Simon Josefsson <jas@extundo.com>
33411 * m4/getaddrinfo.m4: New file.
33413 2004-11-10 Simon Josefsson <jas@extundo.com>
33415 * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
33417 2004-11-10 Simon Josefsson <jas@extundo.com>
33419 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
33422 * modules/getaddrinfo: New file.
33424 2004-11-10 Paul Eggert <eggert@cs.ucla.edu>
33426 * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
33428 2004-11-10 Paul Eggert <eggert@cs.ucla.edu>
33430 * lib/mktime.c (SHR): New macro, which is a portable
33431 substitute for >> that should work even on Crays.
33432 (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
33433 Problem reported by Mark D. Baushke in
33434 <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
33435 * lib/getdate.y (SHR): Likewise.
33437 * lib/strftime.c (SHR): Likewise.
33439 * lib/quotearg.c (struct quoting_options): Use unsigned int for
33440 quote_these_too, so that right shifts are well defined. All uses
33443 2004-11-10 Jim Meyering <jim@meyering.net>
33445 Ensure that no close failure goes unreported.
33446 * lib/closeout.c (close_stdout): Always close stdout. I.e., don't
33447 return early when it seems there's nothing to flush.
33448 Don't include __fpending.h.
33450 2004-11-10 Jim Meyering <jim@meyering.net>
33452 * modules/closeout (Depends-on): Remove fpending.
33454 2004-11-10 Jim Meyering <jim@meyering.net>
33456 * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
33458 2004-11-09 Paul Eggert <eggert@cs.ucla.edu>
33460 * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove. Move its body to
33462 (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
33463 and AC_REQUIRE when possible, to avoid duplicate checks.
33464 Check for <wchar.h>.
33466 2004-11-09 Paul Eggert <eggert@cs.ucla.edu>
33468 * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
33470 2004-11-09 Bruno Haible <bruno@clisp.org>
33472 * m4/sockpfaf.m4: New file.
33474 2004-11-05 Bruno Haible <bruno@clisp.org>
33476 * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
33477 Reported by Mark D. Baushke <mdb@cvshome.org>.
33479 2004-11-04 Bruno Haible <bruno@clisp.org>
33481 2004-09-11 Bruno Haible <bruno@clisp.org>
33482 * allocsa.valgrind: New file.
33483 2004-02-06 Bruno Haible <bruno@clisp.org>
33484 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
33485 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
33486 Reported by Christopher Seip <chris.seip@hp.com>.
33488 2004-11-04 Bruno Haible <bruno@clisp.org>
33490 * modules/allocsa (Files): Add lib/allocsa.valgrind.
33491 (Makefile.am): Distribute it.
33493 2004-11-03 Paul Eggert <eggert@cs.ucla.edu>
33495 * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
33496 with errno == ERANGE if the buffer is too small.
33497 Problem reported by Mark D. Baushke.
33499 2004-11-03 Albert Chin <china@thewrittenword.com>
33500 Paul Eggert <eggert@cs.ucla.edu>
33502 * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
33503 equivalent, substitute $ac_type for equivalent type rather than
33504 blindly using uint32_t *always* which won't work if uint32_t is not
33505 available. Define _UINT32_T to work around typedef of uint32_t if
33506 <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
33509 2004-11-02 Paul Eggert <eggert@cs.ucla.edu>
33511 * m4/jm-macros.m4: Sync from coreutils.
33512 (gl_MACROS): Check for mbrlen, for pathchk.
33513 (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
33515 2004-11-02 Paul Eggert <eggert@cs.ucla.edu>
33517 * lib/xreadlink.c (MAXSIZE): New macro.
33518 (xreadlink): Use it instead of SSIZE_MAX. Ensure initial buffer
33519 size does not exceed MAXSIZE. Avoid cast.
33520 As suggested by Mark D. Baushke in
33521 <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
33522 if readlink fails with buffer size just under MAXSIZE, try again
33525 2004-11-02 Paul Eggert <eggert@cs.ucla.edu>
33527 * config/srclist.txt: Add mktime.c; glibc bought all our changes.
33529 2004-11-02 Derek R. Price <derek@ximbiot.com>
33530 and Paul Eggert <eggert@cs.ucla.edu>
33532 * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
33533 (get_date): Overparenthesize to avoid GCC warning.
33535 2004-11-02 Bruno Haible <bruno@clisp.org>
33537 * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
33540 2004-11-02 Bruno Haible <bruno@clisp.org>
33542 * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
33543 function returns void.
33545 2004-11-01 Paul Eggert <eggert@cs.ucla.edu>
33547 * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
33548 fflush_unlocked, flockfile, funlockfile, funlockfile,
33549 fputs_unlocked, putc_unlocked.
33551 2004-11-01 Paul Eggert <eggert@cs.ucla.edu>
33553 * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
33554 (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
33557 2004-10-29 Paul Eggert <eggert@cs.ucla.edu>
33559 * modules/getdate (Files): Add doc/getdate.texi.
33560 (Depends-on): Add setenv, xalloc.
33562 2004-10-29 Paul Eggert <eggert@cs.ucla.edu>
33564 * lib/getdate.y: Add support for TZ="foo" within a date string.
33565 Fix some bugs near time_t boundaries. Reject dates with
33566 out-of-range components, e.g., "Sept 31".
33567 Include <stdlib.h>, "setenv.h", "xalloc.h".
33568 (ISDIGIT_LOCALE): Remove; unused.
33569 Note that the TZ and time functions used here are not reentrant.
33570 (mktime_ok, get_tz): New functions.
33571 (TZBUFSIZE): New constant.
33572 (get_date): Parse leading TZ="foo". Reject out-of-range components;.
33573 This requires that we sometimes generate our own TZ="XXX..." setting.
33575 2004-10-29 Paul Eggert <eggert@cs.ucla.edu>
33577 * doc/getdate.texi: New file, from coreutils with modifications for
33578 the new TZ parsing.
33580 2004-10-27 Derek R. Price <derek@ximbiot.com>
33582 * lib/mktime.c (not_equal_tm): Remove redundant check.
33584 2004-10-24 Paul Eggert <eggert@cs.ucla.edu>
33586 * modules/regex (lib_SOURCES): Add regex.c.
33587 Reported by James Youngman in
33588 <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
33590 2004-10-24 Paul Eggert <eggert@cs.ucla.edu>
33592 * lib/getdate.y: Use Bison 1.875 features, and some minor
33593 code cleanups. This change does not affect semantics.
33594 Don't include <stdlib.h>; no longer needed.
33595 Don't include unlocked-io.h; only the "#if TEST" code uses
33596 stdio, and performance isn't crucial there.
33597 (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
33598 Bison 1.875 features as described below.
33599 All uses of "PC." replaced by "pc->".
33600 (YYSTYPE): Add a forward declaration.
33601 (yylex, yyerror): Use full prototypes in forward decls.
33602 Use "%pure-parser" rather than obsolescent "%pure_parser".
33603 Use %parse-param and %lex-param instead of obsolescent
33604 YYPARSE_PARAM and YYLEX_PARAM.
33605 (meridian_table, month_and_day_table, time_units_table,
33606 relative_time_table, time_zone_table, military_table,
33607 lookup_zone, lookup_word, get_date):
33608 Use NULL instead of 0 where appropriate.
33609 (to_hour): Avoid abort (), to avoid a dependency on
33611 (yyerror, yylex): Now accepts parser_control * arg.
33612 (main) [TEST]: Use '\0' rather than 0 for char.
33614 2004-10-22 Paul Eggert <eggert@cs.ucla.edu>
33616 * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
33618 2004-10-22 Paul Eggert <eggert@cs.ucla.edu>
33620 * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
33621 It's now the caller's responsibility to handle the case where
33622 !HAVE_GETPAGESIZE && !defined getpagesize.
33624 * lib/mktime.c (leapyear): Arg is long int, not int.
33626 2004-10-18 Paul Eggert <eggert@cs.ucla.edu>
33628 * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
33630 2004-10-17 Paul Eggert <eggert@cs.ucla.edu>
33632 * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
33633 missing. Problem reported by James Youngman.
33635 2004-10-16 Simon Josefsson <jas@extundo.com>
33637 * gnulib-tool: Fix comments. Fix parse problem.
33638 (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
33640 2004-10-15 Paul Eggert <eggert@cs.ucla.edu>
33642 * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
33643 implementation of getopt_long. Problem reported by Alexander Taler in:
33644 http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
33646 2004-10-15 Bruno Haible <bruno@clisp.org>
33648 * gnulib-tool: Untabify. Initialize supplied_libname.
33649 (func_usage): More homogenous output.
33650 (func_modules_transitive_closure, func_modules_to_filelist,
33651 func_emit_lib_Makefile_am): New functions.
33652 (func_import): New function, extracted from big case statement. Use
33653 func_get_license, func_modules_transitive_closure,
33654 func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
33655 opt_lgpl. Don't use test -a, as it's not portable.
33656 (func_create_testdir): Use func_modules_transitive_closure,
33657 func_modules_to_filelist, func_emit_lib_Makefile_am.
33659 2004-10-15 Bruno Haible <bruno@clisp.org>
33661 * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
33663 2004-10-15 Bruno Haible <bruno@clisp.org>
33665 * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
33666 the portions belonging to each module.
33667 Suggested by Derek Robert Price <derek@ximbiot.com>.
33669 2004-10-12 Simon Josefsson <jas@extundo.com>
33671 * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
33672 (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
33675 2004-10-11 Yoann Vandoorselaere <yoann@prelude-ids.org>
33677 * modules/vsnprintf: New file.
33679 2004-10-11 Yoann Vandoorselaere <yoann@prelude-ids.org>
33681 * m4/vsnprintf.m4: New file.
33683 2004-10-11 Yoann Vandoorselaere <yoann@prelude-ids.org>
33685 * lib/vsnprintf.h: New file.
33686 * lib/vsnprintf.c: New file.
33688 2004-10-11 Bruno Haible <bruno@clisp.org>
33690 * MODULES.html.sh (Support for systems lacking ISO C 99): Add
33693 2004-10-10 Paul Eggert <eggert@cs.ucla.edu>
33695 * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
33697 2004-10-07 Bruno Haible <bruno@clisp.org>
33699 * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
33700 fits into the provided buffer.
33702 2004-10-06 Paul Eggert <eggert@cs.ucla.edu>
33704 * lib/diacrit.c, diacrit.h: Add GPL notice.
33706 * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
33708 * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
33709 * lib/logl.c (logl): Keep the code as similar to glibc as possible.
33710 This avoids a potential constant-folding bug.
33712 2004-10-05 Bruno Haible <bruno@clisp.org>
33714 * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
33715 for the declaration of strsep.
33717 2004-10-05 Bruno Haible <bruno@clisp.org>
33719 * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
33721 2004-10-04 Simon Josefsson <jas@extundo.com>
33723 * modules/memmem: New file.
33724 * tests/test-memmem.c: New file.
33725 * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
33727 2004-10-04 Simon Josefsson <jas@extundo.com>
33729 * m4/memmem.m4: New file.
33731 2004-10-04 Simon Josefsson <jas@extundo.com>
33733 * lib/memmem.h: New file.
33734 * lib/memmem.c: New file, taken from glibc.
33736 2004-10-04 Simon Josefsson <jas@extundo.com>
33738 * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
33739 '#ifdef USE_UNLOCKED_IO'.
33741 2004-10-04 Simon Josefsson <jas@extundo.com>
33743 * config/srclist.txt: Add memmem from glibc.
33745 2004-10-04 Paul Eggert <eggert@cs.ucla.edu>
33747 * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
33749 * modules/argmatch, modules/argp, modules/closeout, modules/error,
33750 modules/exclude, modules/getdate, modules/getline,
33751 modules/getndelim2, modules/getpass, modules/getpass-gnu,
33752 modules/getusershell, modules/linebuffer, modules/md5,
33753 modules/mountlist, modules/posixtm, modules/readtokens,
33754 modules/readutmp, modules/regex, modules/sha1,
33755 modules/version-etc, modules/yesno:
33756 Remove dependency on unlocked-io.
33758 2004-10-04 Paul Eggert <eggert@cs.ucla.edu>
33760 * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove. All uses removed.
33762 * m4/unlocked-io.m4: Add copyright notice.
33763 (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
33765 2004-10-04 Paul Eggert <eggert@cs.ucla.edu>
33767 * lib/xalloc.h (xmemdup): Renamed from xclone. All uses changed.
33768 * lib/xmalloc.c (xmemdup): Likewise.
33769 * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
33770 XFREE): Remove these long-obsolescent macros.
33771 * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
33772 * lib/xstrdup.c: Remove.
33774 * lib/regex.c (re_comp): Cast gettext return value to char *,
33775 Problem reported by Martin Neitzel via Mark D. Baushke.
33777 2004-10-04 Paul Eggert <eggert@cs.ucla.edu>
33779 * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
33780 getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
33781 md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
33782 regex.c, sha1.c, version-etc.c, yesno.c:
33783 Include "unlocked-io.h" only if USE_UNLOCKED_IO.
33784 * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
33785 the includer's responsibility.
33787 Sync from coreutils.
33789 * lib/modechange.c (mode_compile): Don't decrement a pointer that
33790 points to the start of a string, as the C Standard says the
33791 resulting behavior is undefined.
33793 * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
33794 simple -> simple_backups, numbered_existing ->
33795 numbered_existing_backups, numbered -> numbered_backups
33796 to avoid shadowing problems. All uses changed.
33797 * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
33798 * lib/backupfile.c (check_extension, numbered_backup):
33799 Rename locals to avoid shadowing 'basename'.
33800 * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
33803 * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
33804 * lib/.cvsignore: Add getopt.h.
33806 2004-10-04 Bruno Haible <bruno@clisp.org>
33808 * modules/README: New file.
33809 * gnulib-tool (func_all_modules, func_verify_module): modules/README is
33812 2004-10-02 Jim Meyering <jim@meyering.net>
33814 * lib/dirfd.h, getpagesize.h: Add copyright notice.
33816 2004-10-01 Yoann Vandoorselaere <yoann@prelude-ids.org>
33818 * modules/strsep: New file.
33820 2004-10-01 Yoann Vandoorselaere <yoann@prelude-ids.org>
33822 * m4/strsep.m4: New file.
33824 2004-10-01 Yoann Vandoorselaere <yoann@prelude-ids.org>
33826 * lib/strsep.h: New file.
33827 * lib/strsep.c: New file.
33829 2004-10-01 Simon Josefsson <jas@extundo.com>
33831 * lib/snprintf.c (snprintf): Handle size==0.
33833 2004-10-01 Simon Josefsson <jas@extundo.com>
33834 Bruno Haible <bruno@clisp.org>
33836 * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
33837 (snprintf): Declare 'args'.
33839 2004-10-01 Paul Eggert <eggert@cs.ucla.edu>
33841 * lib/snprintf.c: Remove comments as to why each header is needed.
33843 2004-10-01 Bruno Haible <bruno@clisp.org>
33845 * MODULES.html.sh: Add strsep.
33847 2004-09-30 Simon Josefsson <jas@extundo.com>
33849 * modules/snprintf: New file.
33851 2004-09-30 Simon Josefsson <jas@extundo.com>
33853 * m4/snprintf.m4: New file.
33855 2004-09-30 Simon Josefsson <jas@extundo.com>
33857 * lib/snprintf.h, lib/snprintf.c: New files.
33859 2004-09-30 Sergey Poznyakoff <gray@Mirddin.farlep.net>
33861 * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
33862 (hol_entry_help): Never translate an empty string.
33863 Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
33864 * lib/argp.h (OPTION_NO_TRANS): New option.
33866 2004-09-30 Paul Eggert <eggert@cs.ucla.edu>
33868 * modules/argp (Maintainer): Replace Simon Josefsson
33869 by Sergey Poznyakoff.
33871 2004-09-30 Paul Eggert <eggert@cs.ucla.edu>
33873 * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
33874 changes merged back into glibc.
33876 2004-09-30 Paul Eggert <eggert@cs.ucla.edu>
33878 * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
33880 2004-09-29 Oskar Liljeblad <oskar@osk.mine.nu>
33882 * lib/xvasprintf.c: Include xalloc.h.
33883 (xvasprintf): Use xalloc_die, not xmalloc_die.
33885 2004-09-29 Bruno Haible <bruno@clisp.org>
33887 * modules/alloca-opt: New file, derived from modules/alloca.
33888 * modules/allocsa: Depend on alloca-opt instead of alloca.
33889 * modules/setenv: Likewise.
33890 * modules/vasnprintf: Likewise.
33891 * MODULES.html.sh: Add alloca-opt.
33893 2004-09-28 Simon Josefsson <jas@extundo.com>
33895 * gnulib-tool: New parameter --lgpl, to asseert that modules are
33896 LGPL, and to replace license template from GPL to LGPL.
33898 2004-09-28 Paul Eggert <eggert@cs.ucla.edu>
33900 * modules/dummy: Change license to LGPL.
33902 2004-09-28 Paul Eggert <eggert@cs.ucla.edu>
33904 * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
33906 2004-09-24 Simon Josefsson <jas@extundo.com>
33908 * modules/minmax (License): Change from GPL to LGPL.
33910 2004-09-23 Simon Josefsson <jas@extundo.com>
33912 * gnulib-tool (--import): Typo.
33914 2004-09-23 Simon Josefsson <jas@extundo.com>
33916 * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
33918 2004-09-22 Bruno Haible <bruno@clisp.org>
33920 * modules/*: Add 'License' field.
33921 * gnulib-tool: Accept --extract-license option.
33922 (func_get_license): New function.
33924 2004-09-21 Bruno Haible <bruno@clisp.org>
33926 * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
33927 Reported by Simon Josefsson.
33929 2004-09-20 Paul Eggert <eggert@cs.ucla.edu>
33931 * modules/inttostr (Files): Add m4/longlong.m4, since it uses
33932 gl_AC_TYPE_LONG_LONG.
33934 2004-09-20 Paul Eggert <eggert@cs.ucla.edu>
33936 * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
33938 2004-09-18 Simon Josefsson <jas@extundo.com>
33939 and Paul Eggert <eggert@cs.ucla.edu>
33941 * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
33942 calls with autoreconf. Define GL_LIB.
33944 2004-09-14 Karl Berry <karl@gnu.org>
33946 * config/srclist.txt: unsync setenv.c, sigh.
33948 2004-09-13 Paul Eggert <eggert@cs.ucla.edu>
33950 * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
33951 Problem reported by Bruno Haible in:
33952 http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
33954 2004-09-13 Paul Eggert <eggert@cs.ucla.edu>
33956 * config/srclist.txt: Comment out argp-pvh.c.
33958 2004-09-11 Paul Eggert <eggert@cs.ucla.edu>
33960 * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
33961 in case some system header has #define'd it. Problem reported by
33962 Soeren D. Schulze in
33963 <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
33965 2004-09-09 Karl Berry <karl@gnu.org>
33967 * regex.[ch]: delete from the root. These were supposed to be
33968 synced with emacs cvs, but this has not happened for about
33969 a year, and anyway nothing else uses emacs regex.[ch].
33970 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
33971 lib/regex[.ch] is untouched.
33973 2004-09-09 Bruno Haible <bruno@clisp.org>
33975 * modules/vasnprintf (Files): Add m4/eoverflow.m4.
33977 2004-09-09 Bruno Haible <bruno@clisp.org>
33979 * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
33981 * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
33983 2004-09-08 Oskar Liljeblad <oskar@osk.mine.nu>
33985 * modules/xvasprintf: New file.
33986 * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
33988 2004-09-08 Oskar Liljeblad <oskar@osk.mine.nu>
33990 * lib/xvasprintf.h: New file.
33991 * lib/xvasprintf.c: New file.
33992 * lib/xasprintf.c: New file.
33994 2004-09-08 Bruno Haible <bruno@clisp.org>
33996 * m4/stdint.m4: New file, taken from GNU clisp with modifications.
33998 2004-09-08 Bruno Haible <bruno@clisp.org>
34000 * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
34001 length is > INT_MAX.
34002 * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
34005 2004-09-08 Bruno Haible <bruno@clisp.org>
34007 * lib/stdint_.h: New file, taken from GNU clisp.
34009 2004-09-08 Bruno Haible <bruno@clisp.org>
34010 Oskar Liljeblad <oskar@osk.mine.nu>
34012 * modules/stdint: New file.
34013 * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
34015 2004-08-19 Paul Eggert <eggert@cs.ucla.edu>
34017 Import from coreutils.
34018 * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
34019 strings on unbounded length. alloca's performance benefits aren't
34020 that important here.
34021 (V_STRDUP): Remove.
34022 (parse_with_separator): New function, with most of the internals
34023 of the old parse_user_spec. Allow user to omit both user and group,
34024 for compatibility with FreeBSD.
34025 Clone only the user name, not the entire spec.
34026 Do not set *uid, *gid unless entirely successful.
34027 Avoid memory leak in some failing cases.
34028 Fix regression for USER.GROUP reported by Dmitry V. Levin in
34029 <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
34030 (parse_user_spec): Rewrite to use parse_with_separator.
34032 2004-08-19 Paul Eggert <eggert@cs.ucla.edu>
34034 * modules/userspec: Don't depend on alloca.
34036 2004-08-19 Paul Eggert <eggert@cs.ucla.edu>
34038 * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
34040 2004-08-17 Paul Eggert <eggert@cs.ucla.edu>
34042 * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
34043 readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
34044 utimecmp, utimens, xnanosleep. Rename sha to sha1.
34046 2004-08-16 Simon Josefsson <jas@extundo.com>
34048 * gnulib-tool: Use sed instead of autoconf --trace, inspired by
34049 libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
34050 Add --dry-run for --import.
34051 Let user provided command line parameters override configure.ac
34054 2004-08-12 Simon Josefsson <jas@extundo.com>
34056 * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
34057 as discussed with Paul Eggert in threads rooted at
34058 <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
34060 <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
34061 Before, the test was empty, and relied on ELIDE_CODE in source
34063 (gl_PREREQ_GETOPT): New macro.
34064 (gl_GETOPT): Use them.
34066 2004-08-12 Simon Josefsson <jas@extundo.com>
34068 * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
34069 * lib/getopt_.h: Renamed from getopt.h.
34071 2004-08-12 Simon Josefsson <jas@extundo.com>
34073 * gnulib-tool: Add --source-base, --m4-base, --libtool options.
34074 Change default library name from libfoo to libgnu.
34075 Now, if you have a configure.ac that says:
34078 gl_MODULES(error getopt etcetera)
34080 you can import all you need by running:
34081 ../gnulib/gnulib-tool --import
34083 * modules/getopt (Files): Rename getopt.h to getopt_.h.
34084 (Makefile.am): Rewrite, use logic from argz.
34085 (Include): Use <getopt.h> instead of "getopt.h".
34087 2004-08-12 Paul Eggert <eggert@cs.ucla.edu>
34089 * modules/argp (Files): Add m4/unlocked-io.m4.
34090 (Depends-on): Add extensions.
34092 2004-08-12 Paul Eggert <eggert@cs.ucla.edu>
34094 * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
34095 uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
34096 Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
34097 Check for program_invocation_name, program_invocation_short_name,
34098 flockfile, funlockfile, features.h, _getopt_long_only_r.
34100 2004-08-12 Paul Eggert <eggert@cs.ucla.edu>
34102 * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
34103 its complicated substitute.
34104 * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
34105 and program_invocation_name.
34106 (__argp_basename) [!_LIBC]: Remove; the only use was
34107 replaced by its body.
34108 (__argp_short_program_name): Change condition from
34109 !defined __argp_short_program_name to
34110 ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
34111 to match argp-namefrob.h.
34112 (__argp_failure): Don't assume strerror_r returns char *.
34113 * lib/argp-parse.c (N_): Define unconditionally.
34114 (argp_default_options): Fill out initializers with 0 to avoid
34117 2004-08-12 Paul Eggert <eggert@cs.ucla.edu>
34119 * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
34122 2004-08-11 Paul Eggert <eggert@cs.ucla.edu>
34124 Merge from coreutils.
34126 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
34128 * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
34129 gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
34131 2004-08-11 Paul Eggert <eggert@cs.ucla.edu>
34133 Merge from coreutils.
34135 * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
34136 wmemchr or wmemcpy. Problem reported by Robert Dahlem
34137 for Reliant Unix 5.43.
34139 * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
34140 (union fooround): Use uintmax_t, not long int.
34141 The rest is a merge from libc:
34142 [defined _LIBC]: Include <shlib-compat.h>.
34143 (_obstack) [defined _LIBC]: Remove after 2.3.4.
34145 * lib/settime.c (settime): Recode to avoid warning with
34148 * lib/strverscmp.c: Convert to UTF-8.
34150 2004-08-11 Paul Eggert <eggert@cs.ucla.edu>
34152 * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
34155 2004-08-09 Paul Eggert <eggert@cs.ucla.edu>
34157 * modules/xalloc-die: New file.
34158 * modules/xalloc: Remove dependencies on error, gettext, exitfail.
34160 * modules/md5 (Files): Add m4/uint32_t.m4.
34161 * modules/sha1: Renamed from modules/sha.
34163 Rename lib/sha.h to lib/sha1.h.
34164 Rename lib/sha.c to lib/sha1.c.
34165 Rename m4/sha.m4 to m4/sha1.m4.
34166 (lib_SOURCES): Likewise.
34167 (configure.ac): Rename gl_SHA to gl_SHA1.
34168 (Include): sha.h -> sha1.h.
34170 2004-08-09 Paul Eggert <eggert@cs.ucla.edu>
34172 * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
34173 * m4/sha1.m4: Renamed from sha.m4.
34174 (gl_SHA1): Renamed from gl_SHA. All uses changed.
34176 2004-08-09 Paul Eggert <eggert@cs.ucla.edu>
34178 * lib/obstack.h (obstack_empty_p):
34179 Don't assume that chunk->contents is suitably aligned.
34180 * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
34181 Likewise. Problem reported by Benno in
34182 <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
34184 * lib/chown.c (rpl_chown): Work even if the file is writeable but not
34185 readable. This could be improved further but it'd take some work.
34187 2004-08-08 Simon Josefsson <jas@extundo.com>
34189 * modules/xgethostname (Depends-on): Remove exit and error (not
34192 * modules/getpass-gnu: Add getpass.h.
34193 (Depends-on): Add stdbool.
34194 * modules/getpass: Add getpass.h.
34196 2004-08-08 Simon Josefsson <jas@extundo.com>
34198 * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
34199 Check getpass declaration.
34201 2004-08-08 Simon Josefsson <jas@extundo.com>
34203 * lib/xgethostname.c: Don't include error.h (not used).
34205 * lib/getpass.h: Add.
34206 * lib/getpass.c: Include getpass.h first.
34208 2004-08-08 Paul Eggert <eggert@cs.ucla.edu>
34210 * lib/xalloc-die.c: New file.
34211 * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
34213 * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
34214 Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
34216 (_, N_, xalloc_die): Move to xalloc-die.c.
34217 * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
34218 so that we needn't mess with xalloc_msg_memory_exhausted.
34220 * lib/sha1.h: Renamed from sha.h.
34221 (SHA1_H): Renamed from _SHA_H.
34222 (sha1_ctx): Renamed from sha_ctx.
34223 (sha1_init_ctx): Renamed from sha_init_ctx.
34224 (sha1_process_block): Renamed from sha_process_block.
34225 (sha1_process_bytes): Renamed from sha_process_bytes.
34226 (sha1_finish_ctx): Renamed from sha_finish_ctx.
34227 (sha1_read_ctx): Renamed from sha_read_ctx.
34228 (sha1_stream): Renamed from sha_stream.
34229 (sha1_buffer): Renamed from sha_buffer.
34230 * lib/sha1.c: Likewise; renamed from sha.c.
34231 Do not include <sys/types.h>.
34232 Include <stddef.h> rather than <stdlib.h>.
34234 2004-08-08 Bruno Haible <bruno@clisp.org>
34236 * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
34237 FILESYSTEM_PREFIX_LEN.
34238 * lib/progreloc.c: Likewise.
34239 * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
34241 2004-08-06 Simon Josefsson <jas@extundo.com>
34243 * modules/progname (Depends-on): Don't depend on stdbool.
34245 2004-08-06 Simon Josefsson <jas@extundo.com>
34247 * modules/getsubopt: New file.
34248 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
34251 2004-08-06 Paul Eggert <eggert@cs.ucla.edu>
34253 More merge from coreutils.
34255 * m4/utimens.m4, m4/utimecmp.m4: New files.
34256 * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
34257 fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
34258 prereq.m4, sha.m4: Import changes from coreutils.
34260 2004-08-06 Paul Eggert <eggert@cs.ucla.edu>
34262 More merge from coreutils.
34263 * modules/raise, modules/readtokens0, modules/utimens:
34264 * modules/utimecmp, module/xnanosleep: New files.
34265 * modules/strftime: Add lib/strftime.h.
34266 Change include from <time.h> to "strftime.h".
34267 * modules/yesno: Add lib/yesno.h.
34268 * modules/backupfile: Remove lib/addext.c.
34269 * modules/euidaccess: Add stat-macros.h.
34270 * modules/canonicalize, modules/euidaccess,
34271 modules/filemode, modules/lchown, modules/makepath,
34272 modules/rmdir, modules/stat: Likewise.
34274 2004-08-06 Paul Eggert <eggert@cs.ucla.edu>
34277 * lib/argp-help.c (make_hol, hol_append): Don't assume that
34278 SIZE_MAX is a valid preprocessor constant.
34279 (__argp_basename): Change from "#ifndef _LIBC"
34280 to "#ifndef __argp_short_program_name", so that
34281 we don't compile these functions for tar.
34283 More merges from coreutils.
34284 * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
34285 * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
34286 * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
34287 * lib/addext.c: Remove; no longer needed.
34288 * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
34289 lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
34290 lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
34291 lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
34292 lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
34293 lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
34294 lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
34295 lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
34296 lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
34297 lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
34298 lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
34299 lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
34300 lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
34301 lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
34302 lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
34303 lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
34304 lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
34305 Import changes from coreutils.
34307 2004-08-05 Simon Josefsson <jas@extundo.com>
34309 * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
34311 2004-08-05 Simon Josefsson <jas@extundo.com>
34313 * m4/getsubopt.m4: New file.
34315 2004-08-05 Paul Eggert <eggert@cs.ucla.edu>
34317 Merge from coreutils.
34319 * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
34320 * m4/getcwd-path-max.m4: New files.
34322 * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
34323 FILESYSTEM_PREFIX_LEN ->
34324 FILE_SYSTEM_PREFIX_LEN.
34325 FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
34326 FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
34327 FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
34328 FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
34330 * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
34331 prerequisite modules now handle the DOS stuff.
34332 Don't check for unistd.h.
34334 2004-08-05 Paul Eggert <eggert@cs.ucla.edu>
34336 Merge from coreutils.
34338 * lib/.gdb-history: Remove; this doesn't belong here.
34340 * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
34341 * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
34342 * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
34343 * lib/getcwd.c: New files.
34345 * lib/dirname.h: Include <stdbool.h>.
34346 (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
34347 for consistency with POSIX terminology. All uses changed.
34348 (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
34349 (strip_trailing_slashes): Use bool for booleans.
34350 * lib/stripslash.c (strip_trailing_slashes): Likewise.
34352 * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
34353 sometimes returns a positive errno value even when it succeeds.
34354 (print_errno_message) [!LIBC]: Fall back on strerror if
34355 __strerror_r fails.
34357 * lib/path-concat.c (mempcpy): Don't define if a system header defines
34358 it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
34359 (longest_relative_suffix): New function.
34360 (path_concat): Use it. Assume first argument is not NULL.
34361 Port to DOS. Omit redundant separators.
34362 Report an error instead of returning NULL.
34363 Use mempcpy instead of memcpy.
34364 (xpath_concat): Remove: not declared or used.
34366 * lib/same.h: Include <stdbool.h>
34367 (same_name): Return bool, not int.
34368 * lib/same.c (same_name): Likewise.
34369 (errno): Don't declare; we assume C89 or better now.
34371 * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
34372 if not already defined.
34374 * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
34375 * lib/dup-safer.c (errno): Likewise.
34377 2004-08-05 Paul Eggert <eggert@cs.ucla.edu>
34379 Merge from coreutils.
34380 * modules/c-strtod, modules/c-strtold, modules/canonicalize:
34381 * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
34382 * modules/path-concat: Don't depend on strdup.
34384 2004-08-03 Simon Josefsson <jas@extundo.com>
34386 * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
34387 * lib/progname.h: Don't include stdbool.h.
34389 2004-08-03 Paul Eggert <eggert@cs.ucla.edu>
34391 * modules/fatal: Remove, as the "fatal" module wasn't used or working.
34392 * MODULES.html.sh (func_all_modules): Remove fatal.
34394 2004-08-03 Paul Eggert <eggert@cs.ucla.edu>
34396 * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
34398 2004-08-03 Paul Eggert <eggert@cs.ucla.edu>
34400 * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
34403 2004-08-02 Simon Josefsson <jas@extundo.com>
34405 * lib/getsubopt.h: New file, with comments from Bruno Haible.
34406 * lib/getsubopt.c: New file, from glibc, but slightly modified based on
34407 suggestions from Paul Eggert <eggert@cs.ucla.edu>.
34409 2004-08-01 Simon Josefsson <jas@extundo.com>
34411 * lib/xgetdomainname.c: Include stdlib.h, for free().
34413 2004-07-19 Bruno Haible <bruno@clisp.org>
34415 * MODULES.html.sh (func_all_modules): Add dummy.
34417 2004-07-16 Simon Josefsson <jas@extundo.com>
34419 * modules/dummy: New file.
34421 2004-07-16 Simon Josefsson <jas@extundo.com>
34423 * lib/dummy.c: New file.
34425 2004-07-16 Bruno Haible <bruno@clisp.org>
34427 * lib/backupfile.h: Add extern "C" for C++.
34428 * lib/closeout.h: Likewise.
34429 * lib/copy-file.h: Likewise.
34430 * lib/findprog.h: Likewise.
34431 * lib/full-write.h: Likewise.
34432 * lib/pathname.h: Likewise.
34433 * lib/progname.h: Likewise.
34434 * lib/stpcpy.h: Likewise.
34435 * lib/stpncpy.h: Likewise.
34436 * lib/strcase.h: Likewise.
34437 * lib/strstr.h: Likewise.
34438 * lib/xalloc.h: Likewise.
34440 * lib/mbswidth.h: Add extern "C" for C++.
34441 Reported by Albert Chin-A-Young <china@thewrittenword.com>.
34443 2004-07-13 Robert Millan <robertmh@gnu.org>
34445 * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
34447 2004-07-09 Simon Josefsson <jas@extundo.com>
34449 * lib/getndelim2.c: Include stddef.h, for ptrdiff_t. (FreeBSD 4.9
34450 failed without this.)
34452 2004-07-09 Paul Eggert <eggert@cs.ucla.edu>
34454 * modules/chown (Files): Add lib/fchown-stub.c, since
34455 gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
34457 2004-07-09 Paul Eggert <eggert@cs.ucla.edu>
34459 * lib/fchown-stub.c: New file.
34461 2004-06-24 Jim Meyering <jim@meyering.net>
34463 * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
34465 2004-06-22 Paul Eggert <eggert@cs.ucla.edu>
34467 * modules/argz: Omit "#include".
34469 * MODULES.html.sh (func_all_modules): Add calloc, to match
34470 2004-06-01 addition of calloc module.
34472 2004-06-22 Paul Eggert <eggert@cs.ucla.edu>
34474 * m4/argz.m4: New file, which is autoupdated from libtool.
34476 2004-06-22 Paul Eggert <eggert@cs.ucla.edu>
34478 * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
34481 2004-06-22 Paul Eggert <eggert@cs.ucla.edu>
34483 * config/srclist-update: Don't insist on "USA." before the
34484 close-comment, as libtool omits the period and puts the */ on a
34486 * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
34487 * config/srclistvars.sh: Add LIBTOOL (for eggert only).
34489 2004-06-22 Gary V. Vaughan <gary@gnu.org>
34491 * modules/argz: New file.
34492 * MODULES.html.sh (func_all_modules): Add argz.
34494 2004-06-12 Jim Meyering <jim@meyering.net>
34495 and Paul Eggert <eggert@cs.ucla.edu>
34497 * modules/hash (Files): Add lib/xalloc.h.
34498 * modules/pipe (Depends-on): Add wait-process.
34499 * modules/stat (Depends-on): Add xalloc.
34500 * modules/userspec (Files): Add lib/userspec.h.
34503 Upgrade from gettext-0.13.
34504 * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
34505 m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
34506 m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
34508 2004-06-10 Jim Meyering <jim@meyering.net>
34510 * lib/calloc.c: New file.
34512 2004-06-06 Paul Eggert <eggert@cs.ucla.edu>
34514 * lib/getdate.y (yylex): Allow space between sign and number.
34515 Problem reported by Dan Jacobson.
34517 2004-06-01 Paul Eggert <eggert@cs.ucla.edu>
34519 Merge from coreutils CVS.
34521 * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
34522 makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
34523 putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
34524 strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
34525 xstrtol.m4: Fix copyright date and/or serial number.
34527 * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
34528 See if we need an fchown replacement.
34529 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
34530 (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
34531 and use the replacement function if we detect either defect.
34533 * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
34536 2004-06-01 Paul Eggert <eggert@cs.ucla.edu>
34537 and Jim Meyering <jim@meyering.net>
34539 Merge from coreutils CVS.
34541 * lib/stat-macros.h: New file, with contents from file-type.h
34542 and coreutils' system.h.
34543 * lib/file-type.c: Include "stat-macros.h".
34544 * lib/file-type.h (file_type): Move all macro definitions to new file,
34547 * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
34548 Wrap old code with this conditional.
34549 [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
34550 function that does not dereference symlinks.
34551 * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
34553 * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
34554 dependency problems.
34555 (xreadlink): Accept new arg SIZE, for efficiency.
34556 All decls and uses changed.
34557 * lib/xreadlink.h: Include <stddef.h>, for size_t.
34559 * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
34560 gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
34562 * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
34565 2004-06-01 Jim Meyering <jim@meyering.net>
34567 * m4/calloc.m4: New file.
34569 2004-05-31 Paul Eggert <eggert@cs.ucla.edu>
34571 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
34572 C B3910B A.05.55 [Dec 04 2003]. Problem reported by Jim Meyering.
34573 Also, fix a typo in a diagnostic.
34575 2004-05-30 Paul Eggert <eggert@cs.ucla.edu>
34577 * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
34578 or AC_FUNC_REALLOC.
34580 2004-05-30 Paul Eggert <eggert@cs.ucla.edu>
34582 * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
34583 macros to be defined.
34584 (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
34585 the allocator returns NULL because the requested size is zero.
34587 2004-05-20 Paul Eggert <eggert@cs.ucla.edu>
34589 * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
34590 var. Add comment explaining why libc still defines it. This
34591 merges the following patch from glibc:
34592 http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
34594 2004-05-20 Andreas Schwab <schwab@suse.de>
34596 * m4/free.m4: Replace free if it not known to work, not the other
34599 2004-05-19 Paul Eggert <eggert@cs.ucla.edu>
34601 * lib/obstack.c (_obstack): Remove unused variable. It hasn't been
34602 present in glibc since revision 1.1 of this file.
34603 * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
34604 obstack_alignment_mask, obstack_alloc, obstack_base,
34605 obstack_blank, obstack_blank_fast, obstack_chunk_size,
34606 obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
34607 obstack_grow0, obstack_init, obstack_int_grow,
34608 obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
34609 obstack_next_free, obstack_object_size, obstack_ptr_grow,
34610 obstack_ptr_grow_fast, obstack_room): Remove declarations of
34611 nonexistent functions.
34613 2004-05-18 Karl Berry <karl@gnu.org>
34615 * config/srclist.txt: break link for vasnprintf.c.
34617 2004-05-17 Paul Eggert <eggert@cs.ucla.edu>
34619 Port obstack to the AS/400, where pointers are 16 bytes wide and
34620 you cannot cast an integer to a valid pointer. This patch is
34621 currently waiting to be integrated into glibc; see
34622 <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
34624 * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
34625 All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
34626 (__BPTR_ALIGN, __PTR_ALIGN): New macros.
34627 (struct obstack): temp member is now a union of a pointer and
34628 an integer, instead of an integer. All integer uses changed.
34629 This does not affect the physical layout of struct obstack,
34630 except on hosts (like the AS/400) where the size or alignment of
34631 void * is greater than that of ptrdiff_t.
34632 (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
34633 __STDC__)]: Store temporary in pointer member of union, not
34635 * lib/obstack.c: Include <stddef.h>, for offsetof.
34636 (struct fooalign): Remove; it doesn't need a name.
34637 (union fooround): Change double to long double, and add void *.
34638 (DEFAULT_ALIGNMENT): Use offsetof to compute.
34639 (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
34640 not a macro. Hence the values are always int; so remove all
34641 casts-to-int in uses.
34643 2004-05-17 Paul Eggert <eggert@cs.ucla.edu>
34645 * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
34646 we can get this patch merged into glibc.
34648 2004-05-17 Derek R. Price <derek@ximbiot.com>
34649 Paul Eggert <eggert@cs.ucla.edu>
34651 * m4/argp: Depend on alloca.
34653 2004-05-17 Derek R. Price <derek@ximbiot.com>
34654 Paul Eggert <eggert@cs.ucla.edu>
34656 * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
34659 2004-05-17 Bruno Haible <bruno@clisp.org>
34661 * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
34662 precision that consists of a '.' followed by an empty digit string.
34663 Patch by Tor Lillqvist <tml@iki.fi>.
34665 2004-05-16 Paul Eggert <eggert@cs.ucla.edu>
34667 * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
34668 for backward compatibility with older code. We need our own
34669 alloca.h if _AIX is defined. Define HAVE_ALLOCA if we discover
34670 it under some other name, and our alloca.h will define it.
34672 2004-05-16 Paul Eggert <eggert@cs.ucla.edu>
34673 Derek Price <derek@ximbiot.com>
34675 * lib/alloca.c: Include <alloca.h>, to get our interface.
34676 * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
34677 include <alloca.h> first. Use C89 prototype for alloca; this
34678 requires including <stddef.h> for size_t. Use extern "C" if C++.
34679 Use #elif for simplicity, since we can assume C89 now.
34680 Don't try to source the system alloca.h since it will not be found
34681 and to prevent recursively including its replacement.
34682 * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
34683 * lib/regex.c: Likewise.
34685 2004-05-16 Derek Price <derek@ximbiot.com>
34686 Paul Eggert <eggert@cs.ucla.edu>
34688 getline cleanup. This changes the getndelim2 API: both order of
34689 arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
34692 * lib/getline.c: Don't include stddef.h or stdio.h, since our
34693 interface does that.
34694 (getline): Always use getdelim, so that we don't have two
34695 copies of this code.
34696 * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
34698 (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
34699 (GETNDELIM2_MAXIMUM): New macro.
34700 (getndelim2): Reorder arguments. delim==EOF now means no delimiter,
34701 instead of the old practice of delim2==0. All callers changed.
34702 Return -1 on overflow, instead of returning junk.
34703 Do not set *linesize unless allocation succeeds.
34704 * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
34705 that we include sys/types.h.
34706 * lib/getnline.h: Likewise.
34707 * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
34708 (getndelim2): Reorder arguments.
34709 * lib/getnline.c (getnline, getndelim):
34710 Don't discard the NMAX argument.
34711 (getnline): Invoke getndelim, to avoid code duplication.
34712 * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
34713 of (size_t) -1 by callers of the getnline family.
34715 2004-05-13 Paul Eggert <eggert@cs.ucla.edu>
34717 * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
34718 Check for gettimeofday.
34719 * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
34720 Check for settimeofday, stime.
34722 2004-05-13 Paul Eggert <eggert@cs.ucla.edu>
34724 * lib/nanosleep.c (suspended): Change its type from int to
34725 sig_atomic_t volatile.
34726 (first_call): Make it private to rpl_nanosleep, and have it
34727 be zero initially as that's a bit faster.
34728 (my_usleep): Round up fractional times instead of truncating them,
34729 as this is the usual meaning for 'sleep'.
34731 * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
34733 * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
34734 (ENOSYS): Define if not defined.
34735 (settime): Fall back on stime if it exists and settimeofday fails.
34736 But don't bother with fallbacks if a method fails with errno == EPERM.
34738 2004-05-11 Jim Meyering <jim@meyering.net>
34740 Prior to this change, the save_cwd caller required read access to the
34741 current directory on most systems (ones with the fchdir function).
34743 * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
34744 fails, try write-only, and finally, resort to using xgetcwd.
34746 2004-05-06 Paul Eggert <eggert@cs.ucla.edu>
34748 * lib/obstack.c, obstack.h: Import changes from libc.
34750 2004-04-28 Bruno Haible <bruno@clisp.org>
34752 * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
34753 also implicitly appends .exe to executables.
34754 * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
34755 accepts Windows pathnames.
34756 * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
34757 Treat Cygwin like Windows, since it now accepts Windows pathnames.
34758 * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
34759 Treat Cygwin like Windows, since it now accepts Windows pathnames.
34760 Reported by Derek Robert Price <derek@ximbiot.com>.
34762 2004-04-21 Karl Berry <karl@gnu.org>
34764 * config/srclist.txt (localcharset.c): break sync.
34766 2004-04-20 Paul Eggert <eggert@twinsun.com>
34768 * m4/host-os.m4: Add a copyright notice.
34770 2004-04-20 Jim Meyering <jim@meyering.net>
34772 Change UTILS_ to gl_ in AC_DEFINE'd names.
34773 Change utils_- and jm_-prefixed variables, too.
34774 * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
34775 UTILS_FUNC_MKDIR_TRAILING_SLASH.
34776 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
34778 * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
34779 Don't emit trailing blanks.
34780 Also rename jm_-prefixed variables to have gl_ prefix.
34782 * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
34783 Also rename jm_-prefixed variables to have gl_ prefix.
34785 * m4/jm-macros.m4: Reflect the renamings.
34786 * m4/prereq.m4: Likewise.
34788 2004-04-20 Jim Meyering <jim@meyering.net>
34790 * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
34793 2004-04-20 Jim Meyering <jim@meyering.net>
34794 Bruno Haible <bruno@clisp.org>
34796 * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
34797 memory when realloc fails.
34799 2004-04-19 Jim Meyering <jim@meyering.net>
34801 * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
34802 now that readutmp.c may call `free (0)'.
34804 2004-04-19 Bruno Haible <bruno@clisp.org>
34806 * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
34807 * m4/inttypes_h.m4: Likewise.
34808 * m4/stdint_h.m4: Likewise.
34809 * m4/intmax_t.m4: Likewise.
34810 * m4/uintmax_t.m4: Likewise.
34812 2004-04-18 Jim Meyering <jim@meyering.net>
34814 * m4/prereq.m4: Don't forbid jm_ prefix.
34816 * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
34817 * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
34818 * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
34819 * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
34820 * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
34821 * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
34822 * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
34823 * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
34824 * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
34825 * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
34826 * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
34827 * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
34828 * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
34829 * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
34830 * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
34831 * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
34832 * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
34833 * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
34834 Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
34836 2004-04-18 Jim Meyering <jim@meyering.net>
34838 * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
34839 failure, don't leak memory and do call END_UTMP_ENT.
34841 2004-04-16 Jim Meyering <jim@meyering.net>
34843 * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro. It is specific to
34844 coreutils' stat program.
34845 (gl_PREREQ): Don't require jm_PREREQ_STAT.
34847 2004-04-11 Paul Eggert <eggert@twinsun.com>
34849 * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
34851 (CHAR_BIT): Remove, since we assume C89.
34852 Include <stdint.h> if available, as per current Autoconf CVS advice.
34854 2004-03-31 Jim Meyering <jim@meyering.net>
34856 * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
34857 Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
34858 * m4/xalloc.m4: Likewise.
34860 2004-03-30 Paul Eggert <eggert@twinsun.com>
34862 Merge from coreutils.
34864 * m4/inttostr.m4: New file.
34865 * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
34866 Require AM_STDBOOL_H and gl_TIMESPEC instead.
34867 Require gl_CLOCK_TIME.
34868 * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
34870 2004-03-30 Paul Eggert <eggert@twinsun.com>
34872 * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
34873 not bool, to be more consistent with Unix conventions.
34874 Suggested by Bruno Haible.
34876 Merge from coreutils.
34878 * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
34879 * lib/umaxtostr.c: New files.
34881 * lib/getdate.h: Include stdbool.h, and timespec.h instead of
34882 the usual <time.h> dance.
34883 (get_date): Change signature to support fractional time stamps.
34884 All callers changed.
34885 * lib/getdate.y: Include "getdate.h" first, as we can now
34886 assume C89 and don't need to worry about 'const'.
34887 Similarly, include "unlocked-io.h" near start, not in middle.
34888 Include <limits.h>.
34889 (textint.value): Use long int rather than int.
34890 (textint.digits): Use size_t rather than int.
34891 (BILLION, LOG10_BILLION): New constants.
34892 (parser_control): New member rel_ns. Members day_ordinal,
34893 time_zone, month, day, hour, minutes, rel_year, rel_month,
34894 rel_day, rel_hour, rel_minutes, rel_seconds
34895 are now long int, not int. Member seconds is now struct timespec,
34896 not int. New member timespec_seen. Members dates_seen, days_seen,
34897 local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
34899 (%union.intval): Now long int, not int.
34900 New member timespec.
34901 (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
34902 (seconds, signed_seconds, unsigned_seconds): New nonterminals.
34903 (spec): Now is a timespec or an item list.
34904 (timespec, items): New nonterminals.
34905 (time, rel, relunit, number, get_date):
34906 Add support for fractional seconds.
34907 (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
34908 (gmtime, localtime, mktime): Remove decls; not needed with C89.
34909 (to_hour): First arg is now long int, not int.
34910 (to_year): Returns long int, not int.
34911 Don't treat year -70 like 70.
34912 (tm_diff): Returns long int, not int.
34913 (lookup_word): Use bool instead of int when appropriate.
34914 (yylex): Use size_t for count, not int.
34915 Detect overflow when parsing large integer constants.
34916 Add support for fractions.
34917 (get_date): Make pointers 'const' if possible.
34918 Use more-portable code to detect integer overflow.
34919 (main) [TEST]: Adjust to above changes. Test for localtime failure.
34920 Don't use ctime; it's not reliable if the year has >4 digits.
34922 * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
34923 This is for compatibility with BSD.
34925 * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
34926 (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
34927 From coreutils' system.h.
34929 * lib/userspec.c: Don't include "posixver.h".
34930 (parse_user_spec): Fall back on USER.GROUP parsing, regardless
34931 of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
34932 compatible extension. Simplify code by removing a boolean int
34933 that was always nonzero if a string was nonnull.
34935 2004-03-30 Jim Meyering <jim@meyering.net>
34937 Merge from coreutils.
34939 Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
34940 * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
34941 on some systems one must include <grp.h> before it.
34942 Reported by Christian Krackowizer.
34944 2004-03-30 Jim Meyering <jim@meyering.net>
34946 Merge from coreutils.
34948 * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
34950 * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
34951 an empty input stream.
34953 * lib/readtokens.c: Include <stdbool.h>.
34954 (readtoken): Use `size_t' rather than int/long.
34955 All callers adjusted.
34956 Use `bool' rather than `int' where appropriate.
34957 Use memset rather than an explicit loop.
34958 Use x2nrealloc rather than xrealloc.
34959 Allow the use of `\0' as a delimiter.
34960 (readtokens): Likewise.
34961 * lib/readtokens.h (readtoken, readtokens): Update prototypes.
34963 2004-03-30 Jim Meyering <jim@meyering.net>
34965 * m4/realloc.m4: Remove file, since now it does no more than
34966 AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
34967 the `configure.ac' section of module/realloc.
34968 * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
34970 2004-03-30 Bruno Haible <bruno@clisp.org>
34972 * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
34975 2004-03-29 Paul Eggert <eggert@twinsun.com>
34977 Merge changes to getloadavg.c from coreutils and Emacs.
34979 * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
34980 Define to an expression, not to the empty string.
34981 Include cloexec.h and xalloc.h.
34982 (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
34983 Use set_cloexec_flag rather than rolling our own.
34984 * lib/cloexec.c, lib/cloexec.h: New files.
34986 2004-03-29 Paul Eggert <eggert@twinsun.com>
34988 * m4/cloexec.m4: New file.
34990 2004-03-18 Paul Eggert <eggert@twinsun.com>
34992 * lib/getopt.h: Sync with libc CVS.
34994 2004-03-18 Paul Eggert <eggert@twinsun.com>
34995 Bruno Haible <bruno@clisp.org>
34997 * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
35000 2004-03-18 Paul Eggert <eggert@twinsun.com>
35001 Bruno Haible <bruno@clisp.org>
35003 * lib/mbswidth.h: Include <wchar.h> only if
35004 HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
35006 * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
35008 2004-03-09 Paul Eggert <eggert@twinsun.com>
35010 * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
35011 Sync with libc CVS.
35012 * lib/getopt_int.h: New file, also synced from libc.
35014 2004-03-09 Paul Eggert <eggert@twinsun.com>
35016 * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
35017 * config/srclist.txt: Sync getopt with libc. Add getopt_int.h.
35018 Bring back getopt.c, getopt.h, getopt1.c.
35020 2004-03-07 Paul Eggert <eggert@twinsun.com>
35022 * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
35023 All uses changed. Check for sa_sigaction member; this fixes
35024 a bug first reported by Jason Andrade in
35025 <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
35027 2004-03-07 Paul Eggert <eggert@twinsun.com>
35029 * lib/c-stack.c (SIGACTION_WORKS): New macro. Use it instead of long
35030 '#if' expressions. Unlike the code it replaces, it does not
35031 depend on (defined _SC_PAGESIZE). However, it does depend on
35032 HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
35033 first reported by Jason Andrade in
35034 <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
35036 2004-02-25 Simon Josefsson <jas@extundo.com>
35038 * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
35040 2004-02-25 Simon Josefsson <jas@extundo.com>
35042 * lib/strdup.h: New file.
35043 * lib/strdup.c: Include it.
35044 * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
35045 * lib/userspec.c: Include strdup.h. Drop strdup declaration.
35047 2004-02-23 Karl Berry <karl@gnu.org>
35049 * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
35050 (from fencepost.gnu.org:/gd/gnuorg).
35052 2004-02-23 Karl Berry <karl@gnu.org>
35054 * config/srclistvars.sh (GNUORG) [karl]: redefine.
35055 * config/srclist.txt: add maintain/standards documents.
35057 2004-02-18 Bruno Haible <bruno@clisp.org>
35059 * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
35060 Reported by Derek Robert Price <derek@ximbiot.com>.
35062 2004-02-16 Karl Berry <karl@gnu.org>
35064 * config/mkinstalldirs, install-sh: update from automake.
35066 2004-02-06 Karl Berry <karl@gnu.org>
35068 * m4/po.m4: update from gettext 0.14.1.
35070 2004-02-06 Karl Berry <karl@gnu.org>
35072 * lib/config.charset: update from gettext 0.14.1.
35074 2004-02-05 Paul Eggert <eggert@twinsun.com>
35076 Add comments and code, prompted by suggestions from Bruno Haible
35078 * lib/quotearg.h (quotearg_alloc): New decl. Improve the comments
35079 describing the enum quoting_style values.
35080 * lib/quotearg.c (quotearg_alloc): New function.
35081 (quotearg_buffer_restyled): Treat lone { and } as special.
35082 Treat = as special. Work around bug with older shells
35083 that "see" a '\' that is really the 2nd byte of a multibyte char.
35084 Quote empty string with shell_quoting_style.
35086 2004-02-03 Bruno Haible <bruno@clisp.org>
35088 * m4/pipe.m4: New file, from GNU gettext.
35090 2004-02-03 Bruno Haible <bruno@clisp.org>
35092 * lib/pipe.h: New file, from GNU gettext.
35093 * lib/pipe.c: New file, from GNU gettext.
35095 2004-01-27 Bruno Haible <bruno@clisp.org>
35097 * m4/execute.m4: New file, from GNU gettext.
35099 2004-01-27 Bruno Haible <bruno@clisp.org>
35101 * lib/execute.h: New file, from GNU gettext.
35102 * lib/execute.c: New file, from GNU gettext.
35103 * lib/w32spawn.h: New file, from GNU gettext.
35105 2004-01-24 Paul Eggert <eggert@twinsun.com>
35107 Merge from diffutils.
35109 * lib/file-type.c (file_type): Add typed memory objects.
35110 * lib/file-type.h (S_TYPEISTMO): New macro.
35112 * lib/c-stack.h (c_stack_action): Remove argv argument.
35113 * lib/c-stack.c (c_stack_action): Likewise. All uses changed.
35114 (die): Don't calculate message unless segv_action returns.
35115 (get_stack_location, min_address_from_argv, max_address_from_argv,
35116 volatile stack_base, volatile_stack_size): Remove.
35117 (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
35118 that every segmentation violation is a stack overflow. (Ouch!)
35119 See Debian bug 136249 (still outstanding) for more info about why
35120 HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
35122 2004-01-24 Paul Eggert <eggert@twinsun.com>
35124 Exit-status fix from coreutils.
35126 Use exit_failure consistently in place of EXIT_FAILURE,
35127 so that program exit statuses are consistent on failure.
35129 * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
35130 Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
35131 * lib/argmatch.h: Comment fix to match the above.
35132 * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
35133 Now a macro referring to exit_failure, instead of a separate
35134 variable. Include "exitfail.h" to get it.
35135 * lib/xstrtol.h: Include "exitfail.h".
35136 (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
35138 * lib/long-options.c (parse_long_options): Use prototype
35139 for usage function arg. Pass it EXIT_SUCCESS rather than 0,
35142 2004-01-21 Jim Meyering <jim@meyering.net>
35144 * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
35145 so as not to conflict with a different-sized __mktime_internal
35146 function in GNU libc.
35147 * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
35148 Problem building statically-linked `ls' reported by Michael Brunnbauer.
35150 2004-01-20 Karl Berry <karl@gnu.org>
35152 * config/config.guess: update from config.
35154 * config/srclistvars.sh: GNUWWWLICENSES for karl.
35156 2004-01-20 Bruno Haible <bruno@clisp.org>
35158 Safer stack allocation.
35159 * lib/setenv.c: Include allocsa.h.
35160 (alloca): Remove fallback definition.
35161 (freea): Remove macro.
35162 (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
35165 2004-01-20 Bruno Haible <bruno@clisp.org>
35167 * m4/eealloc.m4: New file, from GNU gettext.
35169 2004-01-20 Bruno Haible <bruno@clisp.org>
35171 * m4/allocsa.m4: New file, from GNU gettext.
35173 2004-01-20 Bruno Haible <bruno@clisp.org>
35175 * lib/xallocsa.h: New file, from GNU gettext.
35176 * lib/xallocsa.c: New file, from GNU gettext.
35178 2004-01-20 Bruno Haible <bruno@clisp.org>
35180 * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
35182 2004-01-20 Bruno Haible <bruno@clisp.org>
35184 * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
35185 * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
35188 2004-01-20 Bruno Haible <bruno@clisp.org>
35190 * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
35193 2004-01-20 Bruno Haible <bruno@clisp.org>
35195 * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
35197 2004-01-20 Bruno Haible <bruno@clisp.org>
35199 * lib/eealloc.h: New file.
35201 2004-01-20 Bruno Haible <bruno@clisp.org>
35203 * lib/binary-io.h: Avoid warnings on Cygwin.
35205 2004-01-20 Bruno Haible <bruno@clisp.org>
35207 * lib/allocsa.h: New file, from GNU gettext.
35208 * lib/allocsa.c: New file, from GNU gettext.
35210 2004-01-18 Karl Berry <karl@gnu.org>
35212 * doc/gpl.texi, doc/lgpl.texi: new files.
35214 2004-01-18 Karl Berry <karl@gnu.org>
35216 * config/srclistvars.sh (GNUWWWLICENSES): new variable.
35217 * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
35219 2004-01-15 Paul Eggert <eggert@twinsun.com>
35221 Merge from coreutils.
35223 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
35224 * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
35225 (gl_DEFAULT_POSIX2_VERSION): Move
35226 the documentation from 'configure' into 'config.hin',
35227 so that 'configure --help' isn't burdened by it and
35228 we don't have to worry about its formatting there.
35229 Reword the documentation so that it's more succinct
35230 and can be run together into a single paragraph.
35231 * m4/same.m4 (gl_SAME): Check for pathconf.
35233 2004-01-15 Paul Eggert <eggert@twinsun.com>
35235 Merge from coreutils.
35237 * lib/posixver.c: Include posixver.h.
35239 * lib/same.c: Include <stdbool.h>, <limits.h>.
35240 (_POSIX_NAME_MAX): Define if not defined.
35242 (same_name): If file names are silently truncated, report
35243 that the file names are the same if they are the same after
35244 the silent truncation.
35246 * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
35247 conversion function.
35248 * lib/xstrtod.c (xstrtod): Likewise. All callers changed to
35249 include c-strtod.h and use c_strtod. Don't include stdlib.h; no
35252 2004-01-15 Jim Meyering <jim@meyering.net>
35254 Merge from coreutils.
35256 * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
35257 if no library is required.
35258 * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
35259 * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
35260 * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
35261 (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
35262 * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
35263 * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
35264 value, $ac_cv_search_crypt, if it's "none required".
35265 * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
35266 * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
35267 not gl_FUNC_GETLOADAVG.
35268 * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
35269 gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
35271 2004-01-15 Jim Meyering <jim@meyering.net>
35273 Merge from coreutils.
35275 * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code. These
35276 days, gcc-3.x does better all by itself. Patch from Dean Gaudet:
35277 http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
35279 * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
35280 optional configure-time default.
35282 * lib/version-etc.c (version_etc_copyright): Update copyright date.
35284 * lib/xreadlink.c (xreadlink): Correct outdated comment.
35286 2004-01-15 Alexandre Duret-Lutz <adl@gnu.org>
35288 Merge from coreutils.
35290 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
35291 value, $ac_cv_search_nanosleep, if it's "none required".
35293 2004-01-14 Paul Eggert <eggert@twinsun.com>
35295 * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
35296 with like-named macro in fnmatch.c.
35297 (EXT): Use an internal constant instead.
35299 Merge fnmatch patches from glibc.
35300 * lib/fnmatch.c (mbsinit): Remove define.
35301 Add libc_hidden_ver (__fnmatch, fnmatch).
35302 * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
35303 Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
35305 2004-01-14 Karl Berry <karl@gnu.org>
35307 * config/install-sh: update from automake.
35309 2004-01-13 Karl Berry <karl@gnu.org>
35311 * config/install-sh: update from automake.
35313 2004-01-09 Karl Berry <karl@gnu.org>
35315 * config/install-sh: update from automake.
35317 2004-01-05 Karl Berry <karl@gnu.org>
35319 * config/config.{sub,guess}: update from config.
35321 2003-12-31 Karl Berry <karl@gnu.org>
35323 * config/depcomp: update from automake.
35325 2003-12-14 Karl Berry <karl@gnu.org>
35327 * lib/config.charset: update from gettext-runtime.
35329 2003-12-03 Paul Eggert <eggert@twinsun.com>
35331 * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
35332 Bug reported by Alfred M. Szmidt.
35334 2003-12-03 Bruno Haible <bruno@clisp.org>
35336 * m4/gettext.m4: Upgrade from gettext-0.13.
35337 * m4/po.m4: Upgrade from gettext-0.13.
35338 * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
35339 * m4/intmax.m4: New file, from gettext-0.13.
35340 * m4/printf-posix.m4: New file, from gettext-0.13.
35342 2003-11-29 Karl Berry <karl@gnu.org>
35344 * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
35346 2003-11-25 Paul Eggert <eggert@twinsun.com>
35347 Bruno Haible <bruno@clisp.org>
35349 * lib/printf-parse.h: Don't include sys/types.h.
35350 (ARG_NONE): New macro.
35351 (char_directive): Change type of *arg_index fields to size_t.
35352 * lib/printf-parse.c: Don't include sys/types.h.
35353 (SSIZE_MAX): Remove macro.
35354 (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
35355 Remove unnecessary overflow check.
35356 * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
35359 2003-11-25 Bruno Haible <bruno@clisp.org>
35361 * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
35363 2003-11-25 Bruno Haible <bruno@clisp.org>
35365 * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
35368 2003-11-24 Paul Eggert <eggert@twinsun.com>
35370 * modules/alloca: Remove dependency on xalloc.
35372 2003-11-24 Paul Eggert <eggert@twinsun.com>
35374 * lib/alloca.c: Remove dependency on xalloc module.
35375 (xalloc_die): Remove.
35376 (memory_full) [!defined emacs]: New macro.
35377 [!defined emacs]: Don't include xalloc.h.
35378 (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
35379 address arithmetic overflows. Change datatypes a bit to avoid
35382 2003-11-22 Jim Meyering <jim@meyering.net>
35384 * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
35387 2003-11-21 Karl Berry <karl@gnu.org>
35389 * config/config.{sub,guess}: update from config.
35391 2003-11-18 Karl Berry <karl@gnu.org>
35393 * config/config.{sub,guess}: update from config.
35395 * config/(printf-{parse,args}.[ch]): sync broken, sigh.
35397 2003-11-17 Paul Eggert <eggert@twinsun.com>
35399 * README: Mention that S+T cannot overflow if S is the size of
35400 an existing object and T is sufficiently small.
35402 2003-11-17 Jim Meyering <jim@meyering.net>
35404 On systems without utime and without a utimes function capable of
35405 dealing with a NULL struct utimbuf* argument, this utime replacement
35406 could -- in unusual circumstances -- leak a file descriptor.
35407 * lib/utime.c: Include <unistd.h> and <errno.h>.
35408 (utime_null): Be sure to close `fd' and to preserve errno.
35409 Reported by Geoff Collyer via Arnold Robbins.
35411 2003-11-17 Bruno Haible <bruno@clisp.org>
35413 * modules/vasnprintf (Files): Add m4/ssize_t.m4.
35414 (Depends-on): Add xsize.
35416 2003-11-17 Bruno Haible <bruno@clisp.org>
35418 * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
35420 2003-11-17 Bruno Haible <bruno@clisp.org>
35422 * lib/vasnprintf.c (alloca): Remove fallback definition.
35423 (freea): Remove definition.
35424 (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
35425 Reported by Paul Eggert.
35427 2003-11-16 Paul Eggert <eggert@twinsun.com>
35428 Bruno Haible <bruno@clisp.org>
35430 Protect against address arithmetic overflow.
35431 * lib/printf-args.h: Include stddef.h.
35432 (arguments): Change type of field 'count' to size_t.
35433 * lib/printf-args.c (printf_fetchargs): Use size_t instead of
35434 'unsigned int' where appropriate.
35435 * lib/printf-parse.h: Include sys/types.h.
35436 (char_directive): Change type of *arg_index fields to ssize_t.
35437 (char_directives): Change type of fields 'count', max_*_length to
35439 * lib/printf-parse.c: Include sys/types.h and xsize.h.
35440 (SSIZE_MAX): Define fallback value.
35441 (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
35442 instead of 'int' where appropriate. Check a_allocated, d_allocated
35443 against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
35444 * lib/vasnprintf.c: Include xsize.h.
35445 (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
35446 Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
35447 overflow. Avoid wraparound when converting a width or precision from
35450 2003-11-16 Bruno Haible <bruno@clisp.org>
35452 Update from GNU gettext.
35453 * lib/printf-parse.c: Generalize to it can be compiled for wide
35455 (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
35456 * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
35457 (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
35458 SNPRINTF): New macros.
35459 Don't include <alloca.h> if the file is used inside libintl.
35460 (local_wcslen): New function, for Solaris 2.5.1.
35461 (VASNPRINTF): Use it instead of wcslen.
35463 2003-11-16 Bruno Haible <bruno@clisp.org>
35465 * lib/xsize.h (xmax): New function.
35466 (xsum, xsum3, xsum4): Declare as "pure" functions.
35468 2003-11-12 Paul Eggert <eggert@twinsun.com>
35470 * modules/xalloc (Files): Undo latest change, since xalloc.h
35471 no longer needs SIZE_MAX or PTRDIFF_MAX.
35473 2003-11-12 Paul Eggert <eggert@twinsun.com>
35475 * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
35478 2003-11-12 Paul Eggert <eggert@twinsun.com>
35480 * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
35481 "return", to pacify some unknown compiler. Problem reported
35482 by Joerg Schilling.
35484 2003-11-12 Paul Eggert <eggert@twinsun.com>
35486 * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
35487 (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
35488 the heuristic, rather than PTRDIFF_MAX and SIZE_MAX. This
35489 heuristic is just as accurate as far as we know, and it removes a
35490 dependency on size_max.m4 and ptrdiff_max.m4.
35492 2003-11-11 Bruno Haible <bruno@clisp.org>
35494 * modules/xsize (Files): Add m4/size_max.m4.
35495 * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
35497 2003-11-11 Bruno Haible <bruno@clisp.org>
35499 * m4/size_max.m4: New file.
35500 * m4/ptrdiff_max.m4: New file.
35501 * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
35502 * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
35503 (gl_XALLOC): Invoke it.
35505 2003-11-11 Bruno Haible <bruno@clisp.org>
35507 * lib/xsize.h (SIZE_MAX): Remove fallback definition.
35508 * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
35511 2003-11-10 Paul Eggert <eggert@twinsun.com>
35513 * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
35514 PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
35515 rejected some allocations of exactly SIZE_MAX - 2 bytes.
35517 [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
35518 not (size_t) -1, since it's defined here.
35520 2003-11-09 Karl Berry <karl@gnu.org>
35522 * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
35524 2003-11-06 Paul Eggert <eggert@twinsun.com>
35526 * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
35527 (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
35528 Reject sizes of exactly SIZE_MAX bytes.
35529 * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
35530 is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
35532 2003-11-05 Bruno Haible <bruno@clisp.org>
35534 * lib/xsize.h: Include limits.h, to avoid a possible collision with
35535 SIZE_MAX defined in <limits.h> on Solaris.
35537 2003-11-04 Jim Meyering <jim@meyering.net>
35539 * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
35540 variable names, rather than @VAR@.
35541 * modules/poll: Likewise.
35543 2003-11-04 Bruno Haible <bruno@clisp.org>
35545 * modules/xsize: New file.
35546 * modules/linebreak: Depend on xsize.
35547 * MODULES.html.sh (func_all_modules): Add xsize.
35549 2003-11-04 Bruno Haible <bruno@clisp.org>
35551 * m4/xsize.m4: New file.
35553 2003-11-04 Bruno Haible <bruno@clisp.org>
35555 * lib/xsize.h: New file.
35556 * lib/linebreak.c: Include xsize.h.
35557 (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
35558 argument for overflow.
35559 Suggested by Paul Eggert.
35561 2003-11-03 Karl Berry <karl@gnu.org>
35563 * config/config.{guess,sub}: update from config.
35565 2003-11-03 Jim Meyering <jim@meyering.net>
35567 * modules/userspec (lib_SOURCES): Add userspec.h.
35568 (Include): Add "userspec.h".
35569 Improve description.
35571 2003-11-03 Jim Meyering <jim@meyering.net>
35573 * lib/userspec.c: Include "userspec.h".
35574 * lib/userspec.h: New file.
35576 2003-11-03 Bruno Haible <bruno@clisp.org>
35578 * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
35580 2003-11-03 Bruno Haible <bruno@clisp.org>
35582 * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
35583 available, to avoid (extremely rare) race condition.
35584 Suggested by Paul Eggert.
35586 2003-11-02 Karl Berry <karl@gnu.org>
35588 * config/srclist.txt (vasprintf.c): sync broken, sigh.
35590 2003-10-31 Paul Eggert <eggert@twinsun.com>
35592 * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
35593 * lib/mountlist.c (SIZE_MAX): Define if not defined already.
35594 (read_filesystem_list): Set and use me_type_malloced.
35595 Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
35596 whatever the type happens to be), for brevity and consistency.
35597 Check for size calculation overflow on Alphas running OSF/1.
35599 2003-10-31 Jim Meyering <jim@meyering.net>
35601 * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
35603 * lib/linebuffer.c: Include <string.h> for declaration of memset.
35605 2003-10-30 Paul Eggert <eggert@twinsun.com>
35606 Bruno Haible <bruno@clisp.org>
35608 * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
35609 (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
35611 2003-10-30 Paul Eggert <eggert@cs.ucla.edu>
35613 * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
35614 netbsd*-gnu*. Suggested by Robert Millan.
35616 2003-10-29 Paul Eggert <eggert@twinsun.com>
35618 * modules/group-member: Depend on stdbool.
35620 2003-10-29 Paul Eggert <eggert@twinsun.com>
35622 * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
35624 2003-10-29 Paul Eggert <eggert@twinsun.com>
35626 * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu. Add comments
35627 to it, and to knetbsd*-gnu and kfreebsd*-gnu. Remove the '*' from
35628 after the 'gnu' in these cases. This fixes some bugs in the
35629 previous change, and is based on suggestions by Robert Millan.
35631 2003-10-29 Paul Eggert <eggert@twinsun.com>
35633 * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
35634 so that it works even if SIZE_MAX < N. Do not include <stdbool.h>;
35636 * lib/quotearg.c (quotearg_n_options): Use it.
35637 * lib/group-member.c: Include <stdbool.h>.
35638 (free_group_info): Arg is now const *; don't free arg.
35639 (get_group_info): Now returns bool and accepts struct group_info *,
35640 rather than returning a malloc'ed struct group_info *.
35641 All uses changed. Check for overflow in internal size calculation.
35643 * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
35644 rather than xmalloc/xrealloc.
35645 * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
35646 using x2realloc rather than xmalloc/xrealloc. Also, fix a C
35647 conformance bug: the old code used a pointer after freeing the
35648 storage that it addressed.
35649 * lib/hash.c (hash_initialize): Simplify the code by using
35650 xalloc_oversized rather than doing it by hand.
35651 * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
35652 the buffer preserved. Use free and xmalloc instead.
35653 * lib/quotearg.c (quotearg_n_options): Likewise.
35654 Use a simpler test for size overflow. Don't use xalloc_oversized
35655 because unsigned int might be wider than size_t (!); this suggests
35656 that we should switch from unsigned int to size_t for slot numbers.
35658 2003-10-28 Paul Eggert <eggert@twinsun.com>
35660 * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
35661 GNU/KNetBSD. These implementations use glibc atop the FreeBSD and
35662 NetBSD kernels. Requested by Richard Stallman.
35664 2003-10-27 Paul Eggert <eggert@twinsun.com>
35666 * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
35667 to allocate the returned structure. Do not allocate a subarray,
35668 as x2nrealloc will do that.
35669 (add_exclude): Use x2nrealloc to reallocate ex->exclude,
35670 instead of xnrealloc.
35671 (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
35673 2003-10-27 Bruno Haible <bruno@clisp.org>
35675 * lib/stdbool_.h: Better support for BeOS.
35677 2003-10-26 Paul Eggert <eggert@twinsun.com>
35679 * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
35682 2003-10-26 Paul Eggert <eggert@twinsun.com>
35684 * lib/xalloc.h (xalloc_oversized): New static inline function, for
35685 callers that want to do their own size-overflow checking. Include
35686 <stdbool.h>, since xalloc_oversized returns bool.
35687 * lib/xalloc.c (array_size_overflow): Remove. All callers changed
35688 to use xalloc_oversized.
35690 Add two functions x2realloc, x2nrealloc, for programs that grow
35691 arrays dynamically by doubling their sizes.
35692 * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
35693 * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
35696 Port to C99 semantics for 'inline' of external functions.
35697 Bug reported by Bruno Haible.
35698 * lib/xmalloc.c (xnmalloc_inline): New static inline function,
35699 with the old contents of xnmalloc.
35700 (xnmalloc, xmalloc): Use it.
35701 (xnrealloc_inline): New static inline function,
35702 with the old contents of xnrealloc.
35703 (xnrealloc, xrealloc): Use it.
35705 * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
35708 2003-10-26 Karl Berry <karl@gnu.org>
35710 * config/srclist.txt (COPYING.DOC): no longer available from
35711 /gd/gnuorg; don't know where the ultimate source is.
35713 2003-10-25 Paul Eggert <eggert@twinsun.com>
35715 Fix several address-calculation bugs in the hash modules,
35716 plus some minor code cleanup.
35718 * lib/hash.h: Include <stdbool.h>, for bool.
35719 * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
35720 * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
35721 hash_get_n_entries, hash_get_max_bucket_length,
35722 hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
35723 hash_rehash): Use size_t rather than unsigned.
35724 * lib/hash.c (struct hash_table, hash_get_n_buckets,
35725 hash_get_n_buckets_used, hash_get_n_entries,
35726 hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
35727 hash_get_entries, hash_do_for_each, hash_string, is_prime,
35728 next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
35730 (SIZE_MAX): Define if not defined.
35731 (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
35732 hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
35734 Use const * when possible.
35735 (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
35736 (check_tuning): Fix bug: if tuning parameters were very close to
35737 0 or 1, rounding errors could have caused subscript violations.
35738 (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
35739 (hash_initialize): Add 'fail:' label
35740 to free table and return NULL, and use it to simplify code.
35741 Use calloc rather than clearing the storage ourself.
35742 (hash_initialize, hash_rehash): Check for arithmetic overflow in
35743 buffer size calculations.
35744 * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
35745 Include <stddef.h>, for size_t.
35746 * lib/hash-pjw.c (hash_pjw): Likewise.
35747 Switch to method described by Bruno Haible.
35748 Include <limits.h>, for CHAR_BIT.
35749 (SIZE_BITS): New macro.
35751 2003-10-23 Paul Eggert <eggert@twinsun.com>
35753 * m4/getline.m4 (AM_FUNC_GETLINE):
35754 Don't include getndelim2.o twice into LIBOBJS; this breaks on some
35755 hosts. Problem reported by Derek Robert Price in
35756 <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
35757 This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
35758 * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
35760 2003-10-21 Paul Eggert <eggert@twinsun.com>
35762 * lib/getndelim2.c (getndelim2): When size calculation overflows,
35763 ceiling the allocation at NMAX bytes rather than silently
35764 discarding input bytes before NMAX is reached. This makes
35765 a difference only if NMAX exceeds SIZE_MAX / 2.
35767 * lib/obstack.c: Merge from glibc.
35768 [defined _LIBC]: Include <obstack.h>, not "obstack.h".
35769 Add libc_hidden_def (_obstack_newchunk).
35770 (_obstack_free) [! defined _LIBC]: Remove.
35771 [defined _LIBC]: Make a strong alias from obstack_free, rather than
35772 a clone of the function body.
35773 (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
35774 [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
35776 * lib/obstack.h: Indenting cleanup, to make it easier to merge with
35778 (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
35781 * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
35782 (obstack_ptr_grow_fast, obstack_int_grow_fast):
35783 Don't use lvalue casts, as GCC plans to remove support for them
35784 in GCC 3.5. Reported by Joseph S. Myers. This bug
35785 was also present in the non-GCC version, indicating that this
35786 code had always been buggy and had never been widely used.
35787 (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
35788 Use the fast variant of each macro, rather than copying the
35789 definiens of the fast variant; that way, we'll be more likely to
35790 catch future bugs in the fast variants.
35792 2003-10-20 Bruno Haible <bruno@clisp.org>
35794 * modules/wait-process: New file.
35795 * MODULES.html.sh (func_all_modules): Add wait-process.
35797 2003-10-20 Bruno Haible <bruno@clisp.org>
35799 * m4/wait-process.m4: New file.
35801 2003-10-20 Bruno Haible <bruno@clisp.org>
35803 * lib/wait-process.h: New file, from GNU gettext.
35804 * lib/wait-process.c: New file, from GNU gettext.
35806 2003-10-19 Jim Meyering <jim@meyering.net>
35808 * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
35811 2003-10-18 Karl Berry <karl@gnu.org>
35813 * config/config.guess: update from config.
35815 2003-10-16 Paul Eggert <eggert@twinsun.com>
35817 * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
35818 (getgroups): First arg is int, not size_t.
35819 Don't let 'free' mangle errno.
35821 2003-10-16 Paul Eggert <eggert@twinsun.com>
35823 * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
35825 2003-10-16 Karl Berry <karl@gnu.org>
35827 * config/config.{guess,sub}: update from config.
35829 2003-10-16 Jim Meyering <jim@meyering.net>
35831 * lib/xmalloc.c: Include <string.h>, for declarations of memset and
35834 2003-10-15 Paul Eggert <eggert@twinsun.com>
35836 * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
35837 (SIZE_MAX): Remove.
35838 (new_exclude, add_exclude_file): Initial size no longer needs to
35840 (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
35841 our own address arithmetic overflow checking.
35843 * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
35844 (fnmatch): Do not alloca more than 2000 wide characters;
35845 instead, use malloc for large buffers.
35846 Check for address arithmetic overflow, and return -1
35847 with errno set to ENOMEM in that case.
35848 * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
35849 (NEW_PATTERN): Do not alloca more than 8000 bytes;
35850 instead, return -1. Check for address arithmetic overflow.
35852 2003-10-14 Paul Eggert <eggert@twinsun.com>
35854 Handle invalid suffixes and overflow independently, so that
35855 callers can treat them independently as needed. Fix some bugs in
35856 suffix handling, e.g., "100k@" was not diagnosed as an invalid
35857 suffix for a human-readable blocksize. The major caller-visible
35858 change is the addition of a new
35859 LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
35860 that both overflow and suffix chars were found.
35862 * lib/human.c (humblock): Don't check separately for invalid suffix
35863 char; that is xstrtoumax's job (now that its bug is fixed).
35864 * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
35865 INTMAX_MAX]: New macros.
35866 * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
35867 TYPE_MAXIMUM): New macros.
35868 (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
35869 (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
35870 if overflow occurs, as it's what __strtol does and it's more useful
35872 (__xstrtol): If __strtol reports some error other than ERANGE,
35873 reflect it to the caller as LONGINT_INVALID. If it reports
35874 ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
35875 | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
35876 * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
35878 (_STRTOL_ERROR): Handle it. Abort when given unknown error codes.
35879 * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
35880 * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
35881 [defined UINTMAX_MAX]: New macros.
35883 2003-10-14 Bruno Haible <bruno@clisp.org>
35885 * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
35887 2003-10-14 Bruno Haible <bruno@clisp.org>
35889 * m4/sig_atomic_t: New file, from GNU gettext.
35890 * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
35892 2003-10-14 Bruno Haible <bruno@clisp.org>
35894 * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
35895 * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
35896 Also use volatile where needed.
35898 2003-10-12 Paul Eggert <eggert@twinsun.com>
35900 * modules/xalloc: Do not depend on 'exit'. Depend on 'stdbool'.
35901 Change maintainer from Bruno Haible to 'all'.
35903 2003-10-12 Paul Eggert <eggert@twinsun.com>
35905 * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
35907 2003-10-12 Paul Eggert <eggert@twinsun.com>
35909 * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
35910 (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
35911 and define in terms of the other primitives.
35912 * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
35913 (SIZE_MAX): Define if not already defined.
35914 (array_size_overflow): New function.
35915 (xalloc_die): Abort instead of exiting if 'error' returns.
35916 (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
35917 (xmalloc, xrealloc): Use them.
35918 (xcalloc): Check for address arithmetic overflow.
35919 * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
35920 a bit faster than strcpy.
35922 2003-10-10 Simon Josefsson <jas@extundo.com>
35924 * modules/argp (Depends-on): Add restrict and strcase.
35926 2003-10-10 Simon Josefsson <jas@extundo.com>
35928 * m4/argp.m4: Add AC_C_INLINE.
35930 2003-10-08 Paul Eggert <eggert@twinsun.com>
35932 Merge getpass from libc, plus a few fixes.
35934 * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
35935 Include <stdbool.h>.
35936 Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
35937 __fsetlocking to empty.
35938 [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
35939 do include <bits/libc-lock.h>.
35940 Do not include <fcntl.h>; not needed.
35941 [_LIBC]: Include <wchar.h>.
35942 (NOTCANCEL_MODE): New macro.
35943 (flockfile, funlockfile) [_LIBC]: New macros.
35944 (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
35945 [!_LIBC]: New macros.
35946 (call_fclose): New function.
35947 (getpass): Use it. Save tty stream separately; this simplifies the
35948 code and makes it more reliable if stdin happens to equal stdout.
35949 Invoke __fsetlocking on tty.
35950 Handle thread cancellation if needed.
35951 Namespace cleanup (use __tcgetattr, __getline).
35952 Use bool for Booleans.
35953 [USE_IN_LIBIO]: Handle wide streams.
35954 [!_LIBC]: Unconditionally do the fseek, since we don't know what
35955 stream might go where.
35957 * lib/unlocked-io.h: Include <stdio.h>, so that the caller
35958 doesn't have to include <stdio.h> before us.
35959 (clearerr_unlocked, feof_unlocked, ferror_unlocked,
35960 fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
35961 fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
35962 putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
35963 if not declared, so that we can use getpass.c code from libc without
35965 (flockfile, ftrylockfile, funlockfile): New macros.
35967 2003-10-08 Paul Eggert <eggert@twinsun.com>
35969 * modules/getpass: Depend on stdbool.
35971 2003-10-08 Paul Eggert <eggert@twinsun.com>
35973 * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
35975 2003-10-07 Karl Berry <karl@gnu.org>
35977 * config/config.{guess,sub}: update from config.
35979 2003-10-06 Jim Meyering <jim@meyering.net>
35980 Bruno Haible <bruno@clisp.org>
35982 This lets translators provide better translations for the
35983 "Written by ..." part of --version output.
35984 * lib/version-etc.h: Include stdarg.h.
35985 (version_etc_copyright): Declare as readonly.
35986 (version_etc): Make this function variadic with a NULL-terminated list
35987 of author name strings.
35988 (version_etc_va): New declaration.
35989 * lib/version-etc.c: Include stdarg.h, stdlib.h.
35990 (version_etc_copyright): Declare as readonly.
35991 (version_etc_va): New function. Provide a different translatable string
35992 for each possible number of authors < 10. Abbreviate when there are 10
35994 (version_etc): Make this function variadic. Call version_etc_va.
35995 Suggestion from Gary V. Vaughan.
35997 * lib/long-options.h (parse_long_options): Change prototype: the
35998 authors string is moved to the end and becomes variadic.
35999 * lib/long-options.c: Include stdarg.h.
36000 (parse_long_options): Make this function variadic, too.
36001 Call version_etc_va, not version_etc.
36003 2003-10-06 Bruno Haible <bruno@clisp.org>
36005 * modules/version-etc-2: Remove file.
36006 * MODULES.html.sh (func_all_modules): Remove version-etc-2.
36008 2003-10-06 Bruno Haible <bruno@clisp.org>
36010 * modules/fatal-signal: New file.
36011 * MODULES.html.sh (func_all_modules): Add fatal-signal.
36013 2003-10-06 Bruno Haible <bruno@clisp.org>
36015 * m4/fatal-signal.m4: New file.
36016 * m4/signalblocking.m4: New file, from GNU gettext.
36018 2003-10-06 Bruno Haible <bruno@clisp.org>
36020 * lib/version-etc-2.h: Remove file.
36021 * lib/version-etc-2.c: Remove file.
36023 2003-10-06 Bruno Haible <bruno@clisp.org>
36025 * lib/fatal-signal.h: New file, from GNU gettext.
36026 * lib/fatal-signal.c: New file, from GNU gettext.
36028 2003-10-05 Paul Eggert <eggert@twinsun.com>
36030 * README: Rework advice for preventing empty .o files.
36031 Don't recommend ELIDE constructs. Recommend <stddef.h>,
36034 2003-10-04 Karl Berry <karl@gnu.org>
36036 * lib/argp*: update from libc.
36038 2003-10-04 Karl Berry <karl@gnu.org>
36040 * config/config.{guess,sub}: update from config.
36042 2003-10-02 Bruno Haible <bruno@clisp.org>
36044 * modules/lchown (Include): Add lchown.h.
36045 * modules/time_r (Include): Use "..." syntax.
36046 * modules/xgetdomainname (Include): Add xgetdomainname.h.
36048 2003-10-01 Simon Josefsson <jas@extundo.com>
36050 * MODULES.html.sh (func_all_modules): Move gethostname from section
36051 'based on' to section 'lacking' POSIX:2001.
36053 2003-10-01 Larry Jones <lawrence.jones@eds.com>
36055 * lib/getpass.c (getpass): Use a no-op fseek when switching from input
36056 to output mode on the same stream.
36058 2003-09-29 Paul Eggert <eggert@twinsun.com>
36060 * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
36061 Fix arg typo in previous patch.
36063 2003-09-28 Jim Meyering <jim@meyering.net>
36065 * lib/error.c: Correct cpp indentation.
36067 2003-09-27 Paul Eggert <eggert@twinsun.com>
36069 * modules/free: New file.
36071 2003-09-27 Paul Eggert <eggert@twinsun.com>
36073 * m4/free.m4: New file.
36075 2003-09-27 Paul Eggert <eggert@twinsun.com>
36077 * lib/minmax.h (MIN, MAX)
36078 [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
36079 Omit the special code that used __typeof__, since we worry that
36080 it could be more trouble than it's worth. See:
36081 http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
36082 http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
36084 * lib/free.c: New file.
36086 2003-09-27 Oskar Liljeblad <oskar@osk.mine.nu>
36088 Trivial fixes to Makefile.am parts of module listings.
36089 * modules/strstr: Append strstr.h to lib_SOURCES.
36090 * modules/strcase: Likewise, for strcase.h.
36092 2003-09-27 Karl Berry <karl@gnu.org>
36094 * config/mkinstalldirs: update from automake.
36096 2003-09-26 Paul Eggert <eggert@twinsun.com>
36098 * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
36099 (error_tail): Do not loop, reallocating temporary buffer, since
36100 the output cannot contain more wide characters than the input
36101 contains bytes, the size must be big enough already. This avoids
36102 one potential size overflow calculation. Check for size overflow
36103 when calculating temporary buffer size. Free temporary buffer
36104 when done, if it was allocated with malloc; this plugs a memory
36105 leak. Remove casts from void * to pointers, that are no longer
36106 needed now that we're assuming C89 or better.
36108 Merge error changes from glibc.
36110 * lib/error.c, error.h: Update copyright notice header to match glibc.
36111 * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
36112 (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
36113 Disable cancellation while printing error.
36114 * lib/error.h: Prepend __ to parameter names.
36116 2003-09-26 Jim Meyering <jim@meyering.net>
36118 * lib/error.c (error_tail): Move some declarations
36119 into inner scope where the local variables are used.
36121 2003-09-26 Bruno Haible <bruno@clisp.org>
36123 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
36125 Don't define stpncpy through config.h; it's now done through stpncpy.h.
36127 2003-09-26 Bruno Haible <bruno@clisp.org>
36129 * lib/stpncpy.h (gnu_stpncpy): New declaration.
36130 (stpncpy): Define as alias for gnu_stpncpy.
36131 * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
36133 2003-09-25 Simon Josefsson <jas@extundo.com>
36135 * lib/xgetdomainname.h: New file.
36136 * lib/xgetdomainname.c: New file.
36138 2003-09-25 Simon Josefsson <jas@extundo.com>
36139 Bruno Haible <bruno@clisp.org>
36141 * modules/getdomainname: New file.
36142 * modules/xgetdomainname: New file.
36143 * MODULES.html.sh (func_all_modules): Add getdomainname,
36146 2003-09-25 Simon Josefsson <jas@extundo.com>
36147 Bruno Haible <bruno@clisp.org>
36149 * m4/getdomainname.m4: New file.
36151 2003-09-25 Simon Josefsson <jas@extundo.com>
36152 Bruno Haible <bruno@clisp.org>
36154 * lib/getdomainname.h: New file.
36155 * lib/getdomainname.c: New file.
36157 2003-09-25 Karl Berry <karl@gnu.org>
36159 * lib/argp-fmtstream.c, argp-help.c: update from libc.
36161 2003-09-25 Karl Berry <karl@gnu.org>
36163 * config/install-sh: update from automake.
36165 2003-09-25 Bruno Haible <bruno@clisp.org>
36167 * modules/version-etc-2: New file, from modules/version-etc with
36169 * MODULES.html.sh (func_all_modules): Add version-etc-2.
36171 2003-09-25 Bruno Haible <bruno@clisp.org>
36173 * lib/version-etc-2.h: New file, from version-etc.h with modifications.
36174 * lib/version-etc-2.c: New file, from version-etc.c with modifications.
36176 2003-09-24 Simon Josefsson <jas@extundo.com>
36178 * modules/xgethostname: Add xgethostname.h.
36180 2003-09-24 Paul Eggert <eggert@twinsun.com>
36182 * lib/linebuffer.c (freebuffer): Don't free the argument, just
36183 the buffer associated with the argument. Bug reported by
36186 2003-09-24 Paul Eggert <eggert@twinsun.com>
36188 * README: Document assumptions that 'int' is at least 32 bits
36189 wide, that integer arithmetic is 2's complement without overflow,
36190 that there are no holes in integer values, that adding sizes of
36191 two nonoverlapping objects can't overflow, and that all-bits-zero
36192 yields scalar zero. Fix spelling and capitalization typos.
36194 2003-09-19 Karl Berry <karl@gnu.org>
36196 * lib/argp.h: update from libc.
36198 2003-09-17 Paul Eggert <eggert@twinsun.com>
36200 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
36201 to avoid spurious warnings like "AC_RUN_IFELSE was called before
36202 gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
36204 2003-09-17 Paul Eggert <eggert@twinsun.com>
36206 * gnulib-tool: Use "test -h", not "test -L", for portability
36207 to Solaris 8 /bin/sh. (This bug is fixed in Solaris 9.)
36208 (tags_regexp): Remove, since \| doesn't conform to POSIX.
36209 (sed_extract_prog): Issue s commands one-by-one, rather than
36210 using \| in one s command.
36212 2003-09-16 Paul Eggert <eggert@twinsun.com>
36214 * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
36215 input error, instead of returning NULL the next time we are called
36216 (and therefore losing track of errno).
36218 2003-09-16 Bruno Haible <bruno@clisp.org>
36220 * gnulib-tool (func_create_testdir): Warn about duplicated
36223 2003-09-15 Paul Eggert <eggert@twinsun.com>
36225 * modules/argmatch, modules/fatal, modules/obstack,
36226 modules/xalloc, modules/xgethostname: Sort dependencies by
36227 importance, not alphabetically.
36229 2003-09-15 Paul Eggert <eggert@twinsun.com>
36231 * lib/getndelim2.c (getndelim2): Don't trash errno when a read
36232 fails, so that the caller gets the proper errno.
36234 * lib/readutmp.c (read_utmp): Likewise.
36235 Check for fstat error. Close stream and free storage
36238 2003-09-14 Karl Berry <karl@gnu.org>
36240 * config/srclist.txt (strdup.c): disable for c89 changes.
36242 2003-09-14 Jim Meyering <jim@meyering.net>
36244 * lib/getloadavg.c: Correct cpp indentation.
36245 * lib/strdup.c: Likewise.
36246 * lib/vasnprintf.c: Likewise.
36248 2003-09-14 Bruno Haible <bruno@clisp.org>
36250 * modules/fwriteerror: New file.
36251 * MODULES.html.sh (func_all_modules): Add fwriteerror.
36253 2003-09-14 Bruno Haible <bruno@clisp.org>
36255 * lib/fwriteerror.h: New file.
36256 * lib/fwriteerror.c: New file.
36258 2003-09-12 Paul Eggert <eggert@twinsun.com>
36260 * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
36261 modules/xgethostname, modules/xalloc: Depend on exit.
36263 2003-09-12 Paul Eggert <eggert@twinsun.com>
36265 * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
36267 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
36268 and AC_MINIX, too, so that their extensions are available.
36270 * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove. All uses removed.
36271 This macro has been superseded by gl_BACKUPFILE.
36273 More patches to assume C89 or better.
36275 * m4/error.m4 (gl_ERROR): Don't check for vprintf.
36277 * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
36279 * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
36280 * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
36281 Include <string.h>, <stdlib.h> unconditionally.
36282 * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
36283 * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
36284 * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
36285 headers or for string.h.
36286 * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
36289 * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
36291 * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
36292 * m4/userspec.m4 (gl_USERSPEC): Likewise.
36293 * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
36294 * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
36295 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
36296 * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
36298 (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
36299 * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
36300 * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
36302 * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
36303 * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
36304 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
36307 2003-09-12 Paul Eggert <eggert@twinsun.com>
36309 * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
36310 * lib/obstack.c [!defined _LIBC]: Likewise.
36311 * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
36312 * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
36313 * lib/exitfail.c: Don't include stdlib.h; no longer needed.
36315 More changes to assume C89 or better.
36317 * lib/error.c (error_tail): Assume vprintf.
36319 * lib/argmatch.c (getenv): Remove decl.
36320 * lib/progreloc.c (get_full_program_name): Define via prototype.
36321 * lib/setenv.c (clearenv): Likewise.
36322 * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
36324 * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
36325 (malloc, memcpy): Remove decls.
36326 * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
36327 (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
36328 Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
36329 (memcpy): Remove macro.
36330 (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
36331 (__P): Remove. All uses removed.
36332 (PTR): Remove. All uses changed to void *.
36333 (CHAR_BIT, NULL): Remove.
36334 (spaces, zeros, memset_space, memset_zero)
36335 [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
36337 (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
36338 (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
36339 Define with prototype.
36340 Remove now-unnecessary prototype decl.
36341 (extra_args_spec): Assume ANSI C. All uses changed.
36342 (extra_args_spec_iso): Remove.
36343 (my_strftime, emacs_strftimeu): Define via prototype.
36344 * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
36346 (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
36347 * lib/strtoimax.c: Include <stdlib.h> unconditionally.
36348 (strtoul, strtol): Remove decls.
36349 * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
36351 Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
36352 (LOCALE_PARAM_DECL): Remove. All uses changed to LOCALE_PARAM_PROTO.
36353 (LOCALE_PARAM_PROTO): New macro.
36354 (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
36355 (INTERNAL (strtol), strtol): Define with a prototype.
36356 (PARAMS): Remove. All uses removed.
36357 * lib/tempname.c: Include <string.h> unconditionally.
36358 * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
36359 * lib/xgethostname.c (main): Define with a prototype.
36360 * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
36361 Include <stdlib.h> unconditionally.
36362 (calloc, malloc, realloc, free): Remove decls.
36363 * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
36364 Include <stdlib.h> unconditionally. Sort include file names.
36366 (xstrtod): Define with a prototype.
36367 * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
36368 (strtol, strtoul): Remove decls.
36370 2003-09-11 Paul Eggert <eggert@twinsun.com>
36372 More patches to assume C89 or better.
36373 * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
36374 * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
36375 string.h, memchr, STDC_HEADERS.
36377 2003-09-11 Paul Eggert <eggert@twinsun.com>
36379 * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
36380 Include <stdlib.h>, <string.h> unconditionally.
36381 Remove now-unnecessary cast to char *.
36382 * lib/strnlen.c: Include <string.h> unconditionally.
36383 * lib/yesno.c (yesno): Define with a prototype.
36385 2003-09-11 Bruno Haible <bruno@clisp.org>
36387 * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
36389 2003-09-10 Jim Meyering <jim@meyering.net>
36391 * lib/error.c: Correct indentation of cpp directives.
36393 2003-09-10 Bruno Haible <bruno@clisp.org>
36395 * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
36396 * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
36397 * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
36398 * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
36399 * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
36400 <stdlib.h> and <string.h> checks.
36401 * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
36402 * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
36404 2003-09-10 Bruno Haible <bruno@clisp.org>
36406 * lib/strcspn.c: Include <string.h> unconditionally.
36407 * lib/strpbrk.c: Include <string.h> unconditionally.
36408 * lib/strstr.c: Include <string.h> unconditionally.
36409 * lib/unicodeio.c: Include <string.h> unconditionally.
36410 * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
36411 * lib/unsetenv.c: Likewise.
36412 * lib/xreadlink.c: Include <stdlib.h> unconditionally.
36413 * lib/yesno.c: Include <stdlib.h> unconditionally.
36414 (rpmatch): Add prototype.
36416 2003-09-09 Paul Eggert <eggert@twinsun.com>
36418 More patches to assume C89 or better.
36419 * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
36420 * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
36421 * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
36423 * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
36425 * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
36427 * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
36429 * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
36430 * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
36431 * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
36433 * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
36434 * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
36436 * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
36438 * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
36439 * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
36440 * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
36441 * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
36442 * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
36443 * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
36445 * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
36446 * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
36447 * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
36448 C headers, or for string.h.
36449 * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
36450 (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
36451 * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
36452 headers, memory.h, stdlib.h, string.h, strings.h.
36453 * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
36454 * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
36455 * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
36457 * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
36458 headers, memory.h, string.h.
36459 * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
36460 * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
36462 * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
36464 * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
36465 * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
36466 * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
36467 * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
36468 * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
36470 2003-09-09 Paul Eggert <eggert@twinsun.com>
36474 * lib/acosl.c (main): Use a prototype.
36475 * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
36478 * lib/getloadavg.c (getloadavg, main): Define via prototypes.
36480 * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
36481 (getopt, etopt_long, getopt_long_only, _getopt_internal)
36482 [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
36484 * lib/getopt.c (const): Remove macro.
36485 Include <string.h> unconditionally.
36486 (my_index): Remove; all uses changed to strchr.
36487 (strlen): Remove decl.
36488 (exchange): Remove forward decl; no longer needed.
36489 (exchange, _getopt_initialize, _getopt_internal, getopt, main):
36490 Define with prototype.
36491 * lib/getopt1.c (const): Remove macro.
36492 (getopt_long, getopt_long_only, main): Define with prototype.
36494 * lib/getugroups.c: Include <string.h> unconditionally.
36496 * lib/getusershell.c: Include <stdlib.h> unconditionally.
36497 (getusershell, setusershell, endusershell, readname, main):
36498 Define with prototypes.
36500 * lib/group-member.c: Include group-member.h first.
36501 Include <stdlib.h> unconditionally.
36503 * lib/hard-locale.c: Include hard-locale.h first.
36504 Include <stdlib.h>, <string.h> unconditionally.
36506 * lib/hash.c (free, malloc): Remove decls.
36507 Include <stdlib.h> unconditionally.
36509 * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
36510 (getenv): Do not declare.
36512 * lib/idcache.c: Include <string.h> unconditionally.
36514 * lib/long-options.c: Include long-options.h first, to test interface.
36515 Include <stdlib.h> unconditionally.
36517 * lib/makepath.c: Include makepath.h first, to test interface.
36518 Include <stdlib.h> and <string.h> unconditionally.
36520 * lib/linebuffer.c: Include <stdlib.h>.
36521 (free): Remove decl.
36523 * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
36524 stddef.h. rpl_malloc returns void *, not char *.
36525 * lib/realloc.c (rpl_realloc): Likewise. Also, define with a
36528 * lib/md5.h: Include <limits.h> unconditionally.
36529 (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
36530 (__P): Remove; all uses removed.
36531 * lib/md5.c: Include "md5.h" first.
36532 (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
36533 md5_buffer, md5_process_bytes, md5_process_block):
36534 Define with prototypes.
36535 * lib/sha.h (__P): Remove all uses. (It wasn't defined??)
36536 * lib/sha.c: Include "sha.h" first.
36537 Include <stdlib.h>, <string.h> unconditionally.
36539 * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
36540 * lib/memcmp.c (__ptr_t): Likewise.
36541 * lib/memrchr.c (__ptr_t): Likewise.
36542 * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
36543 Include <string.h> unconditionally.
36544 * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
36545 * lib/memchr.c: Include <stdlib.h> unconditionally.
36546 * lib/memchr.c (LONG_MAX): Remove.
36547 * lib/memrchr.c (LONG_MAX): Likewise.
36548 * lib/memchr.c (__memchr): Define via a prototype.
36549 * lib/memrchr.c (__memrchr): Likewise.
36550 * lib/memcmp.c (__P): Remove, and remove all uses.
36551 (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
36552 Remove forward decls; no longer needed.
36553 * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
36554 Use types required by C89 in prototype.
36556 * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
36557 * lib/savedir.c: Likewise.
36558 * lib/mkdir.c (free): Remove decl.
36559 * lib/rmdir.c (rmdir): Define with a prototype.
36560 * lib/savedir.c: Include savedir.h first, to test interface.
36562 * lib/mktime.c (STDC_HEADERS): Remove.
36563 Include <stdlib.h>, <string.h> unconditionally.
36565 * lib/modechange.c: Include <stdlib.h> unconditionally.
36566 (malloc): Remove decl.
36568 * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
36569 (free): Remove decl.
36571 * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
36572 Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
36573 (This type really should be intptr_t, but that's a C99ism.)
36574 (_obstack_memcpy): Remove: all uses changed to memcpy.
36575 Include <string.h> unconditionally.
36576 (struct obstack): Assume __STDC__ for types of members
36577 chunkfun, freefun, extra_arg.
36578 (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
36579 _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
36580 obstack_begin, obstack_specify_allocation,
36581 obstack_specify_allocation_with_arg, obstack_chunkfun,
36582 obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
36583 Remove unprototyped decls and the macros that use them.
36584 * lib/obstack.c (POINTER): Remove. All uses changed to void *.
36585 (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
36586 _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
36587 (defined __STDC__ && __STDC__)]:
36588 Remove nonprototyped code.
36589 Include <stdlib.h> unconditionally.
36590 (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
36591 _obstack_allocated_p, _obstack_free, obstack_free,
36592 _obstack_memory_used, print_and_abort):
36593 Define using prototypes.
36594 (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
36595 obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
36596 obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
36597 obstack_next_free, obstack_object_size, obstack_room) [0]:
36598 Remove unused, unprototyped code.
36600 * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
36602 * lib/physmem.c (physmem_total, physmem_available, main): Define
36605 * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
36606 (main): Define with a prototype.
36608 * lib/posixver.c (getenv): Remove decl.
36610 * lib/putenv.c (malloc): Returns void *, not char *.
36611 Include <string.h> unconditionally.
36612 (strchr, memcpy, NULL): Do not define.
36614 * lib/readtokens.c: Include readtokens.h first, to test interface.
36615 Include <stdlib.h>, <string.h> unconditionally.
36616 (init_tokenbuffer): Define with a prototype.
36618 * lib/regex.c (PARAMS): Remove. All uses removed.
36619 All uses of _RE_ARGS removed, too.
36620 Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
36622 (bzero): Assume memset exists.
36623 (memcmp, memcpy, NULL): Remove.
36624 (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
36625 char, or assignments to local vars of type signed char.
36626 (init_syntax_once, PREFIX(extract_number_and_incr),
36627 PREFIX(print_partial_compiled_pattern),
36628 PREFIX(print_compiled_pattern), PREFIX(print_double_string),
36629 convert_mbs_to_wcs, print_fastmap, re_set_syntax,
36630 PREFIX(regex_grow_registers), PREFIX(regex_compile),
36631 PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
36632 PREFIX(insert_op2), PREFIX(at_begline_loc_p),
36633 PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
36634 wcs_compile_range, byte_compile_range, truncate_wchar,
36635 PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
36636 re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
36637 count_mbs_length, wcs_re_match_2_internal,
36638 byte_re_match_2_internal, PREFIX(group_match_null_string_p),
36639 PREFIX(alt_match_null_string_p),
36640 PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
36641 re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
36642 regfree, PREFIX(extract_number)): Define with prototype. Remove
36643 now-unnecessary declaration, if any.
36644 (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
36646 Remove now-unnecessary casts among pointer types.
36647 * lib/regex.h (_RE_ARGS): Remove. All uses removed.
36649 * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
36650 (free): Remove decl.
36652 * lib/rpmatch.c: Include <stdlib.h> unconditionally.
36654 * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
36655 (free): Remove decl.
36657 * lib/save-cwd.c: Include <stdlib.h> unconditionally.
36658 * lib/xgetcwd.c: Likewise.
36660 * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
36661 (free): Remove decl.
36663 * lib/strchrnul.c (strchrnul): Define with a prototype.
36664 Fix bug: c_in was not converted to char before searching.
36666 The following changes are not K&R related:
36668 * lib/group-member.h: Include <sys/types.h>, so that this file is
36670 * lib/makepath.h: Likewise.
36672 * lib/getusershell.c (readname, default_index, line_size, readname):
36673 Use size_t, not int, for sizes.
36674 (readname): If the size overflows, report an error instead of
36677 2003-09-09 Paul Eggert <eggert@twinsun.com>
36679 * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
36682 2003-09-09 Paul Eggert <eggert@twinsun.com>
36684 * README: New section: portability guidelines.
36686 2003-09-09 Derek Robert Price <derek@ximbiot.com>
36688 * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
36691 2003-09-09 Derek Robert Price <derek@ximbiot.com>
36693 * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
36695 2003-09-08 Paul Eggert <eggert@twinsun.com>
36697 Assume C89 or better; remove K&R cruft.
36698 A few of these changes were first proposed by Derek Robert Price
36699 in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
36701 * lib/addext.c: Include <string.h> unconditionally.
36702 * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
36703 Don't declare getenv or malloc.
36705 * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
36706 (POINTER_TYPE, pointer): Remove; all uses changed to void *.
36708 (find_stack_direction, alloca): Use prototypes.
36710 * lib/atexit.c (atexit): Define using a prototype.
36712 * lib/basename.c, dirname.c, stripslash.c:
36713 Include <string.h> unconditionally.
36715 * lib/bcopy.c: Include <stddef.h>.
36716 (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
36718 * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
36720 * lib/error.h (error, error_at_line, error_print_progname)
36721 [! (defined (__STDC__) && __STDC__)]: Remove decls.
36722 * lib/error.c: Include error.h first, to check interface.
36723 Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
36724 (VA_START): Remove; all uses changeed to va_start.
36725 (exit, strerror): Remove decls.
36726 (error_print_progname): Prototype uncondionally.
36727 Don't include <errno.h>; no longer needed.
36728 (private_strerror): Remove.
36729 (error_tail): Always define.
36730 (error, error_at_line): Assume C89 or better; always use prototypes.
36731 * lib/fatal.c: Include "fatal.h" first, to test interface.
36732 Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
36733 (VA_START): Remove; all uses changed to va_start.
36734 [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
36736 (exit): Remove decl.
36737 (fatal): Prototype unconditionally. Assume va_start works.
36738 Abort at end, to pacify gcc.
36740 * lib/euidaccess.c (main): Define with a prototype.
36742 * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
36744 * lib/exitfail.c: Include <stdlib.h> unconditionally.
36746 * lib/fnmatch_.h (__P): Remove. All uses changed to assume
36748 * lib/fnmatch.c: Include fnmatch.h first, to test interface.
36749 Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
36750 (getenv): Remove decl.
36751 (fnmatch): Define using a prototype.
36752 * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
36753 (FCT): Define using a prototype.
36755 * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
36757 * lib/gethostname.c: Include <stddef.h>.
36758 (gethostname): Define with prototype. Length is size_t, not int.
36760 2003-09-08 Paul Eggert <eggert@twinsun.com>
36762 Assume C89 or better; remove K&R cruft.
36763 * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
36764 * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
36765 string.h, getenv, malloc.
36766 * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
36768 * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
36769 * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
36770 do not check for strerror.
36771 * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
36772 * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
36773 * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
36774 do not check for doprnt or vprintf.
36775 * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove. All uses removed.
36776 * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
36778 2003-09-08 Paul Eggert <eggert@twinsun.com>
36780 * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
36781 getversion.c should have been removed then, but was accidentally
36784 * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
36785 (utime_null): Fix typo: 'st' was sometimes called 'sb'.
36787 2003-09-08 Karl Berry <karl@gnu.org>
36789 * config/config.sub, config.guess, srclistvars.sh: update from savannah
36790 config, forget about prep.
36792 * config/depcomp, missing: update from automake.
36794 2003-09-07 Paul Eggert <eggert@twinsun.com>
36796 * modules/time_r: Depend on 'restrict'. Fix from Simon Josefsson in
36797 <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
36799 2003-09-07 Paul Eggert <eggert@twinsun.com>
36801 * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
36802 copy_tm_result. Bug reported by Simon Josefsson in
36803 <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
36805 2003-09-06 Paul Eggert <eggert@twinsun.com>
36807 * m4/time_r.m4: New file.
36808 * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
36809 * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
36810 is. Check for timegm declaration.
36811 (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
36812 Do not check for gmtime_r.
36813 Replace mktime if __mktime_internal does not exist and if mktime
36814 hasn't been replaced already.
36816 2003-09-06 Paul Eggert <eggert@twinsun.com>
36818 * lib/time_r.c, lib/time_r.h: New files.
36820 * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
36822 (__localtime_r) [!defined _LIBC]: New macro. Include <time_r.h>.
36823 (__mktime_internal) [!defined _LIBC]: Now extern, not static.
36825 * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
36827 (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
36828 (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
36829 Include <time_r.h>.
36831 * lib/timegm.c: Switch to glibc implementation, with the following
36833 [defined HAVE_CONFIG_H]: Include <config.h>.
36834 [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
36835 (__mktime_internal) [!defined _LIBC]: New decl.
36836 (__gmtime_r) [!defined _LIBC]: New macro and function.
36837 (timegm): Use a prototype, since gnulib assumes C89.
36838 Do not bother declaring tmp to be const, as it's not really usefu.
36839 * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
36840 (timegm): Declare only if HAVE_DECL_TIMEGM.
36842 2003-09-06 Paul Eggert <eggert@twinsun.com>
36844 * MODULES.html.sh (func_all_modules): Add time_r.
36845 * modules/time_r: New file.
36846 * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
36847 * modules/timegm: Depend on mktime. Change maintainer to "all, glibc".
36849 2003-09-03 Paul Eggert <eggert@twinsun.com>
36851 * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
36852 Bug reported by Lute Kamstra in
36853 <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
36855 * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
36856 "yesterday", "today", and "now" rather than tMINUTE_UNIT. Of
36857 course with correspondingly smaller numbers for tomorrow and
36858 yesterday. From Tadayoshi Funaba. Originally installed into
36859 sh-utils on 1999-08-07, but the patch got lost (I guess during the
36862 2003-08-31 Simon Josefsson <jas@extundo.com>
36864 * modules/timegm: New file.
36865 * MODULES.html.sh (func_all_modules): Add timegm.
36867 2003-08-31 Simon Josefsson <jas@extundo.com>
36869 * m4/timegm.m4: New file.
36871 2003-08-31 Simon Josefsson <jas@extundo.com>
36873 * lib/timegm.h: New file.
36874 * lib/timegm.c: New file. Based on
36875 wget-1.8.2/src/http.c:mktime_from_utc.
36877 2003-08-31 Karl Berry <karl@gnu.org>
36879 * lib/argp.h: update from libc.
36881 2003-08-28 Bruno Haible <bruno@clisp.org>
36883 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
36884 This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
36885 followed by '#define fnmatch fnmatch_posix' gives an error.
36887 2003-08-28 Bruno Haible <bruno@clisp.org>
36889 * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
36890 warning on QNX, which defines O_BINARY to 000000.
36892 2003-08-27 Jim Meyering <jim@meyering.net>
36894 * m4/mkstemp.m4: Require that the system mkstemp be able to create
36895 70 temporary files, not just 30. Tru64 V4.0F's mkstemp function
36896 would fail after 32. Reported by Danny Levinson. Details here:
36897 http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
36899 2003-08-24 Bruno Haible <bruno@clisp.org>
36901 * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
36902 MSVC7 <stdio.h> is included later.
36904 2003-08-22 Simon Josefsson <jas@extundo.com>
36906 * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
36908 2003-08-20 Karl Berry <karl@gnu.org>
36910 * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
36912 2003-08-20 Bruno Haible <bruno@clisp.org>
36914 * modules/progname: New file.
36915 * MODULES.html.sh (func_all_modules): Add progname.
36917 2003-08-20 Bruno Haible <bruno@clisp.org>
36919 * lib/progname.h: New file, from GNU gettext.
36920 * lib/progname.c: New file, from GNU gettext.
36921 * lib/progreloc.c: New file, from GNU gettext.
36923 2003-08-19 Jim Meyering <jim@meyering.net>
36925 * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
36926 http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
36928 2003-08-19 Bruno Haible <bruno@clisp.org>
36930 * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
36933 2003-08-19 Bruno Haible <bruno@clisp.org>
36935 * lib/xstrdup.c: Assume <string.h> exists.
36937 2003-08-18 Paul Eggert <eggert@twinsun.com>
36939 * modules/stdbool: Add BUILT_SOURCES. Prefer $@ to target name
36942 2003-08-18 Jim Meyering <jim@meyering.net>
36944 * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
36945 * m4/lib-ld.m4: Likewise.
36947 2003-08-18 Jim Meyering <jim@meyering.net>
36949 * lib/setenv.h: Indent nested cpp directive.
36950 * lib/vasnprintf.c: Remove trailing blanks.
36952 2003-08-17 Simon Josefsson <jas@extundo.com>
36954 * modules/xstrndup: New file.
36955 * MODULES.html.sh (func_all_modules): Add xstrndup.
36957 2003-08-17 Simon Josefsson <jas@extundo.com>
36959 * modules/argp: Fix autoconf macro name. Add more dependencies.
36961 2003-08-17 Simon Josefsson <jas@extundo.com>
36963 * m4/xstrndup.m4: New file.
36965 2003-08-17 Simon Josefsson <jas@extundo.com>
36967 * m4/argp.m4: New file.
36969 2003-08-17 Simon Josefsson <jas@extundo.com>
36970 Bruno Haible <bruno@clisp.org>
36972 * lib/xstrndup.h: New file.
36973 * lib/xstrndup.c: New file.
36975 2003-08-17 Bruno Haible <bruno@clisp.org>
36977 * modules/strndup (Files, Include): Add lib/strndup.h.
36979 2003-08-17 Bruno Haible <bruno@clisp.org>
36981 * modules/euidaccess (Files): Add lib/euidaccess.h.
36983 2003-08-17 Bruno Haible <bruno@clisp.org>
36985 * lib/strndup.h: New file.
36987 2003-08-17 Bruno Haible <bruno@clisp.org>
36989 * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
36990 like AC_GNU_SOURCE.
36991 * modules/extensions (configure.ac): Comment out the invocation of
36992 gl_USE_SYSTEM_EXTENSIONS.
36994 2003-08-16 Paul Eggert <eggert@twinsun.com>
36996 Merges from coreutils, etc.
36997 * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
36998 error in gl_FUNC_MATCH. This fixes a bug I introduced on 2003-05-28.
36999 * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
37001 * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
37002 * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
37004 2003-08-16 Paul Eggert <eggert@twinsun.com>
37006 Document merge from coreutils.
37007 * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
37008 * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
37009 * modules/utime: Add m4/utimes-null.m4.
37011 2003-08-16 Paul Eggert <eggert@twinsun.com>
37013 * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
37014 space, undoing this 2003-08-12 change:
37015 <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
37017 2003-08-16 Paul Eggert <eggert@twinsun.com>
37019 * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
37020 strtoul.c from libc, undoing this 2003-08-12 change:
37021 <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
37023 2003-08-16 Jim Meyering <jim@meyering.net>
37025 Merges from coreutils.
37026 * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
37027 prefix. Adjust cache variables similarly. Create 500 rather than
37028 just 300 files, to exercise bug on Darwin6.5, too.
37029 * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
37031 * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
37032 AM_SYS_POSIX_TERMIOS.
37033 Reported by mkc@mathdogs.com.
37034 Also change use of $am_cv_sys_posix_termios
37035 to $ac_cv_sys_posix_termios. Reported by Andreas Schwab.
37036 * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
37037 and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
37038 * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
37039 in /proc/mounts until it finds one with matching device number. This
37040 is unnecessary when the FILE argument *is* a mount point. No stat call
37041 is necessary in that case. So, disable the statvfs-testing code on
37042 systems with GNU libc. Reported by Andrei Gaponenko via Tim Waugh
37043 as RedHat bug# 84846.
37044 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
37045 to 1MB, so as not to render systems with no stack size limit (e.g.,
37046 linux-2.2.x) unusable. Suggestion and code from Bruno Haible.
37047 Include <unistd.h>. On some systems,
37048 it is required for the definition of _SC_PAGESIZE.
37050 2003-08-16 Jim Meyering <jim@meyering.net>
37052 Merge from coreutils.
37053 * lib/xstrtoimax.c: #else #if -> #elif.
37054 * lib/xstrtoumax.c: Likewise.
37056 2003-08-16 Jim Meyering <jim@meyering.net>
37058 * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
37059 * m4/utimes.m4: Removed.
37060 * m4/utimes-null.m4: Renamed from utimes.m4.
37062 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
37063 to 1MB, so as not to render systems with no stack size limit (e.g.,
37064 linux-2.2.x) unusable. Suggestion and code from Bruno Haible.
37065 Include <unistd.h>. On some systems,
37066 it is required for the definition of _SC_PAGESIZE.
37068 2003-08-16 Jim Meyering <jim@meyering.net>
37069 and Paul Eggert <eggert@cs.ucla.edu>
37071 Merges from coreutils, etc.
37073 * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
37074 using the latest version from cvs. This avoids problems with #line
37075 directives using a vendor (Sun) compiler.
37076 (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
37077 Don't set GETGROUPS_LIB here; now it's
37078 done via getgroups.m4's wrapper function.
37079 AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
37080 rather than just in sh-util/configure.in, so that the
37081 now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
37083 Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
37084 AC_FUNC_GETLOADAVG where to find getloadavg.c.
37085 Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
37086 UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
37087 gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
37088 Remove code that is now done by the newly-required macros.
37089 Append $(EXEEXT) to DF_PROG.
37090 AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
37091 Do not invoke or require the following here,
37092 since prereq.m4 or some gnulib .m4 now does this for us:
37093 gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
37094 jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
37095 jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
37096 jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
37097 jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
37098 AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
37099 vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
37101 Do not replace the following functions, as this is now the job
37102 of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
37103 getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
37104 strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
37105 atexit getpass, strdup, getpagesize.
37107 Do not check for the following functions, as this is now the job
37108 of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
37109 getcwd, getmntinfo, resolvepath. But check for sysctl, setreuid,
37111 (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
37112 Check for sys/sysctl.h.
37113 (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
37114 jm_CHECK_TYPE_STRUCT_TIMESPEC. Invoke gt_TYPE_SSIZE_T instead
37115 of checking for ssize_t ourselves.
37117 * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
37118 Require every macro that gnulib/modules/* suggests for us.
37119 (jm_PREREQ_ADDEXT): New macro.
37120 (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
37121 Require jm_AC_TYPE_LONG_LONG instead of invoking it.
37123 * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
37124 (gl_PHYSMEM): Use it.
37125 Also check for `table' function.
37126 Check for new headers and functions.
37127 Add check for sys/sysmp.h.
37128 With suggestions from Kaveh Ghazi.
37129 Ignore headers that are present but cannot be compiled. This
37130 avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
37133 2003-08-15 Paul Eggert <eggert@twinsun.com>
37135 Document merge from coreutils.
37136 * modules/userspec: Depend on posixver.
37137 * modules/strftime: Depend on tzset.
37139 2003-08-15 Paul Eggert <eggert@twinsun.com>
37141 * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
37142 rather than tab, after '#' in shell-script copyright notices.
37143 Suggested by Bruno Haible.
37145 2003-08-15 Paul Eggert <eggert@twinsun.com>
37147 * config/srclist-update: Use three spaces, rather than tab, after '#'
37148 in shell-script copyright notices. Suggested by Bruno Haible.
37149 Remove unnecessary parenthesization in regular expression.
37151 2003-08-15 Jim Meyering <jim@meyering.net>
37153 Merge from coreutils.
37154 * lib/xgethostname.c: Include <stdlib.h>.
37155 (xghostname): Don't exit for anything other than memory-related
37156 failure; just return NULL.
37157 * lib/userspec.c: Include "posixver.h".
37158 (parse_user_spec): Accept `.' as a separator only
37159 in pre-POSIX-200112 mode.
37160 * lib/strtoimax.c: Use #elif rather than #else #if.
37161 * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
37162 Remove function, now that we can rely on a working tzset function.
37163 [!_LIBC]: Ensure that the required autoconf test has been run.
37164 [!defined _NL_CURRENT && HAVE_STRFTIME]:
37165 Use underlying_strftime for %r.
37166 * lib/sha.c: Merge in some clean-up and optimization changes from
37168 * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
37169 Ensure that it is a multiple of 64.
37170 Rearrange loop exit tests so as to avoid performing an
37171 additional fread after encountering an error or EOF.
37172 * lib/realloc.c: Update copyright date.
37174 2003-08-15 Jim Meyering <jim@meyering.net>
37175 and Paul Eggert <eggert@twinsun.com>
37177 Merge from coreutils.
37178 * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
37179 member but strut utmpx does not. Needed for AIX 4.3.3.
37180 (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
37182 2003-08-15 Jim Meyering <jim@meyering.net>
37183 and Paul Eggert <eggert@cs.ucla.edu>
37185 Merges from coreutils, etc.
37186 * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
37187 Require gl_FUNC_TZSET_CLOBBER.
37188 * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
37189 ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
37192 2003-08-14 Paul Eggert <eggert@twinsun.com>
37194 Help the merge from coreutils.
37195 * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
37196 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
37197 * m4/tzset.m4: Use it too.
37199 2003-08-14 Paul Eggert <eggert@twinsun.com>
37201 * modules/tzset: New file.
37203 2003-08-14 Jim Meyering <jim@meyering.net>
37205 Merges from coreutils.
37206 * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
37207 variable names, rather than @FNMATCH_H@.
37208 * modules/alloca: Likewise for $(ALLOCA_H).
37210 * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
37211 the three copies of the literal target, `fnmatch.h'.
37212 * modules/alloca (alloca.h): Likewise.
37214 2003-08-14 Jim Meyering <jim@meyering.net>
37216 Merge from coreutils.
37217 * m4/tzset.m4: New file.
37218 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
37219 MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
37220 otherwise, AIX 5.1 systems would end up using the latter.
37221 MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
37222 whether a file system is remote doesn't work 2) the MOUNTED_VMOUNT
37223 code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
37224 code reports merely /MOUNT_POINT. Reported by Mike Jetzer.
37226 2003-08-14 Jim Meyering <jim@meyering.net>
37228 Merge from coreutils.
37229 * lib/obstack.h: Whitespace changes.
37230 * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
37231 and xcalloc return values.
37232 (read_filesystem_list) [MOUNTED_GETFSSTAT]:
37233 Use MNT_NOWAIT, rather than MNT_WAIT. Otherwise, `df DIR' could
37234 hang on OSF/1 5.1 for DIR on both local and remote file systems.
37235 Reported by (and fix confirmed by) Nelson H. F. Beebe.
37236 (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
37238 Use mntctl's return value to drive the entry-processing loop, since
37239 we can't rely on the value of the vmt_length member in the last
37240 entry. On some systems doing so could result in exhausting
37241 virtual memory. Based in part on a patch from Mike Jetzer.
37243 2003-08-14 Jim Meyering <jim@meyering.net>
37244 and Paul Eggert <eggert@twinsun.com>
37246 Merges from coreutils, plus other fixes.
37247 * lib/physmem.c: Merge in portability changes from gcc/libiberty
37248 to support AIX, IRIX, Tru64, and Windows. See the ChangeLog there
37249 for credits and details. Thanks to Kaveh Ghazi for helping
37250 to keep these files in sync.
37251 (ARRAY_SIZE): Define it.
37252 (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
37253 * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
37254 (memcasecmp): Don't assume size_t fits in unsigned int.
37255 Remove casts and duplicate code.
37256 * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
37257 (memcpy): Remove definition.
37258 Merge in some clean-up and optimization changes from glibc.
37259 [BLOCKSIZE]: Move definition to top of file.
37260 Ensure that it is a multiple of 64.
37261 Rearrange loop exit tests so as to avoid performing an
37262 additional fread after encountering an error or EOF.
37263 * lib/md5.h (md5_uintptr): Define.
37264 * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
37265 return to the initial working directory. Preserve errno
37267 * lib/idcache.c: Include "xalloc.h".
37268 (xmalloc, xrealloc): Remove decls.
37269 (getuser): Remove casts no longer required in C89.
37270 * lib/human.c: Include stdio.h, for sprintf.
37271 * lib/group-member.c: Include "xalloc.h".
37272 (xmalloc, xrealloc): Remove decls.
37273 (get_group_info): Remove casts no longer required in C89.
37274 * lib/getusershell.c (readname): Remove casts no longer required in
37276 * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
37277 * lib/getline.c: Whitespace fix, from coreutils.
37279 2003-08-13 Paul Eggert <eggert@twinsun.com>
37281 * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
37284 * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
37285 lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
37286 Undo previous (whitespace-only) change.
37288 2003-08-13 Paul Eggert <eggert@twinsun.com>
37290 * lib/exclude.c: Include <ctype.h>
37291 (IN_CTYPE_DOMAIN): New macro.
37292 (is_space): New fn.
37293 (add_exclude_file): If LINE_END is a space, ignore trailing spaces
37296 * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
37297 Undo previous (whitespace-only) change.
37299 2003-08-13 Paul Eggert <eggert@twinsun.com>
37301 * config/srclist-update: Change update back to the old behavior,
37302 leaving whitespace alone. Use one 'sed' command rather than a
37304 (fixlicense): Now a variable, not a function.
37305 (remove_trailing_blanks): Remove.
37306 (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
37307 * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
37308 Undo previous (whitespace-only) change.
37310 2003-08-12 Paul Eggert <eggert@twinsun.com>
37312 Merge from coreutils.
37313 * modules/euidaccess: Add lib_SOURCES, include for new
37316 2003-08-12 Paul Eggert <eggert@twinsun.com>
37318 * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
37319 lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
37320 Normalize leading white space and remove trailing white space.
37322 Merge from coreutils
37323 * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
37325 * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
37326 0.12.1. These files are now being upgraded automatically by
37327 ../config/srclist-update.
37329 2003-08-12 Paul Eggert <eggert@twinsun.com>
37331 * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
37332 Normalize leading white space and remove trailing white space.
37333 * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
37334 notice, as per ../config/srclist-update.
37336 Merge from coreutils.
37337 * lib/euidaccess.h: New file.
37338 * lib/euidaccess.c: Include it.
37339 * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
37340 vasnprintf.h, vasprintf.h. Remove strdup.c, gettext.h.
37341 * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
37343 2003-08-12 Paul Eggert <eggert@twinsun.com>
37345 * config/srclist-update: Add copyright notice.
37346 (remove_id_lines, remove_trailing_blanks): New constants.
37347 (fixfile): Use them to normalize spacing a bit in copied files.
37348 * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
37349 Normalize leading white space and remove trailing white space.
37351 * config/texinfo.tex: Sync with texinfo.
37353 * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
37354 strtoul.c from libc, to merge coreutils whitespace changes.
37356 * config/srclist.txt: Get the following m4 files from gettext:
37357 codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
37358 inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
37359 longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
37362 2003-08-12 Karl Berry <karl@gnu.org>
37364 * config/srclist.txt: can't sync vasnprintf.c any more, changes have
37367 2003-08-11 Paul Eggert <eggert@twinsun.com>
37369 * modules/gnu-source, m4/gnu-source.m4:
37370 Remove; we're assuming Autoconf 2.54 or later now.
37371 Suggested by Bruno Haible.
37372 * MODULES.html.sh (func_all_modules): Remove gnu-source.
37374 2003-08-11 Bruno Haible <bruno@clisp.org>
37376 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
37378 2003-08-11 Bruno Haible <bruno@clisp.org>
37380 * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
37381 (vasnprintf): Use it instead of wcslen.
37383 2003-08-11 Bruno Haible <bruno@clisp.org>
37385 * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
37386 value to ensure that _Bool promotes to int. Use #define for _Bool when
37387 using the Solaris C compiler. Adds comments suggested by Paul Eggert.
37389 2003-08-10 Karl Berry <karl@gnu.org>
37391 * lib/regex.h: update from libc (whitespace fix).
37393 2003-08-09 Paul Eggert <eggert@twinsun.com>
37395 Merge some files from coreutils. These changes were
37396 originally made by Jim Meyering.
37397 * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
37398 many older Unixes require this.
37399 * lib/alloca.c (alloca): Remove cast to argument of free;
37400 no longer needed in C89.
37401 * lib/alloca_.h, regex.h: Fix white space to match
37402 what GNU indent does.
37404 2003-08-09 Paul Eggert <eggert@twinsun.com>
37406 * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
37407 apparently Emacs's Unicode mode got confused before my 2003-08-05
37410 2003-08-08 Paul Eggert <eggert@twinsun.com>
37412 * m4/extensions.m4: New file.
37413 * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
37414 Require gl_USE_SYSTEM_EXTENSIONS.
37415 * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
37416 Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
37418 2003-08-08 Paul Eggert <eggert@twinsun.com>
37420 * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
37421 * modules/extensions, modules/gnu-source: New files.
37422 * modules/timespec, modules/unlocked-io: Depend on extensions.
37424 2003-08-07 Paul Eggert <eggert@twinsun.com>
37426 * modules/restrict: New file.
37427 * MODULES.html.sh (func_all_modules): Add restrict.
37428 * modules/regex: Depend on restrict.
37430 2003-08-07 Paul Eggert <eggert@twinsun.com>
37432 * m4/restrict.m4: New file.
37433 * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
37435 2003-08-07 Bruno Haible <bruno@clisp.org>
37437 * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
37438 lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
37440 2003-08-07 Bruno Haible <bruno@clisp.org>
37442 * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
37443 makes the module 'getndelim2' compatible with the module 'getline'.
37445 2003-08-05 Paul Eggert <eggert@twinsun.com>
37447 * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
37448 byte with "\201" to avoid glitches when editing that source file
37449 with multi-gnome-terminal.
37451 2003-08-05 Paul Eggert <eggert@twinsun.com>
37453 * lib/bumpalloc.h: Remove.
37455 2003-08-05 Paul Eggert <eggert@twinsun.com>
37457 * MODULES.html.sh (func_all_modules): Remove bumpalloc.
37458 * modules/bumpalloc: Remove.
37460 2003-08-04 Paul Eggert <eggert@twinsun.com>
37462 * lib/getloadavg.c: Change copyright notice and spacing to conform to
37465 Merge from coreutils.
37466 * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
37468 * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
37469 from Karl Berry, implemented by Jim Meyering.
37470 * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
37471 from Dmitry V. Levin.
37472 Remove anachronistic cast of xrealloc.
37473 * lib/fnmatch_.h (__const): Remove. Use 'const'.
37474 * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
37475 type. Otherwise, it wouldn't compile with at least /bin/cc on
37476 ymp-cray-unicos9.0.2.X.
37477 Combine two mostly-identical uses of alloca into one.
37478 Thanks to the Cray-Cyber project for access to a Cray Y-MP.
37480 2003-08-04 Dave Love <d.love@dl.ac.uk>
37484 * lib/getloadavg.c: Check `__unix' as well as `unix'. Use #ifdef, not
37485 #if. Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE. Check
37486 F_SETFD, not FD_SETFD. Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
37487 obsolete NLIST_NAME_UNION.
37488 [__GNU__]: Undef BSD and FSCALE.
37489 [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
37491 2003-08-03 Paul Eggert <eggert@twinsun.com>
37493 * lib/stdbool_.h (_Bool): Make it signed char, instead of
37494 an enum type, so that it's guaranteed to promote to int. See:
37495 <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
37497 2003-08-03 Karl Berry <karl@gnu.org>
37499 * config/depcomp: update from automake.
37501 2003-07-31 Paul Eggert <eggert@twinsun.com>
37503 * lib/strerror.c: Include config.h, limits.h. Declare sprintf.
37504 (strerror): Don't assume that a printable int fits in 14 bytes.
37506 2003-07-31 Bruno Haible <bruno@clisp.org>
37508 * modules/getpass-gnu: New file.
37509 * MODULES.html.sh (func_all_modules): Add getpass-gnu.
37511 2003-07-31 Bruno Haible <bruno@clisp.org>
37513 * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
37515 2003-07-24 Karl Berry <karl@gnu.org>
37517 * config/missing: update from automake.
37519 2003-07-24 Derek Robert Price <derek@ximbiot.com>
37520 Bruno Haible <bruno@clisp.org>
37522 * lib/getline.h (getline, getdelim): Change return type to ssize_t.
37523 * lib/getline.c (getline, getdelim): Likewise.
37524 Remove _GNU_SOURCE define; now it's defined in config.h through
37527 2003-07-23 Karl Berry <karl@gnu.org>
37529 * config/config.sub: update from prep.
37531 2003-07-22 Paul Eggert <eggert@twinsun.com>
37533 * modules/xalloc (Depends-on): Add exitfail.
37534 * modules/xmemcoll: Likewise.
37536 2003-07-22 Paul Eggert <eggert@twinsun.com>
37538 * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
37539 over-parenthesization in macros.
37541 Sync with coreutils.
37543 * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
37546 Use `exit_failure' for xalloc and xmemcoll instead of their own
37547 private exit-failure variables.
37548 * lib/xalloc.h (xalloc_exit_failure): Remove.
37549 * lib/xmalloc.c: Likewise. Include exitfail.h.
37550 (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
37551 * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
37552 * lib/xmemcoll.c: Likewise. Include exitfail.h.
37553 (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
37555 2003-07-20 Jim Meyering <jim@meyering.net>
37557 * modules/closeout (Depends-on): Add exitfail.
37558 Suggestion from Bruno Haible.
37560 2003-07-19 Karl Berry <karl@gnu.org>
37562 * config/config.sub: update from prep.
37564 2003-07-18 Paul Eggert <eggert@twinsun.com>
37566 * lib/closeout.h (close_stdout_set_status, close_stdout_status):
37568 * lib/closeout.c: Likewise. Include "closeout.h" right after config.h,
37569 to test that it can stand by itself. Include "exitfail.h".
37570 Clients should set exit_failure instead.
37571 (EXIT_FAILURE): Remove; no longer needed. Do not include <stdlib.h>.
37573 2003-07-18 Bruno Haible <bruno@clisp.org>
37575 * modules/getndelim2: New file.
37576 * modules/getline: Share files with module getndelim2.
37577 * modules/getnline: Depend on getndelim2 instead of sharing files with
37578 it. Add getnline.c to lib_SOURCES.
37579 * MODULES.html.sh (func_all_modules): Add getndelim2.
37581 2003-07-18 Bruno Haible <bruno@clisp.org>
37583 * m4/getndelim2.m4: New file.
37584 * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
37585 invoke gl_PREREQ_GETNDELIM2.
37586 (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
37587 gl_PREREQ_GETNDELIM2.
37588 * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
37591 2003-07-18 Bruno Haible <bruno@clisp.org>
37593 * lib/getndelim2.h: New file.
37594 * lib/getndelim2.c: Make into a module of its own. Include config.h,
37596 (getndelim2): Make non-static. Change return type to ssize_t.
37597 * lib/getline.h: Change argument names.
37598 * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
37599 * lib/getnline.c: Include getndelim2.h.
37601 2003-07-18 Andreas Schwab <schwab@suse.de>
37603 * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
37605 2003-07-17 Karl Berry <karl@gnu.org>
37607 * config/config.sub: update from prep.
37609 2003-07-17 Bruno Haible <bruno@clisp.org>
37611 * modules/getnline: New file.
37612 * modules/getline: Add lib/getndelim2.c to source file list.
37613 * MODULES.html.sh (func_all_modules): Add getnline.
37615 2003-07-17 Bruno Haible <bruno@clisp.org>
37617 * m4/getnline.m4: New file.
37619 2003-07-17 Bruno Haible <bruno@clisp.org>
37621 * m4/Makefile.am.in: Remove file.
37622 * m4/Makefile.am: Remove file.
37623 * m4/Makefile.in: Remove file.
37625 2003-07-17 Bruno Haible <bruno@clisp.org>
37627 * lib/getnline.h: New file.
37628 * lib/getnline.c: New file.
37629 * lib/getndelim2.c: New file, extracted from getline.c.
37630 (getndelim2): Renamed from getdelim2, with added nmax argument.
37631 * lib/getline.c: Include getndelim2.c.
37632 (getdelim2): Moved out to getndelim2.c.
37633 (getline, getdelim): Update.
37635 2003-07-17 Bruno Haible <bruno@clisp.org>
37637 * lib/Makefile.am: Remove file.
37638 * lib/Makefile.in: Remove file.
37640 2003-07-17 Bruno Haible <bruno@clisp.org>
37642 * configure.in: Remove file.
37643 * Makefile.in: Remove file.
37645 2003-07-17 Bruno Haible <bruno@clisp.org>
37647 * MODULES.html.sh: Put the </BODY> right before </HTML>.
37649 2003-07-16 Karl Berry <karl@gnu.org>
37651 * config/srclist-update: was running fixlicense twice, which caused
37652 texinfo.tex to be nullified for some reason. Simplify,
37653 $gplsrc is no longer needed as far as I can see?
37655 2003-07-16 Jim Meyering <jim@meyering.net>
37657 * modules/save-cwd: Depend on xgetcwd. From Derek Price.
37659 2003-07-15 Paul Eggert <eggert@twinsun.com>
37661 * config/srclist.txt: Get the following files from gettext-runtime/intl
37662 instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
37663 ref-del.sin. From Bruno Haible.
37664 * config/srclist-update (fixfile): Change grep pattern again, since the
37665 previous fix didn't work (there was another trailing $). Use
37666 '[$]' to escape the $s.
37668 2003-07-15 Karl Berry <karl@gnu.org>
37670 * lib/vasnprintf.c: update from gettext.
37672 2003-07-15 Karl Berry <karl@gnu.org>
37674 * config/srclist-update (fixfile): Change grep pattern, since 'Id'
37675 gets expanded when surrounded by '$'.
37677 2003-07-15 Jim Meyering <jim@meyering.net>
37679 * modules/save-cwd: Don't depend on error. From Derek Price.
37681 2003-07-15 Jim Meyering <jim@meyering.net>
37683 * lib/makepath.c (make_path): Enclose diagnostic in _(...).
37685 2003-07-14 Simon Josefsson <jas@extundo.com>
37687 * modules/mempcpy: New file.
37688 * MODULES.html.sh (func_all_modules): Add mempcpy.
37690 2003-07-14 Simon Josefsson <jas@extundo.com>
37692 * m4/mempcpy.m4: New file.
37694 2003-07-14 Simon Josefsson <jas@extundo.com>
37696 * lib/mempcpy.h: New file.
37697 * lib/mempcpy.c: New file.
37699 2003-07-14 Paul Eggert <eggert@twinsun.com>
37701 * modules/getdate, modules/posixtm: Depend on mktime.
37703 2003-07-14 Paul Eggert <eggert@twinsun.com>
37705 * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
37706 sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
37707 unicodeio.c, unicodeio.h, unlocked-io.h:
37708 Switch from LGPL to GPL.
37710 2003-07-14 Paul Eggert <eggert@twinsun.com>
37712 * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
37713 localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
37714 printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
37715 ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
37716 vasprintf.c, vasprintf.h: Regenerate. These files are now being
37717 updated automatically by ../config/srclist-update. This changes
37718 their license from LPGL to GPL.
37720 2003-07-14 Paul Eggert <eggert@twinsun.com>
37722 * config/srclist.txt: Add tons more gettext files. $GETTEXT is now
37723 assumed to refer to the root of the most recent stable gettext version.
37724 * config/srclistvars.sh: Add defaults for eggert.
37725 * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
37726 Match "This program" as well as "The program". This is needed
37729 2003-07-14 Jim Meyering <jim@meyering.net>
37731 Don't emit diagnostics. Let callers do that.
37732 * lib/save-cwd.c: Don't include "error.h".
37733 (save_cwd): Don't call error. Ensure that errno is valid
37734 when returning nonzero.
37736 * lib/save-cwd.h (restore_cwd): Update prototype.
37737 * lib/save-cwd.c (restore_cwd): Remove two parameters.
37738 Simplify. Don't call error upon failure. Let callers do that.
37739 (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
37740 when auditing is enabled. But don't bother updating the #if.
37742 2003-07-11 Alexandre Duret-Lutz <adl@gnu.org>
37744 * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
37745 it breaks C++ compilation.
37746 [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
37748 2003-07-10 Simon Josefsson <jas@extundo.com>
37750 * modules/strchrnul (Makefile.am): Add strchrnul.h.
37752 2003-07-10 Jim Meyering <jim@meyering.net>
37754 * m4/clock_time.m4: Remove trailing blank.
37755 * m4/intmax_t.m4: Likewise.
37757 2003-07-10 Jim Meyering <jim@meyering.net>
37759 * lib/vasnprintf.c: Remove trailing blanks.
37760 Make cpp indentation consistent.
37762 2003-07-09 Paul Eggert <eggert@twinsun.com>
37764 * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
37765 posixver.c, strftime.c, strnlen.c, strverscmp.c:
37766 Switch from LGPL to GPL.
37768 2003-07-09 Paul Eggert <eggert@twinsun.com>
37770 * config/srclist.txt: Sort sublists. Add
37771 $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
37772 that differ from gnulib for one reason or another; we'd like this list
37773 to be smaller but for now let's document what we have.
37775 2003-07-08 Paul Eggert <eggert@twinsun.com>
37777 * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
37778 the use of GNU extensions. Change "x=`eval echo $x`" to the shorter
37779 and sweeter "eval x=$x".
37780 * config/srclist.txt: Get lib/argp* from glibc.
37782 2003-07-07 Paul Eggert <eggert@twinsun.com>
37784 * lib/mktime.c: Fix some boundary cases and remove need for floating
37787 Issue a compile-time diagnostic if time_t is floating point, or if
37788 two's complement arithmetic is not in effect, or if arithmetic
37789 right shift does not propagate the sign. These assumptions were
37790 all in the original code but they weren't checked.
37792 (TIME_T_MIDPOINT, verify): New macros.
37793 (__isleap): Remove; it has integer overflow problems.
37794 (leapyear): New function, without those problems.
37795 (ydhms_tm_diff): Remove; splitting into two parts.
37796 (ydhms_diff): New function, containing the arithmetic part of
37797 the old ydhms_tm_diff function. Issue a compile-time
37798 diagnostic if we are not using C99 integer division.
37799 Avoid casts when possible.
37800 (guess_time_tm): New function, containing the checking part of
37801 the old ydhms_tm_diff function. Return the new value, rather than
37802 the difference between it and the old. Accept a new argument T
37803 so that *T specifies the old value. Check for overflow in the result.
37805 (__mktime_internal): Use a time_t offset, not a long int offset.
37806 This undoes the 2003-06-04 change, which is no longer needed now
37807 that we have better overflow checking.
37808 (localtime_offset): Likewise.
37810 (__mktime_internal): Avoid harmful overflow on hosts where time_t
37811 and long are 64-bit but int is only 32-bit.
37812 (ydhms_diff): Use long int to store year1 and yday1.
37813 Issue a compile-time diagnostic if long int is not wide enough.
37815 (__mktime_internal): Use long int to store adjusted year and yday.
37816 Use plain C rather than preprocessor commands, if that doesn't
37818 Check for overflow (and try to repair) after each probe
37819 rather than checking only at the very end. This avoids some bugs
37820 (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
37821 does not equal GMT offset at maximum time).
37822 Use integer to check for overflow rather than floating point; this
37823 is more portable to non-IEEE hosts, and is a tad faster.
37824 When we detect that we are oscillating between two values,
37825 don't check whether tm_isdst has the requested value, since
37826 we already know the answer. When tm_isdst has the wrong value,
37827 use a different heuristic to find the right one, based on the
37828 extreme values actually observed in practice in tz2003a,
37829 rather than the (overly optimistic) "previous 3 calendar quarters".
37831 (not_equal_tm, print_tm, check_result): Use "const T" rather than
37832 "T const" to accommodate glibc style.
37833 (check_result): Use less-confusing report format. "long" -> "long int.
37835 Don't loop if the iteration overflows time_t.
37836 Allow a negative step in the iteration.
37838 2003-07-06 Karl Berry <karl@gnu.org>
37840 * config/depcomp: update from automake.
37841 * config/config.sub: update from prep.
37843 2003-07-03 Karl Berry <karl@gnu.org>
37845 * config/config.guess: update from prep.
37847 2003-07-01 Paul Eggert <eggert@twinsun.com>
37849 * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
37850 xreadlink.c now includes it unconditionally.
37852 2003-07-01 Paul Eggert <eggert@twinsun.com>
37854 * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
37855 having it depend on HAVE_SYS_TYPES_H.
37857 2003-07-01 Bruno Haible <bruno@clisp.org>
37859 * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
37860 <sys/types.h> should be sufficient.
37861 Reported by Paul Eggert.
37863 2003-06-26 Karl Berry <karl@gnu.org>
37865 * config/depcomp: update from automake.
37867 2003-06-26 Bruno Haible <bruno@clisp.org>
37869 * modules/human: Depend on module stdbool.
37871 2003-06-25 Bruno Haible <bruno@clisp.org>
37873 * modules/readlink: New file.
37874 * modules/xreadlink: Depend on it.
37875 * MODULES.html.sh (func_all_modules): Add readlink.
37877 2003-06-25 Bruno Haible <bruno@clisp.org>
37879 * m4/readlink.m4: New file.
37881 2003-06-25 Bruno Haible <bruno@clisp.org>
37883 * lib/readlink.c: New file.
37885 2003-06-22 Karl Berry <karl@gnu.org>
37887 * config/srclist.txt: update mkinstalldirs from automake.
37888 * config/mkinstalldirs: update.
37890 2003-06-22 Bruno Haible <bruno@clisp.org>
37892 Portability to mingw32.
37893 * m4/ssize_t.m4: New file, from GNU gettext.
37894 * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
37895 * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
37897 2003-06-22 Bruno Haible <bruno@clisp.org>
37899 * modules/safe-read: Add m4/ssize_t.m4.
37900 * modules/xreadlink: Add m4/ssize_t.m4.
37902 2003-06-20 Bruno Haible <bruno@clisp.org>
37904 Assume C89, so PARAMS isn't needed.
37905 * lib/unicodeio.h (PARAMS): Remove.
37906 * lib/unicodeio.c: Don't use PARAMS.
37908 2003-06-18 Karl Berry <karl@gnu.org>
37910 * config/config.{guess,sub}: update from prep.
37912 2003-06-18 Jim Meyering <jim@meyering.net>
37914 Merge changes from coreutils.
37915 * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
37916 Remove explicit declarations of xmalloc and realloc.
37918 (read_utmp): Remove anachronistic cast of xmalloc.
37920 2003-06-17 Paul Eggert <eggert@twinsun.com>
37922 Assume C89, so PARAMS isn't needed.
37923 * lib/backupfile.h (PARAMS): Remove. All uses removed.
37924 * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
37925 lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
37926 lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
37927 lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
37928 lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
37929 lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
37930 lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
37931 lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
37932 lib/xstrtod.h, lib/xstrtol.h: Likewise.
37933 * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
37934 lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
37935 no longer needed. Anyway, config.h should always be included before any
37938 2003-06-11 Simon Josefsson <jas@extundo.com>
37940 * modules/sysexits: New file.
37941 * MODULES.html.sh (func_all_modules): Add sysexits.
37943 2003-06-11 Simon Josefsson <jas@extundo.com>
37945 * lib/sysexit_.h: New file.
37947 2003-06-11 Derek Price <derek@ximbiot.com>
37949 * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
37952 2003-06-11 Bruno Haible <bruno@clisp.org>
37954 * m4/sysexits.m4: New file.
37956 2003-06-10 Simon Josefsson <jas@extundo.com>
37958 * lib/argp.h: New file, from glibc.
37959 * lib/argp-ba.c: New file, from glibc.
37960 * lib/argp-eexst.c: New file, from glibc.
37961 * lib/argp-fmtstream.c: New file, from glibc.
37962 * lib/argp-fmtstream.h: New file, from glibc.
37963 * lib/argp-fs-xinl.c: New file, from glibc.
37964 * lib/argp-help.c: New file, from glibc.
37965 * lib/argp-namefrob.h: New file, from glibc.
37966 * lib/argp-parse.c: New file, from glibc.
37967 * lib/argp-pv.c: New file, from glibc.
37968 * lib/argp-pvh.c: New file, from glibc.
37969 * lib/argp-xinl.c: New file, from glibc.
37971 2003-06-10 Simon Josefsson <jas@extundo.com>
37973 * modules/strchrnul: New file.
37975 2003-06-10 Simon Josefsson <jas@extundo.com>
37977 * modules/argp: New file.
37979 2003-06-10 Simon Josefsson <jas@extundo.com>
37981 * m4/strchrnul.m4: New file.
37983 2003-06-10 Simon Josefsson <jas@extundo.com>
37985 * lib/strchrnul.h: New file.
37986 * lib/strchrnul.c: New file.
37988 2003-06-10 Bruno Haible <bruno@clisp.org>
37990 * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
37992 2003-06-07 Karl Berry <karl@gnu.org>
37994 * config/config.{guess,sub}: update from prep.
37996 2003-06-07 Jim Meyering <jim@meyering.net>
37998 * modules/strtod: Use $(...) notation, not @...@ for
37999 AC_REPLACE'd variables.
38000 * modules/localcharset: Likewise.
38002 2003-06-07 Jim Meyering <jim@meyering.net>
38004 * lib/readtokens.h: Put `Free Software Foundation, Inc.'
38005 in place of my name in the copyright comment.
38006 Remove definition and uses of __P.
38009 * lib/stat.c: Don't declare xmalloc explicitly.
38010 Instead, include "xalloc.h".
38011 * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
38012 xrealloc, and xcalloc return values.
38013 * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
38015 * lib/xgetcwd.h: Remove definition/uses of PARAMS.
38017 2003-06-07 Bruno Haible <bruno@clisp.org>
38019 * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
38020 avoid AC_CONFIG_LINKS.
38021 * modules/fnmatch (Makefile.am): Use explicit creation rule for
38022 fnmatch.h, to avoid AC_CONFIG_LINKS.
38023 * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
38025 2003-06-07 Bruno Haible <bruno@clisp.org>
38027 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
38028 gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
38029 AC_CONFIG_LINKS. Needed to allow for a different name of the lib
38031 * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
38032 AC_CONFIG_LINKS. Needed to allow for a different name of the lib
38035 2003-06-06 Jim Meyering <jim@meyering.net>
38037 Merge from coreutils.
38038 * lib/same.c: (same_name): Declare *_basename locals to be `const'.
38039 Consolidate declarations and initializations of *_base* locals.
38041 Merge from coreutils.
38042 This avoids a core dump on systems without GNU putenv,
38043 when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
38044 * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
38045 (unsetenv): New static function, from GNU libc.
38046 (rpl_putenv): Use it.
38048 * lib/modechange.c: Remove trailing blanks.
38050 Merge from coreutils.
38051 * lib/fsusage.c: Remove declaration of statfs.
38052 It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
38054 * lib/posixtm.c: Include <stdbool.h> unconditionally.
38056 2003-06-06 Jim Meyering <jim@meyering.net>
38058 * lib/stdbool_.h: Renamed from stdbool.h.in.
38060 2003-06-06 Jim Meyering <jim@meyering.net>
38061 Bruno Haible <bruno@clisp.org>
38063 * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
38064 Adjust Makefile.am snippet not to redirect directly to target.
38065 Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
38067 2003-06-05 Paul Eggert <eggert@twinsun.com>
38069 * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
38070 mismatch, look in future quarters as well as past. This fixes a
38071 bug when processing fall-backwards gaps immediately after a long
38072 period of daylight-saving time.
38074 * lib/mktime.c: Assume freestanding C89 or better.
38075 (HAVE_LIMITS_H): Remove. Assume it's 1.
38076 (__P): Remove; not used.
38077 (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
38078 (mktime, not_equal_tm, print_tm, check_result,
38079 main): Use prototypes. Use const * where appropriate.
38080 (main): Fix typo in testing code that uncovered by above changes.
38081 (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
38083 2003-06-04 Paul Eggert <eggert@twinsun.com>
38085 * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H. Check for
38086 locale.h, localeconv. This merges changes from coreutils.
38088 * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
38089 It can be removed after the next Autoconf is released.
38090 * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
38093 2003-06-04 Paul Eggert <eggert@twinsun.com>
38095 * lib/mktime.c: Fix Debian bug 177940
38096 <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
38097 (localtime_offset): Now long int, not time_t, because we want it
38098 to be guaranteed to be signed. All uses changed.
38099 (__mktime_internal): If overflow would occur when adding offset,
38102 Merge 'human' changes from coreutils. Rewrite to support
38103 locale-specific notations like thousands separators.
38104 * lib/human.c: Simplify authorship notice.
38105 Include human.h immediately after config.h.
38106 <sys/types.h>, <stdio.h>: Do not include; no longer needed.
38107 <limits.h>: Do not include, since human.h does.
38108 (SIZE_MAX, UINTMAX_MAX): New macros.
38109 <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
38110 <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
38111 (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
38112 (power_letter): Renamed from suffixes.
38113 (generate_suffix_backwards): Remove.
38114 (adjust_value): Now takes int style (because of human.h changes)
38115 and long double value (for greater precision on some platforms).
38116 (group_number): New function.
38117 (human_readable): Use it. Use integer options, not enum.
38118 Put the options before the sizes in the arg list.
38119 Support all the new options.
38120 The old human_readable function has been removed;
38121 use inttostr.h instead.
38122 (human_readable, default_block_size, humblock):
38123 Use uintmax_t, not int, for block sizes.
38124 (human_readable_inexact, block_size_types): Remove.
38125 (block_size_opts): New constant.
38126 (human_options): Renamed from human_block_size, with new signature
38127 that allows block sizes up to UINTMAX_MAX. All callers changed.
38128 * lib/human.h: Add copyright and authorship notice.
38129 Include <limits.h> and <stdbool.h> unconditionally.
38130 (PARAMS): Remove. All uses removed.
38131 (LONGEST_HUMAN_READABLE): Add support for thousands separator.
38132 (enum human_inexact_style): Remove tag; now a nameless enum.
38133 (human_floor, human_ceiling, human_round_to_even): Now have
38134 values 2, 0, 1 rather than -1, 1, 0.
38135 (human_group_digits, human_suppress_point_zero, human_autoscale,
38136 human_base_1024, human_SI, human_B): New constants.
38137 (human_readable_inexact, human_block_size): Remove.
38138 (human_readable): Size args are now uintmax_t, not int.
38139 (human_options): New decl.
38141 * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
38142 unnecessary now that we assume C89 or better. This change
38143 imported from coreutils.
38145 * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
38146 arbitrarily. This is the same patch as 2003-05-28, but it got lost
38147 in the 2003-05-30 sync from glibc.
38149 .h files should stand alone, but we shouldn't include <sys/types.h>
38150 if we can get away with just <stddef.h>.
38152 * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
38153 malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
38154 rather than <sys/types.h>, as we merely need size_t.
38155 * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
38157 * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
38158 Include <stdio.h>, to get FILE.
38159 * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
38160 memcasecmp.h has included <stddef.h> and all we need is size_t.
38161 * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
38162 our interface, instead of including <sys/types.h>
38164 2003-06-04 Paul Eggert <eggert@twinsun.com>
38166 * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
38167 now, as glibc mktime is buggy on non-glibc systems.
38169 2003-06-03 Karl Berry <karl@gnu.org>
38171 * config/config.sub: update from prep.
38173 2003-06-02 Paul Eggert <eggert@twinsun.com>
38176 Fix some minor time-related bugs with POSIX time arguments.
38177 Some valid time stamps were being rejected (notably -1, and
38178 time stamps before 1900 on 64-bit hosts). And some invalid
38179 time stamps were being accepted, e.g. September 31.
38181 * lib/posixtm.h (posixtime): Return bool instead of time_t, so
38182 that we can return (time_t) -1 successfully.
38183 * lib/posixtm.c: Likewise.
38184 [HAVE_STDBOOL_H]: Include <stdbool.h>.
38185 (bool, false, true) [!HAVE_STDBOOL_H]: New type.
38186 (t): Remove static var.
38187 (year, posix_time_parse): Now takes struct tm * arg to modify, instead
38188 of static var. All uses changed.
38189 (year): Do not reject years before 1900; they can occur with
38191 (posix_time_parse): Do not check for out-of-range components;
38192 that is now the caller's responsibility, since our checks were
38193 only approximations.
38194 (posixtime): Use mktime to check for out-of-range components,
38195 since it knows them exactly.
38196 If mktime returns (time_t) -1, check whether an error actually occurred
38197 by invoking localtime on -1.
38198 (main) [TEST_POSIXTIME]: Check for input data errors, and report
38199 posixtime failures better.
38200 Improve the test data (in comments only).
38202 2003-06-02 Karl Berry <karl@gnu.org>
38204 * config/mkinstalldirs (version): new variable.
38205 (--version): new option.
38206 (usage): improve message.
38208 2003-05-30 Karl Berry <karl@gnu.org>
38210 * lib/mktime.c: update from libc.
38212 2003-05-30 Bruno Haible <bruno@clisp.org>
38214 * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
38215 * config/config.rpath: Upgrade to gettext-0.12.1.
38217 2003-05-30 Bruno Haible <bruno@clisp.org>
38219 * m4/gettext.m4: Upgrade to gettext-0.12.1.
38220 * m4/nls.m4: New file, from gettext-0.12.1.
38221 * m4/po.m4: New file, from gettext-0.12.1.
38222 * m4/progtest.m4: Upgrade to gettext-0.12.1.
38224 2003-05-30 Bruno Haible <bruno@clisp.org>
38226 * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
38227 * lib/localcharset.h: Likewise.
38228 * lib/localcharset.c: Likewise.
38230 2003-05-29 Karl Berry <karl@gnu.org>
38232 * config/config.rpath: update from gettext.
38234 2003-05-28 Paul Eggert <eggert@twinsun.com>
38236 Assume the headers required for C89 freestanding compilers.
38237 * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
38238 * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
38239 * m4/human.m4 (gl_HUMAN): Likewise.
38240 * m4/pathmax.m4 (gl_PATHMAX): Likewise.
38241 * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
38242 * m4/userspec.m4 (gl_USERSPEC): Likewise.
38243 * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
38244 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
38245 * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
38247 2003-05-28 Paul Eggert <eggert@twinsun.com>
38249 Assume the headers required for C89 freestanding compilers.
38250 * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
38251 lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
38252 lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
38253 * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
38254 lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
38255 define, since <limits.h> is guaranteed to do that.
38256 * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
38257 * lib/exclude.c: Include <stdbool.h> unconditionally.
38258 * lib/tempname.c: Include <stddef.h> unconditionally.
38259 * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
38260 * lib/modechange.c, rpmatch.c (NULL): Don't define, since
38261 <stddef.h> does that.
38262 * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
38263 * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
38264 * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
38266 * lib/xstrtol.c: Likewise.
38267 * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
38268 * lib/savedir.c: Include <stddef.h> instead of defining NULL.
38270 * lib/addext.c (addext): Use assignment rather than cast, to avoid
38271 warnings on some platforms.
38273 * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
38276 2003-05-26 Jim Meyering <jim@meyering.net>
38278 Merge in a change from coreutils:
38279 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
38280 that is guaranteed to be `no'. Use `no_such_member' to indicate
38281 that condition, rather than `-1' which is slightly misleading.
38282 Change the name of the cache variable to have the gl_ prefix.
38283 Prompted by a patch from Richard Dawe for DJGPP.
38285 2003-05-24 Karl Berry <karl@gnu.org>
38287 * config/config.guess: update from prep.
38289 2003-05-22 Karl Berry <karl@gnu.org>
38291 * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
38293 2003-05-20 Karl Berry <karl@gnu.org>
38295 * config/config.guess: update from prep.
38297 2003-05-18 Karl Berry <karl@gnu.org>
38299 * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
38300 might actually be set by the user.
38302 * config/depcomp, install-sh, mdate-sh: update from automake.
38304 2003-05-17 Bruno Haible <bruno@clisp.org>
38306 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
38307 invalid expansion for AC_EGREP_CPP.
38308 * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
38309 * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
38310 Suggested by Akim Demaille <akim@epita.fr> in
38311 http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
38313 2003-05-12 Jim Meyering <jim@meyering.net>
38315 * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
38316 the space-padded-by-default conversion specifiers, %e, %k, %l.
38318 2003-05-12 Bruno Haible <bruno@clisp.org>
38320 * lib/linebreak.c (iconv_string_length): Don't return -1 just because
38321 the string is longer than 4 KB.
38323 2003-05-11 Karl Berry <karl@gnu.org>
38325 * config/config.{guess,sub}: update from prep.
38327 2003-05-09 Bruno Haible <bruno@clisp.org>
38329 * modules/error: Add m4/strerror_r.m4 to file list.
38331 2003-05-03 Bruno Haible <bruno@clisp.org>
38333 Upgrade to Unicode-4.0.
38334 * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
38335 U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
38336 U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
38337 U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
38338 from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
38339 (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
38340 of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
38341 Change width of U+E0100..U+E01EF from 1 to 0.
38343 2003-04-25 Jim Meyering <jim@meyering.net>
38345 * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
38346 of type size_t, not int.
38348 2003-04-25 Bruno Haible <bruno@clisp.org>
38350 * lib/copy-file.c: Include <stddef.h>, for size_t.
38352 2003-04-21 Paul Eggert <eggert@twinsun.com>
38354 * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
38355 code which expansion is under static control. Patch imported from
38356 Akim Demaille's patch to Bison; see
38357 <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
38359 2003-04-14 Bruno Haible <bruno@clisp.org>
38361 * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
38363 2003-04-11 Jim Meyering <jim@meyering.net>
38365 Merge changes from Coreutils.
38367 2003-03-22 Jim Meyering <jim@meyering.net>
38369 * lib/strftime.c (widen): Cast alloca return value to proper type.
38371 2003-01-19 Ulrich Drepper <drepper@redhat.com>
38374 * lib/strftime.c (my_strftime): Handle very large width
38375 specifications for numeric values correctly. Improve checks for
38378 2003-01-19 Jim Meyering <jim@meyering.net>
38380 * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
38382 (nl_get_alt_digit) [! defined my_strftime]: Define.
38383 (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
38384 _nl_get_alt_digit and _nl_get_walt_digit.
38386 * lib/strftime.c (my_strftime): Merge in locale-related changes from
38387 libc. These changes have no effect outside of _LIBC.
38389 2003-04-10 Bruno Haible <bruno@clisp.org>
38391 * modules/findprog: New file.
38392 * MODULES.html.sh (func_all_modules): Add it.
38394 2003-04-10 Bruno Haible <bruno@clisp.org>
38396 * m4/findprog.m4: New file.
38397 * m4/eaccess.m4: New file.
38399 2003-04-10 Bruno Haible <bruno@clisp.org>
38401 * lib/findprog.h: New file, from GNU gettext.
38402 * lib/findprog.c: New file, from GNU gettext.
38404 2003-04-05 Jim Meyering <jim@meyering.net>
38406 Merge changes from Coreutils.
38408 * lib/exclude.h (PARAMS): Remove definition and uses.
38409 * lib/exclude.c: Remove uses of `PARAMS'.
38411 * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
38412 Add test-cases for DOS filenames. Declare program_name.
38413 (main): Set up program_name. Patch by Rich Dawe.
38415 * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
38417 Use mntctl's return value to drive the entry-processing loop, since
38418 we can't rely on the value of the vmt_length member in the last
38419 entry. On some systems doing so could result in exhausting
38420 virtual memory. Based in part on a patch from Mike Jetzer.
38422 2003-04-04 Bruno Haible <bruno@clisp.org>
38424 * modules/linebreak: New file.
38425 * MODULES.html.sh (func_all_modules): Add it.
38427 2003-04-04 Bruno Haible <bruno@clisp.org>
38429 * m4/linebreak.m4: New file.
38431 2003-04-04 Bruno Haible <bruno@clisp.org>
38433 * lib/linebreak.h: New file, from GNU gettext.
38434 * lib/linebreak.c: New file, from GNU gettext with slight
38436 * lib/lbrkprop.h: New file, from GNU gettext.
38438 2003-04-03 Bruno Haible <bruno@clisp.org>
38440 * modules/utf8-ucs4: New file.
38441 * modules/utf16-ucs4: New file.
38442 * modules/ucs4-utf8: New file.
38443 * modules/ucs4-utf16: New file.
38444 * MODULES.html.sh (func_all_modules): Add them.
38446 2003-04-03 Bruno Haible <bruno@clisp.org>
38448 * m4/utf-ucs4.m4: New file.
38449 * m4/ucs4-utf.m4: New file.
38451 2003-04-03 Bruno Haible <bruno@clisp.org>
38453 * lib/utf8-ucs4.h: New file, from GNU gettext.
38454 * lib/utf16-ucs4.h: New file, from GNU gettext.
38455 * lib/ucs4-utf8.h: New file, from GNU gettext.
38456 * lib/ucs4-utf16.h: New file, from GNU gettext.
38458 2003-04-02 Bruno Haible <bruno@clisp.org>
38460 * modules/binary-io: New file.
38461 * MODULES.html.sh (func_all_modules): Add it.
38463 2003-04-02 Bruno Haible <bruno@clisp.org>
38465 * lib/binary-io.h: New file, from GNU gettext.
38467 2003-04-01 Bruno Haible <bruno@clisp.org>
38469 * modules/pathname: New file.
38470 * MODULES.html.sh (func_all_modules): Add it.
38472 2003-04-01 Bruno Haible <bruno@clisp.org>
38474 * lib/pathname.h: New file, from GNU gettext.
38475 * lib/concatpath.c: New file, from GNU gettext.
38477 2003-03-30 Bruno Haible <bruno@clisp.org>
38479 * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
38481 2003-03-30 Bruno Haible <bruno@clisp.org>
38483 * lib/copy-file.c (copy_file_preserving): Don't set owner if the
38484 function chown() doesn't exist.
38486 2003-03-28 Bruno Haible <bruno@clisp.org>
38488 * modules/copy-file: New file.
38489 * MODULES.html.sh (func_all_modules): Add it.
38491 2003-03-28 Bruno Haible <bruno@clisp.org>
38493 * m4/copy-file.m4: New file.
38495 2003-03-28 Bruno Haible <bruno@clisp.org>
38497 * lib/copy-file.h: New file, from GNU gettext.
38498 * lib/copy-file.c: New file, from GNU gettext.
38500 2003-03-18 Jim Meyering <jim@meyering.net>
38502 * lib/quote.c (quote_n): Fix typo in comment.
38504 2003-03-18 Bruno Haible <bruno@clisp.org>
38506 * m4/onceonly.m4: Use m4_defn instead of defn, for better error
38508 * m4/onceonly_2_57.m4: Likewise.
38510 2003-03-17 Bruno Haible <bruno@clisp.org>
38512 * m4/onceonly.m4: Require autoconf 2.54 or newer.
38513 (m4_quote): Remove macro.
38514 * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
38516 2003-03-14 Jim Meyering <jim@meyering.net>
38518 Merge changes from Coreutils.
38519 * lib/obstack.h (obstack_object_size): Declare temporary, __o,
38520 to be const, in order to avoid warnings.
38521 (obstack_room): Likewise.
38522 (obstack_empty_p): Likewise.
38524 2003-03-14 Bruno Haible <bruno@clisp.org>
38526 * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
38527 AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
38529 2003-03-13 Paul Eggert <eggert@twinsun.com>
38531 Merge changes from Bison.
38532 * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
38533 (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
38534 when compiling Bison 1.875's `bitset bset = obstack_alloc
38535 (bobstack, bytes);'. Problem reported by Nelson H. F. Beebe.
38536 * lib/hash.c: Include <stdbool.h> unconditionally.
38538 2003-03-13 Paul Eggert <eggert@twinsun.com>
38540 * m4/onceonly.m4 (m4_quote): New macro.
38541 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
38542 Quote AC_FOREACH variable-expansions properly.
38544 2003-03-13 Paul Eggert <eggert@twinsun.com>
38546 * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
38548 2003-03-09 Paul Eggert <eggert@twinsun.com>
38550 * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
38551 Reported by Bruce Becker; see:
38552 http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
38554 2003-03-03 Paul Eggert <eggert@twinsun.com>
38555 Bruno Haible <bruno@clisp.org>
38557 * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
38558 Reported by John Hughes, see
38559 http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
38561 2003-02-20 Bruno Haible <bruno@clisp.org>
38563 * MODULES.html.sh (func_all_modules): Add poll.
38565 2003-02-19 Paolo Bonzini <bonzini@gnu.org>
38567 * modules/poll: New file.
38569 2003-02-19 Paolo Bonzini <bonzini@gnu.org>
38571 * lib/poll_.h: New file.
38572 * lib/poll.c: New file.
38574 2003-02-19 Paolo Bonzini <bonzini@gnu.org>
38576 * m4/poll.m4: New file.
38578 2003-02-18 Paolo Bonzini <bonzini@gnu.org>
38580 * modules/mathl: New file.
38582 2003-02-18 Paolo Bonzini <bonzini@gnu.org>
38584 * lib/mathl.h: New file.
38585 * lib/acosl.c: New file.
38586 * lib/asinl.c: New file.
38587 * lib/atanl.c: New file.
38588 * lib/ceill.c: New file.
38589 * lib/cosl.c: New file.
38590 * lib/expl.c: New file.
38591 * lib/floorl.c: New file.
38592 * lib/frexpl.c: New file.
38593 * lib/ldexpl.c: New file.
38594 * lib/logl.c: New file.
38595 * lib/sincosl.c: New file.
38596 * lib/sinl.c: New file.
38597 * lib/sqrtl.c: New file.
38598 * lib/tanl.c: New file.
38599 * lib/trigl.c: New file.
38600 * lib/trigl.h: New file.
38602 2003-02-18 Paolo Bonzini <bonzini@gnu.org>
38604 * m4/mathl.m4: New file.
38606 2003-02-18 Bruno Haible <bruno@clisp.org>
38608 * MODULES.html.sh (func_all_modules): Add mathl.
38610 2003-02-17 Bruno Haible <bruno@clisp.org>
38612 * modules/mkdtemp: New module.
38613 * MODULES.html.sh (func_all_modules): Add it.
38615 2003-02-17 Bruno Haible <bruno@clisp.org>
38617 * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
38619 2003-02-17 Bruno Haible <bruno@clisp.org>
38621 * lib/mkdtemp.h: New file, from GNU gettext.
38622 * lib/mkdtemp.c: New file, from GNU gettext.
38624 2003-02-02 Jim Meyering <jim@meyering.net>
38626 * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
38629 2003-01-31 Bruno Haible <bruno@clisp.org>
38631 * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
38633 * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
38635 * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
38637 * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
38640 2003-01-31 Bruno Haible <bruno@clisp.org>
38642 * lib/rename.c: #undef rename before defining rpl_rename.
38643 * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
38645 2003-01-30 Bruno Haible <bruno@clisp.org>
38647 * modules/vasnprintf, modules/vasprintf: New modules.
38648 * MODULES.html.sh (func_all_modules): Add them.
38650 2003-01-30 Bruno Haible <bruno@clisp.org>
38652 * m4/signed.m4: New file, from GNU gettext.
38653 * m4/longdouble.m4: New file, from GNU gettext.
38654 * m4/wchar_t.m4: New file, from GNU gettext.
38655 * m4/wint_t.m4: New file, from GNU gettext.
38656 * m4/vasnprintf.m4: New file.
38657 * m4/vasprintf.m4: New file.
38659 2003-01-30 Bruno Haible <bruno@clisp.org>
38661 * lib/printf-args.h: New file, from GNU gettext.
38662 * lib/printf-args.c: New file, from GNU gettext.
38663 * lib/printf-parse.h: New file, from GNU gettext.
38664 * lib/printf-parse.c: New file, from GNU gettext.
38665 * lib/vasnprintf.h: New file, from GNU gettext.
38666 * lib/vasnprintf.c: New file, from GNU gettext.
38667 * lib/asnprintf.c: New file, from GNU gettext.
38668 * lib/vasprintf.h: New file, from GNU gettext with modifications.
38669 * lib/vasprintf.c: New file, from GNU gettext.
38670 * lib/asprintf.c: New file, from GNU gettext.
38672 2003-01-29 Bruno Haible <bruno@clisp.org>
38674 * modules/stpncpy: New module.
38675 * MODULES.html.sh (func_all_modules): Add it.
38677 2003-01-29 Bruno Haible <bruno@clisp.org>
38679 * m4/stpncpy.m4: New file.
38681 2003-01-29 Bruno Haible <bruno@clisp.org>
38683 * lib/stpncpy.h: New file, from GNU gettext with modifications.
38684 * lib/stpncpy.c: New file, from GNU gettext with modifications.
38686 2003-01-28 Bruno Haible <bruno@clisp.org>
38688 * modules/c-ctype: New module.
38689 * MODULES.html.sh (func_all_modules): Add it.
38691 2003-01-28 Bruno Haible <bruno@clisp.org>
38693 * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
38695 * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
38698 2003-01-27 Bruno Haible <bruno@clisp.org>
38700 * modules/xsetenv: New module.
38701 * MODULES.html.sh (func_all_modules): Add it.
38703 2003-01-27 Bruno Haible <bruno@clisp.org>
38705 * lib/xsetenv.h: New file, from GNU gettext.
38706 * lib/xsetenv.c: New file, from GNU gettext.
38708 2003-01-23 Jim Meyering <jim@meyering.net>
38710 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
38711 from working on systems without dirfd (at least Irix and OSF1/Tru64).
38713 2003-01-23 Bruno Haible <bruno@clisp.org>
38715 * modules/minmax: New module.
38716 * MODULES.html.sh (func_all_modules): Add it.
38718 2003-01-23 Bruno Haible <bruno@clisp.org>
38720 * lib/minmax.h: New file, from GNU gettext, with comments from Paul
38723 2003-01-22 Bruno Haible <bruno@clisp.org>
38725 * modules/exit: New module.
38726 * MODULES.html.sh (func_all_modules): Add it.
38728 2003-01-22 Bruno Haible <bruno@clisp.org>
38730 * lib/exit.h: New file, from GNU gettext.
38732 2003-01-19 Bruno Haible <bruno@clisp.org>
38734 * gnulib-tool: Recognize option --extract-maintainer.
38735 (func_get_maintainer): New function.
38736 * modules/*: Add Maintainer entry.
38738 2003-01-16 Jim Meyering <jim@meyering.net>
38740 * m4/regex.m4: The `regex' struct is both input and output.
38741 Initialize it before each use. Patch by Tim Waugh.
38743 2003-01-16 Bruno Haible <bruno@clisp.org>
38745 * MODULES.html.sh: Add a table of contents. Add the module name as
38746 leftmost column. Add hyperlinks.
38748 2003-01-15 Bruno Haible <bruno@clisp.org>
38750 * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
38752 2003-01-15 Bruno Haible <bruno@clisp.org>
38754 * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
38755 * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
38758 2003-01-15 Bruno Haible <bruno@clisp.org>
38760 * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
38762 2003-01-15 Bruno Haible <bruno@clisp.org>
38764 * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
38765 * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
38767 2003-01-14 Jim Meyering <jim@meyering.net>
38769 * lib/same.c (same_name): Tweak a comment.
38771 2003-01-14 Bruno Haible <bruno@clisp.org>
38773 * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
38774 when a string comparison is sufficient.
38776 2003-01-14 Bruno Haible <bruno@clisp.org>
38778 * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
38781 2003-01-14 Bruno Haible <bruno@clisp.org>
38783 * lib/hash-pjw.c: Add comment about low quality of this function.
38785 2003-01-13 Bruno Haible <bruno@clisp.org>
38787 * modules/stpcpy: Distribute lib/stpcpy.h.
38788 * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
38790 2003-01-13 Bruno Haible <bruno@clisp.org>
38792 * modules/*: Add a description.
38793 * modules/strpbrk: Fix Makefile.am snippet.
38794 * modules/strtoimax: Fix dependencies.
38795 * modules/strtoumax: Likewise.
38797 2003-01-13 Bruno Haible <bruno@clisp.org>
38799 * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
38800 * modules/alloca (Makefile.am): All object files depend on alloca.h.
38801 * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
38803 2003-01-13 Bruno Haible <bruno@clisp.org>
38805 * gnulib-tool (func_create_testdir): Store config/* files in the main
38807 * config.rpath: Move to ...
38808 * config/config.rpath: ... here.
38809 * modules/gettext: Contains config/config.rpath, not config.rpath.
38810 * modules/iconv: Likewise.
38812 2003-01-12 Paul Eggert <eggert@twinsun.com>
38814 Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
38815 to avoid collisions with libcurses and libreadline.
38817 * m4/getstr.m4: Remove.
38818 * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
38820 2003-01-12 Paul Eggert <eggert@twinsun.com>
38822 Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
38823 to avoid collisions with libcurses and libreadline.
38825 * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
38826 * lib/getstr.h, getstr.c: Remove.
38827 * lib/getline.c: Include "getline.h", to check interface.
38828 Move body of old getstr.c here: this defines MIN_CHUNK and
38829 declares getdelim2, which is renamed from getstr.
38830 (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
38832 * lib/linebuffer.c (readlinebuffer): Renamed from readline.
38834 * lib/linebuffer.h: Likewise.
38835 (readline): Remove backward-compatibility macro.
38837 2003-01-12 Paul Eggert <eggert@twinsun.com>
38839 Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
38840 to avoid collisions with libcurses and libreadline.
38842 * MODULES.html.sh: Remove getstr.
38843 * modules/getline: Depend on unlocked-io, not getstr.
38845 2003-01-12 Jim Meyering <jim@meyering.net>
38847 * lib/makepath.c: Don't test HAVE_ERRNO_H. It's not necessary.
38849 2003-01-10 Bruno Haible <bruno@clisp.org>
38851 * modules/alloca: Change Makefile.am requirements. Simplify Include
38852 requirements. Add lib/alloca_.h to file list.
38854 2003-01-10 Bruno Haible <bruno@clisp.org>
38856 * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
38858 2003-01-10 Bruno Haible <bruno@clisp.org>
38860 * lib/alloca_.h: New file.
38861 * lib/getdate.y: Unconditionally include alloca.h.
38862 * lib/makepath.c: Likewise.
38863 * lib/setenv.c: Likewise.
38864 * lib/userspec.c: Likewise.
38866 2003-01-09 Karl Berry <karl@gnu.org>
38868 * MODULES.html.sh: include `dirname $0` in PATH, to find
38871 2003-01-09 Bruno Haible <bruno@clisp.org>
38873 * modules/stdbool: Change configure.ac, Makefile.am requirements.
38874 Simplify Include requirements. Add lib/stdbool.h.in to file list.
38876 2003-01-09 Bruno Haible <bruno@clisp.org>
38878 * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
38880 2003-01-09 Bruno Haible <bruno@clisp.org>
38882 * lib/stdbool.h.in: New file.
38884 2003-01-09 Bruno Haible <bruno@clisp.org>
38886 * gnulib-tool (func_all_modules): Ignore files ending in ~.
38887 * MODULES.html.sh: Likewise.
38889 2003-01-08 Jim Meyering <jim@meyering.net>
38891 * lib/full-write.c: Undefine and define-away `const' after inclusion
38892 of errno.h, not before. Suggestion from Bruno Haible.
38894 2003-01-08 Bruno Haible <bruno@clisp.org>
38896 * modules/full-read: Depend on full-write.
38898 2003-01-08 Bruno Haible <bruno@clisp.org>
38900 * lib/safe-read.c: Include specification header first, to ensure its
38902 * lib/full-write.c: Likewise.
38904 2003-01-07 Jim Meyering <jim@meyering.net>
38906 * lib/full-write.c: Rework so that it may serve to define full_read,
38908 * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
38910 2003-01-07 Bruno Haible <bruno@clisp.org>
38912 * lib/strtoimax.c: Include <stdint.h> as an alternative to
38914 * lib/xstrtol.h: Likewise.
38915 * lib/xstrtoimax.c: Likewise.
38916 * lib/xstrtoumax.c: Likewise.
38917 * lib/human.h: Likewise.
38919 * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
38920 on systems that have <inttypes.h> but not <stdint.h>.
38922 2003-01-07 Bruno Haible <bruno@clisp.org>
38924 * MODULES.html.sh: Add copyright notice.
38925 (missed_files): Omit CVS directory entries.
38926 (func_module): Make it work with sed-3.02.
38927 * MODULES.txt: Remove file.
38929 2003-01-06 Jim Meyering <jim@meyering.net>
38931 * lib/version-etc.c: Update year in translatable copyright string.
38933 2003-01-03 Karl Berry <karl@gnu.org>
38935 * config/config.{guess,sub}: update from prep.
38937 2003-01-02 Karl Berry <karl@gnu.org>
38939 * doc/COPYING.DOC: belatedly updated to 1.2.
38941 2003-01-01 Karl Berry <karl@gnu.org>
38943 * gnulib-tool (func_verify_module): report module name $module in
38944 error message, not $1.
38945 * gnulib-tool (create-testdir): don't complain if destdir couldn't
38946 be created, only if it doesn't exist.
38947 * gnulib-tool (last_checkin_date): don't expand the $Date here.
38949 2002-12-31 Paul Eggert <eggert@twinsun.com>
38951 * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
38953 2002-12-31 Paul Eggert <eggert@twinsun.com>
38955 * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
38956 memcmp if strcoll doesn't work.
38958 2002-12-31 Bruno Haible <bruno@clisp.org>
38960 * lib/utime.c (utime_null): No need to call ftruncate if the file was
38963 2002-12-31 Bruno Haible <bruno@clisp.org>
38965 * lib/memcoll.c (STRCOLL): New macro.
38968 2002-12-31 Bruno Haible <bruno@clisp.org>
38970 * lib/localcharset.h: New file.
38971 * lib/localcharset.c: Include it.
38972 * lib/unicodeio.c: Likewise.
38974 2002-12-31 Bruno Haible <bruno@clisp.org>
38976 * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
38977 * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
38979 2002-12-31 Bruno Haible <bruno@clisp.org>
38981 * lib/getline.h: Include <stddef.h>, for size_t.
38983 * lib/unicodeio.h: Include <stddef.h>, for size_t.
38984 * lib/unicodeio.c: Don't include <stddef.h>.
38986 2002-12-31 Bruno Haible <bruno@clisp.org>
38988 * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
38991 2002-12-24 Karl Berry <karl@gnu.org>
38993 * config/config.guess: update from prep.
38995 2002-12-24 Bruno Haible <bruno@clisp.org>
38997 General infrasructure.
38998 * m4/README: Rewritten.
38999 * m4/onceonly.m4: New file.
39000 * m4/onceonly_2_57.m4: New file.
39003 * m4/atexit.m4: New file.
39006 * m4/strtod.m4: New file.
39009 * m4/strtol.m4: New file.
39012 * m4/strtoul.m4: New file.
39015 * m4/memchr.m4: New file.
39018 * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
39019 (jm_FUNC_MEMCMP): Invoke it.
39022 * m4/memcpy.m4: New file.
39025 * m4/memmove.m4: New file.
39028 * m4/memset.m4: New file.
39031 * m4/strcspn.m4: New file.
39034 * m4/strpbrk.m4: New file.
39037 * m4/strstr.m4: New file.
39040 * m4/strerror.m4: New file.
39043 * m4/mktime.m4: Renamed from jm-mktime.m4.
39044 (gl_PREREQ_MKTIME): New macro.
39045 (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
39048 * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
39049 (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
39050 Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
39053 * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
39054 (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
39055 Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
39058 * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
39059 * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
39060 Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
39062 (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
39065 * m4/xalloc.m4: New file.
39068 * m4/alloca.m4: New file.
39071 * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
39072 (jm_FUNC_PUTENV): Invoke it.
39075 * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
39076 (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
39077 when invoked twice.
39078 (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
39082 * m4/memrchr.m4: New file.
39085 * m4/stpcpy.m4: New file.
39088 * m4/strcase.m4: New file.
39091 * m4/strdup.m4: New file.
39094 * m4/strnlen.m4: New file.
39097 * m4/strndup.m4: New file.
39100 * m4/xstrtod.m4: New file.
39103 * m4/xstrtol.m4: New file.
39106 * m4/getdate.m4: New file.
39108 Module unlocked-io.
39109 * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
39110 (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
39111 * m4/jm-glibc-io.m4n: Remove file.
39113 Module long-options.
39114 * m4/long-options.m4: New file.
39117 * m4/md5.m4: New file.
39120 * m4/sha.m4: New file.
39123 * m4/getstr.m4: New file.
39126 * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
39127 (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
39128 <sys/types.h>, for size_t. Use the function name gnu_getline, not
39129 simply getline. Infoke gl_PREREQ_GETLINE.
39132 * m4/obstack.m4: New file.
39135 * m4/hash.m4: New file.
39138 * m4/readtokens.m4: New file.
39141 * m4/strverscmp.m4: New file.
39144 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
39148 * m4/strtoll.m4: New file.
39151 * m4/strtoull.m4: New file.
39154 * m4/strtoimax.m4: New file.
39157 * m4/strtoumax.m4: New file.
39160 * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
39161 jm_AC_PREREQ_XSTRTOIMAX.
39162 Moved the strtol prerequisites to strtol.m4.
39163 Moved the strtoll prerequisites to strtoll.m4.
39164 Moved the strtoimax prerequisites to strtoimax.m4.
39167 * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
39168 jm_AC_PREREQ_XSTRTOUMAX.
39169 Moved the strtoul prerequisites to strtoul.m4.
39170 Moved the strtoull prerequisites to strtoull.m4.
39171 Moved the strtoumax prerequisites to strtoumax.m4.
39174 * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
39175 (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
39178 * m4/dup2.m4: New file.
39181 * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
39182 (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
39185 * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
39186 (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
39188 Module gettimeofday.
39189 * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
39190 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
39191 gl_PREREQ_GETTIMEOFDAY.
39194 * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
39195 (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
39198 * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
39199 (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
39200 jm_AC_TYPE_UINTMAX_T.
39201 (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
39204 * m4/stat.m4 (gl_PREREQ_STAT): New macro.
39205 (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
39208 * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
39209 (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
39212 * m4/timespec.m4 (gl_TIMESPEC): New macro.
39213 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
39214 * m4/st_mtim.m4: Indentation.
39217 * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
39218 (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
39219 gl_PREREQ_NANOSLEEP.
39222 * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
39223 (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
39224 (gl_REGEX): New macro.
39227 * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
39228 (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
39231 * m4/rmdir.m4: New file.
39234 * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
39235 * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
39236 (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
39239 * m4/dirname.m4: New file.
39242 * m4/getopt.m4: New file.
39244 Module unistd-safer.
39245 * m4/unistd-safer.m4: New file.
39248 * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
39250 (gl_PREREQ_FNMATCH_EXTRA): New macro.
39251 (gl_FUNC_FNMATCH_POSIX): New macro.
39252 (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
39253 gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
39257 * m4/exclude.m4: New file.
39260 * m4/human.m4: New file.
39266 * m4/backupfile.m4: New file.
39267 * m4/d-ino.m4: Indentation.
39270 * m4/fsusage.m4 (gl_FSUSAGE): New macro.
39271 (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
39272 (gl_PREREQ_FSUSAGE_EXTRA): New macro.
39275 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
39279 * m4/euidaccess.m4: New file.
39282 * m4/file-type.m4: New file.
39285 * m4/fileblocks.m4: New file.
39288 * m4/filemode.m4: New file.
39291 * m4/isdir.m4: New file.
39294 * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
39295 (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
39298 * m4/makepath.m4: New file.
39301 * m4/modechange.m4: New file.
39304 * m4/mountlist.m4: New file.
39305 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
39308 Module path-concat.
39309 * m4/path-concat.m4: New file.
39312 * m4/pathmax.m4: New file.
39315 * m4/same.m4: New file.
39318 * m4/save-cwd.m4: New file.
39321 * m4/savedir.m4: New file.
39324 * m4/xgetcwd.m4: New file.
39325 * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
39328 * m4/xreadlink.m4: New file.
39331 * m4/safe-read.m4: New file.
39334 * m4/safe-write.m4: New file.
39337 * m4/closeout.m4: New file.
39339 Module stdio-safer.
39340 * m4/stdio-safer.m4: New file.
39343 * m4/getpass.m4: New file.
39346 * m4/getugroups.m4: New file.
39348 Module group-member.
39349 * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
39350 (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
39353 * m4/idcache.m4: New file.
39356 * m4/userspec.m4: New file.
39359 * m4/clock_time.m4: New file.
39360 * m4/gettime.m4: New file.
39363 * m4/settime.m4: New file.
39366 * m4/posixtm.m4: New file.
39368 Module gethostname.
39369 * m4/gethostname.m4: New file.
39372 * m4/canon-host.m4: New file.
39375 * m4/codeset.m4: New file, from gettext-0.11.5.
39376 * m4/gettext.m4: New file, from gettext-0.11.5.
39377 * m4/glibc21.m4: New file, from gettext-0.11.5.
39378 * m4/iconv.m4: New file, from gettext-0.11.5.
39379 * m4/intdiv0.m4: New file, from gettext-0.11.5.
39380 * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
39381 * m4/inttypes.m4: New file, from gettext-0.11.5.
39382 * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
39383 * m4/isc-posix.m4: New file, from gettext-0.11.5.
39384 * m4/lcmessage.m4: New file, from gettext-0.11.5.
39385 * m4/lib-ld.m4: New file, from gettext-0.11.5.
39386 * m4/lib-link.m4: New file, from gettext-0.11.5.
39387 * m4/lib-prefix.m4: New file, from gettext-0.11.5.
39388 * m4/progtest.m4: New file, from gettext-0.11.5.
39389 * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
39390 * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
39391 * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
39393 Module localcharset.
39394 * m4/localcharset.m4: New file.
39396 Module hard-locale.
39397 * m4/hard-locale.m4: New file.
39400 * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
39402 * m4/mbrtowc.m4: Add comment.
39405 * m4/memcasecmp.m4: New file.
39408 * m4/memcoll.m4: New file.
39411 * m4/unicodeio.m4: New file.
39414 * m4/rpmatch.m4: New file.
39417 * m4/yesno.m4: New file.
39420 * m4/exitfail.m4: New file.
39423 * m4/c-stack.m4 (gl_C_STACK): New macro.
39424 (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
39427 * m4/error.m4 (gl_ERROR): New macro.
39428 (jm_PREREQ_ERROR): Use onceonly macros.
39431 * m4/fatal.m4: New file.
39434 * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
39435 (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
39437 Module getpagesize.
39438 * m4/getpagesize.m4: New file.
39440 Module getusershell.
39441 * m4/getusershell.m4: New file.
39444 * m4/physmem.m4: New file.
39447 * m4/posixver.m4: New file.
39450 * m4/quotearg.m4: New file.
39453 * m4/quote.m4: New file.
39456 * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
39459 * m4/sig2str.m4: New file.
39462 * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
39464 * m4/intmax_t.m4: New file.
39465 * m4/d-type.m4: Indentation.
39466 * m4/jm-macros.m4: Update.
39467 * m4/prereq.m4 (jm_PREREQ): Update.
39468 (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
39469 (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
39470 (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
39471 (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
39472 (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
39473 (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
39474 (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
39475 (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
39476 (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
39477 (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
39478 (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
39479 (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
39480 (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
39481 (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
39482 (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
39483 (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
39484 (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
39485 (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
39486 * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
39488 2002-12-24 Bruno Haible <bruno@clisp.org>
39490 * MODULES.txt: Update according to m4/ changes.
39493 * config.rpath: New file, from gettext-0.11.5.
39495 * modules/*: New module descriptions.
39496 * gnulib-tool: New file.
39497 * MODULES.html.sh: New file.
39499 2002-12-21 Karl Berry <karl@gnu.org>
39501 * doc/fdl.texi: update to version 1.2.
39503 2002-12-19 Karl Berry <karl@gnu.org>
39505 * config/config.guess: update from prep.
39507 2002-12-18 Bruno Haible <bruno@clisp.org>
39509 * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
39510 * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
39512 2002-12-17 Bruno Haible <bruno@clisp.org>
39514 * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
39515 stdlib.h, string.h.
39517 2002-12-17 Bruno Haible <bruno@clisp.org>
39519 * lib/canon-host.c (strdup): Remove unused declaration.
39521 * lib/fsusage.c: Include full_read.h.
39522 (get_fs_usage): Use full_read instead of safe_read.
39524 * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
39526 2002-12-12 Karl Berry <karl@gnu.org>
39528 * config/config.guess: update from prep.
39530 2002-12-11 Bruno Haible <bruno@clisp.org>
39532 * m4/setenv.m4: New file, from gettext-0.11.5.
39534 2002-12-11 Bruno Haible <bruno@clisp.org>
39536 * lib/setenv.h: Rewritten to cope with systems that have setenv() but
39538 * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
39541 2002-12-11 Bruno Haible <bruno@clisp.org>
39543 * setenv.c (alloca): Fall back to malloc.
39544 (freea): New macro.
39545 (setenv): Use freea() to free memory allocated with alloca().
39547 2002-11-13 Bruno Haible <bruno@clisp.org>
39549 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
39550 function declarations.
39551 * unsetenv.c (unsetenv): Likewise.
39553 2002-03-04 Bruno Haible <bruno@clisp.org>
39555 Portability to AIX 4.3.3.
39556 * unsetenv.c: New file, extracted from setenv.c.
39557 * setenv.c: Move the unsetenv() function to unsetenv.c.
39559 2001-12-20 Bruno Haible <bruno@clisp.org>
39561 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
39562 use malloc instead. For SunOS 4.
39564 2001-12-11 Bruno Haible <bruno@clisp.org>
39566 * setenv.c: Declare alloca.
39567 (compar_fn_t): New typedef.
39568 (KNOWN_VALUE, STORE_VALUE): Use it.
39570 * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
39573 2002-12-10 Paul Eggert <eggert@twinsun.com>
39575 Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
39576 * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
39577 Choose values that are less likely to collide with system fnmatch
39579 * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
39580 defined (e.g., a pure POSIX system).
39581 (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
39582 instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
39584 2002-12-06 Paul Eggert <eggert@twinsun.com>
39586 Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
39587 a pain in practice to deal with generated m4 files. This change
39588 goes together with the 2002-12-04 unlocked-io.h change in ../lib.
39590 * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
39591 and jm-glibc-io.m4, as they are no longer a special case.
39592 * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
39593 kludge and the auto-generation stuff. Check only whether the
39594 functions are declared, not whether they exist, since older hosts
39595 that don't declare the functions can't use the optimization anyway.
39597 2002-12-06 Jim Meyering <jim@meyering.net>
39599 * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
39601 Merge in changes from libc's misc/error.c, in preparation
39602 for the merge of gnulib's changes back into libc.
39604 * lib/error.c (_): Define only if not already defined.
39605 Move definition to follow all #include directives.
39606 Include unlocked-io.h only if !_LIBC.
39607 [_LIBC]: Include <libio/libioP.h>.
39608 [USE_IN_LIBIO]: Include <libio/iolibio.h>
39609 (fflush): Tweak definition to use INTUSE.
39612 2002-12-05 Paul Eggert <eggert@twinsun.com>
39614 * lib/alloca.c [defined emacs]: Include "lisp.h".
39615 (xalloc_die) [defined emacs]: New macro.
39616 (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
39617 [! defined emacs]: Include <xalloc.h>.
39618 (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
39619 (pointer): Typedef to POINTER_TYPE *.
39620 (malloc): Remove decl; we now always use xmalloc.
39621 (alloca): Use old-style definition, since Emacs needs this.
39622 Check for arithmetic overflow when computing combined size.
39624 2002-12-04 Paul Eggert <eggert@twinsun.com>
39626 Do not generate unlocked-io.h automatically, since it's easier to
39627 maintain it by hand.
39629 * lib/unlocked-io.h: New file, from GNU diffutils,
39630 but with proper copyright notice and attribution.
39631 * lib/gen-uio: Remove.
39632 * lib/Makefile.am: Add copyright notice.
39633 (libfetish_a_SOURCES): Add unlocked-io.h.
39634 (BUILT_SOURCES, all-local): Remove unlocked-io.h.
39635 (DISTCLEANFILES, io_functions): Remove macros.
39636 (EXTRA_DIST): Remove gen_uio.
39637 (unlocked-io.h): Remove rule.
39639 2002-12-04 Jim Meyering <jim@meyering.net>
39641 Reflect the fact that stat.c and lstat.c are no longer generated.
39642 * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
39643 (DISTCLEANFILES): Likewise.
39644 (EXTRA_DIST): Likewise.
39645 (all_local): Don't depend on stat.c or lstat.c.
39646 (stat.c, lstat.c): Remove rules.
39647 (EXTRA_DIST): Remove xstat.in.
39649 * lib/xstat.in: Remove file. Contents moved into stat.c.
39650 * lib/stat.c: New file. Contents mostly from xstat.in.
39651 * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
39652 * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
39654 * lib/safe-read.c: Rework so that it may serve to define safe_write,
39656 * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
39658 2002-12-03 Jim Meyering <jim@meyering.net>
39660 * lib/safe-read.c, safe-write.c: Change variable names and comments,
39661 but not semantics, to minimize the differences between these two files.
39662 (safe_read): Change comment to mention SAFE_READ_ERROR.
39664 * lib/safe-read.c (IS_EINTR): Define.
39665 (safe_read): Use IS_EINTR in place of in-function cpp directives.
39667 2002-12-02 Jim Meyering <jim@meyering.net>
39669 * lib/safe-read.c (EINTR): Define.
39670 (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
39671 (INT_MAX): Provide fallback.
39672 (safe_read): Rewrite to iterate IFF the read fails with EINTR.
39674 * lib/safe-read.h (SAFE_READ_ERROR): Define.
39676 2002-12-02 Bruno Haible <bruno@clisp.org>
39678 * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
39679 Define, taken from safe-read.c.
39680 (INT_MAX): Provide fallback.
39681 (safe_write): Rewrite to iterate IFF the write fails with EINTR.
39682 * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
39684 * lib/safe-read.c (EINTR): Remove definition.
39685 (safe_read): Don't use EINTR if it is absent.
39687 2002-12-01 Jim Meyering <jim@meyering.net>
39689 * lib/safe-read.c: (safe_read): Also exit the loop when read returns
39691 (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
39693 2002-11-27 Paul Eggert <eggert@twinsun.com>
39695 * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
39696 hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
39697 with `if (! (value < limit)) abort ();', for readability.
39699 2002-11-26 Karl Berry <karl@gnu.org>
39701 * lib/strdup.c: copy from libc again, with jim's ok.
39702 * lib/.cppi-disable: re-add strdup.c
39704 2002-11-25 Karl Berry <karl@gnu.org>
39706 * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
39707 instead of "strtol.c".
39709 2002-11-25 Karl Berry <karl@gnu.org>
39711 * config/install-sh: update from automake for variable quoting, $0 in
39714 * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
39715 * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
39718 2002-11-25 Jim Meyering <jim@meyering.net>
39720 * lib/mktime.c: Sync from libc, now that it has the latest fix.
39722 2002-11-24 Karl Berry <karl@gnu.org>
39724 * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
39725 regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
39727 2002-11-24 Jim Meyering <jim@meyering.net>
39729 Update from coreutils:
39731 * lib/mktime.c: Merge in changes from libc.
39733 Avoid a link-time failure on some Linux systems.
39734 * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
39736 (__mon_yday): Declare with the STATIC attribute.
39737 (__mktime_internal): Likewise.
39738 Based on a report from Greg Schafer.
39740 2002-11-23 Jim Meyering <jim@meyering.net>
39742 * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
39743 Use `unsigned', not `int', as type of index.
39745 * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
39747 * lib/fsusage.c: Remove unneeded parentheses around operands of
39750 2002-11-22 Paul Eggert <eggert@twinsun.com>
39752 * lib/quotearg.h: Allow multiple inclusion by surrounding with
39753 "#ifndef QUOTEARG_H_". Include <stddef.h>, for size_t,
39754 so that we can be included first.
39755 (PARAMS): Remove; we now assume C89 or later. All uses removed.
39756 * lib/quotearg.c: Include quotearg.h immediately after config.h.
39757 No need to include stddef.h or sys/types.h any more.
39758 Surround local include files with "", not "<>".
39759 Assume HAVE_LIMITS_H unconditionally, as we assume C89.
39760 Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
39761 HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
39762 (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
39763 (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
39764 (ISPRINT): Remove; no longer needed now that we assume C89.
39766 (clone_quoting_options, quotearg_buffer, quotearg_n_options):
39769 (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
39770 quotearg_char): Use SIZE_MAX rather than
39771 (size_t) -1 when we are talking about "infinity".
39773 (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
39775 2002-11-22 Paul Eggert <eggert@twinsun.com>
39777 * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
39778 hint that one should use `if (! x) abort ();' rather than `assert
39779 (x);', and anyway it's one less thing to worry about configuring.
39780 (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
39781 hash_rehash, hash_insert): Use abort rather than assert.
39783 2002-11-22 Bruno Haible <bruno@clisp.org>
39785 * lib/safe-read.h: Assume C89. Add comments.
39786 (safe_read): Change return type to size_t.
39787 * lib/safe-read.c (safe_read): Change return type to size_t. Handle
39788 byte counts > SSIZE_MAX correctly.
39789 * lib/safe-write.h: New file.
39790 * lib/safe-write.c: New file.
39791 * lib/full-read.h: New file.
39792 * lib/full-read.c: New file.
39793 * lib/full-write.h: Assume C89. Add comments.
39794 * lib/full-write.c: Include safe-write.h.
39795 (full_write): Rewritten to use safe_write.
39796 Suggested by Jim Meyering and Paul Eggert.
39798 2002-11-21 Jim Meyering <jim@meyering.net>
39800 * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
39802 Merge in changes from the coreutils.
39804 2002-09-25 Paul Eggert <eggert@twinsun.com>
39805 * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
39807 (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
39808 (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
39809 int. Work more efficiently if X is the same width as uintmax_t.
39810 Do not compare X to -1, to avoid bogus compiler warning.
39811 (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
39812 Don't assume that f_frsize and f_bsize are the same type.
39814 * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
39815 warning on FreeBSD.
39817 * lib/makepath.c (make_path): Restore umask *before* creating the final
39819 (make_path): Minor reformatting.
39821 * lib/xmalloc.c: Adjust to work with new autoconf macros,
39822 AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
39823 HAVE_MALLOC/HAVE_REALLOC.
39825 * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
39826 dummy ones. At least on GNU/Linux systems, `auto' means something
39828 From Michael Stone.
39830 2002-11-21 Bruno Haible <bruno@clisp.org>
39832 Remove case insensitive option matching.
39833 * lib/argmatch.h (argcasematch): Remove declaration.
39834 (ARGCASEMATCH): Remove macro.
39835 (__xargmatch_internal): Remove case_sensitive argument.
39836 (XARGMATCH): Update.
39837 (XARGCASEMATCH): Remove macro.
39838 * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
39839 case_sensitive argument.
39840 (argcasematch): Remove function.
39841 (__xargmatch_internal): Remove case_sensitive argument.
39842 (main): Use XARGMATCH instead of XARGCASEMATCH.
39844 * lib/xmalloc.c: Change compile-time error message. Add comment about
39845 required autoconf version.
39847 2002-11-20 Paul Eggert <eggert@twinsun.com>
39849 Merge argmatch cleanups from Bison. Assume C89.
39851 * lib/argmatch.c: Include config.h here, not in argmatch.h.
39852 Include stdlib.h, for EXIT_FAILURE.
39853 Always include <string.h>, since we assume C89.
39854 (EXIT_FAILURE): Remove pre-C89 bug workaround.
39855 * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
39856 Include <stddef.h> instead, since it's all we need for size_t.
39857 (PARAMS): Remove. All uses removed.
39858 (ARRAY_CARDINALITY): Do not bother to #undef.
39859 (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
39860 ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
39861 Remove unnecessary parentheses.
39862 (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
39863 Insert necessary parentheses.
39864 (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
39865 (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
39867 2002-11-19 Bruno Haible <bruno@clisp.org>
39869 * lib/mbswidth.c: Include mbswidth.h right at the beginning.
39870 * lib/mbswidth.h: Include <stddef.h>, for size_t.
39872 * lib/mbswidth.h (PARAMS): Remove macro.
39873 (mbswidth, mbsnwidth): Use ANSI C function declarations.
39874 * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
39876 * lib/gcd.h (PARAMS): Remove macro.
39877 (gcd): Use ANSI C function declarations.
39878 * lib/gcd.c (gcd): Likewise.
39880 2002-11-15 Bruno Haible <bruno@clisp.org>
39882 * lib/strcspn.c: Include <stddef.h>.
39883 (strcspn): Use ANSI C function declaration. Change return type to
39885 * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
39886 (strpbrk): Use NULL.
39887 * lib/strpbrk.h (PARAMS): Remove macro.
39888 (strpbrk): Use ANSI C function declaration.
39889 * lib/strstr.c: Don't include <sys/types.h>.
39890 * lib/strstr.h (PARAMS): Remove macro.
39891 (strstr): Use ANSI C function declarations.
39893 2002-11-14 Karl Berry <karl@gnu.org>
39895 * config/mkinstalldirs: `do' on separate line, instead of
39898 2002-11-06 Bruno Haible <bruno@clisp.org>
39900 * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
39901 * lib/gcd.c (gcd): Likewise.
39903 2002-11-05 Bruno Haible <bruno@clisp.org>
39905 * lib/gcd.h: New file, from gettext-0.11.5.
39906 * lib/gcd.c: New file, from gettext-0.11.5.
39908 2002-11-05 Bruno Haible <bruno@clisp.org>
39910 * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
39911 * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
39912 * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
39913 * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
39915 * lib/argmatch.c: Include gettext.h instead of <locale.h> and
39917 * lib/makepath.c: Include gettext.h instead of <locale.h> and
39920 * lib/closeout.c: Include gettext.h instead of <libintl.h>.
39921 * lib/human.c: Include gettext.h instead of <libintl.h>.
39922 * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
39923 * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
39924 * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
39925 * lib/userspec.c: Include gettext.h instead of <libintl.h>.
39926 * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
39927 * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
39928 (textdomain): Remove definition.
39929 * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
39931 * lib/long-options.c: Remove include of <libintl.h> and definition of
39933 * lib/same.c: Remove include of <libintl.h> and definition of _.
39935 2002-11-04 Owen Taylor <otaylor@redhat.com>
39937 * lib/config.charset: A few additions for Solaris.
39939 2002-11-04 Bruno Haible <haible@clisp.cons.org>
39941 Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
39942 * lib/localcharset.c (locale_charset): Declare as extern "C".
39944 2002-11-04 Bruno Haible <haible@clisp.cons.org>
39946 * lib/config.charset: msdos in uk_UA uses CP1125.
39948 2002-11-04 Bruno Haible <bruno@clisp.org>
39950 * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
39951 * lib/strcase.h: New file, from GNU gettext-0.11.5.
39952 * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
39953 * lib/strstr.h: New file, from GNU gettext-0.11.5.
39954 * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
39956 2002-11-04 Bruno Haible <bruno@clisp.org>
39958 * lib/localcharset.c (locale_charset): Don't return an empty string.
39960 2002-11-04 Bruno Haible <bruno@clisp.org>
39962 * lib/localcharset.c (get_charset_aliases): Add more Windows specific
39965 2002-11-04 Bruno Haible <bruno@clisp.org>
39967 * lib/config.charset: Update for newest glibc. Add canonical names
39968 ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
39970 2002-11-04 Bruno Haible <bruno@clisp.org>
39972 * lib/config.charset: Add support for NetBSD.
39974 2002-11-04 Bruno Haible <bruno@clisp.org>
39976 * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
39978 2002-11-01 Bruno Haible <bruno@clisp.org>
39980 * configure.in: Add AC_CONFIG_AUX_DIR call.
39981 (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
39983 * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
39985 2002-09-28 Karl Berry <karl@gnu.org>
39987 * config/srclist.txt: can't copy install-sh/mkinstalldirs from
39988 installed automake until the next release, since changes have been
39991 2002-09-25 Karl Berry <karl@gnu.org>
39993 * lib/strdup.c: copy from libc/string (via ../config/srclist*).
39994 * lib/getopt*: copy from libc/posix.
39995 * lib/gettext.h: copy from gettext.
39996 * lib/.cppi-disable: add strdup.c, gettext.h.
39998 2002-09-25 Karl Berry <karl@gnu.org>
40000 * config/srclist.txt: enable gettext.h check.
40001 * config/config.{guess,sub}: update from prep.
40002 * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
40003 from automake 1.6.3.
40006 2002-08-23 Stefan Monnier <monnier@cs.yale.edu>
40008 * regex.c (PATFETCH): Remove the translating fetch.
40009 (PATFETCH_RAW): Rename to PATFETCH.
40010 (set_image_of_range): New fun.
40011 (SET_RANGE_TABLE_WORK_AREA): Use it.
40012 (regex_compile): Don't translate the pattern chars so eagerly.
40013 Only do it when inserting an `exactn' bytecode or when handling
40015 (mutually_exclusive_p): Avoid empty statement.
40017 2002-07-06 Jim Meyering <meyering@lucent.com>
40019 * m4/README: Don't mention Makefile.am.in.
40020 Outline how I've tested changes to .m4 files. Yep, it's a pain.
40022 2002-07-01 Jim Meyering <meyering@lucent.com>
40024 * lib/c-stack.c: Include sys/time.h.
40025 From Volker Borchert.
40027 2002-06-26 Paul Eggert <eggert@twinsun.com>
40029 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
40031 2002-06-26 Paul Eggert <eggert@twinsun.com>
40033 * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
40034 New macro. Use it uniformly instead of
40035 (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
40036 It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
40037 reported by Vin Shelton.
40039 2002-06-22 Paul Eggert <eggert@twinsun.com>
40041 * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
40042 Do not assume SA_SIGINFO behavior.
40043 Bug reported by Jim Meyering on NetBSD 1.5.2.
40045 2002-06-22 Jim Meyering <meyering@lucent.com>
40047 * m4/c-stack.m4: New file, from diffutils-2.8.2.
40048 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
40050 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
40051 now that configure.ac uses AC_GNU_SOURCE.
40052 (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
40053 * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
40055 Update to latest tools. Suggestions from Paul Eggert.
40056 * m4/stdbool.m4: New file, from diffutils-2.8.2.
40057 * m4/gnu-source.m4: Update from diffutils-2.8.2.
40058 * m4/fnmatch.m4: Likewise.
40059 * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
40060 to AC_HEADER_STDBOOL
40062 2002-06-22 Jim Meyering <meyering@lucent.com>
40064 * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
40065 redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
40067 2002-06-22 Jim Meyering <meyering@lucent.com>
40069 * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
40071 * lib/exitfail.c, exitfail.h: Likewise.
40072 * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
40074 * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
40076 (EXTRA_DIST): Add fnmatch_loop.c.
40077 (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
40079 * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
40080 * lib/fnmatch.c: Update from diffutils-2.8.2.
40081 * lib/fnmatch_.h: New file. From diffutils-2.8.2.
40082 * lib/fnmatch.h: Remove file.
40084 2002-06-21 Jim Meyering <meyering@lucent.com>
40086 * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
40087 * m4/mbrtowc.m4: Likewise.
40089 * m4/mbstate_t.m4: Update from diffutils-2.8.2.
40090 * m4/mbswidth.m4: Reflect name change:
40091 s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
40092 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
40094 * m4/lib-link.m4: Update from gettext-0.11.2.
40095 * m4/gettext.m4: Likewise.
40097 * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
40098 From Alfred M. Szmidt.
40100 2002-06-18 Paul Eggert <eggert@twinsun.com>
40102 * lib/file-type.h: Report an error if neither S_ISREG nor
40103 S_IFREG is defined, instead of using a test specific to glibc
40104 2.2. This should be safe, since POSIX requires S_ISREG and
40105 Unix Version 7 had S_IFREG. We don't need to check for
40106 <sys/types.h> since we don't use any symbols that it defines.
40108 2002-06-15 Richard Dawe <richdawe@bigfoot.com>
40110 * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
40111 $@-t, so that each temporary file name is unique and valid in the first
40112 8 characters, for operation under DOS.
40114 2002-06-15 Paul Eggert <eggert@twinsun.com>
40116 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
40118 2002-06-15 Jim Meyering <meyering@lucent.com>
40120 Work even with DJGPP 2.03, which lacks support for symlinks.
40122 * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
40124 * lib/lchown.c (S_ISLNK): Likewise.
40126 2002-06-15 Jim Meyering <meyering@lucent.com>
40128 * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
40129 For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
40130 have been included before this file.
40132 2002-06-14 Jim Meyering <meyering@lucent.com>
40134 * lib/file-type.h: Use the version from diffutils-2.8.2.
40135 * lib/file-type.c: Likewise.
40137 2002-06-07 Jim Meyering <meyering@lucent.com>
40139 * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
40140 They're needed at least for NetBSD 1.5.2.
40141 ($statxfs_includes): Include those same headers.
40142 ($statxfs_includes): Include sys/vfs.h if available.
40143 ($statxfs_includes): Likewise for sys/statvfs.h.
40144 Check for the following members in both structs statfs and statvfs:
40145 f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
40147 2002-06-01 Jim Meyering <meyering@lucent.com>
40149 * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
40150 s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
40152 2002-05-28 Jim Meyering <meyering@lucent.com>
40154 * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
40155 Reported by Volker Borchert.
40157 2002-05-27 Jim Meyering <meyering@lucent.com>
40159 Fix a problem seen only on nonconforming systems whereby ls.c's
40160 use of localtime, and then of gettimeofday would cause trouble:
40161 the localtime call used to initialize rpl_gettimeofday's save
40162 mechanism would clobber ls's current local time information so
40163 that in any long listing the first file would always be listed
40164 with date 1970-01-01. Analysis by Volker Borchert.
40166 * lib/gettimeofday.c (localtime): Undefine.
40167 (rpl_localtime): New function.
40169 2002-05-27 Jim Meyering <meyering@lucent.com>
40171 * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
40174 * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
40175 use the replacement function; it wouldn't resolve at link time.
40176 Reported by Volker Borchert.
40178 2002-05-22 Jim Meyering <meyering@lucent.com>
40180 * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
40182 * lib/file-type.h: New file.
40183 * lib/file-type.c (file_type): New file/function. Extracted from
40186 2002-04-30 Jim Meyering <meyering@lucent.com>
40188 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
40190 2002-04-29 Paul Eggert <eggert@twinsun.com>
40192 * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
40194 2002-04-29 Paul Eggert <eggert@twinsun.com>
40196 * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
40197 Do not check for alloca.h (no longer used) or stdbool.h (was never
40198 used?). Add AM_C_PROTOTYPES since hard-locale.h uses it.
40200 2002-04-29 Paul Eggert <eggert@twinsun.com>
40202 * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
40204 2002-04-29 Jim Meyering <meyering@lucent.com>
40206 * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
40207 * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
40208 Use AC_FUNC_STRNLEN here instead.
40210 * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
40211 With autoconf-2.53a, it's part of AC_PROG_CC.
40213 2002-04-28 Paul Eggert <eggert@twinsun.com>
40215 * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
40216 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
40218 2002-04-28 Paul Eggert <eggert@twinsun.com>
40220 * lib/sig2str.h, lib/sig2str.c: New files.
40221 * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
40223 2002-04-28 Paul Eggert <eggert@twinsun.com>
40225 * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
40226 depending on <sys/wait.h> and WTERMSIG. Default to 64 instead
40227 of 127, since 64 is the largest conceivable number for ancient
40229 * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
40231 2002-04-28 Jim Meyering <meyering@lucent.com>
40233 * lib/sig2str.c (WTERMSIG): Remove definition (unused).
40235 2002-04-24 Jim Meyering <meyering@lucent.com>
40237 * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
40238 (jm_PREREQ): Use it.
40240 * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
40241 mach/mach.h fcntl.h.
40242 Check for this function: setlocale.
40244 2002-04-24 Jim Meyering <meyering@lucent.com>
40246 * lib/gettext.h: New file, from Gettext.
40247 * lib/Makefile.am (INCLUDES): Remove -I../intl.
40248 (libfetish_a_SOURCES): Add gettext.h.
40250 2002-04-16 Jim Meyering <meyering@lucent.com>
40252 * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
40253 ut_pid, ut_id, ut_exit.
40255 2002-04-16 Jim Meyering <meyering@lucent.com>
40257 * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
40258 (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
40259 (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
40261 2002-04-12 Jim Meyering <meyering@lucent.com>
40263 * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
40264 now-bogus check for f_type in sys/mount.h. Instead, just test for the
40265 existence of the getmntinfo function. Needed for Darwin 5.3.
40267 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
40268 This is necessary at least on Darwin 5.3.
40270 * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
40271 AC_FUNC_STRNLEN. Otherwise, we'd end up putting two copies of
40272 strnlen.o in the library, and that makes some versions of ranlib
40275 2002-04-12 Jim Meyering <meyering@lucent.com>
40277 * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
40279 2002-04-09 Jim Meyering <meyering@lucent.com>
40281 * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
40282 to be more precise. Rather than saying we're checking whether the
40283 function `works', say what we're testing.
40284 * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
40285 Reported by Bruno Haible.
40287 2002-03-10 Jim Meyering <meyering@lucent.com>
40289 * lib/makepath.c (make_path): Remove a comma from a diagnostic.
40290 Suggestion from Santiago Vila.
40292 2002-03-08 Jim Meyering <meyering@lucent.com>
40294 * lib/rename.c: Mention that this wrapper is needed also on
40295 mips-dec-ultrix4.4 systems.
40297 2002-03-02 Jim Meyering <meyering@lucent.com>
40299 * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
40300 not HAVE_CLOCK_SETTIME.
40302 2002-02-27 Paul Eggert <eggert@twinsun.com>
40304 * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
40305 Check for clock_settime.
40307 2002-02-27 Paul Eggert <eggert@twinsun.com>
40309 * lib/nanosleep.h: Rename to....
40310 * lib/timespec.h: New name for nanosleep.h. All uses changed.
40312 * lib/gettime.c: New file.
40313 * lib/settime.c: New file.
40314 * lib/stime.c: Remove.
40316 * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
40317 timespec.h. Remove nanosleep.h.
40319 2002-02-25 Paul Eggert <eggert@twinsun.com>
40321 * m4/acl.m4: New file.
40322 * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
40323 Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
40325 2002-02-25 Paul Eggert <eggert@twinsun.com>
40327 * lib/acl.c, lib/acl.h: New files.
40328 * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
40330 2002-02-24 Jim Meyering <meyering@lucent.com>
40332 * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
40333 prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
40334 cause trouble. Reported by Nelson Beebe.
40336 2002-02-23 Paul Eggert <eggert@twinsun.com>
40338 * lib/path-concat.c (xpath_concat): Reorder code to pacify
40339 compilers that don't know that xalloc_die never returns.
40341 2002-02-20 Jim Meyering <meyering@lucent.com>
40343 * lib/getdate.c: Regenerate using bison-1.33.
40345 2002-02-17 Jim Meyering <meyering@lucent.com>
40347 * config/config.guess (main): Don't use `head -1'; it's no longer
40348 portable. Use `sed 1q' instead.
40350 2002-02-16 gettextize <bug-gnu-gettext@gnu.org>
40352 * m4/codeset.m4: Upgrade to gettext-0.11.
40353 * m4/gettext.m4: Upgrade to gettext-0.11.
40354 * m4/glibc21.m4: Upgrade to gettext-0.11.
40355 * m4/iconv.m4: Upgrade to gettext-0.11.
40356 * m4/isc-posix.m4: Upgrade to gettext-0.11.
40357 * m4/lcmessage.m4: Upgrade to gettext-0.11.
40358 * m4/lib-ld.m4: New file, from gettext-0.11.
40359 * m4/lib-link.m4: New file, from gettext-0.11.
40360 * m4/lib-prefix.m4: New file, from gettext-0.11.
40361 * m4/progtest.m4: Upgrade to gettext-0.11.
40363 2002-02-15 Paul Eggert <eggert@twinsun.com>
40365 * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
40366 (jm_PREREQ): Use it.
40368 2002-02-15 Paul Eggert <eggert@twinsun.com>
40370 * lib/posixver.c, lib/posixver.h: New files.
40371 * lib/Makefile.am (libfetish_a_SOURCES): Add them.
40373 2002-02-02 Paul Eggert <eggert@twinsun.com>
40374 Bruno Haible <bruno@clisp.org>
40376 * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
40377 (fwrite_success_callback): New declaration.
40378 * lib/unicodeio.c (unicode_to_mb): New function, extracted from
40379 print_unicode_char. Call failure callback instead of error.
40380 (fwrite_success_callback): New function.
40381 (exit_failure_callback): New function.
40382 (fallback_failure_callback): New function.
40383 (print_unicode_char): Call unicode_to_mb.
40385 2002-01-26 Jim Meyering <meyering@lucent.com>
40387 * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
40388 * m4/strnlen.m4: Remove file, now that it's part of autoconf.
40390 2002-01-26 Jim Meyering <meyering@lucent.com>
40392 * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
40394 2002-01-22 Paul Eggert <eggert@twinsun.com>
40396 * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
40398 2002-01-22 Jim Meyering <meyering@lucent.com>
40400 * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
40401 Otherwise, some versions of automake would omit the rule that makes
40402 Makefile from Makefile.in.
40404 2002-01-21 Paul Eggert <eggert@twinsun.com>
40406 * lib/xmemcoll.h, lib/xmemcoll.c: New files.
40407 * lib/Makefile.am (libfetish_a_SOURCES): Add them.
40408 * lib/memcoll.c: Include errno.h, and declare errno if not defined.
40409 (memcoll): Set errno to zero if there is no error.
40411 * lib/quotearg.c (quotearg_buffer_restyled):
40412 Fix bug with quoting buffers containing NUL when backslashing escapes.
40413 This bug was exposed by the other changes in this patch.
40414 (quotearg_n_options): New arg ARGSIZE.
40415 All callers changed.
40416 (quoting_options_from_style): New function.
40417 (quotearg_n_style): Use it.
40418 (quotearg_n_style_mem): New function.
40420 * lib/quotearg.h (quotearg_n_style_mem): New function.
40422 2002-01-19 Jim Meyering <meyering@lucent.com>
40424 * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
40425 Remove useless quotes: DF_PROG="df".
40426 * m4/strnlen.m4: New file.
40428 2002-01-16 Paul Eggert <eggert@twinsun.com>
40430 * lib/backupfile.c (ISDIGIT): Comment fix.
40431 * lib/getdate.y (ISDIGIT): Likewise.
40432 * lib/posixtm.c (ISDIGIT, year): Likewise.
40433 * lib/strverscmp.c (ISDIGIT): Likewise.
40434 * lib/userspec.c (ISDIGIT): Likewise.
40436 2002-01-16 Jim Meyering <meyering@lucent.com>
40438 * lib/getdate.y: Add three semicolons, each just before a closing
40439 brace. Bison (as of version 1.31) no longer papers over that mistake.
40441 2002-01-05 Jim Meyering <meyering@lucent.com>
40443 * lib/version-etc.c (version_etc_copyright): Update copyright year.
40445 2001-12-19 Paul Eggert <eggert@twinsun.com>
40447 * lib/closeout.c (close_stdout_status): If ferror (stdout), do
40448 not silently exit merely because the output buffer happens to
40449 have nothing pending.
40451 2001-12-18 Paul Eggert <eggert@twinsun.com>
40453 See the big note in ../ChangeLog.
40454 * lib/human.c (suffixes): Prefer K to k for 1024.
40455 (generate_suffix_backwards): New function.
40456 (human_readable_inexact): Use it.
40457 * lib/xstrtol.c (__xstrtol): If there is no number but there
40458 is a valid suffix, assume 1. "MB" now means decimal, "MiB" binary.
40459 Accept 'K' as well as 'k'.
40461 2001-12-15 Jim Meyering <meyering@lucent.com>
40463 * lib/regex.h (__restrict_arr): Update from libc.
40465 * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
40466 as `remote' if the name starts with `//'. Suggested by Michael Stone.
40469 2001-12-14 Jim Meyering <meyering@lucent.com>
40471 * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
40472 Suggestion from Bruno Haible.
40474 2001-12-10 Jim Meyering <meyering@lucent.com>
40476 * lib/linebuffer.c: Remove explicit declarations of xmalloc and
40477 xrealloc, Instead, include "xalloc.h".
40478 (initbuffer): Don't cast xmalloc return value to char*.
40479 (readline): Reword comment.
40480 Don't cast xrealloc return value to char*
40481 Return NULL, not 0.
40483 2001-12-09 Jim Meyering <meyering@lucent.com>
40485 * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
40486 about `signed and unsigned type in conditional expression'.
40487 * lib/posixtm.c (posix_time_parse): Likewise.
40489 * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
40491 * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
40492 to avoid a pedantic warning.
40494 * lib/getstr.c: Don't include assert.h.
40495 (getstr): Remove warning-evoking assertions.
40496 Return -1 if offset parameter is out of bounds.
40497 Change the type of a local from int to size_t.
40499 * lib/strftime.c (my_strftime_localtime_r): Include this function
40500 definition in the `#if ! HAVE_TM_GMTOFF' block.
40502 * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
40503 Include xalloc.h instead.
40505 2001-12-02 Jim Meyering <meyering@lucent.com>
40507 * lib/tempname.c: Don't declare getenv, thus reverting the change of
40508 2001-11-18. It's no longer necessary, now that stdlib.h is always
40511 * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
40512 __unbounded, and __ptrvalue. Reported by Uwe H. Steinfeld.
40514 2001-11-30 Akim Demaille <akim@epita.fr>
40516 * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
40517 before being defined.
40519 2001-11-27 Paul Eggert <eggert@twinsun.com>
40521 * lib/quotearg.h (quotearg_n, quotearg_n_style):
40522 First arg is int, not unsigned.
40523 * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
40524 (SIZE_MAX, UINT_MAX): New macros.
40525 (quotearg_n_options): Abort if N is negative.
40526 Avoid overflow check on hosts where size_t is 64 bits and int
40527 is 32 bits, as overflow is impossible there.
40528 Fix off-by-one typo that caused unnecessary reallocation.
40530 2001-11-27 Jim Meyering <meyering@lucent.com>
40532 * lib/tempname.c: Merge with version from libc.
40533 * lib/regex.c: Likewise.
40535 * lib/tempname.c: Include stdlib.h unconditionally. On some old
40536 systems for which STDC_HEADERS is 0, it was not included, resulting in
40537 a warning about an integer-to-pointer conversion problem with getenv.
40538 Reported by Volker Borchert.
40540 2001-11-26 Jim Meyering <meyering@lucent.com>
40542 * lib/gtod.h: Remove file.
40543 * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
40544 * lib/gettimeofday.c: Don't include gtod.h.
40545 (GTOD_init): Remove function.
40546 (rpl_gettimeofday): Do its job here instead, rather than aborting.
40547 Suggestion from Volker Borchert.
40549 2001-11-23 Jim Meyering <meyering@lucent.com>
40551 * lib/hash.h (struct hash_table): Don't define here. Merely declare
40553 * lib/hash.c (struct hash_table): Define it here instead.
40555 2001-11-22 Jim Meyering <meyering@lucent.com>
40557 * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
40559 2001-11-20 Jim Meyering <meyering@lucent.com>
40561 * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
40562 SunOS 4.1.4 and Solaris 2.5.1 lose, too.
40564 2001-11-19 Jim Meyering <meyering@lucent.com>
40566 * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
40567 directory. Use "conftestXXXXXX" as the template.
40568 Suggestion from Paul Eggert.
40570 * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
40571 immediately, so the test doesn't mistakenly hit the max-open-files
40574 2001-11-18 Paul Eggert <eggert@twinsun.com>
40576 * lib/tempname.c (TMP_MAX): Remove; no longer needed.
40577 (TEMPORARIES): New macro.
40578 (__gen_tempname): Use TEMPORARIES rather than TMP_MAX. This
40579 removes an artificial limitation (e.g. HP-UX 10.20, where
40582 2001-11-18 Jim Meyering <meyering@lucent.com>
40584 * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
40586 2001-11-18 Jim Meyering <meyering@lucent.com>
40588 * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
40591 * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
40592 files will be created before anything else.
40594 2001-11-17 Paul Eggert <eggert@twinsun.com>
40596 * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
40597 WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
40599 2001-11-17 Jim Meyering <meyering@lucent.com>
40601 * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
40602 Prompted by a report from Bob Proulx.
40604 * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
40605 Instead, require UTILS_FUNC_MKSTEMP.
40607 2001-11-17 Jim Meyering <meyering@lucent.com>
40609 * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
40610 Now, that's done as part of AC_FUNC_STRTOD.
40612 2001-11-17 Jim Meyering <meyering@lucent.com>
40614 * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
40615 that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
40616 rather than group writable. Patch by Juan F. Codagnone.
40618 * lib/readtokens.c: Remove explicit declarations of xmalloc and
40619 xrealloc, Instead, include "xalloc.h".
40621 * lib/mountlist.c: Include unlocked-io.h after all system headers.
40622 Remove explicit declarations of xmalloc, xrealloc,
40623 and xstrdup. Instead, include "xalloc.h".
40625 * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
40627 * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
40629 * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
40631 * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
40632 Reported by Padraig Brady.
40634 * lib/mkstemp.c: #undef mkstemp.
40636 (rpl_mkstemp): Rename from mkstemp.
40639 2001-11-16 Jim Meyering <meyering@lucent.com>
40641 * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
40642 (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
40643 determine the amount of total physical memory, use pstat_getstatic.
40644 HPUX-11 doesn't define _SC_PHYS_PAGES.
40645 (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
40646 If sysconf couldn't be used to determine the amount of available
40647 physical memory, use both pstat_getstatic and pstat_getdynamic.
40648 Based on a patch from Bob Proulx.
40650 2001-11-10 Jim Meyering <meyering@lucent.com>
40652 * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
40653 (jm_PREREQ): Use it.
40655 2001-11-09 Jim Meyering <meyering@lucent.com>
40657 * m4/jm-macros.m4: Require autoconf-2.52f.
40658 (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
40659 Use these AC_-prefixed names, not the AM_-prefixed ones.
40661 * m4/afs.m4 (jm_AFS): Quote the body. Patch by Akim Demaille.
40663 2001-11-05 Jim Meyering <meyering@lucent.com>
40665 * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
40667 2001-11-04 Jim Meyering <meyering@lucent.com>
40669 * m4/fpending.m4: Remove unused cruft that saved, set, and restored
40672 2001-11-03 Jim Meyering <meyering@lucent.com>
40674 * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
40677 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
40678 know the name of the variable in the macro definition.
40680 2001-11-03 Jim Meyering <meyering@lucent.com>
40682 * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
40683 in argmatch_to_argument call.
40685 * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
40688 * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
40689 e.g., a fault due to an attempt to free a NULL pointer.
40691 2001-11-01 Jim Meyering <meyering@lucent.com>
40693 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
40694 * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
40696 2001-11-01 Jim Meyering <meyering@lucent.com>
40698 * lib/dirfd.c, lib/dirfd.h: New files.
40699 * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
40701 * lib/hash.c (hash_print) [TESTING]: Clean up.
40703 2001-10-22 Paul Eggert <eggert@twinsun.com>
40705 * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
40706 to avoid a warning if -Wall.
40708 2001-10-22 Jeff Bailey <jbailey@outpost.dnsalias.org>
40711 * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
40712 (per RMS's instructions, this is now the canonical source)
40713 * lgpl/, gpl/: New directories.
40715 2001-10-21 Paul Eggert <eggert@twinsun.com>
40717 * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
40719 2001-10-21 Jim Meyering <meyering@lucent.com>
40721 * lib/obstack.c (_): Honor the setting of ENABLE_NLS. Otherwise,
40722 this code would end up calling gettext even in packages built
40723 with --disable-nls.
40724 * lib/getopt.c (_): Likewise.
40725 * lib/regex.c (_): Likewise.
40727 2001-10-20 Paul Eggert <eggert@twinsun.com>
40729 * m4/error.m4 (jm_PREREQ_ERROR):
40730 Do not invoke AC_CHECK_FUNCS with strerror_r, as
40731 AC_FUNC_STRERROR_R does that.
40732 Check for strerror declaration.
40734 * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
40735 are supposed to have them these days.
40736 (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
40737 Merge changes from latest Autoconf CVS.
40738 Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
40739 and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
40740 POSIX decided to standardize on the int flavor of strerror_r.
40742 2001-10-20 Paul Eggert <eggert@twinsun.com>
40744 * lib/error.c (strerror_r): Do not declare unless !_LIBC.
40745 Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
40746 Use strerror_r that is only a macro, even if it is not a function.
40747 (strerror): Check for HAVE_DECL_STRERROR before declaring.
40748 (private_strerror): Use prototypes, not old-style function definition.
40749 (print_errno_message): New function.
40750 Support the POSIX 'int'-flavored strerror_r, as well as the traditional
40751 char*-flavored one.
40752 (error_tail, error, error_at_line): Use it.
40754 2001-10-11 Jim Meyering <meyering@lucent.com>
40756 * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
40757 and quote_n (1, ... to avoid clobbering a buffer.
40759 2001-10-05 Jim Meyering <meyering@lucent.com>
40761 * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
40763 * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
40764 * lib/hash-pjw.h: New file.
40766 2001-09-30 Jim Meyering <meyering@lucent.com>
40768 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
40769 `struct fsstat' has the `f_fstypename' member.
40770 Use that to define FS_TYPE, which is now used to make
40771 the getfsstat link test tighter.
40773 2001-09-30 Jim Meyering <meyering@lucent.com>
40775 * lib/mountlist.c [MOUNTED_GETFSSTAT]:
40776 Include <sys/ucred.h>, for Apple Darwin.
40777 Include sys/mount.h and sys/fs_types.h only if available.
40779 (read_filesystem_list): Use FS_TYPE.
40781 2001-09-29 Paul Eggert <eggert@twinsun.com>
40783 * lib/exclude.c (excluded_filename): 0 -> false, since it's
40786 2001-09-29 Jim Meyering <meyering@lucent.com>
40788 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
40789 [one-argument getmntent function]): Include stdio.h before mntent.h.
40790 SunOS 4.1.x needs it for the declaration of `FILE'.
40791 Patch by Volker Borchert.
40793 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
40794 Check for these headers: sys/param.h sys/ucred.h sys/mount.h
40795 sys/fs_types.h, and make the link-test for getfsstat guard #include
40796 directives with appropriate #if HAVE_*_H tests so that we can
40797 detect getfsstat on Apple Darwin1.3.7 systems.
40798 Reported by Nelson Beebe.
40799 Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
40801 2001-09-28 Paul Eggert <eggert@twinsun.com>
40803 Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
40804 #defines strtoimax. Also treat the other strto* functions
40807 * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
40808 Check for strtoul and strtoumax,
40809 as those declarations are made even in the signed case.
40810 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
40811 Likewise, for strtol and strtoimax.
40813 2001-09-28 Paul Eggert <eggert@twinsun.com>
40815 Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
40816 #defines strtoimax. Also treat the other strto* functions
40819 * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
40820 (strtoul): Do not declare if HAVE_DECL_STRTOUL.
40821 (strtoimax, strtoumax): Do not declare if already defined as a macro.
40823 2001-09-26 Jim Meyering <meyering@lucent.com>
40825 Most macros in unlocked-io.h had the wrong number of arguments.
40826 * lib/gen-uio: New script.
40827 (USE_UNLOCKED_IO): Define to 1 if not already defined.
40828 * lib/unlocked-io.hin: Remove file.
40829 * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
40830 rather than trying to embed it here.
40831 (EXTRA_DIST): Add gen-uio. Remove unlocked-io.hin
40832 Reported by Padraig Brady.
40834 2001-09-25 Volker Borchert <bt@teknon.de>
40836 * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
40839 2001-09-24 Jim Meyering <meyering@lucent.com>
40841 * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
40843 2001-09-23 Jim Meyering <meyering@lucent.com>
40845 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
40846 instead of the mere test for existence of mntent.h. The latter
40847 would get a false-positive on AIX 3.4 systems.
40848 In the outer getmntent if-block, don't die if neither of the getmntent
40849 tests succeeds. Instead, just fall through and continue with the
40852 2001-09-23 Jim Meyering <meyering@lucent.com>
40854 * lib/mountlist.c: Remove useless parentheses in #if directives.
40855 (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
40856 the deprecated MOUNTED symbol is no longer defined in mntent.h.
40858 2001-09-22 Jim Meyering <meyering@lucent.com>
40860 * m4/gettext.m4: New file. From gettext.
40861 * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
40862 * m4/progtest.m4: Likewise
40863 * m4/isc-posix.m4: Decrement serial number to sync with gettext.
40864 * m4/glibc21.m4: Likewise.
40866 * m4/libintl.m4: Remove. No longer used.
40868 2001-09-22 Jim Meyering <meyering@lucent.com>
40870 * lib/localcharset.c: Update from latest gettext.
40871 * lib/config.charset: Likewise.
40873 2001-09-20 Jim Meyering <meyering@lucent.com>
40875 * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
40877 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
40880 2001-09-20 Jim Meyering <meyering@lucent.com>
40882 * lib/xstrtol.c (strtoimax): Guard declaration with
40883 `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
40884 The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
40885 have their own, conflicting declaration of strtoimax in sys/inttypes.h.
40886 (strtoumax): Likewise, for completeness (it wasn't necessary).
40888 2001-09-17 Paul Eggert <eggert@twinsun.com>
40890 * lib/strtoimax.c (HAVE_LONG_LONG):
40891 Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
40892 (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
40893 to work around bug in IBM C compiler.
40895 2001-09-17 Jim Meyering <meyering@lucent.com>
40897 * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
40898 * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
40899 * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
40900 * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
40901 * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
40902 whenever the right hand side need not be expanded by the shell.
40904 2001-09-16 Paul Eggert <eggert@twinsun.com>
40906 * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
40907 library. It's not correct, as some older glibcs are buggy.
40908 fnmatch wasn't fixed until glibc 2.2.
40910 Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
40911 special shell magic here.
40913 2001-09-16 Jim Meyering <meyering@lucent.com>
40915 * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
40916 * m4/jm-macros.m4: Require it.
40918 2001-09-16 Jim Meyering <meyering@lucent.com>
40920 * lib/mkdir.c: New file.
40922 2001-09-15 Jim Meyering <meyering@lucent.com>
40924 * m4/jm-macros.m4: Check for help2man.
40926 2001-09-11 Jim Meyering <meyering@lucent.com>
40928 * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
40929 The body, by Paul Eggert, was moved here from configure.in.
40930 * m4/jm-macros.m4: Require UTILS_HOST_OS.
40932 2001-09-04 Paul Eggert <eggert@twinsun.com>
40934 * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
40935 (jm_PREREQ): Use it.
40937 2001-09-04 Paul Eggert <eggert@twinsun.com>
40939 * lib/xreadlink.c (xreadlink): Omit size_t* arg. All uses changed.
40940 Use ssize_t, not int, to store result of readlink.
40941 Check for ssize_t overflow as well as size_t overflow,
40942 as POSIX says the result of readlink is implementation-defined
40943 when ssize_t overflows.
40944 Remove unnecessary cast to char*.
40945 Use free+malloc instead of realloc, as the storage doesn't need
40946 to be preserved and it's clearer and can be more efficient that way.
40947 (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
40948 * lib/xreadlink.h (xreadlink): Update prototype.
40950 2001-09-04 Paul Eggert <eggert@twinsun.com>
40952 * lib/xgetcwd.c: Revert some of the previous change; intead,
40953 fix the HAVE_GETCWD_NULL code to behave more like the
40954 !HAVE_GETCWD_NULL code used to.
40956 Include "xalloc.h".
40957 (xgetcwd): Do not return NULL when memory is exhausted; instead,
40960 2001-09-03 Paul Eggert <eggert@twinsun.com>
40962 * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
40963 sys/param.h, as pathmax.h includes them.
40965 2001-09-03 Paul Eggert <eggert@twinsun.com>
40967 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
40968 (jm_PREREQ_XGETCWD): New macro.
40970 * m4/getcwd.m4: New file.
40972 2001-09-03 Paul Eggert <eggert@twinsun.com>
40974 * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
40975 like the HAVE_GETCWD_NULL code.
40976 Include pathmax.h if not HAVE_GETCWD.
40977 Do not include xalloc.h.
40978 (INITIAL_BUFFER_SIZE): New symbol.
40979 Do not use xmalloc / xrealloc, since the caller is responsible for
40980 handling errors. Preserve errno around `free' during failure.
40981 Do not overrun buffer when using getwd.
40983 2001-09-03 Paul Eggert <eggert@twinsun.com>
40985 * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
40986 __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
40989 2001-09-03 Paul Eggert <eggert@twinsun.com>
40991 * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
40992 usage of FNM_CASEFOLD and FNM_LEADING_DIR. The bug was
40993 spotted by Jim Meyering.
40995 2001-09-03 Jim Meyering <meyering@lucent.com>
40997 * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
41000 2001-09-02 Jim Meyering <meyering@lucent.com>
41002 * lib/error.c: Update from GNU libc.
41004 2001-09-01 Jim Meyering <meyering@lucent.com>
41006 * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
41009 2001-09-01 Jim Meyering <meyering@lucent.com>
41011 * lib/xreadlink.c: New file.
41012 * lib/xreadlink.h: New file.
41013 * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
41016 * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
41017 doesn't conflict with sparc Solaris 7's definition in
41018 /usr/include/sys/int_types.h.
41020 * lib/exclude.c: Use `""', not `<>' to #include non-system header
41022 (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
41023 and strncasecmp as r-values. Unixware didn't have declarations.
41025 2001-08-31 Paul Eggert <eggert@twinsun.com>
41027 * lib/xstrtol.h: Add copyright notice.
41028 (_DECLARE_XSTRTOL): Improve quality of diagnostic for
41029 LONGINT_INVALID_SUFFIX_CHAR.
41031 2001-08-31 Paul Eggert <eggert@twinsun.com>
41033 * lib/xstrtol.c (strtoimax): New decl.
41035 2001-08-31 Paul Eggert <eggert@twinsun.com>
41037 * lib/xgetcwd.c: Don't include pathmax.h.
41038 Include stdlib.h and unistd.h if available.
41040 (xmalloc, xstrdup, free): Remove decls.
41041 (xgetcwd): Don't assume sizes fit in unsigned.
41042 Check for overflow when computing sizes.
41043 Simplify reallocation code.
41045 2001-08-31 Paul Eggert <eggert@twinsun.com>
41047 * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
41048 a directory's st_size can have an arbitrary value, so the old
41049 usage could waste an arbitrary amount of memory. All uses
41051 * lib/savedir.h: Update prototype.
41053 2001-08-31 Paul Eggert <eggert@twinsun.com>
41055 * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
41057 * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
41060 Also, make the following further changes to make this file's
41061 configuration more similar to that of strtol.c:
41062 (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED. All uses changed.
41063 (strtoumax, uintmax_t, strtoull, strtol): Remove.
41064 (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
41065 (strtoimax): Renamed from strtoumax. All uses of unsigned values
41066 changed to signed values.
41068 And make the following changes as well:
41069 Fix copyright notice, as 1999 was missing.
41070 (verify): New macro.
41071 (strtoimax): Check sizes at compile-time, not run-time.
41072 Prefer strtol to strtoll if both work.
41073 (main): Remove; it was not that useful and was a pain to maintain.
41075 * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
41077 2001-08-31 Jim Meyering <meyering@lucent.com>
41079 * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
41080 Use an initial, malloc'd, buffer of length 128 rather than
41081 a statically allocated one of length 1024.
41083 2001-08-30 Paul Eggert <eggert@twinsun.com>
41085 Simplify code, partly by assuming autoconf 2.52 semantics.
41087 * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
41089 * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
41090 (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
41092 (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
41093 Move AC_REQUIRE to next-to-top level, to avoid confusion.
41094 Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
41095 * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
41096 jm_AC_HEADER_INTTYPES_H.
41097 * m4/jm-macros.m4 (jm_MACROS): Likewise.
41099 * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
41101 * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
41102 Quote first arg of AC_DEFUN.
41103 Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
41104 since they are needed to parse the include file even if we need
41105 only xstrtoimax. Simplify logic behind the args to AC_REPLACE.
41106 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
41107 but with opposite signedness.
41109 2001-08-30 Paul Eggert <eggert@twinsun.com>
41111 Merge 'exclude' changes from tar 1.13.22.
41112 This fixes one or two unlikely storage allocation overflow bugs,
41113 but doesn't change user-visible behavior otherwise.
41115 2001-08-30 Paul Eggert <eggert@twinsun.com>
41117 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
41118 (jm_PREREQ_EXCLUDE): New macro.
41120 2001-08-30 Paul Eggert <eggert@twinsun.com>
41122 * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
41125 2001-08-30 Paul Eggert <eggert@twinsun.com>
41127 * lib/hash.c: Remove '2001' from copyright notice.
41129 2001-08-30 Paul Eggert <eggert@twinsun.com>
41131 * lib/full-write.h: New file.
41132 * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
41133 * lib/full-write.c: Correct credits, as cccp.c no longer
41134 exists and anyway it was so heavily changed from the old cccp
41135 code as to be unrecognizable. Include full-write.h.
41136 (full_write) Return size_t, with short writes meaning failure.
41137 All callers changed. This fixes a bug with large buffers
41139 * lib/utime.c: Include full-write.h.
41141 2001-08-30 Paul Eggert <eggert@twinsun.com>
41143 * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
41144 (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
41145 (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
41146 Include if available.
41147 (<xalloc.h>): Include
41148 (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
41149 (verify): New macro. Use it to verify that EXCLUDE macros do not
41150 collide with FNM macros.
41151 (struct patopts): New struct.
41152 (struct exclude): Use it, as exclude patterns now come with options.
41153 (new_exclude): Support above changes.
41154 (new_exclude, add_exclude_file):
41155 Initial size must now be a power of two to simplify overflow checking.
41156 (free_exclude, fnmatch_no_wildcards): New function.
41157 (excluded_filename): No longer requires options arg, as the options
41158 are determined by add_exclude. Now returns bool, not int.
41159 (excluded_filename, add_exclude):
41160 Add support for the fancy new exclusion options.
41161 (add_exclude, add_exclude_file): Now takes int options arg.
41162 Check for arithmetic overflow when computing sizes.
41163 (add_exclude_file): xrealloc might modify errno, so don't
41164 realloc until after errno might be used.
41166 * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
41168 (free_exclude): New decl.
41169 (add_exclude, add_exclude_file): Now takes int options arg.
41170 (excluded_filename): No longer requires options arg, as the options
41171 are determined by add_exclude. Now returns bool, not int.
41173 2001-08-30 Paul Eggert <eggert@twinsun.com>
41175 * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
41177 2001-08-27 Jim Meyering <meyering@lucent.com>
41179 * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
41181 * lib/version-etc.c (N_): Remove definition.
41182 Revert most of last change.
41183 Instead, simply don't mark the `Copyright...' string for translation.
41184 Based on advice from Paul Eggert.
41186 * lib/strtoxmax.c: Tweak comment.
41188 2001-08-26 Jim Meyering <meyering@lucent.com>
41190 * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
41192 * m4/xstrtoimax.m4: New file.
41193 * m4/xstrtoumax.m4: Add comments explaining why we
41194 AC_REPLACE_FUNCS(strtol).
41196 2001-08-26 Jim Meyering <meyering@lucent.com>
41198 * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
41199 of copyright with `%s' so translators don't get an untranslated
41201 (COPYRIGHT_YEAR): Define.
41202 (version_etc): Use fprintf rather than fputs.
41203 Suggestion from Ulrich Drepper.
41205 * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
41207 * lib/strtoll.c: New file, from GNU libc.
41208 * lib/xstrtoimax.c: New file.
41210 * lib/xstrtol.h: Add xstrtoimax.
41211 * lib/strtoumax.c: New file. Simply include "strtoumax.c".
41212 * lib/strtoimax.c: New file. Likewise, but first define
41215 * lib/strtoumax.c: Factor to work both for unsigned and signed types,
41217 * lib/strtoxmax.c: ... then renamed to this.
41219 2001-08-18 Paul Eggert <eggert@twinsun.com>
41221 * m4/inttypes.m4: Add AC_PREREQ(2.13).
41222 (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
41223 (jm_AC_TYPE_INTMAX_T): New macro.
41224 (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
41226 * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
41228 * m4/longlong.m4: Renamed from ulonglong.m4.
41229 * m4/inttypes.m4: Renamed from inttypes_h.m4.
41230 * m4/uintmax_t.m4: Removed.
41232 2001-08-13 Paul Eggert <eggert@twinsun.com>
41234 * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
41235 Port to Solaris 8, where 'sed' requires a space after the 'r'
41236 command, and where sh dislikes "$/". Clean up the spacing a bit.
41237 Redirect output to $tmp just once.
41239 2001-08-12 Paul Eggert <eggert@sic.twinsun.com>
41241 * lib/addext.c (<errno.h>): Include.
41242 (errno): Declare if not defined.
41243 (addext): Work correctly when pathconf returns -1 and leaves
41244 errno alone because there is no limit. Also, work even if
41245 pathconf returns a value greater than SIZE_MAX.
41247 2001-08-12 Jim Meyering <meyering@lucent.com>
41249 * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
41250 d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
41251 fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
41252 group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
41253 jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
41254 link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
41255 mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
41256 prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
41257 rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
41258 strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
41259 utime.m4, utimes.m4, xstrtoumax.m4:
41260 Quote the first argument in each use of AC_DEFUN.
41262 2001-08-12 Jim Meyering <meyering@lucent.com>
41264 * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
41265 Simply `return getcwd (NULL, 0);'.
41266 [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
41267 Use 1300 as initial value for length, not PATH_MAX.
41269 * lib/pathmax.h: Clean up cpp syntax.
41271 2001-08-12 Jim Meyering <meyering@lucent.com>
41273 * lib/gettimeofday.c: New file.
41274 * lib/gtod.h: New file.
41275 * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
41277 2001-08-05 Jim Meyering <meyering@lucent.com>
41279 * m4/jm-macros.m4: Require autoconf-2.52.
41281 2001-08-04 Jim Meyering <meyering@lucent.com>
41283 * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
41284 stmt, to get in sync with glibc.
41286 2001-08-03 Paul Eggert <eggert@twinsun.com>
41288 The following changes are from gettext 0.10.39 as maintained by
41291 * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
41292 Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
41293 with inverted sense. All uses changed.
41295 * lib/mbswidth.c: Don't include <limits.h>.
41296 Include <stdlib.h> and <string.h> unconditionally.
41297 (iswcntrl, mbsinit, ISCNTRL): New macros.
41298 (mbsnwidth): Use K&R style function declarations.
41299 Don't bother checking for MB_LEN_MAX == 1, since the compiler
41300 can optimize it when MB_CUR_MAX == 1.
41301 The width of control characters is zero, not 1.
41303 2001-08-03 Paul Eggert <eggert@twinsun.com>
41305 The following changes are from gettext 0.10.39 as maintained by
41306 Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
41308 * m4/codeset.m4: Upgrade to serial AM1.
41309 (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
41310 all uses changed. Quote first arg of AC_DEFUN.
41311 (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
41313 * m4/iconv.m4: Upgrade to serial AM2.
41314 (AM_ICONV): Renamed from jm_ICONV; all uses changed.
41315 Add --with-libconv-prefix.
41316 Quote first arg of AC_DEFUN. Add description for ICONV_CONST.
41317 (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
41318 (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
41319 (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
41320 * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
41322 * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
41323 * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
41324 * m4/glibc21.m4 (jm_GLIBC21): Likewise.
41325 * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
41326 * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
41327 * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
41328 * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
41329 * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
41330 * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
41332 * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
41335 * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
41336 not the default value.
41338 2001-06-25 Bruno Haible <haible@clisp.cons.org>
41339 * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
41340 Also check for mbsinit. Needed for SCO 3.2v5.0.2.
41341 Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
41342 Also check for iswcntrl, used for wcwidth fallback.
41343 Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
41346 2001-08-03 Jim Meyering <meyering@lucent.com>
41348 * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
41349 as it was in the original. Reported by Paul Eggert.
41351 2001-07-16 Jim Meyering <meyering@lucent.com>
41353 * m4/gettimeofday.m4: New file.
41354 Prompted by a report from Bernhard Baehr.
41356 2001-07-15 Jim Meyering <meyering@lucent.com>
41358 * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
41359 stuff. Now it's in ../Makefile.cfg.
41361 2001-07-15 Jim Meyering <meyering@lucent.com>
41363 * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
41364 (BUILT_SOURCES): Add unlocked-io.h.
41365 (io_functions): Define.
41366 (unlocked-io.h): New rule.
41367 (DISTCLEANFILES): Add unlocked-io.h.
41368 (all-local): Depend on unlocked-io.h, to ensure it is created.
41370 * lib/unlocked-io.hin: New file
41372 * lib/regex.c: Update from glibc.
41374 2001-07-05 Jim Meyering <meyering@lucent.com>
41376 * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
41378 (libfetish_a_SOURCES): Put all .h files here instead.
41379 Remove a thus-exposed (better checks in automake) duplicate and
41380 two unnecessary .h files.
41382 2001-07-04 Jim Meyering <meyering@lucent.com>
41384 * m4/Makefile.am.in (glibc-io.struct): New target. Rework the code
41385 that generates jm-glibc-io.m4 so that it doesn't trigger any make
41388 2001-07-02 Jim Meyering <meyering@lucent.com>
41390 The following changes were prompted by suggestions from Bruno Haible.
41392 * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
41394 * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
41395 definition of EXTRA_DIST.
41396 (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
41397 ensure that the generated file is created/updated whenever the list
41398 of $(unlocked_functions) is changed.
41399 (jm-glibc-io.m4): New rule.
41400 (unlocked-io.h): New rule -- currently unused.
41402 2001-06-24 Jim Meyering <meyering@lucent.com>
41404 * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
41405 unmatched right bracket, rather than kludging it with an extra,
41406 falsely-matching quote in a comment. Patch by Akim Demaille.
41408 2001-06-11 Jim Meyering <meyering@lucent.com>
41410 * lib/regex.c: Update from GNU libc.
41412 2001-05-27 Jim Meyering <meyering@lucent.com>
41414 * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
41415 Check for ut_type in struct utmp.
41417 2001-05-27 Jim Meyering <meyering@lucent.com>
41419 * lib/readutmp.h (UT_TYPE): Define.
41421 2001-05-24 Jim Meyering <meyering@lucent.com>
41423 * lib/argmatch.c: Include "quote.h".
41424 (argmatch_invalid): Remove explicit `' quotes. Instead, use the
41425 quote function. Reported by Göran Uddeborg.
41427 2001-05-22 Jim Meyering <meyering@lucent.com>
41429 * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
41430 now that we use the package-supplied version unconditionally.
41431 (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
41433 2001-05-21 Jim Meyering <meyering@lucent.com>
41435 * m4/regex.m4: Change a couple backticks to single quotes to avoid
41436 shell syntax errors.
41438 2001-05-21 Alexandre Duret-Lutz <duret_g@epita.fr>
41440 * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
41442 2001-05-20 Paul Eggert <eggert@twinsun.com>
41444 * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
41445 Don't bother to check library strftime, since
41446 we'll be using our own my_strftime function anyway.
41447 Define my_strftime instead of strftime.
41449 2001-05-20 Alexandre Duret-Lutz <duret_g@epita.fr>
41451 * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
41452 which is not yet declared.
41454 2001-05-15 Jim Meyering <meyering@lucent.com>
41456 * m4/regex.m4: Use proper quoting so brackets appear in the test
41458 Reported by, and with help from, Bruno Haible.
41460 2001-05-13 Jim Meyering <meyering@lucent.com>
41462 * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
41465 2001-05-11 Paul Eggert <eggert@twinsun.com>
41467 dirname code cleanup. base_name now behaves more compatibly
41468 with POSIX basename when given file names that have trailing
41469 slashes, and similarly for dir_name. Add new primitives
41470 base_len and dir_len. Put the directory-name-related decls
41473 * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
41474 * lib/backupfile.c (base_name): Likewise.
41475 * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
41476 * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
41477 * lib/makepath.c (strip_trailing_slashes): Likewise.
41478 * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
41479 ISSLASH): Likewise.
41480 * lib/rename.c (strip_trailing_slashes): Likewise.
41481 * lib/same.c (base_name): Likewise.
41482 * lib/stripslash.c (ISSLASH): Likewise.
41484 * lib/addext.c: Include <dirname.h> after size_t is defined.
41485 * lib/backupfile.c: Likewise.
41487 * lib/addext.c (addext): Use base_len to trim redundant
41488 trailing slashes instead of doing it ourselves.
41489 But do not trim the last slash if it is not redundant.
41491 * lib/backupfile.c (find_backup_file_name,
41492 max_backup_version): Use base_len instead of rolling it ourselves.
41493 Handle the case of "" and (on DOS) "C:" correctly.
41495 * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
41496 needed. Include <string.h>, <dirname.h>.
41497 (base_name): Allow file names ending in slashes, other than names
41498 that are all slashes. In this case, return the basename followed
41499 by the slashes. This is more general, and can be used in places
41500 where the original base_name purposely had an assertion failure.
41501 (base_len): New function.
41503 * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
41504 Do not include <assert.h>; no longer needed.
41506 (memrchr): Remove decl.
41507 (dir_name_r): Remove.
41508 (dir_len): Renamed from dirlen. All callers changed.
41509 Rewrite in terms of base_name, for simplicity and consistency.
41510 (dir_name): Never return NULL. All callers changed.
41511 Do not include <stdlib.h> in test program; no longer needed.
41512 return 0; is fine for test program.
41514 * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
41516 (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
41518 * lib/path-concat.c (path_concat): Use base_len to compute
41519 base length, not strlen; this means we cannot rely on memcpy
41522 * lib/same.c (STREQ): Remove.
41523 (same_name): Handle the case where the basename ends in trailing '/'.
41525 * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
41526 a slash was stripped. Do not strip the last slash after a
41527 file system prefix.
41529 2001-05-11 Paul Eggert <eggert@twinsun.com>
41531 * lib/Makefile.am (libfetish_a_SOURCES):
41532 Add strftime.c, since we now compile it on all hosts.
41534 * lib/strftime.c (my_strftime):
41535 Define to nstrftime if emacs, but only if my_strftime is not defined.
41536 (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
41537 ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
41538 Add one more extra argument: a nanoseconds value.
41541 (my_strftime function): Add %N format.
41542 (emacs_strftimeu): Renamed from emacs_strftime,
41543 with extra ut argument.
41545 2001-05-09 Paul Eggert <eggert@twinsun.com>
41547 * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
41549 2001-04-21 Jim Meyering <meyering@lucent.com>
41551 * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
41554 2001-04-21 Alexandre Duret-Lutz <duret_g@epita.fr>
41556 * m4/ftruncate.m4: Check for chsize.
41557 Link with ftruncate.o unconditionally if ftruncate is missing.
41558 This was required when cross-compiling to i586-mingw32msvc.
41560 2001-04-08 Jim Meyering <meyering@lucent.com>
41562 * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
41563 recomputed; that's necessary when the offset spans a DST transition.
41564 Patch by David J. MacKenzie. Reported by Hon-Yin Kok.
41566 2001-04-02 Jim Meyering <meyering@lucent.com>
41568 * lib/regex.h, regex.c: Update from GNU libc.
41570 2001-03-24 Jim Meyering <meyering@lucent.com>
41572 * m4/jm-macros.m4: Require autoconf-2.49d.
41574 2001-03-20 Bruno Haible <haible@clisp.cons.org>
41576 * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
41578 2001-03-19 Paul Eggert <eggert@twinsun.com>
41580 * lib/version-etc.c (version_etc_copyright): Update to 2001.
41582 2001-03-17 Jim Meyering <meyering@lucent.com>
41584 * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
41585 now that the version in autoconf is equivalent.
41586 (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
41588 * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
41589 Suggestion from Akim Demaille.
41591 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
41592 (jm_PREREQ_TEMPNAME): New function.
41594 2001-03-16 Paul Eggert <eggert@twinsun.com>
41596 * lib/tempname.c (uint64_t): Define to uintmax_t if
41597 not defined, and if UINT64_MAX is not defined.
41598 Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
41599 Reported by John David Anglin.
41601 2001-03-15 Bruno Haible <haible@clisp.cons.org>
41603 * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
41604 resolve alias if codeset is empty.
41605 * lib/config.charset (BeOS): Use wildcard syntax.
41607 2001-03-13 Jim Meyering <meyering@lucent.com>
41609 * lib/path-concat.c (path_concat)
41610 [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
41611 concatenating e.g., `C:' and `foo'.
41614 2001-03-06 Bruno Haible <haible@clisp.cons.org>
41616 * lib/localcharset.c (locale_charset): Don't use
41617 setlocale(LC_CTYPE,NULL). Don't return NULL.
41618 * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
41620 2001-03-06 Bruno Haible <haible@clisp.cons.org>
41622 * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
41623 support for DOS/DJGPP.
41625 2001-03-01 Paul Eggert <eggert@twinsun.com>
41627 * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
41628 lacks mkstemp. Compile our own tempname.c if we compile our own
41629 mkstemp.c, as mkstemp relies on tempname.
41631 2001-03-01 Jim Meyering <meyering@lucent.com>
41633 * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
41634 AH_VERBATIM really does output its argument verbatim.
41636 2001-02-28 Paul Eggert <eggert@twinsun.com>
41638 * lib/Makefile.am (libfetish_a_SOURCES):
41639 Add dup-safer.c, fopen-safer.c.
41640 (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
41642 * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
41643 * lib/unistd-safer.h: New files.
41645 2001-02-25 Paul Eggert <eggert@twinsun.com>
41647 The mkstemp replacement is taken from glibc 2.2.2, with some
41648 portability fixes for use outside glibc, as follows:
41650 * lib/tempname.c (struct_stat64): New macro.
41651 (direxists, __gen_tempname): Use it.
41652 This avoids a portability problem with Solaris 8.
41654 * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
41655 (<stddef.h>, <stdint.h>, <string.h>):
41656 Include only if STDC_HEADERS || _LIBC.
41657 (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
41658 (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
41659 (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
41660 (__set_errno): Define this macro if <errno.h> doesn't.
41661 (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
41662 Define these macros if <stdio.h> doesn't.
41663 (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
41664 Define these macros if <sys/stat.h>
41665 doesn't. Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
41666 (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
41667 __xstat64): Define if not _LIBC.
41668 (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
41669 (__gen_tempname): Invoke gettimeofday only if
41670 HAVE_GETTIMEOFDAY || _LIBC;
41671 otherwise, fall back on plain "time".
41672 Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
41674 * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
41676 * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
41678 2001-02-18 Paul Eggert <eggert@twinsun.com>
41680 * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
41682 2001-02-17 Paul Eggert <eggert@twinsun.com>
41684 * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
41685 * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
41686 Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
41687 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
41689 2001-02-17 Paul Eggert <eggert@twinsun.com>
41691 * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
41692 Remove workaround macros for hosts that have mbrtowc but not
41693 mbstate_t, as we now insist on proper declarations for both
41694 before using mbrtowc.
41696 2001-02-17 Jim Meyering <meyering@lucent.com>
41698 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
41699 getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
41700 further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
41703 * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
41704 rather than AC_CACHE_VAL.
41706 2001-02-17 Jim Meyering <meyering@lucent.com>
41708 * lib/strtoul.c: Sync from GNU libc. Use double quotes, not <...>
41709 around included file name.
41711 * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
41713 * lib/strftime.c: Update from GNU libc (the only changes were to
41716 2001-02-17 Jim Meyering <meyering@lucent.com>
41718 * lib/regex.c: Update from libc.
41720 2001-02-17 Bruno Haible <haible@clisp.cons.org>
41722 * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
41725 2001-02-16 Paul Eggert <eggert@twinsun.com>
41727 * lib/alloca.c (malloc): Undef before defining, since stdlib.h
41728 may have defined it. Needed for Encore Umax-3.0.9.16b systems.
41729 Reported by Mark Hounschell via Paul Eggert.
41731 2001-02-07 Jim Meyering <meyering@lucent.com>
41733 * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
41735 2001-02-05 Jim Meyering <meyering@lucent.com>
41737 * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
41738 it includes the patch required for `large file' support with at least
41739 HP-UX's 10.20 /bin/cc.
41741 2001-02-03 Jim Meyering <meyering@lucent.com>
41743 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
41744 AS_IF, now that it works once again (mysteriously).
41745 * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
41747 2001-01-30 Jim Meyering <meyering@lucent.com>
41749 Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
41750 * m4/chown.m4: Rename conftestchown to conftest.chown.
41751 * m4/rename.m4: s/conftestdir/conftest.d1/ and
41752 s/conftestdir2/conftest.d2/.
41753 * m4/utimes.m4: s/conftestdata/conftest.data/
41754 Inspired by Pavel Roskin's change in autoconf.
41756 2001-01-30 Bruno Haible <haible@clisp.cons.org>
41758 * lib/config.charset: Update for FreeBSD 4.2.
41760 2001-01-27 Jim Meyering <meyering@lucent.com>
41762 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
41764 * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
41766 2001-01-26 Jim Meyering <meyering@lucent.com>
41768 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
41769 quotearg.c includes it.
41771 2001-01-26 Jim Meyering <meyering@lucent.com>
41773 * lib/quotearg.c: Include stddef.h.
41774 * lib/quote.c: Include stddef.h.
41775 Reported by Axel Kittenberger.
41777 * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
41778 line in double quotes so that it evokes a better diagnostic.
41779 [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
41780 Reported by Axel Kittenberger.
41782 2001-01-24 Stefan Monnier <monnier@cs.yale.edu>
41784 * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
41785 as if it was a `charset'.
41787 2001-01-21 Bruno Haible <haible@clisp.cons.org>
41789 * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
41792 2001-01-21 Bruno Haible <haible@clisp.cons.org>
41794 * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
41795 to avoid a warning. Add back 'const' to inptr.
41797 2001-01-20 Jim Meyering <meyering@lucent.com>
41799 Be sure that headers are checked before used in code compiled
41800 for the type checks.
41801 * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
41802 In place of that, invoke jm_CHECK_ALL_TYPES.
41803 (jm_CHECK_ALL_HEADERS): New functions with the above checks.
41804 (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
41805 Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
41806 The check for ssize_t was mistakenly run before the test for unistd.h.
41808 The configure-time check for stdbool.h was missing.
41809 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
41810 (jm_PREREQ_HASH): New function.
41812 2001-01-17 Jim Meyering <meyering@lucent.com>
41814 * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
41815 for autoconf-2.49c.
41816 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
41818 2001-01-16 Jim Meyering <meyering@lucent.com>
41820 * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
41823 2001-01-14 Jim Meyering <meyering@lucent.com>
41825 * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
41826 foo and bar. Create conftestdir/ in the script, not in the C code.
41827 Remove directories in the script, not in the C code.
41828 Remove conftestdir{,2} before trying to create the directory.
41829 Make the entire configure script fail if the mkdir fails.
41831 2001-01-14 Jim Meyering <meyering@lucent.com>
41833 * lib/rename.c: New file. From Volker Borchert.
41834 Include stdlib.h, string.h or strings.h, and xalloc.h.
41835 Use strip_trailing_slashes rather than open-coding it.
41837 2001-01-03 Paul Eggert <eggert@twinsun.com>
41839 * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
41841 2001-01-03 Jim Meyering <meyering@lucent.com>
41843 * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
41844 of local `inptr' to avoid warning with some system declarations of
41847 2001-01-02 Volker Borchert <bt@teknon.de>
41849 * m4/rename.m4: New file.
41850 * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
41852 2001-01-01 Jim Meyering <meyering@lucent.com>
41854 * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
41855 even on systems with utmpx.h. It's necessary for the declaration of
41856 utmp's ut_user member. Reported by Andreas Jaeger.
41858 * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
41859 available. They are required for the declarations of getgrgid and
41861 (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
41862 Reported by Andreas Jaeger.
41864 2001-01-01 Alexandre Duret-Lutz <duret_g@epita.fr>
41866 * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
41867 expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
41868 so `make install' also works in VPATH builds.
41870 2000-12-31 Alexandre Duret-Lutz <duret_g@epita.fr>
41872 * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
41873 prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
41874 can be used in subdirectories.
41876 2000-12-29 Paul Eggert <eggert@twinsun.com>
41878 * lib/modechange.c: Do not assume that mode_t uses the
41879 traditional octal encoding. E.g. "chmod 1 FOO" should set
41880 the other-execute bit of FOO even if S_IXOTH != 1.
41882 (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
41883 WOTH, XOTH, ALLM): New macros.
41884 (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
41885 S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
41887 (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
41888 (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
41890 No need to use uintmax_t; unsigned long is long enough.
41891 Don't bother to get suffix since we don't use it.
41893 2000-12-26 Jim Meyering <meyering@lucent.com>
41895 * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
41896 better with autoheader.
41898 2000-12-24 Jim Meyering <meyering@lucent.com>
41900 * lib/hash.c (is_prime): Return explicit boolean values.
41901 (hash_get_first): Return NULL to appease Irix5.6's 89.
41902 Reported by Nelson Beebe.
41904 2000-12-19 Bruno Haible <haible@clisp.cons.org>
41906 * lib/localcharset.c (locale_charset): Add support for Win32.
41908 2000-12-18 Paul Eggert <eggert@twinsun.com>
41910 * lib/physmem.h, lib/physmem.c: New files.
41912 * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
41913 (noinst_HEADERS): Add physmem.h.
41915 * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
41916 't' for compatibility with Solaris 8 sort.
41918 2000-12-18 Bruno Haible <haible@clisp.cons.org>
41920 * lib/config.charset: Add support for BeOS.
41922 2000-12-17 Jim Meyering <meyering@lucent.com>
41924 * m4/dos.m4 (jm_AC_DOS): New file and macro.
41925 * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
41927 2000-12-16 Jim Meyering <meyering@lucent.com>
41929 This bug had a serious impact on chown: `chown N:M FILE' (for integer
41930 N and M) would have treated it like `chown N:N FILE'.
41932 * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
41934 2000-12-16 Jim Meyering <meyering@lucent.com>
41936 * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
41937 SHELLS_FILE to a file name that's useful on djgpp systems.
41939 (ADDITIONAL_DEFAULT_SHELLS): Define.
41940 (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
41941 Based mostly on a patch from Prashant TR.
41943 2000-12-16 Bruno Haible <haible@clisp.cons.org>
41945 * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
41946 VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
41947 CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
41949 2000-12-08 Andreas Schwab <schwab@suse.de>
41951 * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
41952 invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
41954 2000-12-07 Jim Meyering <meyering@lucent.com>
41956 * lib/stripslash.c (ISSLASH): Define.
41957 (strip_trailing_slashes): Use ISSLASH rather than comparing against
41961 * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
41962 (dir_name_r): Declare this function as static.
41963 [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
41964 manifest itself on a name containing a mix of slashes and
41966 Make this function work with names starting with a DOS-style
41967 drive letter and colon prefix.
41968 (dir_name): Append `.' if necessary.
41969 Based mostly on patches from Prashant TR and Eli Zaretskii.
41971 * lib/dirname.h (dir_name_r): Remove prototype.
41973 2000-12-06 Paul Eggert <eggert@twinsun.com>
41975 * m4/off_t-format.m4: Remove this file.
41976 * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
41978 2000-12-06 Jim Meyering <meyering@lucent.com>
41980 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
41981 replacement strtoull, we may well need the replacement strtoul, too.
41982 Check for declarations of strtoul and strtoull.
41983 Check for strtol. Mainly as a cue to cause automake to include
41984 strtol.c -- that file is included by each of strtoul.c and strtoull.c.
41985 Check for limits.h -- strtol.c needs it.
41987 2000-12-05 Jim Meyering <meyering@lucent.com>
41989 * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
41991 2000-12-04 Jim Meyering <meyering@lucent.com>
41993 * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
41994 Also include memory.h, stdlib.h, unistd.h if appropriate.
41995 Reported by Andreas Jaeger (conflicting declaration of malloc).
41997 2000-12-02 Jim Meyering <meyering@lucent.com>
41999 * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
42000 * m4/jm-macros.m4 (jm_MACROS): require it.
42002 2000-12-02 Jim Meyering <meyering@lucent.com>
42004 * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
42006 2000-12-01 Paul Eggert <eggert@twinsun.com>
42008 * lib/memrchr.c: Include <config.h> before any system include file.
42010 2000-11-30 Jim Meyering <meyering@lucent.com>
42012 * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
42014 2000-11-30 Jim Meyering <meyering@lucent.com>
42016 * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
42018 2000-11-29 Paul Eggert <eggert@twinsun.com>
42020 * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
42022 2000-11-26 Jim Meyering <meyering@lucent.com>
42024 * lib/memcoll.c: Include sys/types.h. From Werner Almesberger.
42026 2000-11-22 Paul Eggert <eggert@twinsun.com>
42028 * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
42029 size of (size_t) -1; it's not portable.
42031 2000-11-17 Jim Meyering <meyering@lucent.com>
42033 * lib/strstr.c: Update from GNU libc.
42035 2000-11-17 Akim Demaille <akim@epita.fr>
42037 * lib/obstack.h: Formatting changes.
42038 (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
42039 prevent type checking.
42040 (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
42041 cast the value to (void *): assigning a `foo *' to a `void *'
42043 (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
42045 2000-11-16 Jim Meyering <meyering@lucent.com>
42047 * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
42049 2000-11-11 Jim Meyering <meyering@lucent.com>
42051 * lib/error.c: Add a couple #includes, merging from GNU libc version.
42053 2000-11-10 Jim Meyering <meyering@lucent.com>
42055 * lib/obstack.h: Update from GNU libc.
42056 * lib/obstack.c: Likewise.
42058 2000-11-08 Bruno Haible <haible@clisp.cons.org>
42060 * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
42062 2000-11-06 Paul Eggert <eggert@twinsun.com>
42064 * lib/getusershell.c (setusershell): Use rewind rather than
42065 fseek/fseeko, to avoid configuration hassles with fseeko.
42066 Don't bother opening SHELLS_FILE if shellstream is NULL;
42067 it's not necessary.
42069 2000-11-05 Jim Meyering <meyering@lucent.com>
42071 * lib/makepath.h (make_dir): Declare.
42072 * lib/makepath.c (make_dir): Remove `static' attribute.
42075 2000-11-04 Jim Meyering <meyering@lucent.com>
42077 * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
42079 2000-11-04 Alexandre Duret-Lutz <duret_g@epita.fr>
42081 * lib/hash.c (hash_get_next): Fix a thinko: when ENTRY is the
42082 last one in a bucket, advance to the next bucket.
42084 2000-11-02 Vesselin Atanasov <vesselin@bgnet.bg>
42086 * lib/fnmatch.c: Do not comment out all the code if we are using
42087 the GNU C library, because in some cases we are replacing buggy
42088 code in the GNU C library itself.
42090 2000-10-30 Stefan Monnier <monnier@cs.yale.edu>
42092 * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
42093 (regex_compile): Catch bogus \(\1\).
42095 2000-10-30 Paul Eggert <eggert@twinsun.com>
42097 * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
42098 (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
42099 e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
42101 2000-10-30 Paul Eggert <eggert@twinsun.com>
42103 * lib/error.h, getline.h, modechange.h:
42104 Remove "2000" from Copyright line, as the file hasn't been
42105 changed this year other than in the copyright notice.
42107 * lib/xalloc.h: Add "2000" to Copyright line, as this file
42108 was changed this year.
42110 2000-10-29 Jim Meyering <meyering@lucent.com>
42112 * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
42114 * m4/ls-mntd-fs.m4: Likewise
42116 2000-10-29 Jim Meyering <meyering@lucent.com>
42118 * lib/xstat.in: Fix grammar in comment.
42120 2000-10-29 Greg Louis <glouis@dynamicro.on.ca>
42122 * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
42123 Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
42124 doesn't define __restrict_arr.
42126 2000-10-28 Jim Meyering <meyering@lucent.com>
42128 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
42129 (jm_PREREQ_MEMCHR): New function.
42131 2000-10-28 Jim Meyering <meyering@lucent.com>
42133 * lib/memchr.c: Update from libc.
42134 Adjust for portability:
42135 [HAVE_STDLIB_H]: Include stdlib.h.
42136 [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
42137 Undef __memchr, too.
42138 [!weak_alias]: Define __memchr to memchr.
42140 * lib/regex.c: Update from libc.
42141 * lib/regex.h: Likewise.
42142 * lib/getopt1.c: Likewise.
42143 * lib/memcmp.c: Likewise.
42145 * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
42146 Avoid using fseek, when possible -- it's broken by design.
42147 Patch by Ulrich Drepper.
42149 2000-10-27 Stefan Monnier <monnier@cs.yale.edu>
42151 * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
42152 (re_match_2_internal, re_match_2_internal, re_match_2_internal):
42153 Giving in to popular pressure to shut up the compiler with casts.
42155 2000-10-26 Jim Meyering <meyering@lucent.com>
42157 * lib/strftime.c: Update from libc.
42159 2000-10-25 Stefan Monnier <monnier@cs.yale.edu>
42161 * regex.c: More `unsigned char' -> `re_char' changes.
42162 Also change several `int' into `re_wchar_t'.
42163 (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
42164 (PUSH_FAILURE_POINTER): Don't cast any more.
42165 (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
42166 We want GCC to complain, since this piece of code makes
42167 re_match non-reentrant, which *should* be fixed.
42168 (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
42169 (EXTEND_BUFFER): Use RETALLOC.
42170 (SET_LIST_BIT): Don't cast.
42171 (re_wchar_t): New type.
42172 (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
42173 that those two functions will always properly return.
42174 (IMMEDIATE_QUIT_CHECK): Cast to void.
42175 (analyse_first): Use recursion rather than an explicit stack.
42176 (re_compile_fastmap): Can't fail anymore.
42177 (re_search_2): Don't check re_compile_fastmap for failure.
42178 (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
42179 Now also sets the new value (passed in a new argument).
42180 (re_match_2_internal): Use it.
42181 Also, use a new var `reg' of type size_t when looping through regs
42182 rather than reuse the inappropriate `mcnt'.
42184 2000-10-25 Jim Meyering <meyering@lucent.com>
42186 * lib/obstack.c: Update from libc.
42188 2000-10-24 Kenichi Handa <handa@etl.go.jp>
42190 * regex.c (regex_compile): Change the way of handling a range from
42191 a char less than 256 to a char not less than 256.
42193 2000-10-24 Andrew Innes <andrewi@gnu.org>
42195 * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
42197 (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
42198 so that re_search functions only quit when callers expect them to.
42200 2000-10-23 Jim Meyering <meyering@lucent.com>
42202 * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
42203 wrong. That set_locale call must not have any side effects.
42206 2000-10-22 Jim Meyering <meyering@lucent.com>
42208 * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
42209 [CYCLIC]: Remove now-unused definition.
42211 * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
42212 (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
42213 Suggestion from Ulrich Drepper.
42215 2000-10-21 Jim Meyering <meyering@lucent.com>
42217 * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
42218 * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
42219 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
42221 2000-10-21 Jim Meyering <meyering@lucent.com>
42223 * lib/dirname.c (memrchr): Declare if necessary.
42224 (dir_name): Remove the restriction that there be no
42225 trailing slashes. Now, this code skips past them, effectively
42227 [TEST_DIRNAME] (main): New unit tests.
42229 * lib/memrchr.c: New file from GNU libc.
42230 Undef __memrchr, too.
42231 [!weak_alias]: Define __memrchr to memrchr.
42232 Guard weak_alias use with `#ifdef weak_alias'.
42234 2000-10-21 Jim Meyering <meyering@lucent.com>
42236 * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
42237 (dir_name): Use dir_name_r.
42238 * lib/dirname.h (dir_name_r): Declare it.
42240 2000-10-17 Jim Meyering <meyering@lucent.com>
42242 * lib/quote.h (PARAMS): Define and use.
42243 Reported by Akim Demaille.
42245 * lib/getopt.c: Update from libc.
42247 2000-10-16 Jim Meyering <meyering@lucent.com>
42249 * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
42253 2000-10-15 Stefan Monnier <monnier@cs.yale.edu>
42255 * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
42257 2000-09-25 Jim Meyering <meyering@lucent.com>
42259 * lib/md5.h (rol): Define (from GnuPG).
42261 * lib/sha.c: Give credit (GnuPG) where due.
42262 (M): Use rol rather than open-coding it.
42263 Add a FIXME comment.
42265 2000-09-21 Jim Meyering <meyering@lucent.com>
42267 * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
42268 Reported by Michael Stone.
42270 2000-09-20 Jim Meyering <meyering@lucent.com>
42272 * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
42273 (noinst_HEADERS): Add sha.h.
42274 Based on code from Scott G. Miller and from GnuPG.
42276 2000-09-18 Jim Meyering <meyering@lucent.com>
42278 * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
42279 LIBS. Otherwise, everyone ends up linking with -lelf for some
42281 Reported by Mike Stone.
42283 2000-09-15 Jim Meyering <meyering@lucent.com>
42285 * lib/regex.c: Update from libc.
42287 2000-09-10 Jim Meyering <meyering@lucent.com>
42289 * lib/getopt.c (_getopt_internal): Update from glibc.
42291 2000-09-09 Jim Meyering <meyering@lucent.com>
42293 * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
42294 think it should be used as a general replacement for isascii.
42295 * lib/fnmatch.c: Likewise.
42296 * lib/mbswidth.c: Likewise
42297 * lib/regex.c: Likewise.
42300 * lib/userspec.c: Include sys/param.h and limits.h.
42302 (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
42303 (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
42304 (parse_user_spec): Use xstrtoul, not atoi when converting numeric
42305 UID, GID. Check range.
42307 2000-09-06 Jim Meyering <meyering@lucent.com>
42309 * lib/getopt.c (_getopt_internal): Update from glibc.
42311 2000-08-30 Jim Meyering <meyering@lucent.com>
42313 * lib/strftime.c: Merge in changes from GNU libc.
42315 2000-08-26 Jim Meyering <meyering@lucent.com>
42317 * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
42318 * m4/fpending.m4: New file.
42320 2000-08-26 Jim Meyering <meyering@lucent.com>
42322 * lib/closeout.c: Include "__fpending.h".
42323 (close_stdout_status): Return right away if there's nothing to flush.
42325 * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
42326 * lib/__fpending.c: New file.
42327 * lib/__fpending.h: New file.
42329 2000-08-20 Jim Meyering <meyering@lucent.com>
42331 * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
42332 `#if !HAVE_UTMPX_H'. The latter would lose on systems with neither
42333 utmp.h nor utmpx.h. Reported by Eli Zaretskii.
42335 2000-08-11 J. David Anglin <dave@hiauly1.hia.nrc.ca>
42337 Improve fileutils installation on systems where running
42338 programs (like install) can't be unlinked.
42339 * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
42340 * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
42342 2000-08-07 Paul Eggert <eggert@twinsun.com>
42344 Standardize on "memory exhausted" instead of "Memory exhausted"
42345 or "virtual memory exhausted".
42346 * lib/obstack.c (print_and_abort): Use "memory exhausted", not
42347 "virtual memory exhausted".
42348 * lib/same.c (same_name): Invoke xalloc_die instead of printing
42350 * lib/userspec.c (parse_user_spec): Likewise.
42351 * lib/bumpalloc.h: comment fix
42352 * lib/same.c, userspec.c: Include xalloc.h.
42354 * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
42355 not char *const and pointing to a constant array.
42356 * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
42357 (xrealloc): Comment fix.
42359 * lib/userspec.c (parse_user_spec):
42360 Don't translate a message until just before returning,
42361 to avoid unnecessary translation.
42363 2000-08-07 Jim Meyering <meyering@lucent.com>
42365 * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
42366 chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
42367 fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
42368 getgroups.c, gethostname.c, getopt.h, group-member.c,
42369 hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
42370 linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
42371 memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
42372 pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
42373 stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
42374 strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
42375 utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
42376 yesno.c: Back out Copyright date changes for each file with no change
42377 this year. This eases coordination with other programs using the same
42378 source code modules. From Paul Eggert.
42380 2000-08-06 Paul Eggert <eggert@twinsun.com>
42382 * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
42383 not char, for compatibility with glibc 2.1.3 strftime.c.
42385 2000-08-03 Greg McGary <greg@mcgary.org>
42387 * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
42388 ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
42389 (EXTEND_BUFFER): Use them.
42391 2000-08-01 Jim Meyering <meyering@lucent.com>
42393 * lib/dirname.c (ISSLASH): Define.
42394 (BACKSLASH_IS_PATH_SEPARATOR): Define.
42395 (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
42396 both `\' and `/' may be use as path separators.
42397 Based on a patch from Prashant TR.
42399 2000-07-31 Paul Eggert <eggert@twinsun.com>
42401 * lib/quotearg.c (quotearg_n_options): Don't make the initial
42402 slot vector a constant, since it might get modified.
42404 2000-07-31 Jim Meyering <meyering@lucent.com>
42406 * lib/xmalloc.c: Use `virtual memory exhausted', not
42407 `Memory exhausted'.
42408 * lib/obstack.c (print_and_abort): Likewise.
42410 2000-07-30 Paul Eggert <eggert@twinsun.com>
42412 * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
42413 buffer, so that the caller can always quote one small
42414 component of a "memory exhausted" message in slot 0.
42415 From a suggestion by Jim Meyering.
42417 2000-07-30 Jim Meyering <meyering@lucent.com>
42419 * lib/makepath.c (make_path): Quote the other instance, too.
42421 * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
42422 (STATIC_BUF_SIZE): Define.
42423 (quotearg_n_options): Use only statically allocated storage when
42424 N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
42425 than STATIC_BUF_SIZE.
42427 2000-07-29 Jim Meyering <meyering@lucent.com>
42429 * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
42430 * lib/dirname.c (dir_name): Likewise.
42432 * lib/basename.c (base_name): Use ISSLASH rather than comparing against
42435 * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
42436 (dir_name): Assert that there are no trailing slashes.
42438 2000-07-29 Bruno Haible <haible@clisp.cons.org>
42440 * lib/mbswidth.h (mbswidth): Add a flags argument.
42441 (mbswidth): New declaration.
42442 (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
42443 * lib/mbswidth.c (mbswidth): Add a flags argument.
42444 (mbsnwidth): New function.
42446 2000-07-24 Jim Meyering <meyering@lucent.com>
42448 * lib/mbswidth.c: Remove useless #else. From Bruno Haible.
42450 2000-07-23 Paul Eggert <eggert@twinsun.com>
42452 * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
42454 2000-07-23 Paul Eggert <eggert@twinsun.com>
42456 * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
42457 <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
42458 (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
42459 (quotearg_buffer_restyled): If a unibyte locale, don't bother to
42460 invoke multibyte primitives.
42462 2000-07-23 Paul Eggert <eggert@twinsun.com>
42465 Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
42466 so that mbstate_t is always defined.
42468 Do not inspect MB_LEN_MAX, since it's incorrectly defined to
42469 be 1 in at least one GCC installation, and this configuration
42470 error is likely to be common. Ignoring MB_LEN_MAX hurts
42471 performance on hosts that have mbrtowc but have only unibyte
42472 locales, but I assume these hosts are rare.
42474 2000-07-23 Paul Eggert <eggert@twinsun.com>
42476 * lib/mbswidth.c (_XOPEN_SOURCE):
42477 Don't define; this causes problems on Solaris 7.
42478 (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
42480 2000-07-23 Jim Meyering <meyering@lucent.com>
42482 * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
42483 too: getgrgid, getpwuid, getuid.
42485 2000-07-23 Jim Meyering <meyering@lucent.com>
42487 * lib/basename.c (base_name): Add an assertion.
42489 2000-07-23 Bruno Haible <haible@clisp.cons.org>
42491 * lib/quotearg.c: When the system forces us to redefine mbstate_t,
42492 shadow its mbsinit function.
42494 2000-07-17 Bruno Haible <haible@clisp.cons.org>
42496 * lib/mbswidth.h: New file.
42497 * lib/mbswidth.c: New file.
42498 * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
42499 (noinst_HEADERS): Add mbswidth.h.
42501 2000-07-17 Bruno Haible <haible@clisp.cons.org>
42503 * lib/config.charset: Add support for FreeBSD. Improve support for
42506 2000-07-16 Bruno Haible <haible@clisp.cons.org>
42508 * m4/mbswidth.m4: New file.
42509 * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
42511 2000-07-15 Jim Meyering <meyering@lucent.com>
42513 * lib/makepath.c: Include quote.h.
42514 (make_path): Convert "`%s'" in format strings to "%s", and wrap each
42515 corresponding argument in a `quote (...)' call.
42516 Give better diagnostics.
42518 * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
42519 (noinst_HEADERS): Add quote.h.
42521 * lib/quote.c (quote, quote_n): New file. Two functions taken verbatim
42522 from tar's src/misc.c.
42523 * lib/quote.h: New file. Prototypes for same.
42525 2000-07-14 Paul Eggert <eggert@twinsun.com>
42527 From a suggestion by Bruno Haible.
42528 * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
42529 Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
42530 to decide whether to define the BeOS workaround macro;
42531 this adjusts to the change to AC_MBSTATE_T.
42533 2000-07-14 Jim Meyering <meyering@lucent.com>
42535 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
42536 jm_AC_TYPE_UINTMAX_T.
42538 2000-07-13 Paul Eggert <eggert@twinsun.com>
42540 * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
42542 * lib/quotearg.c (quoting_style_args, quoting_style_vals,
42543 quotearg_buffer_restyled): Add support for
42544 clocale_quoting_style. Undo previous change to
42545 locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
42546 and "{RIGHT QUOTATION MARK}" msgids.
42548 2000-07-10 Paul Eggert <eggert@twinsun.com>
42550 From a suggestion by Bruno Haible.
42551 * m4/mbstate_t.m4 (AC_MBSTATE_T):
42552 Renamed from AC_MBSTATE_T_OBJECT. All uses changed.
42553 Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
42554 and mbstate_t, to a single-part test that simply defines mbstate_t.
42555 * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
42556 s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
42558 2000-07-10 Jim Meyering <meyering@lucent.com>
42560 * m4/strerror_r.m4: Mirror the correction made in autoconf.
42562 * m4/gnu-source.m4: Output to confdefs.h directly.
42563 Suggestion from Akim Demaille.
42565 2000-07-09 Paul Eggert <eggert@twinsun.com>
42567 The old behavior of quoting `like this' doesn't look good with
42568 newer, ISO-style fonts. See:
42569 http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
42571 Instead, quote "like this" by default. Let the translator
42572 tailor the locale-specific quoting behavior by providing
42573 translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
42575 * lib/quotearg.c (N_): New macro.
42576 (gettext_default): New function.
42577 (quotearg_buffer_restyled): Use
42578 gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
42579 gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
42581 2000-07-09 Jim Meyering <meyering@lucent.com>
42583 * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
42584 to link seq. If so, set SEQ_LIBM to -lm. From Bruno Haible.
42586 * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
42587 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
42589 2000-07-09 Jim Meyering <meyering@lucent.com>
42591 * lib/Most files: Update copyright dates to include 2000.
42593 2000-07-08 Jim Meyering <meyering@lucent.com>
42595 * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
42597 (xgethostname): Remove now-unnecessary #ifdef.
42598 Move declaration of `err' into loop where it's used.
42600 2000-07-05 Paul Eggert <eggert@twinsun.com>
42601 and Bruno Haible <haible@clisp.cons.org>
42603 * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
42604 only if the test for an object-type mbstate_t fails. This
42605 prevents us from mistakenly reporting that mbstate_t is a
42606 system object type after we "#define mbstate_t int" to work
42609 2000-07-05 Paul Eggert <eggert@twinsun.com>
42610 and Bruno Haible <haible@clisp.cons.org>
42612 * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
42614 2000-07-05 Bruno Haible <haible@clisp.cons.org>
42616 * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
42618 Include <ctype.h> for use of isalpha.
42620 2000-07-05 Bruno Haible <haible@clisp.cons.org>
42622 * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
42623 by allocating a larger buffer. Test the gethostname return value for
42624 being >= 0, not == 0, for BeOS. Don't exhaust memory if gethostname
42625 returns an error and ENAMETOOLONG isn't defined.
42627 2000-07-05 Bruno Haible <haible@clisp.cons.org>
42629 * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
42632 2000-07-04 Jim Meyering <meyering@lucent.com>
42634 * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
42635 of the deprecated AC_CHECKING.
42637 2000-07-04 Jim Meyering <meyering@lucent.com>
42639 * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
42640 Reported by Bruno Haible.
42642 2000-07-04 Jim Meyering <meyering@lucent.com>
42644 * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
42645 HAVE_MBRTOWC is set. Required at least for irix-5.6, which
42648 2000-07-03 Paul Eggert <eggert@twinsun.com>
42650 * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
42651 Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
42653 2000-07-03 Paul Eggert <eggert@twinsun.com>
42654 and Bruno Haible <haible@clisp.cons.org>
42656 * lib/quotearg.c (mbrtowc):
42657 Assign to *pwc, and return 1 only if result is nonzero.
42658 (iswprint): Use ISPRINT when substituting our own mbrtowc.
42660 2000-07-03 Jim Meyering <meyering@lucent.com>
42662 * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
42664 2000-07-03 Jim Meyering <meyering@lucent.com>
42666 * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
42667 This is necessary to get a definition of e.g., UTMP_FILE on
42671 2000-07-02 Jim Meyering <meyering@lucent.com>
42673 * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
42675 * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
42676 AC_LIBOBJ(function_name).
42677 * m4/chown.m4: Likewise.
42678 * m4/fnmatch.m4: Likewise.
42679 * m4/ftruncate.m4: Likewise.
42680 * m4/getgroups.m4: Likewise.
42681 * m4/getline.m4: Likewise.
42682 * m4/group-member.m4: Likewise.
42683 * m4/jm-macros.m4: Likewise.
42684 * m4/lstat.m4: Likewise.
42685 * m4/malloc.m4: Likewise.
42686 * m4/memcmp.m4: Likewise.
42687 * m4/nanosleep.m4: Likewise.
42688 * m4/putenv.m4: Likewise.
42689 * m4/realloc.m4: Likewise.
42690 * m4/regex.m4: Likewise.
42691 * m4/stat.m4: Likewise.
42692 * m4/strftime.m4: Likewise.
42694 2000-07-02 Jim Meyering <meyering@lucent.com>
42696 * lib/quotearg.c (mbstate_t): Don't define here.
42698 2000-07-02 Jim Meyering <meyering@lucent.com>
42700 * lib/nanosleep.c (SIGCONT): Define if not already defined.
42702 2000-07-01 Jim Meyering <meyering@lucent.com>
42704 * m4/uptime.m4: Put double quotes around use of $cross_compiling.
42706 2000-07-01 Jim Meyering <meyering@lucent.com>
42708 * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
42711 2000-07-01 Bruno Haible <haible@clisp.cons.org>
42713 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
42714 macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
42716 2000-07-01 Bruno Haible <haible@clisp.cons.org>
42718 * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
42719 per change in ../m4/ls-mntd-fs.m4.
42720 (read_filesystem_list): Ignore symbolic links.
42722 2000-06-29 Jim Meyering <meyering@lucent.com>
42724 * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
42725 for declaration of strcmp.
42727 * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
42729 * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
42730 Avoid warning by casting result to `char *' to remove `const'.
42732 2000-06-28 Jim Meyering <meyering@lucent.com>
42734 * m4/mbstate_t.m4: Use stdlib.h, not stdio.h. The latter is not
42735 included by quotearg.c, for which we perform this test. From
42738 2000-06-27 Bruno Haible <haible@clisp.cons.org>
42740 * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
42741 * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
42742 <utmpx.h> exists, put readutmp.o into LIBOBJS.
42744 2000-06-27 Bruno Haible <haible@clisp.cons.org>
42746 * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
42748 2000-06-26 Paul Eggert <eggert@twinsun.com>
42750 savedir now sets errno on failure and invokes xmalloc to get memory.
42751 Fix a couple of other minor bugs while we're at it.
42753 * lib/savedir.c (<unistd.h>): Do not include; there's no need.
42754 (NAMLEN): Remove macro.
42755 (malloc, realloc): Remove decls.
42756 (stpcpy): Likewise.
42757 ("xalloc.h"): Include.
42758 (NAME_SIZE_DEFAULT): New macro.
42759 (savedir): Use xmalloc / xrealloc to allocate memory.
42760 Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
42761 Skip "" directory entries.
42762 Use strlen to calculate directory entry length, since the old method
42763 is rarely used these days and isn't worth supporting.
42764 Don't use a pointer after freeing it.
42765 Check for integer overflow when calculating allocation size.
42766 Use memcpy to copy entries, instead of stpcpy.
42767 Set errno properly when returning NULL.
42768 Check for readdir error.
42770 2000-06-26 Jim Meyering <meyering@lucent.com>
42772 * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
42774 2000-06-25 Jim Meyering <meyering@lucent.com>
42776 * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
42777 Linux header bug when _XOPEN_SOURCE is defined to 500.
42779 2000-06-25 Bruno Haible <haible@clisp.cons.org>
42781 * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
42784 2000-06-25 Bruno Haible <haible@clisp.cons.org>
42786 * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
42788 Don't include <stdlib.h>. Don't declare malloc, realloc.
42790 2000-06-24 Jim Meyering <meyering@lucent.com>
42792 * m4/strerror_r.m4: Revive this file -- to try out an experimental
42793 version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
42794 for which strerror does return char*, but which lacks a conveniently
42795 accessible declaration of the function. If the compile-test says
42796 strerror_r doesn't work, then resort to a `run'-test that works on
42797 BeOS and segfaults on DEC Unix.
42799 2000-06-24 Jim Meyering <meyering@lucent.com>
42801 * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
42803 2000-06-23 Paul Eggert <eggert@twinsun.com>
42805 * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
42806 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it. Add check for iswprint.
42808 2000-06-23 Paul Eggert <eggert@twinsun.com>
42810 * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
42811 (mbrtowc, mbstate_t): Define substitutes if
42812 HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
42813 (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
42814 not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
42816 2000-06-23 Jim Meyering <meyering@lucent.com>
42818 * m4/afs.m4: Add missing AC_MSG_RESULT.
42819 Reported by Bruno Haible.
42821 * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
42822 Suggestion from Bruno Haible.
42824 2000-06-23 Jim Meyering <meyering@lucent.com>
42826 * lib/getpass.c: New file, from Bruno Haible. Required for BeOS.
42828 2000-06-21 Jim Meyering <meyering@lucent.com>
42830 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
42832 2000-06-21 Jim Meyering <meyering@lucent.com>
42834 * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
42835 (noinst_HEADERS): Add getstr.h.
42837 * lib/getline.c (getstr): Move into a separate file.
42838 * lib/getstr.c (getstr): New file, extracted from getline.c, with
42839 the following changes: new parameter, delim2; both delim[12]
42840 parameters have type `int', not `char'. The latter would lose
42841 with 8-bit delimiters.
42842 * lib/getstr.h: New file.
42844 2000-06-21 Bruno Haible <haible@clisp.cons.org>
42846 * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
42847 than 1024, return a memory chunk of least possible size, instead
42848 of size PATH_MAX + 2. In the loop, increment the size proportionally.
42849 Use free/xmalloc instead of xrealloc to avoid copying for very long
42852 2000-06-21 Bruno Haible <haible@clisp.cons.org>
42854 * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
42857 2000-06-21 Bruno Haible <haible@clisp.cons.org>
42859 * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
42860 address, not strdup. Include <stdlib.h> and don't declare free().
42862 2000-06-19 Jim Meyering <meyering@lucent.com>
42864 * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
42866 2000-06-18 Jim Meyering <meyering@lucent.com>
42868 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
42870 * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
42871 `checking whether...' message to be consistent with that of the
42874 2000-06-18 Jim Meyering <meyering@lucent.com>
42876 * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
42877 Besides, these days every porting target provides a mkdir function.
42879 * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
42880 needed. (this snippet comes from src/system.h).
42882 2000-06-16 Bruno Haible <haible@clisp.cons.org>
42884 * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
42886 2000-06-15 Paul Eggert <eggert@twinsun.com>
42888 * lib/human.c (adjust_value): New function.
42889 (human_readable_inexact): Apply rounding style even when
42890 printing approximate values.
42892 2000-06-14 Paul Eggert <eggert@twinsun.com>
42894 * lib/human.c (human_readable_inexact): Allow an input block
42895 size that is not a multiple of the output block size, and vice versa.
42896 Reported by Piergiorgio Sartor.
42898 2000-06-14 Paul Eggert <eggert@twinsun.com>
42900 * lib/getdate.y (get_date): Apply relative times after time
42901 zone indicator, not before. Reported by Todd A. Jacobs.
42903 2000-06-13 Jim Meyering <meyering@lucent.com>
42905 * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
42907 * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
42909 2000-06-12 Paul Eggert <eggert@twinsun.com>
42911 * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
42913 2000-06-12 Jim Meyering <meyering@lucent.com>
42915 * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
42916 AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
42918 * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
42919 the optional argument, `lib'.
42921 2000-06-08 Jim Meyering <meyering@lucent.com>
42923 * m4/largefile.m4: Remove file (now that it's part of autoconf).
42925 2000-06-04 Paul Eggert <eggert@twinsun.com>
42927 Rewrite largefile configuration so that we don't need to run
42928 getconf and don't need AC_CANONICAL_HOST. [I'm leaving the use of
42929 AC_CANONICAL_HOST in configure.in -- jmm]
42931 * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
42932 AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
42933 (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
42934 (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
42935 CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
42937 Instead of inspecting the output of getconf, try to compile the
42938 test program without and with the macro definition.
42939 (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
42940 for getconf. Instead, check for the needed flags by compiling
42943 2000-06-04 Paul Eggert <eggert@twinsun.com>
42945 * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
42947 2000-06-04 Jim Meyering <meyering@lucent.com>
42949 * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
42950 SunOS 4.1.4 for which gid_t is an unsigned type.
42952 2000-06-03 Jim Meyering <meyering@lucent.com>
42954 * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
42955 now that autoconf requires that.
42957 * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
42958 #undefs. E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
42959 Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
42961 2000-06-03 Jim Meyering <meyering@lucent.com>
42963 * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
42965 2000-06-03 Bruno Haible <haible@clisp.cons.org>
42967 * m4/glibc21.m4: New file.
42968 * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
42970 2000-06-03 Bruno Haible <haible@clisp.cons.org>
42972 * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
42973 newer, don't install charset.alias.
42974 * lib/config.charset: Change the Linux/glibc rules so they become empty
42975 on glibc-2.1 or newer.
42977 2000-06-02 Jim Meyering <meyering@lucent.com>
42979 * lib/mountlist.c: Back out last change. Instead, do this...
42980 * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
42981 me_dummy member using the same `ignore'-testing code.
42982 * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
42986 2000-05-29 Jim Meyering <meyering@lucent.com>
42988 * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
42989 mounts with the `ignore' attribute. Based on a patch from
42992 2000-05-28 Jim Meyering <meyering@lucent.com>
42994 * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
42995 jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
42996 * m4/stat.m4: Likewise.
42997 * m4/lstat.m4: Likewise.
42998 * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
43000 * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
43001 * m4/strerror_r.m4: Remove file (absorbed into autoconf).
43003 2000-05-26 Jim Meyering <meyering@lucent.com>
43005 * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
43007 2000-05-24 Jim Meyering <meyering@lucent.com>
43009 * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
43010 autoconf requires that.
43011 * m4/lib-check.m4: Likewise.
43012 * m4/jm-macros.m4: Likewise.
43013 * m4/strftime.m4: Likewise.
43015 * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
43016 AC_CHECK_DECLS, now that autoconf requires that.
43018 2000-05-22 Jim Meyering <meyering@lucent.com>
43020 * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
43021 * m4/lstat.m4: Likewise.
43023 2000-05-22 Jim Meyering <meyering@lucent.com>
43025 * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
43027 2000-05-20 Jim Meyering <meyering@lucent.com>
43029 * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
43030 (jm_PREREQ): Use it.
43032 2000-05-18 Jim Meyering <meyering@lucent.com>
43034 * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
43035 back, too, since it may have been modified by allocate_entry.
43036 (hash_delete): Rewrite to use neither the assignment operator
43037 nor the comma operator in an if-expression.
43039 2000-05-15 Paul Eggert <eggert@twinsun.com>
43042 <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
43043 Remove; no longer needed.
43044 "quotearg.h": Add include.
43045 (file_name): Do not bother to explicitly initialize to NULL; it's less
43046 efficient on some hosts.
43047 (close_stdout_status): Remove test as to whether stdout was already
43048 closed; it breaks for the case "echo x | sort >&-".
43049 Quote file name colons.
43050 Do not assume that _("write error") lacks format strings.
43052 2000-05-15 Jim Meyering <meyering@lucent.com>
43054 * lib/version-etc.c (version_etc_copyright): Update the copyright
43055 string used in all --version output.
43057 2000-05-14 Jim Meyering <meyering@lucent.com>
43059 * lib/closeout.c (close_stdout_set_file_name): New function.
43060 (close_stdout_status): Use new file-scoped global.
43061 Return right away if fstat says the stdout file descriptor is invalid.
43062 * lib/closeout.h (close_stdout_set_file_name): Declare.
43064 2000-05-10 Jim Meyering <meyering@lucent.com>
43066 * lib/closeout.c [default_exit_status]: New file-scoped variable.
43067 (close_stdout_set_status): New function.
43068 * lib/closeout.h (close_stdout_set_status): Declare.
43070 2000-05-09 Jim Meyering <meyering@lucent.com>
43072 * m4/gettext.m4: Rename this...
43073 * m4/libintl.m4: ...to this.
43075 2000-05-08 Jim Meyering <meyering@lucent.com>
43077 * lib/long-options.c: Don't include closeout.h.
43078 (parse_long_options): Don't call close_stdout for --version.
43080 2000-05-06 Paul Eggert <eggert@twinsun.com>
43082 * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
43083 be 500, instead of _GNU_SOURCE to be 1, to work around glibc
43084 2.1.3 bug. This avoids a clash when files like regex.c define
43087 2000-05-06 Jim Meyering <meyering@lucent.com>
43089 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
43090 (AC_REPLACE_FUNCS): Add strnlen.
43092 * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
43093 * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
43095 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
43096 AC_SEARCH_LIBS call for nanosleep.
43097 (LIB_NANOSLEEP): Set and AC_SUBST.
43099 2000-05-06 Jim Meyering <meyering@lucent.com>
43101 * lib/strnlen.c: Undefine __strnlen and strnlen.
43102 [!weak_alias]: Define __strnlen to strnlen.
43104 * lib/atexit.c: New file, from libiberty.
43106 2000-05-06 Jim Meyering <meyering@lucent.com>
43108 * lib/closeout.c (close_stdout_status): Also check for errors on the
43111 2000-05-05 Jim Meyering <meyering@lucent.com>
43113 * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
43114 AC_SEARCH_LIBS call for clock_gettime.
43115 (LIB_CLOCK_GETTIME): Set and AC_SUBST.
43117 * m4/search-libs.m4: Update from autoconf.
43119 su doesn't work on Solaris 2.6.
43120 * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
43121 <shadow.h>. Reported by Dragos Harabor.
43123 2000-05-05 Bruno Haible <haible@clisp.cons.org>
43125 * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
43126 memcpy instead of xmalloc, xrealloc, path_concat.
43127 (locale_charset): Treat empty environment variables as absent.
43128 (DIRECTORY_SEPARATOR, ISSLASH): New macros.
43130 2000-05-04 Jim Meyering <meyering@lucent.com>
43132 * lib/getopt.c: Update from glibc.
43133 * lib/obstack.c: Likewise.
43134 * lib/obstack.h: Likewise.
43135 * lib/regex.c: Likewise. NB: K&R compiler support is dropped for this
43138 * lib/regex.h: Likewise.
43139 * lib/strndup.c: Likewise.
43140 * lib/strnlen.c: New file, from glibc.
43142 2000-05-03 Jim Meyering <meyering@lucent.com>
43144 * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
43146 2000-05-02 Paul Eggert <eggert@twinsun.com>
43148 * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
43149 this is needed to make ftello visible (e.g. glibc 2.1.3). Use
43150 compile-time test, rather than inspecting host and OS, to
43151 decide whether to define _LARGEFILE_SOURCE.
43153 2000-05-01 Jim Meyering <meyering@lucent.com>
43155 * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
43157 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
43158 Based on a patch from Bruno Haible.
43160 2000-05-01 Jim Meyering <meyering@lucent.com>
43162 * lib/full-write.c (full_write): Remove `FIXME' part of comment.
43164 2000-04-29 Jim Meyering <meyering@lucent.com>
43166 * lib/path-concat.c: Declare strdup only if it's not defined.
43167 * lib/canon-host.c: Likewise.
43169 2000-04-28 Jim Meyering <meyering@lucent.com>
43171 * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
43172 avoid redefinition warning on some systems (HPUX). Otherwise, regex.h
43173 is included first, then limits.h is included by locale.h by libintl.h.
43174 From John David Anglin.
43176 2000-04-25 Jim Meyering <meyering@lucent.com>
43178 * lib/makepath.c (S_IRWXUGO): Define.
43179 (make_path): Always perform explicit chmod if MODE specifies any
43180 of the `special' permission bits. Prompted by a bug report against
43181 install from Mate Wierdl and Joost van Baal.
43183 2000-04-18 Jim Meyering <meyering@lucent.com>
43185 * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
43186 (jm_PREREQ): Use it.
43188 2000-04-18 Jim Meyering <meyering@lucent.com>
43190 * lib/README: New file.
43192 * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
43193 getpagesize. For BeOS. Based on a patch from Bruno Haible.
43195 2000-04-17 Jim Meyering <meyering@lucent.com>
43198 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
43199 actual #define via AH_VERBATIM. Don't need separate AC_DEFINE.
43200 Suggestion from Akim Demaille.
43202 2000-04-17 Jim Meyering <meyering@lucent.com>
43204 * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
43205 the definition of it to rpl_strftime also defined-away the system's
43208 2000-04-15 Jim Meyering <meyering@lucent.com>
43210 Use `C' to denote so-called `contiguous' files, the same way
43212 * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
43213 (ftypelet): Use S_ISCTG.
43214 From Michael Deutschmann.
43216 2000-04-14 Jim Meyering <meyering@lucent.com>
43218 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
43219 form of AC_DEFINE. Otherwise, the #ifndef in AH_VERBATIM gets
43222 2000-04-14 Jim Meyering <meyering@lucent.com>
43224 * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
43226 2000-04-13 Jim Meyering <meyering@lucent.com>
43228 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
43229 AH_VERBATIM to insert required #ifndef into config.h.in.
43230 Suggestion from Akim Demaille.
43232 2000-04-12 Jim Meyering <meyering@lucent.com>
43234 * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
43235 `AC_CHECK_HEADER' to check for locale.h. Thanks to a report from
43236 Christian Krackowizer.
43238 More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
43239 * m4/jm-macros.m4 (_GNU_SOURCE): Define.
43240 (AC_SYS_LARGEFILE): Require.
43241 (AM_C_PROTOTYPES): Require.
43243 2000-04-08 Jim Meyering <meyering@lucent.com>
43245 * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
43246 names don't conflict. Reported by Eli Zaretskii.
43248 2000-04-07 Jim Meyering <meyering@lucent.com>
43250 * lib/putenv.c: Move inclusion of errno.h so it follows that of
43251 sys/types.h, to work around system header problems on AIX 3.2.5.
43254 2000-04-07 Bruno Haible <haible@clisp.cons.org>
43256 * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
43257 bug. Deal with the different error behavior of Irix iconv.
43259 2000-04-05 Paul Eggert <eggert@twinsun.com>
43261 * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
43262 IRIX if the installer said otherwise.
43264 2000-04-05 Jim Meyering <meyering@lucent.com>
43266 Portability tweaks required for ultrix4.3.
43267 * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
43268 (jm_CHECK_DECLS): Add getutent to the list of functions.
43269 (_jm_DECL_HEADERS): Add utmpx.h.
43270 From John David Anglin.
43272 * m4/strftime.m4: Back out the 2000-04-02 change.
43273 Instead of that change, simply undefine putenv in the test program.
43275 2000-04-05 Jim Meyering <meyering@lucent.com>
43277 Portability tweaks required for ultrix4.3.
43278 * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
43280 * lib/readutmp.c: Include sys/types.h before sys/stat.h.
43281 * lib/canon-host.c: Declare strdup.
43282 * lib/path-concat.c: Likewise.
43283 From John David Anglin.
43285 2000-04-04 Jim Meyering <meyering@lucent.com>
43287 Be more DOS 8.3-friendly.
43288 * lib/ref-add.sin: Renamed from ref-add.sed.in.
43289 * lib/ref-del.sin: Renamed from ref-del.sed.in.
43290 * lib/Makefile.am: Reflect renaming.
43291 Reported by Eli Zaretskii.
43293 Use a temporary file name that won't clash with `charset.alias'
43294 in the DOS 8.3 name space.
43295 * lib/Makefile.am (charset_tmp): Define.
43296 (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
43297 (uninstall-local): Likewise.
43298 Reported by Eli Zaretskii.
43300 2000-04-03 Jim Meyering <meyering@lucent.com>
43302 * m4/gettext.m4: Fix typo in comment.
43304 * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
43305 textutils/configure.in). Suggestion from Paul Eggert.
43306 (AC_CHECK_FUNCS): Add nl_langinfo. (also from textutils/configure.in)
43308 2000-04-02 Paul Eggert <eggert@twinsun.com>
43310 * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
43311 variable in the shell rather than using putenv, which isn't
43312 portable. This avoids the configure-time inter-test dependency
43313 on the potentially-renamed putenv function.
43315 2000-03-30 Paul Eggert <eggert@twinsun.com>
43317 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
43318 before checking struct stat.st_blksize, so that
43319 HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
43321 2000-03-29 Paul Eggert <eggert@twinsun.com>
43323 * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
43324 since strftime.c uses HAVE_STRFTIME to decide whether to use
43325 the underlying strftime.
43327 2000-03-29 Paul Eggert <eggert@twinsun.com>
43329 * lib/time/strftime.c (my_strftime): Make sure we call the system
43330 strftime, not ourselves, when invoking the underlying strftime.
43332 2000-03-24 Jim Meyering <meyering@lucent.com>
43334 * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
43335 (charset_alias): Define.
43336 (install-exec-local): Factor out common code.
43337 (uninstall-local): Split lines longer than 80.
43338 (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
43339 (SUFFIXES): Define.
43340 (.sed.in.sed): New rule. Don't redirect directly to $@.
43341 (CLEANFILES): Add ref-add.sed and ref-del.sed.
43343 2000-03-19 Bruno Haible <haible@clisp.cons.org>
43345 * lib/config.charset: Output a line containing "Packages using this
43347 * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
43348 * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
43349 ref-del.sed): New rules.
43351 2000-03-17 Jim Meyering <meyering@lucent.com>
43353 * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
43354 Otherwise, include <strings.h>
43356 2000-03-17 Bruno Haible <haible@clisp.cons.org>
43358 * lib/unicodeio.c (utf8_wctomb): New function.
43359 (print_unicode_char): Pass the Unicode character to iconv in UTF-8
43360 format instead of in UCS-4 with platform dependent endianness.
43362 2000-03-10 Jim Meyering <meyering@lucent.com>
43364 * m4/lib-check.m4: Look for getspnam in -lgen, too.
43365 From Marco Franzen.
43367 2000-03-07 Paul Eggert <eggert@twinsun.com>
43369 * lib/savedir.c (savedir): Work even if directory size is
43370 negative; this can happen with some screwy NFS configurations.
43372 2000-03-06 Jim Meyering <meyering@lucent.com>
43374 * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
43375 if it's NULL (because we ran out of memory). From Bruno Haible.
43377 2000-03-05 Jim Meyering <meyering@lucent.com>
43379 * lib/localcharset.c ("path-concat.h"): Include.
43380 (get_charset_aliases): Use path_concat instead of ANSI string
43383 * lib/unicodeio.h (PARAMS): Define.
43384 Use it to guard prototype.
43386 2000-03-04 Jim Meyering <meyering@lucent.com>
43388 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
43389 for lib/localcharset.c.
43391 2000-03-04 Jim Meyering <meyering@lucent.com>
43393 * lib/Makefile.am (install-exec-local): Create $(libdir) before
43394 installing into it.
43395 (uninstall-local): Uncomment this rule so `make distcheck' works
43398 * lib/unicodeio.c (<errno.h>): Include it.
43399 (errno): Declare if not defined.
43401 * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
43403 * lib/config.charset: New version, incorporating remarks from a linux
43404 i18n mailing list. From Bruno Haible.
43406 2000-03-04 Bruno Haible <haible@clisp.cons.org>
43408 * m4/codeset.m4: New file.
43409 * m4/iconv.m4: New file.
43410 * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
43412 2000-03-03 Jim Meyering <meyering@lucent.com>
43414 * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
43416 2000-03-02 Jim Meyering <meyering@lucent.com>
43418 * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
43419 the messages come out on separate lines.
43421 * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
43422 rather than jm_CHECK_DECLARATIONS.
43423 * m4/decl.m4: Remove now-unused file.
43425 * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
43428 2000-03-02 Jim Meyering <meyering@lucent.com>
43430 * lib/Makefile.am (EXTRA_DIST): Add config.charset.
43432 2000-03-01 Jim Meyering <meyering@lucent.com>
43434 * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
43435 * lib/unicodeio.c: Likewise.
43437 2000-03-01 Bruno Haible <haible@clisp.cons.org>
43439 * lib/config.charset: New file.
43440 * lib/localcharset.c: New file.
43441 * lib/unicodeio.h, lib/unicodeio.c: New files.
43442 * lib/Makefile.am (DEFS): Add -DLIBDIR=...
43443 (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
43444 (noinst_HEADERS): Add unicodeio.h.
43445 (all-local, install-exec-local, charset.alias): New targets.
43447 2000-02-28 Paul Eggert <eggert@twinsun.com>
43449 * lib/quotearg.c (ALERT_CHAR): New macro.
43450 (quotearg_buffer_restyled): Use it.
43452 2000-02-27 Jim Meyering <meyering@lucent.com>
43454 * m4/check-decl.m4: Add getenv to the list.
43456 2000-02-27 Jim Meyering <meyering@lucent.com>
43458 * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
43459 Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
43461 * lib/backupfile.c: Guard inclusion of stdlib.h with
43462 `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
43463 Declare malloc if needed.
43465 * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
43466 `#ifndef HAVE_DECL..'
43467 now that autoconf always defines the HAVE_DECL_ symbols.
43468 * lib/human.c: Likewise.
43469 * lib/same.c: Likewise.
43470 * lib/strtoumax.c: Likewise.
43472 * lib/backupfile.c: Arrange for cpp to fail if the configure-time
43473 declaration check was not run.
43474 * lib/hash.c: Likewise.
43475 * lib/human.c: Likewise.
43476 * lib/same.c: Likewise.
43477 * lib/strtoumax.c: Likewise.
43479 * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
43480 `.', then first look up the entire `.'-containing string as a login
43483 2000-02-23 Jim Meyering <meyering@lucent.com>
43485 * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
43486 in place of my hack.
43488 2000-02-18 Paul Eggert <eggert@twinsun.com>
43490 * lib/getdate.y: Handle two-digit years with leading zeros correctly.
43491 (textint): New typedef.
43492 (parser_control): Member year changed from int to textint.
43494 (YYSTYPE): Removed; replaced by %union with int and textint members.
43495 (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
43496 tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
43497 tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
43498 (tSNUMBER, tUNUMBER): Now of type <textintval>.
43499 (date, number, to_year): Use width of number in digits, not its value,
43500 to determine whether it's a 2-digit year, or a 2-digit time.
43501 (yylex): Store number of digits of numeric tokens.
43502 Reported by John Kendall.
43504 (parser_control): Changed from struct parser_control to typedef (for
43505 consistency). All uses changed.
43507 (tID): Removed; not used.
43508 (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
43510 2000-02-14 Paul Eggert <eggert@twinsun.com>
43512 * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
43513 adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
43515 2000-02-12 Jim Meyering <meyering@lucent.com>
43517 * lib/userspec.c (ISDIGIT): Define it.
43518 (isdigit): Remove definition.
43519 (is_number): Use ISDIGIT, not isdigit.
43520 <libintl.h>: Include.
43521 (_ and N_): Define.
43522 (parse_user_spec): Mark translatable strings.
43524 2000-02-10 Jim Meyering <meyering@lucent.com>
43526 With these changes, nanosleep.[ch] are finally enough like the other
43527 lib/* replacement files to compile on a few more losing systems.
43529 * lib/nanosleep.h: Don't include config.h.
43530 Remove prototype from declaration of nanosleep.
43531 (PARAMS): Remove now-unneeded definition.
43532 * lib/nanosleep.c: #undef nanosleep.
43533 (rpl_nanosleep): Rename from nanosleep.
43535 2000-02-10 Jim Meyering <meyering@lucent.com>
43537 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
43538 gnu_nanosleep to rpl_nanosleep.
43540 2000-02-09 Jim Meyering <meyering@lucent.com>
43542 * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
43543 struct spwd, rather than in struct passwd. Reported by Gaël Quéri.
43545 2000-02-08 Akim Demaille <akim@epita.fr>
43547 * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
43548 `[' and `]' and remove uses of `changequote'.
43549 (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
43550 (AC_SYS_LARGEFILE): Likewise.
43551 * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
43552 * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
43554 * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
43555 * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
43556 * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
43557 * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
43559 2000-02-05 Jim Meyering <meyering@lucent.com>
43561 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
43562 Remove explicit use of AC_HEADER_TIME. It is required by
43563 jm_CHECK_TYPE_STRUCT_TIMESPEC. Using AC_HEADER_TIME and
43564 `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
43565 in autoconf whereby the expansion of the latter ended up preceding
43566 the expansion of its prerequisite, AC_HEADER_TIME.
43567 Reported by Volker Borchert.
43569 2000-02-03 Jim Meyering <meyering@lucent.com>
43571 * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
43573 2000-02-03 Jim Meyering <meyering@lucent.com>
43575 * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
43576 rather than with `#if HAVE_UTMPNAME'.
43578 2000-02-02 Jim Meyering <meyering@lucent.com>
43580 * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
43581 definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
43582 Reported by Eli Zaretskii.
43584 2000-02-01 Jim Meyering <meyering@lucent.com>
43586 * lib/readutmp.h (UT_USER): Add parens. From Andreas Schwab.
43588 2000-01-31 Jim Meyering <meyering@lucent.com>
43590 * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
43591 functions. Add the time.h and sys/time.h headers along with the
43592 AC_REQUIRE'ment of AC_HEADER_TIME.
43594 2000-01-31 Jim Meyering <meyering@lucent.com>
43596 * lib/nanosleep.h (nanosleep): Guard declaration with
43597 `#if ! HAVE_DECL_NANOSLEEP'.
43598 Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
43599 the declaration in that vendor's sys/timers.h.
43600 Reported by Christian Krackowizer.
43602 * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
43603 inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
43604 (ISPRINT): Likewise.
43605 Reported by Tom Tromey.
43607 2000-01-30 Jim Meyering <meyering@lucent.com>
43609 * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
43611 * m4/prereq.m4 (utmp_includes): Define.
43612 Check for ut_user and ut_name members in both struct utmpx
43615 2000-01-30 Jim Meyering <meyering@lucent.com>
43617 * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
43618 hard-coding uses of ->ut_name. The latter doesn't work with new Linux
43619 header files where only utmpx.ut_user is declared.
43621 * lib/readutmp.h (UT_USER): Define.
43623 2000-01-29 Jim Meyering <meyering@lucent.com>
43625 * m4/lib-check.m4: New file containing library-related checks from
43626 fileutils and sh-utils (textutils had none).
43628 2000-01-28 Jim Meyering <meyering@lucent.com>
43630 * m4/perl.m4: Change format of warning message to look more like that
43631 from the missing script. Suggestion from François Pinard.
43633 2000-01-25 Jim Meyering <meyering@lucent.com>
43635 * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
43636 well as time.h in the compile check.
43637 * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
43638 Fix typo in cross-compiling case: s/yes/no/.
43640 2000-01-23 Jim Meyering <meyering@lucent.com>
43642 * m4/jm-macros.m4: Move df-related tests here from
43643 fileutils/configure.in
43645 * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
43646 (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
43648 * m4/fsusage.m4: New file. Extracted from fileutils/configure.in.
43649 s/space/ac_fsusage_space/.
43650 (jm_FILE_SYSTEM_USAGE): Take two parameters.
43652 * m4/ftruncate.m4: New file (derived from part of
43653 fileutils/configure.in).
43654 * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
43655 (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
43657 * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
43658 AC_SUBST these here, rather than just in sh-util/configure.in, so
43659 that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
43661 (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
43662 (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
43663 (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
43664 (AC_SUBST(POW_LIBM)): Likewise.
43665 (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
43667 2000-01-23 Jim Meyering <meyering@lucent.com>
43669 * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
43672 2000-01-22 Jim Meyering <meyering@lucent.com>
43674 * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
43676 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
43678 * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
43680 (AC_CHECK_HEADERS): Likewise for sh-utils.
43681 (AC_CHECK_HEADERS): Likewise for textutils.
43682 Merge the three lists of headers.
43684 * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro. Parts moved here
43685 from fileutils' configure.in.
43687 * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
43688 code. Moved tests into their own function (_jm_DECL_HEADERS) in
43691 * m4/check-decl.m4: Use #if rather than #ifdef.
43692 Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
43693 (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
43694 (_jm_DECL_HEADERS): Define new function.
43695 (jm_CHECK_DECLARATIONS): Require it.
43697 2000-01-22 Jim Meyering <meyering@lucent.com>
43699 * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
43700 [! HAVE_DECL_STRTOULL]: Declare strtoull.
43701 Required for some AIX systems. Reported by Christian Krackowizer.
43702 [TESTING] (main): New function.
43704 1997-10-17 Eli Zaretskii <eliz@is.elta.co.il>
43705 * lib/dirname.c (dir_name): Support for DOS-style file names with drive
43708 * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
43711 * lib/strverscmp.c (ISDIGIT): Define.
43712 (strverscmp): Use ISDIGIT, not isdigit.
43714 2000-01-19 Jim Meyering <meyering@lucent.com>
43716 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
43717 Use AC_HEADER_TIME. Volker Borchert reported that OpenBSD-2.3/sparc
43718 defines `struct timespec' in <sys/time.h>
43720 * m4/c-bs-a.m4: Remove uses of changequote altogether.
43721 Thanks to Akim for explaining.
43723 2000-01-17 Paul Eggert <eggert@twinsun.com>
43725 * lib/nanosleep.c (nanosleep):
43726 Don't use SA_INTERRUPT to decide whether to call sigaction, as
43727 POSIX.1 doesn't require SA_INTERRUPT and some systems
43728 (e.g. Solaris 7) don't define it. Use SA_NOCLDSTOP instead;
43729 it's been part of POSIX.1 since day 1 (in 1988).
43731 2000-01-17 Jim Meyering <meyering@lucent.com>
43733 * lib/interlock: Remove unused file. Reported by François Pinard.
43735 2000-01-16 Paul Eggert <eggert@twinsun.com>
43737 * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
43738 alert, backslash, formfeed, and vertical tab unnecessarily in
43739 shell quoting style.
43741 2000-01-16 Jim Meyering <meyering@lucent.com>
43743 * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
43744 AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
43745 jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
43746 AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
43748 2000-01-16 Jim Meyering <meyering@lucent.com>
43750 * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
43751 because the latter didn't work.
43753 2000-01-15 Jim Meyering <meyering@lucent.com>
43755 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
43756 (AC_REPLACE_FUNCS): Add memcpy and memset.
43757 Add these, too: stime strcspn stpcpy strstr strtol strtoul.
43759 Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
43761 2000-01-12 Jim Meyering <meyering@lucent.com>
43763 * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
43764 (jm_PREREQ): Use it.
43765 (jm_PREREQ_READUTMP): New macro.
43766 (jm_PREREQ): Use it.
43768 2000-01-11 Paul Eggert <eggert@twinsun.com>
43770 Quote multibyte characters correctly.
43771 * m4/c-bs-a.m4: New file.
43772 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
43773 (jm_PREREQ): Use it.
43775 2000-01-11 Paul Eggert <eggert@twinsun.com>
43777 * m4/uintmax_t.m4: Port to autoconf 2.13.
43779 2000-01-08 Jim Meyering <meyering@ascend.com>
43781 * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
43782 * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
43784 2000-01-04 Jim Meyering <meyering@ascend.com>
43786 * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
43787 jm_STRUCT_DIRENT_D_TYPE.
43788 * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
43789 jm_STRUCT_DIRENT_D_INO.
43790 * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
43792 * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
43794 * m4/utime.m4: Likewise.
43796 * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
43797 * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
43799 2000-01-03 Paul Eggert <eggert@twinsun.com>
43801 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
43802 (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
43804 2000-01-02 Jim Meyering <meyering@ascend.com>
43806 * m4/search-libs.m4: Escape `$' in $3 of dnl comment. I no longer
43807 remember if this is necessary.
43809 1999-12-26 Jim Meyering <meyering@ascend.com>
43811 * m4/jm-macros.m4: Use it here.
43812 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
43814 1999-12-23 Jim Meyering <meyering@ascend.com>
43816 * m4/jm-macros.m4: Check for clock_gettime (moved from
43817 fileutils/configure.in)
43818 Check for gettimeofday.
43820 1999-12-20 Jim Meyering <meyering@ascend.com>
43822 * m4/strftime.m4: Remove kludge, now that I'm using the fixed
43823 autoconf-2.14a-1999-12-20.
43825 1999-12-19 Jim Meyering <meyering@ascend.com>
43827 * m4/lstat-slash.m4: New file.
43828 * m4/jm-macros.m4: Use the new macro:
43829 jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
43831 1999-12-07 Jim Meyering <meyering@ascend.com>
43833 * m4/perl.m4: Require that File::Compare be available, too.
43834 Too many systems seem to lack it.
43836 * m4/strftime.m4: Add checks for most of the cpp macros tested in
43837 GNU's strftime.c. Prompted by a patch from Paul Eggert.
43839 1999-11-18 Paul Eggert <eggert@twinsun.com>
43841 * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
43842 problem with the QNX 4.25 shell, which doesn't propagate exit
43843 status of failed commands inside shell assignments.
43845 1999-11-17 Jim Meyering <meyering@ascend.com>
43847 * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
43849 1999-11-07 Jim Meyering <meyering@ascend.com>
43851 * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
43853 1999-11-06 Jim Meyering <meyering@ascend.com>
43855 * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
43856 * m4/jm-macros.m4 (jm_MACROS): Use it here.
43858 1999-11-05 Jim Meyering <meyering@ascend.com>
43860 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
43861 configure.in of textutils, fileutils, and sh-utils into this one
43862 (shared between those packages) file.
43863 Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
43864 AC_STRUCT_ST_BLKSIZE.
43866 1999-11-03 Jim Meyering <meyering@ascend.com>
43868 * m4/ssize_t.m4: Remove file. No longer needed since the new version
43869 of AC_CHECK_TYPE checks includes unistd.h.
43870 * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
43871 Suggestion from Akim Demaille.
43873 1999-10-30 Jim Meyering <meyering@ascend.com>
43875 * m4/uintmax_t.m4: Require 2.14a. Remove backslash before backtick in
43877 * m4/ls-mntd-fs.m4: Likewise.
43878 * m4/jm-macros.m4: Likewise. Also, use AC_TYPE_SSIZE_T instead
43879 * m4/jm-winsz1.m4: Likewise.
43881 * m4/const.m4: Remove file, since the fix made it into the experimental
43882 version of autoconf.
43883 * m4/mktime.m4: Likewise.
43885 * m4/check-type.m4: Remove file, now that the latest version of
43886 AC_CHECK_TYPE takes a third arg to specify additional #includes.
43888 * m4/ssize_t.m4: New file, requires experimental version of autoconf.
43889 * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
43892 1999-10-04 Jim Meyering <meyering@ascend.com>
43894 * m4/jm-macros.m4: Don't require autoconf-2.14.1.
43896 1999-09-22 Paul Eggert <eggert@twinsun.com>
43898 * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
43899 2.95.1 bug with HP-UX 10.20.
43901 1999-09-17 Jim Meyering <meyering@ascend.com>
43903 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
43904 Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
43905 due to missing strdup (against sh-utils-2.0).
43907 1999-08-29 Jim Meyering <meyering@ascend.com>
43909 * m4/jm-macros.m4: Require jm_BISON.
43910 * m4/bison.m4: New file.
43912 1999-08-17 Paul Eggert <eggert@twinsun.com>
43914 * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
43915 in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
43917 1999-08-05 Jim Meyering <meyering@ascend.com>
43919 * m4/getline.m4: Rename test file from conftestdata to conftest.data
43920 to avoid conflicts with `conftest' on 8+3 filesystems.
43921 Suggestion from Eli Zaretskii.
43923 1999-08-04 Jim Meyering <meyering@ascend.com>
43925 * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
43926 fileutils and sh-utils (textutils's getline test was inadequate).
43927 (AM_FUNC_GETLINE): Run this test.
43928 (AC_CHECK_FUNCS): Check for getdelim.
43929 Reported by Bob Proulx.
43931 1999-08-02 Jim Meyering <meyering@ascend.com>
43933 * m4/jm-macros.m4: Add a comment.
43935 1999-08-01 Paul Eggert <eggert@twinsun.com>
43937 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
43938 <inttypes.h> defines strtoumax as a macro (and not as a
43941 1999-08-01 Paul Eggert <eggert@twinsun.com>
43943 * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
43944 that we can shift, multiply and divide unsigned long long
43945 values; Ultrix cc can't do it.
43947 1999-08-01 Paul Eggert <eggert@twinsun.com>
43949 * m4/mktime.m4: New file, which is a preview of what should appear
43950 in the next public autoconf release.
43952 1999-08-01 Paul Eggert <eggert@twinsun.com>
43954 * m4/lfs.m4: Remove this file.
43955 * m4/largefile.m4: New file. It contains the old contents of
43956 lfs.m4, except that all names with prefix AC_LFS have been
43957 changed to use the prefix AC_SYS_LARGEFILE instead, to be
43958 compatible with future autoconf versions. Also, some minor m4
43959 quoting problems have been fixed.
43961 1999-08-01 Paul Eggert <eggert@twinsun.com>
43963 * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
43964 Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
43965 (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
43966 and simplify the shell code.
43968 1999-08-01 Jim Meyering <meyering@ascend.com>
43970 * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
43973 1999-07-20 Jim Meyering <meyering@ascend.com>
43975 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
43977 1999-07-15 Jim Meyering <meyering@ascend.com>
43979 * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
43981 1999-05-22 Jim Meyering <meyering@ascend.com>
43983 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
43985 1999-05-20 Jim Meyering <meyering@ascend.com>
43987 * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
43988 Add a colon after each `then' in case $4 is empty.
43990 1999-05-16 Jim Meyering <meyering@ascend.com>
43992 * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
43994 1999-05-10 Jim Meyering <meyering@ascend.com>
43996 * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
43998 * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
44001 1999-05-10 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
44003 * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
44005 1999-05-04 Paul Eggert <eggert@twinsun.com>
44007 * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
44008 not CPPFLAGS, so that linking works correctly in IRIX.
44010 1999-04-30 Paul Eggert <eggert@twinsun.com>
44012 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
44014 1999-04-20 Paul Eggert <eggert@twinsun.com>
44016 * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
44017 long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
44018 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
44019 jm_AC_TYPE_UNSIGNED_LONG_LONG.
44020 * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
44022 * m4/lfs.m4: Port to AIX and HP-UX. Support cross-compilation.
44024 1999-04-20 Jim Meyering <meyering@ascend.com>
44026 * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
44027 AC_REPLACE xstroull if necessary. From Paul Eggert.
44028 (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
44030 1999-04-18 Jim Meyering <meyering@ascend.com>
44032 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
44033 * m4/jm-macros.m4: Use it.
44035 1999-04-06 Jim Meyering <meyering@ascend.com>
44037 * m4/strftime.m4: Remove test for %f.
44039 1999-03-29 Jim Meyering <meyering@ascend.com>
44041 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
44042 superset of the AC_TYPE_* checks in the textutils, fileutils,
44043 and sh-utils, plus AC_TYPE_PID_T. Paul Eggert suggested adding
44046 1999-03-28 Jim Meyering <meyering@ascend.com>
44048 * m4/jm-macros.m4: Define GNU_PACKAGE here.
44049 Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
44050 replaced e.g., in the *.sh files of the sh-utils.
44052 1999-03-20 Jim Meyering <meyering@ascend.com>
44054 * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
44055 * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
44056 Don't depend on AM_GLIBC. Suggestions from Alain Magloire.
44058 1999-03-19 Jim Meyering <meyering@ascend.com>
44060 * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
44062 1999-03-12 Jim Meyering <meyering@ascend.com>
44064 * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
44066 1999-03-07 Jim Meyering <meyering@ascend.com>
44068 * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
44071 1999-02-17 Jim Meyering <meyering@ascend.com>
44073 * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
44074 brackets in macro definition. From Eli Zaretskii and Alain Magloire.
44076 1999-02-07 Jim Meyering <meyering@ascend.com>
44078 * m4/group-member.m4: New file -- extracted from sh-utils'
44081 1999-02-05 Eli Zaretskii <eliz@is.elta.co.il>
44082 * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
44084 1999-02-06 Jim Meyering <meyering@ascend.com>
44086 * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
44087 * m4/fnmatch.m4: Likewise.
44088 * m4/getgroups.m4: Likewise.
44089 * m4/lstat.m4: Likewise.
44090 * m4/malloc.m4: Likewise.
44091 * m4/putenv.m4: Likewise.
44092 * m4/realloc.m4: Likewise.
44093 * m4/regex.m4: Likewise.
44094 * m4/stat.m4: Likewise.
44095 * m4/strftime.m4: Likewise.
44096 Suggestion from Alain Magloire.
44098 * m4/chown.m4: Use `.$ac_objext', not `.o'.
44099 * m4/fnmatch.m4: Likewise.
44100 * m4/getgroups.m4: Likewise.
44101 * m4/getline.m4: Likewise.
44102 * m4/lstat.m4: Likewise.
44103 * m4/malloc.m4: Likewise.
44104 * m4/memcmp.m4: Likewise.
44105 * m4/putenv.m4: Likewise.
44106 * m4/realloc.m4: Likewise.
44107 * m4/regex.m4: Likewise.
44108 * m4/stat.m4: Likewise.
44109 * m4/strftime.m4: Likewise.
44110 Suggestion from Alain Magloire.
44112 * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
44115 * m4/regex.m4: Add a run-time Test for proper operation of
44116 re_compile_pattern.
44118 1999-01-31 Jim Meyering <meyering@ascend.com>
44120 * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
44122 1999-01-30 Jim Meyering <meyering@ascend.com>
44124 * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
44126 * m4/jm-mktime.m4: Make this a wrapper around the official
44127 AM_FUNC_MKTIME rather than my private copy, now that the official one
44129 * m4/mktime.m4: Remove file.
44131 * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
44132 * m4/uptime.m4: Likewise.
44133 * m4/uintmax_t.m4: Likewise.
44135 1999-01-28 Jim Meyering <meyering@ascend.com>
44137 * m4/jm-macros.m4: Use jm_AFS.
44138 * m4/afs.m4: New file (from fileutils' configure.in).
44140 * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
44141 * m4/chown.m4: Likewise.
44142 * m4/d-ino.m4: Likewise.
44143 * m4/d-type.m4: Likewise.
44144 * m4/fnmatch.m4: Likewise.
44145 * m4/getgroups.m4: Likewise.
44146 * m4/gettext.m4: Likewise.
44147 * m4/jm-mktime.m4: Likewise.
44148 * m4/jm-winsz2.m4: Likewise.
44149 * m4/lcmessage.m4: Likewise.
44150 * m4/ls-mntd-fs.m4: Likewise.
44151 * m4/malloc.m4: Likewise.
44152 * m4/memcmp.m4: Likewise.
44153 * m4/putenv.m4: Likewise.
44154 * m4/realloc.m4: Likewise.
44155 * m4/st_mtim.m4: Likewise.
44156 * m4/strftime.m4: Likewise.
44158 1999-01-16 Jim Meyering <meyering@ascend.com>
44160 * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
44161 (ARGMATCH_DIE_DECL): Define.
44163 1999-01-12 Jim Meyering <meyering@ascend.com>
44165 * m4/Makefile.am.in: Rewrite to avoid using fmt.
44166 Reported by Lars Hecking.
44168 1999-01-10 Jim Meyering <meyering@ascend.com>
44170 * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
44172 * m4/inttypes_h.m4: Likewise.
44173 * m4/lstat.m4: Likewise.
44174 * m4/malloc.m4: Likewise.
44175 * m4/readdir.m4: Likewise.
44176 * m4/realloc.m4: Likewise.
44177 * m4/st_dm_mode.m4: Likewise.
44178 * m4/stat.m4: Likewise.
44179 * m4/utimbuf.m4: Likewise.
44180 * m4/utimes.m4: Likewise.
44182 * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
44183 AC_CHECK_FUNCS hack. Now, it's still a hack, but at least the
44184 comments in config.h.in are meaningful.
44186 * m4/jm-macros.m4: Require autoconf-2.13 here.
44188 * m4/regex.m4: By default, don't use the included regex.c on systems
44189 with glibc 2. Suggestion from Uli Drepper.
44191 1999-01-02 Jim Meyering <meyering@ascend.com>
44193 * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
44195 1998-12-18 Jim Meyering <meyering@ascend.com>
44197 * m4/Makefile.am.in (Makefile.am): Simplify rule.
44198 Based on a suggestion from Lars Hecking.
44200 1998-11-16 Paul Eggert <eggert@twinsun.com>
44202 * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
44204 1998-11-16 Jim Meyering <meyering@ascend.com>
44206 * m4/lfs.m4: Double-quote the `uname...` expression.
44208 1998-11-14 Jim Meyering <meyering@ascend.com>
44210 * m4/lstat.m4: Correct comment. POSIX does not permit it to succeed.
44211 * m4/stat.m4: Likewise.
44213 1998-11-03 Jim Meyering <meyering@ascend.com>
44215 * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
44216 * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
44218 1998-10-18 Jim Meyering <meyering@ascend.com>
44220 * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
44222 1998-10-17 Jim Meyering <meyering@ascend.com>
44224 * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
44225 include, though we still hard-code the `require'-like AC_CHECK_HEADERS
44226 calls for those previously hard-coded headers. Instead, take a new
44228 (jm_CHECK_DECLARATIONS): Reflect interface change.
44229 * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
44230 (jm_CHECK_DECL_LOCALTIME_R): New macro.
44232 * m4/mktime.m4: Test for spring-forward gap before long-running test.
44234 1998-10-14 Jim Meyering <meyering@ascend.com>
44236 * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
44237 instead of "TZ=America/Vancouver". From Paul Eggert.
44239 1998-10-11 Jim Meyering <meyering@ascend.com>
44241 * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
44242 This adds a test for a recently added compatibility fix for mktime.c.
44243 * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
44245 1998-09-27 Jim Meyering <meyering@ascend.com>
44247 * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
44249 * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro. Extracted from
44250 ../configure.in, including a change from Gordon Matzigkeit to allow
44251 cross-compiling for the Hurd.
44253 * m4/glibc.m4: New file/macro to test for the GNU C Library
44254 versions 1 and 2. From Gordon Matzigkeit.
44257 1998-09-21 Jim Meyering <meyering@ascend.com>
44259 * m4/chown.m4: Declare locals: before, after. From Andries Brouwer.
44261 1998-08-18 Paul Eggert <eggert@twinsun.com>
44263 Port nanosecond-resolution times to UnixWare 2.1.2 and
44264 pedantic Solaris 2.6.
44266 * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
44268 * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
44269 Generate name of ns member, instead of just 1 or undef.
44270 Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
44272 1998-08-15 Jim Meyering <meyering@ascend.com>
44274 * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
44275 * m4/check-type.m4: New file. Replacement for AC_CHECK_TYPE.
44276 * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
44277 instead of jm_TYPE_SSIZE_T.
44279 1998-08-12 Jim Meyering <meyering@ascend.com>
44281 * m4/st_dm_mode.m4: New file. From Johan Danielsson.
44283 1998-08-02 Jim Meyering <meyering@ascend.com>
44285 * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
44286 in acconfig.h manually.
44288 1998-07-31 Paul Eggert <eggert@twinsun.com>
44290 * m4/st_mtim.m4: New file.
44292 1998-07-28 Jim Meyering <meyering@ascend.com>
44294 * m4/utimes.m4: Undef stat.
44296 1998-07-25 Jim Meyering <meyering@ascend.com>
44298 * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
44299 * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
44301 1998-07-09 Manfred Hollstein <manfred@s-direktnet.de>
44303 * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
44304 uid and gid actually remain unchanged.
44306 1998-07-07 Jim Meyering <meyering@ascend.com>
44308 * m4/jm-glibc-io.m4: Remove fclose_unlocked.
44310 1998-07-04 Jim Meyering <meyering@ascend.com>
44312 * m4/regex.m4: Use syscmd, ifelse, and sysval. Mainly as an exercise
44313 to prove that this macro can be used in packages without regex.c.
44315 1998-07-04 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
44317 * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
44320 1998-07-03 Jim Meyering <meyering@ascend.com>
44322 * m4/gettext.m4: Add -lintl if it's found to be necessary.
44324 * m4/gettext.m4: New file -- from gettext-0.10.35.
44325 * m4/lcmessage.m4: Likewise.
44326 * m4/progtest.m4: Likewise.
44328 * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
44329 * m4/jm-macros.m4: Require the new macro.
44331 1998-06-29 Jim Meyering <meyering@ascend.com>
44333 * m4/fstypename.m4: Include sys/param.h. NetBSD 1.3.1 requires this
44334 for the definition of NGROUPS (used in a system header included
44337 1998-06-28 Jim Meyering <meyering@ascend.com>
44339 * m4/ls-mntd-fs.m4: New file.
44340 * m4/fstypename.m4: New file.
44342 * m4/jm-macros.m4: Require the new macro.
44343 * m4/jm-glibc-io.m4: New file.
44345 1998-05-19 Jim Meyering <meyering@ascend.com>
44347 * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
44348 * m4/lchown.m4: New file.
44350 * m4/Makefile.am.in: New file.
44351 * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
44353 1998-05-14 Jim Meyering <meyering@ascend.com>
44355 * m4/Makefile.am (EXTRA_DIST): Add them.
44356 * m4/jm-macros.m4: New file.
44357 * m4/utimbuf.m4: New file.
44359 1998-05-12 Jim Meyering <meyering@ascend.com>
44361 * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
44363 1998-05-11 Jim Meyering <meyering@ascend.com>
44365 * m4/isc-posix.m4: New file.
44367 1998-05-10 Jim Meyering <meyering@ascend.com>
44369 * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
44371 1998-05-09 Jim Meyering <meyering@ascend.com>
44373 * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
44374 (EXTRA_DIST): Remove mktime.m4, now that the new version is included
44377 * m4/ssize_t.m4: New file.
44378 * m4/mktime.m4: Remove file -- the new automake has this now.
44380 1998-04-26 Jim Meyering <meyering@ascend.com>
44382 * m4/assert.m4: New file.
44383 * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
44385 1998-04-05 Jim Meyering <meyering@ascend.com>
44387 * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
44388 (jm_PREREQ): Use it here.
44390 1998-03-23 Jim Meyering <meyering@eng.ascend.com>
44392 * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
44395 1998-03-15 Jim Meyering <meyering@eng.ascend.com>
44397 * m4/prereq.m4: New file.
44398 * m4/error.m4: New file.
44399 * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
44401 1998-02-07 Jim Meyering <meyering@eng.ascend.com>
44403 * m4/getline.m4: Don't set am_cv_func_working_getline before the
44404 cache-check for the same variable -- that defeated the purpose of
44405 the test; the test program was never run. This was a problem only
44406 on systems with losing getline functions -- HP-UX 10.20 is one.
44407 Reported by Bjorn Helgaas.
44409 1998-02-06 Jim Meyering <meyering@eng.ascend.com>
44411 * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
44413 1998-01-10 Jim Meyering <meyering@na-net.ornl.gov>
44415 * m4/Makefile.am (EXTRA_DIST): Add const.m4.
44417 * m4/const.m4: New file. Use an initializer in this declaration
44418 typedef int charset[2]; const charset x;
44419 Reported by Bob Glickstein.
44421 1997-12-21 Jim Meyering <meyering@na-net.ornl.gov>
44423 * m4/chown.m4: Fix reversed types on -1 args to chown.
44426 1997-12-14 Jim Meyering <meyering@na-net.ornl.gov>
44428 * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
44429 Add lseek and memchr.
44431 * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
44432 T.E.Dickey <dickey@clark.net> said that some older preprocessors
44433 have a 20-character limit on names.
44435 1997-11-30 Jim Meyering <meyering@na-net.ornl.gov>
44437 * m4/inttypes_h.m4: New file.
44438 * m4/uintmax_t.m4: New file.
44439 * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
44448 Copyright (C) 1997-2008 Free Software Foundation, Inc.
44450 Copying and distribution of this file, with or without
44451 modification, are permitted provided the copyright notice
44452 and this notice are preserved.