Lines Matching refs:dir
50 char dir[100];
54 snprintf(dir, sizeof(dir), "%d", i);
55 if (mkdir(dir, 0700) == -1)
56 err(1, "mkdir(%s)", dir);
61 snprintf(dir, sizeof(dir), "%d", i);
62 if (mkdir(dir, 0700) != -1) /* this must fail */
63 err(1, "mkdir(%s)", dir);
65 err(1, "Must fail: mkdir(%s)", dir);
69 snprintf(dir, sizeof(dir), "%d", i);
70 if (rmdir(dir) == -1)
71 err(1, "rmdir(%s)", dir);
72 snprintf(dir, sizeof(dir), "%s", "x");
73 if (mkdir(dir, 0700) == -1)
74 err(1, "mkdir(%s)", dir);
83 snprintf(dir, sizeof(dir), "%s", "a");
84 if (mkdir(dir, 0700) == -1)
85 err(1, "mkdir(%s)", dir);
86 snprintf(dir, sizeof(dir), "%s", "c");
87 if (mkdir(dir, 0700) == -1)
88 err(1, "mkdir(%s)", dir);
91 snprintf(dir, sizeof(dir), "%s/%s", "a", "b");
92 if (mkdir(dir, 0700) == -1)
93 err(1, "mkdir(%s)", dir);