Home
last modified time | relevance | path

Searched refs:fdstatus (Results 1 – 18 of 18) sorted by relevance

/titanic_51/usr/src/contrib/ast/src/cmd/ksh93/sh/
H A Dio.c410 unsigned char *fdstatus = shp->fdstatus; in sh_iovalidfd() local
431 shp->fdstatus = (unsigned char*)(&shp->fdptrs[n]); in sh_iovalidfd()
433 memcpy(shp->fdstatus,fdstatus,max); in sh_iovalidfd()
620 shp->fdstatus[fd] = shp->fdstatus[f2]; in io_preserve()
624 shp->fdstatus[fd] |= IOCLEX; in io_preserve()
658 shp->fdstatus[f2] = (shp->fdstatus[f in sh_iorenumber()
[all...]
H A Dsubshell.c93 unsigned char fdstatus; member
129 shp->fdstatus[fd] = shp->fdstatus[1]|IOCLEX; in sh_subtmpfile()
156 shp->fdstatus[fd] = IOREAD|IOWRITE; in sh_subtmpfile()
163 shp->fdstatus[1] = shp->fdstatus[fd]; in sh_subtmpfile()
164 shp->fdstatus[fd] = IOCLOSE; in sh_subtmpfile()
607 sp->fdstatus = shp->fdstatus[1]; in sh_subshell()
618 shp->fdstatus[ in sh_subshell()
[all...]
H A Dmain.c388 shp->fdstatus[r] = shp->fdstatus[fno]; in exfile()
393 shp->fdstatus[fno] |= IOCLEX; in exfile()
544 !sferror(sfstderr) && (shp->fdstatus[fno]&IOTTY)) in exfile()
585 (fno<0 || !(shp->fdstatus[fno]&(IOTTY|IONOSEEK))) in exfile()
H A Dxec.c123 shp->fdstatus[subpipe[2]] = shp->fdstatus[1]; in iousepipe()
126 shp->fdstatus[1] = shp->fdstatus[subpipe[1]]; in iousepipe()
134 shp->fdstatus[i] = shp->fdstatus[1]; in iousepipe()
147 shp->fdstatus[1] = shp->fdstatus[subpipe[2]]; in iounpipe()
155 shp->fdstatus[n] = shp->fdstatus[ in iounpipe()
[all...]
H A Dpath.c541 shp->fdstatus[fd] |= IOCLEX; in path_opentype()
1282 if(shp->infd>0 && (shp->fdstatus[shp->infd]&IOCLEX)) in exscript()
/titanic_51/usr/src/lib/libshell/common/sh/
H A Dio.c395 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 …]
H A Dsubshell.c84 unsigned char fdstatus; member
114 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 …]
H A Dmain.c400 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()
H A Dxec.c545 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 …]
H A Dargs.c789 sh.fdstatus[pv[0]] = IONOSEEK|IOREAD; in arg_pipe()
790 sh.fdstatus[pv[1]] = IONOSEEK|IOWRITE; in arg_pipe()
H A Dpath.c580 shp->fdstatus[fd] |= IOCLEX; in path_opentype()
1241 if(shp->infd>0 && (shp->fdstatus[shp->infd]&IOCLEX)) in exscript()
/titanic_51/usr/src/lib/libshell/common/bltins/
H A Dread.c144 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()
H A Dprint.c258 else if(!(n=shp->fdstatus[fd])) in b_print()
/titanic_51/usr/src/contrib/ast/src/cmd/ksh93/bltins/
H A Dread.c147 if(!((r=shp->fdstatus[fd])&IOREAD) || !(r&(IOSEEK|IONOSEEK))) in b_read()
282 if((shp->fdstatus[fd]&IOTTY) && !keytrap) in sh_readline()
334 if(timeout || (shp->fdstatus[fd]&(IOTTY|IONOSEEK))) in sh_readline()
802 if(timeout || (shp->fdstatus[fd]&(IOTTY|IONOSEEK))) in sh_readline()
809 if((shp->fdstatus[fd]&IOTTY) && !keytrap) in sh_readline()
H A Dprint.c292 else if(!(n=shp->fdstatus[fd])) in b_print()
/titanic_51/usr/src/uts/common/fs/pcfs/
H A Dpc_node.c575 int fdstatus = 0; in pc_verify() local
591 FDGETCHANGE, (intptr_t)&fdstatus, FNATIVE | FKIOCTL, in pc_verify()
628 if (fdstatus & (FDGC_HISTORY | FDGC_DETECTED)) { in pc_verify()
/titanic_51/usr/src/lib/libshell/common/include/
H A Ddefs.h220 unsigned char *fdstatus; \
/titanic_51/usr/src/contrib/ast/src/cmd/ksh93/include/
H A Ddefs.h248 unsigned char *fdstatus; \