Lines Matching full:masterfd
23 int masterfd;
290 masterfd = posix_openpt (O_RDWR | O_NOCTTY);
292 if (masterfd == -1
293 || grantpt (masterfd) == -1
294 || unlockpt (masterfd) == -1
295 || (slavedevice = ptsname (masterfd)) == NULL)
302 tcgetattr (masterfd, &t);
304 tcsetattr (masterfd, TCSANOW, &t);
306 ioc = g_io_channel_unix_new (masterfd);
391 rval = write (masterfd, line, term);
393 rval = write (masterfd, "\r\n", 2);
436 rval = write (masterfd, rstr, strlen (rstr));
442 rval = write (masterfd, rstr, strlen (rstr));
498 rval = write (masterfd, pat->reply, strlen (pat->reply));
500 rval = write (masterfd, "\r\n", 2);
513 rval = write (masterfd, "\r\n", 2);
514 rval = write (masterfd, text, strlen (text));
516 rval = write (masterfd, "\r\n", 2);