Lines Matching defs:tty
99 #include <sys/tty.h>
506 /* no tty side to pty so skip it */
820 * kernel tty structure. We need remember the state of
829 * Make sure that we don't have a controlling tty, and
888 * set up the tty modes as we like them to be.
932 * Set the tty modes, and make this our controlling tty.
950 * making sure that we have a clean tty.
1026 * the indirect /dev/tty interface.
1029 if ((t = open("/dev/tty", O_RDWR)) < 0)
1030 fatalperror(net, "open(/dev/tty)");
1034 * We get our controlling tty assigned as a side-effect
1035 * of opening up a tty device. But on BSD based systems,
1038 * it out before opening the tty...
1061 * This comes from ../../bsd/tty.c and should not really be here.
1065 * Clean the tty name. Return a pointer to the cleaned version.
1071 clean_ttyname (char *tty)
1073 char *res = tty;
1085 * Generate a name usable as an `ut_id', typically without `tty'.
1090 make_id (char *tty)
1092 char *res = tty;
1096 if (strncmp (res, "tty", 3) == 0)
1380 * finish up with the tty. There's a race condition