Symbol: savefd
bin/ksh/c_sh.c
847
if (e->savefd != NULL) {
bin/ksh/c_sh.c
849
if (e->savefd[i] > 0)
bin/ksh/c_sh.c
850
close(e->savefd[i]);
bin/ksh/c_sh.c
858
if (i > 2 && e->savefd[i])
bin/ksh/c_sh.c
862
e->savefd = NULL;
bin/ksh/eval.c
883
ofd1 = savefd(1, 0); /* fd 1 may be closed... */
bin/ksh/exec.c
1206
if (e->savefd[iop->unit] == 0) {
bin/ksh/exec.c
1209
e->savefd[iop->unit] = -1;
bin/ksh/exec.c
1217
e->savefd[iop->unit] = savefd(iop->unit, 1);
bin/ksh/exec.c
136
e->savefd = (short *) alloc(sizeofN(short, NUFILE), ATEMP);
bin/ksh/exec.c
138
memset(e->savefd, 0, sizeofN(short, NUFILE));
bin/ksh/exec.c
169
e->savefd[0] = savefd(0, 0);
bin/ksh/exec.c
170
(void) ksh_dup2(e->savefd[0], 0, false); /* stdin of first */
bin/ksh/exec.c
171
e->savefd[1] = savefd(1, 0);
bin/ksh/exec.c
186
restfd(1, e->savefd[1]); /* stdout of last */
bin/ksh/exec.c
187
e->savefd[1] = 0; /* no need to re-restore this */
bin/ksh/exec.c
228
e->savefd[0] = savefd(0, 0);
bin/ksh/exec.c
229
e->savefd[1] = savefd(1, 0);
bin/ksh/history.c
857
histfd = savefd(fd, 0);
bin/ksh/io.c
291
pv[0] = savefd(pv[0], 0);
bin/ksh/io.c
292
pv[1] = savefd(pv[1], 0);
bin/ksh/jobs.c
1398
if (ep->savefd && ep->savefd[2])
bin/ksh/jobs.c
1399
fd = ep->savefd[2];
bin/ksh/main.c
663
ep->savefd = NULL;
bin/ksh/main.c
677
if (ep->savefd != NULL) {
bin/ksh/main.c
680
if (ep->savefd[fd])
bin/ksh/main.c
681
restfd(fd, ep->savefd[fd]);
bin/ksh/main.c
682
if (ep->savefd[2]) /* Clear any write errors */
bin/ksh/main.c
731
if (ep->savefd) {
bin/ksh/main.c
733
if (ep->savefd[fd] > 0)
bin/ksh/main.c
734
close(ep->savefd[fd]);
bin/ksh/main.c
735
afree(ep->savefd, &ep->area);
bin/ksh/main.c
736
ep->savefd = (short *) 0;
bin/ksh/proto.h
125
int savefd ARGS((int, int));
bin/ksh/sh.h
219
short *savefd; /* original redirected fd's */