ltchars
#define TIOCGLTC _IOR('t', 116, struct ltchars)
#define TIOCSLTC _IOW('t', 117, struct ltchars)
#define TIOCGLTC _IOR('t', 116, struct ltchars)
#define TIOCSLTC _IOW('t', 117, struct ltchars)
#define __TIOCGLTC _IOR('t', 116, struct ltchars) /* SunOS Specific */
#define __TIOCSLTC _IOW('t', 117, struct ltchars) /* SunOS Specific */
static int get_ltchars(struct tty_struct *tty, struct ltchars __user *ltchars)
struct ltchars tmp;
return copy_to_user(ltchars, &tmp, sizeof(tmp)) ? -EFAULT : 0;
static int set_ltchars(struct tty_struct *tty, struct ltchars __user *ltchars)
struct ltchars tmp;
if (copy_from_user(&tmp, ltchars, sizeof(tmp)))