Lines Matching refs:file
47 char file[100];
49 snprintf(file, sizeof(file), "f");
50 if ((fd = open(file, O_RDWR | O_CREAT | O_TRUNC,
52 err(1, "creat(%s)", file);
57 snprintf(file, sizeof(file), "%d", i);
58 if (link("f", file) == -1)
59 err(1, "link(%s, %s)", "f", file);
65 snprintf(file, sizeof(file), "%d", i);
66 if (link("f", file) != -1)
67 err(1, "link(%s, %s)", "f", file);
69 err(1, "Must fail: link(%s, %s)", "f", file);
72 snprintf(file, sizeof(file), "%d", i);
73 if (unlink(file) == -1)
74 err(1, "unlink(%s)", file);
78 snprintf(file, sizeof(file), "%d", i);
79 if (link("f", file) == -1)
80 err(1, "link(%s, %s)", "f", file);