Lines Matching refs:std
75 pp->std[0] = inp; in noshell_proc_start()
76 pp->std[1] = outp; in noshell_proc_start()
77 pp->std[2] = errp; in noshell_proc_start()
86 if (pp->std[i] != 0){ in noshell_proc_start()
87 close(Bfildes(pp->std[i]->fp)); in noshell_proc_start()
88 while(pp->std[i]->fd < 3) in noshell_proc_start()
89 pp->std[i]->fd = dup(pp->std[i]->fd, -1); in noshell_proc_start()
92 if (pp->std[i] != 0) in noshell_proc_start()
93 dup(pp->std[i]->fd, i); in noshell_proc_start()
103 if (pp->std[i] != 0) { in noshell_proc_start()
104 close(pp->std[i]->fd); in noshell_proc_start()
105 pp->std[i]->fd = -1; in noshell_proc_start()
156 if(pp->std[1] == pp->std[2]) in proc_free()
157 pp->std[2] = 0; /* avoid freeing it twice */ in proc_free()
159 if (pp->std[i]) in proc_free()
160 stream_free(pp->std[i]); in proc_free()