commit | b9f0a6eb75aa8f1eec95fb5718d84cef1d0f61b8 | [log] [tgz] |
---|---|---|
author | Elliott Hughes <enh@google.com> | Tue Sep 04 18:10:07 2012 -0700 |
committer | Android Git Automerger <android-git-automerger@android.com> | Tue Sep 04 18:10:07 2012 -0700 |
tree | 0bf997b176a15d27a4e057fa4d7e467f45f15e88 | |
parent | bc3740787ac4108c2e0e247bc7ca2ea66329c5ab [diff] | |
parent | be19a3671709879ccc0156b94f7ef7540027dc37 [diff] |
am be19a367: Merge "termios: add tcdrain" * commit 'be19a3671709879ccc0156b94f7ef7540027dc37': 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;