Lines Matching defs:logfile

119 				/*    messages to logfile(s) when rotating. */
201 time_t t; /* Parsed timestamp of the logfile */
258 static const char *get_logfile_suffix(const char *logfile);
573 * Figure out if this logfile needs to be rotated.
724 * logfile is rotated, and if a file *is* rotated,
879 * logfile, if multiple entries are an exact match for
1370 * later processing if this logfile needs to be rotated.
1448 * Check whether the file corresponding to dp is an archive of the logfile
1474 /* Ignore everything but files with our logfile prefix. */
1477 /* Ignore the actual non-rotated logfile. */
1482 * Make sure we created have found a logfile, so the
1564 * We should now have old an old rotated logfile, so
1575 * logfile array from the default size, but lets
1610 "Could not delete old logfile '%s'",
1616 printf("No old logs to delete for logfile %s\n", ent->log);
1645 * Delete a rotated logfile, when using classic filenames.
1694 * Search for logfile and return its compression suffix (if supported)
1697 * Note: if logfile without suffix exists (uncompressed, COMPRESS_NONE)
1701 get_logfile_suffix(const char *logfile)
1708 (void) strlcpy(zfile, logfile, MAXPATHLEN);
1741 /* get directory part of logfile */
1754 /* get filename part of logfile */
1900 * rotated logfile needs to be compressed, *unless* -R was also
1902 * which writes to the logfile, and as such, we assume that process
1903 * has already made sure the logfile is not presently in use. This
2187 * rotating this logfile, then the value read in should
2264 fprintf(f, "%s %s newsyslog[%d]: logfile first created%s\n",
2267 fprintf(f, "%s %s newsyslog[%d]: logfile turned over%s%s\n",
2270 fprintf(f, "%s %s newsyslog[%d]: logfile turned over%s\n",
2289 * Return the mtime of the most recent archive of the logfile, using timestamp
2340 /* Return the age in hours of the most recent archive of the logfile. */
2356 /* get directory part of logfile */
2367 /* get filename part of logfile */
2513 * of the file to exist, they should call 'link(logfile,logbackup)'
2560 err(1, "can't mkstemp logfile %s", tempfile);
2596 * Note that if the real logfile still exists, and if the call