Paul Eggert [Mon, 14 Aug 2006 17:58:00 +0000 (17:58 +0000)]
* solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B. SunOS 4.1.3
was Solaris 1.1A. Remove space before B in Solaris 1.1.1B.
Mention SunOS 5.11. Mention that everything before SunOS 5.7
is now obsolete, and give a pointer to the Sun list.
Add copyright notice.
Paul Eggert [Fri, 11 Aug 2006 17:42:19 +0000 (17:42 +0000)]
* snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
LEN is smaller than SIZE. Suggested by Bruno Haible.
Also, help the compiler to keep LEN in a register.
Paul Eggert [Thu, 10 Aug 2006 20:08:01 +0000 (20:08 +0000)]
Import the following changes from libc:
2006-06-02 Jakub Jelinek <jakub@redhat.com>
* posix/regex_internal.c (re_string_skip_chars): If no character has
been converted at all, set *last_wc to WEOF. If mbrtowc failed, set wc
to the byte which couldn't be converted.
(re_string_reconstruct): Don't clear valid_raw_len before calling
re_string_skip_chars. If wc is WEOF after re_string_skip_chars, set
tip_context using re_string_context_at.
2006-05-02 Ulrich Drepper <drepper@redhat.com>
* posix/regex.h: g++ still cannot handled [restrict].
Paul Eggert [Thu, 10 Aug 2006 19:32:38 +0000 (19:32 +0000)]
* modules/snprintf (Depends-on): Remove minmax.
(Maintainer): Add self.
* lib/.cppi-disable: Add snprintf.h, socket_.h.
* lib/snprintf.c: Include <errno.h> and <limits.h>.
(EOVERFLOW): Define if the system does not.
Do not include "minmax.h"; it wasn't used.
(snprintf): Don't assume size_t promotes to an unsigned type.
Fix bug when generated string was too long for the buffer: the
buffer's contents are supposed to be the initial prefix of the
output. Don't assume vasnprintf returns EOVERFLOW if the size
exceeds INT_MAX; do the check ourselves.
Jim Meyering [Thu, 10 Aug 2006 13:40:17 +0000 (13:40 +0000)]
* modules/same-inode: New module.
* modules/dev-ino: New module.
* modules/cycle-check: Depend on these modules, rather than simply
including their .h files.
(Makefile.am): Don't list cycle-check.[ch] here, now that they're
required via m4/cycle-check.m4.
* modules/same: Depend on new same-inode module, rather than
including same-inode.h.
* modules/chdir-safer: New file.
Paul Eggert [Wed, 9 Aug 2006 22:27:27 +0000 (22:27 +0000)]
Sync from coreutils.
* m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
* m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
* m4/time_r.m4 (gl_TIME_R): Likewise.
2006-07-19 Mike Frysinger <vapier@gentoo.org>
* lib/mountlist.c [ME_REMOTE]: Filter out cifs.
See <http://bugs.gentoo.org/141012>.
Paul Eggert [Fri, 28 Jul 2006 07:39:27 +0000 (07:39 +0000)]
* modechange.c (mode_compile): Numeric modes now affect setuid and
setgid on directories only if they set these bits.
* modechange.h: Remove obsolete comment about masks.
Eric Blake [Thu, 27 Jul 2006 04:34:16 +0000 (04:34 +0000)]
* mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
like mingw that lack mkstemp.
* pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
avoid compilation warning on mingw.
Paul Eggert [Sat, 22 Jul 2006 22:13:57 +0000 (22:13 +0000)]
* modules/close-stream: New file.
* modules/closeout (Description): Make it clear that it exits
with a diagnostic on error.
(Depends-on): Add close-stream. Remove fpending, stdbool.
* MODULES.html.sh (File stream based Input/Output): Add close-stream.
* lib/close-stream.c, lib/close-stream.h: New files.
* m4/close-stream.m4: New file.