Lines Matching refs:sgttyb
585 static int get_sgttyb(struct tty_struct *tty, struct sgttyb __user *sgttyb)
587 struct sgttyb tmp;
597 return copy_to_user(sgttyb, &tmp, sizeof(tmp)) ? -EFAULT : 0;
629 * @sgttyb: pointer to old style terminal structure
637 static int set_sgttyb(struct tty_struct *tty, struct sgttyb __user *sgttyb)
640 struct sgttyb tmp;
647 if (copy_from_user(&tmp, sgttyb, sizeof(tmp)))
791 return get_sgttyb(real_tty, (struct sgttyb __user *) arg);
794 return set_sgttyb(real_tty, (struct sgttyb __user *) arg);