+/*
+ * ttsetcompat
+ *
+ * Description: Convert backward compatability set command arguments as
+ * follows:
+ *
+ * TIOCSETP -> TIOSETAF
+ * TIOCSETN -> TIOCSETA
+ * TIOCSETC -> TIOCSETA
+ * TIOCSLTC -> TIOCSETA
+ * TIOCLBIS -> TIOCSETA
+ * TIOCLBIC -> TIOCSETA
+ * TIOCLSET -> TIOCSETA
+ *
+ * The converted command argument and potentially modified 'term'
+ * argument are returned to the caller, which will then call ttioctl(),
+ * if this function returns successfully.
+ *
+ * Parameters struct tty *tp The tty on which the operation is
+ * being performed.
+ * u_long *com A pointer to the terminal input/output
+ * command being requested; its contents
+ * will be modified per the table above,
+ * on a non-error return.
+ * caddr_t data Command specific parameter data; this
+ * data is read but not modified.
+ * struct termios *term A local stack termios structure from
+ * ttcompat(), whose contents are to be
+ * modified based on *com and *data.
+ *
+ * Returns: EINVAL An input speed or output speed is
+ * outside the allowable range for a
+ * TIOCSETP or TIOCSETN command.
+ * 0 All other cases return 0.
+ *
+ * Notes: This function may modify the contents of the tp->t_flags
+ * field in a successful call to TIOCSETP, TIOCSETN, TIOCLBIS,
+ * TIOCLBIC, or TIOCLSET.
+ *
+ * All other tp fields will remain unmodifed, since the struct
+ * termious is a local stack copy from ttcompat(), and not the
+ * real thing. A subsequent call to ttioctl() in ttcompat(),
+ * however, may result in subsequent changes.
+ */