/illumos-gate/usr/src/contrib/ast/src/lib/libast/sfio/ |
H A D | sfpoll.c | 72 if((f->flags&SF_READ) && RDREADY(f)) 73 status[r] |= SF_READ; 94 { if(f->flags&SF_READ) 95 status[r] |= SF_READ; 126 if((f->flags&SF_READ) && !RDREADY(f) ) 154 if((f->flags&SF_READ) && !RDREADY(f)) 158 status[check[r]] |= SF_READ; 183 if((f->flags&SF_READ) && !RDREADY(f)) 216 if((f->flags&SF_READ) && !RDREADY(f) ) 219 status[check[r]] |= SF_READ; [all …]
|
H A D | _sfopen.c | 67 if(f->flags&SF_READ) 68 f->mode = (f->mode&~SF_WRITE)|SF_READ; 69 else f->mode = (f->mode&~SF_READ)|SF_WRITE; 180 sflags |= SF_READ; 196 if(!(sflags&SF_READ)) 211 sflags |= SF_READ|SF_WRITE; 229 sflags |= SF_READ;
|
H A D | sfset.c | 84 { if(flags == SF_READ) 86 else flags = SF_READ; 89 (flags == SF_READ && !(f->mode&(SF_READ|SF_SYNCED))) )
|
H A D | sfpopen.c | 161 if (sflags & SF_READ) 172 (sflags&SF_READ) ? proc->rfd : proc->wfd, sflags|((sflags&SF_RDWR)?0:SF_READ))) || 173 _sfpopen(f, (sflags&SF_READ) ? proc->wfd : -1, proc->pid, pflags) < 0) 213 if(sflags&SF_READ) 225 …if(!(f = sfnew(f,NIL(Void_t*),(size_t)SF_UNBOUND,parent[pkeep],sflags|((sflags&SF_RDWR)?0:SF_READ)… 247 if(sflags&SF_READ)
|
H A D | sfpurge.c | 51 if((f->flags&SF_STRING) && (f->mode&SF_READ) ) 76 if(!f->proc || !(f->flags&SF_READ) || !(f->mode&SF_WRITE) ) 80 (void)_sfmode(f,SF_READ,1); 82 case SF_READ:
|
H A D | sfsync.c | 59 if((f->mode&SF_READ) && (f->mode&SF_SYNCED) ) in _sfall() 61 if((f->mode&SF_READ) && !(f->bits&SF_MMAP) && in _sfall() 106 if(origf->mode == (SF_SYNCED|SF_READ) ) /* already synced */ 144 if((f->mode&SF_READ) && f->extent >= 0 && 149 f->mode = SF_READ|SF_SYNCED|lock;
|
H A D | sfmode.c | 378 if((f->mode&(SF_SYNCED|SF_READ)) == (SF_SYNCED|SF_READ) ) 458 f->extent = ((f->flags&SF_READ) || (f->bits&SF_BOTH)) ? 463 if(f->mode&SF_READ) 482 if(!(f->flags&SF_READ) ) 487 f->mode = SF_READ; 501 f->mode = SF_READ|SF_LOCK; 509 case (SF_READ|SF_SYNCED): /* a previously sync-ed read stream */ 512 f->mode = SF_READ|SF_LOCK; 538 case SF_READ: /* switching to SF_WRITE */ 584 wanted = SF_READ;
|
H A D | sfsetbuf.c | 152 if(f->proc && (f->flags&SF_READ) && (f->mode&SF_WRITE) && 153 _sfmode(f,SF_READ,local) < 0) 323 if(okmmap && size && (f->mode&SF_READ) && f->extent >= 0 ) 352 else if((f->flags&SF_READ) && !(f->bits&SF_BOTH) && 381 if(size == 0 && !(f->flags&SF_STRING) && !(f->bits&SF_MMAP) && (f->mode&SF_READ)) 390 f->endb = (f->mode&SF_READ) ? f->data : f->data+size; 394 ((f->flags&SF_READ) || (f->bits&SF_BOTH)) ) ? size : 0; 398 if((f->mode&SF_READ) && !sf_malloc)
|
H A D | sfungetc.c | 64 if(c < 0 || (f->mode != SF_READ && _sfmode(f,SF_READ,0) < 0)) 77 -1,SF_STRING|SF_READ)))
|
H A D | sftmp.c | 317 sf = sfnew(&newf,NIL(Void_t*),(size_t)SF_UNBOUND,fd,SF_READ|SF_WRITE); 329 if((m = f->flags&(SF_READ|SF_WRITE)) != (SF_READ|SF_WRITE)) 330 sfset(sf, ((~m)&(SF_READ|SF_WRITE)), 0); 331 sfset(sf, (f->mode&(SF_READ|SF_WRITE)), 1); 394 f = sfnew(NIL(Sfio_t*),NIL(char*),s,-1,SF_STRING|SF_READ|SF_WRITE);
|
H A D | sfrd.c | 86 { if(f->mode != SF_READ && _sfmode(f,SF_READ,0) < 0) 91 if((f->mode&(SF_SYNCED|SF_READ)) == (SF_SYNCED|SF_READ) ) 127 if((rv = _sfexcept(f,SF_READ,n,dc)) > 0) 296 switch(_sfexcept(f,SF_READ,(ssize_t)r,dc))
|
H A D | sfdisc.c | 127 if((f->flags&SF_READ) && f->proc && (f->mode&SF_WRITE) ) 129 if(_sfmode(f,SF_READ,0) < 0) 147 if((f->mode&SF_READ) && (f->mode&SF_SYNCED) ) 154 ((f->mode&SF_READ) && (n = f->endb-f->next) > 0) ) 171 if((f->mode&SF_READ) && n > 0 && disc && disc->readf )
|
H A D | sfgetu.c | 43 if(f->mode != SF_READ && _sfmode(f,SF_READ,0) < 0)
|
H A D | sfgetm.c | 44 if(f->mode != SF_READ && _sfmode(f,SF_READ,0) < 0)
|
H A D | sfgetl.c | 43 if(f->mode != SF_READ && _sfmode(f,SF_READ,0) < 0)
|
H A D | sfread.c | 53 { if(!(f->mode&SF_READ) ) 84 if(SFMODE(f,local) != SF_READ && _sfmode(f,SF_READ,local) < 0)
|
H A D | sfgetd.c | 46 if(f->mode != SF_READ && _sfmode(f,SF_READ,0) < 0)
|
H A D | sfscanf.c | 70 f.flags = SF_STRING|SF_READ; 72 f.mode = SF_READ;
|
H A D | sfsetfd.c | 97 (f->mode&SF_READ) || f->disc == _Sfudisc) 105 ((f->mode&SF_READ) && f->extent < 0 &&
|
/illumos-gate/usr/src/contrib/ast/src/lib/libast/disc/ |
H A D | sfdcfilter.c | 63 sfset(fi->filter,SF_READ,0); 65 sfset(fi->filter,SF_READ,1); 72 sfset(fi->filter, SF_READ, 0); 74 sfset(fi->filter, SF_READ, 1);
|
H A D | sfdcdio.c | 76 if(type == SF_READ) 98 (rv = type == SF_READ ? read(f->file,buf,rw) : write(f->file,buf,rw)) > 0 ) 114 return diordwr(f, buf, n, (Direct_t*)disc, SF_READ);
|
/illumos-gate/usr/src/contrib/ast/src/lib/libast/stdio/ |
H A D | vswscanf.c | 39 f.flags = SF_STRING|SF_READ; in vswscanf() 41 f.mode = SF_READ; in vswscanf()
|
H A D | fgets.c | 33 if(n <= 0 || !us || (f->mode != SF_READ && _sfmode(f,SF_READ,0) < 0)) in _stdgets()
|
H A D | getdelim.c | 44 if(f->mode != SF_READ && _sfmode(f,SF_READ,0) < 0) in getdelim()
|
/illumos-gate/usr/src/contrib/ast/src/lib/libast/include/ |
H A D | sfio_t.h | 66 #define SF_RDWR (SF_READ|SF_WRITE) 67 #define SF_RDSTR (SF_READ|SF_STRING)
|