Lines Matching refs:savefd
997 ep->savefd = NULL; in newenv()
1016 if (ep->savefd != NULL) { in quitenv()
1019 if (ep->savefd[fd]) in quitenv()
1020 restfd(fd, ep->savefd[fd]); in quitenv()
1021 if (ep->savefd[2]) in quitenv()
1106 if (ep->savefd) { in cleanup_parents_env()
1108 if (ep->savefd[fd] > 0) in cleanup_parents_env()
1109 close(ep->savefd[fd]); in cleanup_parents_env()
1110 afree(ep->savefd, &ep->area); in cleanup_parents_env()
1111 ep->savefd = NULL; in cleanup_parents_env()
1481 savefd(int fd) in savefd() function
1516 pv[0] = savefd(lpv[0]); in openpipe()
1519 pv[1] = savefd(lpv[1]); in openpipe()
1713 if ((j = savefd(i)) != i) { in maketemp()