Lines Matching defs:dir
90 static char *test_format_dir_get(char *dir, size_t sz)
94 snprintf(dir, sz, "/tmp/perf-pmu-test-format-XXXXXX");
95 if (!mkdtemp(dir))
103 scnprintf(name, PATH_MAX, "%s/%s", dir, format->name);
115 return dir;
119 static int test_format_dir_put(char *dir)
123 snprintf(buf, sizeof(buf), "rm -f %s/*\n", dir);
127 snprintf(buf, sizeof(buf), "rmdir %s\n", dir);
145 char dir[PATH_MAX];
164 format = test_format_dir_get(dir, sizeof(dir));