Searched refs:fdstatus (Results 1 – 10 of 10) sorted by relevance
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()[all …]
84 unsigned char fdstatus; member114 shp->fdstatus[fd] = shp->fdstatus[1]|IOCLEX; in sh_subtmpfile()116 shp->fdstatus[1] = IOCLOSE; in sh_subtmpfile()129 shp->fdstatus[fd] = IOREAD|IOWRITE; in sh_subtmpfile()136 shp->fdstatus[1] = shp->fdstatus[fd]; in sh_subtmpfile()137 shp->fdstatus[fd] = IOCLOSE; in sh_subtmpfile()143 if(sp && (shp->fdstatus[1]==IOCLOSE || (!shp->subshare && !(shp->fdstatus[1]&IONOSEEK)))) in sh_subtmpfile()164 …if(fd==1 || ((shp->fdstatus[fd]&(IONOSEEK|IOSEEK|IOWRITE))!=(IOSEEK|IOWRITE)) || fstat(fd,&statx)<… in sh_subtmpfile()552 sp->fdstatus = shp->fdstatus[1]; in sh_subshell()563 shp->fdstatus[1] = IOWRITE; in sh_subshell()[all …]
400 shp->fdstatus[r] = shp->fdstatus[fno]; in exfile()405 shp->fdstatus[fno] |= IOCLEX; in exfile()554 !sferror(sfstderr) && (shp->fdstatus[fno]&IOTTY)) in exfile()594 (fno<0 || !(shp->fdstatus[fno]&(IOTTY|IONOSEEK))) in exfile()
545 shp->fdstatus[pv[0]] = IOREAD|IODUP|IOSEEK; in pipe_exec()547 shp->fdstatus[pv[1]] = IOWRITE|IOSEEK; in pipe_exec()567 shp->fdstatus[pv[0]] = IOREAD|IODUP|IOSEEK; in pipe_exec()1004 if((shp->fdstatus[fd]&IOCLEX)&&fd!=shp->infd) in sh_exec()2843 shp->fdstatus[fd] = (shp->fdstatus[outfd]&~IOCLEX); in coproc_init()2845 shp->fdstatus[outfd] = IOCLOSE; in coproc_init()2850 shp->fdstatus[shp->cpipe[0]] |= IOCLEX; in coproc_init()2854 shp->fdstatus[shp->cpipe[1]] |= IOCLEX; in coproc_init()2861 shp->fdstatus[shp->outpipe[0]] |= IOCLEX; in coproc_init()2924 if(sh.fdstatus[i]&IOCLEX && i!=pin && i!=pout) in run_subshell()[all …]
789 sh.fdstatus[pv[0]] = IONOSEEK|IOREAD; in arg_pipe()790 sh.fdstatus[pv[1]] = IONOSEEK|IOWRITE; in arg_pipe()
580 shp->fdstatus[fd] |= IOCLEX; in path_opentype()1241 if(shp->infd>0 && (shp->fdstatus[shp->infd]&IOCLEX)) in exscript()
144 if(!((r=shp->fdstatus[fd])&IOREAD) || !(r&(IOSEEK|IONOSEEK))) in b_read()272 if(shp->fdstatus[fd]&IOTTY) in sh_readline()310 if(timeout || (shp->fdstatus[fd]&(IOTTY|IONOSEEK))) in sh_readline()714 if(timeout || (shp->fdstatus[fd]&(IOTTY|IONOSEEK))) in sh_readline()721 if((flags>>D_FLAG) && (shp->fdstatus[fd]&IOTTY)) in sh_readline()
258 else if(!(n=shp->fdstatus[fd])) in b_print()
578 int fdstatus = 0; in pc_verify() local594 FDGETCHANGE, (intptr_t)&fdstatus, FNATIVE | FKIOCTL, in pc_verify()631 if (fdstatus & (FDGC_HISTORY | FDGC_DETECTED)) { in pc_verify()
220 unsigned char *fdstatus; \