Home
last modified time | relevance | path

Searched refs:fscript (Results 1 – 4 of 4) sorted by relevance

/netbsd-src/usr.bin/tip/
H A Dtipout.c83 if (boolean(value(SCRIPT)) && fscript != NULL) in intEMT()
84 (void)fclose(fscript); in intEMT()
89 if ((fscript = fopen(line, "a")) == NULL) in intEMT()
104 if (boolean(value(SCRIPT)) && fscript != NULL) in intTERM()
105 (void)fclose(fscript); in intTERM()
175 if (boolean(value(SCRIPT)) && fscript != NULL) { in tipout()
177 (void)fwrite(buf, 1, (size_t)cnt, fscript); in tipout()
183 (void)putc(*cp, fscript); in tipout()
H A Dtip.h230 extern FILE *fscript; /* FILE for scripting */
H A Dtip.c61 FILE *fscript; variable
/netbsd-src/usr.bin/script/
H A Dscript.c76 static FILE *fscript; variable
160 if ((fscript = fopen(fname, pflg ? "r" : aflg ? "a" : "w")) == NULL) in main()
164 playback(fscript); in main()
208 (void)fclose(fscript); in main()
212 record(fscript, ibuf, cc, 'i'); in main()
273 record(fscript, NULL, 0, 's'); in dooutput()
275 (void)fprintf(fscript, "Script started on %s", ctime(&tvec)); in dooutput()
289 record(fscript, obuf, cc, 'o'); in dooutput()
291 (void)fwrite(obuf, 1, cc, fscript); in dooutput()
294 (void)fflush(fscript); in dooutput()
[all …]