termios: add tcdrain

Change-Id: I05c0007f7bcc6ef5295c32f86fafbf1ad31e07fa
This commit is contained in:
Vitaly Wool 2012-09-04 14:11:28 +02:00 committed by Johan Redestig
parent 6fe901ef38
commit 954923858b

View File

@ -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;