projects
/
oweals
/
musl.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
include header that declares __syscall_ret where it's defined
[oweals/musl.git]
/
src
/
stdio
/
__stdout_write.c
1
#include "stdio_impl.h"
2
#include <termios.h>
3
#include <sys/ioctl.h>
4
5
size_t __stdout_write(FILE *f, const unsigned char *buf, size_t len)
6
{
7
struct termios tio;
8
f->write = __stdio_write;
9
if (!(f->flags & F_SVB) && __syscall(SYS_ioctl, f->fd, TCGETS, &tio))
10
f->lbf = -1;
11
return __stdio_write(f, buf, len);
12
}