Library: Remove duplicate tcflush hiding in tcflow.c -- although we
authorWill Sowerbutts <will@sowerbutts.com>
Sat, 3 Jan 2015 23:20:35 +0000 (23:20 +0000)
committerWill Sowerbutts <will@sowerbutts.com>
Sat, 3 Jan 2015 23:36:44 +0000 (23:36 +0000)
still don't have a tcflow()!

Library/libs/tcflow.c

index c517773..27d8492 100644 (file)
@@ -1,7 +1,10 @@
 #include <termios.h>
 #include <unistd.h>
+#include <errno.h>
 
-int tcflush(int fd, int q)
+int tcflow(int fd, int action)
 {
-  return ioctl(fd, TIOCFLUSH, q);
+       /* TODO */
+       errno = EINVAL;
+       return -1;
 }