sys/kern/tty_ptm.c
343
dev_t ttydev;
sys/kern/tty_ptm.c
351
if ((error = pty_alloc_master(l, &fd, &ttydev, mp, flag)) != 0)
sys/kern/tty_ptm.c
359
if ((error = pty_grant_slave(l, ttydev, mp)) != 0) {
tests/kernel/t_pty.c
154
tty_open(const char *ttydev)
tests/kernel/t_pty.c
158
if ((fd = open(ttydev, O_RDWR, 0)) == -1)
tests/kernel/t_pty.c
187
child_spawn(const char *ttydev)
tests/kernel/t_pty.c
201
(void)printf("child: started; open \"%s\"\n", ttydev);
tests/kernel/t_pty.c
202
tty = tty_open(ttydev);
usr.sbin/sti/sti.c
149
char ttydev[MAXPATHLEN];
usr.sbin/sti/sti.c
167
(void)snprintf(ttydev, sizeof(ttydev), "%s", tty);
usr.sbin/sti/sti.c
170
(void)snprintf(ttydev, sizeof(ttydev), "/dev/%s", tty);
usr.sbin/sti/sti.c
172
(void)snprintf(ttydev, sizeof(ttydev), "/dev/pts/%s", tty);
usr.sbin/sti/sti.c
174
(void)snprintf(ttydev, sizeof(ttydev), "/dev/tty%s", tty);
usr.sbin/sti/sti.c
176
if ((fd = open(ttydev, O_RDWR)) == -1)
usr.sbin/sti/sti.c
177
err(1, "Cannot open `%s'", ttydev);