Lines Matching refs:fnp

56 static void dologname(struct fn *fnp, struct opts *clopts);
57 static boolean_t rotatelog(struct fn *fnp, struct opts *opts);
58 static void rotateto(struct fn *fnp, struct opts *opts, int n,
61 static void expirefiles(struct fn *fnp, struct opts *opts);
62 static void dorm(struct opts *opts, const char *msg, struct fn *fnp);
165 struct fn *fnp; in main() local
352 while ((fnp = fn_list_next(lognames)) != NULL) { in main()
353 buf = fn_s(fnp); in main()
365 dologname(fnp, clopts); in main()
397 struct fn *fnp = (struct fn *)arg; in commajoin() local
400 buf = fn_s(fnp); in commajoin()
402 fn_putc(fnp, ','); in commajoin()
403 fn_puts(fnp, lhs); in commajoin()
414 struct fn *fnp = fn_new(NULL); in doaftercmd() local
420 lut_walk(addrs, commajoin, fnp); in doaftercmd()
421 err_mailto(fn_s(fnp)); in doaftercmd()
447 dologname(struct fn *fnp, struct opts *clopts) in dologname() argument
449 const char *logname = fn_s(fnp); in dologname()
552 globbedfiles = glob_glob(fnp); in dologname()
573 rotatelog(struct fn *fnp, struct opts *opts) in rotatelog() argument
575 char *fname = fn_s(fnp); in rotatelog()
593 kw_init(fnp, NULL); in rotatelog()
696 rotateto(fnp, opts, 0, recentlog, B_FALSE); in rotatelog()
705 rotateto(fnp, opts, 0, recentlog, B_FALSE); in rotatelog()
779 rotateto(struct fn *fnp, struct opts *opts, int n, struct fn *recentlog, in rotateto() argument
793 buf1 = fn_s(fnp); in rotateto()
834 docopytruncate(opts, fn_s(fnp), fn_s(newfile)); in rotateto()
840 kw_init(fnp, newfile); in rotateto()
848 fn_s(fnp), fn_s(newfile)); in rotateto()
857 expirefiles(struct fn *fnp, struct opts *opts) in expirefiles() argument
859 char *fname = fn_s(fnp); in expirefiles()
874 kw_init(fnp, NULL); in expirefiles()
982 dorm(struct opts *opts, const char *msg, struct fn *fnp) in dorm() argument
989 kw_init(fnp, NULL); in dorm()
995 docmd(opts, msg, Rm, "-f", fn_s(fnp), NULL); in dorm()
996 Gzipnames = lut_add(Gzipnames, fn_s(fnp), NULL); in dorm()