Searched refs:sfstdin (Results 1 - 25 of 131) sorted by relevance

123456

/ast/src/lib/libast/stdio/
H A Dgetwchar.c30 return fgetwc(sfstdin);
H A Dgetchar.c37 return sfgetc(sfstdin);
H A Dvscanf.c29 return sfvscanf(sfstdin, fmt, args);
H A Dvwscanf.c29 return vfwscanf(sfstdin, fmt, args);
H A D_stdscanf.c35 v = sfvscanf(sfstdin, fmt, args);
H A Dscanf.c33 v = sfvscanf(sfstdin, fmt, args);
H A Dwscanf.c33 v = vfwscanf(sfstdin, fmt, args);
H A Dfgetws.c48 FWIDE(sfstdin, 0);
49 while (p < e && (c = fgetwc(sfstdin)) != WEOF && (*p++ = c) != '\n');
/ast/src/cmd/tests/sfio/
H A Dtmultiple.c32 { if(!(s = sfgetr(sfstdin,'\n',1)) || strcmp(s,"Line2") != 0)
34 if(!(s = sfgetr(sfstdin,'\n',1)) || strcmp(s,"Line3") != 0)
41 if(sfmove(sfstdin,f,(Sfoff_t)2,'\n') != 2)
62 if(sfopen(sfstdin, tstfile("sf", 0),"r") != sfstdin)
64 if(!(s = sfgetr(sfstdin,'\n',1)) || strcmp(s,"Line1") != 0)
66 sfsync(sfstdin);
68 sfseek(sfstdin, (Sfoff_t)lseek(sffileno(sfstdin), (off_t)0, 1), 0);
69 if(!(s = sfgetr(sfstdin,'\
[all...]
H A Dtswap.c33 sfclose(sfstdin);
34 if(sfswap(f1,sfstdin) != sfstdin)
35 terror("Can't swap with sfstdin");
36 sfseek(sfstdin,(Sfoff_t)0,0);
37 if(!(s = sfgetr(sfstdin,'\n',1)) )
42 if(!(f1 = sfswap(sfstdin,NIL(Sfio_t*))) )
H A Dtpkrd.c44 if(sfnew(sfstdin,NIL(Void_t*),(size_t)SF_UNBOUND,Fd[0],SF_READ) != sfstdin)
46 sfset(sfstdin,SF_SHARE,1);
62 if(!(s = sfgetr(sfstdin,'\n',1)) || strcmp(s,"01234") != 0)
65 if(sfstdin->_next < sfstdin->_endb)
68 if(!(s = sfgetr(sfstdin,'\n',1)) || strcmp(s,"56789") != 0)
H A Dtrcrv.c44 if(sfnew(sfstdin,NIL(Void_t*),(size_t)SF_UNBOUND,fd[0],SF_READ) != sfstdin)
45 terror("Can't initialize sfstdin");
46 sfset(sfstdin,SF_SHARE,1);
47 sfdisc(sfstdin,&Disc);
54 if(strcmp(sfgetr(sfstdin,'\n',1),"111") != 0)
56 if(sfstdin->_endb > sfstdin->_next)
59 if(strcmp(sfgetr(sfstdin,'\n',1),"222") != 0)
61 if(sfstdin
[all...]
H A Dtleak.c34 if(sfopen(sfstdin, tstfile("sf", 0), "r") != sfstdin)
37 if((m = sfmove(sfstdin,sfstdout, (Sfoff_t)SF_UNBOUND, -1)) != 10)
H A Dtmove.c49 sfopen(sfstdin,tstfile("sf", 0),"r");
51 sfmove(sfstdin,sfstdout,(Sfoff_t)SF_UNBOUND,-1);
52 if(!sfeof(sfstdin))
54 if(sferror(sfstdin))
59 sfseek(sfstdin,(Sfoff_t)0,0);
61 sfsetbuf(sfstdin,buf,sizeof(buf));
64 sfmove(sfstdin,sfstdout,(Sfoff_t)((unsigned long)(~0L)>>1),-1);
68 if(!sfeof(sfstdin))
70 if(sferror(sfstdin))
H A Dtreserve.c107 if(sfopen(sfstdin, tstfile("sf", 0),"r") != sfstdin)
109 sfsetbuf(sfstdin,NIL(char*),8*sizeof(buf));
110 if(sfsize(sfstdin) != n)
115 { if(!(s = sfreserve(sfstdin,16*sizeof(buf),0)) )
119 if(sfvalue(sfstdin) > 0)
120 i += sfvalue(sfstdin);
124 if(sfseek(sfstdin,(Sfoff_t)0,0) != 0)
126 sfsetbuf(sfstdin,bigbuf,sizeof(bigbuf));
129 { if(!(s = sfreserve(sfstdin,1
[all...]
H A Dtalarm.c81 if(sfnew(sfstdin,NIL(Void_t*),(size_t)SF_UNBOUND,fd[0],SF_READ) != sfstdin)
83 sfdisc(sfstdin,&Disc);
84 sfset(sfstdin,SF_SHARE,1);
89 if(sfreserve(sfstdin,1,SF_LOCKR))
100 if(sfgetr(sfstdin,'\n',0))
109 sfdisc(sfstdin, NIL(Sfdisc_t*)); /* pop discipline */
110 sfset(sfstdin, SF_IOINTR, 1); /* set to return on interrupt */
115 if((n = sfread(sfstdin,buf,sizeof(buf))) != 10)
H A Dtopen.c29 if(sfopen(sfstdin,"123","s") != sfstdin)
30 terror("Bad reopening of sfstdin");
31 sfclose(sfstdin);
H A Dtpipemove.c39 if(sfopen(sfstdin,tstfile("sf", 0),"r") != sfstdin)
51 { if(!(s = sfgetr(sfstdin,'\n',1)) )
H A Dtmode.c27 { if(sfopen(sfstdin,argv[1],"r") != sfstdin)
29 sfmove(sfstdin,sfstdout,(Sfoff_t)(-1),-1);
H A Dtpopenrw.c34 while((s = sfreserve(sfstdin,SF_UNBOUND,0)) )
37 sfwrite(logf, s, sfvalue(sfstdin));
39 sfwrite(sfstdout, s, sfvalue(sfstdin));
/ast/src/lib/libast/sfio/
H A Dsfwalk.c43 if(sfstdin->mode & SF_INIT)
44 _sfmode(sfstdin, (sfstdin->mode & SF_RDWR), 0);
H A Dsfextern.c34 (void)vtmtxopen(sfstdin->mutex, VT_INIT);
85 #undef sfstdin macro
89 Sfio_t* sfstdin = &_Sfstdin; variable
97 __EXTERN__(Sfio_t*,sfstdin);
/ast/src/lib/libcmd/
H A Dcomm.c129 if(cp1 && in1==sfstdin)
183 f1 = sfstdin;
188 f2 = sfstdin;
196 else if(f1==sfstdin || f2==sfstdin)
197 sfseek(sfstdin,(Sfoff_t)0,SEEK_END);
198 if(f1!=sfstdin)
200 if(f2!=sfstdin)
/ast/src/lib/libast/port/
H A Dastquery.c63 if (isatty(sffileno(sfstdin)))
64 rfp = sfstdin;
81 ip = sfstdin;
/ast/src/cmd/tw/
H A Dxargs.c225 sfopen(sfstdin, NiL, "rt");
229 while (s = sfgetr(sfstdin, term, 0))
232 if ((c = sfvalue(sfstdin) - 1) && (s[c-1] != '\r' || --c))
235 if (sfvalue(sfstdin) > 0)
241 switch (c = sfgetc(sfstdin))
246 while ((c = sfgetc(sfstdin)) != q)
260 if ((c = sfgetc(sfstdin)) == EOF)
297 if (sferror(sfstdin))

Completed in 68 milliseconds

123456