Lines Matching defs:pipes
279 int (*pipes)[2],
315 use_fd = pipes[fd][1];
319 pipes[fd][1] = fcntl(use_fd, F_DUPFD_CLOEXEC, stdio_count);
321 pipes[fd][1] = fcntl(use_fd, F_DUPFD, stdio_count);
323 if (pipes[fd][1] == -1)
326 n = uv__cloexec(pipes[fd][1], 1);
334 use_fd = pipes[fd][1];
536 int (*pipes)[2]) {
560 /* Do not return ENOSYS after this point, as we may mutate pipes. */
567 use_fd = pipes[fd][1];
575 if (pipes[fd2][1] == use_fd) {
582 pipes[fd][1],
587 pipes[fd][1] = use_fd;
592 use_fd = pipes[fd][1];
626 use_fd = pipes[fd][1];
632 if (pipes[fd2][1] == use_fd)
771 int (*pipes)[2],
782 /* This may mutate pipes. */
787 pipes);
811 int (*pipes)[2],
835 uv__process_child_init(options, stdio_count, pipes, error_fd);
854 int (*pipes)[2],
880 pipes,
919 err = uv__spawn_and_init_child_fork(options, stdio_count, pipes, signal_pipe[1], pid);
964 int (*pipes)[2];
990 pipes = pipes_storage;
992 pipes = uv__malloc(stdio_count * sizeof(*pipes));
994 if (pipes == NULL)
998 pipes[i][0] = -1;
999 pipes[i][1] = -1;
1003 err = uv__process_init_stdio(options->stdio + i, pipes[i]);
1013 exec_errorno = uv__spawn_and_init_child(loop, options, stdio_count, pipes, &pid);
1050 err = uv__process_open_stream(options->stdio + i, pipes[i]);
1060 if (pipes != pipes_storage)
1061 uv__free(pipes);
1066 if (pipes != NULL) {
1071 if (pipes[i][0] != -1)
1072 uv__close_nocheckstdio(pipes[i][0]);
1073 if (pipes[i][1] != -1)
1074 uv__close_nocheckstdio(pipes[i][1]);
1077 if (pipes != pipes_storage)
1078 uv__free(pipes);