Lines Matching refs:path_buf
407 static VSTRING *path_buf = 0;
410 if (path_buf == 0)
411 path_buf = vstring_alloc(100);
413 VSTRING_RESET(path_buf);
415 while (strftime(STR(path_buf), vstring_avail(path_buf), template, lt) == 0)
416 VSTRING_SPACE(path_buf, vstring_avail(path_buf) + 100);
417 VSTRING_SKIP(path_buf);
418 return (path_buf);
437 VSTRING *path_buf;
449 path_buf = exp_path_template(single_template, state->start_time);
459 for (len = VSTRING_LEN(path_buf); /* void */ ; vstring_truncate(path_buf, len)) {
463 vstring_sprintf_append(path_buf, ID_FORMAT, state->id);
464 if ((state->dump_file = vstream_fopen(STR(path_buf),
471 make_parent_dir(STR(path_buf), 0755);
474 msg_fatal("open %s: %m", STR(path_buf));
481 if (shared_template != 0 && unlink(STR(path_buf)) < 0)
482 msg_fatal("unlink %s: %m", STR(path_buf));