1/* 2 * Copyright (c) 1982, 1986, 1988, 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 * @(#)uipc_socket.c 8.3 (Berkeley) 4/15/94 |
34 * $FreeBSD: head/sys/kern/uipc_socket.c 108235 2002-12-23 21:37:28Z phk $ |
35 */ 36 37#include "opt_inet.h" 38#include "opt_mac.h" 39#include "opt_zero.h" 40 41#include <sys/param.h> 42#include <sys/systm.h> --- 1691 unchanged lines hidden (view full) --- 1734 } 1735 } 1736 1737 splx(s); 1738 return (revents); 1739} 1740 1741int |
1742soo_kqfilter(struct file *fp, struct knote *kn) |
1743{ 1744 struct socket *so = (struct socket *)kn->kn_fp->f_data; 1745 struct sockbuf *sb; 1746 int s; 1747 1748 switch (kn->kn_filter) { 1749 case EVFILT_READ: 1750 if (so->so_options & SO_ACCEPTCONN) --- 105 unchanged lines hidden --- |