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