Lines Matching defs:path
37 static int make_test_file(char path[PATH_MAX], const char *contents)
42 strcpy(path, TEMPL);
43 fd = mkstemp(path);
51 unlink(path);
58 static int setup_test(char path[PATH_MAX], const char *contents,
61 if (make_test_file(path, contents))
64 io->fd = open(path, O_RDONLY);
66 pr_debug("Failed to open '%s'\n", path);
67 unlink(path);
74 unlink(path);
81 static void cleanup_test(char path[PATH_MAX], struct io *io)
85 unlink(path);
90 char path[PATH_MAX];
95 if (setup_test(path, test_string, buf_size, &io))
108 cleanup_test(path, &io);
137 char path[PATH_MAX];
142 if (setup_test(path, test_string, 4, &io))
159 cleanup_test(path, &io);
218 char path[PATH_MAX];
223 if (setup_test(path, test_string, 4, &io))
240 cleanup_test(path, &io);
295 char path[PATH_MAX];
310 if (setup_test(path, test_string, buf_size, &io))
323 cleanup_test(path, &io);