Deleted Added
full compact
mbuf.c (47695) mbuf.c (49582)
1/*
2 * PPP Memory handling module
3 *
4 * Written by Toshiharu OHNO (tony-o@iij.ad.jp)
5 *
6 * Copyright (C) 1993, Internet Initiative Japan, Inc. All rights reserverd.
7 *
8 * Redistribution and use in source and binary forms are permitted
9 * provided that the above copyright notice and this paragraph are
10 * duplicated in all such forms and that any documentation,
11 * advertising materials, and other materials related to such
12 * distribution and use acknowledge that the software was developed
13 * by the Internet Initiative Japan, Inc. The name of the
14 * IIJ may not be used to endorse or promote products derived
15 * from this software without specific prior written permission.
16 * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
17 * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
18 * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
19 *
1/*
2 * PPP Memory handling module
3 *
4 * Written by Toshiharu OHNO (tony-o@iij.ad.jp)
5 *
6 * Copyright (C) 1993, Internet Initiative Japan, Inc. All rights reserverd.
7 *
8 * Redistribution and use in source and binary forms are permitted
9 * provided that the above copyright notice and this paragraph are
10 * duplicated in all such forms and that any documentation,
11 * advertising materials, and other materials related to such
12 * distribution and use acknowledge that the software was developed
13 * by the Internet Initiative Japan, Inc. The name of the
14 * IIJ may not be used to endorse or promote products derived
15 * from this software without specific prior written permission.
16 * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
17 * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
18 * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
19 *
20 * $Id: mbuf.c,v 1.26 1999/05/09 20:02:24 brian Exp $
20 * $Id: mbuf.c,v 1.27 1999/06/02 15:59:04 brian Exp $
21 *
22 */
23#include <sys/types.h>
24
25#include <stdio.h>
26#include <stdlib.h>
27#include <string.h>
28#include <sysexits.h>

--- 206 unchanged lines hidden (view full) ---

235 prompt_Printf(arg->prompt, "%10.10s: %04d (%06d)\t%10.10s: %04d (%06d)\n",
236 mbuftype[i], MemMap[i].fragments, MemMap[i].octets,
237 mbuftype[i+1], MemMap[i+1].fragments, MemMap[i+1].octets);
238
239 if (i == MB_MAX)
240 prompt_Printf(arg->prompt, "%10.10s: %04d (%06d)\n",
241 mbuftype[i], MemMap[i].fragments, MemMap[i].octets);
242
21 *
22 */
23#include <sys/types.h>
24
25#include <stdio.h>
26#include <stdlib.h>
27#include <string.h>
28#include <sysexits.h>

--- 206 unchanged lines hidden (view full) ---

235 prompt_Printf(arg->prompt, "%10.10s: %04d (%06d)\t%10.10s: %04d (%06d)\n",
236 mbuftype[i], MemMap[i].fragments, MemMap[i].octets,
237 mbuftype[i+1], MemMap[i+1].fragments, MemMap[i+1].octets);
238
239 if (i == MB_MAX)
240 prompt_Printf(arg->prompt, "%10.10s: %04d (%06d)\n",
241 mbuftype[i], MemMap[i].fragments, MemMap[i].octets);
242
243 prompt_Printf(arg->prompt, "Mallocs: %qu, Frees: %qu\n",
243 prompt_Printf(arg->prompt, "Mallocs: %llu, Frees: %llu\n",
244 mbuf_Mallocs, mbuf_Frees);
245
246 return 0;
247}
248
249struct mbuf *
250mbuf_Dequeue(struct mqueue *q)
251{

--- 73 unchanged lines hidden ---
244 mbuf_Mallocs, mbuf_Frees);
245
246 return 0;
247}
248
249struct mbuf *
250mbuf_Dequeue(struct mqueue *q)
251{

--- 73 unchanged lines hidden ---