summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authored <ed@FreeBSD.org>2008-07-16 12:36:39 +0000
committered <ed@FreeBSD.org>2008-07-16 12:36:39 +0000
commit12460029b82e195418d4d40b7923c9b49e799b3c (patch)
treef1cea34c2b8016dd7cabc3dcb37b47e6e28a490c
parentedbfc4f6f49821ffa7ce898f0b141b6ed2ed9813 (diff)
downloadFreeBSD-src-12460029b82e195418d4d40b7923c9b49e799b3c.zip
FreeBSD-src-12460029b82e195418d4d40b7923c9b49e799b3c.tar.gz
Move the TCSA* definitions out of _KERNEL. They are processed in libc.
The tcsetattr() routine already converts the TCSA* arguments to their respective TIOCSETA* ioctl's in the C library. There is no need to have these definitions inside the kernel. Approved by: philip (mentor, implicit)
-rw-r--r--sys/sys/termios.h20
1 files changed, 10 insertions, 10 deletions
diff --git a/sys/sys/termios.h b/sys/sys/termios.h
index 056b3b6..00259f1 100644
--- a/sys/sys/termios.h
+++ b/sys/sys/termios.h
@@ -196,16 +196,6 @@ struct termios {
};
/*
- * Commands passed to tcsetattr() for setting the termios structure.
- */
-#define TCSANOW 0 /* make change immediate */
-#define TCSADRAIN 1 /* drain output, then change */
-#define TCSAFLUSH 2 /* drain output, flush input */
-#ifndef _POSIX_SOURCE
-#define TCSASOFT 0x10 /* flag - don't alter h.w. state */
-#endif
-
-/*
* Standard speeds
*/
#define B0 0
@@ -240,6 +230,16 @@ struct termios {
#ifndef _KERNEL
+/*
+ * Commands passed to tcsetattr() for setting the termios structure.
+ */
+#define TCSANOW 0 /* make change immediate */
+#define TCSADRAIN 1 /* drain output, then change */
+#define TCSAFLUSH 2 /* drain output, flush input */
+#ifndef _POSIX_SOURCE
+#define TCSASOFT 0x10 /* flag - don't alter h.w. state */
+#endif
+
#define TCIFLUSH 1
#define TCOFLUSH 2
#define TCIOFLUSH 3
OpenPOWER on IntegriCloud