Home
last modified time | relevance | path

Searched refs:SF_WRITE (Results 1 – 25 of 71) sorted by relevance

123

/illumos-gate/usr/src/contrib/ast/src/lib/libast/sfio/
H A Dsfpoll.c75 if((f->flags&SF_WRITE) && WRREADY(f))
76 status[r] |= SF_WRITE;
96 if(f->flags&SF_WRITE)
97 status[r] |= SF_WRITE;
123 if((f->flags&SF_WRITE) && !WRREADY(f) )
128 if((f->mode&SF_WRITE) && HASAUXFD(f))
149 if((f->flags&SF_WRITE) && !WRREADY(f) )
151 status[check[r]] |= SF_WRITE;
155 { if((f->mode&SF_WRITE) && HASAUXFD(f))
180 if((f->flags&SF_WRITE) && !WRREADY(f))
[all …]
H A Dsfmode.c99 if((f->flags&SF_WRITE) && !(f->mode&SF_WRITE)) in _sfcleanup()
100 (void)_sfmode(f,SF_WRITE,1); in _sfcleanup()
323 if(type == SF_WRITE)
424 if(f->disc == _Sfudisc && wanted == SF_WRITE &&
479 case SF_WRITE: /* switching to SF_READ */
480 if(wanted == 0 || wanted == SF_WRITE)
510 if(wanted != SF_WRITE)
539 if(wanted != SF_WRITE)
541 else if(!(f->flags&SF_WRITE))
545 f->mode = SF_WRITE|SF_LOCK;
[all …]
H A Dsfreserve.c51 else if((mode = type&SF_WRITE) )
52 type &= ~SF_WRITE;
96 mode = SF_WRITE;
110 if(size == 0 || (f->mode&SF_WRITE))
128 if(f->mode&SF_WRITE)
176 { if((f->mode&SF_WRITE) && (f->flags&SF_MALLOC) )
182 else if(f->mode&SF_WRITE) /* allocate side buffer */
H A D_sfopen.c68 f->mode = (f->mode&~SF_WRITE)|SF_READ;
69 else f->mode = (f->mode&~SF_READ)|SF_WRITE;
165 sflags |= SF_WRITE | SF_APPENDWR;
194 sflags |= SF_WRITE;
211 sflags |= SF_READ|SF_WRITE;
H A Dsftmp.c302 if(type != SF_WRITE && type != SF_SEEK &&
317 sf = sfnew(&newf,NIL(Void_t*),(size_t)SF_UNBOUND,fd,SF_READ|SF_WRITE);
329 if((m = f->flags&(SF_READ|SF_WRITE)) != (SF_READ|SF_WRITE))
330 sfset(sf, ((~m)&(SF_READ|SF_WRITE)), 0);
331 sfset(sf, (f->mode&(SF_READ|SF_WRITE)), 1);
394 f = sfnew(NIL(Sfio_t*),NIL(char*),s,-1,SF_STRING|SF_READ|SF_WRITE);
H A Dsfset.c85 flags = SF_WRITE;
88 if((flags == SF_WRITE && !(f->mode&SF_WRITE)) ||
H A Dsfpool.c128 { if(SFMODE(head,1) != SF_WRITE && _sfmode(head,SF_WRITE,1) < 0)
328 { if(SFMODE(f,1) != SF_WRITE && _sfmode(f,SF_WRITE,1) < 0)
330 if(SFMODE(pf,1) != SF_WRITE && _sfmode(pf,SF_WRITE,1) < 0)
H A Dsfwr.c146 { if(f->mode != SF_WRITE && _sfmode(f,SF_WRITE,0) < 0 )
170 if((rv = _sfexcept(f,SF_WRITE,n,dc)) > 0)
231 switch(_sfexcept(f,SF_WRITE,w,dc))
H A D_sfputu.c45 if(f->mode != SF_WRITE && _sfmode(f,SF_WRITE,0) < 0)
H A D_sfputm.c46 if(v > m || (f->mode != SF_WRITE && _sfmode(f,SF_WRITE,0) < 0) )
H A Dsfmove.c88 { if(fw->mode != SF_WRITE && _sfmode(fw,SF_WRITE,0) < 0 )
140 direct = SF_WRITE;
204 { if(direct == SF_WRITE)
H A D_sfputl.c44 if(f->mode != SF_WRITE && _sfmode(f,SF_WRITE,0) < 0)
H A Dsfnputc.c47 if(SFMODE(f,local) != SF_WRITE && _sfmode(f,SF_WRITE,local) < 0)
H A D_sfputd.c47 if(f->mode != SF_WRITE && _sfmode(f,SF_WRITE,0) < 0)
H A Dsfresize.c41 (f->mode != SF_WRITE && _sfmode(f,SF_WRITE,0) < 0) )
H A Dsfwrite.c52 { if(!(f->mode&SF_WRITE) && (f->flags&SF_RDWR) != SF_RDWR)
88 if(SFMODE(f,local) != SF_WRITE && _sfmode(f,SF_WRITE,local) < 0 )
H A Dsfextern.c81 (SF_WRITE|SF_STATIC|SF_STDSAFE),NIL(Sfdisc_t*),SFMTXOUT);
83 (SF_WRITE|SF_STATIC|SF_STDSAFE),NIL(Sfdisc_t*),SFMTXERR);
H A Dsfpurge.c74 case SF_WRITE :
76 if(!f->proc || !(f->flags&SF_READ) || !(f->mode&SF_WRITE) )
H A Dsfsetfd.c96 if(((f->mode&SF_WRITE) && f->next > f->data) ||
104 if(((f->mode&SF_WRITE) && f->next > f->data) ||
H A Dsfflsbuf.c51 if(SFMODE(f,local) != SF_WRITE && _sfmode(f,SF_WRITE,local) < 0)
H A Dsfputr.c44 if(f->mode != SF_WRITE && _sfmode(f,SF_WRITE,0) < 0)
H A Dsfexcept.c75 else if(type != SF_WRITE && type != SF_SEEK)
113 (type == SF_WRITE && f->next <= f->data)))
H A Dsfseek.c44 f->endb = (f->mode&SF_WRITE) ? f->data+f->size : f->data;
144 if(f->mode&SF_WRITE)
161 if(type == SEEK_END || (f->mode&SF_WRITE) )
/illumos-gate/usr/src/contrib/ast/src/lib/libast/stdio/
H A Dvswprintf.c40 f.flags = SF_STRING|SF_WRITE; in vswprintf()
42 f.mode = SF_WRITE; in vswprintf()
/illumos-gate/usr/src/contrib/ast/src/lib/libast/include/
H A Dsfio_t.h66 #define SF_RDWR (SF_READ|SF_WRITE)
68 #define SF_WRSTR (SF_WRITE|SF_STRING)

123