Home
last modified time | relevance | path

Searched refs:SF_RDWR (Results 1 – 24 of 24) sorted by relevance

/illumos-gate/usr/src/contrib/ast/src/lib/libast/sfio/
H A Dsfpopen.c172 (sflags&SF_READ) ? proc->rfd : proc->wfd, sflags|((sflags&SF_RDWR)?0:SF_READ))) ||
203 if(sflags&SF_RDWR)
206 if((sflags&SF_RDWR) == SF_RDWR && syspipef(child) < 0)
225 …if(!(f = sfnew(f,NIL(Void_t*),(size_t)SF_UNBOUND,parent[pkeep],sflags|((sflags&SF_RDWR)?0:SF_READ)…
227 if(sflags&SF_RDWR)
230 if((sflags&SF_RDWR) == SF_RDWR)
237 fd = (sflags&SF_RDWR) == SF_RDWR ? child[ckeep] : -1;
252 if(sflags&SF_RDWR)
254 if((sflags&SF_RDWR) == SF_RDWR)
262 if((sflags&SF_RDWR) == SF_RDWR && pkeep == child[ckeep])
[all …]
H A Dsfset.c46 if((oflags = (f->mode&SF_RDWR)) != (int)f->mode)
66 if(!(f->bits&SF_BOTH) || (flags&SF_RDWR) == SF_RDWR )
67 flags &= ~SF_RDWR;
75 if(!(f->flags&SF_RDWR))
76 f->flags |= (oflags&SF_RDWR);
82 if((flags &= SF_RDWR) )
H A D_sfopen.c58 { f->flags |= (sflags & (SF_FLAGS & ~SF_RDWR));
60 if((sflags &= SF_RDWR) != 0) /* reset read/write modes */
61 { f->flags = (f->flags & ~SF_RDWR) | sflags;
63 if((f->flags&SF_RDWR) == SF_RDWR)
220 if((sflags&SF_RDWR) == SF_RDWR)
228 if((sflags&(SF_STRING|SF_RDWR)) == SF_STRING)
H A Dsfnew.c47 if(!(flags&SF_RDWR))
69 if(((f->mode&SF_RDWR) != f->mode && _sfmode(f,0,0) < 0) ||
110 f->bits = (flags&SF_RDWR) == SF_RDWR ? SF_BOTH : 0;
126 (void)_sfmode(f,f->mode&SF_RDWR,0);
H A Dsfwalk.c44 _sfmode(sfstdin, (sfstdin->mode & SF_RDWR), 0);
46 _sfmode(sfstdout, (sfstdout->mode & SF_RDWR), 0);
48 _sfmode(sfstderr, (sfstderr->mode & SF_RDWR), 0);
H A Dsfsetbuf.c143 else if((f->mode&SF_RDWR) != SFMODE(f,local) && _sfmode(f,0,local) < 0)
147 f->mode = (f->mode&SF_RDWR)|SF_LOCK;
187 okmmap = (buf || (f->flags&SF_STRING) || (f->flags&SF_RDWR) == SF_RDWR) ? 0 : 1;
209 if((f->flags&(SF_RDWR|SF_STRING)) == SF_RDSTR &&
H A Dsfmode.c442 wanted &= SF_RDWR;
453 if(wanted != (int)(f->mode&SF_RDWR) && !(f->flags&wanted) )
583 if((wanted &= SF_RDWR) == 0 && (wanted = f->flags&SF_RDWR) == SF_RDWR)
587 if(wanted != (f->mode&SF_RDWR) && f->file >= 0)
H A Dsfsetfd.c81 if((f->mode&SF_RDWR) != f->mode && _sfmode(f,0,0) < 0)
121 f->mode = (f->mode&SF_RDWR)|SF_INIT;
H A Dsfstack.c55 if(f1 && (f1->mode&SF_RDWR) != f1->mode && _sfmode(f1,0,0) < 0)
57 if(f2 && (f2->mode&SF_RDWR) != f2->mode && _sfmode(f2,0,0) < 0)
H A Dsfpoll.c68 m = f->mode&SF_RDWR;
78 if((f->flags&SF_RDWR) == status[r])
86 { status[r] = m&SF_RDWR;
H A Dsfwrite.c52 { if(!(f->mode&SF_WRITE) && (f->flags&SF_RDWR) != SF_RDWR)
H A Dsfclrlock.c58 f->mode &= (SF_RDWR|SF_INIT|SF_POOL|SF_PUSH|SF_SYNCED|SF_STDIO);
H A Dsftell.c43 if((mode = f->mode&SF_RDWR) != (int)f->mode && _sfmode(f,mode,0) < 0)
H A Dsfpurge.c41 if((mode = f->mode&SF_RDWR) != (int)f->mode && _sfmode(f,mode|SF_SYNCED,0) < 0)
H A Dsfraise.c79 SFMODE(f,local) != (f->mode&SF_RDWR) && _sfmode(f,0,local) < 0)
H A Dsfpool.c270 if((f->mode&SF_RDWR) != f->mode && _sfmode(f,0,0) < 0)
279 if((pf->mode&SF_RDWR) != pf->mode && _sfmode(pf,0,0) < 0)
H A Dsfsk.c48 { if((mode = f->mode&SF_RDWR) != (int)f->mode && _sfmode(f,mode,0) < 0)
H A Dsfsize.c42 if((mode = f->mode&SF_RDWR) != (int)f->mode && _sfmode(f,mode,0) < 0)
H A Dsfclose.c45 SFMODE(f,local) != (f->mode&SF_RDWR) &&
H A Dsfsync.c109 if((origf->mode&SF_RDWR) != SFMODE(origf,local) && _sfmode(origf,0,local) < 0)
H A Dsfreserve.c81 { if((f->mode&SF_RDWR) != f->mode && _sfmode(f,0,0) < 0)
H A Dsfdisc.c133 { if((f->mode&SF_RDWR) != f->mode && _sfmode(f,0,0) < 0)
H A Dsfseek.c76 if((int)SFMODE(f,local) != (mode = f->mode&SF_RDWR))
/illumos-gate/usr/src/contrib/ast/src/lib/libast/include/
H A Dsfio_t.h66 #define SF_RDWR (SF_READ|SF_WRITE) macro
69 #define SF_RDWRSTR (SF_RDWR|SF_STRING)
88 (unsigned int)(((type)&(SF_RDWR))|SF_INIT), /* mode */ \