Deleted Added
full compact
snp.c (126081) snp.c (126188)
1/*
2 * Copyright (c) 1995 Ugen J.S.Antsilevich
3 *
4 * Redistribution and use in source forms, with and without modification,
5 * are permitted provided that this entire comment appears intact.
6 *
7 * Redistribution in binary form may occur without any restrictions.
8 * Obviously, it would be nice if you gave credit where credit is due
9 * but requiring it would be too onerous.
10 *
11 * This software is provided ``AS IS'' without any warranties of any kind.
12 *
13 * Snoop stuff.
14 *
15 */
16
17#include <sys/cdefs.h>
1/*
2 * Copyright (c) 1995 Ugen J.S.Antsilevich
3 *
4 * Redistribution and use in source forms, with and without modification,
5 * are permitted provided that this entire comment appears intact.
6 *
7 * Redistribution in binary form may occur without any restrictions.
8 * Obviously, it would be nice if you gave credit where credit is due
9 * but requiring it would be too onerous.
10 *
11 * This software is provided ``AS IS'' without any warranties of any kind.
12 *
13 * Snoop stuff.
14 *
15 */
16
17#include <sys/cdefs.h>
18__FBSDID("$FreeBSD: head/sys/dev/snp/snp.c 126081 2004-02-21 21:32:15Z phk $");
18__FBSDID("$FreeBSD: head/sys/dev/snp/snp.c 126188 2004-02-24 04:35:44Z bde $");
19
20#include <sys/param.h>
21#include <sys/systm.h>
22#include <sys/filio.h>
23#include <sys/malloc.h>
24#include <sys/tty.h>
25#include <sys/conf.h>
26#include <sys/poll.h>

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

35static d_close_t snpclose;
36static d_read_t snpread;
37static d_write_t snpwrite;
38static d_ioctl_t snpioctl;
39static d_poll_t snppoll;
40
41static struct cdevsw snp_cdevsw = {
42 .d_version = D_VERSION,
19
20#include <sys/param.h>
21#include <sys/systm.h>
22#include <sys/filio.h>
23#include <sys/malloc.h>
24#include <sys/tty.h>
25#include <sys/conf.h>
26#include <sys/poll.h>

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

35static d_close_t snpclose;
36static d_read_t snpread;
37static d_write_t snpwrite;
38static d_ioctl_t snpioctl;
39static d_poll_t snppoll;
40
41static struct cdevsw snp_cdevsw = {
42 .d_version = D_VERSION,
43 .d_flags = D_NEEDGIANT,
43 .d_flags = D_PSEUDO | D_NEEDGIANT,
44 .d_open = snpopen,
45 .d_close = snpclose,
46 .d_read = snpread,
47 .d_write = snpwrite,
48 .d_ioctl = snpioctl,
49 .d_poll = snppoll,
50 .d_name = "snp",
44 .d_open = snpopen,
45 .d_close = snpclose,
46 .d_read = snpread,
47 .d_write = snpwrite,
48 .d_ioctl = snpioctl,
49 .d_poll = snppoll,
50 .d_name = "snp",
51 .d_flags = D_PSEUDO,
52};
53
54static struct linesw snpdisc = {
55 ttyopen, snplclose, ttread, snplwrite,
56 l_nullioctl, ttyinput, ttstart, ttymodem
57};
58
59/*

--- 597 unchanged lines hidden ---
51};
52
53static struct linesw snpdisc = {
54 ttyopen, snplclose, ttread, snplwrite,
55 l_nullioctl, ttyinput, ttstart, ttymodem
56};
57
58/*

--- 597 unchanged lines hidden ---