Lines Matching defs:mfd
1874 int mfd = -1;
1885 if (!get_pty(&mfd, &local_fd, slave, 0)) {
1899 close(mfd);
2451 int i, mfd, sfd = -1;
2459 mfd = open("/dev/ptmx", O_RDWR);
2460 if (mfd >= 0) {
2462 if (ioctl(mfd, TIOCGPTN, &ptn) >= 0) {
2467 if (ioctl(mfd, TIOCSPTLCK, &ptn) < 0)
2481 mfd = open(pty_name, O_RDWR, 0);
2482 if (mfd >= 0) {
2490 close(mfd);
2499 *master_fdp = mfd;