return switched;
}
-/* destructor for standard files */
static void
file_close(struct log_stream *ls)
{
xfree(fs->orig_name);
}
-/* handler for standard files */
static int
file_handler(struct log_stream *ls, struct log_msg *m)
{
return 0;
}
-/* assign log to a file descriptor */
-/* initialize with the default formatting, does NOT close the descriptor */
struct log_stream *
log_new_fd(int fd)
{
return ls;
}
-/* open() a file (append mode) */
-/* initialize with the default formatting */
struct log_stream *
log_new_file(const char *path)
{
log_switch_nest--;
}
-/* Emulate the old single-file interface: close the existing log file and open a new one. */
void
log_file(const char *name)
{