Lines Matching refs:p
10 int lookup_paths_mkdir_generator(LookupPaths *p) { in lookup_paths_mkdir_generator() argument
13 assert(p); in lookup_paths_mkdir_generator()
15 if (!p->generator || !p->generator_early || !p->generator_late) in lookup_paths_mkdir_generator()
18 r = mkdir_p_label(p->generator, 0755); in lookup_paths_mkdir_generator()
20 q = mkdir_p_label(p->generator_early, 0755); in lookup_paths_mkdir_generator()
24 q = mkdir_p_label(p->generator_late, 0755); in lookup_paths_mkdir_generator()
31 void lookup_paths_trim_generator(LookupPaths *p) { in lookup_paths_trim_generator() argument
32 assert(p); in lookup_paths_trim_generator()
36 if (p->generator) in lookup_paths_trim_generator()
37 (void) rmdir(p->generator); in lookup_paths_trim_generator()
38 if (p->generator_early) in lookup_paths_trim_generator()
39 (void) rmdir(p->generator_early); in lookup_paths_trim_generator()
40 if (p->generator_late) in lookup_paths_trim_generator()
41 (void) rmdir(p->generator_late); in lookup_paths_trim_generator()
44 void lookup_paths_flush_generator(LookupPaths *p) { in lookup_paths_flush_generator() argument
45 assert(p); in lookup_paths_flush_generator()
49 if (p->generator) in lookup_paths_flush_generator()
50 (void) rm_rf(p->generator, REMOVE_ROOT|REMOVE_PHYSICAL); in lookup_paths_flush_generator()
51 if (p->generator_early) in lookup_paths_flush_generator()
52 (void) rm_rf(p->generator_early, REMOVE_ROOT|REMOVE_PHYSICAL); in lookup_paths_flush_generator()
53 if (p->generator_late) in lookup_paths_flush_generator()
54 (void) rm_rf(p->generator_late, REMOVE_ROOT|REMOVE_PHYSICAL); in lookup_paths_flush_generator()
56 if (p->temporary_dir) in lookup_paths_flush_generator()
57 (void) rm_rf(p->temporary_dir, REMOVE_ROOT|REMOVE_PHYSICAL); in lookup_paths_flush_generator()