summaryrefslogtreecommitdiff
path: root/src/stdio/puts.c
diff options
context:
space:
mode:
authorJakob Kaivo <jkk@ung.org>2024-05-28 12:34:30 -0400
committerJakob Kaivo <jkk@ung.org>2024-05-28 12:34:30 -0400
commitdb616c2d5cff8477336b318d889e02112fe97f9a (patch)
tree4827495015891d4492ac50e05c6fe2d430b194b0 /src/stdio/puts.c
parente6ef806ef40a421435b1209f0f79d778c03fe04a (diff)
handle stream orientation behavior
Diffstat (limited to 'src/stdio/puts.c')
-rw-r--r--src/stdio/puts.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/stdio/puts.c b/src/stdio/puts.c
index 3392228e..ad9eaa84 100644
--- a/src/stdio/puts.c
+++ b/src/stdio/puts.c
@@ -8,6 +8,7 @@ int puts(const char *s)
int ret = 1;
SIGNAL_SAFE(0);
+ ASSERT_STREAM(stdout, ORIENT_BYTE, OP_OUTPUT);
flockfile(stdout);