Home | History | Annotate | Download | only in pty

Lines Matching refs:masterfd

76 	int masterfd;		/* master pty fd */
82 masterfd = SAFE_OPEN(NULL, MASTERCLONE, O_RDWR);
84 slavename = ptsname(masterfd);
89 if (grantpt(masterfd) != 0) {
112 if (unlockpt(masterfd) != 0) {
121 if (write(masterfd, STRING, strlen(STRING)) != strlen(STRING)) {
147 if (read(masterfd, buf, strlen(STRING)) != strlen(STRING)) {
169 if (ioctl(masterfd, TIOCGWINSZ, NULL) == 0) {
181 if (close(masterfd) != 0) {
194 int masterfd; /* master pty fd */
200 masterfd = SAFE_OPEN(NULL, MASTERCLONE, O_RDWR);
202 slavename = ptsname(masterfd);
207 if (grantpt(masterfd) != 0) {
211 if (unlockpt(masterfd) != 0) {
221 if (close(masterfd) != 0) {
254 int masterfd; /* master pty fd */
256 masterfd = SAFE_OPEN(NULL, MASTERCLONE, O_RDWR);
258 if (ioctl(masterfd, TIOCGWINSZ, NULL) == 0) {
271 int masterfd; /* master pty fd */
277 masterfd = SAFE_OPEN(NULL, MASTERCLONE, O_RDWR);
279 slavename = ptsname(masterfd);
284 if (grantpt(masterfd) != 0) {
288 if (unlockpt(masterfd) != 0) {
321 if (close(masterfd) != 0) {
334 int masterfd; /* master pty fd */
345 masterfd = open(MASTERCLONE, O_RDWR);
346 if (masterfd < 0) {
351 if (grantpt(masterfd) != 0) {
356 slavename = ptsname(masterfd);
363 if (close(masterfd) != 0) {