-/* Emulate the old single-file interface: close the existing log file and open a new one. */
-void
-log_file(const char *name)
-{
- if (!name)
- return;
-
- struct log_stream *ls = log_new_file(name);
- struct log_stream *def = log_stream_by_flags(0);
- simp_node *s;
- while (s = clist_head(&def->substreams))
- {
- struct log_stream *old = s->p;
- log_rm_substream(def, old);
- if (old != (struct log_stream *) &log_stream_default)
- log_close_stream(old);
- }
- dup2(ls->idata, 2); // Let fd2 be an alias for the log file
- log_add_substream(def, ls);
-}
-
-int
-log_switch(void)
-{
-#if 0 // FIXME
- time_t tim = time(NULL);
- return do_log_switch(localtime(&tim));
-#else
- return 0;
-#endif
-}
-
-void
-log_switch_disable(void)
-{
- log_switch_nest++;
-}
-
-void
-log_switch_enable(void)
-{
- ASSERT(log_switch_nest);
- log_switch_nest--;
-}
-
-/* destructor for standard files */