1/*
2 * Copyright (c) 1998 Mark Newton
3 * Copyright (c) 1994 Christos Zoulas
4 * Copyright (c) 1997 Todd Vierling
5 * All rights reserved.
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions
--- 16 unchanged lines hidden (view full) ---
25 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
26 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
27 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28 *
29 * Stolen from NetBSD /sys/compat/svr4/svr4_net.c. Pseudo-device driver
30 * skeleton produced from /usr/share/examples/drivers/make_pseudo_driver.sh
31 * in 3.0-980524-SNAP then hacked a bit (but probably not enough :-).
32 *
33 * $FreeBSD: head/sys/dev/streams/streams.c 52114 1999-10-10 22:57:40Z newton $
34 */
35
36#include <sys/param.h>
37#include <sys/systm.h>
38#include <sys/kernel.h> /* SYSINIT stuff */
39#include <sys/conf.h> /* cdevsw stuff */
40#include <sys/malloc.h> /* malloc region definitions */
41#include <sys/file.h>
--- 52 unchanged lines hidden (view full) ---
94 dev_unix_stream = 39,
95 dev_unix_ord_stream = 40
96};
97
98dev_t dt_ptm, dt_arp, dt_icmp, dt_ip, dt_tcp, dt_udp, dt_rawip,
99 dt_unix_dgram, dt_unix_stream, dt_unix_ord_stream;
100
101static struct fileops svr4_netops = {
102 soo_read, soo_write, soo_ioctl, soo_poll, svr4_soo_close
103};
104
105#define CDEV_MAJOR 103
106static struct cdevsw streams_cdevsw = {
107 /* open */ streamsopen,
108 /* close */ noclose,
109 /* read */ noread,
110 /* write */ nowrite,
--- 286 unchanged lines hidden ---
2 * Copyright (c) 1998 Mark Newton
3 * Copyright (c) 1994 Christos Zoulas
4 * Copyright (c) 1997 Todd Vierling
5 * All rights reserved.
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions
--- 16 unchanged lines hidden (view full) ---
25 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
26 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
27 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28 *
29 * Stolen from NetBSD /sys/compat/svr4/svr4_net.c. Pseudo-device driver
30 * skeleton produced from /usr/share/examples/drivers/make_pseudo_driver.sh
31 * in 3.0-980524-SNAP then hacked a bit (but probably not enough :-).
32 *
33 * $FreeBSD: head/sys/dev/streams/streams.c 52114 1999-10-10 22:57:40Z newton $
34 */
35
36#include <sys/param.h>
37#include <sys/systm.h>
38#include <sys/kernel.h> /* SYSINIT stuff */
39#include <sys/conf.h> /* cdevsw stuff */
40#include <sys/malloc.h> /* malloc region definitions */
41#include <sys/file.h>
--- 52 unchanged lines hidden (view full) ---
94 dev_unix_stream = 39,
95 dev_unix_ord_stream = 40
96};
97
98dev_t dt_ptm, dt_arp, dt_icmp, dt_ip, dt_tcp, dt_udp, dt_rawip,
99 dt_unix_dgram, dt_unix_stream, dt_unix_ord_stream;
100
101static struct fileops svr4_netops = {
102 soo_read, soo_write, soo_ioctl, soo_poll, svr4_soo_close
103};
104
105#define CDEV_MAJOR 103
106static struct cdevsw streams_cdevsw = {
107 /* open */ streamsopen,
108 /* close */ noclose,
109 /* read */ noread,
110 /* write */ nowrite,
--- 286 unchanged lines hidden ---