__stdout_write.c\stdio\src - musl - musl - an implementation of the standard library for Linux-based systems

index : musl
musl - an implementation of the standard library for Linux-based systems
summary refs log tree commit diff
path: root/src/stdio/__stdout_write.c
blob: dd1ec60ff703475120251bf9a005874aafa9ae74 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
#include "stdio_impl.h"
#include <sys/ioctl.h>
size_t __stdout_write(FILE *f, const unsigned char *buf, size_t len)
{
	struct winsize wsz;
	f->write = __stdio_write;
	if (!(f->flags & F_SVB) && __syscall(SYS_ioctl, f->fd, TIOCGWINSZ, &wsz))
		f->lbf = -1;
	return __stdio_write(f, buf, len);
}
generated by cgit v1.2.1 (git 2.18.0) at 2025年09月09日 17:20:15 +0000

AltStyle によって変換されたページ (->オリジナル) /