Home
last modified time | relevance | path

Searched refs:SF_LOCK (Results 1 – 13 of 13) sorted by relevance

/titanic_41/usr/src/lib/libast/common/sfio/
H A Dsffilbuf.c51 rcrv = f->mode&(SF_RC|SF_RV|SF_LOCK);
56 for(first = 1;; first = 0, (f->mode &= ~SF_LOCK) )
H A Dsfclose.c95 { f->mode &= ~SF_LOCK; /**/ASSERT(_Sfpmove);
100 f->mode |= SF_LOCK;
H A Dsfhdr.h520 #define SF_LOCK 00000040 /* stream is locked for io op */ macro
874 #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 : \
H A Dsfmode.c496 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;
H A Dsfpurge.c69 switch(f->mode&~SF_LOCK)
H A Dsfflsbuf.c49 for(written = 0;; f->mode &= ~SF_LOCK)
H A Dsfswap.c72 f2->mode = SF_AVAIL|SF_LOCK;
H A Dsfexcept.c46 lock = f->mode&SF_LOCK;
H A Dsfread.c82 for(;; f->mode &= ~SF_LOCK)
H A Dsfwrite.c86 for(;; f->mode &= ~SF_LOCK)
H A Dsfsync.c105 lock = origf->mode&SF_LOCK;
H A Dsfpool.c163 head->mode &= ~SF_LOCK; /* partially unlock because it's no longer head */
H A Dsfsetbuf.c135 f->mode = (f->mode&SF_RDWR)|SF_LOCK;