Lines Matching refs:ofile
110 int ofile; /* file descriptor for output file when uploading to us */
453 if(!test->ofile) {
457 test->ofile = open(outfile, O_CREAT|O_RDWR|O_BINARY, 0777);
459 test->ofile = open(outfile, O_CREAT|O_RDWR, 0777);
461 if(test->ofile == -1) {
477 return write(test->ofile, writebuf, count);
485 lseek(test->ofile, -1, SEEK_CUR); /* smash lf on top of the cr */
493 if(1 != write(test->ofile, &c, 1))
847 if(test.ofile > 0)
848 close(test.ofile);
1316 if(test->ofile > 0) {
1317 close(test->ofile);
1318 test->ofile = 0;
1343 if(test->ofile > 0) {
1344 close(test->ofile);
1345 test->ofile = 0;