Added used #include - don't depend on <sys/mbuf.h> including

<sys/malloc.h> (unless we only use the bogusly shared M*WAIT flags).
This commit is contained in:
Bruce Evans 1997-09-02 01:19:47 +00:00
parent 85a3d7d441
commit 4d1d4912ae
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=29024
43 changed files with 79 additions and 36 deletions

View File

@ -28,7 +28,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* $Id: if_ar.c,v 1.14 1997/02/22 09:36:15 peter Exp $
* $Id: if_ar.c,v 1.15 1997/05/19 22:02:47 joerg Exp $
*/
/*
@ -53,6 +53,7 @@
#include <sys/param.h>
#include <sys/systm.h>
#include <sys/malloc.h>
#include <sys/mbuf.h>
#include <sys/sockio.h>
#include <sys/socket.h>

View File

@ -28,7 +28,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* $Id: if_ar.c,v 1.14 1997/02/22 09:36:15 peter Exp $
* $Id: if_ar.c,v 1.15 1997/05/19 22:02:47 joerg Exp $
*/
/*
@ -53,6 +53,7 @@
#include <sys/param.h>
#include <sys/systm.h>
#include <sys/malloc.h>
#include <sys/mbuf.h>
#include <sys/sockio.h>
#include <sys/socket.h>

View File

@ -24,7 +24,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* $Id: if_ed.c,v 1.116 1997/03/24 11:32:39 bde Exp $
* $Id: if_ed.c,v 1.117 1997/07/20 14:09:57 bde Exp $
*/
/*
@ -44,6 +44,7 @@
#include <sys/systm.h>
#include <sys/conf.h>
#include <sys/sockio.h>
#include <sys/malloc.h>
#include <sys/mbuf.h>
#include <sys/socket.h>
#include <sys/syslog.h>

View File

@ -62,6 +62,7 @@
*/
#include <sys/devconf.h>
#endif
#include <sys/malloc.h>
#include <sys/mbuf.h>
#include <sys/socket.h>
#include <sys/socketvar.h>

View File

@ -38,7 +38,7 @@
*/
/*
* $Id: if_ep.c,v 1.58 1997/03/24 11:32:45 bde Exp $
* $Id: if_ep.c,v 1.59 1997/07/20 14:09:58 bde Exp $
*
* Promiscuous mode added and interrupt logic slightly changed
* to reduce the number of adapter failures. Transceiver select
@ -66,6 +66,7 @@
#include <sys/systm.h>
#include <sys/conf.h>
#endif
#include <sys/malloc.h>
#include <sys/mbuf.h>
#include <sys/socket.h>
#include <sys/sockio.h>

View File

@ -47,7 +47,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* $Id: if_ie.c,v 1.43 1997/06/27 19:36:27 gibbs Exp $
* $Id: if_ie.c,v 1.44 1997/07/20 14:09:59 bde Exp $
*/
/*
@ -112,6 +112,7 @@ iomem and and with 0xffff.
#include <sys/param.h>
#include <sys/systm.h>
#include <sys/kernel.h>
#include <sys/malloc.h>
#include <sys/conf.h>
#include <sys/mbuf.h>
#include <sys/socket.h>

View File

@ -27,7 +27,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* $Id: if_sr.c,v 1.7 1997/05/19 22:02:49 joerg Exp $
* $Id: if_sr.c,v 1.8 1997/07/20 14:10:01 bde Exp $
*/
/*
@ -58,6 +58,7 @@
#include <sys/param.h>
#include <sys/systm.h>
#include <sys/kernel.h>
#include <sys/malloc.h>
#include <sys/mbuf.h>
#include <sys/sockio.h>
#include <sys/socket.h>

View File

@ -27,7 +27,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* $Id: if_sr.c,v 1.7 1997/05/19 22:02:49 joerg Exp $
* $Id: if_sr.c,v 1.8 1997/07/20 14:10:01 bde Exp $
*/
/*
@ -58,6 +58,7 @@
#include <sys/param.h>
#include <sys/systm.h>
#include <sys/kernel.h>
#include <sys/malloc.h>
#include <sys/mbuf.h>
#include <sys/sockio.h>
#include <sys/socket.h>

View File

@ -28,7 +28,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* $Id: if_ar.c,v 1.14 1997/02/22 09:36:15 peter Exp $
* $Id: if_ar.c,v 1.15 1997/05/19 22:02:47 joerg Exp $
*/
/*
@ -53,6 +53,7 @@
#include <sys/param.h>
#include <sys/systm.h>
#include <sys/malloc.h>
#include <sys/mbuf.h>
#include <sys/sockio.h>
#include <sys/socket.h>

View File

@ -24,6 +24,7 @@
#include <sys/param.h>
#include <sys/systm.h>
#include <sys/kernel.h>
#include <sys/malloc.h>
#include <sys/mbuf.h>
#include <sys/sockio.h>
#include <sys/socket.h>

View File

@ -24,7 +24,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* $Id: if_ed.c,v 1.116 1997/03/24 11:32:39 bde Exp $
* $Id: if_ed.c,v 1.117 1997/07/20 14:09:57 bde Exp $
*/
/*
@ -44,6 +44,7 @@
#include <sys/systm.h>
#include <sys/conf.h>
#include <sys/sockio.h>
#include <sys/malloc.h>
#include <sys/mbuf.h>
#include <sys/socket.h>
#include <sys/syslog.h>

View File

@ -27,7 +27,7 @@
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* $Id: if_eg.c,v 1.23 1997/03/24 11:32:41 bde Exp $
* $Id: if_eg.c,v 1.24 1997/07/20 14:09:57 bde Exp $
*
* Support for 3Com 3c505 Etherlink+ card.
*/
@ -43,6 +43,7 @@
#include <sys/systm.h>
#include <sys/conf.h>
#include <sys/sockio.h>
#include <sys/malloc.h>
#include <sys/mbuf.h>
#include <sys/socket.h>
#include <sys/syslog.h>

