aboutsummaryrefslogtreecommitdiff
path: root/sys/sys/termios.h
diff options
context:
space:
mode:
authorEd Schouten <ed@FreeBSD.org>2008-07-16 12:36:39 +0000
committerEd Schouten <ed@FreeBSD.org>2008-07-16 12:36:39 +0000
commit16be775effaaff076f1e8ca40923ed34e18e72f0 (patch)
treef1cea34c2b8016dd7cabc3dcb37b47e6e28a490c /sys/sys/termios.h
parent7717bbe1ed6d894e5ae6d5b68ddc67a57232dff0 (diff)
downloadsrc-16be775effaaff076f1e8ca40923ed34e18e72f0.tar.gz
src-16be775effaaff076f1e8ca40923ed34e18e72f0.zip
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)
Notes
Notes: svn path=/head/; revision=180561
Diffstat (limited to 'sys/sys/termios.h')
-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 056b3b6de6af..00259f1c4673 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