Deleted Added
full compact
uipc_sockbuf.c (8876) uipc_sockbuf.c (12041)
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_socket2.c 8.1 (Berkeley) 6/10/93
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_socket2.c 8.1 (Berkeley) 6/10/93
34 * $Id: uipc_socket2.c,v 1.4 1994/10/02 17:35:33 phk Exp $
34 * $Id: uipc_socket2.c,v 1.5 1995/05/30 08:06:22 rgrimes Exp $
35 */
36
37#include <sys/param.h>
38#include <sys/systm.h>
35 */
36
37#include <sys/param.h>
38#include <sys/systm.h>
39#include <sys/kernel.h>
39#include <sys/proc.h>
40#include <sys/file.h>
41#include <sys/buf.h>
42#include <sys/malloc.h>
43#include <sys/mbuf.h>
44#include <sys/protosw.h>
45#include <sys/stat.h>
46#include <sys/socket.h>
47#include <sys/socketvar.h>
48#include <sys/signalvar.h>
40#include <sys/proc.h>
41#include <sys/file.h>
42#include <sys/buf.h>
43#include <sys/malloc.h>
44#include <sys/mbuf.h>
45#include <sys/protosw.h>
46#include <sys/stat.h>
47#include <sys/socket.h>
48#include <sys/socketvar.h>
49#include <sys/signalvar.h>
50#include <sys/sysctl.h>
49
50/*
51 * Primitive routines for operating on sockets and socket buffers
52 */
53
54/* strings for sleep message: */
55char netio[] = "netio";
56char netcon[] = "netcon";
57char netcls[] = "netcls";
58
51
52/*
53 * Primitive routines for operating on sockets and socket buffers
54 */
55
56/* strings for sleep message: */
57char netio[] = "netio";
58char netcon[] = "netcon";
59char netcls[] = "netcls";
60
59u_long sb_max = SB_MAX; /* patchable */
61u_long sb_max = SB_MAX; /* XXX should be static */
62SYSCTL_INT(_kern, KERN_MAXSOCKBUF, maxsockbuf, CTLFLAG_RW, &sb_max, 0, "")
60
61/*
62 * Procedures to manipulate state flags of socket
63 * and do appropriate wakeups. Normal sequence from the
64 * active (originating) side is that soisconnecting() is
65 * called during processing of connect() call,
66 * resulting in an eventual call to soisconnected() if/when the
67 * connection is established. When the connection is torn down

--- 723 unchanged lines hidden ---
63
64/*
65 * Procedures to manipulate state flags of socket
66 * and do appropriate wakeups. Normal sequence from the
67 * active (originating) side is that soisconnecting() is
68 * called during processing of connect() call,
69 * resulting in an eventual call to soisconnected() if/when the
70 * connection is established. When the connection is torn down

--- 723 unchanged lines hidden ---