Lines Matching defs:outfile
931 int outfile;
1135 outfile = open(cal_file, O_WRONLY | O_TRUNC | O_CREAT, 0600);
1136 if (outfile < 0)
1142 if (safe_write(outfile, header, strlen(header) + 1) < 0)
1144 if (safe_write(outfile, (const char *)&fileversion, sizeof(int)) < 0)
1148 if (safe_write(outfile, (char *)&(sp->scanheadwidth),
1151 if (safe_write(outfile, (char *)(sp->blackweight),
1154 if (safe_write(outfile, (char *)(sp->redweight),
1157 if (safe_write(outfile, (char *)(sp->greenweight),
1160 if (safe_write(outfile, (char *)(sp->blueweight),
1163 if (safe_write(outfile, (char *)(sp->gamma), 32) < 0)
1166 close(outfile);