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.5 1995/05/30 08:06:22 rgrimes Exp $ |
35 */ 36 37#include <sys/param.h> 38#include <sys/systm.h> |
39#include <sys/kernel.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> |
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 |
61u_long sb_max = SB_MAX; /* XXX should be static */ 62SYSCTL_INT(_kern, KERN_MAXSOCKBUF, maxsockbuf, CTLFLAG_RW, &sb_max, 0, "") |
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 --- |