Lines Matching refs:mode
128 if(_Sfexiting && !(f->flags&SF_STRING) && (f->mode&SF_WRITE))
133 if((init = f->mode&SF_INIT) )
137 else if((f->mode&SF_RDWR) != SFMODE(f,local) && _sfmode(f,0,local) < 0)
141 f->mode = (f->mode&SF_RDWR)|SF_LOCK;
146 if(f->proc && (f->flags&SF_READ) && (f->mode&SF_WRITE) &&
156 f->mode &= ~SF_SYNCED;
275 /* set line mode for terminals */
317 if(okmmap && size && (f->mode&SF_READ) && f->extent >= 0 )
342 else if(f == sfstderr && (f->mode&SF_WRITE))
375 if(size == 0 && !(f->flags&SF_STRING) && !(f->bits&SF_MMAP) && (f->mode&SF_READ))
384 f->endb = (f->mode&SF_READ) ? f->data : f->data+size;
392 if((f->mode&SF_READ) && !sf_malloc)