Lines Matching defs:path
36 static int make_test_file(char path[PATH_MAX], const char *contents)
41 strcpy(path, TEMPL);
42 fd = mkstemp(path);
50 unlink(path);
57 static int setup_test(char path[PATH_MAX], const char *contents,
60 if (make_test_file(path, contents))
63 io->fd = open(path, O_RDONLY);
65 pr_debug("Failed to open '%s'\n", path);
66 unlink(path);
73 unlink(path);
80 static void cleanup_test(char path[PATH_MAX], struct io *io)
84 unlink(path);
89 char path[PATH_MAX];
94 if (setup_test(path, test_string, buf_size, &io))
107 cleanup_test(path, &io);
136 char path[PATH_MAX];
141 if (setup_test(path, test_string, 4, &io))
158 cleanup_test(path, &io);
217 char path[PATH_MAX];
222 if (setup_test(path, test_string, 4, &io))
239 cleanup_test(path, &io);