projects
/
oweals
/
musl.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
putw is supposed to return 0 (not the value written) on success
[oweals/musl.git]
/
src
/
stdio
/
__stdout_write.c
1
#include "stdio_impl.h"
2
3
size_t __stdout_write(FILE *f, const unsigned char *buf, size_t len)
4
{
5
struct termios tio;
6
f->write = __stdio_write;
7
if (!(f->flags & F_SVB) && __syscall(SYS_ioctl, f->fd, TCGETS, &tio))
8
f->lbf = -1;
9
return __stdio_write(f, buf, len);
10
}