diff options
author | Alexander Bluhm <bluhm@cvs.openbsd.org> | 2016-05-17 23:43:48 +0000 |
---|---|---|
committer | Alexander Bluhm <bluhm@cvs.openbsd.org> | 2016-05-17 23:43:48 +0000 |
commit | 28a8a5fb685d89bb78378935ab18485eed898f7f (patch) | |
tree | f1b3255143b96898861fe1b2cf55e72458ecfd4f /sys/dev/cons.h | |
parent | f6d7c6228385c58b410a1dfba605b82cc416c339 (diff) |
Allow sendsyslog(2) with LOG_CONS even when /dev/console has not
been opened during init(8). Only log with cnwrite() if cn_devvp
exists, otherwise use cnputc() as fallback. While there move extern
declarations to dev/cons.h.
input and OK deraadt@
Diffstat (limited to 'sys/dev/cons.h')
-rw-r--r-- | sys/dev/cons.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/dev/cons.h b/sys/dev/cons.h index 2aebc734339..13689ce5b15 100644 --- a/sys/dev/cons.h +++ b/sys/dev/cons.h @@ -1,4 +1,4 @@ -/* $OpenBSD: cons.h,v 1.17 2013/09/29 12:56:31 kettenis Exp $ */ +/* $OpenBSD: cons.h,v 1.18 2016/05/17 23:43:47 bluhm Exp $ */ /* $NetBSD: cons.h,v 1.14 1996/03/14 19:08:35 christos Exp $ */ /* @@ -70,6 +70,8 @@ struct consdev { extern struct consdev constab[]; extern struct consdev *cn_tab; +extern struct tty *constty; +extern struct vnode *cn_devvp; struct knote; |