Searched refs:redirect (Results 1 - 3 of 3) sorted by relevance
| /ast/src/lib/libjcl/ |
| H A D | jcllib.h | 140 int redirect[elementsof(redirect)]; \ 155 #define redirect _jcl_redirect macro 160 extern Redirect_t redirect[2];
|
| H A D | open.c | 28 Redirect_t redirect[] = variable 69 for (i = 0; i < elementsof(redirect); i++) 70 jcl->redirect[i] = dup(redirect[i].fd); 144 for (i = 0; i < elementsof(redirect); i++) 145 if (jcl->redirect[i] >= 0) 146 dup2(jcl->redirect[i], redirect[i].fd);
|
| H A D | run.c | 202 for (i = 0; i < elementsof(redirect); i++) 203 if (jcl->redirect[i] > 0) 205 close(redirect[i].fd); 206 if ((n = open(redirect[i].file, O_CREAT|O_TRUNC|O_WRONLY|O_APPEND|O_BINARY, S_IRUSR|S_IWUSR|S_IRGRP|S_IWGRP|S_IROTH|S_IWOTH)) != redirect[i].fd) 209 dup2(jcl->redirect[i], redirect[i].fd); 497 else if (!(cj = coexec(co, s, CO_APPEND, redirect[0].file, redirect[1].file, NiL)) || !(cj = cowait(co, cj, -1))) 520 if (cj = coexec(co, s, CO_APPEND, redirect[ [all...] |
Completed in 277 milliseconds