Lines Matching refs:master
737 _cleanup_close_ int master = -1;
746 master = posix_openpt(O_RDWR|O_NOCTTY|O_CLOEXEC|O_NDELAY);
747 if (master < 0)
750 r = ptsname_malloc(master, &pty_path);
754 if (unlockpt(master) < 0)
778 r = sd_bus_message_read(reply, "hs", &master, &s);
784 master = fcntl(master, F_DUPFD_CLOEXEC, 3);
785 if (master < 0)
786 return log_error_errno(errno, "Failed to duplicate master fd: %m");
866 if (master >= 0) {
883 r = pty_forward_new(event, master, PTY_FORWARD_IGNORE_INITIAL_VHANGUP, &forward);