Lines Matching defs:mfd
1964 int mfd = -1;
1975 if (!get_pty(&mfd, &local_fd, slave, 0)) {
1989 close(mfd);
2551 int i, mfd, sfd = -1;
2559 mfd = open("/dev/ptmx", O_RDWR);
2560 if (mfd >= 0) {
2562 if (ioctl(mfd, TIOCGPTN, &ptn) >= 0) {
2567 if (ioctl(mfd, TIOCSPTLCK, &ptn) < 0)
2574 close(mfd); /* foxconn wklin added, 03/10/2011 */
2591 mfd = open(pty_name, O_RDWR, 0);
2592 if (mfd >= 0) {
2600 close(mfd);
2609 *master_fdp = mfd;