summaryrefslogtreecommitdiff
path: root/lib/libc/termios/tcflush.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc/termios/tcflush.c')
-rw-r--r--lib/libc/termios/tcflush.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/libc/termios/tcflush.c b/lib/libc/termios/tcflush.c
new file mode 100644
index 00000000..b37b218d
--- /dev/null
+++ b/lib/libc/termios/tcflush.c
@@ -0,0 +1,8 @@
+#include <termios.h>
+#include <syscall.h>
+#include <asm-generic/ioctls.h>
+
+int tcflush(int fildes, int queue_selector)
+{
+ return syscall(ioctl, fildes, TCFLSH, queue_selector);
+}