According to the man page, only these values are valid for the second parameter:
Quote:
TCSANOW
the change occurs immediately.
TCSADRAIN
the change occurs after all output written to fd
has been transmitted. This function should be used
when changing parameters that affect output.
TCSAFLUSH
the change occurs after all output written to the
object referred by fd has been transmitted, and all
input that has been received but not read will be
discarded before the change is made.
|
And I also found this in /usr/include/term.h:
Code:
/* Add definitions to make termio look like termios.
* But ifdef it, since there are some implementations
* that try to do this for us in a fake <termio.h>.
*/
#ifndef TCSANOW
#define TCSANOW TCSETA
#endif
#ifndef TCSADRAIN
#define TCSADRAIN TCSETAW
#endif
#ifndef TCSAFLUSH
#define TCSAFLUSH TCSETAF
#endif
It looks like TCSANOW and TCSETA are exactly the same. I'd probably stick with TCSANOW though since it's actually in the man page.