subr_log.c (9979) | subr_log.c (11921) |
---|---|
1/* 2 * Copyright (c) 1982, 1986, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 17 unchanged lines hidden (view full) --- 26 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 27 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 28 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 29 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 31 * SUCH DAMAGE. 32 * 33 * @(#)subr_log.c 8.1 (Berkeley) 6/10/93 | 1/* 2 * Copyright (c) 1982, 1986, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 17 unchanged lines hidden (view full) --- 26 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 27 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 28 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 29 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 31 * SUCH DAMAGE. 32 * 33 * @(#)subr_log.c 8.1 (Berkeley) 6/10/93 |
34 * $Id: subr_log.c,v 1.8 1995/05/30 08:05:52 rgrimes Exp $ | 34 * $Id: subr_log.c,v 1.9 1995/08/07 07:58:17 davidg Exp $ |
35 */ 36 37/* 38 * Error log buffer for kernel printf's. 39 */ 40 41#include <sys/param.h> 42#include <sys/systm.h> --- 19 unchanged lines hidden (view full) --- 62 63/*ARGSUSED*/ 64int 65logopen(dev, flags, mode, p) 66 dev_t dev; 67 int flags, mode; 68 struct proc *p; 69{ | 35 */ 36 37/* 38 * Error log buffer for kernel printf's. 39 */ 40 41#include <sys/param.h> 42#include <sys/systm.h> --- 19 unchanged lines hidden (view full) --- 62 63/*ARGSUSED*/ 64int 65logopen(dev, flags, mode, p) 66 dev_t dev; 67 int flags, mode; 68 struct proc *p; 69{ |
70 register struct msgbuf *mbp = msgbufp; 71 | |
72 if (log_open) 73 return (EBUSY); 74 log_open = 1; 75 logsoftc.sc_pgid = p->p_pid; /* signal process only */ 76 return (0); 77} 78 79/*ARGSUSED*/ --- 148 unchanged lines hidden --- | 70 if (log_open) 71 return (EBUSY); 72 log_open = 1; 73 logsoftc.sc_pgid = p->p_pid; /* signal process only */ 74 return (0); 75} 76 77/*ARGSUSED*/ --- 148 unchanged lines hidden --- |