Lines Matching refs:pipes
258 int (*pipes)[2], in uv__process_child_init()
294 use_fd = pipes[fd][1]; in uv__process_child_init()
298 pipes[fd][1] = fcntl(use_fd, F_DUPFD_CLOEXEC, stdio_count); in uv__process_child_init()
300 pipes[fd][1] = fcntl(use_fd, F_DUPFD, stdio_count); in uv__process_child_init()
302 if (pipes[fd][1] == -1) in uv__process_child_init()
305 n = uv__cloexec(pipes[fd][1], 1); in uv__process_child_init()
313 use_fd = pipes[fd][1]; in uv__process_child_init()
516 int (*pipes)[2]) { in uv__spawn_set_posix_spawn_file_actions()
547 use_fd = pipes[fd][1]; in uv__spawn_set_posix_spawn_file_actions()
555 if (pipes[fd2][1] == use_fd) { in uv__spawn_set_posix_spawn_file_actions()
562 pipes[fd][1], in uv__spawn_set_posix_spawn_file_actions()
567 pipes[fd][1] = use_fd; in uv__spawn_set_posix_spawn_file_actions()
572 use_fd = pipes[fd][1]; in uv__spawn_set_posix_spawn_file_actions()
606 use_fd = pipes[fd][1]; in uv__spawn_set_posix_spawn_file_actions()
612 if (pipes[fd2][1] == use_fd) in uv__spawn_set_posix_spawn_file_actions()
753 int (*pipes)[2], in uv__spawn_and_init_child_posix_spawn()
769 pipes); in uv__spawn_and_init_child_posix_spawn()
793 int (*pipes)[2], in uv__spawn_and_init_child_fork()
822 uv__process_child_init(options, stdio_count, pipes, error_fd); in uv__spawn_and_init_child_fork()
837 int (*pipes)[2], in uv__spawn_and_init_child()
863 pipes, in uv__spawn_and_init_child()
902 err = uv__spawn_and_init_child_fork(options, stdio_count, pipes, signal_pipe[1], pid); in uv__spawn_and_init_child()
946 int (*pipes)[2]; in uv_spawn()
971 pipes = pipes_storage; in uv_spawn()
973 pipes = uv__malloc(stdio_count * sizeof(*pipes)); in uv_spawn()
975 if (pipes == NULL) in uv_spawn()
979 pipes[i][0] = -1; in uv_spawn()
980 pipes[i][1] = -1; in uv_spawn()
984 err = uv__process_init_stdio(options->stdio + i, pipes[i]); in uv_spawn()
994 exec_errorno = uv__spawn_and_init_child(loop, options, stdio_count, pipes, &pid); in uv_spawn()
1027 err = uv__process_open_stream(options->stdio + i, pipes[i]); in uv_spawn()
1037 if (pipes != pipes_storage) in uv_spawn()
1038 uv__free(pipes); in uv_spawn()
1043 if (pipes != NULL) { in uv_spawn()
1048 if (pipes[i][0] != -1) in uv_spawn()
1049 uv__close_nocheckstdio(pipes[i][0]); in uv_spawn()
1050 if (pipes[i][1] != -1) in uv_spawn()
1051 uv__close_nocheckstdio(pipes[i][1]); in uv_spawn()
1054 if (pipes != pipes_storage) in uv_spawn()
1055 uv__free(pipes); in uv_spawn()