sys_socket.c (137671) | sys_socket.c (137805) |
---|---|
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 --- 16 unchanged lines hidden (view full) --- 25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 27 * SUCH DAMAGE. 28 * 29 * @(#)sys_socket.c 8.1 (Berkeley) 6/10/93 30 */ 31 32#include <sys/cdefs.h> | 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 --- 16 unchanged lines hidden (view full) --- 25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 27 * SUCH DAMAGE. 28 * 29 * @(#)sys_socket.c 8.1 (Berkeley) 6/10/93 30 */ 31 32#include <sys/cdefs.h> |
33__FBSDID("$FreeBSD: head/sys/kern/sys_socket.c 137671 2004-11-13 17:21:26Z phk $"); | 33__FBSDID("$FreeBSD: head/sys/kern/sys_socket.c 137805 2004-11-17 08:01:10Z phk $"); |
34 35#include "opt_mac.h" 36 37#include <sys/param.h> 38#include <sys/systm.h> 39#include <sys/file.h> 40#include <sys/filedesc.h> 41#include <sys/mac.h> --- 176 unchanged lines hidden (view full) --- 218 struct file *fp; 219 int events; 220 struct ucred *active_cred; 221 struct thread *td; 222{ 223 struct socket *so = fp->f_data; 224 int error; 225 | 34 35#include "opt_mac.h" 36 37#include <sys/param.h> 38#include <sys/systm.h> 39#include <sys/file.h> 40#include <sys/filedesc.h> 41#include <sys/mac.h> --- 176 unchanged lines hidden (view full) --- 218 struct file *fp; 219 int events; 220 struct ucred *active_cred; 221 struct thread *td; 222{ 223 struct socket *so = fp->f_data; 224 int error; 225 |
226 NET_LOCK_GIANT(); |
|
226 error = (so->so_proto->pr_usrreqs->pru_sopoll) 227 (so, events, fp->f_cred, td); | 227 error = (so->so_proto->pr_usrreqs->pru_sopoll) 228 (so, events, fp->f_cred, td); |
229 NET_UNLOCK_GIANT(); |
|
228 229 return (error); 230} 231 232int 233soo_stat(fp, ub, active_cred, td) 234 struct file *fp; 235 struct stat *ub; --- 55 unchanged lines hidden --- | 230 231 return (error); 232} 233 234int 235soo_stat(fp, ub, active_cred, td) 236 struct file *fp; 237 struct stat *ub; --- 55 unchanged lines hidden --- |