summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libc/tcdrain.c
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>1998-05-22 14:51:11 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>1998-05-22 14:51:11 +0000
commit119bced0fd63d7651a27cdf2f738b7cb4b0d9c10 (patch)
tree576d37ede74625e54a227c09e67ae4d6db7b3f0a /c/src/lib/libc/tcdrain.c
parentAdded tcdrain(), cfgetospeed(), cfsetospeed(), cfgetispeed(), and cfsetispeed(). (diff)
downloadrtems-119bced0fd63d7651a27cdf2f738b7cb4b0d9c10.tar.bz2
Added tcdrain(), cfgetospeed(0, cfsetospeed(), cfgetispeed(), and
cfsetispeed().
Diffstat (limited to '')
-rw-r--r--c/src/lib/libc/tcdrain.c26
1 files changed, 26 insertions, 0 deletions
diff --git a/c/src/lib/libc/tcdrain.c b/c/src/lib/libc/tcdrain.c
new file mode 100644
index 0000000000..585871cc90
--- /dev/null
+++ b/c/src/lib/libc/tcdrain.c
@@ -0,0 +1,26 @@
+/*
+ * This file contains the RTEMS implementation of the POSIX API
+ * routines tcdrain.
+ *
+ * $Id$
+ *
+ */
+
+#include <rtems.h>
+#if defined(RTEMS_NEWLIB)
+
+#include <sys/types.h>
+#include <sys/stat.h>
+#include <errno.h>
+#include <termios.h>
+
+#include "internal.h"
+#include "libio.h"
+
+int
+tcdrain(int fd)
+{
+ return __rtems_ioctl(fd,RTEMS_IO_TCDRAIN,0);
+}
+
+#endif