Searched defs:pio (Results 1 - 2 of 2) sorted by relevance

/ast/src/lib/libcoshell/
H A Dcoopen.c161 int pio[4]; local
200 for (i = 0; i < elementsof(pio); i++)
201 pio[i] = -1;
202 if (pipe(&pio[0]) < 0 || pipe(&pio[2]) < 0)
208 for (i = 0; i < elementsof(pio); i++)
209 if (pio[i] < 10 && (n = fcntl(pio[i], F_DUPFD, 10)) >= 0)
211 close(pio[i]);
212 pio[
[all...]
/ast/src/lib/libast/misc/
H A Dprocopen.c412 int pio[2]; local
438 pio[0] = pio[1] = -1;
484 if (pipe(pio))
490 if (socketpair(AF_UNIX, SOCK_STREAM, 0, pio))
493 if (pipe(pio) || pipe(poi))
497 else if (pipe(pio))
648 if (modify(proc, forked, PROC_fd_dup|PROC_FD_CHILD, pio[0], PROC_ARG_NULL))
650 if (modify(proc, forked, PROC_fd_dup|PROC_FD_CHILD, pio[1], 1))
664 if (modify(proc, forked, PROC_fd_dup|PROC_FD_CHILD, pio[!!procf
[all...]

Completed in 1664 milliseconds