Home
last modified time | relevance | path

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

/illumos-gate/usr/src/contrib/ast/src/lib/libast/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.h527 #define SF_LOCK 00000040 /* stream is locked for io op */ macro
892 #define SFKILL(f) ((f)->mode = (SF_AVAIL|SF_LOCK) )
893 #define SFKILLED(f) (((f)->mode&(SF_AVAIL|SF_LOCK)) == (SF_AVAIL|SF_LOCK) )
921 #define SFMODE(f,l) ((f)->mode & ~(SF_RV|SF_RC|((l) ? SF_LOCK : 0)) )
922 #define SFLOCK(f,l) (void)((f)->mode |= SF_LOCK, (f)->endr = (f)->endw = (f)->data)
929 ((f)->mode &= ~(SF_LOCK|SF_RC|SF_RV), _SFOPEN(f), 0) )
932 #define SFFROZEN(f) (((f)->mode&(SF_PUSH|SF_LOCK|SF_PEEK)) ? 1 : \
H A Dsfmode.c501 f->mode = SF_READ|SF_LOCK;
512 f->mode = SF_READ|SF_LOCK;
545 f->mode = SF_WRITE|SF_LOCK;
565 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 Dsfsync.c105 lock = origf->mode&SF_LOCK;
H A Dsfwrite.c86 for(;; f->mode &= ~SF_LOCK)
H A Dsfpool.c163 head->mode &= ~SF_LOCK; /* partially unlock because it's no longer head */
H A Dsfsetbuf.c147 f->mode = (f->mode&SF_RDWR)|SF_LOCK;