Lines Matching refs:sftable
402 Sfio_t **sftable = shp->sftable;
419 shp->sftable = (Sfio_t**)calloc(n*(sizeof(int*)+sizeof(Sfio_t*)+1),1);
421 memcpy(shp->sftable,sftable,max*sizeof(Sfio_t*));
422 shp->fdptrs = (int**)(&shp->sftable[n]);
428 if(sftable)
429 free((void*)sftable);
444 shp->sftable[0] = sfstdin;
445 shp->sftable[1] = sfstdout;
446 shp->sftable[2] = sfstderr;
543 if((iop = shp->sftable[fd]) && sffileno(iop)>=0)
580 shp->sftable[fd] = iop;
613 shp->sftable[fd] = sp;
620 shp->sftable[f2] = 0;
636 sp = shp->sftable[f2];
666 shp->sftable[f1] = 0;
693 if(!(sp=shp->sftable[fd]) || sfclose(sp) < 0)
700 shp->sftable[fd] = 0;
1037 sp = shp->sftable[fn];
1260 else if(shp->sftable[dupfd])
1261 sfsync(shp->sftable[dupfd]);
1405 sp = shp->sftable[fn];
1490 io_preserve(shp,shp->sftable[fn],fn);
1671 sp = shp->sftable[origfd];
1678 if(!(shp->sftable[savefd]=sp))
1685 shp->sftable[savefd] = sp;
1688 shp->sftable[origfd] = 0;
1705 shp->sftable[savefd] = 0;
1729 shp->sftable[savefd] = 0;
1741 shp->sftable[savefd] = 0;
1762 sfswap(shp->sftable[savefd],shp->sftable[origfd]);
1767 shp->sftable[origfd] = shp->sftable[savefd];
1768 shp->sftable[savefd] = 0;
2216 if(!shp->sftable[fd] && shp->fdstatus[fd]==IOCLOSE)
2218 shp->sftable[fd] = sp;
2243 shp->sftable[fd] = 0;
2472 if(sp=shp->sftable[fd])
2488 if(sp=shp->sftable[fd])
2504 if((sp=shp->sftable[fd]) && (sfset(sp,0,0)&(SF_READ|SF_WRITE)))
2617 if(!(iop = shp->sftable[fd]))
2639 sp = shp->sftable[fd];
2648 shp->sftable[fd] = sp;