Lines Matching refs:topfd
969 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()
1527 for (fd = shp->topfd - 1; fd >= last; fd--) in sh_iorestore()
1572 for (fd = last ; fd < shp->topfd; fd++) in sh_iorestore()
1578 if(last < shp->topfd) in sh_iorestore()
1579 shp->topfd = last; in sh_iorestore()