View File

@ -38,7 +38,7 @@
*/
/*
* $Id: if_ep.c,v 1.58 1997/03/24 11:32:45 bde Exp $
* $Id: if_ep.c,v 1.59 1997/07/20 14:09:58 bde Exp $
*
* Promiscuous mode added and interrupt logic slightly changed
* to reduce the number of adapter failures. Transceiver select
@ -66,6 +66,7 @@
#include <sys/systm.h>
#include <sys/conf.h>
#endif
#include <sys/malloc.h>
#include <sys/mbuf.h>
#include <sys/socket.h>
#include <sys/sockio.h>

View File

@ -47,7 +47,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* $Id: if_ie.c,v 1.43 1997/06/27 19:36:27 gibbs Exp $
* $Id: if_ie.c,v 1.44 1997/07/20 14:09:59 bde Exp $
*/
/*
@ -112,6 +112,7 @@ iomem and and with 0xffff.
#include <sys/param.h>
#include <sys/systm.h>
#include <sys/kernel.h>
#include <sys/malloc.h>
#include <sys/conf.h>
#include <sys/mbuf.h>
#include <sys/socket.h>

View File

@ -27,7 +27,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* $Id: if_sr.c,v 1.7 1997/05/19 22:02:49 joerg Exp $
* $Id: if_sr.c,v 1.8 1997/07/20 14:10:01 bde Exp $
*/
/*
@ -58,6 +58,7 @@
#include <sys/param.h>
#include <sys/systm.h>
#include <sys/kernel.h>
#include <sys/malloc.h>
#include <sys/mbuf.h>
#include <sys/sockio.h>
#include <sys/socket.h>

View File

@ -46,7 +46,7 @@
* SUCH DAMAGE.
*
* from: unknown origin, 386BSD 0.1
* $Id: lpt.c,v 1.60 1997/04/20 15:36:03 bde Exp $
* $Id: lpt.c,v 1.61 1997/07/20 14:10:05 bde Exp $
*/
/*
@ -126,6 +126,7 @@
#include <i386/isa/lptreg.h>
#ifdef INET
#include <sys/malloc.h>
#include <sys/mbuf.h>
#include <sys/socket.h>
#include <sys/sockio.h>

View File

@ -31,7 +31,7 @@
* SUCH DAMAGE.
*
* From: @(#)uipc_usrreq.c 8.3 (Berkeley) 1/4/94
* $Id: uipc_usrreq.c,v 1.23 1997/04/27 20:00:46 wollman Exp $
* $Id: uipc_usrreq.c,v 1.24 1997/08/16 19:15:06 wollman Exp $
*/
#include <sys/param.h>
@ -42,6 +42,7 @@
#include <sys/fcntl.h>
#include <sys/file.h>
#include <sys/filedesc.h>
#include <sys/malloc.h>
#include <sys/mbuf.h>
#include <sys/namei.h>
#include <sys/proc.h>

View File

