Lines Matching refs:file1
81 static char *always, *file1, *file2;
98 stat(file1, &sb);
129 asprintf(&file1, "%s/file1", av[1]);
144 if (unlink(file1) < 0 && errno != ENOENT)
145 err(1, "unlink(%s)", file1);
146 if (link(always, file1) < 0)
147 err(1, "link(%s, %s)", always, file1);
151 if (rename(file2, file1) < 0)
152 err(1, "rename(%s, %s)", file2, file1);
153 if (stat(file1, &sb) < 0)
154 err(1, "stat(%s)", file1);
168 unlink(file1);