Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(341)

Side by Side Diff: fusl/src/stdio/__stdout_write.c

Issue 1714623002: [fusl] clang-format fusl (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: headers too Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 #include "stdio_impl.h" 1 #include "stdio_impl.h"
2 #include <sys/ioctl.h> 2 #include <sys/ioctl.h>
3 3
4 size_t __stdout_write(FILE *f, const unsigned char *buf, size_t len) 4 size_t __stdout_write(FILE* f, const unsigned char* buf, size_t len) {
5 { 5 struct winsize wsz;
6 » struct winsize wsz; 6 f->write = __stdio_write;
7 » f->write = __stdio_write; 7 if (!(f->flags & F_SVB) && __syscall(SYS_ioctl, f->fd, TIOCGWINSZ, &wsz))
8 » if (!(f->flags & F_SVB) && __syscall(SYS_ioctl, f->fd, TIOCGWINSZ, &wsz) ) 8 f->lbf = -1;
9 » » f->lbf = -1; 9 return __stdio_write(f, buf, len);
10 » return __stdio_write(f, buf, len);
11 } 10 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698