From 69cf09c821b94668f03c942585d99c13121731c8 Mon Sep 17 00:00:00 2001 From: Rich Felker Date: Fri, 15 Apr 2011 12:04:13 -0400 Subject: avoid setting errno when checking for tty setting errno here is completely valid, but some programs, notably busybox printf, assume that errno will not be set during output and treat this as an error condition. in any case, skipping it slightly reduces code size and saves time. --- src/stdio/__stdout_write.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/stdio/__stdout_write.c') diff --git a/src/stdio/__stdout_write.c b/src/stdio/__stdout_write.c index 4683ffc3..0cf71236 100644 --- a/src/stdio/__stdout_write.c +++ b/src/stdio/__stdout_write.c @@ -4,7 +4,7 @@ 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)) + if (!(f->flags & F_SVB) && __syscall(SYS_ioctl, f->fd, TCGETS, &tio)) f->lbf = -1; return __stdio_write(f, buf, len); } -- cgit v1.2.1