+2003-02-05 Jonathan Larmour <jifl@eCosCentric.com>
+
+ * libc/stdio/vsprintf.c (vsprintf, _vsprintf_r): Set _file fd to
+ -1 to be sure it cannot later match a valid file fd causing
+ isatty() to return 1.
+ * libc/stdio/asprintf.c (asprintf, _asprintf_r): Ditto.
+ * libc/stdio/sprintf.c (sprintf, _sprintf_r): Ditto.
+ * libc/stdio/vasprintf.c (vasprintf, _vasprintf_r): Ditto.
+
2003-02-03 Jeff Johnston <jjohnstn@redhat.com>
* libc/stdlib/ldtoa.c (_ldtoa_r): Fix code to allocate the format
f._bf._base = f._p = NULL;
f._bf._size = f._w = 0;
f._data = ptr;
+ f._file = -1; /* No file. */
#ifdef _HAVE_STDC
va_start (ap, fmt);
#else
f._bf._base = f._p = NULL;
f._bf._size = f._w = 0;
f._data = _REENT;
+ f._file = -1; /* No file. */
#ifdef _HAVE_STDC
va_start (ap, fmt);
#else
f._bf._base = f._p = (unsigned char *) str;
f._bf._size = f._w = INT_MAX;
f._data = ptr;
+ f._file = -1; /* No file. */
#ifdef _HAVE_STDC
va_start (ap, fmt);
#else
f._bf._base = f._p = (unsigned char *) str;
f._bf._size = f._w = INT_MAX;
f._data = _REENT;
+ f._file = -1; /* No file. */
#ifdef _HAVE_STDC
va_start (ap, fmt);
#else
f._bf._base = f._p = NULL;
f._bf._size = f._w = 0;
f._data = _REENT;
+ f._file = -1; /* No file. */
ret = vfprintf (&f, fmt, ap);
*f._p = 0;
*strp = f._bf._base;
f._bf._base = f._p = NULL;
f._bf._size = f._w = 0;
f._data = ptr;
+ f._file = -1; /* No file. */
ret = _vfprintf_r (ptr, &f, fmt, ap);
*f._p = 0;
*strp = f._bf._base;
f._bf._base = f._p = (unsigned char *) str;
f._bf._size = f._w = INT_MAX;
f._data = _REENT;
+ f._file = -1; /* No file. */
ret = vfprintf (&f, fmt, ap);
*f._p = 0;
return ret;
f._bf._base = f._p = (unsigned char *) str;
f._bf._size = f._w = INT_MAX;
f._data = ptr;
+ f._file = -1; /* No file. */
ret = _vfprintf_r (ptr, &f, fmt, ap);
*f._p = 0;
return ret;