@ -37,7 +37,7 @@
*
* @(#)bpf.c 8.2 (Berkeley) 3/28/94
*
* $Id: bpf.c,v 1.30 1997/03/23 03:37:14 bde Exp $
* $Id: bpf.c,v 1.31 1997/03/24 12:12:35 bde Exp $
*/
#include "bpfilter.h"
@ -53,6 +53,7 @@
#include <sys/param.h>
#include <sys/systm.h>
#include <sys/conf.h>
#include <sys/malloc.h>
#include <sys/mbuf.h>
#include <sys/buf.h>
#include <sys/time.h>

View File

@ -40,12 +40,13 @@
/*
* This version is for use with mbufs on BSD-derived systems.
*
* $Id: bsd_comp.c,v 1.7 1997/08/19 14:10:44 peter Exp $
* $Id: bsd_comp.c,v 1.8 1997/08/19 17:07:07 peter Exp $
*/
#include <sys/param.h>
#include <sys/types.h>
#include <sys/systm.h>
#include <sys/malloc.h>
#include <sys/mbuf.h>
#include <sys/socket.h>
#include <net/if.h>

View File

@ -31,11 +31,12 @@
* SUCH DAMAGE.
*
* @(#)if.c 8.3 (Berkeley) 1/4/94
* $Id: if.c,v 1.50 1997/08/22 22:47:27 julian Exp $
* $Id: if.c,v 1.51 1997/08/28 01:17:07 julian Exp $
*/
#include <sys/param.h>
#include <sys/queue.h>
#include <sys/malloc.h>
#include <sys/mbuf.h>
#include <sys/systm.h>
#include <sys/proc.h>

View File

@ -17,7 +17,7 @@
*
* From: Version 1.9, Wed Oct 4 18:58:15 MSK 1995
*
* $Id: if_spppsubr.c,v 1.24 1997/08/10 14:28:16 joerg Exp $
* $Id: if_spppsubr.c,v 1.25 1997/08/12 05:22:54 kjc Exp $
*/
#include <sys/param.h>
@ -26,6 +26,7 @@
#include <sys/sockio.h>
#include <sys/socket.h>
#include <sys/syslog.h>
#include <sys/malloc.h>
#include <sys/mbuf.h>
#include <net/if.h>

View File

@ -1,4 +1,4 @@
/* $Id: ppp_deflate.c,v 1.1.2.1 1997/07/01 20:44:10 peter Exp $ */
/* $Id: ppp_deflate.c,v 1.3 1997/08/19 14:10:46 peter Exp $ */
/*
* ppp_deflate.c - interface the zlib procedures for Deflate compression
@ -32,6 +32,7 @@
#include <sys/param.h>
#include <sys/types.h>
#include <sys/systm.h>
#include <sys/malloc.h>
#include <sys/mbuf.h>
#include <net/ppp_defs.h>
#include <net/zlib.h>

View File

@ -31,12 +31,13 @@
* SUCH DAMAGE.
*
* @(#)raw_cb.c 8.1 (Berkeley) 6/10/93
* $Id: raw_cb.c,v 1.11 1997/04/14 18:23:22 phk Exp $
* $Id: raw_cb.c,v 1.12 1997/04/27 20:00:58 wollman Exp $
*/
#include <sys/param.h>
#include <sys/queue.h>
#include <sys/systm.h>
#include <sys/malloc.h>
#include <sys/mbuf.h>
#include <sys/socket.h>
#include <sys/socketvar.h>

View File

@ -31,7 +31,7 @@
* SUCH DAMAGE.
*
* @(#)route.c 8.2 (Berkeley) 11/15/93
* $Id: route.c,v 1.41 1997/03/05 08:01:28 julian Exp $
* $Id: route.c,v 1.42 1997/03/24 11:24:47 bde Exp $
*/
#include "opt_mrouting.h"
@ -41,6 +41,7 @@
#include <sys/systm.h>
#include <sys/kernel.h>
#include <sys/proc.h>
#include <sys/malloc.h>
#include <sys/mbuf.h>
#include <sys/socket.h>
#include <sys/socketvar.h>

View File

@ -31,7 +31,7 @@
* SUCH DAMAGE.
*
* @(#)rtsock.c 8.5 (Berkeley) 11/2/94
* $Id: rtsock.c,v 1.31 1997/07/18 11:44:24 julian Exp $
* $Id: rtsock.c,v 1.32 1997/08/16 19:15:32 wollman Exp $
*/
@ -41,6 +41,7 @@
#include <sys/kernel.h>
#include <sys/sysctl.h>
#include <sys/proc.h>
#include <sys/malloc.h>
#include <sys/mbuf.h>
#include <sys/socket.h>
#include <sys/socketvar.h>

View File

@ -9,6 +9,7 @@
#include <sys/types.h>
#include <sys/errno.h>
#include <sys/sockio.h>
#include <sys/malloc.h>
#include <sys/mbuf.h>
#include <sys/kernel.h>
#include <sys/socket.h>

View File

@ -6,6 +6,7 @@
#include <sys/param.h>
#include <sys/systm.h>
#include <sys/proc.h>
#include <sys/malloc.h>
#include <sys/mbuf.h>
#include <sys/socket.h>
#include <sys/socketvar.h>

View File

@ -6,6 +6,7 @@
#include <sys/param.h>
#include <sys/systm.h>
#include <sys/proc.h>
#include <sys/malloc.h>
#include <sys/mbuf.h>
#include <sys/socket.h>
#include <sys/socketvar.h>

View File

@ -35,7 +35,7 @@
* SUCH DAMAGE.
*
* @(#)igmp.c 8.1 (Berkeley) 7/19/93
* $Id$
* $Id: igmp.c,v 1.21 1997/02/22 09:41:26 peter Exp $
*/
/*
@ -51,6 +51,7 @@
#include <sys/param.h>
#include <sys/systm.h>
#include <sys/malloc.h>
#include <sys/mbuf.h>
#include <sys/socket.h>
#include <sys/protosw.h>

View File

@ -33,11 +33,12 @@
*
* @(#)ipx_pcb.c
*
* $Id: ipx_pcb.c,v 1.10 1997/06/26 19:35:53 jhay Exp $
* $Id: ipx_pcb.c,v 1.11 1997/08/16 19:15:44 wollman Exp $
*/
#include <sys/param.h>
#include <sys/systm.h>
#include <sys/malloc.h>
#include <sys/mbuf.h>
#include <sys/proc.h>
#include <sys/socket.h>

View File

@ -33,11 +33,12 @@
*
* @(#)spx_usrreq.h
*
* $Id: spx_usrreq.c,v 1.14 1997/06/26 19:36:02 jhay Exp $
* $Id: spx_usrreq.c,v 1.15 1997/08/16 19:15:47 wollman Exp $
*/
#include <sys/param.h>
#include <sys/systm.h>
#include <sys/malloc.h>
#include <sys/mbuf.h>
#include <sys/proc.h>
#include <sys/protosw.h>

View File

@ -47,6 +47,7 @@
#endif
#include <sys/proc.h>
#include <sys/protosw.h>
#include <sys/malloc.h>
#include <sys/mbuf.h>
#include <sys/socket.h>
#include <sys/socketvar.h>

View File

@ -1,5 +1,5 @@
/* $NetBSD: krpc_subr.c,v 1.12.4.1 1996/06/07 00:52:26 cgd Exp $ */
/* $Id: krpc_subr.c,v 1.3 1997/06/12 14:03:16 tegge Exp $ */
/* $Id: krpc_subr.c,v 1.4 1997/08/16 19:15:53 wollman Exp $ */
/*
* Copyright (c) 1995 Gordon Ross, Adam Glass
@ -49,6 +49,7 @@
#include <sys/sockio.h>
#include <sys/proc.h>
#include <sys/mount.h>
#include <sys/malloc.h>
#include <sys/mbuf.h>
#include <sys/reboot.h>
#include <sys/socket.h>

View File

@ -34,7 +34,7 @@
* SUCH DAMAGE.
*
* @(#)nfs_nqlease.c 8.9 (Berkeley) 5/20/95
* $Id: nfs_nqlease.c,v 1.26 1997/07/16 09:06:27 dfr Exp $
* $Id: nfs_nqlease.c,v 1.27 1997/08/16 19:15:55 wollman Exp $
*/
@ -57,6 +57,7 @@
#include <sys/kernel.h>
#include <sys/proc.h>
#include <sys/systm.h>
#include <sys/malloc.h>
#include <sys/mbuf.h>
#include <sys/socket.h>
#include <sys/socketvar.h>

View File

@ -34,7 +34,7 @@
* SUCH DAMAGE.
*
* @(#)nfs_serv.c 8.3 (Berkeley) 1/12/94
* $Id: nfs_serv.c,v 1.46 1997/07/22 15:35:15 dfr Exp $
* $Id: nfs_serv.c,v 1.47 1997/08/16 19:15:56 wollman Exp $
*/
/*
@ -66,6 +66,7 @@
#include <sys/mount.h>
#include <sys/socket.h>
#include <sys/socketvar.h>
#include <sys/malloc.h>
#include <sys/mbuf.h>
#include <sys/dirent.h>
#include <sys/stat.h>

View File

@ -34,7 +34,7 @@
* SUCH DAMAGE.
*
* @(#)nfs_socket.c 8.5 (Berkeley) 3/30/95
* $Id: nfs_socket.c,v 1.26 1997/06/03 17:22:46 dfr Exp $
* $Id: nfs_socket.c,v 1.27 1997/08/16 19:15:57 wollman Exp $
*/
/*
@ -46,6 +46,7 @@
#include <sys/proc.h>
#include <sys/mount.h>
#include <sys/kernel.h>
#include <sys/malloc.h>
#include <sys/mbuf.h>
#include <sys/vnode.h>
#include <sys/domain.h>

View File

@ -34,7 +34,7 @@
* SUCH DAMAGE.
*
* @(#)nfs_vfsops.c 8.12 (Berkeley) 5/20/95
* $Id: nfs_vfsops.c,v 1.44 1997/06/27 19:10:46 wpaul Exp $
* $Id: nfs_vfsops.c,v 1.45 1997/08/16 19:16:04 wollman Exp $
*/
#include <sys/param.h>
@ -48,6 +48,7 @@
#include <sys/sysctl.h>
#include <sys/mount.h>
#include <sys/buf.h>
#include <sys/malloc.h>
#include <sys/mbuf.h>
#include <sys/socket.h>
#include <sys/socketvar.h>

View File

@ -1,5 +1,5 @@
/* $NetBSD: krpc_subr.c,v 1.12.4.1 1996/06/07 00:52:26 cgd Exp $ */
/* $Id: krpc_subr.c,v 1.3 1997/06/12 14:03:16 tegge Exp $ */
/* $Id: krpc_subr.c,v 1.4 1997/08/16 19:15:53 wollman Exp $ */
/*
* Copyright (c) 1995 Gordon Ross, Adam Glass
@ -49,6 +49,7 @@
#include <sys/sockio.h>
#include <sys/proc.h>
#include <sys/mount.h>
#include <sys/malloc.h>
#include <sys/mbuf.h>
#include <sys/reboot.h>
#include <sys/socket.h>

View File

@ -34,7 +34,7 @@
* SUCH DAMAGE.
*
* @(#)nfs_socket.c 8.5 (Berkeley) 3/30/95
* $Id: nfs_socket.c,v 1.26 1997/06/03 17:22:46 dfr Exp $
* $Id: nfs_socket.c,v 1.27 1997/08/16 19:15:57 wollman Exp $
*/
/*
@ -46,6 +46,7 @@
#include <sys/proc.h>
#include <sys/mount.h>
#include <sys/kernel.h>
#include <sys/malloc.h>
#include <sys/mbuf.h>
#include <sys/vnode.h>
#include <sys/domain.h>

View File

@ -34,7 +34,7 @@
* SUCH DAMAGE.
*
* @(#)nfs_vfsops.c 8.12 (Berkeley) 5/20/95
* $Id: nfs_vfsops.c,v 1.44 1997/06/27 19:10:46 wpaul Exp $
* $Id: nfs_vfsops.c,v 1.45 1997/08/16 19:16:04 wollman Exp $
*/
#include <sys/param.h>
@ -48,6 +48,7 @@
#include <sys/sysctl.h>
#include <sys/mount.h>
#include <sys/buf.h>
#include <sys/malloc.h>
#include <sys/mbuf.h>
#include <sys/socket.h>
#include <sys/socketvar.h>

View File

@ -34,7 +34,7 @@
* SUCH DAMAGE.
*
* @(#)nfs_serv.c 8.3 (Berkeley) 1/12/94
* $Id: nfs_serv.c,v 1.46 1997/07/22 15:35:15 dfr Exp $
* $Id: nfs_serv.c,v 1.47 1997/08/16 19:15:56 wollman Exp $
*/
/*
@ -66,6 +66,7 @@
#include <sys/mount.h>
#include <sys/socket.h>
#include <sys/socketvar.h>
#include <sys/malloc.h>
#include <sys/mbuf.h>
#include <sys/dirent.h>
#include <sys/stat.h>

View File

@ -34,7 +34,7 @@
* SUCH DAMAGE.
*
* @(#)nfs_socket.c 8.5 (Berkeley) 3/30/95
* $Id: nfs_socket.c,v 1.26 1997/06/03 17:22:46 dfr Exp $
* $Id: nfs_socket.c,v 1.27 1997/08/16 19:15:57 wollman Exp $
*/
/*
@ -46,6 +46,7 @@
#include <sys/proc.h>
#include <sys/mount.h>
#include <sys/kernel.h>
#include <sys/malloc.h>
#include <sys/mbuf.h>
#include <sys/vnode.h>
#include <sys/domain.h>

View File

@ -62,6 +62,7 @@
*/
#include <sys/devconf.h>
#endif
#include <sys/malloc.h>
#include <sys/mbuf.h>
#include <sys/socket.h>
#include <sys/socketvar.h>