Searched defs:fw (Results 1 - 8 of 8) sorted by relevance

/ast/src/cmd/tests/sfio/
H A Dterrno.c26 Sfio_t* fw; local
32 if(!(fw = sfopen(NIL(Sfio_t*), tstfile("sf", 0), "w")) )
49 lseek(sffileno(fw), (off_t)(-2), SEEK_SET);
51 lseek(sffileno(fw), (off_t)0, SEEK_SET);
54 if(sfseek(fw, (Sfoff_t)(-2), SEEK_SET) != (Sfoff_t)(-1) )
60 if(sfseek(fw, (Sfoff_t)0, SEEK_SET|SEEK_CUR|SEEK_END) >= 0)
68 if(!(fw = sfnew(fw, NIL(Void_t*), (size_t)SF_UNBOUND, fds[1], SF_WRITE)) )
72 if(sfseek(fw, (Sfoff_t)0, SEEK_SET) >= 0)
77 close(sffileno(fw));
[all...]
H A Dtpipemove.c25 Sfio_t *fr, *fw; local
33 !(fw = sfnew(NIL(Sfio_t*),NIL(Void_t*),(size_t)SF_UNBOUND,fd[1],SF_WRITE)) )
43 if((w = sfwrite(fw,"123456789\n",10)) != 10)
H A Dtpoll.c27 Sfio_t *f, *g, *str, *fr, *fw, *sf[2]; local
49 if(!(fw = sfnew(NIL(Sfio_t*),NIL(Void_t*),(size_t)SF_UNBOUND,
62 sfputc(fw,'a'); sfsync(fw);
74 sf[0] = fw;
H A Dtmwrite.c40 Sfio_t* fw[N_WRITER]; local
59 { fw[i] = sfopen(NIL(Sfio_t*),tstfile("sf", 0),"a");
67 if(!(s = sfreserve(fw[i],r,SF_LOCKR)) || sfvalue(fw[i]) < r )
71 sfwrite(fw[i],s,r);
75 sfclose(fw[i]);
H A Dtpipe.c39 Sfio_t *fr, *fw; local
52 !(fw = sfnew(NIL(Sfio_t*),NIL(Void_t*),(size_t)SF_UNBOUND,fd[1],SF_WRITE)) )
58 SYNC sfwrite(fw,"0123456789",10);
61 SYNC sfwrite(fw,"0123456789",10);
62 SYNC if(sfmove(fr,fw,(Sfoff_t)10,-1) != 10)
66 sfpurge(fw);
67 sfclose(fw);
74 !(fw = sfnew(NIL(Sfio_t*),NIL(Void_t*),(size_t)SF_UNBOUND,fd[1],SF_WRITE)) )
77 sfset(fw,SF_SHARE,1);
81 SYNC if(sfwrite(fw,"
[all...]
H A Dtmprdwr.c115 Sfio_t *fw, *fr; local
124 if(!(fw = sfopen(NIL(Sfio_t*), tstfile("sf", 0), "w")) )
145 writeprocess(child[1], parent[0], fw);
/ast/src/lib/libast/sfio/
H A Dsfmove.c34 Sfoff_t sfmove(Sfio_t* fr, Sfio_t* fw, Sfoff_t n, reg int rc) argument
36 Sfoff_t sfmove(fr,fw,n,rc)
38 Sfio_t* fw; /* moving data to this stream */
51 SFMTXDECL2(fw); /* declare a shadow stream variable for to stream */
54 if(fw)
55 SFMTXBEGIN2(fw, (Sfoff_t)0);
64 if(fw && (w = SFWRITE(fw, cp, r)) != r)
67 if(fw->extent >= 0 && w > 0)
68 (void)SFSEEK(fw,(Sfoff_
[all...]
/ast/src/cmd/dsslib/stats/
H A Dstats.c124 int fw; member in struct:State_s
430 state->fw = 5;
464 if (state->fw < (i = (int)strlen(variable->name)))
465 state->fw = i;
603 number(Sfio_t* op, Cxnumber_t n, int fw) argument
606 sfprintf(op, " %*I*u", fw, sizeof(Cxinteger_t), (Cxinteger_t)n);
611 sfprintf(op, " %1.*I*e", fw - 7, sizeof(n), n);
641 sfprintf(op, "%*s", state->fw, field->variable->name);
704 sfprintf(expr->op, "%*s", state->fw, "FIELD");

Completed in 48 milliseconds