/titanic_50/usr/src/lib/libast/common/sfio/ |
H A D | sfrd.c | 147 if((f->flags&(SF_SHARE|SF_PUBLIC)) == (SF_SHARE|SF_PUBLIC) && 153 if((f->flags&SF_SHARE) || (size_t)(r = f->extent-f->here) < n) 236 if(f->extent >= 0 && (f->flags&SF_SHARE) ) 246 { int share = f->flags&SF_SHARE; 251 else f->flags &= ~SF_SHARE; 262 else if(f->extent < 0 && (f->flags&SF_SHARE) && rcrv)
|
H A D | sfsize.c | 55 { if(f->flags&(SF_SHARE|SF_APPENDWR)) 77 if((f->flags&(SF_SHARE|SF_PUBLIC)) == (SF_SHARE|SF_PUBLIC))
|
H A D | sfwr.c | 178 { if(f->here != f->extent || (f->flags&SF_SHARE)) 183 else if((f->flags&SF_SHARE) && !(f->flags&SF_PUBLIC)) 198 !(f->flags&(SF_SHARE|SF_APPENDWR)) &&
|
H A D | sfseek.c | 68 hardseek = (type|f->flags)&(SF_SHARE|SF_PUBLIC); 80 f->flags |= SF_SHARE|SF_PUBLIC; 89 mustsync = (type&SF_SHARE) && !(type&SF_PUBLIC) &&
|
H A D | sfpool.c | 90 p->mode = mode&SF_SHARE; 123 if(!(p->mode&SF_SHARE) || (head->mode&SF_READ) || (f->mode&SF_READ) ) 326 if(mode&SF_SHARE) /* can only have write streams */
|
H A D | sftell.c | 54 if(f->extent >= 0 && (f->flags&(SF_SHARE|SF_APPENDWR)) )
|
H A D | sfmove.c | 93 (fw->extent < 0 || (fw->flags&SF_SHARE)) ) ) 155 if(n > 0 && fr->extent < 0 && (fr->flags&SF_SHARE) )
|
H A D | sfset.c | 84 if(!(f->flags&SF_SHARE) || f->extent < 0)
|
H A D | sfputr.c | 110 if(f->extent < 0 && (f->flags&SF_SHARE) )
|
H A D | sffilbuf.c | 95 { if(r > n && f->extent < 0 && (f->flags&SF_SHARE) )
|
H A D | sfread.c | 109 ((f->flags&SF_SHARE) && f->extent < 0) )
|
H A D | sfwrite.c | 148 if(f->extent < 0 && (f->flags&SF_SHARE) && !(f->flags&SF_PUBLIC) )
|
H A D | sfsync.c | 152 if((f->flags&SF_SHARE) && !(f->flags&SF_PUBLIC) &&
|
H A D | sfreserve.c | 130 else if(type == SF_LOCKR && f->extent < 0 && (f->flags&SF_SHARE) )
|
H A D | sfmode.c | 510 if((f->flags&(SF_SHARE|SF_PUBLIC)) == (SF_SHARE|SF_PUBLIC) &&
|
H A D | sfsetbuf.c | 253 f->flags |= SF_SHARE|SF_PUBLIC;
|
/titanic_50/usr/src/lib/libast/common/stdio/ |
H A D | fseek.c | 35 return sfseek(f, (Sfoff_t)off, op|SF_SHARE) >= 0 ? 0 : -1; in fseek() 45 return sfseek(f, (Sfoff_t)off, op|SF_SHARE) >= 0 ? 0 : -1; in fseek64()
|
H A D | fseeko.c | 35 return sfseek(f, (Sfoff_t)off, op|SF_SHARE) >= 0 ? 0 : -1; in fseeko() 45 return sfseek(f, (Sfoff_t)off, op|SF_SHARE) >= 0 ? 0 : -1; in fseeko64()
|
/titanic_50/usr/src/lib/libshell/common/bltins/ |
H A D | read.c | 309 was_share = (sfset(iop,SF_SHARE,1)&SF_SHARE)!=0; in sh_readline() 332 if((sfset(iop,SF_SHARE,1)&SF_SHARE) && fd!=0) in sh_readline() 719 sfset(iop,SF_SHARE,0); in sh_readline()
|
H A D | print.c | 276 n = sfset(outfile,SF_SHARE|SF_PUBLIC,0); in b_print() 325 else if(n&SF_SHARE) in b_print() 327 sfset(outfile,SF_SHARE|SF_PUBLIC,1); in b_print()
|
/titanic_50/usr/src/lib/libcmd/common/ |
H A D | tail.c | 284 sfset(tp->sp, SF_SHARE, 0); in init() 289 sfset(tp->sp, SF_SHARE, !(flags & FOLLOW)); in init() 736 sfset(ip, SF_SHARE, 1); in b_tail() 746 sfset(ip, SF_SHARE, 0); in b_tail()
|
H A D | head.c | 130 sfset(fp, SF_SHARE, 1); in b_head()
|
H A D | RELEASE | 202 01-10-29 tail.c: SF_SHARE on only if not reading through EOF 206 01-09-06 tail: input streams must be SF_SHARE -- duh 273 96-12-25 head: sfset(sfstdin,SF_SHARE,1)
|
/titanic_50/usr/src/lib/libshell/common/sh/ |
H A D | io.c | 416 sfset(sfstdin,SF_SHARE|SF_PUBLIC,1); in sh_ioinit() 503 flags |= SF_SHARE|SF_PUBLIC; in sh_iostream() 599 sfset(sp,SF_SHARE|SF_PUBLIC,1); in sh_iorenumber() 844 was_share = sfset(sp,SF_SHARE,1); in io_patseek() 868 if(fd==0 && !(was_share&SF_SHARE)) in io_patseek() 869 sfset(sp, SF_SHARE,0); in io_patseek() 1701 if(!(sh.fdstatus[sffileno(iop)]&IOCLEX) && (sfset(iop,0,0)&SF_SHARE)) in piperead() 1873 sfflags = sfset(sfstderr,SF_SHARE|SF_PUBLIC|SF_READ,0); in io_prompt() 1925 sfset(sfstderr,sfflags&SF_READ|SF_SHARE|SF_PUBLIC,1); in io_prompt()
|
H A D | xec.c | 971 share = sfset(sfstdin,SF_SHARE,0); in sh_exec() 1051 if(share&SF_SHARE) in sh_exec() 1052 sfset(sfstdin,SF_PUBLIC|SF_SHARE,1); in sh_exec() 1402 sfset(sfstdin,SF_PUBLIC|SF_SHARE,0); in sh_exec() 2308 sfset(sfstderr,SF_SHARE|SF_PUBLIC,0); in sh_trace() 2342 sfset(sfstderr,SF_SHARE|SF_PUBLIC,1); in sh_trace()
|