• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /freebsd-13-stable/usr.sbin/newsyslog/

Lines Matching defs:logfile

105 				/*    messages to logfile(s) when rotating. */
198 time_t t; /* Parsed timestamp of the logfile */
265 static const char *get_logfile_suffix(const char *logfile);
587 * Figure out if this logfile needs to be rotated.
736 * logfile is rotated, and if a file *is* rotated,
890 * logfile, if multiple entries are an exact match for
1389 * later processing if this logfile needs to be rotated.
1471 * Check whether the file corresponding to dp is an archive of the logfile
1497 /* Ignore everything but files with our logfile prefix. */
1500 /* Ignore the actual non-rotated logfile. */
1505 * Make sure we created have found a logfile, so the
1587 * We should now have old an old rotated logfile, so
1598 * logfile array from the default size, but lets
1633 "Could not delete old logfile '%s'",
1639 printf("No old logs to delete for logfile %s\n", ent->log);
1668 * Delete a rotated logfile, when using classic filenames.
1717 * Search for logfile and return its compression suffix (if supported)
1720 * Note: if logfile without suffix exists (uncompressed, COMPRESS_NONE)
1724 get_logfile_suffix(const char *logfile)
1731 (void) strlcpy(zfile, logfile, MAXPATHLEN);
1764 /* get directory part of logfile */
1777 /* get filename part of logfile */
1942 * rotated logfile needs to be compressed, *unless* -R was also
1944 * which writes to the logfile, and as such, we assume that process
1945 * has already made sure the logfile is not presently in use. This
2258 * rotating this logfile, then the value read in should
2339 "logfile first created", xtra);
2344 "logfile turned over", log_ent->r_reason, xtra);
2349 "logfile turned over", xtra);
2354 "%s %.*s newsyslog[%d]: logfile first created%s\n",
2359 "%s %.*s newsyslog[%d]: logfile turned over%s%s\n",
2364 "%s %.*s newsyslog[%d]: logfile turned over%s\n",
2385 * Return the mtime of the most recent archive of the logfile, using timestamp
2442 /* Return the age in hours of the most recent archive of the logfile. */
2470 /* get directory part of logfile */
2481 /* get filename part of logfile */
2627 * of the file to exist, they should call 'link(logfile,logbackup)'
2674 err(1, "can't mkstemp logfile %s", tempfile);
2710 * Note that if the real logfile still exists, and if the call