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)
This commit is contained in:
parent
edbfc4f6f4
commit
12460029b8
@ -195,16 +195,6 @@ struct termios {
|
||||
speed_t c_ospeed; /* output speed */
|
||||
};
|
||||
|
||||
/*
|
||||
* 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
|
||||
*/
|
||||
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user