Deleted Added
full compact
subr_log.c (46568) subr_log.c (47625)
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.33 1998/12/07 21:58:29 archie Exp $
34 * $Id: subr_log.c,v 1.34 1999/05/06 18:12:46 peter Exp $
35 */
36
37/*
38 * Error log buffer for kernel printf's.
39 */
40
41#include "opt_devfs.h"
42

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

63
64static d_open_t logopen;
65static d_close_t logclose;
66static d_read_t logread;
67static d_ioctl_t logioctl;
68static d_poll_t logpoll;
69
70#define CDEV_MAJOR 7
35 */
36
37/*
38 * Error log buffer for kernel printf's.
39 */
40
41#include "opt_devfs.h"
42

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

63
64static d_open_t logopen;
65static d_close_t logclose;
66static d_read_t logread;
67static d_ioctl_t logioctl;
68static d_poll_t logpoll;
69
70#define CDEV_MAJOR 7
71static struct cdevsw log_cdevsw =
72 { logopen, logclose, logread, nowrite, /*7*/
73 logioctl, nostop, nullreset, nodevtotty,/* klog */
74 logpoll, nommap, NULL, "log", NULL, -1 };
71static struct cdevsw log_cdevsw = {
72 /* open */ logopen,
73 /* close */ logclose,
74 /* read */ logread,
75 /* write */ nowrite,
76 /* ioctl */ logioctl,
77 /* stop */ nostop,
78 /* reset */ noreset,
79 /* devtotty */ nodevtotty,
80 /* poll */ logpoll,
81 /* mmap */ nommap,
82 /* strategy */ nostrategy,
83 /* name */ "log",
84 /* parms */ noparms,
85 /* maj */ CDEV_MAJOR,
86 /* dump */ nodump,
87 /* psize */ nopsize,
88 /* flags */ 0,
89 /* maxio */ 0,
90 /* bmaj */ -1
91};
75
76static struct logsoftc {
77 int sc_state; /* see above for possibilities */
78 struct selinfo sc_selp; /* process waiting on select call */
79 struct sigio *sc_sigio; /* information for async I/O */
80} logsoftc;
81
82int log_open; /* also used in log() */

--- 192 unchanged lines hidden ---
92
93static struct logsoftc {
94 int sc_state; /* see above for possibilities */
95 struct selinfo sc_selp; /* process waiting on select call */
96 struct sigio *sc_sigio; /* information for async I/O */
97} logsoftc;
98
99int log_open; /* also used in log() */

--- 192 unchanged lines hidden ---