Lines Matching defs:path
11 static void create_file(const char *path)
15 fd = creat(path, 0600);
17 i_fatal("creat(%s) failed: %m", path);
21 static bool wait_for_file(pid_t pid, const char *path)
26 if (stat(path, &st) == 0)
29 i_fatal("stat(%s) failed: %m", path);
37 i_error("%s isn't being created", path);
47 const char *path = ".test-file-create-locked";
56 i_unlink_if_exists(path);
65 fd = file_create_locked(path, &set, &lock, &created, &error);
79 test_assert(file_create_locked(path, &set, &lock, &created, &error) == -1);
86 i_unlink_if_exists(path);
96 const char *path;
107 path = t_strconcat(dir, "/lockfile", NULL);
110 test_assert(file_create_locked(path, &set, &lock, &created, &error) == -1);
115 fd = file_create_locked(path, &set, &lock, &created, &error);
124 i_unlink(path);