Lines Matching refs:docmd
63 static void docmd(struct opts *opts, const char *msg, const char *cmd,
424 docmd(opts, "-a cmd", Sh, "-c", lhs, NULL); in doaftercmd()
441 docmd(opts, "compress old log (-z flag)", Gzip, "-f", lhs, NULL); in do_delayed_gzip()
732 docmd(opts, NULL, Touch, fname, NULL, NULL); in rotatelog()
733 docmd(opts, NULL, Chown, owner, fname, NULL); in rotatelog()
734 docmd(opts, NULL, Chmod, mode, fname, NULL); in rotatelog()
743 docmd(opts, "-R cmd", Sh, "-c", fn_s(cmd), NULL); in rotatelog()
821 docmd(opts, "-b cmd", Sh, "-c", cmd, NULL); in rotateto()
828 docmd(opts, "verify directory exists", Mkdir, "-p", in rotateto()
842 docmd(opts, "-M cmd", Sh, "-c", fn_s(cmd), NULL); in rotateto()
847 docmd(opts, "rotate log file", Mv, "-f", in rotateto()
991 docmd(opts, msg, Sh, "-c", fn_s(cmd), NULL); in dorm()
995 docmd(opts, msg, Rm, "-f", fn_s(fnp), NULL); in dorm()
1001 docmd(struct opts *opts, const char *msg, const char *cmd, in docmd() function