Home
last modified time | relevance | path

Searched refs:SF_SHARE (Results 1 – 25 of 38) sorted by relevance

12

/titanic_50/usr/src/lib/libast/common/sfio/
H A Dsfrd.c147 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 Dsfsize.c55 { if(f->flags&(SF_SHARE|SF_APPENDWR))
77 if((f->flags&(SF_SHARE|SF_PUBLIC)) == (SF_SHARE|SF_PUBLIC))
H A Dsfwr.c178 { 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 Dsfseek.c68 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 Dsfpool.c90 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 Dsftell.c54 if(f->extent >= 0 && (f->flags&(SF_SHARE|SF_APPENDWR)) )
H A Dsfmove.c93 (fw->extent < 0 || (fw->flags&SF_SHARE)) ) )
155 if(n > 0 && fr->extent < 0 && (fr->flags&SF_SHARE) )
H A Dsfset.c84 if(!(f->flags&SF_SHARE) || f->extent < 0)
H A Dsfputr.c110 if(f->extent < 0 && (f->flags&SF_SHARE) )
H A Dsffilbuf.c95 { if(r > n && f->extent < 0 && (f->flags&SF_SHARE) )
H A Dsfread.c109 ((f->flags&SF_SHARE) && f->extent < 0) )
H A Dsfwrite.c148 if(f->extent < 0 && (f->flags&SF_SHARE) && !(f->flags&SF_PUBLIC) )
H A Dsfsync.c152 if((f->flags&SF_SHARE) && !(f->flags&SF_PUBLIC) &&
H A Dsfreserve.c130 else if(type == SF_LOCKR && f->extent < 0 && (f->flags&SF_SHARE) )
H A Dsfmode.c510 if((f->flags&(SF_SHARE|SF_PUBLIC)) == (SF_SHARE|SF_PUBLIC) &&
H A Dsfsetbuf.c253 f->flags |= SF_SHARE|SF_PUBLIC;
/titanic_50/usr/src/lib/libast/common/stdio/
H A Dfseek.c35 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 Dfseeko.c35 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 Dread.c309 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 Dprint.c276 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 Dtail.c284 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 Dhead.c130 sfset(fp, SF_SHARE, 1); in b_head()
H A DRELEASE202 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 Dio.c416 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 Dxec.c971 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()

12