/ast/src/lib/libast/stdio/ |
H A D | fopen.c | 29 return sfopen(NiL, path, mode);
|
H A D | freopen.c | 31 return sfopen(f, path, mode);
|
/ast/src/cmd/tests/sfio/ |
H A D | topen.c | 27 if(sfopen(sfstdout,"abc","s") != sfstdout) 29 if(sfopen(sfstdin,"123","s") != sfstdin) 33 if(!(f = sfopen(NIL(Sfio_t*),"123","s")) ) 36 if(sfopen(f,"123","s") != NIL(Sfio_t*)) 49 if(!(f = sfopen(NIL(Sfio_t*),tstfile("sf", 0),"wx") ) ) 50 terror("sfopen failed"); 51 if((f = sfopen(f,tstfile("sf", 0),"wx") ) ) 52 terror("sfopen should not succeed here");
|
H A D | tleak.c | 26 if(sfopen(sfstdout, tstfile("sf", 0), "w") != sfstdout) 31 if(sfopen(sfstdout, tstfile("sf", 1),"w") != sfstdout) 34 if(sfopen(sfstdin, tstfile("sf", 0), "r") != sfstdin)
|
H A D | tatexit.c | 26 Sfio_t* f = sfopen(NIL(Sfio_t*), tstfile("sf", 0), "w"); 48 { if(!(f = sfopen(NIL(Sfio_t*), tstfile("sf", 1), "w")) ) 60 if(!(f = sfopen(NIL(Sfio_t*), tstfile("sf", 1), "w")) )
|
H A D | tmode.c | 27 { if(sfopen(sfstdin,argv[1],"r") != sfstdin) 33 if(!(f = sfopen((Sfio_t*)0,tstfile("sf", 0),"w"))) 40 if(!(f = sfopen(f,tstfile("sf", 0),"r"))) 47 if(!(f = sfopen(f,tstfile("sf", 0),"r+"))) 66 if(!(f = sfopen(f,tstfile("sf", 0),"w")) ) 67 terror("sfopen"); 76 if(!(f = sfopen(NIL(Sfio_t*),tstfile("sf", 0),"a+")) )
|
H A D | tappend.c | 30 if(!(f1 = sfopen(NIL(Sfio_t*), tstfile("sf", 0), "w")) ) 32 if(!(f1 = sfopen(f1, tstfile("sf", 0), "a+")) ) 35 if(!(f2 = sfopen(NIL(Sfio_t*), tstfile("sf", 0), "a+")) ) 75 if(!(f1 = sfopen(f1, tstfile("sf", 0), "w")) ) 81 if(!(f1 = sfopen(f1, tstfile("sf", 0), "a")) )
|
H A D | tmultiple.c | 38 { Sfio_t* f = sfopen(NIL(Sfio_t*),NIL(char*),"swr"); 52 if(sfopen(sfstdout, tstfile("sf", 0), "w") != sfstdout ) 59 sfopen(sfstdout,"/dev/null","w"); 62 if(sfopen(sfstdin, tstfile("sf", 0),"r") != sfstdin) 73 if(sfopen(sfstdin, tstfile("sf", 0), "r") != sfstdin) 85 if(sfopen(sfstdin, tstfile("sf", 0), "r") != sfstdin)
|
H A D | tstatus.c | 28 if(!(ip = sfopen((Sfio_t*)0, "/dev/null", "r"))) 30 if(!(op = sfopen((Sfio_t*)0, tstfile("sf", 0), "w")))
|
H A D | tswap.c | 28 if(!(f1 = sfopen(NIL(Sfio_t*), tstfile("sf", 0),"w+")) ) 47 if(!(f2 = sfopen(NIL(Sfio_t*), tstfile("sf", 0), "r")) )
|
H A D | tflags.c | 26 if(!(f = sfopen(NIL(Sfio_t*),"ab","sr")) ) 47 if(!(f = sfopen(NIL(Sfio_t*), tstfile("sf", 0), "w+")) ) 72 if(!(f = sfopen(NIL(Sfio_t*), tstfile("sf", 0),"w+")) ) 77 if(sfopen(sfstdout, tstfile("sf", 1), "w") != sfstdout)
|
H A D | tmove.c | 30 if(sfopen(sfstdout,tstfile("sf", 0),"w+") != sfstdout) 36 if(!(f = sfopen((Sfio_t*)0,tstfile("sf", 1),"w"))) 49 sfopen(sfstdin,tstfile("sf", 0),"r"); 50 sfopen(sfstdout,tstfile("sf", 1),"w");
|
H A D | tresize.c | 31 if(!(f = sfopen(NIL(Sfio_t*), tstfile("sf", 0), "w")) ) 43 if(!(f = sfopen(NIL(Sfio_t*), tstfile("sf", 0), "r+")) ) 62 if(!(f = sfopen(NIL(Sfio_t*), tstfile("sf", 0), "r+")) ) 71 if(!(f = sfopen(NIL(Sfio_t*), tstfile("sf", 0), "r+")) ) 78 if(!(f = sfopen(NIL(Sfio_t*), NIL(char*), "rws")) )
|
H A D | tpool.c | 46 if(!(f1 = sfopen((Sfio_t*)0,tstfile("sf", 0),"w+")) || 47 !(f2 = sfopen((Sfio_t*)0,tstfile("sf", 1),"w")) || 48 !(f3 = sfopen((Sfio_t*)0,tstfile("sf", 2),"w"))) 51 if(!(f4 = sfopen((Sfio_t*)0,tstfile("sf", 0),"r+")) ) 80 if(!(f1 = sfopen(f1, tstfile("sf", 0), "r")) || 81 !(f2 = sfopen(f2, tstfile("sf", 1), "r")) || 82 !(f3 = sfopen(f3, tstfile("sf", 2), "r")) ) 83 terror("sfopen for file comparison"); 118 if(!(f1 = sfopen((Sfio_t*)0,tstfile("sf", 0),"r"))) 119 terror("sfopen"); [all...] |
H A D | tpipemove.c | 37 if(sfopen(sfstdout,tstfile("sf", 0),"w") != sfstdout) 39 if(sfopen(sfstdin,tstfile("sf", 0),"r") != sfstdin)
|
H A D | twalk.c | 41 if(!(f = sfopen(0, 0, "sw")) )
|
H A D | thole.c | 31 if(!(null = sfopen(NIL(Sfio_t*),"/dev/null","w")) ) 36 if(!(f = sfopen(NIL(Sfio_t*), tstfile("sf", 0), "w+")) ) 55 if(!(f = sfopen(f, tstfile("sf", 0), "w+")) )
|
H A D | tstack.c | 87 if(!(f1 = sfopen(NIL(Sfio_t*), tstfile("sf", 0),"w+")) ) 89 if(!(f2 = sfopen(NIL(Sfio_t*), tstfile("sf", 0),"w+")) ) 109 if(!(f1 = sfopen((Sfio_t*)0,s1,"s")) || 110 !(f2 = sfopen((Sfio_t*)0,s2,"s")) || 111 !(f3 = sfopen((Sfio_t*)0,s3,"s"))) 119 if(!(f = sfopen(NIL(Sfio_t*), tstfile("sf", 0),"w+")) ) 128 if(sfopen(sfstdout,"/dev/null","w") != sfstdout) 165 if(!(f1 = sfopen((Sfio_t*)0,s1,"s")) || 166 !(f2 = sfopen((Sfio_t*)0,s2,"s")) || 167 !(f3 = sfopen((Sfio_ [all...] |
H A D | tpublic.c | 30 if(!(f = sfopen(NIL(Sfio_t*), tstfile("sf", 0), "w")) ) 37 if(!(f = sfopen(f, tstfile("sf", 0), "r")) ) 61 if(!(f = sfopen(NIL(Sfio_t*), tstfile("sf", 0), "r+")) ) 83 if(!(f = sfopen(f, tstfile("sf", 0), "w")) ) 98 if(!(f = sfopen(f, tstfile("sf", 0), "r")) ) 121 if(!(f = sfopen(f, tstfile("sf", 0), "w")) ) 126 if(sfopen(sfstdin,tstfile("sf", 0),"r") != sfstdin)
|
H A D | tstring.c | 40 if(!(f = sfopen((Sfio_t*)0, (char*)0, "srw")) ) 58 if(!(f = sfopen((Sfio_t*)0,os,"s"))) 75 if(!(f = sfopen(f,(char*)0,"s+"))) 92 if(!(f = sfopen(f,(char*)0,"s+"))) 105 if(!(f = sfopen(f,(char*)0,"s+"))) 110 if(!(f = sfopen((Sfio_t*)0,(char*)0,"s+"))) 130 if(!(f = sfopen((Sfio_t*)0,(char*)0,"s+")))
|
H A D | tseek.c | 51 if(!(f = sfopen((Sfio_t*)0, tstfile("sf", 0),"w"))) 57 if(!(f = sfopen(f, tstfile("sf", 0),"r"))) 77 if(!(f = sfopen(f,tstfile("sf", 0),"w")) ) 90 if(!(f = sfopen(f,tstfile("sf", 0),"w"))) 97 if(!(f = sfopen(f,tstfile("sf", 0),"r"))) 108 if(!(f = sfopen(f,tstfile("sf", 0),"r"))) 134 if(!(f = sfopen(NIL(Sfio_t*),tstfile("sf", 0),"w")) ) 139 if(!(f = sfopen(f,tstfile("sf", 0),"r")) ) 156 if(!(f = sfopen(NIL(Sfio_t*), tmp, "w")) ) 163 if(!(f = sfopen(NI [all...] |
H A D | talign.c | 49 if(!(f = sfopen(NIL(Sfio_t*), tstfile("sf", 0), "w")) ) 60 if(!(f = sfopen(NIL(Sfio_t*), tstfile("sf", 0), "r")) )
|
/ast/src/lib/libast/sfio/ |
H A D | sfopen.c | 25 * _sfopen() wrapper to allow user sfopen() intercept 31 Sfio_t* sfopen(Sfio_t* f, const char* file, const char* mode) function 33 Sfio_t* sfopen(f,file,mode)
|
/ast/src/cmd/sort/ |
H A D | Makefile | 5 sort :: README RELEASE PROMO.mm main.c sfopen.c \ 12 rec :: LICENSE=since=2005,author=gsf rec.c sfopen.c
|
/ast/src/lib/libast/port/ |
H A D | astquery.c | 65 else if (!(rfp = sfopen(NiL, "/dev/tty", "r"))) 69 else if (!(wfp = sfopen(NiL, "/dev/tty", "w")))
|