Lines Matching refs:fdstatus

395 	shp->fdstatus = (unsigned char*)malloc((unsigned)n);  in sh_ioinit()
396 memset((char*)shp->fdstatus,0,n); in sh_ioinit()
563 shp->fdstatus[fd] = shp->fdstatus[f2]; in io_preserve()
567 shp->fdstatus[fd] |= IOCLEX; in io_preserve()
596 shp->fdstatus[f2] = (shp->fdstatus[f1]&~IOCLEX); in sh_iorenumber()
603 shp->fdstatus[f2] = (shp->fdstatus[f1]&~IOCLEX); in sh_iorenumber()
633 sh.fdstatus[fd] = IOCLOSE; in sh_close()
769 sh.fdstatus[fd] = mode; in sh_open()
794 sh.fdstatus[fdnew] = (sh.fdstatus[fdold]&~IOCLEX); in sh_iomovefd()
796 sh.fdstatus[fdold] = IOCLOSE; in sh_iomovefd()
810 sh.fdstatus[pv[0]] = IONOSEEK|IOREAD; in sh_pipe()
811 sh.fdstatus[pv[1]] = IONOSEEK|IOWRITE; in sh_pipe()
839 int r, fd=sffileno(sp), close_exec = shp->fdstatus[fd]&IOCLEX; in io_patseek()
842 shp->fdstatus[sffileno(sp)] |= IOCLEX; in io_patseek()
867 shp->fdstatus[sffileno(sp)] &= ~IOCLEX; in io_patseek()
1105 shp->fdstatus[fd] = (shp->fdstatus[dupfd]&~IOCLEX); in sh_redirect()
1106 if(toclose<0 && shp->fdstatus[fd]&IOREAD) in sh_redirect()
1107 shp->fdstatus[fd] |= IODUP; in sh_redirect()
1217 r = shp->fdstatus[fn]; in sh_redirect()
1316 shp->fdstatus[fn] = shp->fdstatus[fd]; in sh_redirect()
1336 shp->fdstatus[fd] |= IOCLEX; in sh_redirect()
1398 shp->fdstatus[fd] = IOREAD; in io_heredoc()
1484 shp->fdstatus[savefd] = shp->fdstatus[origfd]; in sh_iosave()
1551 shp->fdstatus[origfd] = shp->fdstatus[savefd]; in sh_iorestore()
1553 if(shp->fdstatus[origfd]&IOCLEX) in sh_iorestore()
1567 shp->fdstatus[origfd] = IOCLOSE; in sh_iorestore()
1701 if(!(sh.fdstatus[sffileno(iop)]&IOCLEX) && (sfset(iop,0,0)&SF_SHARE)) in piperead()
1797 if((n=sh.fdstatus[fd])&IOCLOSE) in sh_iocheckfd()
1803 return(sh.fdstatus[fd]=IOCLOSE); in sh_iocheckfd()
1811 return(sh.fdstatus[fd]=IOCLOSE); in sh_iocheckfd()
1851 sh.fdstatus[fd] = n; in sh_iocheckfd()
1989 if(!shp->sftable[fd] && shp->fdstatus[fd]==IOCLOSE) in sftrack()
1995 shp->fdstatus[fd] = flag; in sftrack()
2017 shp->fdstatus[fd]=IOCLOSE; in sftrack()
2275 if(sh.fdstatus[old] == IOCLOSE) in sh_dup()
2276 sh.fdstatus[old] = 0; in sh_dup()
2277 sh.fdstatus[fd] = (sh.fdstatus[old]&~IOCLEX); in sh_dup()
2296 if(sh.fdstatus[fd] == IOCLOSE) in sh_fcntl()
2297 sh.fdstatus[fd] = 0; in sh_fcntl()
2298 sh.fdstatus[newfd] = (sh.fdstatus[fd]&~IOCLEX); in sh_fcntl()
2303 if(sh.fdstatus[fd] == IOCLOSE) in sh_fcntl()
2304 sh.fdstatus[fd] = 0; in sh_fcntl()
2306 sh.fdstatus[fd] |= IOCLEX; in sh_fcntl()
2308 sh.fdstatus[fd] &= ~IOCLEX; in sh_fcntl()
2359 if(!(n=shp->fdstatus[fd])) in sh_iogetiop()