Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'newlib/libc/stdio/fvwrite.c')
-rw-r--r--newlib/libc/stdio/fvwrite.c21
1 files changed, 21 insertions, 0 deletions
diff --git a/newlib/libc/stdio/fvwrite.c b/newlib/libc/stdio/fvwrite.c
index 00e758a47..8e7d316fb 100644
--- a/newlib/libc/stdio/fvwrite.c
+++ b/newlib/libc/stdio/fvwrite.c
@@ -62,6 +62,27 @@ __sfvwrite (fp, uio)
iov = uio->uio_iov;
len = 0;
+
+#ifdef __SCLE
+ if (fp->_flags & __SCLE) /* text mode */
+ {
+ do
+ {
+ GETIOV (;);
+ while (len > 0)
+ {
+ if (putc(*p, fp) == EOF)
+ return EOF;
+ p++;
+ len--;
+ uio->uio_resid--;
+ }
+ }
+ while (uio->uio_resid > 0);
+ return 0;
+ }
+#endif
+
if (fp->_flags & __SNBF)
{
/*