summaryrefslogtreecommitdiffstats
path: root/libc/include/termios.h
diff options
context:
space:
mode:
Diffstat (limited to 'libc/include/termios.h')
-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;