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

Side by Side Diff: fusl/src/termios/cfmakeraw.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 #define _GNU_SOURCE 1 #define _GNU_SOURCE
2 #include <termios.h> 2 #include <termios.h>
3 3
4 void cfmakeraw(struct termios *t) 4 void cfmakeraw(struct termios* t) {
5 { 5 t->c_iflag &=
6 » t->c_iflag &= ~(IGNBRK|BRKINT|PARMRK|ISTRIP|INLCR|IGNCR|ICRNL|IXON); 6 ~(IGNBRK | BRKINT | PARMRK | ISTRIP | INLCR | IGNCR | ICRNL | IXON);
7 » t->c_oflag &= ~OPOST; 7 t->c_oflag &= ~OPOST;
8 » t->c_lflag &= ~(ECHO|ECHONL|ICANON|ISIG|IEXTEN); 8 t->c_lflag &= ~(ECHO | ECHONL | ICANON | ISIG | IEXTEN);
9 » t->c_cflag &= ~(CSIZE|PARENB); 9 t->c_cflag &= ~(CSIZE | PARENB);
10 » t->c_cflag |= CS8; 10 t->c_cflag |= CS8;
11 » t->c_cc[VMIN] = 1; 11 t->c_cc[VMIN] = 1;
12 » t->c_cc[VTIME] = 0; 12 t->c_cc[VTIME] = 0;
13 } 13 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698