Home | History | Annotate | Download | only in qemu_pipe

Lines Matching refs:fd

44     int fd = TEMP_FAILURE_RETRY(open("/dev/qemu_pipe", O_RDWR));
45 if (fd < 0) {
53 if (WriteFully(fd, pipeName, pipeNameLen + 1U)) {
54 return fd;
61 if (WriteFully(fd, pipe_prefix, strlen(pipe_prefix)) &&
62 WriteFully(fd, pipeName, pipeNameLen + 1U)) {
63 return fd;
67 close(fd);
71 int qemu_pipe_frame_send(int fd, const void* buff, size_t len) {
74 if (!WriteFully(fd, header, 4)) {
78 if (!WriteFully(fd, buff, len)) {
85 int qemu_pipe_frame_recv(int fd, void* buff, size_t len) {
87 if (!ReadFully(fd, header, 4)) {
102 if (!ReadFully(fd, buff, size)) {