Lines Matching refs:mfd
1966 int mfd = -1;
1977 if (!get_pty(&mfd, &local_fd, slave, 0)) {
1991 close(mfd);
2553 int i, mfd, sfd = -1;
2561 mfd = open("/dev/ptmx", O_RDWR);
2562 if (mfd >= 0) {
2564 if (ioctl(mfd, TIOCGPTN, &ptn) >= 0) {
2569 if (ioctl(mfd, TIOCSPTLCK, &ptn) < 0)
2583 mfd = open(pty_name, O_RDWR, 0);
2584 if (mfd >= 0) {
2592 close(mfd);
2601 *master_fdp = mfd;