Searched refs:mfd (Results 1 – 3 of 3) sorted by relevance
/external/ppp/pppd/ |
D | sys-linux.c | 1965 int mfd = -1; in ppp_registered() local 1976 if (!get_pty(&mfd, &local_fd, slave, 0)) { in ppp_registered() 1990 close(mfd); in ppp_registered() 2552 int i, mfd, sfd = -1; local 2560 mfd = open("/dev/ptmx", O_RDWR); 2561 if (mfd >= 0) { 2563 if (ioctl(mfd, TIOCGPTN, &ptn) >= 0) { 2568 if (ioctl(mfd, TIOCSPTLCK, &ptn) < 0) 2582 mfd = open(pty_name, O_RDWR, 0); 2583 if (mfd >= 0) { [all …]
|
D | sys-solaris.c | 2740 int mfd, sfd; local 2744 mfd = open("/dev/ptmx", O_RDWR); 2745 if (mfd < 0) { 2750 pty_name = ptsname(mfd); 2753 close(mfd); 2760 if (unlockpt(mfd) < 0) 2766 close(mfd); 2774 *master_fdp = mfd;
|
/external/qemu/ |
D | qemu-char.c | 864 int mfd = -1, sfd = -1; in openpty() local 868 mfd = open("/dev/ptmx", O_RDWR | O_NOCTTY); in openpty() 869 if (mfd < 0) in openpty() 872 if (grantpt(mfd) == -1 || unlockpt(mfd) == -1) in openpty() 875 if ((slave = ptsname(mfd)) == NULL) in openpty() 886 *amaster = mfd; in openpty() 897 close(mfd); in openpty()
|