static char *sccsid
= "@(#)wwtty.c 3.2 83/08/12";
register struct ww_tty
*t
;
if (ioctl(d
, (int)TIOCGETP
, (char *)&t
->ww_sgttyb
) < 0)
if (ioctl(d
, (int)TIOCGETC
, (char *)&t
->ww_tchars
) < 0)
if (ioctl(d
, (int)TIOCGLTC
, (char *)&t
->ww_ltchars
) < 0)
if (ioctl(d
, (int)TIOCLGET
, (char *)&t
->ww_lmode
) < 0)
if (ioctl(d
, (int)TIOCGETD
, (char *)&t
->ww_ldisc
) < 0)
if (ioctl(d
, (int)TIOCGPGRP
, (char *)&t
->ww_pgrp
) < 0)
register struct ww_tty
*t
;
if (ioctl(d
, (int)TIOCSETP
, (char *)&t
->ww_sgttyb
) < 0)
if (ioctl(d
, (int)TIOCSETC
, (char *)&t
->ww_tchars
) < 0)
if (ioctl(d
, (int)TIOCSLTC
, (char *)&t
->ww_ltchars
) < 0)
if (ioctl(d
, (int)TIOCLSET
, (char *)&t
->ww_lmode
) < 0)
if (ioctl(d
, (int)TIOCSETD
, (char *)&t
->ww_ldisc
) < 0)
if (ioctl(d
, (int)TIOCSPGRP
, (char *)&t
->ww_pgrp
) < 0)