Lines Matching defs:tmpl
467 char tmpl[MAXPATHLEN];
471 (void)snprintf(tmpl, sizeof(tmpl), "%s.inst.XXXXXX", to_name);
473 if (mktemp(tmpl) == NULL)
474 err(EXIT_FAILURE, "%s: mktemp", tmpl);
475 ret = link(from_name, tmpl);
477 ret = rename(tmpl, to_name);
482 (void)unlink(tmpl);
500 char tmpl[MAXPATHLEN];
503 (void)snprintf(tmpl, sizeof(tmpl), "%s.inst.XXXXXX", to_name);
505 if (mktemp(tmpl) == NULL)
506 err(EXIT_FAILURE, "%s: mktemp", tmpl);
508 if (symlink(from_name, tmpl) == -1)
509 err(EXIT_FAILURE, "symlink %s -> %s", from_name, tmpl);
510 if (rename(tmpl, to_name) == -1) {
512 (void)unlink(tmpl);
673 char *p, tmpl[MAXPATHLEN], *oto_name, *digestresult;
724 (void)snprintf(tmpl, sizeof(tmpl), "%s.inst.XXXXXX", to_name);
726 to_name = tmpl;