uipc_usrreq.c (30354) | uipc_usrreq.c (31016) |
---|---|
1/* 2 * Copyright (c) 1982, 1986, 1989, 1991, 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 * From: @(#)uipc_usrreq.c 8.3 (Berkeley) 1/4/94 | 1/* 2 * Copyright (c) 1982, 1986, 1989, 1991, 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 * From: @(#)uipc_usrreq.c 8.3 (Berkeley) 1/4/94 |
34 * $Id: uipc_usrreq.c,v 1.27 1997/09/14 02:52:18 peter Exp $ | 34 * $Id: uipc_usrreq.c,v 1.28 1997/10/12 20:24:18 phk Exp $ |
35 */ 36 37#include <sys/param.h> 38#include <sys/systm.h> 39#include <sys/kernel.h> 40#include <sys/domain.h> 41#include <sys/fcntl.h> 42#include <sys/file.h> --- 402 unchanged lines hidden (view full) --- 445SYSCTL_INT(_net_local_dgram, OID_AUTO, recvspace, CTLFLAG_RW, 446 &unpdg_recvspace, 0, ""); 447SYSCTL_INT(_net_local, OID_AUTO, inflight, CTLFLAG_RD, &unp_rights, 0, ""); 448 449static int 450unp_attach(so) 451 struct socket *so; 452{ | 35 */ 36 37#include <sys/param.h> 38#include <sys/systm.h> 39#include <sys/kernel.h> 40#include <sys/domain.h> 41#include <sys/fcntl.h> 42#include <sys/file.h> --- 402 unchanged lines hidden (view full) --- 445SYSCTL_INT(_net_local_dgram, OID_AUTO, recvspace, CTLFLAG_RW, 446 &unpdg_recvspace, 0, ""); 447SYSCTL_INT(_net_local, OID_AUTO, inflight, CTLFLAG_RD, &unp_rights, 0, ""); 448 449static int 450unp_attach(so) 451 struct socket *so; 452{ |
453 register struct mbuf *m; | |
454 register struct unpcb *unp; 455 int error; 456 457 if (so->so_snd.sb_hiwat == 0 || so->so_rcv.sb_hiwat == 0) { 458 switch (so->so_type) { 459 460 case SOCK_STREAM: 461 error = soreserve(so, unpst_sendspace, unpst_recvspace); --- 608 unchanged lines hidden --- | 453 register struct unpcb *unp; 454 int error; 455 456 if (so->so_snd.sb_hiwat == 0 || so->so_rcv.sb_hiwat == 0) { 457 switch (so->so_type) { 458 459 case SOCK_STREAM: 460 error = soreserve(so, unpst_sendspace, unpst_recvspace); --- 608 unchanged lines hidden --- |