Searched refs:SF_LOCK (Results 1 – 13 of 13) sorted by relevance
51 rcrv = f->mode&(SF_RC|SF_RV|SF_LOCK);56 for(first = 1;; first = 0, (f->mode &= ~SF_LOCK) )
95 { f->mode &= ~SF_LOCK; /**/ASSERT(_Sfpmove);100 f->mode |= SF_LOCK;
520 #define SF_LOCK 00000040 /* stream is locked for io op */ macro874 #define SFKILL(f) ((f)->mode = (SF_AVAIL|SF_LOCK) )875 #define SFKILLED(f) (((f)->mode&(SF_AVAIL|SF_LOCK)) == (SF_AVAIL|SF_LOCK) )903 #define SFMODE(f,l) ((f)->mode & ~(SF_RV|SF_RC|((l) ? SF_LOCK : 0)) )904 #define SFLOCK(f,l) (void)((f)->mode |= SF_LOCK, (f)->endr = (f)->endw = (f)->data)911 ((f)->mode &= ~(SF_LOCK|SF_RC|SF_RV), _SFOPEN(f), 0) )914 #define SFFROZEN(f) (((f)->mode&(SF_PUSH|SF_LOCK|SF_PEEK)) ? 1 : \
496 f->mode = SF_READ|SF_LOCK;507 f->mode = SF_READ|SF_LOCK;540 f->mode = SF_WRITE|SF_LOCK;560 f->mode = SF_WRITE|SF_LOCK;
69 switch(f->mode&~SF_LOCK)
49 for(written = 0;; f->mode &= ~SF_LOCK)
72 f2->mode = SF_AVAIL|SF_LOCK;
46 lock = f->mode&SF_LOCK;
82 for(;; f->mode &= ~SF_LOCK)
86 for(;; f->mode &= ~SF_LOCK)
105 lock = origf->mode&SF_LOCK;
163 head->mode &= ~SF_LOCK; /* partially unlock because it's no longer head */
135 f->mode = (f->mode&SF_RDWR)|SF_LOCK;