Deleted Added
full compact
subr_log.c (12678) subr_log.c (12819)
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.14 1995/12/08 11:17:06 julian Exp $
34 * $Id: subr_log.c,v 1.15 1995/12/08 23:21:33 phk Exp $
35 */
36
37/*
38 * Error log buffer for kernel printf's.
39 */
40
41#include <sys/param.h>
42#include <sys/systm.h>

--- 21 unchanged lines hidden (view full) ---

64static d_select_t logselect;
65
66#define CDEV_MAJOR 7
67static struct cdevsw log_cdevsw =
68 { logopen, logclose, logread, nowrite, /*7*/
69 logioctl, nostop, nullreset, nodevtotty,/* klog */
70 logselect, nommap, NULL, "log", NULL, -1 };
71
35 */
36
37/*
38 * Error log buffer for kernel printf's.
39 */
40
41#include <sys/param.h>
42#include <sys/systm.h>

--- 21 unchanged lines hidden (view full) ---

64static d_select_t logselect;
65
66#define CDEV_MAJOR 7
67static struct cdevsw log_cdevsw =
68 { logopen, logclose, logread, nowrite, /*7*/
69 logioctl, nostop, nullreset, nodevtotty,/* klog */
70 logselect, nommap, NULL, "log", NULL, -1 };
71
72struct logsoftc {
72static struct logsoftc {
73 int sc_state; /* see above for possibilities */
74 struct selinfo sc_selp; /* process waiting on select call */
75 int sc_pgid; /* process/group for async I/O */
76} logsoftc;
77
78int log_open; /* also used in log() */
79
80/*ARGSUSED*/

--- 185 unchanged lines hidden ---
73 int sc_state; /* see above for possibilities */
74 struct selinfo sc_selp; /* process waiting on select call */
75 int sc_pgid; /* process/group for async I/O */
76} logsoftc;
77
78int log_open; /* also used in log() */
79
80/*ARGSUSED*/

--- 185 unchanged lines hidden ---