Lines Matching refs:pty_master_fd

4341 open_pty(int *pty_master_fd, int *pty_slave_fd, char_u **name1, char_u **name2)  in open_pty()  argument
4350 *pty_master_fd = mch_openpty(&tty_name); // open pty in open_pty()
4351 if (*pty_master_fd >= 0) in open_pty()
4363 close(*pty_master_fd); in open_pty()
4364 *pty_master_fd = -1; in open_pty()
4640 int pty_master_fd = -1; // for pty's in mch_call_shell_fork() local
4677 open_pty(&pty_master_fd, &pty_slave_fd, NULL, NULL); in mch_call_shell_fork()
4681 if (pty_master_fd < 0) in mch_call_shell_fork()
4719 if (pty_master_fd >= 0) // close the pseudo tty in mch_call_shell_fork()
4721 close(pty_master_fd); in mch_call_shell_fork()
4827 if (pty_master_fd >= 0) in mch_call_shell_fork()
4829 close(pty_master_fd); // close master side of pty in mch_call_shell_fork()
4921 if (pty_master_fd >= 0) in mch_call_shell_fork()
4923 fromshell_fd = pty_master_fd; in mch_call_shell_fork()
4924 toshell_fd = dup(pty_master_fd); in mch_call_shell_fork()
5076 if (len == 1 && (pty_master_fd < 0 || cmd != NULL)) in mch_call_shell_fork()
5084 if (pty_master_fd < 0 && toshell_fd >= 0 in mch_call_shell_fork()
5098 if (pty_master_fd < 0) in mch_call_shell_fork()
5390 if (pty_master_fd >= 0) in mch_call_shell_fork()
5479 int pty_master_fd = -1; in mch_job_start() local
5502 open_pty(&pty_master_fd, &pty_slave_fd, in mch_job_start()
5521 if (!use_null_for_in && (pty_master_fd < 0 || use_buffer_for_in) in mch_job_start()
5536 else if (!use_null_for_out && pty_master_fd < 0 && pipe(fd_out) < 0) in mch_job_start()
5551 && pty_master_fd < 0 && pipe(fd_err) < 0) in mch_job_start()
5568 job->jv_tty_out, pty_master_fd); in mch_job_start()
5714 if (pty_master_fd >= 0) in mch_job_start()
5716 close(pty_master_fd); // not used in the child in mch_job_start()
5745 if (pty_master_fd >= 0) in mch_job_start()
5761 in_fd = fd_in[1] >= 0 ? fd_in[1] : pty_master_fd; in mch_job_start()
5764 out_fd = fd_out[0] >= 0 ? fd_out[0] : pty_master_fd; in mch_job_start()
5772 else if (out_fd != pty_master_fd) in mch_job_start()
5773 err_fd = pty_master_fd; in mch_job_start()
5787 if (pty_master_fd >= 0) in mch_job_start()
5788 close(pty_master_fd); in mch_job_start()
5808 if (pty_master_fd >= 0) in mch_job_start()
5809 close(pty_master_fd); in mch_job_start()
5989 int pty_master_fd = -1; in mch_create_pty_channel() local
5993 open_pty(&pty_master_fd, &pty_slave_fd, &job->jv_tty_out, &job->jv_tty_in); in mch_create_pty_channel()
5994 if (pty_master_fd < 0 || pty_slave_fd < 0) in mch_create_pty_channel()
6001 close(pty_master_fd); in mch_create_pty_channel()
6006 job->jv_tty_out, pty_master_fd); in mch_create_pty_channel()
6012 channel_set_pipes(channel, pty_master_fd, pty_master_fd, INVALID_FD); in mch_create_pty_channel()