uipc_usrreq.c (22975) | uipc_usrreq.c (23081) |
---|---|
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$ | 34 * $Id: uipc_usrreq.c,v 1.19 1997/02/22 09:39:29 peter Exp $ |
35 */ 36 37#include <sys/param.h> 38#include <sys/queue.h> 39#include <sys/systm.h> | 35 */ 36 37#include <sys/param.h> 38#include <sys/queue.h> 39#include <sys/systm.h> |
40#include <sys/proc.h> 41#include <sys/filedesc.h> | 40#include <sys/kernel.h> |
42#include <sys/domain.h> | 41#include <sys/domain.h> |
42#include <sys/file.h> 43#include <sys/filedesc.h> 44#include <sys/mbuf.h> 45#include <sys/namei.h> 46#include <sys/proc.h> |
|
43#include <sys/protosw.h> | 47#include <sys/protosw.h> |
44#include <sys/stat.h> | |
45#include <sys/socket.h> 46#include <sys/socketvar.h> | 48#include <sys/socket.h> 49#include <sys/socketvar.h> |
47#include <sys/unpcb.h> | 50#include <sys/stat.h> 51#include <sys/sysctl.h> |
48#include <sys/un.h> | 52#include <sys/un.h> |
49#include <sys/namei.h> | 53#include <sys/unpcb.h> |
50#include <sys/vnode.h> | 54#include <sys/vnode.h> |
51#include <sys/file.h> 52#include <sys/stat.h> 53#include <sys/mbuf.h> | |
54 55/* 56 * Unix communications domain. 57 * 58 * TODO: 59 * SEQPACKET, RDM 60 * rethink name space problems 61 * need a proper out-of-band --- 291 unchanged lines hidden (view full) --- 353#endif 354static u_long unpst_sendspace = PIPSIZ; 355static u_long unpst_recvspace = PIPSIZ; 356static u_long unpdg_sendspace = 2*1024; /* really max datagram size */ 357static u_long unpdg_recvspace = 4*1024; 358 359static int unp_rights; /* file descriptors in flight */ 360 | 55 56/* 57 * Unix communications domain. 58 * 59 * TODO: 60 * SEQPACKET, RDM 61 * rethink name space problems 62 * need a proper out-of-band --- 291 unchanged lines hidden (view full) --- 354#endif 355static u_long unpst_sendspace = PIPSIZ; 356static u_long unpst_recvspace = PIPSIZ; 357static u_long unpdg_sendspace = 2*1024; /* really max datagram size */ 358static u_long unpdg_recvspace = 4*1024; 359 360static int unp_rights; /* file descriptors in flight */ 361 |
362SYSCTL_INT(_net_local_stream, OID_AUTO, sendspace, CTLFLAG_RW, 363 &unpst_sendspace, 0, ""); 364SYSCTL_INT(_net_local_stream, OID_AUTO, recvspace, CTLFLAG_RW, 365 &unpst_recvspace, 0, ""); 366SYSCTL_INT(_net_local_dgram, OID_AUTO, maxdgram, CTLFLAG_RW, 367 &unpdg_sendspace, 0, ""); 368SYSCTL_INT(_net_local_dgram, OID_AUTO, recvspace, CTLFLAG_RW, 369 &unpdg_recvspace, 0, ""); 370SYSCTL_INT(_net_local, OID_AUTO, inflight, CTLFLAG_RD, &unp_rights, 0, ""); 371 |
|
361static int 362unp_attach(so) 363 struct socket *so; 364{ 365 register struct mbuf *m; 366 register struct unpcb *unp; 367 int error; 368 --- 585 unchanged lines hidden --- | 372static int 373unp_attach(so) 374 struct socket *so; 375{ 376 register struct mbuf *m; 377 register struct unpcb *unp; 378 int error; 379 --- 585 unchanged lines hidden --- |