sys/msgbuf.h: New home for extern log_open.
This commit is contained in:
parent
4e8b6e03fa
commit
97362f108f
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: subr_prf.c,v 1.194 2022/10/25 23:21:13 riastradh Exp $ */
|
||||
/* $NetBSD: subr_prf.c,v 1.195 2022/10/26 23:28:42 riastradh Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1986, 1988, 1991, 1993
|
||||
|
@ -37,7 +37,7 @@
|
|||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: subr_prf.c,v 1.194 2022/10/25 23:21:13 riastradh Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: subr_prf.c,v 1.195 2022/10/26 23:28:42 riastradh Exp $");
|
||||
|
||||
#ifdef _KERNEL_OPT
|
||||
#include "opt_ddb.h"
|
||||
|
@ -103,7 +103,6 @@ static void kprintf_internal(const char *, int, void *, char *, ...);
|
|||
* globals
|
||||
*/
|
||||
|
||||
extern int log_open; /* subr_log: is /dev/klog open? */
|
||||
const char *panicstr; /* arg to first call to panic (used as a flag
|
||||
to indicate that panic has already been called). */
|
||||
struct cpu_info *paniccpu; /* cpu that first panicked */
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: msgbuf.h,v 1.17 2018/04/19 21:19:07 christos Exp $ */
|
||||
/* $NetBSD: msgbuf.h,v 1.18 2022/10/26 23:28:43 riastradh Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1981, 1984, 1993
|
||||
|
@ -47,6 +47,7 @@ struct kern_msgbuf {
|
|||
extern int msgbufmapped; /* is the message buffer mapped */
|
||||
extern int msgbufenabled; /* is logging to the buffer enabled */
|
||||
extern struct kern_msgbuf *msgbufp; /* the mapped buffer, itself. */
|
||||
extern int log_open; /* is /dev/klog open? */
|
||||
|
||||
void initmsgbuf(void *, size_t);
|
||||
void loginit(void);
|
||||
|
|
Loading…
Reference in New Issue