/titanic_50/usr/src/lib/libast/common/sfio/ |
H A D | sfpoll.c | 52 #define RDREADY(f) (((f->mode&SF_READ) && f->next < f->endb) || \ 69 if((f->flags&SF_READ) && RDREADY(f)) 70 status[r] |= SF_READ; 91 { if(f->flags&SF_READ) 92 status[r] |= SF_READ; 121 if((f->flags&SF_READ) && !RDREADY(f) ) 149 if((f->flags&SF_READ) && !RDREADY(f)) 153 status[check[r]] |= SF_READ; 178 if((f->flags&SF_READ) && !RDREADY(f)) 211 if((f->flags&SF_READ) && !RDREADY(f) ) [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; 169 sflags |= SF_READ; 185 if(!(sflags&SF_READ)) 200 sflags |= SF_READ|SF_WRITE; 216 sflags |= SF_READ;
|
H A D | sfset.c | 74 { if(flags == SF_READ) 76 else flags = SF_READ; 79 (flags == SF_READ && !(f->mode&(SF_READ|SF_SYNCED))) )
|
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 | 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 | 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 | 373 if((f->mode&(SF_SYNCED|SF_READ)) == (SF_SYNCED|SF_READ) ) 453 f->extent = ((f->flags&SF_READ) || (f->bits&SF_BOTH)) ? 458 if(f->mode&SF_READ) 477 if(!(f->flags&SF_READ) ) 482 f->mode = SF_READ; 496 f->mode = SF_READ|SF_LOCK; 504 case (SF_READ|SF_SYNCED): /* a previously sync-ed read stream */ 507 f->mode = SF_READ|SF_LOCK; 533 case SF_READ: /* switching to SF_WRITE */ 579 wanted = SF_READ;
|
H A D | sfsetbuf.c | 140 if(f->proc && (f->flags&SF_READ) && (f->mode&SF_WRITE) && 141 _sfmode(f,SF_READ,local) < 0) 301 if(okmmap && size && (f->mode&SF_READ) && f->extent >= 0 ) 330 else if((f->flags&SF_READ) && !(f->bits&SF_BOTH) && 359 if(size == 0 && !(f->flags&SF_STRING) && !(f->bits&SF_MMAP) && (f->mode&SF_READ)) 368 f->endb = (f->mode&SF_READ) ? f->data : f->data+size; 372 ((f->flags&SF_READ) || (f->bits&SF_BOTH)) ) ? size : 0; 376 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 | 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 | sftmp.c | 320 sf = sfnew(&newf,NIL(Void_t*),(size_t)SF_UNBOUND,fd,SF_READ|SF_WRITE); 332 if((m = f->flags&(SF_READ|SF_WRITE)) != (SF_READ|SF_WRITE)) 333 sfset(sf, ((~m)&(SF_READ|SF_WRITE)), 0); 334 sfset(sf, (f->mode&(SF_READ|SF_WRITE)), 1); 389 if(!(f = sfnew(NIL(Sfio_t*),NIL(char*),s,-1,SF_STRING|SF_READ|SF_WRITE)) )
|
H A D | sfgetu.c | 43 if(f->mode != SF_READ && _sfmode(f,SF_READ,0) < 0)
|
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 | 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 | sfgetd.c | 46 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 | sfscanf.c | 70 f.flags = SF_STRING|SF_READ; 72 f.mode = SF_READ;
|
/titanic_50/usr/src/lib/libast/common/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);
|
/titanic_50/usr/src/lib/libast/common/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()
|
/titanic_50/usr/src/lib/libast/amd64/include/ast/ |
H A D | sfio_t.h | 59 #define SF_RDWR (SF_READ|SF_WRITE) 60 #define SF_RDSTR (SF_READ|SF_STRING)
|
/titanic_50/usr/src/lib/libast/sparc/include/ast/ |
H A D | sfio_t.h | 59 #define SF_RDWR (SF_READ|SF_WRITE) 60 #define SF_RDSTR (SF_READ|SF_STRING)
|
/titanic_50/usr/src/lib/libast/sparcv9/include/ast/ |
H A D | sfio_t.h | 59 #define SF_RDWR (SF_READ|SF_WRITE) 60 #define SF_RDSTR (SF_READ|SF_STRING)
|