Home
last modified time | relevance | path

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

/illumos-gate/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; \
/illumos-gate/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()
/illumos-gate/usr/src/contrib/ast/src/cmd/ksh93/sh/
H A Dio.c1165 int r, indx = shp->topfd, perm= -1; in sh_redirect()
1688 if(shp->topfd >= filemapsize) in sh_iosave()
1725 filemap[shp->topfd].tname = name; in sh_iosave()
1727 filemap[shp->topfd].orig_fd = origfd; in sh_iosave()
1728 filemap[shp->topfd++].save_fd = savefd; in sh_iosave()
1763 for(newfd=fd=0; fd < shp->topfd; fd++) in sh_iounsave()
1774 shp->topfd = newfd; in sh_iounsave()
1848 if(last < shp->topfd) in sh_iorestore()
1849 shp->topfd = last; in sh_iorestore()
2774 for(fd = 0; fd < shp->topfd; fd++) { in sh_get_unused_fd()
[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,0); in sh_exec()
1843 if(shp->topfd) in sh_exec()
1845 topfd = shp->topfd; in sh_exec()
1865 sh_iorestore(shp,topfd,SH_JMPCMD); 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()