Lines Matching refs:sgttyb
492 static int get_sgttyb(struct tty_struct *tty, struct sgttyb __user *sgttyb)
494 struct sgttyb tmp;
504 return copy_to_user(sgttyb, &tmp, sizeof(tmp)) ? -EFAULT : 0;
536 * @sgttyb: pointer to old style terminal structure
544 static int set_sgttyb(struct tty_struct *tty, struct sgttyb __user *sgttyb)
547 struct sgttyb tmp;
554 if (copy_from_user(&tmp, sgttyb, sizeof(tmp)))
704 return get_sgttyb(real_tty, (struct sgttyb __user *) arg);
707 return set_sgttyb(real_tty, (struct sgttyb __user *) arg);