Lines Matching refs:ep
922 struct env *ep; in newenv() local
931 ep = (void *)(cp - ALLOC_SIZE); in newenv()
933 ainit(&ep->area); in newenv()
934 ep->oenv = e; in newenv()
935 ep->loc = e->loc; in newenv()
936 ep->savefd = NULL; in newenv()
937 ep->temps = NULL; in newenv()
938 ep->yyrecursive_statep = NULL; in newenv()
939 ep->type = type; in newenv()
940 ep->flags = 0; in newenv()
942 e = ep; in newenv()
948 struct env *ep = e; in quitenv() local
953 while (ep->oenv && ep->oenv->loc != ep->loc) in quitenv()
955 if (ep->savefd != NULL) { in quitenv()
958 if (ep->savefd[fd]) in quitenv()
959 restfd(fd, ep->savefd[fd]); in quitenv()
960 if (ep->savefd[2]) in quitenv()
968 if (ep->oenv == NULL) { in quitenv()
973 if (ep->type == E_NONE) { in quitenv()
980 if (ep->flags & EF_FAKE_SIGDIE) { in quitenv()
1026 cp = (void *)ep; in quitenv()
1034 struct env *ep; in cleanup_parents_env() local
1044 for (ep = e; ep; ep = ep->oenv) { in cleanup_parents_env()
1045 if (ep->savefd) { in cleanup_parents_env()
1047 if (ep->savefd[fd] > 0) in cleanup_parents_env()
1048 close(ep->savefd[fd]); in cleanup_parents_env()
1049 afree(ep->savefd, &ep->area); in cleanup_parents_env()
1050 ep->savefd = NULL; in cleanup_parents_env()
1053 if (ep->type != E_NONE) in cleanup_parents_env()
1054 ep->type = E_GONE; in cleanup_parents_env()
1066 struct env *ep; in cleanup_proc_env() local
1068 for (ep = e; ep; ep = ep->oenv) in cleanup_proc_env()
1069 remove_temps(ep->temps); in cleanup_proc_env()