Searched refs:pipefds (Results 1 – 2 of 2) sorted by relevance
259 int *pipefds = NULL; in run_test() local286 pipefds = malloc(sizeof(int) * nr_vcpus * 2); in run_test()287 TEST_ASSERT(pipefds, "Unable to allocate memory for pipefd"); in run_test()304 r = pipe2(&pipefds[vcpu_id * 2], in run_test()310 pipefds[vcpu_id * 2], in run_test()347 r = write(pipefds[vcpu_id * 2 + 1], &c, 1); in run_test()368 free(pipefds); in run_test()
647 int pipefds[2]; in filter_dmesg() local651 ret = pipe(pipefds); in filter_dmesg()658 close(pipefds[0]); in filter_dmesg()659 dup2(pipefds[1], STDOUT_FILENO); in filter_dmesg()664 close(pipefds[1]); in filter_dmesg()665 fp = fdopen(pipefds[0], "r"); in filter_dmesg()