am 9deb460a: am ab558163: am b9f0a6eb: am be19a367: Merge "termios: add tcdrain"

* commit '9deb460a26b8d5f6c74b5935e35b6f419775a1e5':
  termios: add tcdrain
This commit is contained in:
Elliott Hughes 2012-09-04 18:18:01 -07:00 committed by Android Git Automerger
commit 3ee5775a0f

View File

@ -66,6 +66,11 @@ static __inline__ int tcflush(int fd, int __queue)
return ioctl(fd, TCFLSH, (void *)(intptr_t)__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) static __inline__ pid_t tcgetsid(int fd)
{ {
pid_t _pid; pid_t _pid;