commit | be19a3671709879ccc0156b94f7ef7540027dc37 | [log] [tgz] |
---|---|---|
author | Elliott Hughes <enh@google.com> | Tue Sep 04 17:52:39 2012 -0700 |
committer | android code review <noreply-gerritcodereview@google.com> | Tue Sep 04 17:52:40 2012 -0700 |
tree | 0bf997b176a15d27a4e057fa4d7e467f45f15e88 | |
parent | 5ff23471303a1b99ddc1e1751662aa45f34b5e21 [diff] | |
parent | 954923858b34dbe695d202c5a3076f05f269338a [diff] |
Merge "termios: add tcdrain"
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;