summaryrefslogtreecommitdiffstats
path: root/c/src/exec/libcsupport/src/tcflush.c
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>1999-10-01 15:55:30 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>1999-10-01 15:55:30 +0000
commit3cad2919622e6dbab273fdf772b8bf33653553b9 (patch)
treedc9f24f199588064adfd02795c924e7946976bd9 /c/src/exec/libcsupport/src/tcflush.c
parentchanged version to 19990930 (diff)
downloadrtems-3cad2919622e6dbab273fdf772b8bf33653553b9.tar.bz2
Addition of more functionality by Eric Norum to support GNU readline.
Diffstat (limited to '')
-rw-r--r--c/src/exec/libcsupport/src/tcflush.c33
1 files changed, 33 insertions, 0 deletions
diff --git a/c/src/exec/libcsupport/src/tcflush.c b/c/src/exec/libcsupport/src/tcflush.c
new file mode 100644
index 0000000000..3a14eba129
--- /dev/null
+++ b/c/src/exec/libcsupport/src/tcflush.c
@@ -0,0 +1,33 @@
+/*
+ * tcflush() - POSIX 1003.1b 7.2.2 - Line Control Functions
+ *
+ * COPYRIGHT (c) 1989-1998.
+ * On-Line Applications Research Corporation (OAR).
+ * Copyright assigned to U.S. Government, 1994.
+ *
+ * The license and distribution terms for this file may be
+ * found in the file LICENSE in this distribution or at
+ * http://www.OARcorp.com/rtems/license.html.
+ *
+ * $Id$
+ */
+
+#include <rtems.h>
+#if defined(RTEMS_NEWLIB)
+
+#include <sys/types.h>
+#include <sys/stat.h>
+#include <errno.h>
+#include <termios.h>
+/* #include <sys/ioctl.h> */
+
+int ioctl();
+
+#include <rtems/libio.h>
+
+int tcflush (int fd, int queue)
+{
+ return 0;
+}
+
+#endif