/illumos-gate/usr/src/contrib/ast/src/lib/libast/sfio/ |
H A D | sfpopen.c | 172 (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 D | sfset.c | 46 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.c | 58 { 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 D | sfnew.c | 47 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 D | sfwalk.c | 44 _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 D | sfsetbuf.c | 143 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 D | sfmode.c | 442 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 D | sfsetfd.c | 81 if((f->mode&SF_RDWR) != f->mode && _sfmode(f,0,0) < 0) 121 f->mode = (f->mode&SF_RDWR)|SF_INIT;
|
H A D | sfstack.c | 55 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 D | sfpoll.c | 68 m = f->mode&SF_RDWR; 78 if((f->flags&SF_RDWR) == status[r]) 86 { status[r] = m&SF_RDWR;
|
H A D | sfwrite.c | 52 { if(!(f->mode&SF_WRITE) && (f->flags&SF_RDWR) != SF_RDWR)
|
H A D | sfclrlock.c | 58 f->mode &= (SF_RDWR|SF_INIT|SF_POOL|SF_PUSH|SF_SYNCED|SF_STDIO);
|
H A D | sftell.c | 43 if((mode = f->mode&SF_RDWR) != (int)f->mode && _sfmode(f,mode,0) < 0)
|
H A D | sfpurge.c | 41 if((mode = f->mode&SF_RDWR) != (int)f->mode && _sfmode(f,mode|SF_SYNCED,0) < 0)
|
H A D | sfraise.c | 79 SFMODE(f,local) != (f->mode&SF_RDWR) && _sfmode(f,0,local) < 0)
|
H A D | sfpool.c | 270 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 D | sfsk.c | 48 { if((mode = f->mode&SF_RDWR) != (int)f->mode && _sfmode(f,mode,0) < 0)
|
H A D | sfsize.c | 42 if((mode = f->mode&SF_RDWR) != (int)f->mode && _sfmode(f,mode,0) < 0)
|
H A D | sfclose.c | 45 SFMODE(f,local) != (f->mode&SF_RDWR) &&
|
H A D | sfsync.c | 109 if((origf->mode&SF_RDWR) != SFMODE(origf,local) && _sfmode(origf,0,local) < 0)
|
H A D | sfreserve.c | 81 { if((f->mode&SF_RDWR) != f->mode && _sfmode(f,0,0) < 0)
|
H A D | sfdisc.c | 133 { if((f->mode&SF_RDWR) != f->mode && _sfmode(f,0,0) < 0)
|
H A D | sfseek.c | 76 if((int)SFMODE(f,local) != (mode = f->mode&SF_RDWR))
|
/illumos-gate/usr/src/contrib/ast/src/lib/libast/include/ |
H A D | sfio_t.h | 66 #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 */ \
|