Lines Matching refs:master
51 int master, slave; in openpty() local
53 master = posix_openpt(O_RDWR|O_NOCTTY); in openpty()
54 if (master == -1) in openpty()
57 if (grantpt(master) == -1) in openpty()
60 if (unlockpt(master) == -1) in openpty()
63 slavename = ptsname(master); in openpty()
71 *amaster = master; in openpty()
83 bad: close(master); in openpty()
90 int master, slave, pid; in forkpty() local
92 if (openpty(&master, &slave, name, termp, winp) == -1) in forkpty()
96 (void)close(master); in forkpty()
103 (void)close(master); in forkpty()
110 *amaster = master; in forkpty()