Lines Matching defs:path_buf
430 static VSTRING *path_buf = 0;
433 if (path_buf == 0)
434 path_buf = vstring_alloc(100);
436 VSTRING_RESET(path_buf);
438 while (strftime(STR(path_buf), vstring_avail(path_buf), template, lt) == 0)
439 VSTRING_SPACE(path_buf, vstring_avail(path_buf) + 100);
440 VSTRING_SKIP(path_buf);
441 return (path_buf);
460 VSTRING *path_buf;
472 path_buf = exp_path_template(single_template, state->start_time);
482 for (len = VSTRING_LEN(path_buf); /* void */ ; vstring_truncate(path_buf, len)) {
486 vstring_sprintf_append(path_buf, ID_FORMAT, state->id);
487 if ((state->dump_file = vstream_fopen(STR(path_buf),
494 make_parent_dir(STR(path_buf), 0755);
497 msg_fatal("open %s: %m", STR(path_buf));
504 if (shared_template != 0 && unlink(STR(path_buf)) < 0)
505 msg_fatal("unlink %s: %m", STR(path_buf));