Lines Matching defs:ofile
111 int ofile; /* file descriptor for output file when uploading to us */
570 if(!test->ofile) {
574 test->ofile = open(outfile, O_CREAT|O_RDWR|O_BINARY, 0777);
576 test->ofile = open(outfile, O_CREAT|O_RDWR, 0777);
578 if(test->ofile == -1) {
594 return write(test->ofile, writebuf, count);
602 lseek(test->ofile, -1, SEEK_CUR); /* smash lf on top of the cr */
610 if(1 != write(test->ofile, &c, 1))
893 if(test.ofile > 0) {
894 close(test.ofile);
895 test.ofile = 0;
912 if(test.ofile > 0)
913 close(test.ofile);