summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libc/tcattr.c
diff options
context:
space:
mode:
Diffstat (limited to 'c/src/lib/libc/tcattr.c')
-rw-r--r--c/src/lib/libc/tcattr.c40
1 files changed, 0 insertions, 40 deletions
diff --git a/c/src/lib/libc/tcattr.c b/c/src/lib/libc/tcattr.c
deleted file mode 100644
index aaa5ff6e6e..0000000000
--- a/c/src/lib/libc/tcattr.c
+++ /dev/null
@@ -1,40 +0,0 @@
-/*
- * This file contains the RTEMS implementation of the POSIX API
- * routines tcgetattr and tcsetattr.
- *
- * $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"
-
-/*
- * tcgetattr/tcsetattr -- get/set attributes of a device.
- *
- * submitted by K.Shibuya
- */
-
-int
-tcgetattr(int fd, struct termios *tp)
-{
- return __rtems_ioctl(fd,RTEMS_IO_GET_ATTRIBUTES,tp);
-}
-
-int
-tcsetattr(int fd, int opt, struct termios *tp)
-{
- if(opt != TCSANOW)
- return -1;
- return __rtems_ioctl(fd,RTEMS_IO_SET_ATTRIBUTES,tp);
-}
-
-#endif