Lines Matching refs:dir
46 char dir[100];
50 snprintf(dir, sizeof(dir), "%d", i);
51 if (mkdir(dir, 0700) == -1)
52 err(1, "mkdir(%s)", dir);
57 snprintf(dir, sizeof(dir), "%d", i);
58 if (mkdir(dir, 0700) != -1) /* this must fail */
59 err(1, "mkdir(%s)", dir);
61 err(1, "Must fail: mkdir(%s)", dir);
65 snprintf(dir, sizeof(dir), "%d", i);
66 if (rmdir(dir) == -1)
67 err(1, "rmdir(%s)", dir);
68 snprintf(dir, sizeof(dir), "%s", "a");
69 if (mkdir(dir, 0700) == -1)
70 err(1, "mkdir(%s)", dir);