sys_socket.c (62425) | sys_socket.c (72521) |
---|---|
1/* 2 * Copyright (c) 1982, 1986, 1990, 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 * @(#)sys_socket.c 8.1 (Berkeley) 6/10/93 | 1/* 2 * Copyright (c) 1982, 1986, 1990, 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 * @(#)sys_socket.c 8.1 (Berkeley) 6/10/93 |
34 * $FreeBSD: head/sys/kern/sys_socket.c 62425 2000-07-02 23:56:45Z chris $ | 34 * $FreeBSD: head/sys/kern/sys_socket.c 72521 2001-02-15 16:34:11Z jlemon $ |
35 */ 36 37#include <sys/param.h> 38#include <sys/systm.h> 39#include <sys/file.h> 40#include <sys/protosw.h> 41#include <sys/socket.h> 42#include <sys/socketvar.h> 43#include <sys/filio.h> /* XXX */ 44#include <sys/sockio.h> 45#include <sys/stat.h> 46#include <sys/uio.h> 47#include <sys/filedesc.h> 48#include <sys/ucred.h> 49 50#include <net/if.h> 51#include <net/route.h> 52 | 35 */ 36 37#include <sys/param.h> 38#include <sys/systm.h> 39#include <sys/file.h> 40#include <sys/protosw.h> 41#include <sys/socket.h> 42#include <sys/socketvar.h> 43#include <sys/filio.h> /* XXX */ 44#include <sys/sockio.h> 45#include <sys/stat.h> 46#include <sys/uio.h> 47#include <sys/filedesc.h> 48#include <sys/ucred.h> 49 50#include <net/if.h> 51#include <net/route.h> 52 |
53struct fileops socketops = 54 { soo_read, soo_write, soo_ioctl, soo_poll, soo_stat, soo_close }; | 53struct fileops socketops = { 54 soo_read, soo_write, soo_ioctl, soo_poll, sokqfilter, 55 soo_stat, soo_close 56}; |
55 56/* ARGSUSED */ 57int 58soo_read(fp, uio, cred, flags, p) 59 struct file *fp; 60 struct uio *uio; 61 struct ucred *cred; 62 struct proc *p; --- 134 unchanged lines hidden --- | 57 58/* ARGSUSED */ 59int 60soo_read(fp, uio, cred, flags, p) 61 struct file *fp; 62 struct uio *uio; 63 struct ucred *cred; 64 struct proc *p; --- 134 unchanged lines hidden --- |