summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2012-09-04 17:52:39 -0700
committerandroid code review <noreply-gerritcodereview@google.com>2012-09-04 17:52:40 -0700
commitbe19a3671709879ccc0156b94f7ef7540027dc37 (patch)
tree0bf997b176a15d27a4e057fa4d7e467f45f15e88
parent5ff23471303a1b99ddc1e1751662aa45f34b5e21 (diff)
parent954923858b34dbe695d202c5a3076f05f269338a (diff)
downloadbionic-be19a3671709879ccc0156b94f7ef7540027dc37.zip
bionic-be19a3671709879ccc0156b94f7ef7540027dc37.tar.gz
bionic-be19a3671709879ccc0156b94f7ef7540027dc37.tar.bz2
Merge "termios: add tcdrain"
-rw-r--r--libc/include/termios.h5
1 files changed, 5 insertions, 0 deletions
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 @@ static __inline__ int tcflush(int fd, int __queue)
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;