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