Searched refs:mfd (Results 1 – 1 of 1) sorted by relevance
511 int mfd = -1, sfd = -1; in openpty() local515 mfd = open("/dev/ptmx", O_RDWR | O_NOCTTY); in openpty()516 if (mfd < 0) in openpty()519 if (grantpt(mfd) == -1 || unlockpt(mfd) == -1) in openpty()522 if ((slave = ptsname(mfd)) == NULL) in openpty()532 *amaster = mfd; in openpty()548 close(mfd); in openpty()
Completed in 4 milliseconds