From d27994efb7c06da862940c207370b5640f523340 Mon Sep 17 00:00:00 2001 From: tjr Date: Wed, 10 Mar 2004 09:15:38 +0000 Subject: [PATCH] Set stream orientation in puts(). --- lib/libc/stdio/puts.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/libc/stdio/puts.c b/lib/libc/stdio/puts.c index 3405521b8e95..3e7c4952b24d 100644 --- a/lib/libc/stdio/puts.c +++ b/lib/libc/stdio/puts.c @@ -46,6 +46,7 @@ __FBSDID("$FreeBSD$"); #include "un-namespace.h" #include "fvwrite.h" #include "libc_private.h" +#include "local.h" /* * Write the given string to stdout, appending a newline. @@ -67,6 +68,7 @@ puts(s) uio.uio_iov = &iov[0]; uio.uio_iovcnt = 2; FLOCKFILE(stdout); + ORIENT(stdout, -1); retval = __sfvwrite(stdout, &uio) ? EOF : '\n'; FUNLOCKFILE(stdout); return (retval);