-
-/*ARGSUSED*/
-int
-cnputc(c)
- char c;
-{
- dev_t device;
- boolean_t funnel_state;
- int error;
-
- funnel_state = thread_funnel_set(kernel_flock, TRUE);
- if (constty)
- device = constty->t_dev;
- else
- device = cons.t_dev;
- error = (*cdevsw[major(device)].d_putc)(device, c);
- thread_funnel_set(kernel_flock, funnel_state);
-
- return(error);
-}
-#endif
-
-void
-slave_cnenable(void)
-{
- /* FIXME: what to do here? */
-}
-
-#if 0
-void
-kprintf( const char *format, ...)
-{
- /* on PPC this outputs to the serial line */
- /* nop on intel ... umeshv@apple.com */
-
-}
-#endif
-
-/*
- * Write message to console; create an alert panel if no text-type window
- * currently exists. Caller must call alert_done() when finished.
- * The height and width arguments are not used; they are provided for
- * compatibility with the 68k version of alert().
- */
-int
-alert(
- __unused int width,
- __unused int height,
- __unused const char *title,
- const char *msg,
- int p1,
- int p2,
- int p3,
- int p4,
- int p5,
- int p6,
- int p7,
- int p8)
-{
- char smsg[200];
-
- sprintf(smsg, msg, p1, p2, p3, p4, p5, p6, p7, p8);
-#if FIXME /* [ */
- /* DoAlert(title, smsg); */
-#else
- printf("%s\n",smsg);
-#endif /* FIXME ] */
-
- return 0;
-}
-
-int
-alert_done(void)
-{
- /* DoRestore(); */
- return 0;
-}
-