Home
last modified time | relevance | path

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

1234

/titanic_44/usr/src/lib/libast/common/sfio/
H A Dsfpoll.c53 ((f->mode&SF_WRITE) && f->proc && f->proc->ndata > 0) )
56 #define WRREADY(f) (!(f->mode&SF_WRITE) || f->next == f->data)
72 if((f->flags&SF_WRITE) && WRREADY(f))
73 status[r] |= SF_WRITE;
93 if(f->flags&SF_WRITE)
94 status[r] |= SF_WRITE;
118 if((f->flags&SF_WRITE) && !WRREADY(f) )
123 if((f->mode&SF_WRITE) && HASAUXFD(f))
144 if((f->flags&SF_WRITE) && !WRREADY(f) )
146 status[check[r]] |= SF_WRITE;
[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 Dsfmode.c99 if((f->flags&SF_WRITE) && !(f->mode&SF_WRITE)) in _sfcleanup()
100 (void)_sfmode(f,SF_WRITE,1); in _sfcleanup()
102 ((f->mode&SF_WRITE) && f->next == f->data) ) in _sfcleanup()
234 p->sigp = (!stdio && pid >= 0 && (f->flags&SF_WRITE)) ? 1 : 0;
318 if(type == SF_WRITE)
419 if(f->disc == _Sfudisc && wanted == SF_WRITE &&
474 case SF_WRITE: /* switching to SF_READ */
475 if(wanted == 0 || wanted == SF_WRITE)
505 if(wanted != SF_WRITE)
534 if(wanted != SF_WRITE)
[all …]
H A D_sfopen.c68 f->mode = (f->mode&~SF_WRITE)|SF_READ;
69 else f->mode = (f->mode&~SF_READ)|SF_WRITE;
158 sflags |= SF_WRITE | SF_APPENDWR;
183 sflags |= SF_WRITE;
200 sflags |= SF_READ|SF_WRITE;
H A Dsfset.c75 flags = SF_WRITE;
78 if((flags == SF_WRITE && !(f->mode&SF_WRITE)) ||
H A Dsftmp.c302 if(type != SF_WRITE && type != SF_SEEK &&
320 sf = sfnew(&newf,NIL(Void_t*),(size_t)SF_UNBOUND,fd,SF_READ|SF_WRITE);
332 if((m = f->flags&(SF_READ|SF_WRITE)) != (SF_READ|SF_WRITE))
333 sfset(sf, ((~m)&(SF_READ|SF_WRITE)), 0);
334 sfset(sf, (f->mode&(SF_READ|SF_WRITE)), 1);
389 if(!(f = sfnew(NIL(Sfio_t*),NIL(char*),s,-1,SF_STRING|SF_READ|SF_WRITE)) )
H A Dsfpool.c128 { if(SFMODE(head,1) != SF_WRITE && _sfmode(head,SF_WRITE,1) < 0)
327 { if(SFMODE(f,1) != SF_WRITE && _sfmode(f,SF_WRITE,1) < 0)
329 if(SFMODE(pf,1) != SF_WRITE && _sfmode(pf,SF_WRITE,1) < 0)
H A D_sfputu.c45 if(f->mode != SF_WRITE && _sfmode(f,SF_WRITE,0) < 0)
H A Dsfwr.c143 { if(f->mode != SF_WRITE && _sfmode(f,SF_WRITE,0) < 0 )
167 if((rv = _sfexcept(f,SF_WRITE,n,dc)) > 0)
228 switch(_sfexcept(f,SF_WRITE,w,dc))
H A D_sfputm.c46 if(v > m || (f->mode != SF_WRITE && _sfmode(f,SF_WRITE,0) < 0) )
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 Dsfmove.c88 { if(fw->mode != SF_WRITE && _sfmode(fw,SF_WRITE,0) < 0 )
136 direct = SF_WRITE;
200 { if(direct == SF_WRITE)
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.c85 (SF_WRITE|SF_STATIC|SF_STDSAFE),NIL(Sfdisc_t*),SFMTXOUT);
87 (SF_WRITE|SF_STATIC|SF_STDSAFE),NIL(Sfdisc_t*),SFMTXERR);
H A Dsfflsbuf.c51 if(SFMODE(f,local) != SF_WRITE && _sfmode(f,SF_WRITE,local) < 0)
H A Dsfpurge.c74 case SF_WRITE :
76 if(!f->proc || !(f->flags&SF_READ) || !(f->mode&SF_WRITE) )
/titanic_44/usr/src/lib/libast/common/stdio/
H A Dvsnprintf.c40 f.flags = SF_STRING|SF_WRITE; in vsnprintf()
42 f.mode = SF_WRITE; in vsnprintf()
H A Dvswprintf.c40 f.flags = SF_STRING|SF_WRITE; in vswprintf()
42 f.mode = SF_WRITE; in vswprintf()
/titanic_44/usr/src/lib/libast/amd64/include/ast/
H A Dsfio_t.h59 #define SF_RDWR (SF_READ|SF_WRITE)
61 #define SF_WRSTR (SF_WRITE|SF_STRING)
/titanic_44/usr/src/lib/libast/common/include/
H A Dsfio_t.h59 #define SF_RDWR (SF_READ|SF_WRITE)
61 #define SF_WRSTR (SF_WRITE|SF_STRING)
/titanic_44/usr/src/lib/libast/sparcv9/include/ast/
H A Dsfio_t.h59 #define SF_RDWR (SF_READ|SF_WRITE)
61 #define SF_WRSTR (SF_WRITE|SF_STRING)
/titanic_44/usr/src/lib/libast/i386/include/ast/
H A Dsfio_t.h59 #define SF_RDWR (SF_READ|SF_WRITE)
61 #define SF_WRSTR (SF_WRITE|SF_STRING)

1234