summaryrefslogtreecommitdiffstats
path: root/sys/kern/uipc_socket.c
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>1997-10-12 20:26:33 +0000
committerphk <phk@FreeBSD.org>1997-10-12 20:26:33 +0000
commit36e7a51ea1dedf0fc860ff3106aee1db1ab3b1f5 (patch)
treee21c1d8330cbd5fba838afec549f8e4f0f66e451 /sys/kern/uipc_socket.c
parent8ae70d2227594ff4a283453ca3cc3031eb78c14b (diff)
downloadFreeBSD-src-36e7a51ea1dedf0fc860ff3106aee1db1ab3b1f5.zip
FreeBSD-src-36e7a51ea1dedf0fc860ff3106aee1db1ab3b1f5.tar.gz
Last major round (Unless Bruce thinks of somthing :-) of malloc changes.
Distribute all but the most fundamental malloc types. This time I also remembered the trick to making things static: Put "static" in front of them. A couple of finer points by: bde
Diffstat (limited to 'sys/kern/uipc_socket.c')
-rw-r--r--sys/kern/uipc_socket.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/kern/uipc_socket.c b/sys/kern/uipc_socket.c
index 998e3f5..3aa73ed 100644
--- a/sys/kern/uipc_socket.c
+++ b/sys/kern/uipc_socket.c
@@ -31,7 +31,7 @@
* SUCH DAMAGE.
*
* @(#)uipc_socket.c 8.3 (Berkeley) 4/15/94
- * $Id: uipc_socket.c,v 1.31 1997/09/14 02:34:14 peter Exp $
+ * $Id: uipc_socket.c,v 1.32 1997/10/04 18:21:15 phk Exp $
*/
#include <sys/param.h>
@@ -52,6 +52,10 @@
#include <machine/limits.h>
+MALLOC_DEFINE(M_SOCKET, "socket", "socket structure");
+MALLOC_DEFINE(M_SONAME, "soname", "socket name");
+MALLOC_DEFINE(M_PCB, "pcb", "protocol control block");
+
static int somaxconn = SOMAXCONN;
SYSCTL_INT(_kern_ipc, KIPC_SOMAXCONN, somaxconn, CTLFLAG_RW, &somaxconn,
0, "");
OpenPOWER on IntegriCloud