Lines Matching refs:fdstatus
410 unsigned char *fdstatus = shp->fdstatus;
431 shp->fdstatus = (unsigned char*)(&shp->fdptrs[n]);
433 memcpy(shp->fdstatus,fdstatus,max);
618 shp->fdstatus[fd] = shp->fdstatus[f2];
622 shp->fdstatus[fd] |= IOCLEX;
651 shp->fdstatus[f2] = (shp->fdstatus[f1]&~IOCLEX);
658 shp->fdstatus[f2] = (shp->fdstatus[f1]&~IOCLEX);
666 if(shp->fdstatus[f1]!=IOCLOSE)
702 shp->fdstatus[fd] = IOCLOSE;
851 shp->fdstatus[fd] = mode;
879 shp->fdstatus[fdnew] = (shp->fdstatus[fdold]&~IOCLEX);
881 shp->fdstatus[fdold] = IOCLOSE;
896 shp->fdstatus[pv[0]] = IONOSEEK|IOREAD;
897 shp->fdstatus[pv[1]] = IONOSEEK|IOWRITE;
919 shp->fdstatus[pv[0]] = IONOSEEK|IOREAD;
920 shp->fdstatus[pv[1]] = IONOSEEK|IOWRITE;
940 shp->fdstatus[pv[out]] |= IOCLEX;
941 shp->fdstatus[pv[out]] = (out?IOWRITE:IOREAD);
942 shp->fdstatus[pv[out]] |= IONOSEEK;
971 shp->fdstatus[pv[out]] |= IOCLEX;
1000 int r, fd=sffileno(sp), close_exec = shp->fdstatus[fd]&IOCLEX;
1003 shp->fdstatus[sffileno(sp)] |= IOCLEX;
1028 shp->fdstatus[sffileno(sp)] &= ~IOCLEX;
1301 shp->fdstatus[fd] = (shp->fdstatus[dupfd]&~IOCLEX);
1302 if(toclose<0 && shp->fdstatus[fd]&IOREAD)
1303 shp->fdstatus[fd] |= IODUP;
1414 r = shp->fdstatus[fn];
1477 if(flag==0 || tname || (flag==1 && fn==1 && (shp->fdstatus[fn]&IONOSEEK) && shp->outpipepid && shp->outpipepid==getpid()))
1517 shp->fdstatus[fn] = shp->fdstatus[fd];
1537 shp->fdstatus[fd] |= IOCLEX;
1628 shp->fdstatus[fd] = IOREAD;
1709 shp->fdstatus[savefd] = shp->fdstatus[origfd];
1784 shp->fdstatus[origfd] = shp->fdstatus[savefd];
1786 if(shp->fdstatus[origfd]&IOCLEX)
1800 shp->fdstatus[origfd] = IOCLOSE;
1942 if(!(shp->fdstatus[fd]&IOCLEX) && (sfset(iop,0,0)&SF_SHARE))
2038 if((n=shp->fdstatus[fd])&IOCLOSE)
2044 return(shp->fdstatus[fd]=IOCLOSE);
2052 return(shp->fdstatus[fd]=IOCLOSE);
2104 shp->fdstatus[fd] = n;
2243 if(!shp->sftable[fd] && shp->fdstatus[fd]==IOCLOSE)
2249 shp->fdstatus[fd] = flag;
2271 shp->fdstatus[fd]=IOCLOSE;
2539 if(shp->fdstatus[old] == IOCLOSE)
2540 shp->fdstatus[old] = 0;
2541 shp->fdstatus[fd] = (shp->fdstatus[old]&~IOCLEX);
2561 if(shp->fdstatus[fd] == IOCLOSE)
2562 shp->fdstatus[fd] = 0;
2565 shp->fdstatus[newfd] = (shp->fdstatus[fd]&~IOCLEX);
2570 if(shp->fdstatus[fd] == IOCLOSE)
2571 shp->fdstatus[fd] = 0;
2573 shp->fdstatus[fd] |= IOCLEX;
2575 shp->fdstatus[fd] &= ~IOCLEX;
2627 if(!(n=shp->fdstatus[fd]))