mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Set stream orientation in puts().
This commit is contained in:
parent
b36dfb024f
commit
d17235e59f
1 changed files with 2 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue