Searched defs:template (Results 1 - 8 of 8) sorted by relevance
/systemd/src/test/ |
H A D | test-sigbus.c | 28 char template[] = "/tmp/sigbus-test-XXXXXX"; local 36 assert_se((fd = mkostemp(template, O_RDWR|O_CREAT|O_EXCL)) >= 0); 37 assert_se(unlink(template) >= 0);
|
H A D | test-path-lookup.c | 30 char template[] = "/tmp/test-path-lookup.XXXXXXX"; local 36 assert_se(mkdtemp(template)); 37 exists = strjoina(template, "/exists"); 39 not = strjoina(template, "/not"); 48 systemd_unit_path = strjoina(template, "/systemd-unit-path"); 54 assert_se(rm_rf(template, REMOVE_ROOT|REMOVE_PHYSICAL) >= 0);
|
/systemd/src/shared/ |
H A D | dropin.c | 203 _cleanup_free_ char *template = NULL, *p = NULL; local 204 /* Also try the template dir */ 206 r = unit_name_template(name, &template); 208 return log_error_errno(r, "Failed to generate template from unit name: %m"); 210 p = strjoin(unit_path, "/", template, suffix, NULL);
|
H A D | install.c | 1085 * possible to load template unit file. */ 1087 _cleanup_free_ char *template = NULL; local 1089 r = unit_name_template(info->name, &template); 1096 path = strjoin(*p, "/", template, NULL);
|
/systemd/src/nspawn/ |
H A D | nspawn-mount.c | 855 char template[] = "/tmp/nspawn-volatile-XXXXXX"; local 868 if (!mkdtemp(template)) 878 if (mount("tmpfs", template, "tmpfs", MS_STRICTATIME, options) < 0) { 886 t = prefix_roota(template, "/usr"); 907 if (mount(template, directory, NULL, MS_MOVE, NULL) < 0) { 912 (void) rmdir(template); 921 (void) umount(template); 922 (void) rmdir(template);
|
H A D | nspawn.c | 190 " --template=PATH Initialize root directory from template directory,\n" 357 { "template", required_argument, NULL, ARG_TEMPLATE }, 911 log_error("--template= and --image= may not be combined."); 916 log_error("--template= needs --directory= or --machine=."); 921 log_error("--ephemeral and --template= may not be combined."); 2337 /* If --template= was specified then we should not 3198 log_info("Directory %s already exists, not populating from template %s.", arg_directory, arg_template); 3204 log_info("Populated %s from template %s.", arg_directory, arg_template); 3227 char template[] local [all...] |
/systemd/src/journal/ |
H A D | journal-file.c | 206 static int journal_file_init_header(JournalFile *f, JournalFile *template) { argument 227 if (template) { 228 h.seqnum_id = template->header->seqnum_id; 229 h.tail_entry_seqnum = template->header->tail_entry_seqnum; 2713 JournalFile *template, 2809 r = journal_file_init_header(f, template); 2849 } else if (template) 2850 f->metrics = template->metrics; 2884 if (template && template 2705 journal_file_open( const char *fname, int flags, mode_t mode, bool compress, bool seal, JournalMetrics *metrics, MMapCache *mmap_cache, JournalFile *template, JournalFile **ret) argument 2953 journal_file_open_reliably( const char *fname, int flags, mode_t mode, bool compress, bool seal, JournalMetrics *metrics, MMapCache *mmap_cache, JournalFile *template, JournalFile **ret) argument [all...] |
/systemd/src/systemctl/ |
H A D | systemctl.c | 2371 _cleanup_free_ char *template = NULL; local 2373 r = unit_name_template(unit_name, &template); 2375 return log_error_errno(r, "Failed to determine template name: %m"); 2377 r = unit_file_find_path(lp, template, &path);
|
Completed in 2868 milliseconds