Home
last modified time | relevance | path

Searched refs:topfd (Results 1 – 14 of 14) sorted by relevance

/titanic_51/usr/src/lib/libshell/common/include/
H A Dfault.h98 int topfd; member
109 (bp)->topfd=sh.topfd, (bp)->prev=sh.jmplist, \
H A Ddefs.h159 int topfd; \
/titanic_51/usr/src/contrib/ast/src/cmd/ksh93/include/
H A Dfault.h98 int topfd; member
109 (bp)->topfd=shp->topfd, (bp)->prev=shp->jmplist, \
H A Ddefs.h187 int topfd; \
/titanic_51/usr/src/cmd/sh/
H A Dio.c42 short topfd; variable
402 for (i = topfd - 1; i >= last; i--) { in restore()
408 topfd = last; in restore()
H A Dservice.c43 extern short topfd;
58 lastfd = topfd; in initio()
66 fdmap[topfd].org_fd = ioufd; in initio()
67 fdmap[topfd++].dup_fd = savefd(ioufd); in initio()
/titanic_51/usr/src/lib/libshell/common/sh/
H A Dxec.c552 sh_iosave(shp,0,shp->topfd,(char*)0); in pipe_exec()
553 sh_iosave(shp,1,shp->topfd,(char*)0); in pipe_exec()
570 sh_iorestore(shp,buff.topfd,jmpval); in pipe_exec()
671 int topfd = shp->topfd; in sh_exec() local
1075 if((shp->topfd>topfd) && !(shp->subshell && np==SYSEXEC)) in sh_exec()
1076 sh_iorestore(shp,topfd,jmpval); in sh_exec()
1130 indx = shp->topfd; in sh_exec()
1252 if(shp->topfd > topfd) in sh_exec()
1253 sh_iorestore(shp,topfd,0); in sh_exec()
1333 if(shp->topfd) in sh_exec()
[all …]
H A Dio.c969 int r, indx = shp->topfd, perm= -1; in sh_redirect()
1429 for(savefd=shp->topfd; --savefd>=oldtop; ) in sh_iosave()
1435 if(shp->topfd >= filemapsize) in sh_iosave()
1473 filemap[shp->topfd].tname = name; in sh_iosave()
1474 filemap[shp->topfd].subshell = flag; in sh_iosave()
1475 filemap[shp->topfd].orig_fd = origfd; in sh_iosave()
1476 filemap[shp->topfd++].save_fd = savefd; in sh_iosave()
1485 shp->fdptrs[savefd] = &filemap[shp->topfd-1].save_fd; in sh_iosave()
1506 for(newfd=fd=0; fd < shp->topfd; fd++) in sh_iounsave()
1516 shp->topfd = newfd; in sh_iounsave()
[all …]
H A Dsubshell.c726 if(shp->topfd != buff.topfd) in sh_subshell()
727 sh_iorestore(shp,buff.topfd|IOSUBSHELL,jmpval); in sh_subshell()
H A Dargs.c829 sh_iosave(shp,-pv[fd], shp->topfd, (char*)0); in sh_argprocsub()
/titanic_51/usr/src/contrib/ast/src/cmd/ksh93/sh/
H A Dio.c1165 int r, indx = shp->topfd, perm= -1; in sh_redirect()
1682 for(savefd=shp->topfd; --savefd>=oldtop; ) in sh_iosave()
1688 if(shp->topfd >= filemapsize) in sh_iosave()
1725 filemap[shp->topfd].tname = name; in sh_iosave()
1726 filemap[shp->topfd].subshell = (flag&IOSUBSHELL); in sh_iosave()
1727 filemap[shp->topfd].orig_fd = origfd; in sh_iosave()
1728 filemap[shp->topfd++].save_fd = savefd; in sh_iosave()
1742 shp->fdptrs[savefd] = &filemap[shp->topfd-1].save_fd; in sh_iosave()
1763 for(newfd=fd=0; fd < shp->topfd; fd++) in sh_iounsave()
1774 shp->topfd in sh_iounsave()
[all...]
H A Dxec.c992 int topfd = shp->topfd; in sh_exec() local
1473 if((shp->topfd>topfd) && !(shp->subshell && np==SYSEXEC)) in sh_exec()
1474 sh_iorestore(shp,topfd,jmpval); in sh_exec()
1544 indx = shp->topfd; in sh_exec()
1649 restorefd = shp->topfd; in sh_exec()
1745 if(shp->topfd > topfd) in sh_exec()
1746 sh_iorestore(shp,topfd, in sh_exec()
[all...]
H A Dsubshell.c795 if(shp->topfd != buff.topfd) in sh_subshell()
796 sh_iorestore(shp,buff.topfd|IOSUBSHELL,jmpval); in sh_subshell()
H A Dargs.c833 sh_iosave(shp,-pv[fd], shp->topfd, (char*)0); in sh_argprocsub()