Home
last modified time | relevance | path

Searched refs:savefd (Results 1 – 11 of 11) sorted by relevance

/openbsd-src/bin/ksh/
H A Dmain.c717 ep->savefd = NULL; in newenv()
731 if (ep->savefd != NULL) { in quitenv()
734 if (ep->savefd[fd]) in quitenv()
735 restfd(fd, ep->savefd[fd]); in quitenv()
736 if (ep->savefd[2]) /* Clear any write errors */ in quitenv()
791 if (ep->savefd) { in cleanup_parents_env()
793 if (ep->savefd[fd] > 0) in cleanup_parents_env()
794 close(ep->savefd[fd]); in cleanup_parents_env()
795 afree(ep->savefd, &ep->area); in cleanup_parents_env()
796 ep->savefd = NULL; in cleanup_parents_env()
H A Dexec.c107 genv->savefd = areallocarray(NULL, NUFILE, sizeof(short), ATEMP); in execute()
109 memset(genv->savefd, 0, NUFILE * sizeof(short)); in execute()
142 genv->savefd[0] = savefd(0); in execute()
143 genv->savefd[1] = savefd(1); in execute()
158 restfd(1, genv->savefd[1]); /* stdout of last */ in execute()
159 genv->savefd[1] = 0; /* no need to re-restore this */ in execute()
198 genv->savefd[0] = savefd(0); in execute()
199 genv->savefd[1] = savefd(1); in execute()
1136 if (genv->savefd[iop->unit] == 0) { in iosetup()
1139 genv->savefd[iop->unit] = -1; in iosetup()
[all …]
H A Dc_sh.c831 if (genv->savefd != NULL) { in c_exec()
833 if (genv->savefd[i] > 0) in c_exec()
834 close(genv->savefd[i]); in c_exec()
841 if (!Flag(FSH) && i > 2 && genv->savefd[i]) in c_exec()
844 genv->savefd = NULL; in c_exec()
H A Dio.c258 savefd(int fd) in savefd() function
297 pv[0] = savefd(lpv[0]); in openpipe()
300 pv[1] = savefd(lpv[1]); in openpipe()
H A Dsh.h78 short *savefd; /* original redirected fd's */ member
488 int savefd(int);
H A Djobs.c1276 if (ep->savefd && ep->savefd[2]) in check_job()
1277 fd = ep->savefd[2]; in check_job()
H A Deval.c919 ofd1 = savefd(1); in comsub()
/openbsd-src/gnu/usr.bin/perl/
H A Ddoio.c438 int *savefd, char *savetype) in S_openn_setup()
446 *savefd = -1; in S_openn_setup()
465 *savefd = old_fd; in S_openn_setup()
523 int savefd; in Perl_do_open_raw()
526 IO * const io = openn_setup(gv, mode, &saveifp, &saveofp, &savefd, &savetype); in Perl_do_open_raw()
582 return openn_cleanup(gv, io, fp, mode, oname, saveifp, saveofp, savefd,
592 int savefd; in Perl_do_open6()
595 IO * const io = openn_setup(gv, mode, &saveifp, &saveofp, &savefd, &savetype); in Perl_do_open6()
981 return openn_cleanup(gv, io, fp, mode, oname, saveifp, saveofp, savefd,
989 PerlIO *saveifp, PerlIO *saveofp, int savefd, cha in S_openn_cleanup()
434 S_openn_setup(pTHX_ GV * gv,char * mode,PerlIO ** saveifp,PerlIO ** saveofp,int * savefd,char * savetype) S_openn_setup() argument
519 int savefd; Perl_do_open_raw() local
588 int savefd; Perl_do_open6() local
985 S_openn_cleanup(pTHX_ GV * gv,IO * io,PerlIO * fp,char * mode,const char * oname,PerlIO * saveifp,PerlIO * saveofp,int savefd,char savetype,int writing,bool was_fdopen,const char * type,Stat_t * statbufp) S_openn_cleanup() argument
[all...]
H A Dproto.h6663 S_openn_cleanup(pTHX_ GV *gv, IO *io, PerlIO *fp, char *mode, const char *oname, PerlIO *saveifp, PerlIO *saveofp, int savefd, char savetype, int writing, bool was_fdopen, const char *type, Stat_t *statbufp);
6668 S_openn_setup(pTHX_ GV *gv, char *mode, PerlIO **saveifp, PerlIO **saveofp, int *savefd, char *savetype);
6670 assert(gv); assert(mode); assert(saveifp); assert(saveofp); assert(savefd); \
H A Dembed.fnc4140 |int savefd \
4150 |NN int *savefd \
/openbsd-src/gnu/usr.bin/perl/dist/Devel-PPPort/parts/
H A Dembed.fnc859 |NN PerlIO **saveofp|NN int *savefd \
864 |int savefd|char savetype|int writing \