Home
last modified time | relevance | path

Searched refs:ttyfd (Results 1 – 7 of 7) sorted by relevance

/titanic_44/usr/src/cmd/ssh/sshd/
H A Dsshpty.c51 pty_allocate(int *ptyfd, int *ttyfd, char *namebuf, int namebuflen) in pty_allocate() argument
58 i = openpty(ptyfd, ttyfd, NULL, NULL, NULL); in pty_allocate()
63 name = ttyname(*ttyfd); in pty_allocate()
84 *ttyfd = open(namebuf, O_RDWR | O_NOCTTY); in pty_allocate()
85 if (*ttyfd < 0) { in pty_allocate()
123 *ttyfd = open(namebuf, O_RDWR | O_NOCTTY); in pty_allocate()
124 if (*ttyfd < 0) { in pty_allocate()
134 if (ioctl(*ttyfd, I_PUSH, "ptem") < 0) in pty_allocate()
136 if (ioctl(*ttyfd, I_PUSH, "ldterm") < 0) in pty_allocate()
139 if (ioctl(*ttyfd, I_PUSH, "ttcompat") < 0) in pty_allocate()
[all …]
H A Dsession.c565 int fdout, ptyfd, ttyfd, ptymaster, pipe_fds[2]; in do_exec_pty() local
571 ttyfd = s->ttyfd; in do_exec_pty()
603 pty_make_controlling_tty(&ttyfd, s->tty); in do_exec_pty()
606 if (dup2(ttyfd, 0) < 0) in do_exec_pty()
608 if (dup2(ttyfd, 1) < 0) in do_exec_pty()
610 if (dup2(ttyfd, 2) < 0) in do_exec_pty()
614 close(ttyfd); in do_exec_pty()
662 close(ttyfd); in do_exec_pty()
707 if (s->ttyfd != -1) in do_exec()
1100 if (s->ttyfd != -1) in do_setup_env()
[all …]
/titanic_44/usr/src/cmd/ssh/libssh/common/
H A Dreadpass.c104 int rppflags, use_askpass = 0, ttyfd; in read_passphrase() local
112 ttyfd = open(_PATH_TTY, O_RDWR); in read_passphrase()
113 if (ttyfd >= 0) in read_passphrase()
114 close(ttyfd); in read_passphrase()
/titanic_44/usr/src/cmd/cmd-inet/usr.bin/pppd/
H A Dmain.c102 int ttyfd; /* Serial port file descriptor */ variable
582 ttyfd = -1;
670 ttyfd = 0;
678 if ((ttyfd = sys_extra_fd()) < 0)
679 ttyfd = open(devnam, O_NONBLOCK | O_RDWR);
683 if (ttyfd >= 0)
693 if ((fdflags = fcntl(ttyfd, F_GETFL)) == -1
694 || fcntl(ttyfd, F_SETFL, fdflags & ~O_NONBLOCK) < 0)
700 if (fstat(ttyfd, &statbuf) < 0
701 || fchmod(ttyfd, statbuf.st_mode & ~(S_IWGRP | S_IWOTH)) < 0) {
[all …]
H A Dpppd.h188 extern int ttyfd; /* Serial device file descriptor */
H A Dsys-solaris.c3611 if (ttyfd == -1) { in sys_print_state()
3620 getbits(ttyfd, devnam, strptr); in sys_print_state()
3622 (fdmuxid = ioctl(pppfd, I_LINK, (void *)ttyfd)) == -1) in sys_print_state()
/titanic_44/usr/src/cmd/ssh/include/
H A Dsession.h47 int ptyfd, ttyfd, ptymaster; member