streams.c (130585) | streams.c (132199) |
---|---|
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 --- 19 unchanged lines hidden (view full) --- 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 */ 34 35#include <sys/cdefs.h> | 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 --- 19 unchanged lines hidden (view full) --- 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 */ 34 35#include <sys/cdefs.h> |
36__FBSDID("$FreeBSD: head/sys/dev/streams/streams.c 130585 2004-06-16 09:47:26Z phk $"); | 36__FBSDID("$FreeBSD: head/sys/dev/streams/streams.c 132199 2004-07-15 08:26:07Z phk $"); |
37 38#include <sys/param.h> 39#include <sys/systm.h> 40#include <sys/kernel.h> /* SYSINIT stuff */ 41#include <sys/conf.h> /* cdevsw stuff */ 42#include <sys/malloc.h> /* malloc region definitions */ 43#include <sys/file.h> 44#include <sys/filedesc.h> --- 115 unchanged lines hidden (view full) --- 160 destroy_dev(dt_udp); 161 destroy_dev(dt_rawip); 162 destroy_dev(dt_unix_dgram); 163 destroy_dev(dt_unix_stream); 164 destroy_dev(dt_unix_ord_stream); 165 166 return 0; 167 default: | 37 38#include <sys/param.h> 39#include <sys/systm.h> 40#include <sys/kernel.h> /* SYSINIT stuff */ 41#include <sys/conf.h> /* cdevsw stuff */ 42#include <sys/malloc.h> /* malloc region definitions */ 43#include <sys/file.h> 44#include <sys/filedesc.h> --- 115 unchanged lines hidden (view full) --- 160 destroy_dev(dt_udp); 161 destroy_dev(dt_rawip); 162 destroy_dev(dt_unix_dgram); 163 destroy_dev(dt_unix_stream); 164 destroy_dev(dt_unix_ord_stream); 165 166 return 0; 167 default: |
168 return EOPNOTSUPP; |
|
168 break; 169 } 170 return 0; 171} 172 173static moduledata_t streams_mod = { 174 "streams", 175 streams_modevent, --- 250 unchanged lines hidden --- | 169 break; 170 } 171 return 0; 172} 173 174static moduledata_t streams_mod = { 175 "streams", 176 streams_modevent, --- 250 unchanged lines hidden --- |