Lines Matching refs:outfile
89 register char *infile,*outfile;
141 while (outfile = *argv++)
146 if(!(infile = inname(outfile)))
163 else if(access(outfile,F_OK) ==0)
164 error(2, "%s: already exists", outfile);
165 else if(((out=open(outfile,O_WRONLY|O_CREAT|O_TRUNC|O_BINARY,PERM(statb.st_mode))) < 0) ||
167 error(2, "%s: cannot create", outfile);
168 else if((deleted++,chmod(outfile,statb.st_mode)) < 0)
169 error(ERROR_system(0), "%s: cannot change mode to %o",outfile,statb.st_mode);
172 chown(outfile,statb.st_uid,statb.st_gid);
181 error(2, "%s: read error", outfile);
186 touch(outfile,statb.st_atime,statb.st_mtime,1);
202 remove(outfile);
213 static char *inname(register char *outfile)
216 register int n = strlen(outfile);
220 strcpy(cp,outfile);
222 outfile[n-sufflen] = 0;