/ast/src/lib/libast/stdio/ |
H A D | getwchar.c | 30 return fgetwc(sfstdin);
|
H A D | getchar.c | 37 return sfgetc(sfstdin);
|
H A D | vscanf.c | 29 return sfvscanf(sfstdin, fmt, args);
|
H A D | vwscanf.c | 29 return vfwscanf(sfstdin, fmt, args);
|
H A D | _stdscanf.c | 35 v = sfvscanf(sfstdin, fmt, args);
|
H A D | scanf.c | 33 v = sfvscanf(sfstdin, fmt, args);
|
H A D | wscanf.c | 33 v = vfwscanf(sfstdin, fmt, args);
|
H A D | fgetws.c | 48 FWIDE(sfstdin, 0); 49 while (p < e && (c = fgetwc(sfstdin)) != WEOF && (*p++ = c) != '\n');
|
/ast/src/cmd/tests/sfio/ |
H A D | tmultiple.c | 32 { 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 D | tswap.c | 33 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 D | tpkrd.c | 44 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 D | trcrv.c | 44 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 D | tleak.c | 34 if(sfopen(sfstdin, tstfile("sf", 0), "r") != sfstdin) 37 if((m = sfmove(sfstdin,sfstdout, (Sfoff_t)SF_UNBOUND, -1)) != 10)
|
H A D | tmove.c | 49 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 D | treserve.c | 107 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 D | talarm.c | 81 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 D | topen.c | 29 if(sfopen(sfstdin,"123","s") != sfstdin) 30 terror("Bad reopening of sfstdin"); 31 sfclose(sfstdin);
|
H A D | tpipemove.c | 39 if(sfopen(sfstdin,tstfile("sf", 0),"r") != sfstdin) 51 { if(!(s = sfgetr(sfstdin,'\n',1)) )
|
H A D | tmode.c | 27 { if(sfopen(sfstdin,argv[1],"r") != sfstdin) 29 sfmove(sfstdin,sfstdout,(Sfoff_t)(-1),-1);
|
H A D | tpopenrw.c | 34 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 D | sfwalk.c | 43 if(sfstdin->mode & SF_INIT) 44 _sfmode(sfstdin, (sfstdin->mode & SF_RDWR), 0);
|
H A D | sfextern.c | 34 (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 D | comm.c | 129 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 D | astquery.c | 63 if (isatty(sffileno(sfstdin))) 64 rfp = sfstdin; 81 ip = sfstdin;
|
/ast/src/cmd/tw/ |
H A D | xargs.c | 225 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))
|