/titanic_51/usr/src/contrib/ast/src/cmd/ksh93/sh/ |
H A D | io.c | 410 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 D | subshell.c | 93 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 D | main.c | 388 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 D | xec.c | 123 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 D | path.c | 541 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 D | io.c | 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 …]
|
H A D | subshell.c | 84 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 D | main.c | 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()
|
H A D | xec.c | 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 …]
|
H A D | args.c | 789 sh.fdstatus[pv[0]] = IONOSEEK|IOREAD; in arg_pipe() 790 sh.fdstatus[pv[1]] = IONOSEEK|IOWRITE; in arg_pipe()
|
H A D | path.c | 580 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 D | read.c | 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()
|
H A D | print.c | 258 else if(!(n=shp->fdstatus[fd])) in b_print()
|
/titanic_51/usr/src/contrib/ast/src/cmd/ksh93/bltins/ |
H A D | read.c | 147 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 D | print.c | 292 else if(!(n=shp->fdstatus[fd])) in b_print()
|
/titanic_51/usr/src/uts/common/fs/pcfs/ |
H A D | pc_node.c | 575 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 D | defs.h | 220 unsigned char *fdstatus; \
|
/titanic_51/usr/src/contrib/ast/src/cmd/ksh93/include/ |
H A D | defs.h | 248 unsigned char *fdstatus; \
|