Lines Matching defs:fd_out
601 int fd_in, fd_out;
611 return send_all(s->fd_out, buf, len);
676 static CharDriverState *qemu_chr_open_fd(int fd_in, int fd_out)
684 s->fd_out = fd_out;
697 int fd_out;
699 TFR(fd_out = qemu_open(qemu_opt_get(opts, "path"),
701 if (fd_out < 0)
703 return qemu_chr_open_fd(-1, fd_out);
708 int fd_in, fd_out;
720 TFR(fd_out = qemu_open(filename_out, O_RDWR | O_BINARY));
721 if (fd_in < 0 || fd_out < 0) {
724 if (fd_out >= 0)
725 close(fd_out);
726 TFR(fd_in = fd_out = open(filename, O_RDWR | O_BINARY));
730 return qemu_chr_open_fd(fd_in, fd_out);
737 int fd_out = qemu_opt_get_number(opts, "fdout",-1);
739 if (fd_in < 0 || fd_out < 0)
742 return qemu_chr_open_fd(fd_in, fd_out);
1830 static CharDriverState *qemu_chr_open_win_file(HANDLE fd_out)
1837 s->hcom = fd_out;
1852 HANDLE fd_out;
1854 fd_out = CreateFile(file_out, GENERIC_WRITE, FILE_SHARE_READ, NULL,
1856 if (fd_out == INVALID_HANDLE_VALUE)
1859 return qemu_chr_open_win_file(fd_out);