summaryrefslogblamecommitdiff
path: root/src/stdio/__stdout_write.c
blob: 4683ffc3b0059c2a5966144d70e0934e2a743db5 (plain) (tree)
1
2
3
4
5
6
7
8
9
10









                                                                           
#include "stdio_impl.h"

size_t __stdout_write(FILE *f, const unsigned char *buf, size_t len)
{
	struct termios tio;
	f->write = __stdio_write;
	if (!(f->flags & F_SVB) && syscall(SYS_ioctl, f->fd, TCGETS, &tio))
		f->lbf = -1;
	return __stdio_write(f, buf, len);
}