Lines Matching refs:mode
59 if((f->mode&SF_READ) && (f->mode&SF_SYNCED) ) in _sfall()
61 if((f->mode&SF_READ) && !(f->bits&SF_MMAP) && in _sfall()
64 if((f->mode&SF_WRITE) && !(f->bits&SF_HOLE) && in _sfall()
89 int local, rv, mode, lock; local
105 lock = origf->mode&SF_LOCK;
106 if(origf->mode == (SF_SYNCED|SF_READ) ) /* already synced */
109 if((origf->mode&SF_RDWR) != SFMODE(origf,local) && _sfmode(origf,0,local) < 0)
122 mode = f->mode&SF_PUSH;
123 f->mode &= ~SF_PUSH;
126 if((f->flags&SF_STRING) || (f->mode&SF_SYNCED))
129 if((f->mode&SF_WRITE) && (f->next > f->data || (f->bits&SF_HOLE)) )
131 reg int pool = f->mode&SF_POOL;
132 f->mode &= ~SF_POOL;
141 f->mode |= pool;
144 if((f->mode&SF_READ) && f->extent >= 0 &&
149 f->mode = SF_READ|SF_SYNCED|lock;
155 f->mode &= ~SF_SYNCED;
160 f->mode |= mode;
168 if(!local && f && (f->mode&SF_POOL) && f->pool && f != f->pool->sf[0])