Lines Matching defs:filemap
380 static struct fdsave *filemap;
389 filemap = (struct fdsave*)malloc(filemapsize*sizeof(struct fdsave));
1431 if(filemap[savefd].orig_fd == origfd)
1437 char *cp, *oldptr = (char*)filemap;
1438 char *oldend = (char*)&filemap[filemapsize];
1441 if(!(filemap = (struct fdsave*)realloc(filemap,filemapsize*sizeof(struct fdsave))))
1443 if(moved = (char*)filemap - oldptr)
1473 filemap[shp->topfd].tname = name;
1474 filemap[shp->topfd].subshell = flag;
1475 filemap[shp->topfd].orig_fd = origfd;
1476 filemap[shp->topfd++].save_fd = savefd;
1485 shp->fdptrs[savefd] = &filemap[shp->topfd-1].save_fd;
1508 if((savefd = filemap[fd].save_fd)< 0)
1509 filemap[newfd++] = filemap[fd];
1529 if(!flag && filemap[fd].subshell)
1533 if ((savefd = filemap[fd].save_fd) >= 0)
1540 origfd = filemap[fd].orig_fd;
1541 if(filemap[fd].tname == Empty && shp->exitval==0)
1543 else if(filemap[fd].tname)
1544 io_usename(filemap[fd].tname,(int*)0,shp->exitval?2:1);
1546 if ((savefd = filemap[fd].save_fd) >= 0)
1574 if(filemap[fd].subshell)
1575 filemap[last++] = filemap[fd];