Searched refs:ptyfd (Results 1 - 7 of 7) sorted by relevance

/macosx-10.9.5/sudo-72/src/
H A Dselinux.c113 relabel_tty(const char *ttyn, int ptyfd) argument
119 se_state.ttyfd = ptyfd;
122 if (ptyfd == -1 && ttyn == NULL)
126 if (ptyfd == -1) {
158 if (ptyfd != -1) {
166 if (dup2(se_state.ttyfd, ptyfd) == -1) {
196 if (se_state.ttyfd != -1 && se_state.ttyfd != ptyfd) {
276 * If ptyfd is not -1, it indicates we are running
282 int ptyfd)
305 if (relabel_tty(ttyn, ptyfd) <
281 selinux_setup(const char *role, const char *type, const char *ttyn, int ptyfd) argument
[all...]
/macosx-10.9.5/OpenSSH-186/openssh/
H A Dsession.h41 int ptyfd, ttyfd, ptymaster; member in struct:Session
H A Dsshpty.c64 pty_allocate(int *ptyfd, int *ttyfd, char *namebuf, size_t namebuflen) argument
70 i = openpty(ptyfd, ttyfd, NULL, NULL, NULL);
189 pty_change_window_size(int ptyfd, u_int row, u_int col, argument
199 (void) ioctl(ptyfd, TIOCSWINSZ, &w);
H A Dsession.c648 int fdout, ptyfd, ttyfd, ptymaster; local
653 ptyfd = s->ptyfd;
663 if ((fdout = dup(ptyfd)) < 0) {
666 close(ptyfd);
670 if ((ptymaster = dup(ptyfd)) < 0) {
673 close(ptyfd);
685 close(ptyfd);
697 close(ptyfd);
753 session_set_fds(s, ptyfd, fdou
[all...]
H A Dmonitor.c1453 debug3("%s: tty %s ptyfd %d", __func__, s->tty, s->ptyfd);
1475 res = pty_allocate(&s->ptyfd, &s->ttyfd, s->tty, sizeof(s->tty));
1498 if (mm_send_fd(sock, s->ptyfd) == -1 ||
1510 s->ttyfd = s->ptyfd;
1511 /* no need to dup() because nobody closes ptyfd */
1512 s->ptymaster = s->ptyfd;
1514 debug3("%s: tty %s ptyfd %d", __func__, s->tty, s->ttyfd);
H A Dmonitor_wrap.c707 mm_pty_allocate(int *ptyfd, int *ttyfd, char *namebuf, size_t namebuflen) argument
748 if ((*ptyfd = mm_receive_fd(pmonitor->m_recvfd)) == -1 ||
H A Dconfigure10477 int fd, ptyfd, ttyfd, status;
10491 openpty(&ptyfd, &ttyfd, NULL, NULL, NULL);

Completed in 237 milliseconds