commit | 954923858b34dbe695d202c5a3076f05f269338a | [log] [tgz] |
---|---|---|
author | Vitaly Wool <vitaly.wool@sonyericsson.com> | Tue Sep 04 14:11:28 2012 +0200 |
committer | Johan Redestig <johan.redestig@sonymobile.com> | Tue Sep 04 14:11:28 2012 +0200 |
tree | e90edc4cc4d2ec303419e563ed8f451fb0d3061c | |
parent | 6fe901ef38898d9cb6007720940e915f7180fc11 [diff] [blame] |
termios: add tcdrain Change-Id: I05c0007f7bcc6ef5295c32f86fafbf1ad31e07fa
diff --git a/libc/include/termios.h b/libc/include/termios.h index ad19089..0d44355 100644 --- a/libc/include/termios.h +++ b/libc/include/termios.h
@@ -66,6 +66,11 @@ return ioctl(fd, TCFLSH, (void *)(intptr_t)__queue); } +static __inline__ int tcdrain(int fd) +{ + return ioctl(fd, TCSBRK, (void *)(intptr_t)1); +} + static __inline__ pid_t tcgetsid(int fd) { pid_t _pid;