/ast/src/cmd/tests/sfio/ |
H A D | terrno.c | 26 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 D | tpipe.c | 39 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 D | tpipemove.c | 25 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 D | tmwrite.c | 40 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 D | tpoll.c | 27 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 D | tmprdwr.c | 115 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 D | sfmove.c | 34 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 D | stats.c | 124 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");
|